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
protected AbstractRenderer createRenderer(final IScope scope, final String serieid) { return new XYErrorRenderer(); }
{ "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}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\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\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
TODO Autogenerated method stub
@Override protected void updateImage(final IScope scope) { }
{ "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
Creates new form CompanyAndDivision_Binding
public CompanyAndDivision_Binding() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CompanyDetail() {\n initComponents();\n financialYearFrom.setFormat(1);\n booksBeginDate.setFormat(1);\n logo.setIcon(imageGet.getDefaultCompanyLogo());\n bindingGroup.addBindingListener(new AbstractBindingListener() {\n\n @Override\n public void targetChanged(Binding binding, PropertyStateEvent event) {\n super.targetChanged(binding, event);\n errorMessage.setIcon(null);\n errorMessage.setText(null);\n if (!nameTF.getText().isEmpty()) {\n addAcceptIcon(nameTF, a1);\n } else {\n addRejectIcon(nameTF, a1);\n }\n if (phoneNumberTF.getText().isEmpty()) {\n a2.setVisible(false);\n } else if (phoneNumberTF.getText().matches(\"[0-9]*\") && phoneNumberTF.getText().length() <= 20) {\n addAcceptIcon(phoneNumberTF, a2);\n } else {\n addRejectIcon(phoneNumberTF, a2);\n }\n if (faxNumberTF.getText().isEmpty()) {\n a3.setVisible(false);\n } else if (faxNumberTF.getText().matches(\"[0-9]*\") && faxNumberTF.getText().length() <= 20) {\n addAcceptIcon(faxNumberTF, a3);\n } else {\n addRejectIcon(faxNumberTF, a3);\n }\n if (emailAddressTF.getText().isEmpty()) {\n a4.setVisible(false);\n } else if (emailAddressTF.getText().matches(\".+@.+\\\\.[A-Za-z]+\")) {\n addAcceptIcon(emailAddressTF, a4);\n } else {\n addRejectIcon(emailAddressTF, a4);\n }\n if (websiteUrlTF.getText().isEmpty()) {\n a5.setVisible(false);\n } else if (websiteUrlTF.getText().matches(\"www+\\\\.+\\\\w+\\\\.+[a-z]*\")) {\n addAcceptIcon(websiteUrlTF, a5);\n } else {\n addRejectIcon(websiteUrlTF, a5);\n }\n }\n\n });\n }", "public CreateAccount() {\n initComponents();\n selectionall();\n }", "@GetMapping(\"/admin/addCompany\")\n public String addCompanyForm(Model model){\n model.addAttribute(\"company\", new Company());\n model.addAttribute(\"Countries\", adminRepository.getCountries());\n return \"addCompany\";\n }", "public companyview() {\n initComponents();\n }", "public String newPermissionPersonCompany() {\r\n\t\ttry {\r\n\t\t\tbusiness = new ArrayList<Business>();\r\n\t\t\tlistPermissionPersonBusinessTemp = new ArrayList<PermissionPersonBusiness>();\r\n\t\t\tloadCombos();\r\n\t\t} catch (Exception e) {\r\n\t\t\tControladorContexto.mensajeError(e);\r\n\t\t}\r\n\t\treturn \"regPermissionPersonBusiness\";\r\n\t}", "private void createFieldsComp() {\n Composite fieldComp = new Composite(shell, SWT.NONE);\n GridLayout gl = new GridLayout(2, false);\n GridData gd = new GridData(SWT.FILL, SWT.DEFAULT, true, false);\n fieldComp.setLayout(gl);\n fieldComp.setLayoutData(gd);\n\n Label nameLbl = new Label(fieldComp, SWT.LEFT);\n nameLbl.setText(\"Name: \");\n\n caseNameText = new Text(fieldComp, SWT.SINGLE);\n gd = new GridData(SWT.FILL, SWT.DEFAULT, true, false);\n gd.minimumWidth = 200;\n caseNameText.setLayoutData(gd);\n caseNameText.addKeyListener(new KeyAdapter() {\n\n @Override\n public void keyReleased(KeyEvent e) {\n super.keyReleased(e);\n if (e.character == SWT.CR || e.character == SWT.KEYPAD_CR) {\n if (verifySelection()) {\n close();\n }\n }\n }\n });\n }", "public companyDetails() {\n initComponents();\n showTableData();\n }", "FORM createFORM();", "public Project_Create() {\n initComponents();\n }", "public Create_Course() {\n initComponents();\n comboBoxLec();\n comboBoxDep();\n }", "private void createGrpContactDetails() {\n\n\t\tgrpContactDetails = new Group(grpPharmacyDetails, SWT.NONE);\n\t\tgrpContactDetails.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tgrpContactDetails.setBounds(new Rectangle(20, 40, 350, 230));\n\n\t\tlblInstructions = new Label(grpContactDetails, SWT.CENTER);\n\t\tlblInstructions.setBounds(new org.eclipse.swt.graphics.Rectangle(50,\n\t\t\t\t20, 260, 20));\n\t\tlblInstructions.setText(\"All fields marked with * are compulsory\");\n\t\tlblInstructions.setFont(ResourceUtils\n\t\t\t\t.getFont(iDartFont.VERASANS_8_ITALIC));\n\n\t\tlblPharmacyName = new Label(grpContactDetails, SWT.NONE);\n\t\tlblPharmacyName.setBounds(new org.eclipse.swt.graphics.Rectangle(18, 45, 120,\n\t\t\t\t20));\n\t\tlblPharmacyName.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tlblPharmacyName.setText(\"* Facility Name:\");\n\t\ttxtPharmacyName = new Text(grpContactDetails, SWT.BORDER);\n\t\ttxtPharmacyName.setBounds(new org.eclipse.swt.graphics.Rectangle(150, 45, 180,\n\t\t\t\t20));\n\t\ttxtPharmacyName.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\ttxtPharmacyName.setFocus();\n\t\ttxtPharmacyName.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent evt) {\n\t\t\t\ttxtNameKeyReleased();\n\t\t\t\tfieldsChanged = true;\n\t\t\t}\n\n\t\t});\n\t\ttxtPharmacyName.setEnabled(false);\n\n\t\tlblStreetAdd = new Label(grpContactDetails, SWT.NONE);\n\t\tlblStreetAdd.setBounds(new org.eclipse.swt.graphics.Rectangle(18, 75,\n\t\t\t\t120, 20));\n\t\tlblStreetAdd.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tlblStreetAdd.setText(\"* Street Address:\");\n\t\ttxtStreetAdd = new Text(grpContactDetails, SWT.BORDER);\n\t\ttxtStreetAdd.setBounds(new org.eclipse.swt.graphics.Rectangle(150, 75,\n\t\t\t\t180, 20));\n\t\ttxtStreetAdd.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\ttxtStreetAdd.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent evt) {\n\t\t\t\ttxtStreetKeyReleased();\n\t\t\t\tfieldsChanged = true;\n\t\t\t}\n\t\t});\n\t\ttxtStreetAdd.setEnabled(false);\n\n\t\tlblCity = new Label(grpContactDetails, SWT.NONE);\n\t\tlblCity.setBounds(new org.eclipse.swt.graphics.Rectangle(18, 105, 120,\n\t\t\t\t20));\n\t\tlblCity.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tlblCity.setText(\"* City:\");\n\t\ttxtCity = new Text(grpContactDetails, SWT.BORDER);\n\t\ttxtCity.setBounds(new org.eclipse.swt.graphics.Rectangle(150, 105, 180,\n\t\t\t\t20));\n\t\ttxtCity.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\ttxtCity.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent evt) {\n\t\t\t\ttxtCityKeyReleased();\n\t\t\t\tfieldsChanged = true;\n\t\t\t}\n\t\t});\n\t\ttxtCity.setEnabled(false);\n\n\t\tlblTel = new Label(grpContactDetails, SWT.NONE);\n\t\tlblTel.setBounds(new org.eclipse.swt.graphics.Rectangle(18, 135, 124,\n\t\t\t\t20));\n\t\tlblTel.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tlblTel.setText(\"* Telephone Number:\");\n\t\ttxtTel = new Text(grpContactDetails, SWT.BORDER);\n\t\ttxtTel.setBounds(new org.eclipse.swt.graphics.Rectangle(150, 135, 180,\n\t\t\t\t20));\n\t\ttxtTel.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\ttxtTel.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent evt) {\n\t\t\t\ttxtTelNoKeyReleased();\n\t\t\t\tfieldsChanged = true;\n\t\t\t}\n\t\t});\n\t\ttxtTel.setEnabled(false);\n\n\t\tlblPharmacistName1 = new Label(grpContactDetails, SWT.NONE);\n\t\tlblPharmacistName1.setBounds(new org.eclipse.swt.graphics.Rectangle(18,\n\t\t\t\t165, 120, 20));\n\t\tlblPharmacistName1.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tlblPharmacistName1.setText(\"* Head Pharmacist:\");\n\t\ttxtPharmacistName1 = new Text(grpContactDetails, SWT.BORDER);\n\t\ttxtPharmacistName1.setBounds(new org.eclipse.swt.graphics.Rectangle(\n\t\t\t\t150, 165, 180, 20));\n\t\ttxtPharmacistName1.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\ttxtPharmacistName1.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent evt) {\n\t\t\t\ttxtPharmacistKeyReleased();\n\t\t\t\tfieldsChanged = true;\n\t\t\t}\n\t\t});\n\t\ttxtPharmacistName1.setEnabled(false);\n\n\t\tlblPharmacyAssistant = new Label(grpContactDetails, SWT.NONE);\n\t\tlblPharmacyAssistant.setBounds(new org.eclipse.swt.graphics.Rectangle(18,\n\t\t\t\t195, 120, 20));\n\t\tlblPharmacyAssistant.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tlblPharmacyAssistant.setText(\" Pharmacy Assistant:\");\n\t\ttxtPharmacyAssistant = new Text(grpContactDetails, SWT.BORDER);\n\t\ttxtPharmacyAssistant.setBounds(new org.eclipse.swt.graphics.Rectangle(\n\t\t\t\t150, 195, 180, 20));\n\t\ttxtPharmacyAssistant.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\ttxtPharmacyAssistant.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent evt) {\n\t\t\t\ttxtPharmacistKeyReleased();\n\t\t\t\tfieldsChanged = true;\n\t\t\t}\n\t\t});\n\t\ttxtPharmacyAssistant.setEnabled(false);\n\n\t}", "ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyBaseData addNewAuditingCompany();", "@RequestMapping(\"/new\")\n\tpublic String displayProjectForm(Model model) {\n\t\tProject aproject = new Project();\n\t//Iterable<Employee> employees = \tpro.getall();\n\t\n\t\tmodel.addAttribute(\"project\", aproject);\n\n\t\t//model.addAttribute(\"allEmployees\", employees);\n\t\t\n\t\t\n\t\treturn \"newproject\";\n\t\t\n\t}", "@Override\n @Transactional\n public String create(Company company, BindingResult result) {\n\n\t// Security check.\n\tif (!this.authHelper.isSuperAdmin()) {\n\t this.messageHelper.unauthorizedID(Company.OBJECT_NAME, company.getId());\n\t return AlertBoxFactory.ERROR;\n\t}\n\n\t// Service layer form validation.\n\tthis.companyValidator.validate(company, result);\n\tif (result.hasErrors()) {\n\t return this.validationHelper.errorMessageHTML(result);\n\t}\n\n\tthis.companyDAO.create(company);\n\n\t// Log.\n\tthis.messageHelper.auditableID(AuditAction.ACTION_CREATE, Company.OBJECT_NAME, company.getId(),\n\t\tcompany.getName());\n\n\t// Do actual service and construct response.\n\treturn AlertBoxFactory.SUCCESS.generateCreate(Company.OBJECT_NAME, company.getName());\n }", "Division createDivision();", "@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 }", "public InvoiceCreate() {\n initComponents();\n }", "public Company() {\r\n\t\tsuper();\r\n\t}", "ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyBaseData addNewCompanyBaseData();", "public ManagementCompany() {\r\n\t\tthis.name = \"\";\r\n\t\tthis.taxID = \"\";\r\n\t\tthis.mgmFeePer = 0;\r\n\t\tthis.plot.setX(0);\r\n\t\tthis.plot = new Plot();\r\n\t\tproperties = new Property[MAX_PROPERTY];\r\n\t}", "public static Company createCompany() {\r\n\t\treturn createCompany(1, \"Pepcus\", \"Software\", \"PEP\", new Date(), \"Special\", \"This is search help\");\r\n\t}", "public Form(){\n\t\ttypeOfLicenseApp = new TypeOfLicencsApplication();\n\t\toccupationalTrainingList = new ArrayList<OccupationalTraining>();\n\t\taffiadavit = new Affidavit();\n\t\tapplicationForReciprocity = new ApplicationForReciprocity();\n\t\teducationBackground = new EducationBackground();\n\t\toccupationalLicenses = new OccupationalLicenses();\n\t\tofficeUseOnlyInfo = new OfficeUseOnlyInfo();\n\t}", "public void initContactCreation() {\n click(By.linkText(\"add new\"));\n //wd.findElement(By.linkText(\"add new\")).click();\n }", "public Company() {\n\t\tsuper();\n\t}", "public PDMRelationshipForm() {\r\n initComponents();\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n organizationComboBox = new javax.swing.JComboBox();\n jScrollPane1 = new javax.swing.JScrollPane();\n organizationTable = new javax.swing.JTable();\n jLabel2 = new javax.swing.JLabel();\n organizationEComboBox = new javax.swing.JComboBox();\n jLabel3 = new javax.swing.JLabel();\n txtName = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n btnCreate = new javax.swing.JButton();\n\n jLabel1.setFont(new java.awt.Font(\"微软雅黑\", 0, 18)); // NOI18N\n jLabel1.setText(\"Organization\");\n\n organizationComboBox.setFont(new java.awt.Font(\"微软雅黑\", 0, 18)); // NOI18N\n organizationComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n organizationComboBox.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n organizationComboBoxActionPerformed(evt);\n }\n });\n\n organizationTable.setFont(new java.awt.Font(\"微软雅黑\", 0, 18)); // NOI18N\n organizationTable.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"ID\", \"Name\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, false\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n jScrollPane1.setViewportView(organizationTable);\n if (organizationTable.getColumnModel().getColumnCount() > 0) {\n organizationTable.getColumnModel().getColumn(0).setResizable(false);\n organizationTable.getColumnModel().getColumn(1).setResizable(false);\n }\n\n jLabel2.setFont(new java.awt.Font(\"微软雅黑\", 0, 18)); // NOI18N\n jLabel2.setText(\"Organization\");\n\n organizationEComboBox.setFont(new java.awt.Font(\"微软雅黑\", 0, 18)); // NOI18N\n organizationEComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n jLabel3.setFont(new java.awt.Font(\"微软雅黑\", 0, 18)); // NOI18N\n jLabel3.setText(\"Name\");\n\n jButton1.setFont(new java.awt.Font(\"微软雅黑\", 0, 18)); // NOI18N\n jButton1.setText(\"<< Back\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n btnCreate.setFont(new java.awt.Font(\"微软雅黑\", 0, 18)); // NOI18N\n btnCreate.setText(\"Create\");\n btnCreate.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCreateActionPerformed(evt);\n }\n });\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 .addGroup(layout.createSequentialGroup()\n .addGap(70, 70, 70)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(45, 45, 45)\n .addComponent(organizationComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel3))\n .addGap(45, 45, 45)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtName)\n .addComponent(organizationEComboBox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButton1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnCreate))\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(257, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(50, 50, 50)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(organizationComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(33, 33, 33)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(49, 49, 49)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel2)\n .addComponent(organizationEComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(35, 35, 35)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(txtName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 42, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1)\n .addComponent(btnCreate))\n .addGap(35, 35, 35))\n );\n }", "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "public CompanyBean() throws Exception {\n selectedTab = ADD_TAB_SELECTED;\n dbc = DataBaseConnection.getDataBaseConnection(DBUtil.DBADMIN);\n initializeAdd();\n initializeChg();\n }", "public void onNew() {\t\t\n\t\tdesignWidget.addNewForm();\n\t}", "@GetMapping(value = { \"/\", \"/addContact\" })\r\n\tpublic String loadForm(Model model) {\r\n\t\tmodel.addAttribute(\"contact\", new Contact());\r\n\t\treturn \"contactInfo\";\r\n\t}", "public CompanyData() {\r\n }", "@Override\r\n public void fillFieldValues() {\n if (panelType == CompetitivePropsPanelType.CREATE_GROUP) {\r\n competitive = new CompetitiveGroup(null, 1);\r\n tfNumCompetitiveNeurons.setText(\"\"\r\n + DEFAULT_NUM_COMPETITIVE_NEURONS);\r\n fillCompetitiveGroupFieldValues();\r\n } else if (panelType == CompetitivePropsPanelType.CREATE_NETWORK) {\r\n competitive = new CompetitiveNetwork(null, 1, 1,\r\n networkPanel.getWhereToAdd());\r\n tfNumCompetitiveNeurons.setText(\"\"\r\n + DEFAULT_NUM_COMPETITIVE_NEURONS);\r\n tfNumInputNeurons.setText(\"\" + DEFAULT_NUM_INPUT_NEURONS);\r\n fillCompetitiveNetworkFieldValues();\r\n } else if (panelType == CompetitivePropsPanelType.EDIT_GROUP) {\r\n fillCompetitiveGroupFieldValues();\r\n }\r\n }", "@RequestMapping(value = \"/save\", method = RequestMethod.POST)\n\tpublic String submitCreateOfficeForm(\n\t\t\t@ModelAttribute(MODEL_ATTIRUTE_TypeLocalFondPage) TypeLocalFondPage typeLocalFondPage,\n\t\t\tBindingResult bindingResult, RedirectAttributes attributes,\n\t\t\tModel model) {\n\t\tLOGGER.debug(\"Create Office form was submitted with information: \"\n\t\t\t\t+ typeLocalFondPage);\n\n\t\tSystem.out.println(bindingResult.toString());\n\t\tSystem.out.println(typeLocalFondPage);\n\t\tSystem.out.println(typeLocalFondPage.getNotaireFk());\n\t\tif (bindingResult.hasErrors()) {\n\t\t\tif (notaireService.findAll() != null) {\n\t\t\t\tmodel.addAttribute(MODEL_ATTIRUTE_LIST_Notaire,\n\t\t\t\t\t\tnotaireService.findAll());\n\t\t\t}\n\t\t\treturn TypeLocalFondPage_ADD_FORM_VIEW;\n\t\t}\n\n\t\t// addFeedbackMessage(attributes,\n\t\t// FEEDBACK_MESSAGE_KEY_TypeFamilleCourrierLocal_CREATED,\n\t\t// typeLocalFondPage.getNom());\n\t\ttypeLocalFondPageService.create(typeLocalFondPage);\n\n\t\treturn createRedirectViewPath(TypeLocalFondPage_LIST);\n\t}", "public ServiceCompany(String name, String nit, String representativeName, String address, String phone, int employeeQuantity, double assetsValue, int creationDay, int creationMonth, int creationYear, int floors, String type){\n\n\t\tsuper(name, nit, representativeName, address, phone, employeeQuantity, assetsValue, creationDay, creationMonth, creationYear, floors, type);\n\n\t\tthis.surveys=new Survey[50];\n\n\t}", "private void fillFields() {\n\t\tInteger owner = this.contractor.getOwner();\n\n\t\tnameField.setText(getTrimmedValue(this.contractor.getName()));\n\t\tlocationField.setText(getTrimmedValue(this.contractor.getLocation()));\n\t\townerField.setText(owner == null ? \"\" : owner.toString());\n\t\tsizeField.setText(contractor.getSize().toString());\n\t\trateField.setText(Contractor.RATE_FORMAT.format(this.contractor\n\t\t\t\t.getRate()));\n\t\tspecialtiesList.setListData(this.contractor.getSpecialties());\n\t}", "public CreateAccountPanel() {\n initComponents();\n initializeDateChooser();\n }", "public ProductCreate() {\n initComponents();\n }", "public ContactDetails() {\n initComponents();\n }", "public cleanCompany() {\n\n javaPostgreSQLBasic.setCredentialBD(\"localhost\", \"5432\", \"tachoCompany\", \"postgres\", \"200815238\");\n initComponents();\n this.getContentPane().setBackground(Color.BLACK);\n this.setLocationRelativeTo(null);\n this.setTitle(\"Menu Principal\");\n this.setIconImage(new ImageIcon(getClass().getResource(\"/Img/LogoApp.png\")).getImage());\n rVentaServicio = new registroVentaServicio(this);\n alertas = new alertas(this);\n rCliente = new registroCliente(this);\n rServicio = new registroServicio(this);\n agenda = new agenda(this);\n }", "public BeansCompany() {\n\t\tsuper();\n\t}", "public ViewCreatePagamento() {\n initComponents();\n clientesDAO cDAO = DaoFactory.createClientesDao(); \n matriculaDAO mDAO = DaoFactory.createMatriculaDao();\n \n cmbIDClientes.addItem(null);\n cDAO.findAll().forEach((p) -> {\n cmbIDClientes.addItem(p.getNome());\n });\n \n \n txtDataAtual.setText(DateFormat.getDateInstance().format(new Date()));\n }", "public BtxDetailsKcFormDefinition() {\n super();\n }", "public ClientOfCompanyTrips() {\n companyController = new CompanyController();\n selected = new Company();\n tripBusiness = new TripBusiness();\n trip = new Trip();\n placeBusiness = new PlaceBusiness();\n place= new Place();\n clientBusiness = new ClientBusiness();\n client = new Client();\n }", "public newRelationship() {\n initComponents();\n }", "public PnNewCustomer() {\n initComponents();\n }", "protected void createControl() {\n\t\tGridLayout layout = new GridLayout(1, true);\n\t\tsetLayout(layout);\n\t\tsetLayoutData(new GridData(GridData.FILL_BOTH));\n\n\t\tComposite nameGroup = new Composite(this, SWT.NONE);\n\t\tlayout = new GridLayout();\n\t\tlayout.numColumns = 2;\n\t\tnameGroup.setLayout(layout);\n\t\tnameGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n\n\t\tLabel label = new Label(nameGroup, SWT.NONE);\n\t\tlabel.setText(PHPServerUIMessages\n\t\t\t\t.getString(\"ServerCompositeFragment.nameLabel\")); //$NON-NLS-1$\n\t\tGridData data = new GridData();\n\t\tlabel.setLayoutData(data);\n\n\t\tname = new Text(nameGroup, SWT.BORDER);\n\t\tdata = new GridData(GridData.FILL_HORIZONTAL);\n\t\tname.setLayoutData(data);\n\t\tname.addModifyListener(new ModifyListener() {\n\t\t\tpublic void modifyText(ModifyEvent e) {\n\t\t\t\tif (getServer() != null)\n\t\t\t\t\tmodifiedValuesCache.serverName = name.getText();\n\t\t\t\tvalidate();\n\t\t\t}\n\t\t});\n\t\tcreateURLGroup(this);\n\t\tinit();\n\t\tvalidate();\n\n\t\tDialog.applyDialogFont(this);\n\n\t\tname.forceFocus();\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n Title = new javax.swing.JLabel();\n NAME = new javax.swing.JLabel();\n txt_name = new javax.swing.JTextField();\n PROVIDER = new javax.swing.JLabel();\n ComboBox_provider = new javax.swing.JComboBox<>();\n CATEGORY = new javax.swing.JLabel();\n ComboBox_category = new javax.swing.JComboBox<>();\n Trademark = new javax.swing.JLabel();\n ComboBox_trademark = new javax.swing.JComboBox<>();\n COLOR = new javax.swing.JLabel();\n ComboBox_color = new javax.swing.JComboBox<>();\n SIZE = new javax.swing.JLabel();\n ComboBox_size = new javax.swing.JComboBox<>();\n MATERIAL = new javax.swing.JLabel();\n ComboBox_material = new javax.swing.JComboBox<>();\n PRICE = new javax.swing.JLabel();\n txt_price = new javax.swing.JTextField();\n SAVE = new javax.swing.JButton();\n CANCEL = new javax.swing.JButton();\n Background = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n Title.setFont(new java.awt.Font(\"Dialog\", 1, 24)); // NOI18N\n Title.setForeground(new java.awt.Color(255, 255, 255));\n Title.setText(\"NEW PRODUCT\");\n getContentPane().add(Title, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 33, -1, -1));\n\n NAME.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n NAME.setForeground(new java.awt.Color(255, 255, 255));\n NAME.setText(\"Name\");\n getContentPane().add(NAME, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 150, 70, 30));\n\n txt_name.setBackground(new java.awt.Color(51, 51, 51));\n txt_name.setForeground(new java.awt.Color(255, 255, 255));\n getContentPane().add(txt_name, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 150, 100, 30));\n\n PROVIDER.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n PROVIDER.setForeground(new java.awt.Color(255, 255, 255));\n PROVIDER.setText(\"Provider\");\n getContentPane().add(PROVIDER, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 200, 70, 30));\n\n ComboBox_provider.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_provider.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_provider.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_provider, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 200, 100, 30));\n\n CATEGORY.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n CATEGORY.setForeground(new java.awt.Color(255, 255, 255));\n CATEGORY.setText(\"Category\");\n getContentPane().add(CATEGORY, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 250, 70, 30));\n\n ComboBox_category.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_category.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_category.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_category, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 250, 100, 30));\n\n Trademark.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n Trademark.setForeground(new java.awt.Color(255, 255, 255));\n Trademark.setText(\"Trademark\");\n getContentPane().add(Trademark, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 300, 70, 30));\n\n ComboBox_trademark.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_trademark.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_trademark.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n ComboBox_trademark.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ComboBox_trademarkActionPerformed(evt);\n }\n });\n getContentPane().add(ComboBox_trademark, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 300, 100, 30));\n\n COLOR.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n COLOR.setForeground(new java.awt.Color(255, 255, 255));\n COLOR.setText(\"Color\");\n getContentPane().add(COLOR, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 150, 70, 30));\n\n ComboBox_color.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_color.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_color.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_color, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 150, 100, 30));\n\n SIZE.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n SIZE.setForeground(new java.awt.Color(255, 255, 255));\n SIZE.setText(\"Size\");\n getContentPane().add(SIZE, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 200, 70, 30));\n\n ComboBox_size.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_size.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_size.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_size, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 200, 100, 30));\n\n MATERIAL.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n MATERIAL.setForeground(new java.awt.Color(255, 255, 255));\n MATERIAL.setText(\"Material\");\n getContentPane().add(MATERIAL, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 250, 70, 30));\n\n ComboBox_material.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_material.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_material.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_material, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 250, 100, 30));\n\n PRICE.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n PRICE.setForeground(new java.awt.Color(255, 255, 255));\n PRICE.setText(\"Price\");\n getContentPane().add(PRICE, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 300, 70, 30));\n\n txt_price.setBackground(new java.awt.Color(51, 51, 51));\n txt_price.setForeground(new java.awt.Color(255, 255, 255));\n txt_price.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txt_priceActionPerformed(evt);\n }\n });\n getContentPane().add(txt_price, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 300, 100, 30));\n\n SAVE.setBackground(new java.awt.Color(25, 25, 25));\n SAVE.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_guardar-A.png\"))); // NOI18N\n SAVE.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n SAVE.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_guardar-B.png\"))); // NOI18N\n SAVE.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_guardar.png\"))); // NOI18N\n SAVE.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n SAVEActionPerformed(evt);\n }\n });\n getContentPane().add(SAVE, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 480, 50, 50));\n\n CANCEL.setBackground(new java.awt.Color(25, 25, 25));\n CANCEL.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_no-A.png\"))); // NOI18N\n CANCEL.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n CANCEL.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_no-B.png\"))); // NOI18N\n CANCEL.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_no.png\"))); // NOI18N\n CANCEL.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n CANCELActionPerformed(evt);\n }\n });\n getContentPane().add(CANCEL, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 480, 50, 50));\n\n Background.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/fondo_windows2.jpg\"))); // NOI18N\n getContentPane().add(Background, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1));\n\n pack();\n }", "public GroupCreateBean() {\n\t\tsuper();\n\t\tthis.initializeNumbers();\t\t\n\t}", "private void buildView() {\n this.setHeaderInfo(model.getHeaderInfo());\n\n CWButtonPanel buttonPanel = this.getButtonPanel();\n \n buttonPanel.add(saveButton);\n buttonPanel.add(saveAndCloseButton);\n buttonPanel.add(cancelButton);\n \n FormLayout layout = new FormLayout(\"pref, 4dlu, 200dlu, 4dlu, min\",\n \"pref, 2dlu, pref, 2dlu, pref, 2dlu, pref\"); // rows\n\n layout.setRowGroups(new int[][]{{1, 3, 5}});\n \n CellConstraints cc = new CellConstraints();\n this.getContentPanel().setLayout(layout);\n \n this.getContentPanel().add(nameLabel, cc.xy (1, 1));\n this.getContentPanel().add(nameTextField, cc.xy(3, 1));\n this.getContentPanel().add(descLabel, cc.xy(1, 3));\n this.getContentPanel().add(descTextField, cc.xy(3, 3));\n this.getContentPanel().add(amountLabel, cc.xy(1, 5));\n this.getContentPanel().add(amountTextField, cc.xy(3, 5));\n }", "public CrearPedidos() {\n initComponents();\n }", "public void createButtonClicked() {\n clearInputFieldStyle();\n setAllFieldsAndSliderDisabled(false);\n setButtonsDisabled(false, true, true);\n setDefaultValues();\n Storage.setSelectedRaceCar(null);\n }", "public New_shipment() {\n initComponents();\n init();\n \n }", "public New_appointment() {\n initComponents();\n }", "@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n companytype_combo.setItems(filter_list);\r\n companytype_combo.getSelectionModel().selectFirst();\r\n \r\n deletecompany_button.disableProperty().bind(company_tableview.getSelectionModel().selectedItemProperty().isNull());\r\n \r\n contact_tab.disableProperty().bind(company_tableview.getSelectionModel().selectedItemProperty().isNull());\r\n address_tab.disableProperty().bind(company_tableview.getSelectionModel().selectedItemProperty().isNull());\r\n \r\n deleteaddress_button.disableProperty().bind(addopen_property.not());\r\n deletecontact_button.disableProperty().bind(contact_tableview.getSelectionModel().selectedItemProperty().isNull());\r\n \r\n setCompanyTable();\r\n updateCompanyTable();\r\n \r\n setContactTable();\r\n setAddressTable();\r\n \r\n company_tableview.getSelectionModel().selectedItemProperty().addListener((ObservableValue<? extends Company> observable, Company oldValue, Company newValue) -> {\r\n try{\r\n updateContactTable();\r\n updateAddressTable();\r\n company_field1.setText(newValue.getName());\r\n company_field2.setText(newValue.getName());\r\n }catch(Exception e){\r\n company_field1.setText(null);\r\n company_field2.setText(null);\r\n }\r\n \r\n });\r\n \r\n address_tableview.getSelectionModel().selectedItemProperty().addListener((ObservableValue<? extends CompanyAddress> observable, CompanyAddress oldValue, CompanyAddress newValue) -> {\r\n try{\r\n addopen_property.setValue(newValue.isOpen());\r\n }catch(Exception e){\r\n addopen_property.setValue(false);\r\n }\r\n });\r\n \r\n companytype_combo.setOnAction(ActionEvent -> {\r\n updateCompanyTable();\r\n });\r\n \r\n addcompany_button.setOnAction((ActionEvent -> {\r\n createCompany();\r\n updateCompanyTable();\r\n company_tableview.getSelectionModel().selectLast();\r\n }));\r\n \r\n deletecompany_button.setOnAction((ActionEvent -> {\r\n disableCompany();\r\n updateCompanyTable();\r\n }));\r\n \r\n addcontact_button.setOnAction((ActionEvent -> {\r\n createContact(company_tableview.getSelectionModel().getSelectedItem());\r\n updateContactTable();\r\n contact_tableview.getSelectionModel().selectLast();\r\n }));\r\n \r\n addaddress_button.setOnAction((ActionEvent) -> {\r\n createAddress(company_tableview.getSelectionModel().getSelectedItem());\r\n updateAddressTable();\r\n address_tableview.getSelectionModel().selectLast();\r\n });\r\n \r\n deletecontact_button.setOnAction((ActionEvent) -> {\r\n disableContact();\r\n updateContactTable();\r\n });\r\n \r\n deleteaddress_button.setOnAction((ActionEvent) -> {\r\n disableAddress();\r\n updateAddressTable();\r\n });\r\n }", "public NewProjectDialog(String pt) {\n\t\t\t\n\t\t\tsuper(frame, \"Add new project\");\n\t\t\tresetFields();\n\t\t\tpType = pt;\n\t\t\t\n\t\t\tfinal JDialog npd = this;\n\t\t\t\n\t\t\tpSDate.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\tpDeadline.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\tpEndDate.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\tpBudget.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\tpTotalCost.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\tpCompletion.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\t\n\t\t\tint x = frame.getLocation().x;\n\t\t\tint y = frame.getLocation().y;\n\t\t\t\n\t\t\tint pWidth = frame.getSize().width;\n\t\t\tint pHeight = frame.getSize().height;\n\t\t\t\n\t\t\tgetContentPane().setLayout(new BorderLayout());\n\t\t\t\n\t\t\tfinal JPanel fieldPanel = new JPanel();\n\t\t\t\n\t\t\tpCode.setText(portfolio.getNewCode());\n\t\t\tpCode.setEditable(false);\n\t\t\t\n\t\t\tif(pType.equals(\"o\")) {\n\t\t\t\tfieldPanel.setLayout(new GridLayout(7,3));\n\t\t\t\tSystem.out.println(\"ongoing\");\n\t\t\t\tthis.setPreferredSize(new Dimension(600,230));\n\t\t\t} else if(pType.equals(\"f\")) {\n\t\t\t\tfieldPanel.setLayout(new GridLayout(6,3));\n\t\t\t\tSystem.out.println(\"finished\");\n\t\t\t\tthis.setPreferredSize(new Dimension(600,200));\n\t\t\t}\n\t\t\tfieldPanel.add(new JLabel(\"Project Code :\"));\n\t\t\tfieldPanel.add(pCode);\n\t\t\tfieldPanel.add(msgCode);\t\t\n\t\t\tfieldPanel.add(new JLabel(\"Project Name :\"));\n\t\t\tfieldPanel.add(pName);\n\t\t\tfieldPanel.add(msgName);\n\t\t\tfieldPanel.add(new JLabel(\"Client :\"));\n\t\t\tfieldPanel.add(pClient);\n\t\t\tfieldPanel.add(msgClient);\n\t\t\tfieldPanel.add(new JLabel(\"Start date: \"));\n\t\t\tfieldPanel.add(pSDate);\n\t\t\tfieldPanel.add(msgSDate);\n\t\t\tmsgSDate.setText(DATE_FORMAT);\n\t\t\t\n\t\t\tif(pType.equals(\"o\")) {\n\t\t\t\tfieldPanel.add(new JLabel(\"Deadline :\"));\n\t\t\t\tfieldPanel.add(pDeadline);\n\t\t\t\tfieldPanel.add(msgDeadline);\n\t\t\t\tmsgDeadline.setText(DATE_FORMAT);\n\t\t\t\tfieldPanel.add(new JLabel(\"Budget :\"));\n\t\t\t\tfieldPanel.add(pBudget);\n\t\t\t\tfieldPanel.add(msgBudget);\n\t\t\t\tfieldPanel.add(new JLabel(\"Completion :\"));\n\t\t\t\tfieldPanel.add(pCompletion);\t\t\t\n\t\t\t\tfieldPanel.add(msgCompletion);\n\t\t\t\t\n\t\t\t} else if(pType.equals(\"f\")) {\n\t\t\t\tfieldPanel.add(new JLabel(\"End Date :\"));\n\t\t\t\tfieldPanel.add(pEndDate);\n\t\t\t\tfieldPanel.add(msgEndDate);\n\t\t\t\tmsgEndDate.setText(DATE_FORMAT);\n\t\t\t\tfieldPanel.add(new JLabel(\"Total Cost :\"));\n\t\t\t\tfieldPanel.add(pTotalCost);\n\t\t\t\tfieldPanel.add(msgTotalCost);\n\t\t\t}\n\t\t\t\n\t\t\tJPanel optionButtons = new JPanel();\n\t\t\toptionButtons.setLayout(new FlowLayout());\n\t\t\t\n\t\t\tJButton btnAdd = new JButton(\"Add\");\n\t\t\tbtnAdd.addActionListener(new ActionListener() {\n\n\t\t\t\t/**\n\t\t\t\t * Validates the information entered by the user and adds the project to the\n\t\t\t\t * Portfolio object if data is valid.\n\t\t\t\t */\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\n\t\t\t\t\tif(validateForm()) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tProject prj = compileProject();\n\t\t\t\t\t\tportfolio.add(prj,config.isUpdateDB());\n\t\t\t\t\t\tif(prj instanceof OngoingProject) {\n\t\t\t\t\t\t\tProjectTableModel tm = (ProjectTableModel) opTable.getModel();\n\t\t\t\t\t\t\ttm.addRow(prj.toTable());\n\t\t\t\t\t\t\topTable.setModel(tm);\n\t\t\t\t\t\t\tupdateCounters();\n\t\t\t\t\t\t\ttoggleSaved(false);\n\t\t\t\t\t\t\tsel.add(pCode.getText());\n\t\t\t\t\t\t} else if (prj instanceof FinishedProject) {\n\t\t\t\t\t\t\tProjectTableModel tm = (ProjectTableModel) fpTable.getModel();\n\t\t\t\t\t\t\ttm.addRow(prj.toTable());\n\t\t\t\t\t\t\tfpTable.setModel(tm);\n\t\t\t\t\t\t\tupdateCounters();\n\t\t\t\t\t\t\ttoggleSaved(false);\n\t\t\t\t\t\t\tsel.add(pCode.getText());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tnpd.dispose();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t});\n\t\t\toptionButtons.add(btnAdd);\n\t\t\t\n\t\t\tJButton btnClose = new JButton(\"Close\");\n\t\t\tbtnClose.addActionListener(new ActionListener() {\n\n\t\t\t\t/* Closes the NewProjectDialog window. */\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tnpd.dispose();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t});\n\t\t\t\n\t\t\toptionButtons.add(btnClose);\n\t\t\tgetContentPane().add(new JLabel(\"Enter the data for your new \" + getPType(pType) + \" project:\"), BorderLayout.PAGE_START);\n\t\t\tthis.add(fieldPanel, BorderLayout.CENTER);\n\t\t\tthis.add(optionButtons, BorderLayout.PAGE_END);\n\n\t\t\tthis.pack();\n\t\t\t\t\t\n\t\t\tint width = this.getSize().width;\n\t\t\tint height = this.getSize().height;\n\t\t\t\n\t\t\tthis.setLocation(new Point((x+pWidth/2-width/2),(y+pHeight/2-height/2)));\n\t\t\tthis.setVisible(true);\n\t\t}", "public void newCompanyDirectory() {\r\n\t\t new CompanyDirectory();\r\n\t}", "private void buildPane() {\n\t\tcreateListContact();\r\n\t\t\r\n\t\tJScrollPane listScrollPane = new JScrollPane(listContact);\r\n\t\t\r\n\t\tnouveauContact = new JTextField(10);\r\n\t\tajoutButton = new JButton(\"Ajouter\");\r\n\t\tcontactInfoChamp = new JTextField(30);\r\n\t\tvaliderButton = new JButton(\"Valider\");\r\n\t\t\r\n ControllerAgendaAjouter ajoutListener = new ControllerAgendaAjouter(ajoutButton, nouveauContact, listContact, listContactModel);\r\n \r\n ControllerAgendaModifier modificationListener = new ControllerAgendaModifier(validerButton, contactInfoChamp, listContact, listContactModel);\r\n \r\n // ajouter un nouveau contact\r\n ajoutButton.addActionListener(ajoutListener);\r\n ajoutButton.setEnabled(false);\r\n \r\n nouveauContact.addCaretListener(ajoutListener);\r\n \r\n // Afficher et modifier la valeur du numero d'un contact existant\r\n contactInfoChamp.setText(listContactModel.getValue(listContact.getSelectedValue().toString()));\r\n contactInfoChamp.addActionListener(modificationListener);\r\n \r\n validerButton.addActionListener(modificationListener);\r\n \r\n JPanel contactBox = new JPanel();\r\n contactBox.add(contactInfoChamp);\r\n contactBox.add(validerButton);\r\n \r\n JPanel buttonBox = new JPanel();\r\n buttonBox.setLayout(new BoxLayout(buttonBox, BoxLayout.LINE_AXIS));\r\n buttonBox.add(ajoutButton);\r\n buttonBox.add(nouveauContact);\r\n \r\n JPanel centerBox = new JPanel(); \r\n centerBox.setLayout(new BorderLayout());\r\n centerBox.add(listScrollPane, BorderLayout.PAGE_START);\r\n centerBox.add(contactBox, BorderLayout.CENTER);\r\n\r\n add(centerBox, BorderLayout.CENTER);\r\n add(buttonBox, BorderLayout.PAGE_END);\r\n\t\t\r\n\t}", "private void initUI() {\r\n\t\tthis.form = new XdevGridLayout();\r\n\t\tthis.comboBoxState = new XdevComboBox<>();\r\n\t\tthis.lblSbxValidFrom = new XdevLabel();\r\n\t\tthis.dateSbxValidFrom = new XdevPopupDateField();\r\n\t\tthis.lblSbxAgeStartYear = new XdevLabel();\r\n\t\tthis.txtSbxAgeStartYear = new XdevTextField();\r\n\t\tthis.lblSbxCompany = new XdevLabel();\r\n\t\tthis.txtSbxCompany = new XdevTextField();\r\n\t\tthis.lblSbxWorker = new XdevLabel();\r\n\t\tthis.txtSbxWorker = new XdevTextField();\r\n\t\tthis.lblSbxState = new XdevLabel();\r\n\t\tthis.horizontalLayout = new XdevHorizontalLayout();\r\n\t\tthis.cmdSave = new XdevButton();\r\n\t\tthis.cmdClose = new XdevButton();\r\n\t\tthis.fieldGroup = new XdevFieldGroup<>(SalaryBvgBaseLine.class);\r\n\t\r\n\t\tthis.lblSbxValidFrom.setValue(\"Gültig ab\");\r\n\t\tthis.dateSbxValidFrom.setTabIndex(2);\r\n\t\tthis.lblSbxAgeStartYear.setValue(\"Alter ab\");\r\n\t\tthis.txtSbxAgeStartYear.setTabIndex(3);\r\n\t\tthis.lblSbxCompany.setValue(\"Arbeitgeber %\");\r\n\t\tthis.txtSbxCompany.setConverter(ConverterBuilder.stringToDouble().build());\r\n\t\tthis.txtSbxCompany.setTabIndex(4);\r\n\t\tthis.lblSbxWorker.setValue(\"Arbeitnehmer %\");\r\n\t\tthis.txtSbxWorker.setConverter(ConverterBuilder.stringToDouble().build());\r\n\t\tthis.txtSbxWorker.setTabIndex(5);\r\n\t\tthis.lblSbxState.setValue(\"Status\");\r\n\t\tthis.horizontalLayout.setMargin(new MarginInfo(false));\r\n\t\tthis.cmdSave.setIcon(FontAwesome.SAVE);\r\n\t\tthis.cmdSave.setCaption(\"Speichern\");\r\n\t\tthis.cmdSave.setTabIndex(8);\r\n\t\tthis.cmdSave.setClickShortcut(ShortcutAction.KeyCode.ENTER);\r\n\t\tthis.cmdClose.setIcon(FontAwesome.CLOSE);\r\n\t\tthis.cmdClose.setCaption(\"Schliessen\");\r\n\t\tthis.cmdClose.setClickShortcut(ShortcutAction.KeyCode.ESCAPE);\r\n\t\tthis.fieldGroup.bind(this.dateSbxValidFrom, SalaryBvgBaseLine_.sbxValidFrom.getName());\r\n\t\tthis.fieldGroup.bind(this.txtSbxAgeStartYear, SalaryBvgBaseLine_.sbxAgeStartYear.getName());\r\n\t\tthis.fieldGroup.bind(this.txtSbxCompany, SalaryBvgBaseLine_.sbxCompany.getName());\r\n\t\tthis.fieldGroup.bind(this.txtSbxWorker, SalaryBvgBaseLine_.sbxWorker.getName());\r\n\t\tthis.fieldGroup.bind(this.comboBoxState, SalaryBvgBaseLine_.sbxState.getName());\r\n\t\r\n\t\tthis.cmdSave.setSizeUndefined();\r\n\t\tthis.horizontalLayout.addComponent(this.cmdSave);\r\n\t\tthis.horizontalLayout.setComponentAlignment(this.cmdSave, Alignment.MIDDLE_LEFT);\r\n\t\tthis.cmdClose.setSizeUndefined();\r\n\t\tthis.horizontalLayout.addComponent(this.cmdClose);\r\n\t\tthis.horizontalLayout.setComponentAlignment(this.cmdClose, Alignment.MIDDLE_LEFT);\r\n\t\tthis.form.setColumns(2);\r\n\t\tthis.form.setRows(7);\r\n\t\tthis.comboBoxState.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.comboBoxState, 1, 4);\r\n\t\tthis.lblSbxValidFrom.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.lblSbxValidFrom, 0, 0);\r\n\t\tthis.dateSbxValidFrom.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.dateSbxValidFrom, 1, 0);\r\n\t\tthis.lblSbxAgeStartYear.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.lblSbxAgeStartYear, 0, 1);\r\n\t\tthis.txtSbxAgeStartYear.setWidth(100, Unit.PERCENTAGE);\r\n\t\tthis.txtSbxAgeStartYear.setHeight(-1, Unit.PIXELS);\r\n\t\tthis.form.addComponent(this.txtSbxAgeStartYear, 1, 1);\r\n\t\tthis.lblSbxCompany.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.lblSbxCompany, 0, 2);\r\n\t\tthis.txtSbxCompany.setWidth(100, Unit.PERCENTAGE);\r\n\t\tthis.txtSbxCompany.setHeight(-1, Unit.PIXELS);\r\n\t\tthis.form.addComponent(this.txtSbxCompany, 1, 2);\r\n\t\tthis.lblSbxWorker.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.lblSbxWorker, 0, 3);\r\n\t\tthis.txtSbxWorker.setWidth(100, Unit.PERCENTAGE);\r\n\t\tthis.txtSbxWorker.setHeight(-1, Unit.PIXELS);\r\n\t\tthis.form.addComponent(this.txtSbxWorker, 1, 3);\r\n\t\tthis.lblSbxState.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.lblSbxState, 0, 4);\r\n\t\tthis.horizontalLayout.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.horizontalLayout, 0, 5, 1, 5);\r\n\t\tthis.form.setComponentAlignment(this.horizontalLayout, Alignment.TOP_CENTER);\r\n\t\tthis.form.setColumnExpandRatio(1, 100.0F);\r\n\t\tfinal CustomComponent form_vSpacer = new CustomComponent();\r\n\t\tform_vSpacer.setSizeFull();\r\n\t\tthis.form.addComponent(form_vSpacer, 0, 6, 1, 6);\r\n\t\tthis.form.setRowExpandRatio(6, 1.0F);\r\n\t\tthis.form.setSizeFull();\r\n\t\tthis.setContent(this.form);\r\n\t\tthis.setSizeFull();\r\n\t\r\n\t\tthis.cmdSave.addClickListener(event -> this.cmdSave_buttonClick(event));\r\n\t\tthis.cmdClose.addClickListener(event -> this.cmdClose_buttonClick(event));\r\n\t}", "private void newNetworkDialogCreateButton(){\n //Create new networkData object here based on the field info\n LabData.NetworkData newNetworkData = new LabData.NetworkData(\n NetworkAddDialogNameTextfield.getText().toUpperCase(),\n NetworkAddDialogMaskTextfield.getText(),\n NetworkAddDialogGatewayTextfield.getText(),\n (int)NetworkAddDialogMacVLanExtSpinner.getValue(),\n (int)NetworkAddDialogMacVLanSpinner.getValue(),\n NetworkAddDialogIPRangeTextfield.getText(),\n NetworkAddDialogTapRadioButton.isSelected()\n );\n \n // Update the list of labs in the current UI data object\n labDataCurrent.getNetworks().add(newNetworkData);\n \n // Add the network into the UI \n addNetworkPanel(newNetworkData);\n \n // Update the Container Config dialogs to include the new network\n updateNetworkReferenceInContainerConfigDialogs(\"Add\", NetworkAddDialogNameTextfield.getText().toUpperCase(), null);\n }", "public test(java.awt.Window parent, boolean modal, PartyDaoInterface dao) {\n super(parent);\n super.setModal(modal);\n\n initComponents();\n this.dao = dao;\n// tagText.setEditable(true);\n// txtCategory.setModel(categoryHolder);\n// validation.addTypeFormatter(txtID, \"#0\", Integer.class);\n\n partyName.setName(\"txtID\");\n partyWebsite.setName(\"txtName\");\n saveButton.setName(\"saveButton\");\n CancelButton.setName(\"CancelButton\");\n }", "public static Result startNewForm() {\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tDecision firstDecision = CMSGuidedFormFill.startNewForm(formName,\r\n\t\t\t\tCMSSession.getEmployeeName(), CMSSession.getEmployeeId());\r\n\t\treturn ok(backdrop.render(firstDecision));\r\n\t}", "ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson addNewControlPersonsExt();", "static void addNewCompany(SQLiteDatabase db, Company company) {\n ContentValues values = new ContentValues();\n values.put(COMPANY_ID, company.companyId);\n values.put(COMPANY_NAME, company.name);\n values.put(COMPANY_LOGO, company.companyLogo);\n values.put(COMPANY_DESCRIPTION, company.companyDescription);\n values.put(COMPANY_LAST_UPDATED, company.lastUpdatedDate);\n if (company.wasDeleted)\n values.put(COMPANY_WAS_DELETED, 1);\n else\n values.put(COMPANY_WAS_DELETED, 0);\n\n db.insert(COMPANY_TABLE, COMPANY_ID, values);\n }", "public FamilyBudget() {\n initComponents();\n }", "public FormInserir() {\n initComponents();\n }", "private void fillExistingCustomer() {\n idField.setText(String.valueOf(existingCustomer.getCustomerID()));\n nameField.setText(existingCustomer.getCustomerName());\n String[] splitAddress = existingCustomer.getAddress().split(\", \");\n addressField.setText(splitAddress[0]);\n if ( splitAddress.length > 1 ) {\n cityField.setText(splitAddress[1]);\n }\n postalField.setText(existingCustomer.getPostalCode());\n phoneField.setText(existingCustomer.getPhone());\n\n FirstLevelDivision division = getDivisionByID(existingCustomer.getDivisionID());\n divisionComboBox.getSelectionModel().select(division);\n countryComboBox.getSelectionModel().select(getCountryByID(division.getCountryID()));\n }", "public void addNewBenificiary() {\n\t\t\tsetColBankCode(null);\n\t\t\tsetCardNumber(null);\n\t\t\tsetPopulatedDebitCardNumber(null);\n\t\t\tsetApprovalNumberCard(null);\n\t\t\tsetRemitamount(null);\n\t\t\tsetColAuthorizedby(null);\n\t\t\tsetColpassword(null);\n\t\t\tsetApprovalNumber(null);\n\t\t\tsetBooAuthozed(false);\n\t\t\tbankMasterList.clear();\n\t\t\tlocalbankList.clear();// From View V_EX_CBNK\n\t\t\tlstDebitCard.clear();\n\n\t\t\t// to fetch All Banks from View\n\t\t\t//getLocalBankListforIndicatorFromView();\n\t\t\tlocalbankList = generalService.getLocalBankListFromView(session.getCountryId());\n\n\t\t\tList<BigDecimal> duplicateCheck = new ArrayList<BigDecimal>();\n\t\t\tList<ViewBankDetails> lstofBank = new ArrayList<ViewBankDetails>();\n\t\t\tif (localbankList.size() != 0) {\n\t\t\t\tfor (ViewBankDetails lstBank : localbankList) {\n\t\t\t\t\tif (!duplicateCheck.contains(lstBank.getChequeBankId())) {\n\t\t\t\t\t\tduplicateCheck.add(lstBank.getChequeBankId());\n\t\t\t\t\t\tlstofBank.add(lstBank);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tsetBankMasterList(lstofBank);\n\t\t\tsetBooRenderSingleDebit(true);\n\t\t\tsetBooRenderMulDebit(false);\n\t\t}", "private void buildDivisionComboBox() {\n List<String> args = Collections.singletonList(Constants.WILDCARD);\n Country selectedCountry = countryComboBox.getSelectionModel().getSelectedItem();\n if (selectedCountry != null) {\n args = Collections.singletonList(String.valueOf(selectedCountry.getCountryID()));\n }\n\n ResultSet rs = DatabaseConnection.performQuery(\n session.getConn(),\n Path.of(Constants.QUERY_SCRIPT_PATH_BASE + \"SelectDivisionsByCountry.sql\"),\n args\n );\n\n ObservableList<FirstLevelDivision> divisions = FXCollections.observableArrayList();\n try {\n if (rs != null) {\n while (rs.next()) {\n int id = rs.getInt(\"Division_ID\");\n String name = rs.getString(\"Division\");\n int countryID = rs.getInt(\"Country_ID\");\n divisions.add(new FirstLevelDivision(id, name, countryID));\n }\n }\n } catch (Exception e) {\n Common.handleException(e);\n }\n\n divisionComboBox.setItems(divisions);\n\n divisionComboBox.setConverter(new StringConverter<>() {\n @Override\n public String toString(FirstLevelDivision item) {\n return item.getDivisionName();\n }\n\n @Override\n public FirstLevelDivision fromString(String string) {\n return null;\n }\n });\n }", "@FXML\n private void handleNewPerson() {\n Shops tempShops = new Shops();\n boolean okClicked = mainApp.showPersonEditDialog(tempShops);\n if (okClicked) {\n mainApp.getPersonData().add(tempShops);\n }\n }", "private void formFiller(FormLayout fl)\n\t{\n fl.setSizeFull();\n\n\t\ttf0=new TextField(\"Name\");\n\t\ttf0.setRequired(true);\n\t\t\n sf1 = new Select (\"Customer\");\n try \n {\n\t\t\tfor(String st :db.selectAllCustomers())\n\t\t\t{\n\t\t\t\tsf1.addItem(st);\n\t\t\t}\n\t\t} \n \tcatch (UnsupportedOperationException | SQLException e) \n \t{\n \t\tErrorWindow wind = new ErrorWindow(e); \n\t UI.getCurrent().addWindow(wind);\n \t\te.printStackTrace();\n \t}\n sf1.setRequired(true);\n \n sf2 = new Select (\"Project Type\");\n sf2.addItem(\"In house\");\n sf2.addItem(\"Outsourcing\");\n df3=new DateField(\"Start Date\");\n df3.setDateFormat(\"d-M-y\");\n df3.setRequired(true);\n \n df4=new DateField(\"End Date\");\n df4.setDateFormat(\"d-M-y\");\n \n df4.setRangeStart(df3.getValue());\n \n df5=new DateField(\"Next DeadLine\");\n df5.setDateFormat(\"d-M-y\");\n df5.setRangeStart(df3.getValue());\n df5.setRangeEnd(df4.getValue());\n sf6 = new Select (\"Active\");\n sf6.addItem(\"yes\");\n sf6.addItem(\"no\");\n sf6.setRequired(true);\n \n tf7=new TextField(\"Budget(mandays)\");\n \n tf8=new TextArea(\"Description\");\n \n tf9=new TextField(\"Inserted By\");\n \n tf10=new TextField(\"Inserted At\");\n \n tf11=new TextField(\"Modified By\");\n \n tf12=new TextField(\"Modified At\");\n \n if( project.getName()!=null)tf0.setValue(project.getName());\n else tf0.setValue(\"\");\n\t\tif(!editable)tf0.setReadOnly(true);\n fl.addComponent(tf0, 0);\n \n\n if(project.getCustomerID()!=-1)\n\t\t\ttry \n \t{\n\t\t\t\tsf1.setValue(db.selectCustomerforId(project.getCustomerID()));\n\t\t\t}\n \tcatch (ReadOnlyException | SQLException e) \n \t{\n \t\tErrorWindow wind = new ErrorWindow(e); \n\t\t UI.getCurrent().addWindow(wind);\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\telse sf1.setValue(\"\");\n if(!editable)sf1.setReadOnly(true);\n fl.addComponent(sf1, 1);\n \n \n if(project.getProjectType()!=null)sf2.setValue(project.getProjectType());\n else sf2.setValue(\"\");\n if(!editable)sf2.setReadOnly(true);\n fl.addComponent(sf2, 2);\n \n if(project.getStartDate()!=null) df3.setValue(project.getStartDate());\n if(!editable)df3.setReadOnly(true);\n fl.addComponent(df3, 3);\n \n if(project.getEndDate()!=null) df4.setValue(project.getEndDate());\n if(!editable)df4.setReadOnly(true);\n fl.addComponent(df4, 4);\n \n if(project.getNextDeadline()!=null)df5.setValue(project.getNextDeadline());\n if(!editable)df5.setReadOnly(true);\n fl.addComponent(df5, 5);\n \n if (project.isActive())sf6.setValue(\"yes\");\n else sf6.setValue(\"no\");\n if(!editable)sf6.setReadOnly(true);\n fl.addComponent(sf6, 6);\n \n if(project.getBudget()!=-1.0) tf7.setValue(String.valueOf(project.getBudget()));\n else tf7.setValue(\"\");\n if(!editable)tf7.setReadOnly(true);\n fl.addComponent(tf7, 7);\n \n if(project.getDescription()!=null)tf8.setValue(project.getDescription());\n else tf8.setValue(\"\");\n if(!editable)tf8.setReadOnly(true);\n fl.addComponent(tf8, 8);\n \n if(project.getInserted_by()!=null)tf9.setValue(project.getInserted_by());\n else tf9.setValue(\"\");\n tf9.setEnabled(false);\n fl.addComponent(tf9, 9);\n \n if(project.getInserted_at()!=null)tf10.setValue(project.getInserted_at().toString());\n else tf10.setValue(\"\");\n tf10.setEnabled(false);\n fl.addComponent(tf10, 10);\n \n if(project.getModified_by()!=null)tf11.setValue(project.getModified_by());\n else tf11.setValue(\"\");\n tf11.setEnabled(false);\n fl.addComponent(tf11, 11);\n \n if(project.getModified_at()!=null)tf12.setValue(project.getModified_at().toString());\n else tf12.setValue(\"\");\n tf12.setEnabled(false);\n fl.addComponent(tf12, 12);\n \n \n\t}", "public AirlineCompany() {\n\t}", "private void newProject()\n\t{\n\t\tnew FenetreCreationProjet();\n\t}", "ch.crif_online.www.webservices.crifsoapservice.v1_00.BranchOfficeList addNewBranchOfficeList();", "public CreateAccount_GUI() {\n initComponents();\n }", "public BusinessClass() {\n initComponents();\n }", "public Project_Create_Process() {\n initComponents();\n }", "private void createFrame(){\n JPanel jPanelID = new JPanel();\n jPanelID.setLayout(new GridBagLayout());\n JLabel labelText = new JLabel(this.dialogName);\n labelText.setHorizontalAlignment(JLabel.CENTER);\n AddComponent.add(jPanelID,labelText, 0, 0, 2, 1);\n for (int field = 0; field < labelString.length; field++) {\n labelText = new JLabel(labelString[field]);\n AddComponent.add(jPanelID, labelText, 0, field + 1, 1, 1);\n AddComponent.add(jPanelID, fieldID.get(labelString[field]), 1, field + 1, 1, 1);\n }\n int offset = labelString.length + 1;\n labelText = new JLabel(DATE_OF_BIRTH);\n AddComponent.add(jPanelID, labelText, 0, offset, 1, 1);\n AddComponent.add(jPanelID, jDateChooser, 1, offset, 1, 1);\n offset++;\n labelText = new JLabel(GROUP);\n AddComponent.add(jPanelID, labelText, 0, offset, 1, 1);\n AddComponent.add(jPanelID, group, 1, offset, 1, 1);\n dialog.add(jPanelID, BorderLayout.NORTH);\n JButton okButton = new JButton(dialogName);\n okButton.addActionListener(actionEvent -> checkAndSave());\n dialog.add(okButton, BorderLayout.SOUTH);\n }", "@RequestMapping(\"/book/new\")\n public String newBook(Model model){\n model.addAttribute(\"book\", new Book ());\n return \"bookform\";\n }", "private void initFormCreateMode() {\n initSpinnerSelectionChamps();\n //TODO\n }", "private void buildFields() {\r\n buildField(txtPizzaName, GUIResource.getLabel(DIALOG, NAME_PIZZA), 0);\r\n buildField(txtCustomerName, GUIResource.getLabel(DIALOG, NAME_CUSTOMER), 1);\r\n buildField(txtPhone, GUIResource.getLabel(DIALOG, PHONE), 2);\r\n buildField(txtEmail, GUIResource.getLabel(DIALOG, EMAIL), 3);\r\n }", "public CadastroProdutoNew() {\n initComponents();\n }", "public void setCompanyCd(String companyCd) {\r\n this.companyCd = companyCd;\r\n }", "public void setCompanyCd(String companyCd) {\r\n this.companyCd = companyCd;\r\n }", "public NewBooking() {\n initComponents();\n setDate();\n setTime();\n loadcmbOrigin();\n loadcmbDestination();\n }", "@RequestMapping(value={\"/projects/add\"}, method= RequestMethod.GET)\r\n\tpublic String createProjectForm(Model model) {\r\n\t\tUser loggedUser= sessionData.getLoggedUser();\r\n\t\tmodel.addAttribute(\"loggedUser\", loggedUser);\r\n\t\tmodel.addAttribute(\"projectForm\", new Project());\r\n\t\treturn \"addProject\";\r\n\t}", "CreateCustomer(JFrame master, Connection conn) {\n\t\tsuper(\"Create New Customer\");\n\t\tthis.conn = conn;\n\t\tgetContentPane().setLayout(new FormLayout(new ColumnSpec[] {\n\t\t\t\tFormFactory.RELATED_GAP_COLSPEC,\n\t\t\t\tColumnSpec.decode(\"default:grow\"),\n\t\t\t\tFormFactory.RELATED_GAP_COLSPEC,\n\t\t\t\tColumnSpec.decode(\"default:grow\"),\n\t\t\t\tFormFactory.RELATED_GAP_COLSPEC,\n\t\t\t\tColumnSpec.decode(\"default:grow\"),\n\t\t\t\tFormFactory.RELATED_GAP_COLSPEC,\n\t\t\t\tColumnSpec.decode(\"default:grow\"),},\n\t\t\tnew RowSpec[] {\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,}));\n\t\t\n\t\tJLabel lblGender = new JLabel(\"Gender\");\n\t\tgetContentPane().add(lblGender, \"2, 2\");\n\t\t\n\t\tJLabel lblTitle = new JLabel(\"Title\");\n\t\tgetContentPane().add(lblTitle, \"4, 2\");\n\t\t\n\t\tgenderBox = new JComboBox(genders);\n\t\tgenderBox.setAutoscrolls(true);\n\t\tgetContentPane().add(genderBox, \"2, 4, fill, default\");\n\t\t\n\t\ttitleBox = new JComboBox(titles);\n\t\tgetContentPane().add(titleBox, \"4, 4\");\n\t\t\n\t\tJLabel lblMi = new JLabel(\"M.I.\");\n\t\tgetContentPane().add(lblMi, \"6, 4, right, default\");\n\t\t\n\t\tfieldMidName = new JTextField();\n\t\tgetContentPane().add(fieldMidName, \"8, 4, left, default\");\n\t\tfieldMidName.setColumns(10);\n\t\t\n\t\tJLabel lblFirstName = new JLabel(\"First Name*\");\n\t\tgetContentPane().add(lblFirstName, \"2, 6, right, default\");\n\t\t\n\t\t\n\t\tfieldFirstName = new JTextField();\n\t\tgetContentPane().add(fieldFirstName, \"4, 6, fill, default\");\n\t\tfieldFirstName.setColumns(10);\n\t\t\n\t\tnew HighlightListener(fieldFirstName);\n\t\t\n\t\tJLabel lblLastName = new JLabel(\"Last Name*\");\n\t\tgetContentPane().add(lblLastName, \"6, 6, right, default\");\n\t\t\n\t\tfieldLastName = new JTextField();\n\t\tgetContentPane().add(fieldLastName, \"8, 6, fill, default\");\n\t\tfieldLastName.setColumns(10);\n\t\tnew HighlightListener(fieldLastName);\n\t\t\n\t\tJLabel lblUserName = new JLabel(\"User Name*\");\n\t\tgetContentPane().add(lblUserName, \"2, 8, right, default\");\n\t\t\n\t\t\n\t\tfieldUsername = new JTextField();\n\t\tgetContentPane().add(fieldUsername, \"4, 8, fill, default\");\n\t\tfieldUsername.setColumns(10);\n\t\tnew HighlightListener(fieldUsername);\n\t\t\n\t\tJLabel lblPassword = new JLabel(\"Password*\");\n\t\tgetContentPane().add(lblPassword, \"6, 8, right, default\");\n\t\t\n\t\tfieldPassword = new JTextField();\n\t\tgetContentPane().add(fieldPassword, \"8, 8, fill, default\");\n\t\tfieldPassword.setColumns(10);\n\t\tnew HighlightListener(fieldPassword);\n\t\t\n\t\tJLabel lblAddress = new JLabel(\"Address\");\n\t\tgetContentPane().add(lblAddress, \"2, 10, right, default\");\n\t\t\n\t\tfieldAddress = new JTextField();\n\t\tgetContentPane().add(fieldAddress, \"4, 10, fill, default\");\n\t\tfieldAddress.setColumns(10);\n\t\t\n\t\tJLabel lblCity = new JLabel(\"City\");\n\t\tgetContentPane().add(lblCity, \"6, 10, right, default\");\n\t\t\n\t\tfieldCity = new JTextField();\n\t\tgetContentPane().add(fieldCity, \"8, 10, fill, default\");\n\t\tfieldCity.setColumns(10);\n\t\t\n\t\tJLabel lblState = new JLabel(\"State\");\n\t\tgetContentPane().add(lblState, \"2, 12, right, default\");\n\t\t\n\t\tfieldState = new JTextField();\n\t\tgetContentPane().add(fieldState, \"4, 12, fill, default\");\n\t\tfieldState.setColumns(10);\n\t\t\n\t\tJLabel lblZipCode = new JLabel(\"Zip Code\");\n\t\tgetContentPane().add(lblZipCode, \"6, 12, right, default\");\n\t\t\n\t\tfieldZipcode = new JTextField();\n\t\tgetContentPane().add(fieldZipcode, \"8, 12, fill, default\");\n\t\tfieldZipcode.setColumns(10);\n\t\t\n\t\tJLabel lblEmail = new JLabel(\"Email\");\n\t\tgetContentPane().add(lblEmail, \"2, 14, right, default\");\n\t\t\n\t\tfieldEmail = new JTextField();\n\t\tgetContentPane().add(fieldEmail, \"4, 14, fill, default\");\n\t\tfieldEmail.setColumns(10);\n\t\t\n\t\tJLabel lblTelephone = new JLabel(\"Telephone\");\n\t\tgetContentPane().add(lblTelephone, \"6, 14, right, default\");\n\t\t\n\t\tfieldTelephone = new JTextField();\n\t\tgetContentPane().add(fieldTelephone, \"8, 14, fill, default\");\n\t\tfieldTelephone.setColumns(10);\n\t\t\n\t\tJLabel lblBirthday = new JLabel(\"Birthday\");\n\t\tgetContentPane().add(lblBirthday, \"2, 16, right, default\");\n\t\t\n\t\tfieldBirthday = new JTextField();\n\t\tgetContentPane().add(fieldBirthday, \"4, 16, fill, default\");\n\t\tfieldBirthday.setColumns(10);\n\t\t\n\t\tJLabel lblMaidenName = new JLabel(\"Maiden Name\");\n\t\tgetContentPane().add(lblMaidenName, \"2, 20, right, default\");\n\t\t\n\t\tfieldMaidenName = new JTextField();\n\t\tgetContentPane().add(fieldMaidenName, \"4, 20, fill, default\");\n\t\tfieldMaidenName.setColumns(10);\n\t\t\n\t\tJLabel lblSocialSecurity = new JLabel(\"Social Security\");\n\t\tgetContentPane().add(lblSocialSecurity, \"6, 20, right, default\");\n\t\t\n\t\tfieldSocialSecurity = new JTextField();\n\t\tgetContentPane().add(fieldSocialSecurity, \"8, 20, fill, default\");\n\t\tfieldSocialSecurity.setColumns(10);\n\t\t\n\t\tJLabel lblCreditCardType = new JLabel(\"Credit Card Type\");\n\t\tgetContentPane().add(lblCreditCardType, \"2, 24, right, default\");\n\t\t\n\t\tcctypeBox = new JComboBox(cctypes);\n\t\tgetContentPane().add(cctypeBox, \"4, 24, fill, default\");\n\t\t\n\t\tJLabel lblCreditCard = new JLabel(\"Credit Card #\");\n\t\tgetContentPane().add(lblCreditCard, \"6, 24, right, default\");\n\t\t\n\t\tfieldCCnumber = new JTextField();\n\t\tgetContentPane().add(fieldCCnumber, \"8, 24, fill, default\");\n\t\tfieldCCnumber.setColumns(10);\n\t\t\n\t\tJLabel lblCcv = new JLabel(\"CCV\");\n\t\tgetContentPane().add(lblCcv, \"2, 26, right, default\");\n\t\t\n\t\tfieldCCV = new JTextField();\n\t\tgetContentPane().add(fieldCCV, \"4, 26, fill, default\");\n\t\tfieldCCV.setColumns(10);\n\t\t\n\t\tJLabel lblExpirDate = new JLabel(\"Expir. Date\");\n\t\tgetContentPane().add(lblExpirDate, \"6, 26, right, default\");\n\t\t\n\t\tfieldExpirDate = new JTextField();\n\t\tgetContentPane().add(fieldExpirDate, \"8, 26, fill, default\");\n\t\tfieldExpirDate.setColumns(10);\n\t\t\n\t\tJButton btnSubmit = new JButton(\"Submit\");\n\t\tgetContentPane().add(btnSubmit, \"4, 32\");\n\t\t\n\t\t\n\t\tbtnSubmit.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent ee) {\n\t\t\t\tif (CreateCustomer.this.fieldFirstName.getText().trim().length() == 0\n\t\t\t\t\t|| CreateCustomer.this.fieldLastName.getText().trim().length() == 0\n\t\t\t\t\t|| CreateCustomer.this.fieldUsername.getText().trim().length() == 0\n\t\t\t\t\t|| CreateCustomer.this.fieldPassword.getText().trim().length() == 0\n\t\t\t\t\t\t) {\n\t\t\t\t\tJOptionPane.showMessageDialog(CreateCustomer.this, \"Please fill highlighted fields.\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tinsertCustomer();\n\t\t\t\t\tJOptionPane.showMessageDialog(CreateCustomer.this, \"Created new user '\" + \n\t\t\t\t\t\t\t\tCreateCustomer.this.fieldUsername.getText() + \"'\");\n\t\t\t\t\tCreateCustomer.this.setVisible(false);\n\t\t\t\t\t\n\t\t\t\t\tCreateCustomer.this.dispose();\n\t\t\t\t\tCreateCustomer.this.parent.setVisible(true);\n\t\t\t\t\t//\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tparent = master;\n\t\tJButton btnCancel = new JButton(\"Cancel\");\n\t\tgetContentPane().add(btnCancel, \"6, 32\");\n\t\tbtnCancel.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent ee) {\n\t\t\t\tCreateCustomer.this.setVisible(false);\n\t\t\t\tCreateCustomer.this.dispose();\n\t\t\t\tCreateCustomer.this.parent.setVisible(true);\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\t\n\t\tthis.setSize(new Dimension (500, 500));\n\t\t\n\t\tthis.addWindowListener(this);\n\t\tthis.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\t\t\n\t\tthis.pack();\n\t\tthis.setLocationRelativeTo(null);\n\t\tthis.setVisible(true);\n\t}", "public void createCompte(Compte compte);", "private void createGrpClinicSelection() {\n\n\t}", "@Override\n\tprotected Control createDialogArea(Composite parent) {\n\n\t\tgetShell().setText(\"Person anlegen oder anpassen\");\n\n\t\tComposite container = (Composite) super.createDialogArea(parent);\n\t\tcontainer.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tparentForm = formToolkit.createForm(container);\n\t\tformToolkit.paintBordersFor(parentForm);\n\t\tformToolkit.decorateFormHeading(parentForm);\n\t\tparentForm.setText(\"Person anlegen oder anpassen\");\n\t\tparentForm.getBody().setLayout(new GridLayout(1, false));\n\n\t\tSection baseSection = formToolkit.createSection(parentForm.getBody(),\n\t\t\t\tSection.TITLE_BAR);\n\t\tbaseSection.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true,\n\t\t\t\t1, 1));\n\t\tformToolkit.paintBordersFor(baseSection);\n\t\tbaseSection.setText(\"Basisdaten\");\n\n\t\tComposite composite = formToolkit\n\t\t\t\t.createComposite(baseSection, SWT.NONE);\n\t\tformToolkit.paintBordersFor(composite);\n\t\tbaseSection.setClient(composite);\n\t\tcomposite.setLayout(new GridLayout(4, false));\n\n\t\tLabel nameLabel = formToolkit.createLabel(composite, \"Name\", SWT.NONE);\n\t\tnameLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false,\n\t\t\t\tfalse, 1, 1));\n\n\t\tnameText = formToolkit.createText(composite, \"\", SWT.BORDER);\n\t\tnameText.setText(\"\");\n\t\tnameText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false,\n\t\t\t\t1, 1));\n\n\t\tLabel firstnameLabel = formToolkit.createLabel(composite, \"Vorname\",\n\t\t\t\tSWT.NONE);\n\t\tfirstnameLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false,\n\t\t\t\tfalse, 1, 1));\n\n\t\tfirstnameText = formToolkit.createText(composite, \"\", SWT.BORDER);\n\t\tGridData gd_firstnameText = new GridData(SWT.FILL, SWT.CENTER, true,\n\t\t\t\tfalse, 1, 1);\n\t\tgd_firstnameText.minimumWidth = 175;\n\t\tfirstnameText.setLayoutData(gd_firstnameText);\n\n\t\tLabel streetLabel = formToolkit.createLabel(composite, \"Strasse\",\n\t\t\t\tSWT.NONE);\n\t\tstreetLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false,\n\t\t\t\tfalse, 1, 1));\n\n\t\tstreetText = formToolkit.createText(composite, \"\", SWT.BORDER);\n\t\tstreetText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true,\n\t\t\t\tfalse, 1, 1));\n\t\tnew Label(composite, SWT.NONE);\n\t\tnew Label(composite, SWT.NONE);\n\n\t\tLabel postalcodeLabel = formToolkit.createLabel(composite, \"PLZ\",\n\t\t\t\tSWT.NONE);\n\t\tpostalcodeLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER,\n\t\t\t\tfalse, false, 1, 1));\n\n\t\tpostalcodeText = formToolkit.createText(composite, \"\", SWT.BORDER);\n\t\tpostalcodeText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true,\n\t\t\t\tfalse, 1, 1));\n\n\t\tLabel cityLabel = formToolkit.createLabel(composite, \"Ort\", SWT.NONE);\n\t\tcityLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false,\n\t\t\t\tfalse, 1, 1));\n\n\t\tcityText = formToolkit.createText(composite, \"\", SWT.BORDER);\n\t\tcityText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false,\n\t\t\t\t1, 1));\n\n\t\tLabel birthdayLabel = formToolkit.createLabel(composite, \"Geburtstag\",\n\t\t\t\tSWT.NONE);\n\t\tbirthdayLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.TOP, false,\n\t\t\t\tfalse, 1, 1));\n\n\t\tfinal DateTime dateTime = new DateTime(composite, SWT.BORDER\n\t\t\t\t| SWT.CALENDAR);\n\t\tformToolkit.adapt(dateTime);\n\t\tformToolkit.paintBordersFor(dateTime);\n\t\tnew Label(composite, SWT.NONE);\n\t\tnew Label(composite, SWT.NONE);\n\n\t\tformToolkit.adapt(composite);\n\t\tformToolkit.paintBordersFor(composite);\n\n\t\tSection advancedSection = formToolkit.createSection(\n\t\t\t\tparentForm.getBody(), Section.TITLE_BAR);\n\t\tadvancedSection.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true,\n\t\t\t\tfalse, 1, 1));\n\t\tformToolkit.paintBordersFor(advancedSection);\n\t\tadvancedSection.setText(\"erweiterte Daten\");\n\n\t\tComposite advancedComposite = formToolkit.createComposite(\n\t\t\t\tadvancedSection, SWT.NONE);\n\t\tformToolkit.paintBordersFor(advancedComposite);\n\t\tadvancedSection.setClient(advancedComposite);\n\t\tadvancedComposite.setLayout(new GridLayout(2, false));\n\n\t\tnew Label(advancedComposite, SWT.NONE);\n\n\t\tfinal Button activeMemberCheckButton = new Button(advancedComposite,\n\t\t\t\tSWT.CHECK);\n\t\tformToolkit.adapt(activeMemberCheckButton, true, true);\n\t\tactiveMemberCheckButton.setText(\"Aktives Mitglied\");\n\n\t\tLabel telephoneLabel = formToolkit.createLabel(advancedComposite,\n\t\t\t\t\"Telefon\", SWT.NONE);\n\t\ttelephoneLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.TOP, false,\n\t\t\t\tfalse, 1, 1));\n\n\t\ttelephoneText = formToolkit.createText(advancedComposite, \"\",\n\t\t\t\tSWT.BORDER);\n\t\ttelephoneText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true,\n\t\t\t\tfalse, 1, 1));\n\n\t\tLabel mobileLabel = formToolkit.createLabel(advancedComposite, \"Handy\",\n\t\t\t\tSWT.NONE);\n\t\tmobileLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.TOP, false,\n\t\t\t\tfalse, 1, 1));\n\n\t\tmobileText = formToolkit.createText(advancedComposite, \"\", SWT.BORDER);\n\t\tgd_firstnameText.minimumWidth = 175;\n\t\tmobileText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true,\n\t\t\t\tfalse, 1, 1));\n\n\t\tLabel faxLabel = formToolkit.createLabel(advancedComposite, \"Fax\",\n\t\t\t\tSWT.NONE);\n\t\tfaxLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.TOP, false, false,\n\t\t\t\t1, 1));\n\n\t\tfaxText = formToolkit.createText(advancedComposite, \"\", SWT.BORDER);\n\t\tfaxText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false,\n\t\t\t\t1, 1));\n\n\t\tLabel emailLabel = formToolkit.createLabel(advancedComposite, \"E-Mail\",\n\t\t\t\tSWT.NONE);\n\t\temailLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.TOP, false, false,\n\t\t\t\t1, 1));\n\n\t\temailText = formToolkit.createText(advancedComposite, \"\", SWT.BORDER);\n\t\temailText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false,\n\t\t\t\t1, 1));\n\n\t\tnameText.setText(person.getName() != null ? person.getName() : \"\");\n\t\tfirstnameText.setText(person.getFirstname() != null ? person\n\t\t\t\t.getFirstname() : \"\");\n\t\tstreetText\n\t\t\t\t.setText(person.getStreet() != null ? person.getStreet() : \"\");\n\t\tpostalcodeText.setText(person.getPostalcode() != null ? person\n\t\t\t\t.getPostalcode() : \"\");\n\t\tcityText.setText(person.getCity() != null ? person.getCity() : \"\");\n\t\tif (person.getBirthday() != null) {\n\t\t\tCalendar c = Calendar.getInstance();\n\t\t\tc.setTime(person.getBirthday());\n\t\t\tdateTime.setDate(c.get(Calendar.YEAR), c.get(Calendar.MONTH),\n\t\t\t\t\tc.get(Calendar.DAY_OF_MONTH));\n\t\t}\n\n\t\tactiveMemberCheckButton\n\t\t\t\t.setSelection(person.isActiveMember() != null ? person\n\t\t\t\t\t\t.isActiveMember() : false);\n\t\ttelephoneText.setText(person.getPhone() != null ? person.getPhone()\n\t\t\t\t: \"\");\n\t\tmobileText\n\t\t\t\t.setText(person.getMobile() != null ? person.getMobile() : \"\");\n\t\tfaxText.setText(person.getFax() != null ? person.getFax() : \"\");\n\t\temailText.setText(person.getEmail() != null ? person.getEmail() : \"\");\n\n\t\tModifyListener modifyListener = new ModifyListener() {\n\t\t\t@Override\n\t\t\tpublic void modifyText(ModifyEvent e) {\n\t\t\t\tif (e.widget == nameText) {\n\t\t\t\t\tperson.setName(nameText.getText());\n\t\t\t\t} else if (e.widget == firstnameText) {\n\t\t\t\t\tperson.setFirstname(firstnameText.getText());\n\t\t\t\t} else if (e.widget == streetText) {\n\t\t\t\t\tperson.setStreet(streetText.getText());\n\t\t\t\t} else if (e.widget == postalcodeText) {\n\t\t\t\t\tperson.setPostalcode(postalcodeText.getText());\n\t\t\t\t} else if (e.widget == cityText) {\n\t\t\t\t\tperson.setCity(cityText.getText());\n\t\t\t\t} else if (e.widget == telephoneText) {\n\t\t\t\t\tperson.setPhone(telephoneText.getText());\n\t\t\t\t} else if (e.widget == mobileText) {\n\t\t\t\t\tperson.setMobile(mobileText.getText());\n\t\t\t\t} else if (e.widget == faxText) {\n\t\t\t\t\tperson.setFax(faxText.getText());\n\t\t\t\t} else if (e.widget == emailText) {\n\t\t\t\t\tperson.setEmail(emailText.getText());\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tnameText.addModifyListener(modifyListener);\n\t\tfirstnameText.addModifyListener(modifyListener);\n\t\tstreetText.addModifyListener(modifyListener);\n\t\tpostalcodeText.addModifyListener(modifyListener);\n\t\tcityText.addModifyListener(modifyListener);\n\t\ttelephoneText.addModifyListener(modifyListener);\n\t\tmobileText.addModifyListener(modifyListener);\n\t\tfaxText.addModifyListener(modifyListener);\n\t\temailText.addModifyListener(modifyListener);\n\t\tactiveMemberCheckButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tperson.setActiveMember(activeMemberCheckButton.getSelection());\n\t\t\t}\n\t\t});\n\t\tdateTime.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tCalendar c = Calendar.getInstance();\n\t\t\t\tc.set(dateTime.getYear(), dateTime.getMonth(),\n\t\t\t\t\t\tdateTime.getDay());\n\t\t\t\tperson.setBirthday(c.getTime());\n\t\t\t}\n\t\t});\n\n\t\treturn container;\n\t}", "private void prepareChecklistFormModel() \n\t{\n\t\tchecklistGroup.clear();\n\t\tSet<ChecklistGroup> groupCollection = checklistService.loadGroups();\n\t\tIterator it = groupCollection.iterator();\n\t\twhile(it.hasNext())\n\t\t{\t\t\t\n\t\t\tChecklistGroup group = (ChecklistGroup) it.next();\n\t\t\tchecklistGroup.add(new ChecklistGroupModel(Integer.toString(group.getId()),\n\t\t\t\t\t\t\t\t\t\t\t\tgroup.getGroupName(),\n\t\t\t\t\t\t\t\t\t\t\t\tchecklistService.loadActivityCollection(Integer.toString(group.getId()))));\t\t \t\n\t\t}\n\t}", "public String newBoleta() {\n\t\tresetForm();\n\t\treturn \"/boleta/insert.xhtml\";\n\t}", "public vContactosDoctor() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n group_create = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n group_name_txt = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n under = new javax.swing.JComboBox();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel1.setText(\"Create Group Ledger\");\n\n group_name_txt.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(153, 153, 153)));\n group_name_txt.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n group_name_txtFocusLost(evt);\n }\n });\n\n jLabel2.setText(\"*Group Name:\");\n\n jLabel3.setText(\"*Under:\");\n\n under.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"\" }));\n under.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(153, 153, 153)));\n under.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n underFocusLost(evt);\n }\n });\n\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/final_project/Icons/Save-icon.png\"))); // NOI18N\n jButton1.setText(\"Save\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/final_project/Icons/Button-Refresh-icon.png\"))); // NOI18N\n jButton2.setText(\"Reset\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jLabel4.setText(\"Enter Valid Group Name!\");\n\n jLabel5.setText(\"Select One Group!\");\n\n javax.swing.GroupLayout group_createLayout = new javax.swing.GroupLayout(group_create);\n group_create.setLayout(group_createLayout);\n group_createLayout.setHorizontalGroup(\n group_createLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(group_createLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(group_createLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(group_createLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(group_createLayout.createSequentialGroup()\n .addComponent(jButton2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton1))\n .addGroup(group_createLayout.createSequentialGroup()\n .addGroup(group_createLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(group_name_txt, javax.swing.GroupLayout.PREFERRED_SIZE, 207, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(under, javax.swing.GroupLayout.PREFERRED_SIZE, 207, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 207, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 207, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n );\n group_createLayout.setVerticalGroup(\n group_createLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(group_createLayout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addGroup(group_createLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(group_name_txt, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(10, 10, 10)\n .addGroup(group_createLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(under, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(group_createLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jButton1)\n .addComponent(jButton2))\n .addGap(29, 29, 29))\n );\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 .addComponent(group_create, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(group_create, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n }", "@FXML\n public void addHospital() {\n \tnew eMenuHandler().hideMenu();\n \tDisplayBuildingInstructions.showBuildingInstr();\n \tAddEntityOnMouseClick.setBuildMode(Boolean.TRUE);\n \tAddEntityOnMouseClick.entityList(new BuildingHospital(0, 0));\n }", "CreateNewCustomerJPanel(JPanel userProcessContainer, Business business, SalesPerson salesPerson) {\n initComponents();\n this.userProcessContainer=userProcessContainer;\n this.business=business;\n this.salesPerson=salesPerson;//To change body of generated methods, choose Tools | Templates.\n \n comboMarket.removeAllItems();\n for(Market market: business.getBusiness_MarketList().getMarketList()){\n comboMarket.addItem(market);\n }\n }", "public AccountTypeInfomation() {\n initComponents(); \n rbtnSelectAll.setSelected(false);\n btnCreate.setVisible(true);\n btnEdit.setVisible(false);\n btnRemove.setVisible(false);\n loadDefault();\n }", "@GetMapping(\"/add-contact\")\n\tpublic String openAddContactForm(Model model) {\n\t\tmodel.addAttribute(\"title\",\"Add Contact\");\n\t\tmodel.addAttribute(\"contact\",new Contact());\n\t\treturn \"normal/add_contact_form\";\n\t}", "public PRINCIPAL() {\n initComponents();\n }", "private void fillCreateOrEditForm(String name, int branchId) {\n waitForElementVisibility(xpathFormHeading);\n String actual = assertAndGetAttributeValue(xpathFormHeading, \"innerText\");\n assertEquals(actual, FORM_HEADING,\n \"Actual heading '\" + actual + \"' should be same as expected heading '\" + FORM_HEADING\n + \"'.\");\n logger.info(\"# User is on '\" + actual + \"' form\");\n assertAndType(xpathNameTF, name);\n logger.info(\"# Entered staff name: \" + name);\n selectByValue(xpathSelectBranch, \"number:\" + branchId);\n logger.info(\"# Select branch id: \" + branchId);\n }", "public frameAddDepartments() {\n initComponents();\n }" ]
[ "0.5928772", "0.58036536", "0.57924247", "0.5718117", "0.5714938", "0.5600638", "0.5525192", "0.5521997", "0.55109435", "0.5504687", "0.5455618", "0.5434242", "0.5409669", "0.53969765", "0.539449", "0.53904814", "0.5383626", "0.5377376", "0.5356142", "0.5352244", "0.53353703", "0.53288496", "0.53256035", "0.52861166", "0.5255361", "0.5251912", "0.52433646", "0.5242705", "0.5240771", "0.52089185", "0.52045256", "0.5200484", "0.51851887", "0.5183626", "0.51802903", "0.51754564", "0.5170882", "0.51691204", "0.5163387", "0.51535565", "0.51438123", "0.5134548", "0.51282877", "0.51282203", "0.5119725", "0.51056135", "0.50884396", "0.5078829", "0.50761944", "0.5061972", "0.50604606", "0.5047075", "0.50454295", "0.5037951", "0.5033612", "0.5032627", "0.50324416", "0.5024807", "0.50243324", "0.50226647", "0.5013414", "0.5002195", "0.5002161", "0.49983993", "0.4996989", "0.4994472", "0.49879414", "0.49770758", "0.49753505", "0.49722895", "0.49703282", "0.49700835", "0.49675977", "0.49662602", "0.496503", "0.49608582", "0.49593312", "0.49512738", "0.49505115", "0.4944765", "0.4944034", "0.4937343", "0.4937343", "0.49351305", "0.49350747", "0.4931764", "0.49309152", "0.49228418", "0.49180362", "0.49141178", "0.49136627", "0.49127176", "0.4909981", "0.4908656", "0.4908403", "0.49047238", "0.49030802", "0.48987645", "0.4890651", "0.48885682" ]
0.7345199
0
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(); jLabel1 = new javax.swing.JLabel(); jComboBox1 = new javax.swing.JComboBox(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jComboBox2 = new javax.swing.JComboBox(); jButton1 = new javax.swing.JButton(); jPanel2 = new javax.swing.JPanel(); jScrollPane1 = new javax.swing.JScrollPane(); jTable1 = new javax.swing.JTable(); jPanel3 = new javax.swing.JPanel(); jTextField1 = new javax.swing.JTextField(); jTextField2 = new javax.swing.JTextField(); jButton3 = new javax.swing.JButton(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); jComboBox3 = new javax.swing.JComboBox(); jLabel7 = new javax.swing.JLabel(); jButton6 = new javax.swing.JButton(); jButton5 = new javax.swing.JButton(); jTextField3 = new javax.swing.JTextField(); jTextField4 = new javax.swing.JTextField(); jButton2 = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jPanel1.setBackground(new java.awt.Color(0, 102, 102)); jPanel1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); jPanel1.setForeground(new java.awt.Color(255, 255, 255)); jPanel1.setFont(new java.awt.Font("Times New Roman", 0, 11)); // NOI18N jLabel1.setBackground(new java.awt.Color(0, 102, 102)); jLabel1.setForeground(new java.awt.Color(255, 255, 255)); jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel1.setText("Company & Division Binding "); jLabel1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); jComboBox1.setBackground(new java.awt.Color(0, 102, 102)); jComboBox1.setForeground(new java.awt.Color(255, 255, 255)); jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Please Select" })); jLabel2.setBackground(new java.awt.Color(0, 102, 102)); jLabel2.setForeground(new java.awt.Color(255, 255, 255)); jLabel2.setText("Company"); jLabel3.setBackground(new java.awt.Color(0, 102, 102)); jLabel3.setForeground(new java.awt.Color(255, 255, 255)); jLabel3.setText("Division"); jComboBox2.setBackground(new java.awt.Color(0, 102, 102)); jComboBox2.setForeground(new java.awt.Color(255, 255, 255)); jComboBox2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Please Select" })); jButton1.setBackground(new java.awt.Color(0, 102, 102)); jButton1.setForeground(new java.awt.Color(255, 255, 255)); jButton1.setText("Bind "); jButton1.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jButton1MouseClicked(evt); } }); jTable1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); jTable1.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null}, {null, null, null}, {null, null, null}, {null, null, null} }, new String [] { "Title 1", "Title 2", "Title 3" } )); jScrollPane1.setViewportView(jTable1); jPanel3.setBackground(new java.awt.Color(0, 102, 102)); jPanel3.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); jPanel3.setForeground(new java.awt.Color(255, 255, 255)); jTextField1.setFont(new java.awt.Font("Times New Roman", 1, 11)); // NOI18N jTextField2.setFont(new java.awt.Font("Times New Roman", 1, 11)); // NOI18N jButton3.setBackground(new java.awt.Color(0, 102, 102)); jButton3.setForeground(new java.awt.Color(255, 255, 255)); jButton3.setText("Release /Un-Bind"); jButton3.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jButton3MouseClicked(evt); } }); jLabel4.setBackground(new java.awt.Color(0, 102, 102)); jLabel4.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N jLabel4.setForeground(new java.awt.Color(255, 255, 255)); jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel4.setText("UnBind The Division from its Parent Company"); jLabel4.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); jLabel5.setBackground(new java.awt.Color(0, 102, 102)); jLabel5.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N jLabel5.setForeground(new java.awt.Color(255, 255, 255)); jLabel5.setText("Division"); jLabel6.setBackground(new java.awt.Color(0, 102, 102)); jLabel6.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N jLabel6.setForeground(new java.awt.Color(255, 255, 255)); jLabel6.setText("Current Parent Company"); javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); jPanel3.setLayout(jPanel3Layout); jPanel3Layout.setHorizontalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addContainerGap(85, Short.MAX_VALUE) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, 181, Short.MAX_VALUE) .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGap(13, 13, 13) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jButton3, javax.swing.GroupLayout.DEFAULT_SIZE, 144, Short.MAX_VALUE) .addComponent(jTextField2) .addComponent(jTextField1)) .addGap(28, 28, 28)) .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); jPanel3Layout.setVerticalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jTextField1) .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(25, 25, 25) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton3) .addGap(309, 309, 309)) ); jComboBox3.setBackground(new java.awt.Color(0, 153, 153)); jComboBox3.setForeground(new java.awt.Color(255, 255, 255)); jComboBox3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Please Select" })); jLabel7.setText("Division"); jButton6.setBackground(new java.awt.Color(0, 102, 102)); jButton6.setForeground(new java.awt.Color(255, 255, 255)); jButton6.setText("Check Selected Division's Bind"); jButton6.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jButton6MouseClicked(evt); } }); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE) .addGap(2, 2, 2)) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jComboBox3, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(95, 95, 95))) .addGap(5, 5, 5) .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel7) .addComponent(jComboBox3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addGap(20, 20, 20) .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(jPanel2Layout.createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton6) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane1)))) ); jButton5.setBackground(new java.awt.Color(0, 102, 102)); jButton5.setForeground(new java.awt.Color(255, 255, 255)); jButton5.setText("Go HomePage"); jButton5.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jButton5MouseClicked(evt); } }); jTextField3.setEditable(false); jTextField3.setBackground(new java.awt.Color(0, 102, 102)); jTextField3.setForeground(new java.awt.Color(255, 255, 255)); jTextField4.setEditable(false); jTextField4.setBackground(new java.awt.Color(0, 102, 102)); jTextField4.setForeground(new java.awt.Color(255, 255, 255)); jButton2.setBackground(new java.awt.Color(0, 102, 102)); jButton2.setFont(new java.awt.Font("Times New Roman", 0, 14)); // NOI18N jButton2.setForeground(new java.awt.Color(255, 255, 255)); jButton2.setText("View Selected Company's Current Bind"); jButton2.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); jButton2.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jButton2MouseClicked(evt); } }); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 594, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jTextField4) .addGap(20, 20, 20)) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(48, 48, 48) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 194, Short.MAX_VALUE)) .addGap(97, 97, 97) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jComboBox1, 0, 213, Short.MAX_VALUE) .addComponent(jComboBox2, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGap(18, 18, 18) .addComponent(jButton2) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 163, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jButton2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton1) .addGap(4, 4, 4) .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 33, Short.MAX_VALUE) .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) ); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(0, 0, 0)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); 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 quotaGUI() {\n initComponents();\n }", "public BloodDonationGUI() {\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 myForm() {\n\t\t\tinitComponents();\n\t\t}", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "@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 kunde() {\n initComponents();\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\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 EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@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 Ventaform() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.7318655", "0.7289971", "0.7289971", "0.7289971", "0.72860885", "0.7247684", "0.7213551", "0.72080934", "0.7195069", "0.7189731", "0.7183451", "0.71579945", "0.7147311", "0.7092687", "0.70798934", "0.7055229", "0.69868284", "0.6976656", "0.6954658", "0.6952896", "0.69449455", "0.6941766", "0.6935132", "0.6930653", "0.6926533", "0.6924141", "0.6924061", "0.691111", "0.69099087", "0.6892076", "0.68916506", "0.68900466", "0.6889725", "0.68877757", "0.68822116", "0.6881593", "0.688101", "0.68768275", "0.687494", "0.68733007", "0.6870892", "0.6859287", "0.6855569", "0.68548936", "0.6854684", "0.6854257", "0.68525183", "0.6851817", "0.6851817", "0.6842853", "0.68366945", "0.68358713", "0.68282205", "0.6827655", "0.68258286", "0.68239987", "0.68230146", "0.6816489", "0.68163615", "0.68090576", "0.6808936", "0.68077636", "0.6806842", "0.6806332", "0.68016505", "0.67948395", "0.67940617", "0.67914915", "0.6789197", "0.6788211", "0.6787595", "0.67870516", "0.678107", "0.6765869", "0.67651415", "0.6764227", "0.675663", "0.67545617", "0.67512757", "0.6750906", "0.6742937", "0.6738739", "0.67365867", "0.67357975", "0.673252", "0.6726489", "0.67264307", "0.67190623", "0.6715255", "0.6713752", "0.67136234", "0.6707712", "0.67064816", "0.6703903", "0.6700871", "0.6698895", "0.6698197", "0.66973954", "0.66938066", "0.66912496", "0.66892624" ]
0.0
-1
/TestThis tt = new TestThis("aa", 17); System.out.println(tt.);
public static void main(String[] args) { TestThis tt1 = new TestThis(); //属性和方法都要通过对象.方法和对象.属性进行调用 tt1.fun2(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Test(int someConstructorParameter) {\n //inlineTestComment\n }", "public Test05() {\n this(0);\n n2 = \"n2\";\n n4 = \"n4\";\n }", "public static void main(String args[]) \n {\n\t\t\t\t\t\t\t\t\t\t\ttest t = new test(); \n System.out.println(\"Hello, World\" + t.a); \n \t\t\t\t\t\t\t\t}", "public String getCode(ClassDecl cl)\r\n\t{\r\n\t\tString testcode = \"#Region \\\"Testing code generated by KawigiEdit\\\"\\n\";\r\n\t\ttestcode += \"Module MainModule\\n\";\r\n\t\ttestcode += \"\\tSub Main()\\n\";\r\n\t\tEditorDataType returnType = cl.getMethod().getReturnType();\r\n\t\ttestcode += \"\\t\\tDim Errors As Boolean = False\\n\";\r\n\t\ttestcode += \"\\t\\tDim Answer, DesiredAnswer As \" + EditorLanguage.VB.getName(returnType) + \"\\n\";\r\n\t\ttestcode += \"\\t\\tDim Obj As \" + cl.getName() + \"\\n\";\r\n\t\ttestcode += \"\\t\\tDim Time As DateTime\\n\";\r\n\t\tif (returnType.isArrayType())\r\n\t\t{\r\n\t\t\ttestcode += \"\\t\\tDim Same As Boolean\\n\";\r\n\t\t\ttestcode += \"\\t\\tDim i As Integer\\n\";\r\n\t\t}\r\n\t\tboolean stringType = returnType.isType(EditorDataType.String);\r\n\t\tEditorDataType[] paramTypes = cl.getMethod().getParamTypes();\r\n\t\ttestcode += \"\\t\\t<%:start-tests%>\\n\";\r\n\t\tfor (int i=0; i<cl.countTests(); i++)\r\n\t\t{\r\n\t\t\ttestcode += \"\\t\\tObj = New \" + cl.getName() + \"()\\n\";\r\n\t\t\ttestcode += \"\\t\\tTime = DateTime.Now\\n\";\r\n\t\t\ttestcode += \"\\t\\tAnswer = Obj.\" + cl.getMethod().getName() + \"(\" + toTest(cl.getTest(i).getParameters(), paramTypes) + \")\\n\";\r\n\t\t\ttestcode += \"\\t\\tConsole.WriteLine(\\\"Time: \\\" & (DateTime.Now.Subtract(Time)).TotalSeconds & \\\" seconds\\\")\\n\";\r\n\t\t\ttestcode += \"\\t\\tDesiredAnswer = \" + translateObject(returnType, cl.getTest(i).getAnswer()) + \"\\n\";\r\n\t\t\ttestcode += \"\\t\\tConsole.WriteLine(\\\"Your Answer:\\\")\\n\";\r\n\t\t\tif (returnType.isArrayType())\r\n\t\t\t{\r\n\t\t\t\ttestcode += \"\\t\\tConsole.Write(\\\"{ \\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tIf (Answer.Length > 0) Then\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tConsole.Write(\" + (stringType ? \"\\\"\\\"\\\"\\\" & \" : \"\") + \"Answer(0)\" + (stringType ? \" & \\\"\\\"\\\"\\\"\" : \"\") + \")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tFor i = 1 To Answer.Length - 1\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\t\\tConsole.Write(\\\"\\t, \" + (stringType ? \"\\\"\\\"\" : \"\") + \"\\\" & Answer(i)\" + (stringType ? \" & \\\"\\\"\\\"\\\"\" : \"\") + \")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tNext\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tConsole.WriteLine(\\\" }\\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tElse\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tConsole.WriteLine(\\\"}\\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tEnd If\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tConsole.WriteLine(\\\"Desired Answer:\\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tConsole.Write(\\\"{ \\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tIf (DesiredAnswer.Length > 0) Then\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tConsole.Write(\" + (stringType ? \"\\\"\\\"\\\"\\\" & \" : \"\") + \"DesiredAnswer(0)\" + (stringType ? \" & \\\"\\\"\\\"\\\"\" : \"\") + \")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tFor i = 1 To DesiredAnswer.Length - 1\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\t\\tConsole.Write(\\\", \" + (stringType ? \"\\\"\\\"\" : \"\") + \"\\\" & DesiredAnswer(i)\" + (stringType ? \" & \\\"\\\"\\\"\\\"\" : \"\") + \")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tNext\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tConsole.WriteLine(\\\" }\\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tElse\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tConsole.WriteLine(\\\"}\\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tEnd If\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tSame = (Answer.Length = DesiredAnswer.Length)\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tIf (Same)\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tFor i = 0 To DesiredAnswer.Length - 1\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\t\\tIf Answer(i) <> DesiredAnswer(i) Then\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\t\\t\\tSame = False\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\t\\tEnd If\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tNext\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tEnd If\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tIf Same Then\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tConsole.WriteLine(\\\"Match :-)\\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tElse\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tConsole.WriteLine(\\\"DOESN'T MATCH!!!!\\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tErrors = True\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tEnd If\\n\";\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttestcode += \"\\t\\tConsole.WriteLine(\\\"\\t\" + (stringType ? \"\\\"\\\"\" : \"\") + \"\\\" & Answer\" + (stringType ? \" & \\\"\\\"\\\"\\\"\" : \"\") + \")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tConsole.WriteLine(\\\"Desired Answer:\\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tConsole.WriteLine(\\\"\\t\" + (stringType ? \"\\\"\\\"\" : \"\") +\"\\\" & DesiredAnswer\" + (stringType ? \" & \\\"\\\"\\\"\\\"\" : \"\") + \")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tIf Answer = DesiredAnswer Then\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tConsole.WriteLine(\\\"Match :-)\\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tElse\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tConsole.WriteLine(\\\"DOESN'T MATCH!!!!\\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tErrors = True\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tEnd If\\n\";\r\n\t\t\t}\r\n\t\t\ttestcode += \"\\t\\tConsole.WriteLine()\\n\";\r\n\t\t}\r\n\t\ttestcode += \"\\t\\t<%:end-tests%>\\n\";\r\n\t\ttestcode += \"\\t\\t\\n\\t\\tIf Errors Then\\n\";\r\n\t\ttestcode += \"\\t\\t\\tConsole.WriteLine(\\\"Some of the test cases had errors :-(\\\")\\n\";\r\n\t\ttestcode += \"\\t\\tElse\\n\";\r\n\t\ttestcode += \"\\t\\t\\tConsole.WriteLine(\\\"You're a stud (at least on the test data)! :-D \\\")\\n\";\r\n\t\ttestcode += \"\\t\\tEnd If\\n\";\r\n\t\ttestcode += \"\\tEnd Sub\\n\";\r\n\t\ttestcode += \"End Module\\n\";\r\n\t\ttestcode += \"#End Region\\n\";\r\n\t\treturn testcode;\r\n\t}", "@Test\n public void testClassName() {\n// assertEquals(SParser.parse(\"HardDisk\").toHTML(new SEclipseStyle(), new SClassName()),\"<pre style='color:#000000;background:#ffffff;'></pre>\"); //ClassName\n// assertEquals(\"{\",\"\"); //CurlyBracket\n// assertEquals(\"class\",\"\");//KeyWord\n// assertEquals(\"String\",\"\");//MainClass\n// assertEquals(\"String string\",\"\");//MainClass\n// assertEquals(\"public\",\"\");//Modifier\n// assertEquals(\"this\",\"\"); //PseudoVariable\n// assertEquals(\";\",\"\"); //Semicolon\n// assertEquals(\"\\\"string\\\"\",\"\"); //String\n// assertEquals(\"\",\"\"); //Body Alone\n\n// String html = source.toHTML(new SEclipseStyle(), new SClassName());\n// assertEquals(html, \"<pre style=\"\n// + \"'color:#000000;background:#ffffff;'>\"\n// + \"public class MainClass {\\n\"\n// + \" \\n\"\n// + \" public static void main(String args[]){\\n\"\n// + \" GradeBook myGradeBook=new GradeBook();\\n\"\n// + \" String courseName=\\\"Java \\\";\\n\"\n// + \" myGradeBook.displayMessage(courseName);\\n\"\n// + \" \\n\"\n// + \" }\\n\"\n// + \" }public class Foo {\\n\"\n// + \" \\n\"\n// + \" public boolean bar(){\\n\"\n// + \" super.foo();\\n\"\n// + \" return false;\\n\"\n// + \" \\n\"\n// + \" }\\n\"\n// + \" }</pre>\");\n }", "public ThisKeyword(){\n this(1.0);\n }", "public void t(){\n System.out.println( \"Some text \"); \n }", "public LearnConstrouctor(){\n System.out.println(\" hello\");\n }", "@Test\n\tpublic void test1() {\n\t\tSystem.out.println(\"123123\");\n\t}", "private Solution() {\n /**.\n * { constructor }\n */\n }", "public TestMe()\r\n/* 11: */ {\r\n/* 12:10 */ this.myNumber = (instanceCounter++);\r\n/* 13: */ }", "public void testDefaultSomeClass() {\n SomeClass someClass = new SomeClass();\n Renderer testedRenderer = new Renderer(someClass);\n assertEquals(\"Instance of: SomeClass\\nfoo (int) Value:4\\nARR (int[]) Value:[ 1, 2, 3, ]\\nDATE (Date) Value:Fri Jan 02 11:17:36 CET 1970\\n\" +\n \"testing (String) Returns:success\", testedRenderer.render());\n\n }", "public static void main(String[] ignore)\r\n/* 21: */ {\r\n/* 22:19 */ TestMe testMe1 = new TestMe();\r\n/* 23: */ \r\n/* 24:21 */ TestMe testMe2 = new TestMe();\r\n/* 25: */ \r\n/* 26:23 */ System.out.println(\"testMe1 myNumber = \" + testMe1.myNumber);\r\n/* 27: */ \r\n/* 28:25 */ System.out.println(\"testMe2 myNumber = \" + testMe2.myNumber);\r\n/* 29: */ \r\n/* 30:27 */ System.out.println(\"testMe1 = \" + testMe1.toString());\r\n/* 31: */ \r\n/* 32:29 */ System.out.println(\"testMe2 = \" + testMe2.toString());\r\n/* 33: */ \r\n/* 34:31 */ System.out.println(\"testMe1 = \" + testMe1);\r\n/* 35: */ \r\n/* 36:33 */ System.out.println(\"testMe2 = \" + testMe2);\r\n/* 37: */ }", "@Test\n public void printAStringTest(){\n Strings strings = new Strings();\n assertEquals(\"Try making the string being printed, as below\",\"Hello World!\", strings.printAString());\n }", "public static void main(String[] args) {\n\t\tStringExample se = null;\r\n\t\tStringExample sq = new StringExample();\r\n\t\tSystem.out.println(se);\r\n\t\tSystem.out.println(sq);\r\n\t\t\r\n\r\n\t}", "public String toString()\r\n/* 16: */ {\r\n/* 17:14 */ return \"Hello, myNumber is \" + this.myNumber;\r\n/* 18: */ }", "public void testToString() {\n }", "public Test()\n {\n }", "public HolaMundo() {\n \n System.out.println( \"Hola mundo\" );\n }", "@Test\n public void testDummy() {\n String html = source.toHTML(new SEclipseStyle(), new SDummy());\n assertEquals(html, \"<pre style='color:#000000\"\n + \";background:#ffffff;'>\"\n + \"public class MainClass {\\n\"\n + \" \\n\"\n + \" public static void main(String args[]){\\n\"\n + \" GradeBook myGradeBook=new GradeBook();\\n\"\n + \" String courseName=\\\"Java \\\";\\n\"\n + \" myGradeBook.displayMessage(courseName);\\n\"\n + \" \\n\"\n + \" }\\n\"\n + \" }public class Foo {\\n\"\n + \" \\n\"\n + \" public boolean bar(){\\n\"\n + \" super.foo();\\n\"\n + \" return false;\\n\"\n + \" \\n\"\n + \" }\\n\"\n + \" }</pre>\");\n }", "public TextTester(){}", "@Test\n public void test() throws ParseException {\n String test1 = \"klasse Test{ voeruit() { getal number is 1; } }\";\n parse(test1, \"program\");\n }", "public static void main(String args[]) {\n String str1 = new String(\"Java strings are objects.\");\n String str2 = \"They are constructed various ways.\";\n String str3 = new String(str2);\n\n String test = \"this is a string\";\n test = \"this is a new string\";\n\n String b = \" This\" + \" is \" + \"a \" + \"String\";\n\n\n System.out.println(str1);\n System.out.println(str2);\n System.out.println(str3);\n System.out.println(test);\n System.out.println(b);\n }", "ParameterizedWithThisOp(int a , double d, char c, String str )\n {\n this.a = a;\n this.d = d;\n this.c = c;\n this.str = str;\n }", "public static void main(String[] args) {\n\t\tTest29 ob = new Test29();\n\t\tprint(ob);\n\t}", "public void test() {\n\t\tSystem.out.println(\"Test\");\r\n\t}", "public String toString()\n\t{\n\t\treturn \"#\"+ this.getStepLineNumber() + \" \" + this.getClass().getSimpleName();\n\t}", "public String toString()\n\t{\n\t\treturn \"#\"+ this.getStepLineNumber() + \" \" + this.getClass().getSimpleName();\n\t}", "public static void main(String[] args) {\nIndice i=new Indice(\"Ahmed Ahmed\", 87, (float) 1.83);\nSystem.out.println(i.toString());\n\t}", "public String t1() {\n\t\treturn \"111\";\n\t}", "public static void thisDemo() {\n\t}", "public String getTestGoal() {\n return \"test\";\n }", "@Test\n\tpublic void testToString() {\n\t\tSystem.out.println(\"toString\");\n\t\tDeleteTask task = new DeleteTask(1);\n\t\tassertEquals(task.toString(), \"DeleteTask -- [filePath=1]\");\n\t}", "public Test() {\n }", "public static void main(String[] args) {\n\t\tthisconstructor rv = new thisconstructor();\n\t\n\t\n\t}", "@Test\n public void testToString() {\n System.out.println(\"toString\");\n Library instance = new Library();\n instance.setName(\"Test\");\n instance.setSize(5);\n String expResult = \"Library{\" + \"name=\" + instance.getName() + \", size=\" + instance.getSize() + \"}\";\n String result = instance.toString();\n assertEquals(expResult, result);\n \n }", "public String c()\r\n/* 30: */ {\r\n/* 31:175 */ return \"step.\" + this.a;\r\n/* 32: */ }", "@Override\n\tpublic String getTest() {\n\t\treturn \"123\";\n\t}", "public abstract String construct();", "@Override\n\tpublic void printtest(String s)\n\t{\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Now executing the command \" + s + \"...\");\n\t\tSystem.out.println(\"The Results of this command are:\");\n\t\tif(!s.contentEquals(\"toString\")) System.out.println(toStringCursor());\n\t\telse System.out.println(toString());\n\t}", "@Override\n public void tests() {\n System.out.println(\"222222222222222222\"); \n }", "public PilhaStringTest()\n {\n }", "public RunMain0() {\n \n//#line 1\nsuper();\n }", "private static class <init> extends <init>\n{\n\n public void a(Object obj, StringBuilder stringbuilder)\n {\n au au1 = (au)obj;\n y y1 = new y();\n y1.a(\"$ts\", Integer.valueOf(au1.a()));\n y1.a(\"$inc\", Integer.valueOf(au1.b()));\n a.a(y1, stringbuilder);\n }", "public Athlete()\r\n{\r\n this.def = \"An athlete is said to be running when he/she is accelerating in a certain direction during which his legs and the rest of his body are moving\";\r\n}", "@Test\n public void testGenerateString() {\n System.out.println(\"generateString\");\n VM instance = null;\n String expResult = \"\";\n String result = instance.generateString();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n public void createTaskTest() {\n Task newTask = new Task(\"Sample Task\", true);\n assertEquals(\"[\\u2713] Sample Task\", newTask.toString());\n }", "@Test\n public void testString() {\n String html = source.toHTML(new SEclipseStyle(), new SString());\n assertEquals(html, \"<pre style='color:\"\n + \"#000000;background:#ffffff;'>\"\n + \"public class MainClass {\\n\"\n + \" \\n\"\n + \" public static void main(String args[]){\\n\"\n + \" GradeBook myGradeBook=new GradeBook();\\n\"\n + \" String courseName=<span style='color:#2a00ff; '>\"\n + \"\\\"Java \\\"</span>;\\n\"\n + \" myGradeBook.displayMessage(courseName);\\n\"\n + \" \\n\"\n + \" }\\n\"\n + \" }public class Foo {\\n\"\n + \" \\n\"\n + \" public boolean bar(){\\n\"\n + \" super.foo();\\n\"\n + \" return false;\\n\"\n + \" \\n\"\n + \" }\\n\"\n + \" }</pre>\");\n }", "private void TestBasic() {\n\n\t\tPartTimeEmployee e = new PartTimeEmployee(1, \"One\", 40, 8.75);\n\t\tString result = new String();\n\t\t\n\t\tresult = \" Constructor :\\n\"\n\t\t\t+ String.format(\" %s\\n\", \"PartTimeEmployee(1, \\\"One\\\", 40, 8.75)\")\n\t\t\t+ String.format(\" toString() :\\n\")\t\t\n\t\t\t+ String.format(\" %s\\n\", e)\n\t\t\t+ String.format(\" Attributes :\\n\")\t\n\t\t\t+ String.format(\" %-12s : %s\\n\", \"id\", e.getID())\n\t\t\t+ String.format(\" %-12s : %s\\n\", \"name\", e.getName())\n\t\t\t+ String.format(\" %-12s : %s\\n\", \"hours\", e.getHours())\n\t\t\t+ String.format(\" %-12s : %s\\n\", \"rate\", e.getRate())\n\t\t\t+ String.format(\" Calculated attributes:\\n\")\t\n\t\t\t+ String.format(\" %-12s : %,.2f\\n\", \"salary\", e.calculateSalary());\n\t\tout.print(result);\n\t}", "@Test\n public void testToString_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n\n String result = fixture.toString();\n\n assertEquals(\"LogicStep : \", result);\n }", "public static void main(String[] args) {\n\n\t\tThisKeyword k = new ThisKeyword(\"Peter\", 23);\n\t\tk.display();\n\t\t\n\t}", "public TestArithmetic()\n {\n }", "public void test() {\n\n }", "TT createTT();", "public String toString() {return classSimpleName+\"#\"+name;}", "public static void main(String[] args) {\n\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"test\");\n\n\t\tsb.insert(1, \"(\");\n\n\t\tSystem.out.println(sb.toString());\n\t}", "public test() {\n\t\tsuper();\n\t}", "public static void main(String[] args) {\n\t\tWithoutThis withoutThis = new WithoutThis(45, \"Ashokbhai\");\n\t\twithoutThis.display();\n\t}", "Playground getPlayground();", "public void Test(){\n }", "public void test() {\n }", "public void test() {\n }", "@Test\n public void testToString() {\n System.out.println(\"toString\");\n Account instance = new Account(\"Piper\", 10.0);\n String expResult = \"Piper has a total of $10.0 in their account.\";\n String result = instance.toString();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "public String toString()\n\t{\n\t\treturn \"java\";\n\t}", "public Playground() {\n }", "@Test\n public void main() {\n // App.main(null);\n // assertEquals(\"Hello world\", outContent.toString());\n }", "@Test\n public void test039() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Any any0 = (Any)errorPage0.base((CharSequence) \"Esp3eO'v(-`fg\\\"S\");\n }", "@Test\r\n public void test1(){\r\n Exp one = new NumericLiteral(1);\r\n Exp three = new NumericLiteral(3);\r\n Exp exp = new PlusExp(one, three);\r\n Stmt decl = new DeclStmt(\"x\");\r\n Stmt assign = new Assignment(\"x\", exp);\r\n Stmt seq = new Sequence(decl, assign);\r\n assertEquals(seq.text(), \"var x; x = 1 + 3\");\r\n }", "@Test\n public void testMainClass() {\n String html = source.toHTML(new SEclipseStyle(), new SMainClass());\n assertEquals(html, \"<pre style='color:#000000;back\"\n + \"ground:#ffffff;'>public \"\n + \"class MainClass {\\n\"\n + \" \\n\"\n + \" public static void main(<span style='color:#7f0055; \"\n + \"font-weight:bold; '>String</span> args[]){\\n\"\n + \" GradeBook myGradeBook=new GradeBook();\\n\"\n + \" <span style='\"\n + \"color:#7f0055; font-weight:bold; '>\"\n + \"String</span> courseName=\\\"Java \\\";\\n\"\n + \" myGradeBook.displayMessage(courseName);\\n\"\n + \" \\n\"\n + \" }\\n\"\n + \" }public class Foo {\\n\"\n + \" \\n\"\n + \" public boolean bar(){\\n\"\n + \" super.foo();\\n\"\n + \" return false;\\n\"\n + \" \\n\"\n + \" }\\n\"\n + \" }</pre>\");\n }", "public void test(){\n }", "@Test\n public void sunnyday_string(){\n SetupMocks.setup();\n\n List<Token> tokens= new ArrayList<>();\n\n tokens.add(new Token(Token.TSTRG,1,1,null));\n\n\n tokens.add(new Token(Token.TILIT,1,1,null));\n\n Parser parser = new Parser(tokens);\n\n NPrintItemNode nPrintItemNode = new NPrintItemNode();\n nPrintItemNode.setnExprNode(NExprNode.INSTANCE());\n\n TreeNode printitem = nPrintItemNode.make(parser);\n\n assertEquals(TreeNode.NSTRG, printitem.getValue());\n\n }", "public void test() {\n\t\tSystem.out.println(\"test\");\n\t}", "@Test\r\n public void test0ParameterConstructorCreatesSimpleTreasure() {\r\n \tSimpleTreasure theSimpleTreasure = new SimpleTreasure();\r\n \tassertEquals(\"simple treasure chest holding 75 money units\", theSimpleTreasure.toString());\r\n }", "public static void main(String[] args) {\n\t\t\n\n\n\t\tStringBuilder sb = new StringBuilder(\"1234\");\n\t\tStringBuilder b = sb.append(\"adf\");\n\t\t// sb and b both point to object new StringBuilder(\"1234\");\n\t\tSystem.out.println(sb);\n\t}", "public void objectTest() {\n }", "public String toString() { \n\n TmpStringBuffer = new StringBuffer(1000);\n TmpStringBuffer.append(this.getClass().getName());\n \n return TmpStringBuffer.toString();\n \n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter((-1983180370));\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n String[] stringArray0 = new String[0];\n classWriter0.visit(1, 1, \"InnerClasses\", \"\", \"EQIUR?\", stringArray0);\n classWriter0.newField(\"\", \"\", \"\\\"\");\n String[] stringArray1 = new String[4];\n stringArray1[0] = \"\\\"\";\n stringArray1[1] = \"char\";\n stringArray1[2] = \"boolean\";\n stringArray1[3] = \" ,G\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-1983180370), \" ,G\", \"<T'RwU+)i.UKJX>\", \"\", stringArray1, true, true);\n methodWriter0.visitCode();\n }", "@Test\r\n public void testToString() {\r\n System.out.println(\"toString\");\r\n Assignment instance = new Assignment();\r\n String expResult = \":=\";\r\n String result = instance.toString();\r\n assertEquals(expResult, result);\r\n }", "public String _class_globals() throws Exception{\n_nativeme = new anywheresoftware.b4j.object.JavaObject();\n //BA.debugLineNum = 7;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "Object getTest1();", "@Override\n\tpublic String toString() {\n\t\treturn name+\" : \"+test;\n\t}", "public Ruby() {}", "@Before\n public void setUp() {\n source = SParser.parse(\"public class MainClass\\n{\\n \"\n + \"public static void main( String args[] )\\n \"\n + \"{ \\n GradeBook myGradeBook = new GradeBook();\"\n + \" \\n\\n String courseName = \\\"Java \\\";\\n \"\n + \" myGradeBook.displayMessage( courseName );\\n \"\n + \" }\\n\\n}\\npublic class Foo{ public boolean bar(){\"\n + \" super.foo(); return false;}}\");\n }", "private test5() {\r\n\t\r\n\t}", "public static void main(String[] args){\n SentenceParser sp = new SentenceParser (\"Peas and carrots and potatoes.\");\n System.out.println(sp);\n //then print your results\n \n\n }", "public static void main(String[] args) {\n\t String s = \"hellowww\";\r\n\t\tStringBuilder sb = new StringBuilder(s);\r\n\t\tSystem.out.println(\"sb:\"+sb);\r\n\t}", "@Test\r\n public void d_method() \r\n {\r\n\t System.out.println(\"My name is Shramana Roy\");\r\n\t \r\n }", "static void it(String s) {\n System.out.println(\" ======> \" + s);\n }", "public ZTest1() {\n this(\"z_test1\", null);\n }", "public Zadatak1() {\r\n\t\tSystem.out.println(ucitajBroj(\"1. broj\") + ucitajBroj(\"2. broj\"));\r\n\t}", "@Override\n\tpublic void test(String t) {\n\t\t\n\t}", "public static void main(String[] args) {\n Test.show();\n// t.fun();\n/*System.out.println(t.age1);*/\n }", "public String toString() {\n return mySelf()+\"!\";\n }", "public String toString() {\n return mySelf()+\"!\";\n }", "public String toString() {\n \n TmpStringBuffer = new StringBuffer(1000);\n TmpStringBuffer.append(this.getClass().getName());\n \n return TmpStringBuffer.toString();\n \n }", "public String toString() {\n \n TmpStringBuffer = new StringBuffer(1000);\n TmpStringBuffer.append(this.getClass().getName());\n \n return TmpStringBuffer.toString();\n \n }", "public String toString() {\n \n TmpStringBuffer = new StringBuffer(1000);\n TmpStringBuffer.append(this.getClass().getName());\n \n return TmpStringBuffer.toString();\n \n }", "public String toString() {\n \n TmpStringBuffer = new StringBuffer(1000);\n TmpStringBuffer.append(this.getClass().getName());\n \n return TmpStringBuffer.toString();\n \n }", "public static void main(String[] args) {\nConstructor x=new Constructor(32,10000,2,\"lavanya\");\r\nSystem.out.println(\"age is\"+a);\r\n\r\n\t}", "public String i() {\n/* 44 */ return this.a.toString();\n/* */ }", "@Override\n public void setTestUnit(){ sorcerer1 = new Sorcerer(10,5,new Location(0,0));}" ]
[ "0.62192327", "0.5911868", "0.57595044", "0.5756788", "0.5673653", "0.5653754", "0.56207335", "0.5619226", "0.5589497", "0.5586711", "0.5566659", "0.55254686", "0.55027336", "0.5491896", "0.5470471", "0.5455436", "0.54453313", "0.5432081", "0.5425351", "0.54228926", "0.541003", "0.5405388", "0.54044855", "0.54032004", "0.53925663", "0.5392201", "0.5384051", "0.5384051", "0.5378083", "0.53724", "0.53689706", "0.5363462", "0.5352077", "0.534664", "0.53452146", "0.53447783", "0.5344692", "0.5337088", "0.53333765", "0.53314674", "0.5321849", "0.5318213", "0.530805", "0.5307396", "0.5297815", "0.5274767", "0.5269048", "0.5266004", "0.52648747", "0.52617145", "0.5260177", "0.52476513", "0.5245969", "0.52433705", "0.5241391", "0.523006", "0.52253824", "0.52208054", "0.5218466", "0.52184033", "0.52146935", "0.52146935", "0.520972", "0.5207265", "0.5198511", "0.519383", "0.5193345", "0.51835525", "0.518263", "0.5181965", "0.5179354", "0.51783955", "0.51749456", "0.51712286", "0.51639986", "0.5161605", "0.5160349", "0.5151544", "0.51496404", "0.51491064", "0.51488715", "0.51467", "0.5145094", "0.514065", "0.5137542", "0.51331097", "0.5131524", "0.51242995", "0.51236033", "0.5122783", "0.51206523", "0.51109535", "0.5103046", "0.5103046", "0.51026094", "0.51026094", "0.51026094", "0.51026094", "0.5098176", "0.5097547", "0.5094786" ]
0.0
-1
Order Repository Date Author IT No. Description 1 05102021 MiyuruW IT19020990 Created
@Repository public interface OrderRepository extends JpaRepository<Order, Long> { public List<Order> findByStatus(String status); public Optional<Order> findByBuyerIdAndPaidStatus(Long buyerId, String paidStatus); public Boolean existsByBuyerIdAndPaidStatus(Long buyerId, String paidStatus); public Optional<Order> findByIdAndStatus(Long id, String status); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getOrderDate();", "String getOrderDate(){\n\t\treturn this.orderDate;\n\t}", "public String getOrderDate() {\r\n\t\treturn orderDate;\r\n\t}", "public StrColumn getDateAuthorReleaseRequest() {\n return delegate.getColumn(\"date_author_release_request\", DelegatingStrColumn::new);\n }", "@Override\n public String toString() {\n if (!this.by.equals(\"\")) {\n return \"[D]\" + getDescription() + \" (by: \" + this.by + \")\";\n } else {\n String dateToPrint = this.todoDate.format(DateTimeFormatter.ofPattern(\"MMM d yyyy\"));\n return \"[D]\" + getDescription() + \" (by: \" + dateToPrint + \")\";\n }\n }", "public OrdersByOrderDate() {\n this.title = \"*** View Orders by order date ***\";\n }", "@Override\n protected String getCreationDate() {\n try {\n if (exists() && ((Node) item).hasProperty(JcrConstants.JCR_CREATED)) {\n long creationTime = ((Node) item).getProperty(JcrConstants.JCR_CREATED).getValue().getLong();\n return HttpDateFormat.creationDateFormat().format(new Date(creationTime));\n }\n } catch (RepositoryException e) {\n log.warn(\"Error while accessing jcr:created property\");\n }\n\n // fallback\n return super.getCreationDate();\n }", "public String getOrderDate() {\n\t\treturn orderDate;\n\t}", "public DateAdp Modified_latest() {return modified_latest;}", "public Date getOrderDate() {\n return orderDate;\n }", "public Date getOrderDate() {\n return orderDate;\n }", "@Override\n\tpublic Date getCreated_date() {\n\t\treturn _buySellProducts.getCreated_date();\n\t}", "Date getDateCreated();", "private static String authorLine()\n {\n return String.format(STR_FORMAT_1 + STR_FORMAT_2, NAME_STR, NAME);\n }", "public Order() {\n\t\tthis.orderID = DataHolder.getInstance().getLastOrderId() + 1;\n\t\tthis.dateOrdered = new Date();\n\t\tthis.dateFilled = null;\n\t\tthis.projectedDate = addDays(dateOrdered,1);\n\t}", "public Date getDateCreated(){return DATE_CREATED;}", "public StrColumn getPdbDateOfAuthorApproval() {\n return delegate.getColumn(\"pdb_date_of_author_approval\", DelegatingStrColumn::new);\n }", "@Override\r\n\tpublic Date getCreated_date() {\n\t\treturn super.getCreated_date();\r\n\t}", "public Date getCreateDate()\r\n/* */ {\r\n/* 158 */ return this.createDate;\r\n/* */ }", "public java.lang.String getOrderDate() {\n java.lang.Object ref = orderDate_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n orderDate_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public StrColumn getDateAuthorApproval() {\n return delegate.getColumn(\"date_author_approval\", DelegatingStrColumn::new);\n }", "public Date getCreatorDate() {\n return creatorDate;\n }", "public String getDateCreated(){\n return dateCreated.toString();\n }", "public Date getCreationDate() {\n\n \n return creationDate;\n\n }", "public Date getDate() {\n return order.getDate();\n }", "public String extraInfo(){\n return by.format(DateTimeFormatter.ofPattern(\"MMM d yyyy\"));\n }", "@VTID(13)\r\n int getCreator();", "public String getDatecreated() {\n\t\treturn datecreated;\n\t}", "public Date getCREATED_DATE() {\r\n return CREATED_DATE;\r\n }", "public java.lang.String getOrderDate() {\n java.lang.Object ref = orderDate_;\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 orderDate_ = s;\n }\n return s;\n }\n }", "public String getRebillCreationDate()\n\t{\n\t\tif(response.containsKey(\"creation_date\")) {\n\t\t\treturn response.get(\"creation_date\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "Date getCreatedDate();", "@Override\n public String toString() {\n return date.format(DateTimeFormatter.ofPattern(\"dd.MM.yyyy\")) + \" - \" + note;\n }", "public String getAuthor() {\n\t\treturn \"Prasoon, Vikas, Shantanu\";\n\t}", "@Override\n public String toString() {\n SimpleDateFormat format = new SimpleDateFormat (\"MMM d yyyy\");\n String dateString = format.format(by);\n return \"[D]\" + super.toString() + \" (by: \" + dateString + \")\";\n }", "public Date getDateCreated();", "public Date getCreatedDate();", "public String getCreateAuthor() {\n return createAuthor;\n }", "@SimpleProperty(description = \"iSENSE Project Creation Date\", \n category = PropertyCategory.BEHAVIOR)\n public String ProjectDateCreated() {\n if(this.project == null || this.fields == null) {\n Log.e(\"iSENSE\", \"Couldn't get project information!\");\n return \"DNE\";\n }\n return project.timecreated;\n }", "public String getCreator() {\n return this.creator;\n }", "public Order(int orderID, int userID, String orderDate, String orderTitle) {\n this.order_id = orderID;\n this.user_id = userID;\n this.order_date = orderDate;\n this.order_title = orderTitle;\n }", "@Override\n public String getCreationDate() {\n return creationDate;\n }", "public Calendar getCreationDate() throws IOException {\n/* 238 */ return getCOSObject().getDate(COSName.CREATION_DATE);\n/* */ }", "public String getDatecreated() {\n return datecreated;\n }", "public String getDateCreationLibelle() {\n\t\tDateTimeFormatter format = DateTimeFormatter.ofPattern(\"dd/MM/yyyy hh:mm:ss\");\n\t\treturn this.dateCreation.format(format);\n\t}", "@DISPID(110)\r\n\t// = 0x6e. The runtime will prefer the VTID if present\r\n\t@VTID(105)\r\n\tjava.util.Date creationDateTime();", "public long getCreationDate() {\n return creationDate_;\n }", "public Long getCreationDate()\r\n\t{\r\n\t\treturn creationDate;\r\n\t}", "public String getDateCreated() {\n return this.dateCreated.toString();\n }", "public String getDateCreated() {\n return this.dateCreated.toString();\n }", "public Date getCreated() {\r\n return createdDate;\r\n }", "public Long getCreatedDate() {\r\n\t\treturn createdDate;\r\n\t}", "public String getAuthor()\r\n {\r\n return(\"Judy O'Brien\");\r\n }", "public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }", "public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }", "public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }", "public Date getDateCreated()\n {\n return dateCreated;\n }", "public Date getCreateBy() {\n return createBy;\n }", "public Date getDateCreated(){\n\t\treturn dateCreated;\n\t}", "com.google.protobuf.ByteString\n getOrderDateBytes();", "@Override\n public String getDescription() {\n return this.description + \"/by\" + this.dueDate;\n }", "public Dossier(int id, String name, String archiveObject, String lastUse){\r\n this.id = id;\r\n this.name = name;\r\n this.archiveObject = archiveObject;\r\n this.lastUse = lastUse;\r\n\r\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd\");\r\n Date today = new Date();\r\n this.createdOn = dateFormat.format(today);\r\n }", "public String getDateCreatedAsString() {\n return dateCreated.toString(\"MM/dd/yyyy\");\n }", "public void setOrderDate(String orderDate) {\r\n\t\tthis.orderDate = orderDate;\r\n\t}", "private int generateOrderId(String date) throws FlooringMasteryPersistenceException{\n \n return 0;\n \n }", "public void setCreatorDate(Date creatorDate) {\n this.creatorDate = creatorDate;\n }", "public Date getCocIssueDate() {\n\t\treturn cocIssueDate;\n\t}", "public long getDate()\r\n/* 204: */ {\r\n/* 205:309 */ return getFirstDate(\"Date\");\r\n/* 206: */ }", "public com.google.protobuf.ByteString\n getOrderDateBytes() {\n java.lang.Object ref = orderDate_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n orderDate_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public LocalDate getOrderDate() {\n return new LocalDate(this.orderDate.getMonth(), this.orderDate.getDay(), this.orderDate.getYear());\n\n }", "@java.lang.Override\n public long getCreationDate() {\n return creationDate_;\n }", "@java.lang.Override\n public long getCreationDate() {\n return creationDate_;\n }", "public Date getCreDate() {\n return creDate;\n }", "public String getVersion()\n\t{\n\t\treturn \"$Date$\";\n\t}", "public int getVersionMadeBy() {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"284fe80a-e714-45e1-aa2f-65828d5889c7\");\n return versionMadeBy;\n }", "public Date getCreatedDate() {\n return this.createdDate;\n }", "public Date getCreatedDate() {\n return this.createdDate;\n }", "@DISPID(1)\r\n\t// = 0x1. The runtime will prefer the VTID if present\r\n\t@VTID(7)\r\n\tjava.util.Date revisionDateTime();", "public Date getCreated() {\r\n return created;\r\n }", "public Date getCreated() {\r\n return created;\r\n }", "public java.util.Date getDateCreated(){\r\n\t\treturn dateCreated;\r\n\t}", "@JsonProperty(\"Date Created\")\n\tString getCreated() {\n\t\treturn getDate(created);\n\t}", "public Date getCreateDate() { return this.createDate; }", "public void setOrderDate(Date orderDate) {\n this.orderDate = orderDate;\n }", "public long getCreationDate() {\n return creationDate_;\n }", "public String getDateOfRelease() {\n return dateOfRelease;\n }", "@Override\n public String toString() {\n String byFormatted = by.format(DateTimeFormatter.ofPattern(\"MMM d yyyy\"));\n return \"[D]\" + super.toString() + \" (by: \" + byFormatted + \")\";\n }", "@Override\n public Date getCreated()\n {\n return null;\n }", "public String getCreateDate() {\n return createDate;\n }", "public Date getCreateddate() {\n return createddate;\n }", "public Date getCreatedDate() {\r\n return createdDate;\r\n }", "public Date getCreatedDate() {\r\n return createdDate;\r\n }", "default String getAuthor() {\r\n\t\treturn \"unknown\";\r\n\t}", "public Date getCreated() {\r\n\t\treturn created;\r\n\t}", "public Date getCreated() {\r\n\t\treturn created;\r\n\t}", "public Date getDateCreated() {\r\n\t\treturn dateCreated;\r\n\t}", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\n return created;\n }", "@Override\n public Date getCreated() {\n return created;\n }", "public String getOrderRemark() {\n return orderRemark;\n }", "@Test\n public void authorDateWithSubsecondsCorrectlyPopulated() throws Exception {\n fetch = primaryBranch;\n push = primaryBranch;\n\n Files.write(workdir.resolve(\"test.txt\"), \"some content\".getBytes(UTF_8));\n\n ZonedDateTime zonedDateTime = ZonedDateTime.ofInstant(\n Instant.ofEpochMilli(1496333940012L), ZoneId.of(\"-04:00\"));\n DummyRevision firstCommit = new DummyRevision(\"first_commit\")\n .withAuthor(new Author(\"Foo Bar\", \"[email protected]\"))\n .withTimestamp(zonedDateTime);\n process(firstCommitWriter(), firstCommit);\n\n String authorDate = git(\"log\", \"-1\", \"--pretty=%aI\");\n\n assertThat(authorDate).isEqualTo(\"2017-06-01T12:19:00-04:00\\n\");\n }" ]
[ "0.64821196", "0.6064584", "0.5842706", "0.58087486", "0.57855296", "0.57802045", "0.57784206", "0.57750493", "0.5770216", "0.5725763", "0.5725763", "0.5667897", "0.5635134", "0.5626055", "0.55843383", "0.5578948", "0.55713755", "0.55662775", "0.554625", "0.55303365", "0.5525298", "0.55145043", "0.54979277", "0.54800653", "0.5478117", "0.5464899", "0.5453992", "0.5453242", "0.54391056", "0.5437336", "0.54256845", "0.5424194", "0.5424001", "0.5423902", "0.5411734", "0.54050195", "0.5391245", "0.5387343", "0.53855866", "0.5373958", "0.5373939", "0.537061", "0.53705555", "0.5368029", "0.5359581", "0.53511465", "0.53467804", "0.5343111", "0.5341818", "0.5341818", "0.53386056", "0.5335845", "0.53318113", "0.532845", "0.532845", "0.532845", "0.53272736", "0.53178954", "0.5314067", "0.53125757", "0.5312345", "0.5309517", "0.5309437", "0.5308136", "0.5300436", "0.5290089", "0.5289283", "0.52877504", "0.5271829", "0.5269009", "0.526633", "0.5264667", "0.5262346", "0.5257076", "0.5252815", "0.5251178", "0.5251178", "0.5249309", "0.52483624", "0.52483624", "0.5246072", "0.52367383", "0.5236161", "0.5235079", "0.5230242", "0.52288306", "0.5225991", "0.52247876", "0.5224705", "0.5223437", "0.52211624", "0.52211624", "0.52177453", "0.5210852", "0.5210852", "0.52093744", "0.52043384", "0.52043384", "0.5195713", "0.5195491", "0.51948684" ]
0.0
-1
Given weights and values of N items, put these in a knapsack of max capacity W to get the max value split items
public static int recursiveKnapsack2(int[] weights, int[] values, int capacity) { return recursiveKnapsackHelper2(weights, values, capacity, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args){ w = the total weight\n\t\t// i = item i\n\t\t// m[i, w] = maximum value attained with weight <= w using items up to i\n\t\t//\n\t\t// recurrence relation:\n\t\t// m[0, w] = 0, if there's zero items, the sum is zero\n\t\t// m[i, w] = m[i-1, w], if w(i) > w, the new item's weight > current weight limit\n\t\t// m[i, w] = max(m[i-1, w],\n\t\t// \t\t\t\t m[i-1, w-w(i)] + v(i), if w(i) <= w\n\t\t//\n\t\t//\n\t\tArrayList<Item> items = new ArrayList<Item>();\n\n\t\titems.add(new Item(10, 60));\n\t\titems.add(new Item(20, 100));\n\t\titems.add(new Item(30, 120));\n\n\t\tSystem.out.println(knapsack(items.size()-1, 50, items));\n\t}", "static int knapsack(int W, int wt[], int val[], int n)\n\t{\n\t\t// base case\n\t\tif (n==0 || W==0)\n\t\t\treturn 0;\n\t\t\n\t\t// If weight of nth item is more than knapsack capacity W, then\n\t\t// this item cannot be included in optimal solution\n\t\tif (wt[n-1] > W)\n\t\t\treturn knapsack(W, wt, val, n-1);\n\t\t\n\t\t// return maximum of two cases\n\t\t// nth item included\n\t\t// not included\n\t\telse return max(val[n-1] + knapsack(W-wt[n-1],wt,val,n-1),\n\t\t\t\tknapsack(W,wt,val,n-1)\n\t\t\t\t);\n\t}", "void ksUnbounded(int targetWeight, int nItems, int[] iWeights, int[] iValues) {\n\r\n\t\tint[][] ksItemCapacity = new int[nItems + 1][targetWeight + 1];\r\n\t\tint[][] ksTrack = new int[nItems + 1][targetWeight + 1];\r\n\r\n\t\tfor (int w = 0; w <= targetWeight; w++) {\r\n\t\t\tksItemCapacity[0][w] = 0;\r\n\t\t}\r\n\r\n\t\tfor (int item = 1; item < nItems; item++) {\r\n\t\t\tfor (int w = 0; w <= targetWeight; w++) {\r\n\t\t\t\t// last known Maximum value of KS contents s.t. their weight\r\n\t\t\t\t// totals to atmost w-iWeights[item]\r\n\t\t\t\tint eItemValue = (iWeights[item] <= w) ? ksItemCapacity[item - 1][w\r\n\t\t\t\t\t\t- iWeights[item]]\r\n\t\t\t\t\t\t: 0;\r\n\t\t\t\tif ((iWeights[item] <= w)\r\n\t\t\t\t\t\t&& (iValues[item] + eItemValue) > ksItemCapacity[item - 1][w]) {\r\n\t\t\t\t\tksItemCapacity[item][w] = eItemValue + iValues[item];\r\n\t\t\t\t\t// current item included\r\n\t\t\t\t\tksTrack[item][w] = 1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tksItemCapacity[item][w] = ksItemCapacity[item - 1][w];\r\n\t\t\t\t\t// current item not included\r\n\t\t\t\t\tksTrack[item][w] = 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Print KS contents\r\n\t\tArrayList<Integer> ksContents = new ArrayList<Integer>();\r\n\t\tint tW = targetWeight;\r\n\t\tfor (int item = nItems; item >= 0; item--) {\r\n\t\t\tif (ksTrack[item][tW] == 1) {\r\n\t\t\t\ttW -= iWeights[item];\r\n\t\t\t\tksContents.add(item);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"Items choosen are:\");\r\n\t\tint W = 0, V = 0;\r\n\t\tfor (Integer e : ksContents) {\r\n\t\t\tW += iWeights[e];\r\n\t\t\tV += iValues[e];\r\n\t\t\tSystem.out.println(\"Weight: \" + iWeights[e] + \", Value: \"\r\n\t\t\t\t\t+ iValues[e]);\r\n\t\t}\r\n\t\tSystem.out.println(\"Total weight: \" + W + \" Total value: \" + V);\r\n\t}", "public static void knapsackDynamicProgramming(objects[] items, int capacity, int n) \r\n { \r\n\t\t//use bubble sort to sort item by their weight\t\t\t\t\r\n\t\tfor (int i = 0; i < n-1; i++) \t\t\t\t\r\n\t\t{ \t\t \r\n\t\t\tfor (int j = 0; j < (n-i-1); j++) \t\t \r\n\t\t\t{\t\t \r\n\t\t\t\tif (items[j].weight < items[j+1].weight) \t\t \r\n\t\t\t\t{ \t\t \t\r\n\t\t\t\t\tobjects temp = items[j]; \t\t \r\n\t\t\t\t\titems[j] = items[j+1]; \t\t \r\n\t\t\t\t\titems[j+1] = temp; \t\t \t\t\t\t\t\r\n\t\t\t\t}\t\t \r\n\t\t\t}\t\t\t\t\r\n\t\t}\r\n\t\t\r\n \tif(n <= 0 || capacity <= 0)\r\n \t{\r\n \t\tSystem.out.print(\"Error capacity and object numbers can't be 0\");\r\n \t}\r\n \r\n \tint matrixTable[][] = new int[n+1][capacity+1]; \r\n \r\n \tfor (int i = 0; i <= n; i++) \r\n \t{ \r\n \t\tfor (int j = 0; j <= capacity; j++) \r\n \t\t{ \r\n \t\t\t//Preset row 0 value and column value to 0\r\n \t\t\tif (i==0 || j==0) \r\n \t {\r\n \t\t\t\tmatrixTable[i][j] = 0; \r\n \t }\r\n \r\n \t\t\t//If current row number is greater than current weight number\r\n \t\t\telse if (items[i-1].weight <= j) \r\n \t\t\t{\r\n \t\t\t\t//Compare the top value with top value plus value(use weight as the value to go left)result\r\n \t\t\t\t//and use the greatest value for the current one.\r\n \t\t\t\tmatrixTable[i][j] = Math.max(items[i-1].profit + matrixTable[i-1][j-items[i-1].weight], matrixTable[i-1][j]); \r\n \t\t\t}\r\n \t\t\t//If row number is less than current weight number just use the top value\r\n \t\t\telse \r\n \t\t\t{ \t \r\n \t\t\t\tmatrixTable[i][j] = matrixTable[i-1][j];\r\n \t\t\t}\r\n \t\t} \t\r\n \t} \r\n \t\r\n\t\tint totalProfit = matrixTable[n][capacity]; \t\t\r\n\t\tint temp = matrixTable[n][capacity];\r\n\t\tint [] itemInKnapsack = new int [n];\r\n\t\t\r\n\t\t//solving which item is in the knapsack\r\n for (int i = n; i > 0 && temp > 0; i--) { \r\n \r\n \r\n \tif (temp == matrixTable[i - 1][capacity]) \r\n \t{\r\n continue;\r\n \t}\r\n \t//if the top value is different than it is include in the knapsack\r\n else \r\n { \r\n itemInKnapsack[i-1] = items[i-1].index; //Save item number\r\n temp = temp - items[i - 1].profit; \r\n capacity = capacity - items[i - 1].weight; \r\n } \r\n } \r\n \r\n printResult(itemInKnapsack, totalProfit, 2); //Call print result\r\n }", "static int unboundedKnapsack(int [] val,int[] wt, int W){\n int n = val.length;\n int[][] dp = new int[n+1][W+1];\n for (int i =0;i<=n;i++){\n dp[i][0] = 0;\n }\n for (int j = 0;j<=W;j++){\n dp[0][j] = 0;\n }\n\n for (int i=1;i<=n;i++){\n for (int j = 1;j<=W;j++){\n if (wt[i-1] <= j){\n dp[i][j] = Math.max(dp[i-1][j], val[i-1] + dp[i][j - wt[i-1]]);\n }else{\n dp[i][j] = dp[i-1][j];\n }\n }\n }\n return dp[n][W];\n }", "static int knapsack(int[] weight, int[] value, int n, int maxWeight) {\n int[][] dp = new int[n+1][maxWeight+1];\n for (int i=0;i<=n;i++) {\n for (int j =0;j<=maxWeight;j++) {\n dp[i][j] = -1;\n }\n }\n int ans= knapsack(weight,value,n,maxWeight,dp);\n return ans;\n\n }", "static int knapSack(int totalWeight, int wt[], int val[], int n) {\n\t\t// Base Case\n\t\tif (n == 0 || totalWeight == 0)\n\t\t\treturn 0;\n\n\t\t// If weight of the nth item is more than Knapsack capacity W, then\n\t\t// this item cannot be included in the optimal solution\n\t\tif (wt[n - 1] > totalWeight)\n\t\t\treturn knapSack(totalWeight, wt, val, n - 1);\n\n\t\t// Return the maximum of two cases:\n\t\t// (1) nth item included\n\t\t// (2) not included\n\t\telse\n\t\t\treturn max(\n\t\t\t\t\tval[n - 1]\n\t\t\t\t\t\t\t+ knapSack(totalWeight - wt[n - 1], wt, val, n - 1),\n\t\t\t\t\tknapSack(totalWeight, wt, val, n - 1));\n\t}", "static int knapsack(Item[] items, int maxWeight) {\n return knapsack(items, maxWeight, 0);\n }", "public static int knapsack(int[] weights, int[] values, int n, int maxWeight) {\n return knapSack(maxWeight, weights, values, n);\r\n }", "public static int zeroOneKnapsack(int[] weight, int[] value, int capacity) {\n\t\tint[][] dp = new int[weight.length + 1][capacity + 1];\n\n\t\tfor (int i = 0; i < weight.length + 1 ; i++) {\n\t\t\t for (int j = 0; j < capacity + 1; j++) {\n\t\t\t\t\n\t\t\t\t // base condition for memoization\n\t\t\t\t // first row and first column for 2d matrix is initialised to 0\n\t\t\t\t // profit = 0 when number of items = 0 or bag capacity = 0 \n\t\t\t\t if (i == 0 || j == 0) { \n\t\t\t\t\t dp[i][j] = 0;\n\t\t\t\t } \n\t\t\t\t \n\t\t\t\t // weight of item under consideration is less than capacity of bag\n\t\t\t\t // value of i in 2d matrix corresponds to (i-1)th element in weight and value arrays\n\t\t\t\t // hence, weight(i-1) is compared with the corresponding matrix cell capacity(i.e.column)\n\t\t\t\t \n\t\t\t\t else if (weight[i-1] <= j){\n\t\t\t\t\t \n\t\t\t\t\t // possibility 1: when item having weight(i-1) is added to bag\n\t\t\t\t\t // item having weight(i-1) has value(i-1)\n\t\t\t\t\t // this value added to array value for (i-1)th row and (j-weight[i-1])th column\n\t\t\t\t\t // because :\n\t\t\t\t\t // 1) the total capacity reduced by weight(i-1) after deciding item inclusion\n\t\t\t\t\t // 2) total no.of elements reduced by 1 after deciding item inclusion\n\t\t\t\t\t \n\t\t\t\t\t int a = value[i-1] + dp[i-1][j-weight[i-1]];\n\t\t\t\t\t \n\t\t\t\t\t// possibility 1: when item having weight(i-1) is not added to bag\n\t\t\t\t\t// 1) the total capacity remains as is after deciding item exclusion\n\t\t\t\t\t// 2) total no.of elements reduced by 1 after deciding item exclusion\n\t\t\t\t\t \n\t\t\t\t\t int b = dp[i-1][j];\n\t\t\t\t\t \n\t\t\t\t\t // max of a and b taken to find maximum profit value \n\t\t\t\t\t dp[i][j] = Math.max(a, b);\t \n\t\t\t\t\t \n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t \n\t\t\t\t // weight of item under consideration is more than capacity of bag\n\t\t\t\t // hence item having weight(i-1) is not added to bag\n\t\t\t\t else {\n\t\t\t\t\t \n\t\t\t\t\t// 1) the total capacity remains as is after deciding item exclusion\n\t\t\t\t\t// 2) total no.of elements reduced by 1 after deciding item exclusion\n\t\t\t\t\t \n\t\t\t\t\t dp[i][j] = dp[i-1][j];\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 dp[weight.length][capacity];\n\t\t\n\t}", "public Knapsack bruteForceCalc (ArrayList <Item> items,int capacity, int num_items) {\n\t\tif (num_items <= 0) {\n\t\t\tKnapsack knapsack = new Knapsack(0);\n\t\t\treturn knapsack;\n\t\t} \n\t\telse if (items.get(num_items -1).getWeight() > capacity) {\n\t\t\treturn bruteForceCalc(items, capacity, num_items - 1);\n\t\t} else {\n\n\t\t\tKnapsack ignore = bruteForceCalc(items,capacity, num_items - 1);\n\t\t\tKnapsack take = bruteForceCalc(items,capacity - items.get(num_items -1).getWeight(), num_items - 1);\n\t\t\t\n\t\t\tint ignoreVal = ignore.getValue();\n\t\t\tint takeVal = items.get(num_items - 1).getValue() + take.getValue();\n\t\t\t \n\t\t\tif( Math.max(ignoreVal, takeVal) == ignoreVal ) \n\t\t\t\treturn ignore;\n\t\t\telse {\n\t\t\t\ttake.addItem(items.get(num_items - 1));\n\t\t\t\treturn take;\n\t\t\t}\n\t\t}\n\t}", "public static int[] knapsackNoRep(int[] values, int[] weights, int twt) {\n // at maxValSets[i] points to a row of weight indices that provide the max set to achieve weight i;\n int[][] maxValSets = new int[twt + 1][];\n for (int i = 0; i < weights.length; i++) {\n //there is only one value[i] to achieve maximum weight i\n maxValSets[weights[i]] = new int[]{i};\n }\n\n // maxValSets[weights[0]] = new int[]{0};\n int currWt = weights[0];\n while (currWt <= twt) {\n // start with weights at currWt\n for (int wtIndx = 0; wtIndx < weights.length; wtIndx++) {\n // these are set of indices that provide current max value at currWt\n int[] currMaxIndices = maxValSets[currWt];\n // if the current weight index has not already been used\n int nextWt = currWt + weights[wtIndx];\n if ((nextWt <= twt) && (!contains(currMaxIndices, wtIndx))) {\n // need to find weight indices at currWt + weight[wtIndx]\n int nextMaxWithCurr = Arrays.stream(currMaxIndices).map((ind) -> values[ind]).sum() + values[wtIndx];\n int[] nextCurrMaxIndices = maxValSets[nextWt];\n int nextCurrMax = 0;\n if (nextCurrMaxIndices != null) {\n nextCurrMax = Arrays.stream(nextCurrMaxIndices).map((ind) -> values[ind]).sum();\n }\n // if\n if (nextMaxWithCurr > nextCurrMax) {\n int[] newMaxArr = new int[currMaxIndices.length + 1];\n System.arraycopy(currMaxIndices, 0, newMaxArr, 0, currMaxIndices.length);\n // at the last element add the current weight index\n newMaxArr[currMaxIndices.length] = wtIndx;\n maxValSets[nextWt] = newMaxArr;\n }\n }\n }\n currWt++;\n while ((currWt <= twt) && (maxValSets[currWt] == null)) {\n currWt++;\n }\n }\n int[] tinds = maxValSets[twt];\n if (tinds != null) {\n int maxVal = 0;\n System.out.println(\"For target weight \" + twt + \" use:\");\n for (int i : tinds) {\n System.out.print(\"weight \" + weights[i] + \" val \" + values[i] + \" ,\");\n maxVal += values[i];\n }\n System.out.println(\" Total value = \" + maxVal);\n }\n return maxValSets[twt];\n\n }", "double fractionalKnapsack(int W, Item arr[], int n) \n {\n Arrays.sort(arr, new Comparator<Item>() {\n \n public int compare(Item a, Item b)\n {\n return b.value*a.weight - a.value*b.weight;\n }\n });\n \n double ans = 0.0;\n \n for(Item it : arr )\n {\n int wt = it.weight;\n int val = it.value;\n \n if( W > wt )\n {\n W -= wt;\n ans += val;\n }\n \n else\n {\n ans += (val*W)/(double)wt;\n break;\n }\n }\n \n return ans;\n }", "static int knapSack(int W, int wt[], int val[], int n, List<Integer> incl, List<Integer> v) {\r\n\tList<Integer> v1 = new ArrayList<>();\r\n\tList<Integer> v2 = new ArrayList<>();\r\n\t// Base Case\r\n\tif (n == 0 || W == 0)\r\n\t return 0;\r\n\t// If weight of the nth item is more than Knapsack capacity W, then\r\n\t// this item cannot be included in the optimal solution\r\n\tif (wt[n - 1] > W) {\r\n\t return knapSack(W, wt, val, n - 1, incl, v1);\r\n\t}\r\n\r\n\t// Return the maximum of two cases:\r\n\t// (1) nth item included\r\n\t// (2) not included\r\n\telse {\r\n\t System.out.println(wt[n - 1]);\r\n\t v1.add(n - 1);\r\n\t int m = val[n - 1] + knapSack(W - wt[n - 1], wt, val, n - 1, incl, v1);\r\n\t int n1 = knapSack(W, wt, val, n - 1, incl, v2);\r\n\t if (Math.max(m, n1) == m) {\r\n\t\tv.addAll(v1);\r\n\t } else {\r\n\t\tv.addAll(v2);\r\n\t }\r\n\t return Math.max(m, n1);\r\n\t}\r\n }", "static int knapsackDP(int weights[],int values[],int noOFitems,int capacityOfKnapsack){\n int dp[][] = new int[noOFitems+1][capacityOfKnapsack+1];\n\n for(int i=1;i<noOFitems+1;i++){\n for(int w=1;w<capacityOfKnapsack+1;w++){\n\n int inc = 0;\t\n if(weights[i] <= w){\n inc = values[i] + dp[i-1][w-weights[i]];\n }\n int exc = dp[i-1][w];\n dp[i][w] = Math.max(inc,exc);\n\n }\n }\n \n for (int i = 0; i < noOFitems+1; i++) {\n\t\t\tfor (int j = 0; j < capacityOfKnapsack+1; j++) {\n\t\t\t\tSystem.out.print(dp[i][j]+ \" \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n \n return dp[noOFitems][capacityOfKnapsack];\n\t}", "static int webknapSackDyna(int W, int wt[], int val[], int n) {\n int i, w;\n int K[][] = new int[n + 1][W + 1];\n //K[i][w] represents the max value for weight w by using i elements\n // row i represents using i values\n // col w represents the current weight\n // Build table K[][] in bottom up manner\n // n is the number of values available to use\n // for each available value\n for (i = 0; i <= n; i++) {\n // for each weight until target weight is achieved\n for (w = 0; w <= W; w++) {\n\n if (i == 0 || w == 0)\n K[i][w] = 0;\n // if the previous weight is still less than the target weight it can potentially be included\n // to calculate the max val for current weight\n else if (wt[i - 1] <= w)\n // val[i-1]: value for the i th weight\n // K[i-1][w-wt[i-1]]: max value using i-1 values to achieve weight target weight - wt of i-1 element\n // val[i-1] + K[i-1][w-wt[i-1]] -> used ith weight add val[i-] and use the remaining i-1 weights to\n // get to the target weight w-wt of ith element -> wt-wt[i-1]\n // K[i-1][w] => max value using i-1 elements to achieve weight w i.e. not using ith element\n K[i][w] = max(val[i - 1] + K[i - 1][w - wt[i - 1]], K[i - 1][w]);\n // wt[i-1] > w\n else\n K[i][w] = K[i - 1][w];\n }\n }\n\n return K[n][W];\n }", "static int zeroOneKnapsack(int []val,int [] wt,int W){\n// initialize\n int[][] dp = new int[val.length+1][W+1];\n\n int n = val.length;\n for (int i = 0;i<=n;i++){\n dp[i][0] = 0;\n }\n for (int j = 0;j<=W;j++){\n dp[0][j] = 0;\n }\n\n for (int i = 1;i<=n;i++){\n for(int j = 1;j<=W;j++){\n if (wt[i-1] <= j){\n dp[i][j] = Math.max(val[i-1] + dp[i-1][j - wt[i-1]], dp[i-1][j]);\n }else{\n dp[i][j] = dp[i-1][j];\n }\n }\n }\n return dp[n][W];\n }", "private double bound(int i, double weight, double value, int[] items) {\n\t\tint item, wi;\n\t\tassert weight - k < EPS; // Because of when bound is called in fill\n\t\tfor (int j = n - 1; j >= 0; j--) {\n\t\t\titem = items[j];\n\t\t\tif (item <= i)\n\t\t\t\tcontinue;\n\t\t\twi = w[item];\n\t\t\tif (wi < k - weight) {\n\t\t\t\tweight += wi;\n\t\t\t\tvalue += v[item];\n\t\t\t}\n\t\t\telse return value + ((double) (k - weight) / wi) * v[item];\n\t\t}\n\t\treturn value;\n\t}", "public static TempResult max(int allowedWeight, Set<Item> items) {\n\t\tint[] values=new int[items.size()];\n\t\tint[] weights=new int[items.size()];\n\t\t\n\n\t\tArrayList<Item> items2=new ArrayList<Item>(items);\n\t\tfor (int i=0; i<items2.size(); i++) {\n\t\t\tvalues[i]=items2.get(i).value;\n\t\t\tweights[i]=items2.get(i).weight;\n\t\t}\n\t\t\n int[][] totalValue = new int[values.length+1][allowedWeight+1];\n boolean[][] includedorNot = new boolean[values.length+1][allowedWeight+1];\n \n //We introduce item one by one to the system.\n //For each introduced item, we consider the maximal profit\n //for weight=[0:allowedWeight]\n for (int i=0; i<values.length; i++) {\n \t//introduce item i into the system.\n \tint val=values[i];\n \tint weight=weights[i];\n \t\n \tint itemIndex=i+1;\n \t\n \tfor (int w=1; w<=allowedWeight; w++) {\n \t\t\n \t\t//Zero copy of ith item; i-1 is calculated already\n \t\tint profit1=totalValue[itemIndex-1][w];\n \t\t\n \t\t//one copy of ith item.\n \t\tint profit2=Integer.MIN_VALUE;\n \t\tif (w-weight>=0) {\n \t\t\t//for a particular targeted weight, add item i does not overflow the targeted weight.\n \t\t\tprofit2=totalValue[itemIndex-1][w-weight]+val;\n \t\t}\n \t\t\n \t\tif (profit1>profit2) {\n \t\t\tincludedorNot[itemIndex][w]=false;\n \t\t\ttotalValue[itemIndex][w]=profit1;\n \t\t} else {\n \t\t\tincludedorNot[itemIndex][w]=true;\n \t\t\ttotalValue[itemIndex][w]=profit2;\n \t\t}\n \t}\n }\n\t\t\n \n TempResult result=new TempResult(0, 0);\n result.value=totalValue[values.length][allowedWeight];\n result.items=new LinkedList<>();\n int w=allowedWeight;\n for (int itemIndex=values.length; itemIndex>0; itemIndex--) {\n \tif (includedorNot[itemIndex][w]) {\n \t\tresult.items.add(items2.get(itemIndex-1));\n \t\tw=w-weights[itemIndex-1];\n \t} \n }\n \n return result;\n \n\t}", "public Knapsack(int k, int[] v, int[] w) {\n\t\tif (v.length != w.length)\n\t\t\tthrow new IllegalArgumentException(\"ambiguous problem size\");\n\t\tn = v.length;\n\t\tif (n < 1)\n\t\t\tthrow new IllegalArgumentException(\"no items to put in knapsack\");\n\t\tthis.k = k;\n\t\tthis.v = new int[n];\n\t\tthis.w = new int[n];\n\t\tSystem.arraycopy(v, 0, this.v, 0, n);\n\t\tSystem.arraycopy(w, 0, this.w, 0, n);\n\t\tx = new int[n];\n\t\tint max = optimize(); // sets x\n\t\tassert feasible();\n\t\toptimal = objective() == max;\n\t}", "static int webknapSackRecur(int W, int wt[], int val[], int n) {\n // Base Case\n if (n == 0 || W == 0)\n return 0;\n\n // wt[i] represents the weight of the ith item\n // If weight of the nth item is more than Knapsack capacity W, then\n // this item cannot be included in the optimal solution\n if (wt[n - 1] > W)\n return webknapSackRecur(W, wt, val, n - 1);\n\n // Return the maximum of two cases:\n // (1) nth item included\n // (2) not included\n else return max(val[n - 1] + webknapSackRecur(W - wt[n - 1], wt, val, n - 1),\n webknapSackRecur(W, wt, val, n - 1)\n );\n }", "public static int knapsackRep(int[] values, int[] weights, int twt) {\n //assume the two input are sorted\n int[] maxVals = new int[twt + 1];\n // maximum value for the minimum weight is corresponding value\n maxVals[weights[0]] = values[0];\n // iterate over until you get the target wt\n for (int currWt = weights[0] + 1; currWt <= twt; currWt++) {\n // initialize current max weight to be infinity\n int currMaxVal = -1;\n for (int wtInd = 0; wtInd < weights.length; wtInd++) {\n // prevWt to check is current\n if ((currWt == weights[wtInd]) && (values[wtInd] > currMaxVal)) {\n currMaxVal = values[wtInd];\n }\n int prevWt = currWt - weights[wtInd];\n // if the prevWt value is valid\n if ((prevWt > 0) && (prevWt <= twt)) {\n // if there is a valid value for prevWt\n if (maxVals[prevWt] > 0) {\n int candMaxVal = maxVals[prevWt] + values[wtInd];\n if (candMaxVal > currMaxVal) {\n currMaxVal = candMaxVal;\n }\n }\n }\n }\n if (currMaxVal != -1) {\n maxVals[currWt] = currMaxVal;\n }\n }\n printArr(maxVals, \"Maximum value is %d for weight %d\" + System.lineSeparator());\n return maxVals[twt];\n }", "public static int optimalWeight(int W, int[] w) {\n int[][] knapsackMaxValues = new int[W+1][w.length+1];\n for(int i=1; i<=W; i++) {\n for(int j=1;j<=w.length; j++) {\n int keepItem;\n try {\n keepItem = w[j-1] + knapsackMaxValues[i-w[j-1]][j-1];\n } catch (ArrayIndexOutOfBoundsException exception) {\n keepItem = 0;\n }\n int leaveItem;\n try {\n leaveItem = knapsackMaxValues[i][j-1];\n } catch (ArrayIndexOutOfBoundsException exception) {\n leaveItem = 0;\n }\n if(keepItem > leaveItem)\n knapsackMaxValues[i][j] = keepItem;\n else\n knapsackMaxValues[i][j] = leaveItem;\n }\n //printKnapsack(knapsackMaxValues);\n }\n\n return knapsackMaxValues[W][w.length];\n }", "public double knapsack(double[] valuePass, double[] weightPass, double capacity) {\n\n if (valuePass.length == 0) { return 0; }\n value = valuePass;\n weight = weightPass;\n double[] subsets = new double[value.length];\n double takenValue = 0;\n double takenWeight = 0;\n double selection = 0;\n\n // look at each subset of the entire set\n for (int i = 0; i < Math.pow(2, value.length); i++) {\n\n /* INVARIANT: the value/weight values are greater than 0 */\n if (KnapsackMain.debug)\n assert assertionValueWeightGreaterThanZero(takenValue, takenWeight);\n\n // variables for the inner loop\n int itemToTake = value.length - 1;\n double temporaryValue = 0;\n double temporaryWeight = 0;\n\n // wh\n while (subsets[itemToTake] != 0 && itemToTake > 0) {\n subsets[itemToTake] = 0;\n itemToTake = itemToTake - 1;\n }\n\n subsets[itemToTake] = 1;\n\n for (int j = 0; j < value.length; j++) {\n\n // if the item is marked in the subset, then add it to the takenValue\n if (subsets[j] == 1 ) {\n temporaryValue = temporaryValue + value[j];\n temporaryWeight = temporaryWeight + weight[j];\n }\n }\n\n if (temporaryValue > takenValue && temporaryWeight <= capacity) {\n takenValue = temporaryValue;\n takenWeight = temporaryWeight;\n }\n }\n return takenValue;\n }", "private void Knapsack(int[] vol, int[] ben, int n, int V, int[][] M)\r\n {\r\n int i,j;\r\n \r\n for (i=1; i<n; i++) {\r\n M[i][0] = 0;\r\n }\r\n \r\n for (j=1; j<V; j++) {\r\n M[0][j] = 0;\r\n }\r\n\r\n for (i=1; i<=n; i++) {\r\n for (j=1; j<=V; j++) {\r\n if(vol[i] > j) {\r\n M[i][j] = M[i-1][j];\r\n } else {\r\n M[i][j] = max(M[i-1][j], M[i-1][j-vol[i]] + ben[i]);\r\n }\r\n }\r\n }\r\n }", "public static void main(String[] args) {\n\t\t\n\t\tint max_size,n; \n \n ArrayList<item> items=new ArrayList();\n\t\t// item 1, value 6, size 1\n items.add(new item(1, 6, 1));\n\t\t// item 2, value 10, size 2\n\t\titems.add(new item(2, 10, 2));\n\t\t// item 3, value 12, size 3\n\t\titems.add(new item(3, 12, 3));\n\t\t// the size of your knapsack\n max_size=5; \n\t\t// sort items by density\n\t\tsortitems(items);\n \n System.out.println(\"The maximum value we can place into the knapsack is \"+ greedyfractionalknapsack(items, max_size));\n\n\n\n}", "private static long calculateBestPickWithoutRepetition(int weight, Item[] items, long[][] DP) {\n\n for(int w = 1; w <= weight; w++) {\n for(int i = 1; i <= items.length; i++) {\n DP[w][i] = DP[w][i-1];\n Item item = items[i-1];\n\n if (item.getWeight() <= w) {\n DP[w][i] = Math.max(DP[w][i], DP[w - item.getWeight() ][i-1] + item.getValue());\n }\n }\n }\n\n return DP[DP.length -1][DP[0].length - 1];\n }", "private int optimize() {\n\t\t// items: Items sorted by value-to-weight ratio for linear relaxation\n\t\t// t: the decision vector being tested at each node\n\t\t// ws, vs, is, bs: stacks of weight, value, item id, whether bring item\n\t\t// p: stack pointer; i, b, weight, value: loop caches; best: max search\n\t\t// ss: stack size: Always <=2 children on stack for <=n-1 parents\n\t\tItem[] items = new Item[n];\n\t\tint ss = 2 * n;\n\t\tint[] itemsSorted = new int[n], t = new int[n], ws = new int[ss],\n\t\t\tvs = new int[ss], is = new int[ss], bs = new int[ss];\n\t\tint i, b, weight, value, best = 0, p = 0;\n\n\t\tfor (int j = 0; j < n; j++)\n\t\t\titems[j] = new Item(j);\n\t\tArrays.sort(items);\n\t\tfor (int j = 0; j < n; j++)\n\t\t\titemsSorted[j] = items[j].i();\n\t\titems = null; // For garbage collection.\n\n\t\t// Push item 0 onto the stack with and without bringing it.\n\t\tws[p] = 0; vs[p] = 0; is[p] = 0; bs[p] = 1; p++;\n\t\tws[p] = 0; vs[p] = 0; is[p] = 0; bs[p] = 0; p++;\n\n\t\twhile (p > 0) {\n\t\t\tp--; // Pop the latest item off the stack\n\t\t\ti = is[p]; b = bs[p];\n\t\t\tweight = ws[p] + w[i] * b;\n\t\t\tif (weight > k)\n\t\t\t\tcontinue;\n\t\t\tvalue = vs[p] + v[i] * b;\n\t\t\tif (bound(i, weight, value, itemsSorted) < best)\n\t\t\t\tcontinue;\n\t\t\tbest = Math.max(value, best);\n\t\t\tt[i] = b;\n\t\t\tif (i < n - 1) { // Push children onto stack w/ & w/o bringing item\n\t\t\t\tws[p] = weight; vs[p] = value; is[p] = i + 1; bs[p] = 1; p++;\n\t\t\t\tws[p] = weight; vs[p] = value; is[p] = i + 1; bs[p] = 0; p++;\n\t\t\t}\n\t\t\telse if (value >= best)\n\t\t\t\tSystem.arraycopy(t, 0, x, 0, n);\n\t\t}\n\t\treturn best;\n\t}", "int knapsack01(int[] v, int[] w, int capacity) {\n return knapsack01(v, w, capacity, 0, 0);\n }", "public UnboundedKnapsack(int[] vol, int[] ben, int n, int V)\r\n {\r\n\r\n M = new int[n+1][V+1];\r\n objects = new int[n+1];\r\n Knapsack(vol, ben, n, V, this.M);\r\n ObjectsKnapsack(vol, this.M, n, V, this.objects);\r\n res = result(this.objects, vol, ben);\r\n }", "@Test\n\tpublic void when_provided_maximum_size_list_with_all_elements_that_can_be_added_then_return_sum_in_allowable_amount_of_time() {\n\t\tfinal int[] elements = Fixture.initializeRandomList(MAX_NUM_ELEMENTS, MIN_ELEMENT_SIZE, 5);\n\t\tfinal int elementSum = IntStream.of(elements).sum();\n\t\tfinal long startTime = System.currentTimeMillis();\n\n\t\tfinal int result = Knapsack.getOptimalWeight(elementSum, elements);\n\n\t\tassertThat(result, is(elementSum));\n\t\tassertThat(System.currentTimeMillis() - startTime < Fixture.MAX_ALLOWABLE_CALCULATION_TIME, is(true));\n\t}", "private long getMaxValue( Item[] items, int maxWeight, int n) {\n\t\tif ( n == 0 || maxWeight == 0 )\n\t\t\treturn 0;\n\n\t\t// Weight of the nth item is more than maxWeight -> \n\t\t// We cannot include this item into the optimal solutions.\n\t\t// Fall back to to the nth-1 item.\n\t\tif ( items[n - 1].getWeight() > maxWeight)\n\t\t\treturn getMaxValue( items, maxWeight, n-1);\n\t\t\n\t\t// Return the maximum of these two cases:\n\t\t// 1) nth item included\n\t\t// 2) nth item is not included\n\t\t\n\t\tlong includedValue = items[n-1].getValue() + getMaxValue(items, maxWeight-items[n-1].getWeight(), n-1);\n\t\tlong notIncludedValue = getMaxValue(items, maxWeight, n - 1);\n\t\treturn Math.max( includedValue, notIncludedValue);\n\t}", "public int knapsack01(int[] w, int[] v, int C) {\n //dp[i] = Math.max(v[i] + dp[i - 1, c - w[i]], dp[i - 1, c])\n int[][] dp = new int[w.length][C];\n for (int i = 0; i <= C; i++) {\n if (i >= w[0])\n dp[0][i] = v[0];\n }\n for (int i = 1; i < w.length; i++) {\n for (int j = 0; j <= C; j++) {\n if (j >= w[i]) {\n dp[i][j] = Math.max(v[i] + dp[i - 1][C - w[i]], dp[i - 1][C]);\n } else {\n dp[i][j] = dp[i - 1][C];\n }\n }\n }\n return dp[w.length - 1][C];\n }", "private static Integer packDPRec(Integer capacity, List<Integer> weights, List<ItemDTO> items, Integer n, Integer[][] mem, List<Integer> optimalChoice) {\n // Base condition\n if (n == 0 || capacity <= 0)\n return 0;\n\n if (mem[n][capacity] != -1) {\n return mem[n][capacity];\n }\n\n if (weights.get(n - 1) > capacity) {\n // Store the value of function call\n // stack in table before return\n List<Integer> subOptimalChoice = new ArrayList<>();\n mem[n][capacity] = packDPRec(capacity, weights, items, n - 1, mem, subOptimalChoice);\n optimalChoice.addAll(subOptimalChoice);\n return mem[n][capacity];\n } else {\n // Return value of table after storing\n List<Integer> optimalChoiceIncluded = new ArrayList<>();\n List<Integer> optimalChoiceExcluded = new ArrayList<>();\n Integer valueIncluded = items.get(n - 1).getValue() + packDPRec(capacity - weights.get(n - 1), weights, items, n - 1, mem, optimalChoiceIncluded);\n Integer valueExcluded = packDPRec(capacity, weights, items, n - 1, mem, optimalChoiceExcluded);\n if (valueIncluded > valueExcluded) {\n optimalChoice.addAll(optimalChoiceIncluded);\n optimalChoice.add(items.get(n - 1).getId());\n mem[n][capacity] = valueIncluded;\n }else{\n optimalChoice.addAll(optimalChoiceExcluded);\n mem[n][capacity] = valueExcluded;\n }\n return mem[n][capacity];\n }\n }", "public int knapSack(int wt[], int val[], int w) {\n return helper(wt, val, wt.length ,w);\n }", "public static int knapSackWithDP(int expectedWeight) {\n\t\tint N = values.length;\n\t\tint[][] dP = new int[N + 1][expectedWeight + 1];\n\t\tboolean[][] takeSoln = new boolean[N + 1][expectedWeight + 1];\n\n\t\tfor (int i = 1; i <= N; i++) {\n\t\t\tfor (int j = 1; j <= expectedWeight; j++) {\n\t\t\t\tif (weights[i - 1] > j) {\n\t\t\t\t\tdP[i][j] = dP[i - 1][j];\n\t\t\t\t} else {\n\t\t\t\t\tint option1 = dP[i - 1][j], option2 = values[i - 1] + dP[i - 1][j - weights[i - 1]];\n\t\t\t\t\tdP[i][j] = Math.max(option2, option1);\n\t\t\t\t\ttakeSoln[i][j] = (option2 > option1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"Selected items are: \");\n\t\tint totalWt = 0, totalValue = 0;\n\t\tfor (int k = N, wt = expectedWeight; k > 0; k--) {\n\t\t\tif (takeSoln[k][wt]) {\n\t\t\t\ttotalWt += weights[k - 1];\n\t\t\t\ttotalValue += values[k - 1];\n\t\t\t\tSystem.out.printf(\"\tItem %d with weight %d and value %d\\n\", k, weights[k - 1], values[k - 1]);\n\t\t\t\twt -= weights[k - 1];\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"Calculated total weight= %d and total value= %d\\n\", totalWt, totalValue);\n\t\treturn dP[N][expectedWeight];\n\t}", "private void ObjectsKnapsack(int[] vol, int[][] M, int n, int V, int[] objects)\r\n {\r\n int i,W;\r\n W = V;\r\n \r\n for(i=n; i>=1; i--) {\r\n if(M[i][W] == M[i-1][W]) {\r\n objects[i] = 0;\r\n } else {\r\n \tobjects[i] = 1;\r\n W = W - vol[i];\r\n }\r\n }\r\n }", "public static int[][] greedy(float[] benefit, float[] weight, int[] knapsackWeight) {\n // number of items\n int itemLen = benefit.length;\n // number of knapsacks\n int knapsackLen = knapsackWeight.length;\n // key: index of item, value: benefit / weight of item\n Map<Integer, Float> benefitPerWeightMap = new TreeMap<>();\n // if item i is included in knapsack j, result[i][j] = 1, otherwise result[i][j] = 0\n int[][] result = new int[itemLen][knapsackLen];\n // initialize the map\n for (int i = 0; i < itemLen; i++) {\n benefitPerWeightMap.put(i, (benefit[i] / weight[i]));\n }\n\n // the value comparator for sorting the entrySet in the map by value in descending order (using lambda)\n Comparator<Map.Entry<Integer, Float>> valueComparator = (o1, o2) -> o2.getValue().compareTo(o1.getValue());\n // convert the map to list to sort it by value comparator\n List<Map.Entry<Integer, Float>> benefitPerWeightList = new ArrayList<>(benefitPerWeightMap.entrySet());\n benefitPerWeightList.sort(valueComparator);\n\n // put items in list into knapsacks\n for (int j = 0; j < knapsackLen; j++) {\n // the items have been put in and ready to be delete\n List<Map.Entry<Integer, Float>> deleteList = new ArrayList<>();\n for (Map.Entry<Integer, Float> entry:\n benefitPerWeightList) {\n int i = entry.getKey();\n if (weight[i] <= knapsackWeight[j]) {\n result[i][j] = 1;\n deleteList.add(entry);\n knapsackWeight[j] -= weight[i];\n }\n }\n // delete the items have been put in\n benefitPerWeightList.removeAll(deleteList);\n }\n return result;\n }", "private void knapsack(Set<CMNMove> winSet, int count, int maxnum, int target) {\n\t\tint i;\n\t\ttarget -= maxnum; /* use maxnum in sum */\n\t\tcount--; /* now need one less summand */\n\n\t\tSet<CMNMove> tempSet = new TreeSet<CMNMove>(winSet);\n\t\ttempSet.add(moveList.get(maxnum)); /* adding the winning element */\n\n\t\tif (target == 0 && count == 0) { /* we have a win */\n\t\t\tWINS.add(tempSet);\n\t\t\treturn;\n\t\t}\n\n\t\tif (target < 0 || count == 0) { /* hopeless in either case */\n\t\t\treturn;\n\t\t}\n\n\t\tfor (i = maxnum - 1; i > 0; i--) { /* try to finish recursively */\n\t\t\tknapsack(tempSet, count, i, target);\n\t\t}\n\t\treturn;\n\t}", "public static double getBestknapSack01Value(double maxWeight, double[] w, double[] v) {\n // pack = new boolean[weight.length + 1];\n int[] weight = new int[w.length + 1];\n for (int i = 0; i < w.length; i++) {\n weight[i + 1] = (int) w[i];\n }\n int[] value = new int[v.length + 1];\n for (int i = 0; i < v.length; i++) {\n value[i + 1] = (int) v[i];\n }\n boolean[] pack = new boolean[v.length + 1];\n CalculateknapSack01((int) maxWeight, pack, weight, value);\n return getBestKnapSackValue((int) maxWeight, pack, weight, value);\n }", "public static double greedyfractionalknapsack(ArrayList<item> svd, int S){\n\t\tint totalSize = 0;\n\t\tdouble totalValue = 0;\n\t\tint count = 0;\n\t\twhile(S > totalSize && count < 3) {\n\t\t\t\tif(totalSize + svd.get(count).size <= S) {\n\t\t\t\t\ttotalValue += svd.get(count).value;\n\t\t\t\t\ttotalSize += svd.get(count).size;\n\t\t\t\t}\n\t\t\t\telse if(S - totalSize < svd.get(count).size) {\n\t\t\t\t\ttotalValue = totalValue + (svd.get(count).value * ((double)(S - totalSize)/svd.get(count).size));\n\t\t\t\t\ttotalSize = S;\n\t\t\t\t\t}\n\n\t\t\tcount++;\n\t\t\t\n\t\t}\n\t\t\n\t\treturn totalValue;\n\t\t\n\t\t\n\t}", "public static ArrayList < ArrayList < Double >> binPack(double weight[], int n, double bin_cap) { \r\n int binCount = 0;\r\n int k = 0;\r\n double[] bin_space = new double[n];\r\n\r\n ArrayList < Integer > bin = new ArrayList < Integer > ();\r\n ArrayList < Double > val = new ArrayList < Double > ();\r\n ArrayList < ArrayList < Double >> binVal = new ArrayList < ArrayList < Double >> ();\r\n binVal.add(k, new ArrayList < Double > ());\r\n System.out.println(\".......Commencing Calculation...........\\n\");\r\n startTime = System.nanoTime();\r\n for (int i = 0; i < n; i++) {\r\n int j;\r\n for (j = 0; j < binCount; j++) {\r\n \r\n if (bin_space[j] >= weight[i]) {\r\n bin_space[j] = bin_space[j] - weight[i];\r\n //val.add(weight[i]);\r\n (binVal.get(j)).add((weight[i]));\r\n k=j+1;\r\n System.out.println(\"---Bin \" + j + \" took in weight \" + weight[i]);\r\n break;\r\n }\r\n \r\n }\r\n System.out.println(\"*Bad fit for next weight size \"+ weight[i]+ \r\n \"\\n\\n ***NEW BIN CREATED***\\n\");\r\n if (j == binCount) {\r\n \r\n bin_space[binCount] = bin_cap - weight[i];\r\n //val.add(weight[i]);\r\n binCount++;\r\n //k++;\r\n bin.add(j);\r\n binVal.add(j, new ArrayList < Double > ());\r\n (binVal.get(j)).add((weight[i]));\r\n k=j+1;\r\n System.out.println(\"---Bin \" + k + \" took in weight **\" + weight[i]);\r\n }\r\n } \r\n endTime = System.nanoTime();\r\n elapsedTime = (endTime- startTime);\r\n System.out.println(\"\\nBIN PACKING ALGORITHM COMPLETE\\n\");\r\n \r\n return binVal;\r\n }", "private static void maxDuffelBagValue(JSONArray cakeTypes, int capacity) {\n for (int i = 0; i < cakeTypes.length(); i++) {\n \tJSONObject cakeType = (JSONObject) cakeTypes.remove(i);\n \tif (cakeType.getInt(\"weight\") <= capacity) {\n \t\tval += cakeType.getInt(\"value\");\n \t\tcapacity -= cakeType.getInt(\"weight\");\n \t\tmaxDuffelBagValue(cakeTypes, capacity);\n\t\t\t}\n }\n\t}", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint capacity = sc.nextInt();\n\t\tint numitems = sc.nextInt();\n\t\tint[] weights = new int[numitems];\n\t\tint[] values = new int[numitems];\n\t\tfor(int i = 0; i < numitems; i++){\n\t\t\tweights[i] = sc.nextInt();\n\t\t}\n\t\tfor(int i = 0; i < numitems; i++){\n\t\t\tvalues[i] = sc.nextInt();\n\t\t}\n\t\tknapsack(weights, values, capacity);\n\t\tsc.close();\n\n\t}", "public int knapSackDP(int wt[], int val[], int mw) {\n // init DP\n int[][] dp = new int[wt.length + 1][mw + 1];\n\n // base conditions\n // set all rows for n=0 and w=0 to 0\n\n // Loop\n for (int n = 1; n < dp.length; n++) {\n for (int w = 1; w < dp[0].length; w++) {\n if (wt[n - 1] > w)\n dp[n][w] = dp[n - 1][w];\n else\n dp[n][w] = Math.max(val[n - 1] + dp[n - 1][w - wt[n - 1]], dp[n - 1][w]);\n }\n }\n return dp[dp.length - 1][dp[0].length - 1];\n }", "public void\tgetData() throws IOException{\n\t\tint i,j, val;\n\t\tint profitOfItems[], weight[];\n\t\t\n\t\tSystem.out.println(\"Enter the weight of the Knapsack ( must be positive):\");\n\t\tknapsackWeight = KnapsackAlgorithmImplementation.getNumber();\n\t\t\n\t\tSystem.out.println(\"\\nEnter the number of items to put in knapsack ( must be positive):\");\n\t\tnumberOfItems = KnapsackAlgorithmImplementation.getNumber();\n\t\t\n\t\tprofitOfItems = new int[numberOfItems + 1];\n\t\tfor ( i = 1 ; i <= numberOfItems ; i++) {\n\t\t\tSystem.out.println(\"Enter profit of item \" + String.valueOf(i));\n\t\t\tprofitOfItems[i] = KnapsackAlgorithmImplementation.getNumber();\n\t\t}\t\n\t\t\n\t\tweight = new int[numberOfItems + 1];\n\t\tfor ( i = 1 ; i <= numberOfItems ; i++) {\n\t\t\tSystem.out.println(\"Enter weight of item \" + String.valueOf(i));\n\t\t\tweight[i] = KnapsackAlgorithmImplementation.getNumber();\n\t\t}\t\n\t\t\n\t\tProfit = new int[numberOfItems + 1][knapsackWeight + 1];\n\t\tDir\t = new int[numberOfItems + 1][knapsackWeight + 1];\n\t\t\n\t\tfor ( j = 0 ; j <= knapsackWeight; j++) {\n\t\t\tProfit[0][j] = 0;\t\n\t\t}\t\n\t\tfor ( i = 0 ; i <= numberOfItems; i++) {\n\t\t\tProfit[i][0] = 0;\t\n\t\t}\n\t\tfor ( i = 1 ; i <= numberOfItems; i++) { \n\t\t\tfor ( j = 1 ; j <= knapsackWeight; j++) {\n\t\t\t\tif ( weight[i] > j) {\n\t\t\t\t\tProfit[i][j] = Profit[i-1][j];\n\t\t\t\t\tDir[i][j] = 1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tval = profitOfItems[i] + Profit[i-1][j - weight[i]];\n\t\t\t\t\tProfit[i][j] = Find_Max( Profit[i-1][j] , val); \n\t\t\t\t\tif ( Profit[i][j] == val)\n\t\t\t\t\t\tDir[i][j] = 2;\n\t\t\t\t\telse\n\t\t\t\t\t\tDir[i][j] = 1;\t\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Maximum profit that can fit in the knapsack is :\" + Profit[numberOfItems][knapsackWeight]);\n\t\tPrint_KnapsackItems(Dir,weight);\t\t\n\t}", "static void knapsack(int problem, int i, int profit, int weight) {\r\n\t\tif(weight <= capacities.get(problem) && profit > maxProfit) {\r\n\t\t\tmaxProfit = profit;\r\n\t\t\tnumbest = i;\r\n\t\t\tfor(int j = 0; j < include.length; j++){\r\n\t\t\t\tbestset[j] = include[j];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif(promising(problem, weight, profit, i)) {\r\n\t\t\tinclude[i+1] = \"yes\";\r\n\t\t\tknapsack(problem, i+1, profit + profits[i+1], weight + weights[i+1]);\r\n\t\t\tinclude[i+1] = \"no\";\r\n\t\t\tknapsack(problem, i+1, profit, weight);\r\n\t\t}\r\n\t}", "protected abstract void solve(Items items,Knapsack knapsack);", "int countSusbset(int n, int w){\n //i.e target sum achieved\n if(w == 0){\n return 1;\n }\n \n //if sum not achieved and no items left\n if(n == 0){\n return 0;\n }\n \n //if item is gretart than target weight, we have to exclude it\n if(arr[n-1] > w){\n return countSusbset(n-1, w)\n }else{ \n return countSusbset(n-1, w) + countSusbset(n-1, w - arr[n-1]);\n }\n}", "public static void main(String args[]) {\n int val[] = new int[]{60, 100, 120};\n int wt[] = new int[]{10, 20, 30};\n int W = 50;\n int n = val.length;\n System.out.println(knapSack(W, wt, val, n));\n }", "private static int partition3(int[] A) {\n \tint sum = 0;\r\n \tfor (int i = 0; i < A.length; i++) \r\n sum += A[i]; \r\n \r\n if (sum%3 != 0) \r\n return 0; \r\n \r\n int weight[][] = new int[sum/3+1][A.length+1];\r\n \r\n // initialize top row as true \r\n for (int i = 0; i <= A.length; i++) \r\n \tweight[0][i] = 0; \r\n \r\n // initialize leftmost column, except part[0][0], as 0 \r\n for (int i = 1; i <= sum/3; i++) \r\n \tweight[i][0] = 0; \r\n //The logic of Discrete Knapsack with no repetitions\r\n int count = 0;\r\n for(int i=1; i<=sum/3; i++){\r\n \tfor(int j=1;j<=A.length;j++){\r\n \t\tweight[i][j] = weight[i][j-1];\r\n \t\tint weight1 = 0;\r\n \t\tif(A[j-1]<=i)\r\n \t\t\tweight1 = weight[i-A[j-1]][j] + A[j-1];\r\n \t\tweight[i][j] = Math.max(weight1, weight[i][j]);\r\n \t\tif(weight[i][j] == sum/3)\r\n \t\t\tcount++;\r\n \t\t\r\n \t}\r\n }\r\n if(count < 3)\r\n \treturn 0;\r\n else\r\n \treturn 1;\r\n }", "public static int[][] neighborhoodSearch(float[] benefit, float[] weight, int[] knapsackWeight){\n\n /*\n Using greedy algorithm to put items in knapsacks\n */\n\n // number of items\n int itemLen = benefit.length;\n // number of knapsacks\n int knapsackLen = knapsackWeight.length;\n // key: index of item, value: benefit / weight of item\n Map<Integer, Float> benefitPerWeightToIndexMap = new TreeMap<>();\n // if item i is included in knapsack j, result[i][j] = 1, otherwise result[i][j] = 0\n int[][] result = new int[itemLen][knapsackLen];\n // initialize the map\n for (int i = 0; i < itemLen; i++) {\n benefitPerWeightToIndexMap.put(i, (benefit[i] / weight[i]));\n }\n\n // the value comparator for sorting the entrySet in the map by value in descending order (using lambda)\n Comparator<Map.Entry<Integer, Float>> valueComparator = (o1, o2) -> o2.getValue().compareTo(o1.getValue());\n // convert the map to list to sort it by value comparator\n List<Map.Entry<Integer, Float>> benefitPerWeightToIndexList = new ArrayList<>(benefitPerWeightToIndexMap.entrySet());\n benefitPerWeightToIndexList.sort(valueComparator);\n\n printBenefitPerWeightList(benefitPerWeightToIndexList);\n\n int greedyTotalBenefit = 0;\n\n // put items in list into knapsacks\n for (int j = 0; j < knapsackLen; j++) {\n // the items have been put in and ready to be delete\n List<Map.Entry<Integer, Float>> deleteList = new ArrayList<>();\n for (Map.Entry<Integer, Float> entry:\n benefitPerWeightToIndexList) {\n int i = entry.getKey();\n if (weight[i] <= knapsackWeight[j]) {\n result[i][j] = 1;\n greedyTotalBenefit += benefit[i];\n deleteList.add(entry);\n knapsackWeight[j] -= weight[i];\n }\n }\n // delete the items have been put in\n benefitPerWeightToIndexList.removeAll(deleteList);\n }\n // After greedy algorithm\n System.out.println(\"------After greedy algorithm------\");\n printKnapsackWeight(knapsackWeight);\n printItemsNotIncluded(benefitPerWeightToIndexList);\n System.out.println(\"Total benefit:\" + greedyTotalBenefit);\n printResult(result);\n\n /*\n Search neighborhood\n */\n\n int neighborTotalBenefit = greedyTotalBenefit;\n\n // traversing knapsacks\n for (int j1 = 0; j1 < knapsackLen - 1; j1++) {\n for (int j2 = j1 + 1; j2 < knapsackLen; j2++) {\n // traversing items in the two knapsacks\n for (int i1 = 0; i1 < itemLen; i1++) {\n for (int i2 = 0; i2 < itemLen; i2++) {\n // judge if item i1 and item i2 exists in knapsack j1 and j2 respectively\n if (result[i1][j1] == 1 && result[i2][j2] == 1) {\n // tempList for update benefitPerWeightToIndexList in iteration\n List<Map.Entry<Integer, Float>> tempList = new ArrayList<>(benefitPerWeightToIndexList);\n // traversing items that have not been included\n for (Map.Entry<Integer, Float> entry:\n benefitPerWeightToIndexList) {\n int i3 = entry.getKey();\n // judge if the neighborhood solution is feasible\n if (knapsackWeight[j2] + weight[i2] - weight[i1] >= 0\n && knapsackWeight[j1] + weight[i1] - weight[i3] >= 0) {\n // judge if the neighborhood solution is better\n if (neighborTotalBenefit - benefit[i2] + benefit[i3] > neighborTotalBenefit) {\n // change the current solution to the neighborhood solution\n result[i1][j1] = 0;\n result[i1][j2] = 1;\n\n result[i2][j2] = 0;\n\n result[i3][j1] = 1;\n\n tempList.remove(entry);\n int finalI2 = i2;\n tempList.add(new Map.Entry<Integer, Float>() {\n @Override\n public Integer getKey() {\n return finalI2;\n }\n\n @Override\n public Float getValue() {\n return benefit[finalI2] / weight[finalI2];\n }\n\n @Override\n public Float setValue(Float value) {\n return null;\n }\n });\n\n knapsackWeight[j1] += weight[i1] - weight[i3];\n knapsackWeight[j2] += weight[i2] - weight[i1];\n\n neighborTotalBenefit = (int) (neighborTotalBenefit - benefit[i2] + benefit[i3]);\n\n System.out.println(\"------Find a better solution------\");\n System.out.println(\"Remove item\" + i2 + \" in \" + \"knapsack\" + j2 + \", move item\" + i1 + \" from knapsack\" + j1 + \" to \" + \"knapsack\" + j2 + \" and put item\" + i3 + \" in knapsack\" + j1);\n printKnapsackWeight(knapsackWeight);\n printItemsNotIncluded(tempList);\n System.out.println(\"Total benefit:\" + neighborTotalBenefit);\n printResult(result);\n }\n }\n }\n // update the list after traversing the list\n benefitPerWeightToIndexList = tempList;\n }\n }\n }\n }\n }\n\n return result;\n }", "public static void main(String[] args) {\n\t\tUnboundedKnapsack ks = new UnboundedKnapsack();\n\t\tint[] profits = { 15, 50, 60, 90 };\n\t\tint[] weights = { 1, 3, 4, 5 };\n\t\tint maxProfit = ks.solveKnapsack(profits, weights, 8);\n\t\tSystem.out.println(maxProfit);\n\n\t\tmaxProfit = ks.solveKnapsackUsingMemory(profits, weights, 8);\n\t\tSystem.out.println(maxProfit);\n\n\t}", "private void mostValuePerWeightFirst(Instance instance) {\n ArrayList<Pair> order = new ArrayList<Pair>();\n\n for (int i = 0; i < instance.getSize(); i++) {\n order.add(i, new Pair(i, instance.getValue(i), instance.getWeight(i)));\n }\n\n // Sort items according to c_i/w_i >= c_i+1/w_i+1\n order.sort(new Comparator<Pair>() {\n @Override\n public int compare(Pair o1, Pair o2) {\n return o1.compareTo(o2) * -1;\n }\n });\n\n setSolution(order);\n }", "private void setWinningTuples() {\n\t\tWINS = new ArrayList<Set<CMNMove>>();\n\t\tSet<CMNMove> winSet = new TreeSet<CMNMove>();\n\t\tfor (int i = MM; i > 0; i--) {\n\t\t\tknapsack(winSet, CC, i, NN);\n\t\t}// end for\n\n\t}", "public static void main(String args[]) {\r\n\tList<Integer> list = new ArrayList<>();\r\n\tint id[] = new int[] { 38, 21, 13, 15 };\r\n\tint val[] = new int[] { 500, 1800, 1500, 50 };\r\n\tint wt[] = new int[] { 130, 280, 120, 50 };\r\n\tint W = 300;\r\n\tint n = val.length;\r\n\tSystem.out.println(knapSack(W, wt, val, n, list, list));\r\n\tSystem.out.println(Arrays.toString(list.toArray()));\r\n }", "static double KWF2(int problem, int i, int currWeight, int profit) {\r\n\r\n\t\tdouble bound = profit;\r\n\t\tint n = problems.get(problem).size()+1;\r\n\t\tint capacity = capacities.get(problem);\r\n\r\n\t\tdouble[] x = new double[n];\r\n\t\tfor(int j = i; j < n; j++) x[j] = 0;\r\n\r\n\t\twhile( (currWeight < capacity) && (i <= n - 1)) {\r\n\t\t\tif(currWeight + weights[i] <= capacity) {\r\n\t\t\t\tx[i] = 1;\r\n\t\t\t\tcurrWeight += weights[i];\r\n\t\t\t\tbound += profits[i];\r\n\t\t\t} else {\r\n\t\t\t\tx[i] = (capacity - currWeight) / weights[i];\r\n\t\t\t\tcurrWeight = capacity;\r\n\t\t\t\tbound += profits[i] * x[i];\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t\treturn bound;\r\n\t}", "public static void main(String[] args) {\n System.out.println(\"------Random items and knapsacks------\");\n int itemLen = 10;\n int knapsackLen = 4;\n float[] benefit = new float[itemLen];\n float[] weight = new float[itemLen];\n int[] knapsackWeight = new int[knapsackLen];\n\n Random random = new Random();\n for (int i = 0; i < itemLen; i++) {\n // random benefit: 1 ~ 10\n benefit[i] = random.nextInt(9) + 1;\n // random weight: 1 ~ 10\n weight[i] = random.nextInt(9) + 1;\n }\n for (int i = 0; i < knapsackLen; i++) {\n // random knapsack weight: 5 ~ 15\n knapsackWeight[i] = random.nextInt(10) + 5;\n }\n\n /*\n Print items and knapsacks\n */\n System.out.print(\"Items benefit:\");\n for (int i = 0; i < itemLen; i++) {\n System.out.print(benefit[i] + \" \");\n }\n System.out.println();\n\n System.out.print(\"Items weight:\");\n for (int i = 0; i < itemLen; i++) {\n System.out.print(weight[i] + \" \");\n }\n System.out.println();\n\n System.out.print(\"Knapsacks weight:\");\n for (int i = 0; i < knapsackLen; i++) {\n System.out.print(knapsackWeight[i] + \" \");\n }\n System.out.println();\n\n // neighborhood search\n neighborhoodSearch(benefit, weight, knapsackWeight);\n\n }", "public int getWeightedBucket() {\n float val = (float)(new Float((Math.random() * 100)));\n int totalWeight = 0;\n int i = 0;\n for (i = 0; i < weights.length; i++) {\n totalWeight += weights[i];\n if (val <= totalWeight)\n break;\n }\n return(i);\n }", "private static int solve(int[] wt, int[] val, int n, int w) {\n int[][] dp = new int[n+1][w + 1];\n\n for (int i = 1; i <= n; ++i) {\n for (int j = 1; j <= w; ++j) {\n if (wt[i-1] <= j) dp[i][j] = Math.max(dp[i-1][j] , val[i-1]+dp[i-1][j-wt[i-1]]);\n else dp[i][j] = dp[i-1][j];\n }\n }\n return dp[n][w];\n }", "private void initialize() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.print(\"Enter number of items : \");\n\t\tn = sc.nextInt(); // number of items\n\t\tSystem.out.print(\"Enter W of knapsack : \");\n\t\tW = sc.nextInt(); // capacity of knapsack\n\t\tw = new int[n];\n\t\tv = new int[n];\n\t\tSystem.out.println(\"Enter ws and vs of items : \");\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tw[i] = sc.nextInt(); // weight of item\n\t\t\tv[i] = sc.nextInt(); // profit of item\n\t\t}\n\t\tV = new int[n + 1][W + 1]; // initializing the table to hold results\n\t\tfor (int i = 0; i <= W; i++)\n\t\t\tV[0][i] = 0;\n\t}", "public boolean canPartition(int[] nums) {\n int sum = 0;\n int n = nums.length;\n for (int num : nums) sum += num;\n // sum cannot be splitted evenly\n if ((sum & 1) == 1) return false;\n int target = sum / 2;\n \n // dp[i][j] represents whether 0~i-1 numbers can reach\n // weight capacity j\n boolean[][] dp = new boolean[n+1][target+1];\n \n for (int i = 1; i <= n; i++) dp[i][0] = true;\n for (int j = 1; j <= target; j++) dp[0][j] = false;\n dp[0][0] = true;\n \n for (int i = 1; i <= n; i++) {\n for (int j = 1; j <= target; j++) {\n // if don't pick current number\n dp[i][j] = dp[i-1][j];\n if (j >= nums[i-1]) {\n dp[i][j] = dp[i][j] || dp[i-1][j-nums[i-1]];\n }\n }\n }\n return dp[n][target];\n \n \n // Solution2: optimizing to save space\n // https://leetcode.com/problems/partition-equal-subset-sum/discuss/90592/01-knapsack-detailed-explanation/94996\n int sum = 0;\n int n = nums.length;\n for (int num : nums) sum += num;\n if ((sum & 1) == 1) return false;\n int target = sum / 2;\n boolean[] dp = new boolean[target+1];\n dp[0] = true;\n for (int num : nums) {\n // here is the trick to save space\n // because we have to update dp[j] based on \n // previous dp[j-num] and dp[j] from previous loop.\n // if we update dp from left to right\n // we first update smaller dp which is dp[j-num]\n // then we won't be able to get original dp[j-num] and dp[j]\n // from previous loop, and eventually we get the wrong\n // answer. But if we update dp from right to left\n // we can assure everything is based on previous state\n for (int j = target; j >= num; j--) {\n // if (j >= num) {\n dp[j] = dp[j] || dp[j-num];\n // }\n }\n }\n return dp[target];\n }", "max_values OptimizeCargo(ArrayList<ore_excavation> oe, double wt,\n int index) {\n int i;\n double weight = 0.0;\n max_values mv;\n max_values new_mv = new max_values();\n /*\n \t\t * I am making a subset of the original vector because I\n \t\t * will be taking mined minerals out to test if adding\n \t\t * it to the cargo will maximize my value. I may need to\n \t\t * remove this mineral from the cargo and use another.\n \t\t *\n \t\t * But the beauty of recursion is that if the mineral does\n \t\t * not fit, unwinding the stack frames returns the\n \t\t * algorithm to a previous state to try other combinations of\n \t\t * minerals.\n \t\t *\n \t\t * Making a copy of the input vector allows this to happen.\n */\n ArrayList<ore_excavation> ro = new ArrayList<ore_excavation>(oe);\n\n /* Loop over all remaining minerals in subset */\n for (i = index; i < ro.size(); i++) {\n\n ore_excavation o = ro.get(i);\n\n weight = wt - o.ore_mass;\n\n if (weight >= 0.0) {\n /*\n \t\t\t\t * Weight will work. Now make the working\n \t\t\t\t * set smaller and try more minerals.\n \t\t\t\t * Pass the smaller set of remaining minerals\n \t\t\t\t * to try to add them to the cargo.\n */\n ro.remove(i); // Make set smaller.\n mv = OptimizeCargo(ro, weight, 0);\n mv.value += o.ore_value;\n\n if (mv.value > new_mv.value) {\n new_mv.value = mv.value;\n new_mv.weight = mv.weight + o.ore_mass;\n }\n continue;\n }\n }\n return new_mv;\n }", "public Solution solve(KnapsackData data);", "public void packBags() {\r\n GroceryBag[] packedBags = new GroceryBag[numItems];\r\n int bagCount = 0;\r\n\r\n GroceryBag currentBag = new GroceryBag();\r\n for (int i=0; i<numItems; i++) {\r\n GroceryItem item = (GroceryItem) cart[i];\r\n if (item.getWeight() <= GroceryBag.MAX_WEIGHT) {\r\n if (!currentBag.canHold(item)) {\r\n packedBags[bagCount++] = currentBag;\r\n currentBag = new GroceryBag();\r\n }\r\n currentBag.addItem(item);\r\n removeItem(item);\r\n i--;\r\n }\r\n }\r\n // Check this in case there were no bagged items\r\n if (currentBag.getWeight() > 0)\r\n packedBags[bagCount++] = currentBag;\r\n\r\n // Now create a new bag array which is just the right size\r\n pBags = new GroceryBag[bagCount];\r\n for (int i=0; i<bagCount; i++) {\r\n pBags[i] = packedBags[i];\r\n }\r\n\r\n // Add all grocery bags bag into cart\r\n for (int i = 0; i < bagCount; i++) {\r\n addItem(pBags[i]);\r\n }\r\n }", "public Chromosome withRandomKnapsackItems() {\n this.knapsackSelection = generateRandomItems();\n return this;\n }", "private void leastWeightFirst(Instance instance) {\n ArrayList<Pair> order = new ArrayList<Pair>();\n\n for (int i = 0; i < instance.getSize(); i++) {\n order.add(i, new Pair(i, instance.getValue(i), instance.getWeight(i)));\n }\n\n // Sort items according to w_i <= w_i+1\n order.sort(new Comparator<Pair>() {\n @Override\n public int compare(Pair o1, Pair o2) {\n return o1.w - o2.w;\n }\n });\n\n setSolution(order);\n }", "public static ScalesSolution RMHC(ArrayList<Double> weights, int n, int iter)\n\t{\n\t\tScalesSolution sol = new ScalesSolution(n);\n\t\tScalesSolution oldSol = new ScalesSolution(sol.getScasol());\n\t\tdouble fitness;\n\t\tdouble oldFitness;\n\t\t\n\t\tfor(int i = 0; i < iter; i++)\n\t\t{\n\t\t\toldSol = new ScalesSolution(sol.getScasol());\n\t\t\toldFitness = sol.ScalesFitness(weights);\n\t\t\toldSol.smallChange();\n\t\t\tfitness = oldSol.ScalesFitness(weights);\n\t\t\t\n\t\t\tif(fitness < oldFitness)\n\t\t\t{\n\t\t\t\tsol = new ScalesSolution(oldSol.getScasol());\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn sol;\n\t}", "public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(new FileReader(\"talent.in\"));// new InputStreamReader(System.in)); //\n PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(\"talent.out\")));\n int N = sc.nextInt();\n int minWeight = sc.nextInt();\n int[] weight = new int[N];\n int[] value = new int[N];\n int totalTalent = 0;\n for (int i = 0; i < N; i++) {\n int wt = sc.nextInt();\n int val = sc.nextInt();\n weight[i] = wt;\n value[i] = val;\n totalTalent += val;\n }\n\n // Store, for a given talent, what is the smallest weight used to achieve it?\n int[] dp = new int[totalTalent + 1];\n Arrays.fill(dp, (int) 1e9);\n dp[0] = 0;\n // the min weight to produce 0 talent is 0. However,\n // it is necessary to make everything else big because we can only BUILD\n // from 0\n double bestRatio = 0;\n for (int cow = 0; cow < N; cow++) {\n // look at each cow, and go DOWN THROUGH THE dp array, updating the\n // best weight achievable BEHIND US. This countercurrent motion ensures no repeated\n // counting of a single cow's talents\n int contribution = value[cow];\n int wt = weight[cow];\n for (int talent = totalTalent; talent >= 0; talent--) {\n int boostedTalent = contribution + talent;\n int boostedWeight = dp[talent] + wt;\n // with the min weight of a certain talent,\n // is it possible to get a smaller boostedWeight for a boostedTalent\n if (boostedTalent <= totalTalent) {\n // If we are in bounds,\n if (boostedWeight < dp[boostedTalent]) {\n // and the attempted team has a better weight value\n // then update it!\n // Initially, when everything is 1 billion, this cannot\n // happen except for from the base cases, building outward\n dp[boostedTalent] = boostedWeight;\n\n // At the same time, we can be more efficient by constantly\n // checking if we had enough weight first of all, and\n // second of all had a better talent/weight ratio!\n double ratio = (double) boostedTalent / boostedWeight;\n if (ratio > bestRatio && boostedWeight >= minWeight) {\n bestRatio = ratio;\n }\n }\n }\n }\n }\n\n out.println((int) (1000 * bestRatio));\n out.close();\n }", "public static int dynamic_p(int objects,int capacity){\r\n // Array to accommodate dynamic programming solutions\r\n int dp_array[][] = new int[objects+1][capacity+1];\r\n // filling the 2D array\r\n for(int i=0; i<= objects;i++){\r\n for(int j=0; j<= capacity;j++){\r\n if(i == 0)\r\n dp_array[i][j]=0; // base case(number of objects are zero)\r\n else if(j == 0)\r\n dp_array[i][j]=0; // base case(capacity is zero)\r\n else if(randvariables[i-1] <= j){ // checking if the wight of object is less than the current knapsack capacity\r\n int included = randvalues[i-1]+dp_array[i-1][j-randvariables[i-1]]; // object is included\r\n int not_included = dp_array[i-1][j]; // object is not included\r\n\r\n //taking the max of these two\r\n if(included > not_included)\r\n dp_array[i][j] = included;\r\n else\r\n dp_array[i][j]= not_included;\r\n }\r\n else // weight is more than capacity .. not including the object\r\n dp_array[i][j] = dp_array[i-1][j];\r\n }\r\n }\r\n\r\n //System.out.println(Arrays.deepToString(dp_array));\r\n int solution = dp_array[objects][capacity];\r\n boolean[] optimalset = solution_used(dp_array,objects,capacity);\r\n System.out.println(Arrays.toString(optimalset));\r\n dp_array = null;\r\n return solution; // return the final solution\r\n\r\n }", "int countSusbset(int n, int w){\n int dp[][] = new int[n+1][w+1];\n for(int i=0;i<=n;i++){\n for(int j=0;j<=w;j++){\n //when no items are there and target sum is 0, only one empty subset is possible\n if(i == 0 && j == 0){\n dp[i][j] = 1;\n }\n //no items left and target sum is greater than 0, no set is possible\n else if(i == 0 && j > 0){\n dp[i][j] = 0; \n }\n //if target sum is 0, no matter how many items we have , only one empty subset is possible\n else if(j == 0){\n dp[i][j] = 1;\n }\n //since item > target sum, so exclude\n else if(arr[i-1] > j){\n dp[i][j] = dp[i-1][j];\n }else{\n //two cases include and exclude\n dp[i][j] = dp[i-1][j] + dp[i-1][j - arr[i-1]];\n }\n }\n }\n return dp[n][w];\n}", "public WeightedInventory(int weightLimit) {\n\t\tthis.weightLimit = weightLimit;\n\t\tthis.items = new LinkedList<>();\n\t}", "@Override\n public void fill(ArrayList<Package> warehousePackages) {\n int diffCounter = 0;\n int checkOnce = -1;\n boolean checkTwice = false;\n boolean sameI = false;\n int overWeight = 0;\n while (!isFull() && (warehousePackages.size() - overWeight) > 0) {\n for (int i = 0; i < warehousePackages.size(); i++) {\n sameI = false;\n int destination = warehousePackages.get(i).getDestination().getZipCode();\n int difference = Math.abs(destination - this.getZipDest());\n if (difference <= diffCounter + 10 && difference >= diffCounter) {\n if (!(warehousePackages.get(i).getWeight() +\n getCurrentWeight() > getMaxWeight())) {\n addPackage(warehousePackages.get(i));\n setCurrentWeight(getCurrentWeight() + warehousePackages.get(i).getWeight());\n warehousePackages.remove(i);\n sameI = true;\n break;\n } else {\n overWeight += 1;\n }\n }\n }\n if (!sameI) {\n diffCounter += 10;\n }\n }\n\n\n }", "private static void buildSolution(int weight, int currentItem, Item[] items, long[][] DP, boolean[] used) {\n\n if (currentItem == 0) {\n return;\n }\n\n int itemIndex = currentItem - 1;\n\n if (DP[weight][currentItem] == DP[weight][currentItem - 1]) {\n used[itemIndex] = false;\n buildSolution(weight, currentItem - 1, items, DP, used);\n return;\n }\n\n used[currentItem - 1] = true;\n buildSolution(weight - items[itemIndex].getWeight(), currentItem - 1, items, DP, used);\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\t\r\n\t\tint T = sc.nextInt();\r\n\t\t\r\n\t\tfor (int z = 1; z <= T; z++) {\r\n\t\t\tint N = sc.nextInt();\r\n\t\t\tint[] input = new int[N+1];\r\n\t\t\t\r\n\t\t\tfor (int j = 1; j <= N; j++) {\r\n\t\t\t\tinput[j] = sc.nextInt();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tint[] weight = new int[N+1];\r\n\t\t\tint[] memWeight = new int[N+1];\r\n\t\t\t\r\n\t\t\tint cnt = 1;\r\n\t\t\tweight[1] = 1;\r\n\t\t\tmemWeight[1] = input[1]; \r\n\t\t\tfor (int j = 2; j <= N; j++) {\r\n\t\t\t\tfor (int k = cnt; k >= 1 ; k--) {\r\n\t\t\t\t\tif(input[j] > memWeight[k] && k == cnt) {\r\n\t\t\t\t\t\tmemWeight[++cnt] = input[j];\r\n\t\t\t\t\t\tweight[j] = cnt;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(input[j] > memWeight[k] && k < cnt) {\r\n\t\t\t\t\t\tmemWeight[k+1] = input[j];\r\n\t\t\t\t\t\tweight[j] = cnt;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(k == 1) {\r\n\t\t\t\t\t\tmemWeight[k] = input[j] < memWeight[k] ? input[j] : memWeight[k];\r\n\t\t\t\t\t\tweight[j] = cnt;\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}\r\n\t\t\t\r\n\t\t\t// result\r\n\t\t\tint maxV = -1;\r\n\t\t\tfor (int i = 1; i <= N; i++) {\r\n\t\t\t\tif(maxV < weight[i]) {\r\n\t\t\t\t\tmaxV = weight[i];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"#\"+z+\" \"+maxV);\r\n\t\t}\r\n\t\t\r\n\t\tsc.close();\r\n\t}", "static int optimalWeight(int W, int[] w) {\n \tif (W ==0) {\n \t\treturn 0; \n \t}\n \t\n \t\n \t\n \n \tint[][] table = new int [W+1][w.length+1];\n \tfor(int i = 0; i <=w.length; i++) {\n \t\ttable[W][i] =0; \n\n \t}\n \t\n \tfor(int i = 0; i <=W; i++) {\n \t\ttable[i][w.length] =0; \n\n \t}\n \t\n \tint val = 0;\n \tfor (int i = 0; i <= W; i++) {\n \t\t\n \t\tfor (int j = 1; j<=w.length; j++) {\n \t\t\ttable[i][j] = table[i][j-1];\n \t\t\tif (w[j-1]<=i) {\n \t\t\t\tval = table[i-w[j-1]][j-1] +w[j-1]; \n \t\t\tif (table[i][j]<val) {\n \t\t\t\ttable[i][j] = val;\n \t\t\t}\n \t\t\t}\n \t\t\t\n\n \t\t}\n \t\t\n \t}\n \t\n \treturn table[W][w.length];\n\n }", "private int[] bestFitModified(int[] chromosome) {\n\t\tint[] bins = new int[binCount];\n\t\tArrayList<Integer> cannotPackList = new ArrayList<Integer>();\n\n\t\t//honor chromosome listing when possible\n\t\tfor (int i = 0; i < chromosome.length; i++) {\n\t\t\t//if this bin isnt full & won't be after placement & this chrom hasnt gone off the end \n\t\t\t//(VERY RARE, only happens when binCount is reduced w/ elitism)\n\t\t\tif (chromosome[i] < bins.length && bins[chromosome[i]] + packageWeights[i] <= binSize) {\n\t\t\t\tbins[chromosome[i]] += packageWeights[i]; //put package into bin\n\t\t\t} else { //store those we can't honor\n\t\t\t\tchromosome[i] = -1;\n\t\t\t\tcannotPackList.add(new Integer(i)); //save all those packages whos original bins were full\n\t\t\t}\n\t\t}\n\n\t\t//best fit on all the rest whos bins were full up\n\t\tint tries = 0;\n\t\tfor (int j = 0; j < cannotPackList.size(); j++) {\n\t\t\tint i = cannotPackList.get(j);\n\t\t\tint bestBinIndex = -1;\n\n\t\t\twhile (bestBinIndex < 0 && tries < bins.length * 2) { //while we still havent found a bin to put this in and time isn't up\n\n\t\t\t\tint bestBinLeftOverSpace = binSize * 100; //how much space is left in the bin when the packages is placed in it (ideally 0 = full bin)\n\n\t\t\t\tfor (int bin = 0; bin < bins.length; bin++) {\n\t\t\t\t\t//if this bin is closer to full than the best bin and not overfilled save it\n\t\t\t\t\tif ((binSize - (bins[bin] + packageWeights[i])) >= 0 && (binSize - (bins[bin] + packageWeights[i])) < bestBinLeftOverSpace) {\n\t\t\t\t\t\tbestBinIndex = bin;\n\t\t\t\t\t\tbestBinLeftOverSpace = binSize - (bins[bin] + packageWeights[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (bestBinIndex < 0) { //if could not pack, dump out a bin (mutation)\n\t\t\t\t\tj = 0;\n\t\t\t\t\tint dumpBin = rand.nextInt(binCount);\n\t\t\t\t\tfor (int binIndex = dumpBin; binIndex < binCount; binIndex++) {\n\t\t\t\t\t\tbins[binIndex] = 0;\n\t\t\t\t\t\tfor (int chromIndex = 0; chromIndex < chromosome.length; chromIndex++) {\n\t\t\t\t\t\t\tif (chromosome[chromIndex] == binIndex) {\n\t\t\t\t\t\t\t\tchromosome[chromIndex] = -1;\n\t\t\t\t\t\t\t\tcannotPackList.add(new Integer(chromIndex));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\ttries++;\n\t\t\t}\n\n\t\t\tif (tries >= bins.length * 2) {\n\t\t\t\treturn null; //this chromosome is unsalvageable because it is impossible to fit the packages in the bins\n\t\t\t}\n\n\n\t\t\tbins[bestBinIndex] += packageWeights[i];\n\t\t\tchromosome[i] = bestBinIndex;\n\t\t\tcannotPackList.remove(j);\n\t\t\tj--;\n\t\t}\n\n\t\treturn chromosome;\n\t}", "public void setWeight(Item item, int value) {\n\t\tweight.put(item, value);\n\t}", "private static void normal(){\n ProblemKnapsackFromFile problem = new ProblemKnapsackFromFile(macPathGetProblemFrom);\n\n //NSGAII algorithm = new NSGAII();\n SPEA2 algorithm = new SPEA2();\n //SPEAHADKA algorithm = new SPEAHADKA();\n //AEMMT algorithm = new AEMMT();\n //AEMMD algorithm = new AEMMD();\n //MOEAD algorithm = new MOEAD();\n\n int x =1;\n int counter = 0;\n\n if (AEMMD.class.isInstance(algorithm) || AEMMT.class.isInstance(algorithm)){\n Parameters.NUMBER_OF_GENERATIONS = 15000;\n }\n else{\n Parameters.NUMBER_OF_GENERATIONS = problem.items.size() < 100? 100 : 200;\n }\n\n while (counter < x) {\n algorithm.runAlgorithm(problem);\n counter++;\n }\n }", "public void setMaxWeight(String newValue);", "public static void main(String[] args) {\n\t\tif (args.length != 0) {\n\t\t\tString msg = \"unexpected arguments; pass input on stdin\";\n\t\t\tthrow new IllegalArgumentException(msg);\n\t\t}\n\t\tint n = StdIn.readInt();\n\t\tint k = StdIn.readInt();\n\t\tint[] v = new int[n];\n\t\tint[] w = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tv[i] = StdIn.readInt();\n\t\t\tw[i] = StdIn.readInt();\n\t\t}\n\t\tKnapsack knapsack = new Knapsack(k, v, w);\n\t\tSystem.out.print(knapsack.classOut());\n\t}", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n//\t\tPrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n\n\t\tStringTokenizer st = new StringTokenizer(br.readLine());\n\t\tint N= Integer.parseInt(st.nextToken());\n\t\tint T= Integer.parseInt(st.nextToken());\n\t\t\n\t\t//for each N, three possible problem sets (P, A, G)\n\t\t//and P (prep time: min), V (value)\n\t\t//P <= A <= G\n\t\t\n\t\t//given limit T\n\t\t//find max profit\n\t\tint[][] v = new int[N+1][3+1];\n\t\tint[][] w = new int[N+1][3+1];\n\t\t\n\t\t//one \n\t\t\n\t\tfor (int i = 1; i <= N; i++) {\n\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\tfor (int j = 1; j <= 3; j++) {\n\t\t\t\tw[i][j] = Integer.parseInt(st.nextToken());\n\t\t\t\tv[i][j] = Integer.parseInt(st.nextToken());\n\t\t\t}\n\t\t}\n//\t\tfor (int i = 1; i <= N; i++) {\n//\t\t\tfor (int j = 1; j <= 3; j++) {\n//\t\t\t\tSystem.out.println(w[i][j] + \" \"+ v[i][j]);\n//\t\t\t}\n//\t\t}\n\t\tint[][] dp = new int[2][T+1];\n\t\t//where k looks at the kth row of the values/weight array\n\t\tfor (int k = 1; k <= N; k++) {\n\t\t\tfor (int x = 0; x <= T; x++) {\n\t\t\t\t//going through each weight and value\n\t\t\t\tboolean ran = false;\n\t\t\t\tfor (int a = 1; a <= 3; a++) {\t\t\t\t\t\n\t\t\t\t\tif (w[k][a] > x) {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tran = true;\n\t\t\t\t\t\tdp[1][x] = Math.max(Math.max(dp[0][x],dp[0][x-w[k][a]] + v[k][a]),dp[1][x]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!ran) {\n\t\t\t\t\tdp[1][x] = dp[0][x];\n\t\t\t\t}\n\t\t\t}\n\t\t\tdp[0] = dp[1].clone();\n//\t\t\tfor (int[] row: dp) {\n//\t\t\t\tfor (int m: row) {\n//\t\t\t\t\tSystem.out.print(m + \" \");\n//\t\t\t\t}\n//\t\t\t\tSystem.out.println();\n//\t\t\t}\n\t\t}\n\t\t\n//\t\tfor (int[] row: dp) {\n//\t\t\tfor (int m: row) {\n//\t\t\t\tSystem.out.print(m + \" \");\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\t\tSystem.out.println(dp[1][T]);\n\t}", "public WeightedItem(E value, Double w) {\n this.value = value;\n this.w = w;\n }", "public void adaptProductVector() {\t\t\r\n\t\tHashMap<Integer, Integer> neighboursAdaption = new HashMap<Integer, Integer>();\r\n\t\t\r\n\t\tdouble threshold = Parameters.adaptationThreshold / 100.0;\r\n\t\tint neighbours = 0;\r\n\t\t\r\n\t\tfor (int i = 0; i < Parameters.vectorSpaceSize; i++) {\r\n\t\t\tneighboursAdaption.put(i, 0);\r\n\t\t}\r\n\t\t\r\n\t\tfor (Object o: network.getAdjacent(this)) {\t\t\r\n\t\t\tif (o instanceof Customer) {\r\n\t\t\t\tCustomer c = (Customer)o;\r\n\t\t\t\t\r\n\t\t\t\tfor (int i = 0; i < Parameters.vectorSpaceSize; i++) {\r\n\t\t\t\t\tint count = neighboursAdaption.get(i);\r\n\t\t\t\t\tif (c.getDemandVector()[i] == 1) {\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tneighboursAdaption.put(i, count);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tneighbours++;\r\n\t\t}\r\n\t\t\r\n\t\tfor (int i = 0; i < Parameters.vectorSpaceSize; i++) {\r\n\t\t\tif ((double)neighboursAdaption.get(i) / neighbours >= threshold ) {\r\n\t\t\t\tdemandVector[i] = 1;\r\n\t\t\t}\r\n\t\t}\t\t \r\n\t}", "private static List<Integer> packDPInit(PackageDTO packageDTO) {\n // Declare the table dynamically\n Integer itemsSize = packageDTO.getItems().size();\n Integer capacityGrams = packageDTO.getCapacity() * GRAMS_IN_KILO;\n Integer mem[][] = new Integer[itemsSize + 1][capacityGrams + 1];\n\n //I need to re-instance my list as an Integer List to use The values on my memoization structure\n List<Integer> weights = new ArrayList<>();\n for(ItemDTO item : packageDTO.getItems()){\n Double weightGrams = item.getWeight() * GRAMS_IN_KILO;\n weights.add(weightGrams.intValue());\n }\n\n // Loop to initially filled the\n // table with -1\n for(int i = 0; i < itemsSize + 1; i++)\n for(int j = 0; j < capacityGrams + 1; j++)\n mem[i][j] = -1;\n\n List<Integer> optimalChoice = new ArrayList<>();\n packDPRec(capacityGrams, weights, packageDTO.getItems(), weights.size(), mem, optimalChoice);\n return optimalChoice;\n }", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt(), M = scanner.nextInt();\n int[][] graph = new int[N + 1][N + 1];\n\n for (int i = 0; i < M; i++) {\n int from = scanner.nextInt(), to = scanner.nextInt();\n int weight = scanner.nextInt();\n graph[from][to] = weight;\n }\n \n int[][][] dp = new int[N + 1][N + 1][N + 1];\n\n for (int i = 1; i <= N; i++) {\n for (int j = 1; j <= N; j++) {\n if (graph[i][j] != 0) {\n dp[0][i][j] = graph[i][j];\n } else {\n dp[0][i][j] = Integer.MAX_VALUE;\n }\n }\n }\n \n for (int k = 0; k <= N; k++) {\n for (int i = 1; i <= N; i++) {\n dp[k][i][i] = 0;\n }\n }\n\n for (int k = 1; k <= N; k++) {\n for (int i = 1; i <= N; i++) {\n for (int j = 1; j <= N; j++) {\n if (dp[k - 1][i][k] != Integer.MAX_VALUE && dp[k - 1][k][j] != Integer.MAX_VALUE) {\n dp[k][i][j] = Math.min(dp[k - 1][i][j], dp[k -1][i][k] + dp[k -1][k][j]);\n } else {\n dp[k][i][j] = dp[k - 1][i][j];\n }\n }\n }\n }\n\n int Q = scanner.nextInt();\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < Q; i++) {\n int from = scanner.nextInt(), to = scanner.nextInt();\n int res = dp[N][from][to] == Integer.MAX_VALUE ? -1 : dp[N][from][to];\n sb.append(res).append('\\n');\n }\n System.out.println(sb.toString());\n }", "public void maximize()\n\t{\n\t\tint i,j,max=cost[0][0];\n\t\t\n\t\tfor(i=0;i<n;i++)\n\t\t{\n\t\t\tfor(j=0;j<n;j++)\n\t\t\t{\n\t\t\t\tif(cost[i][j]>max)\n\t\t\t\t{\n\t\t\t\t\tmax=cost[i][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(i=0;i<n;i++)\n\t\t{\n\t\t\tfor(j=0;j<n;j++)\n\t\t\t{\t\t\n\t\t\t\tcost[i][j]=max-cost[i][j];\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public MyList<Integer> solve(int typeSelectFunc, MyList<Integer> coinValues, int amount){\n\t\tMyList<Integer> res = null;\n\n\t\t// -----------------------------\n\t\t// SET OF OPS\n\t\t// -----------------------------\n\n\t\t// OP1. Auxiliary variables:\n\n\t\t// We use 'candidates' as a MyList with the items that can be considered\n\t\t// by the selectionFunction.\n\t\tMyList<Integer> candidates = null;\n\t\tMyList<Integer> objFunValues = null;\n\n\t\t// We use res for storing the values of the items that will be in the knapsack\n\t\t//MyList<Integer> resValues = null;\n\n\t\t// We use 'capacityUsed' to state the amount of weight our bin contains\n\t\t// so far.\n\t\tint capacityUsed = 0;\n\n\t\t// OP1. We initialise all variables:\n\n\t\t// OP1.1. 'res' is initialised to be a list of the items that will be in\n\t\t// the knapsack\n\t\tres = new MyDynamicList<Integer>();\n\t\tcandidates = new MyDynamicList<Integer>();\n\t\tobjFunValues =new MyDynamicList<Integer>();\n\n\t\t// we copy all the items in the candidates list\n\t\tfor (int i = 0; i < coinValues.length(); i++) {\n\t\t\tcandidates.addElement(i, coinValues.getElement(i));\n\t\t}\n\n\n\t\t// OP2. We construct the final solution:\n\t\twhile (solutionTest(candidates) == false) {\n\t\t\t// OP2.1 Auxiliary variables:\n\t\t\t// We use 'itemSelected' to state the index of the candidate being\n\t\t\t// selected.\n\t\t\tint candidateSelected = -1;\n\n\t\t\t// OP2.1. We pick the most promising candidate\n\t\t\tswitch (typeSelectFunc) {\n\t\t\tcase 1:\n\t\t\t\tcandidateSelected = selectionFunctionDummy(candidates);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tcandidateSelected = selectionFunctionBiggestCoin(candidates);\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\twhile (feasibilityTest(candidates.getElement(candidateSelected), amount, capacityUsed) == true) {\n\t\t\t\tres.addElement(res.length(), candidates.getElement(candidateSelected));\n\t\t\t\t//int n = (amount - capacityUsed) / candidates.getElement(candidateSelected);\n\t\t\t\t//capacityUsed = capacityUsed + candidates.getElement(candidateSelected) * n;\n\t\t\t\tcapacityUsed = capacityUsed + candidates.getElement(candidateSelected);\n\t\t\t\t\n\t\t\t}\n\n\t\t\tcandidates.removeElement(candidateSelected);\n\t\t}\n\n\t\t// OP3. We print the solution and its associated objective value\n\t\tobjFunValues = objectiveFunction(res, capacityUsed, amount);\n\t\tSystem.out.println(\"Solution:\");\n\t\t\n\t\tSystem.out.print(\"Coins to be givin in change:\");\n\t\tdisplayElements(res);\n\t\tp(\"accuracy = \" + objFunValues.getElement(0));\n\t\tp(\"number of coins used = \" + objFunValues.getElement(1));\n\t\t//p(\"Total number of coins used = \" + objFunValues.getElement(2));\n\t\t\n\t\t\n//\t\t\n////\t\tpNl(\"\\t\\t\\t\\t\\t\\t \");\n////\t\tfor(int i = 0; i < res.length(); i++) {\n////\t\t\tpNl(\"* \");\n////\t\t}\n////\t\tSystem.out.print(\"\\nNumber of coins to be givin:\");\n////\t\tdisplayElements(objFunValues);\n////\t\tp(\"\");\n\t\t// -----------------------------\n\t\t// Output Variable --> Return FinalValue\n\t\t// -----------------------------\n\t\treturn res;\n\t}", "private static ArrayList<Float> bestNList(Vector<float[]> cls1, int N)\n\t{\n\t\tboolean[] checked = new boolean[cls1.size()];\n\t\tArrayList<Float> out = new ArrayList<Float>(N);\n\n\t\tfor (int k = 0; k<N; k++) {\n\t\t\t// reset max search\n\t\t\tdouble currMax = Double.MIN_VALUE;\n\t\t\tint currMaxIdx = -1;\n\n\t\t\tfor (int i=0; i<cls1.size(); i++) {\n\n\t\t\t\t// find max in this round\n\t\t\t\tif (!checked[i]) {\n\t\t\t\t\tif (cls1.get(i)[1]>currMax) {\n\n\t\t\t\t\t\tcurrMax = cls1.get(i)[1];\n\t\t\t\t\t\tcurrMaxIdx = i;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tchecked[currMaxIdx] = true;\n\t\t\t// set the output value\n\t\t\tout.add(k, cls1.get(currMaxIdx)[0]);\n\n\t\t}\n\n\t\treturn out;\n\n\t}", "private Pair[] bribeCalculateBag(final int maxCards,\n final HashMap<String, Integer> association) {\n final int minMoney = 5;\n final int maxBagSize = 3;\n if (getInventory().getMoney() < minMoney || numberOfIllegals(association) == 0) {\n return calculateBag(maxCards, association);\n }\n Pair[] result;\n if (numberOfIllegals(association) <= 2 || getInventory().getMoney() < minMoney * 2) {\n getInventory().getBagToGive().setBribe(minMoney);\n getInventory().setMoney(getInventory().getMoney() - minMoney);\n int duplicate = findIllegal(association);\n removeOneAsset(findIllegal(association));\n if (duplicate == findIllegal(association)) {\n result = new Pair[1];\n result[0] = new Pair<>(findIllegal(association), 2);\n getInventory().setNumberOfDeclared(2);\n } else {\n if (findIllegal(association) == -1) {\n result = new Pair[1];\n result[0] = new Pair<>(duplicate, 1);\n getInventory().setNumberOfDeclared(1);\n } else {\n result = new Pair[2];\n result[0] = new Pair<>(duplicate, 1);\n result[1] = new Pair<>(findIllegal(association), 1);\n getInventory().setNumberOfDeclared(2);\n }\n }\n removeOneAsset(findIllegal(association));\n getInventory().setDeclaredAssets(0);\n return result;\n } else {\n getInventory().getBagToGive().setBribe(minMoney * 2);\n getInventory().setMoney(getInventory().getMoney() - (minMoney * 2));\n int contor = maxCards - 1;\n final int contorStart = contor;\n int[] resultAux = new int[maxBagSize];\n getInventory().setDeclaredAssets(0);\n while (contor > 0 && findIllegal(association) != -1) {\n resultAux[findIllegal(association) % maxBagSize]++;\n removeOneAsset(findIllegal(association));\n contor--;\n }\n getInventory().setNumberOfDeclared(contorStart - contor);\n getInventory().setDeclaredAssets(0);\n contor = 0;\n for (int it : resultAux) {\n if (it != 0) {\n contor++;\n }\n }\n result = new Pair[contor];\n if (contor == maxBagSize) {\n result = new Pair[maxBagSize];\n result[0] = new Pair<>(association.get(\"Silk\"), resultAux[1]);\n result[1] = new Pair<>(association.get(\"Pepper\"), resultAux[2]);\n result[2] = new Pair<>(association.get(\"Barrel\"), resultAux[0]);\n } else {\n if (contor == 1) {\n result = new Pair[1];\n if (resultAux[0] > 0) {\n result[0] = new Pair<>(association.get(\"Barrel\"), resultAux[0]);\n }\n if (resultAux[1] > 0) {\n result[0] = new Pair<>(association.get(\"Silk\"), resultAux[1]);\n }\n if (resultAux[2] > 0) {\n result[0] = new Pair<>(association.get(\"Pepper\"), resultAux[2]);\n }\n } else {\n result = new Pair[2];\n int i = 0;\n if (resultAux[0] > 0) {\n result[i] = new Pair<>(association.get(\"Barrel\"), resultAux[0]);\n i++;\n }\n if (resultAux[1] > 0) {\n result[i] = new Pair<>(association.get(\"Silk\"), resultAux[1]);\n i++;\n }\n if (resultAux[2] > 0) {\n result[i] = new Pair<>(association.get(\"Pepper\"), resultAux[2]);\n }\n }\n }\n return result;\n }\n\n }", "private void initialState() {\n forEach(item -> item.setInKnapsack(false));\n\n for (final Item item : this) {\n if (wouldOverpack(item)) {\n break;\n }\n item.switchIsKnapsack();\n }\n }", "public static void mst(int n)\r\n {\r\n \r\n boolean[]visited=new boolean[n+1];\r\n \r\n //sort queue with considering weight as a key\r\n PriorityQueue<Node>queue=new PriorityQueue<>(new Comparator<Node>(){\r\n public int compare(Node n1,Node n2)\r\n {\r\n return n1.weight-n2.weight;\r\n }\r\n });\r\n \r\n visited[1]=true;\r\n \r\n for(Edge e:list[1])\r\n {\r\n queue.add(new Node(e.weight,e.vertex,1));\r\n }\r\n \r\n while(queue.size()!=0)\r\n {\r\n Node node=queue.poll();\r\n \r\n int weight=node.weight;\r\n int curr=node.curr;\r\n int parent=node.parent;\r\n \r\n if(visited[curr])\r\n continue;\r\n \r\n visited[curr]=true;\r\n arr.add(new Node(weight,curr,parent));\r\n ans+=weight;\r\n \r\n for(Edge e:list[curr])\r\n {\r\n queue.add(new Node(e.weight,e.vertex,curr));\r\n }\r\n \r\n }\r\n \r\n }", "public static int maxSum(int[] a, int k) \n {\n PriorityQueue<Integer> pq = new PriorityQueue<>(); \n for (int x : a) \n pq.add(x); \n \n // Do k negations by removing a minimum element k times \n while (k-- > 0) \n { \n // Retrieve and remove min element \n int temp = pq.poll(); \n \n // Modify the minimum element and add back \n // to priority queue \n temp *= -1; \n pq.add(temp); \n } \n \n // Compute sum of all elements in priority queue. \n int sum = 0; \n for (int x : pq) \n sum += x; \n return sum; \n }", "private void computeWeights(double w_m) {\n\t\t// Initialise\n\t\tdouble m = Math.floor(lambda);\n\t\tif (!flag) return;\n\t\t\n\t\t// Down\n\t\tint j = (int) m;\n\t\twhile (j > leftTruncation) {\n\t\t\tweights[j-1-leftTruncation] = (j / lambda) * weights[j-leftTruncation];\n\t\t\tj = j - 1;\n\t\t}\n\t\t\n\t\t// Up\n\t\tif (lambda >= 400) {\n\t\t\tj = (int) m;\n\t\t\twhile (j < rightTruncation) {\n\t\t\t\tweights[j+1-leftTruncation] = (lambda / (j+1)) * weights[j-leftTruncation];\n\t\t\t\tj = j + 1;\n\t\t\t}\n\t\t} else {\n\t\t\t// Special\n\t\t\tif (rightTruncation > 600) {\n\t\t\t\tflag = false;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tj = (int) m;\n\t\t\twhile (j < rightTruncation) {\n\t\t\t\tdouble q = lambda / (j + 1);\n\t\t\t\tif (weights[j-leftTruncation] > (underflow / q)) {\n\t\t\t\t\tweights[j+1-leftTruncation] = q * weights[j-leftTruncation];\n\t\t\t\t\tj = j + 1;\n\t\t\t\t} else {\n\t\t\t\t\trightTruncation = j;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Compute W\n\t\ttotalWeight = 0;\n\t\tint s = leftTruncation;\n\t\tint t = rightTruncation;\n\t\twhile (s < t) {\n\t\t\tif (weights[s-leftTruncation] <= weights[t-leftTruncation]) {\n\t\t\t\ttotalWeight += weights[s-leftTruncation];\n\t\t\t\ts = s + 1;\n\t\t\t} else {\n\t\t\t\ttotalWeight += weights[t-leftTruncation];\n\t\t\t\tt = t - 1;\n\t\t\t}\n\t\t}\n\t\ttotalWeight += weights[s-leftTruncation];\n\t\t\n\t}", "public void solve_base(Items items,Knapsack knapsack) {\n iteration=0;\n best_value=-1;\n System.out.println(\"iteration:\"+iteration+\" solve_begin_time:\"+System.currentTimeMillis());\n this.solve(items,knapsack);\n System.out.println(\"iteration:\"+iteration+\" solve_end_time:\"+System.currentTimeMillis());\n }", "public double weightedTally(int idx, int value) {\r\n\t\tif (tupleCount == 0) return 0;\r\n\r\n double total = 0.0;\r\n\r\n for (int i = 0; i < tupleCount; i++) {\r\n Tuple t = tuple[i];\r\n\r\n if (t.getValue(idx) == value) {\r\n total += t.getWeight();\r\n }\r\n }\r\n\r\n return total;\r\n\t}", "private void createBitStremMap(){\n itemListMap = new HashMap<>();\n \n for (ArrayList<Integer> transactions_set1 : transactions_set) {\n ArrayList curr_tr = (ArrayList) transactions_set1;\n if(curr_tr.size() >= min_itemset_size_K) \n for (Object curr_tr1 : curr_tr) {\n int item = (int) curr_tr1;\n itemListMap.put(item, itemListMap.getOrDefault(item, 0)+1);\n }\n }\n \n // 3. Remove items without minimum support\n itemListMap.values().removeIf(val -> val<min_sup);\n \n // 4. Sort the map to a set of entries\n Set<Map.Entry<Integer, Integer>> set = itemListMap.entrySet();\n frequentItemListSetLenOne = new ArrayList<>(set);\n Collections.sort( frequentItemListSetLenOne, new Comparator<Map.Entry<Integer, Integer>>(){\n @Override\n public int compare( Map.Entry<Integer, Integer> o1, Map.Entry<Integer, Integer> o2 )\n {\n return (o2.getValue()).compareTo( o1.getValue() );\n }\n });\n\n // 5.\n itemIndex = new HashMap<>();\n for(Map.Entry<Integer, Integer> entry : frequentItemListSetLenOne){\n itemIndex.put(entry.getKey(), itemIndex.size());\n }\n\n // 6.\n bitsetLen = frequentItemListSetLenOne.size();\n }", "private void resize(int capacity) {\r\n assert capacity >= n;\r\n Item[] temp = (Item[]) new Object[capacity];\r\n for (int i = 0; i < n; i++) {\r\n temp[i] = list[(first + i) % list.length];\r\n }\r\n list = temp;\r\n first = 0;prior=list.length-1;\r\n last = n-1;latter=n;}", "public interface Strategy {\n\n StrategySolution solve(List<Item> items, int weight);\n}", "@Override\n public ArrayList<int[]> Split()\n {\n double hypervolume_best = -Double.MAX_VALUE;\n int hypervolume_best_i = 0;\n int hypervolume_best_j = 0;\n double hypervolume = 0d;\n\n for( int i = 0; i < Capacity_max + 1; i++)\n {\n for( int j = i + 1; j < Capacity_max + 1; j++)\n {\n hypervolume = 0d;\n double[] point1 = PointMatrix[ Items.get(i)[0] ][ Items.get(i)[1] ];\n double[] point2 = PointMatrix[ Items.get(j)[0] ][ Items.get(j)[1] ];\n\n for(int a = 0; a < Dimensions; a++)\n {\n if( point1[a] > point2[a] )\n hypervolume += Math.log10(point1[a] - point2[a]);\n if( point1[a] < point2[a] )\n hypervolume += Math.log10(point2[a] - point1[a]);\n }\n\n if( hypervolume_best < hypervolume)\n {\n hypervolume_best_i = i;\n hypervolume_best_j = j;\n hypervolume_best = hypervolume;\n }\n }\n }\n\n // Ready the split\n ArrayList<int[]> items_split = new ArrayList<>();\n items_split.addAll(Items);\n\n int point1_x = items_split.get(hypervolume_best_i)[0];\n int point1_y = items_split.get(hypervolume_best_i)[1];\n int point2_x = items_split.get(hypervolume_best_j)[0];\n int point2_y = items_split.get(hypervolume_best_j)[1];\n double[] point1 = PointMatrix[ point1_x ][ point1_y ];\n double[] point2 = PointMatrix[ point2_x ][ point2_y ];\n\n if(hypervolume_best_i > hypervolume_best_j)\n {\n items_split.remove(hypervolume_best_i);\n items_split.remove(hypervolume_best_j);\n }\n else\n {\n items_split.remove(hypervolume_best_j);\n items_split.remove(hypervolume_best_i);\n }\n\n // Create new box with point1\n BoundingBoxLeaf box1 = new BoundingBoxLeaf( PointMatrix, ParentBox, Tree, Depth, point1_x, point1_y );\n\n box1.SetBoxToFit(point1);\n box1.SetCoordsToFit( point1_x, point1_y);\n \n // Reset this box, and add point2\n BoundingBoxLeaf box2 = this;\n \n box2.SetBoxToFit(point2);\n box2.SetCoordsToFit( point2_x, point2_y);\n\n box2.Items.clear();\n box2.Items.add( new int[]{ point2_x, point2_y } );\n\n // Notify parent of split\n ParentBox.InsertBox_internal(box1);\n \n // Add items to the new boxes, up to min capacity\n int[] item_best;\n \n // box1\n while( box1.IsBelowMinCapacity() && !items_split.isEmpty() )\n {\n hypervolume_best = Double.MAX_VALUE;\n item_best = null;\n int index_best = -1;\n \n for(int i = 0; i < items_split.size(); i++ )\n {\n int[] item = items_split.get(i);\n double[] point = PointMatrix[ item[0] ][ item[1] ];\n \n hypervolume = box1.GetHyperVolume( point );\n \n if(hypervolume_best > hypervolume)\n {\n hypervolume_best = hypervolume;\n item_best = item; \n index_best = i;\n }\n \n }\n \n if(item_best != null)\n {\n box1.Items.add( new int[]{ item_best[0], item_best[1] } );\n box1.ExpandBoxToFit( PointMatrix[ item_best[0] ][ item_best[1] ] );\n box1.ExpandCoordsToFit( item_best[0], item_best[1]);\n \n items_split.remove(index_best);\n }\n }\n \n // box2\n while( box2.IsBelowMinCapacity() && !items_split.isEmpty() )\n {\n hypervolume_best = Double.MAX_VALUE;\n item_best = null;\n int index_best = -1;\n \n for(int i = 0; i < items_split.size(); i++ )\n {\n int[] item = items_split.get(i);\n double[] point = PointMatrix[ item[0] ][ item[1] ];\n hypervolume = box1.GetHyperVolume( point );\n \n if(hypervolume_best > hypervolume)\n {\n hypervolume_best = hypervolume;\n item_best = item; \n index_best = i;\n }\n \n }\n \n if(item_best != null)\n {\n box2.Items.add( new int[]{ item_best[0], item_best[1] } );\n box2.ExpandBoxToFit( PointMatrix[ item_best[0] ][ item_best[1] ] );\n box2.ExpandCoordsToFit( item_best[0], item_best[1]);\n \n items_split.remove(index_best);\n }\n }\n \n // return remaining to be reinserted into the tree\n return items_split; \n }" ]
[ "0.7548305", "0.7529195", "0.7323159", "0.72849435", "0.72464085", "0.72303796", "0.7199992", "0.7194461", "0.71871287", "0.71589935", "0.70870256", "0.7046817", "0.7039828", "0.69836545", "0.6950634", "0.6930651", "0.67799944", "0.67601466", "0.6711374", "0.66544634", "0.66489875", "0.6612717", "0.65950936", "0.65947247", "0.6590726", "0.65086746", "0.64506394", "0.6434234", "0.6434177", "0.63498443", "0.6284171", "0.62674695", "0.62661266", "0.6164221", "0.6160267", "0.61583734", "0.61577046", "0.6124033", "0.6026708", "0.59430474", "0.59350693", "0.58899677", "0.58473104", "0.58472234", "0.57809275", "0.5778185", "0.57752615", "0.57445645", "0.57328856", "0.572332", "0.5706674", "0.5698968", "0.5696259", "0.56872714", "0.56793", "0.5542346", "0.55328405", "0.54640734", "0.54281557", "0.5417758", "0.5388432", "0.5378986", "0.53477484", "0.53369474", "0.5334173", "0.5329645", "0.52974653", "0.5263937", "0.5253387", "0.5241961", "0.5217546", "0.5206984", "0.52030104", "0.51454234", "0.51266193", "0.51113015", "0.50893754", "0.50735474", "0.5070984", "0.5047442", "0.5037829", "0.50036263", "0.49924892", "0.49874455", "0.4972697", "0.4970845", "0.49490264", "0.4936971", "0.4906732", "0.490528", "0.48897892", "0.48856375", "0.48597613", "0.4851129", "0.4850449", "0.48263308", "0.48251066", "0.48226777", "0.48119545", "0.4807738" ]
0.6182034
33
Formats an enum name like "BRO_SUP" to "Bro Sup"
public static String formatEnumName(String name) { String[] words = name.replace('_', ' ').split("\\s"); StringBuilder formatted = new StringBuilder(name.length()); for (String word : words) { formatted.append(word.substring(0, 1).toUpperCase()); formatted.append(word.substring(1).toLowerCase()); formatted.append(' '); } return formatted.toString().trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String out_name(Enum<?> e) {\n return e.name().toLowerCase();\n }", "public String convertEnum()\n {\n \tswitch (pattern.ordinal())\n \t{\n \tcase 0:\n \t\treturn \"Red Cards\";\n \tcase 1:\n \t\treturn \"Black Cards\";\n \tcase 2:\n \t\treturn \"Hearts\";\n \tcase 3:\n \t\treturn \"Diamonds\";\n \tcase 4:\n \t\treturn \"Clubs\";\n \tcase 5:\n \t\treturn \"Spades\";\n \tcase 6:\n \t\treturn \"Twos\";\n \tcase 7:\n \t\treturn \"Threes\";\n \tcase 8:\n \t\treturn \"Fours\";\n \tcase 9:\n \t\treturn \"Fives\";\n \tcase 10:\n \t\treturn \"Sixes\";\n \tcase 11:\n \t\treturn \"Sevens\";\n \tcase 12:\n \t\treturn \"Eights\";\n \tcase 13:\n \t\treturn \"Nines\";\n \tcase 14:\n \t\treturn \"Tens\";\n \tcase 15:\n \t\treturn \"Jacks\";\n \tcase 16:\n \t\treturn \"Queens\";\n \tcase 17:\n \t\treturn \"Kings\";\n \tcase 18:\n \t\treturn \"Aces\";\n \tcase 19:\n \t\treturn \"Single Digit Primes\";\n \tcase 20:\n \t\treturn \"Pairs\";\n \tcase 21:\n \t\treturn \"Sum of Pairs\";\n \tcase 22:\n \t\treturn \"Incrementing Cards\";\n \tcase 23:\n \t\treturn \"Decrementing Cards\";\n \tdefault:\n \t\treturn \"\";\n \t}\n }", "public String asString() {\n\t\t\tString enumName;\n\t\t\tswitch(this) {\n\t\t\tcase INDEX:\n\t\t\t\tenumName = \"index\";\n\t\t\t\tbreak;\n\t\t\tcase NAME:\n\t\t\t\tenumName = \"name\";\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tenumName = \"unsupported\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\treturn enumName;\n\t\t}", "public static String enumToCounter(Enum e) {\n\t\treturn e.name();\n\t}", "public String formatName(String name) {\n return name.substring(0, 1).toUpperCase() + name.substring(1).toLowerCase();\n }", "public String code_to_name (char code) {\n if (code == STOP_CODE) {\r\n return \"Stop\";\r\n } else {\r\n return (String) code_to_name.get((new Character(code)).toString().toUpperCase());\r\n }\r\n }", "private String formatName(String name) {\n Character firstCharacter = name.charAt(0);\n firstCharacter = Character.toUpperCase(firstCharacter);\n\n final String remainingCharacters = name.substring(1);\n\n return String.valueOf(firstCharacter) + remainingCharacters;\n }", "default String getTypeName() {\n JdlFieldEnum type = getType();\n return switch (type) {\n case ENUM -> getEnumEntityName()\n .orElseThrow(() -> new IllegalStateException(\"An enum field must have its enum entity name set\"));\n default -> ((\"UUID\".equals(type.name())) ? type.name() : type.toCamelUpper());\n };\n }", "public String toString() {return name().charAt(0) + name().substring(1).toLowerCase();}", "private static String capName(String name) { return name.substring(0, 1).toUpperCase() + name.substring(1); }", "public String getAsNameAbbreviated(String itemName);", "public String getFormatedLanguageCode() {\n String result = \"\";\n final String name = this.name();\n final String[] nameArray = name.split(\"_\");\n\n if (nameArray.length == 1) {\n result = nameArray[0].toLowerCase();\n } else if (nameArray.length == 2) {\n result = nameArray[0].toLowerCase() + \"-\" + nameArray[1].toUpperCase();\n }\n\n return result;\n }", "@Override\n public String getEnumTypeName(ImportTypeTable typeTable, EnumType enumType) {\n List<String> enumNames =\n Arrays.asList(\n ((ModelTypeTable) typeTable).getNicknameFor(TypeRef.of(enumType)).split(\"\\\\.\"));\n return enumNames.get(enumNames.size() - 1);\n }", "public String getName(){\n \treturn this.name().replace(\"_\", \" \");\n }", "private String getFormattedName(String bossName) {\r\n\t\tString[] startingLetters = { \"corporeal\", \"king black\", \"nomad\", \"tormented\", \"avatar\" };\r\n\t\tfor(int i = 0; i < startingLetters.length; i++)\r\n\t\t\tif(bossName.toLowerCase().contains(startingLetters[i].toLowerCase()))\r\n\t\t\t\treturn \"the \"+bossName;\r\n\t\treturn bossName;\r\n\t}", "static private String formats(String target)\n\t{\n\t\tString tmp = target.trim();\n\t\tif (tmp.length() < 1) return \"NaName\";\n\t\treturn (Character.toString(tmp.charAt(0)).toUpperCase()) + tmp.substring(1,tmp.length()).toLowerCase();\n\t}", "public static String getName ( final int code ) {\n return HouseholdSmokingStatus.parseValue( code ).toString();\n }", "public String toString(){\n\t\tString abbrv = this.name().substring(0,1);\t\t\n\t\treturn abbrv;\n\t}", "public String convertDayOfWeekAsNumToName(int dayOfWeek) {\n\t\t\t\tString[] DayOfWeekAsShortName = { \"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\" };\n\t\t\t\treturn DayOfWeekAsShortName[dayOfWeek - 1];\n\t\t\t}", "public static String getWeaponName(int choice)\n {\n String nameOfChoice;\n\n switch(choice)\n {\n case Rock:\n nameOfChoice = \"Rock\";\n break;\n\n case Paper:\n nameOfChoice = \"Paper\";\n break;\n\n case Scissors:\n nameOfChoice = \"Scissors\";\n break;\n\n default:\n nameOfChoice = \"Unexpected\";\n }\n\n return nameOfChoice;\n }", "static String normalizedNameOf(SdkField<?> field) {\n String name = field.memberName();\n return name.length() > 1 && Ascii.isLowerCase(name.charAt(1))\n ? Ascii.toLowerCase(name.charAt(0)) + name.substring(1)\n : name.toLowerCase(Locale.ROOT);\n }", "public String getFormatName() {\n\t\tString name = getName();\n\t\tif (name.startsWith(SpotlessPlugin.EXTENSION)) {\n\t\t\tString after = name.substring(SpotlessPlugin.EXTENSION.length());\n\t\t\tif (after.endsWith(SpotlessPlugin.CHECK)) {\n\t\t\t\treturn after.substring(0, after.length() - SpotlessPlugin.CHECK.length()).toLowerCase(Locale.US);\n\t\t\t} else if (after.endsWith(SpotlessPlugin.APPLY)) {\n\t\t\t\treturn after.substring(0, after.length() - SpotlessPlugin.APPLY.length()).toLowerCase(Locale.US);\n\t\t\t}\n\t\t}\n\t\treturn name;\n\t}", "private String name() {\n return Strings.concat(Token.DOLLAR, name.string());\n }", "Caseless getName();", "@Override\n public String toString() {\n String name = this.name().substring(0,1);\n if (this.name().length() > 1) {\n for (int i = 1; i < this.name().length(); i++) {\n String charAt = this.name().substring(i, i + 1);\n if (charAt.equals(\"_\"))\n charAt = \" \";\n name += charAt.toLowerCase();\n }\n }\n return name;\n }", "@Override\r\n public String toString() {\r\n String prettyName = this.name();\r\n prettyName = prettyName.toLowerCase();\r\n prettyName = Utils.capitalizeFirstLetter(prettyName);\r\n \r\n return prettyName;\r\n }", "public String getCapName() {\n StringBuilder result = new StringBuilder();\n for (String s : getNameParts()) {\n result.append(Util.capitalize(s));\n }\n return result.toString();\n }", "private String toPropertyName(String element) {\n String refPropertyName = handleRefProperty(element);\n if (refPropertyName != null) {\n return refPropertyName;\n }\n\n StringBuilder sb = new StringBuilder();\n char[] chars = element.toCharArray();\n boolean upper = true;\n for (char c : chars) {\n if (c == '_' || c == '-' || c == '.') {\n upper = true;\n } else if (upper) {\n sb.append(Character.toUpperCase(c));\n upper = false;\n } else {\n sb.append(c);\n }\n }\n return sb.toString();\n }", "public String chName(String address) {\n\n if (Locale.getDefault().getLanguage() == \"en\") {//Check System Language\n\n if (address.contains(\"Hang Hau\")) {\n newName = \"HangHau\";\n } else if (address.contains(\"Po Lam\")) {\n newName = \"PoLam\";\n } else {\n newName = \"HangHau\";\n }//default, prevent error\n\n } else if (Locale.getDefault().getLanguage() == \"zh\") {\n\n\n if (address.contains(\"坑口\")) {\n newName = \"HangHau_ZH\";\n } else if (address.contains(\"寶琳\")) {\n newName = \"PoLam_ZH\";\n } else {\n newName = \"HangHau_ZH\";\n }//default, prevent error\n }\n return newName;\n }", "@Override\n public String getMovementAbbr(EntityMovementType mtype) {\n switch (mtype) {\n case MOVE_SKID:\n return \"S\";\n case MOVE_NONE:\n return \"N\";\n case MOVE_WALK:\n return \"W\";\n case MOVE_RUN:\n return \"R\";\n case MOVE_JUMP:\n return \"J\";\n case MOVE_SPRINT:\n return \"Sp\";\n default:\n return \"?\";\n }\n }", "String getAbbr();", "public static String getFormalFamilyNameFromType(FamilyType type) {\n switch (type) {\n case ARTIX7:\n return \"Artix7\";\n case ARTIX7L:\n return \"Artix7 Lower Power\";\n case ASPARTAN2E:\n return \"Automotive Spartan2E\";\n case ASPARTAN3:\n return \"Automotive Spartan3\";\n case ASPARTAN3A:\n return \"Automotive Spartan3A\";\n case ASPARTAN3ADSP:\n return \"Automotive Spartan-3A DSP\";\n case ASPARTAN3E:\n return \"Automotive Spartan3E\";\n case ASPARTAN6:\n return \"Automotive Spartan6\";\n case KINTEX7:\n return \"Kintex7\";\n case KINTEX7L:\n return \"Kintex7 Lower Power\";\n case QSPARTAN6:\n return \"Defense-Grade Spartan-6Q\";\n case QSPARTAN6L:\n return \"Defense-Grade Spartan-6Q Lower Power\";\n case QVIRTEX4:\n return \"Defense-Grade Virtex-4Q\";\n case QVIRTEX5:\n return \"Defense-Grade Virtex-5Q\";\n case QVIRTEX6:\n return \"Defense-Grade Virtex-6Q\";\n case QVIRTEX:\n return \"QPro Virtex Hi-Rel\";\n case QRVIRTEX:\n return \"QPro Virtex Rad-Hard\";\n case QVIRTEX2:\n return \"QPro Virtex2 Military\";\n case QRVIRTEX2:\n return \"QPro Virtex2 Rad Tolerant\";\n case QVIRTEX2P:\n return \"QPro Virtex2P Hi-Rel\";\n case QVIRTEXE:\n return \"QPro VirtexE Military\";\n case QRVIRTEX4:\n return \"Space-Grade Virtex-4QV\";\n case SPARTAN2:\n return \"Spartan2\";\n case SPARTAN2E:\n return \"Spartan2E\";\n case SPARTAN3:\n return \"Spartan3\";\n case SPARTAN3A:\n return \"Spartan3A and Spartan3AN\";\n case SPARTAN3ADSP:\n return \"Spartan-3A DSP\";\n case SPARTAN3E:\n return \"Spartan3E\";\n case SPARTAN6:\n return \"Spartan6\";\n case SPARTAN6L:\n return \"Spartan6 Lower Power\";\n case VIRTEX:\n return \"Virtex\";\n case VIRTEX2:\n return \"Virtex2\";\n case VIRTEX2P:\n return \"Virtex2P\";\n case VIRTEX4:\n return \"Virtex4\";\n case VIRTEX5:\n return \"Virtex5\";\n case VIRTEX6:\n return \"Virtex6\";\n case VIRTEX6L:\n return \"Virtex6 Lower Power\";\n case VIRTEX7:\n return \"Virtex7\";\n case VIRTEX7L:\n return \"Virtex7 Lower Power\";\n case VIRTEXE:\n return \"VirtexE\";\n default:\n return null;\n }\n }", "private String upFirstLetter(){\n\t\tString firstLetter = nameField.substring(0,1);\n\t\tfirstLetter = firstLetter.toUpperCase();\n\t\treturn firstLetter + nameField.substring(1,nameField.length());\n\t}", "public static String A(String str)\n\t{\t\t\n\t\tString aStr = Format.a(str);\n\t\treturn aStr.substring(0, 1).toUpperCase();\n\t}", "public String createEnum(String type) {\n String strEnum = \"\";\n int i = 0;\n for(i=0; i<EnumFactory.numberOfTypes; i++) {\n if (type.equals(EnumFactory.typeStrings[i])) {\n strEnum = EnumFactory.enumStrings[i];\n break;\n }\n }\n if (type == PAGE && countKeys[i] == 1)\n return EnumFactory.PAGE_MAIN;\n return String.format(\"%s%d\", strEnum,countKeys[i]);\n }", "public String getName() {\n return Util.uncapitalize(getCapName());\n }", "public String makeCombinedName() {\n return sortDao.getBoats().stream()\n .map(Boat::toString)\n .sorted()\n .collect(Collectors.joining(\", \"));\n }", "String getPluralisedName();", "public static String friendlyName(Color color) {\n \t\tif (colorsToNames.containsKey(color))\n \t\t\treturn colorsToNames.get(color);\n \n \t\treturn color.getColorCode();\n \t}", "static String m33126a(String name, String separator) {\n StringBuilder translation = new StringBuilder();\n int length = name.length();\n for (int i = 0; i < length; i++) {\n char character = name.charAt(i);\n if (Character.isUpperCase(character) && translation.length() != 0) {\n translation.append(separator);\n }\n translation.append(character);\n }\n return translation.toString();\n }", "public String getNameFromType(Type type) {\n\t\tif (type == Type.PURCHASE)\n\t\t\treturn \"PURCHASE\";\n\t\telse\n\t\t\treturn \"RENTAL\";\n\t}", "public String acronym(String phrase) {\n String accrStr = phrase.replaceAll(\"\\\\B.|\\\\P{L}\", \"\").toUpperCase();\n return accrStr;\n }", "public String getName(){\n StringBuilder name = new StringBuilder();\n for (int value : names) {\n name.append(\"> \").append(strings.get(value));\n }\n return name.toString();\n }", "public String getAlleleName(Allele allele) {\n if (_alleleNames != null) {\n return new String(_alleleNames[allele.getValue()]);\n } else {\n return Integer.toString(allele.getValue());\n }\n }", "protected String _convertEnumObjectToString(Enum<?> object) {\n\t\treturn object.toString();\n\t}", "public String getNumberSuffix(int num) {\n\t\t\t\tString s = String.valueOf(num);\n\t\t\t\tif (s.endsWith(\"0\")) { return \"st\"; }\n\t\t\t\telse if (s.endsWith(\"1\")) { return \"st\"; }\n\t\t\t\telse if (s.endsWith(\"2\")) { return \"nd\"; }\n\t\t\t\telse if (s.endsWith(\"3\")) { return \"rd\"; }\n\t\t\t\telse if (s.endsWith(\"10\")) { return \"th\"; }\n\t\t\t\telse if (s.endsWith(\"11\")) { return \"th\"; }\n\t\t\t\telse if (s.endsWith(\"12\")) { return \"th\"; }\n\t\t\t\telse if (s.endsWith(\"13\")) { return \"th\"; }\n\t\t\t\telse { return \"th\"; }\n }", "public static ST getFAMILYNAME(final EN name) {\n final ENXP result = getFamilyName(name);\n if (result.nonNull().isTrue()) {\n return STjlStringAdapter.valueOf(result.toString()\n .toUpperCase());\n } else {\n return result;\n }\n }", "public String newHumanName() {\n return String.format(\"%s %s\", newName(4, 6), newName(4, 8));\n }", "public java.lang.String getEnumSkillName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ENUMSKILLNAME$8);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public static String A(BaseObject obj)\n\t{\t\t\n\t\tString aStr = Format.a(obj);\n\t\treturn aStr.substring(0, 1).toUpperCase();\n\t}", "@AutoEscape\n public String getStatusName();", "String getItemName(ItemStack itemStack) {\r\n\t\treturn WordUtils.capitalizeFully(itemStack.getType().name().toLowerCase().replace('_', ' '));\r\n\t}", "private String getSuitName() {\n String result;\n if (this.suit == 0) {\n result = \"Clubs\";\n } else if (this.suit == 1) {\n result = \"Diamonds\";\n } else if (this.suit == 2) {\n result = \"Hearts\";\n } else {\n result = \"Spades\";\n }\n return result;\n }", "public String getLabel() {\n return name().toLowerCase().replace(\"_\", \"\");\n }", "private static String qualifiedName2FirstCharacterUppercasedString(final String s) {\n final StringBuffer result = new StringBuffer();\n final Matcher m = Pattern.compile(\"(?:\\\\.|^)(.)\").matcher(s);\n while (m.find()) {\n m.appendReplacement(result,\n m.group(1).toUpperCase());\n }\n m.appendTail(result);\n return result.toString().replaceAll(\"\\\\[\\\\]\", \"Array\");\n }", "public String getName(){\n if(number == 1) return \"ace\";\n if(number == 13) return \"king\";\n if(number == 12) return \"queen\";\n if(number == 11) return \"jack\";\n else return \"\" + number;\n }", "public void renameEnumConstant(String oldEnumConstant, String newEnumConstant) {\n\t\tEnumConstantRenamer renamer = buildEnumConstantRenamer(oldEnumConstant, newEnumConstant);\n\t\tgetStateObject().accept(renamer);\n\t}", "public static String enumPatternItemCase()\n {\n read_if_needed_();\n \n return _enum_pattern_item_case;\n }", "public String asName() {\n return this.name().toLowerCase(Locale.getDefault());\n }", "private String getAbbreviatedName(String name) {\n if (!isTooLarge(name)) {\n return name;\n }\n\n String[] partNames = name.split(\" \");\n\n // Abbreviate middle names:\n for (int i = 1; i < partNames.length - 1 && isTooLarge(Utils.join(\" \", partNames)); i++) {\n partNames[i] = partNames[i].charAt(0) + \".\";\n }\n\n // Remove middle names:\n while (partNames.length > 2 && isTooLarge(Utils.join(\" \", partNames))) {\n String[] newPartNames = new String[partNames.length - 1];\n newPartNames[0] = partNames[0];\n for (int i = 1; i < newPartNames.length; i++) {\n newPartNames[i] = partNames[i + 1];\n }\n partNames = newPartNames;\n }\n\n if (!isTooLarge(Utils.join(\" \", partNames))) {\n return Utils.join(\" \", partNames);\n } else if (!isTooLarge(partNames[0].charAt(0) + \". \" + partNames[1])) {\n return partNames[0].charAt(0) + \". \" + partNames[1];\n } else if (!isTooLarge(partNames[0] + \" \" + partNames[1].charAt(0) + \".\")) {\n return partNames[0] + \" \" + partNames[1].charAt(0) + \".\";\n } else {\n return partNames[0].charAt(0) + \". \" + partNames[1].charAt(0) + \".\";\n }\n }", "@Deprecated\r\n\tpublic String mapInvestorName(String s) {\r\n\t\tString s1 = s.replace(' ', '-');\r\n\t\treturn s1;\r\n\t}", "public String constant() {\n\t\tString tmp = methodBase().replaceAll(\"([a-z])([A-Z])\",\"$1_$2\");\n\t\treturn tmp.toUpperCase();\n\t}", "public static String repairName(ITPerson person) {\n String[] toRepairName = person.getName().split(\"_\");\n String correctedName = toRepairName[0]+ \" \" + toRepairName[1];\n return correctedName;\n }", "private String getNameFromType(int activityType) {\n switch(activityType) {\n case DetectedActivity.IN_VEHICLE:\n return \"in_vehicle\";\n case DetectedActivity.ON_BICYCLE:\n return \"on_bicycle\";\n case DetectedActivity.ON_FOOT:\n return \"on_foot\";\n case DetectedActivity.STILL:\n return \"still\";\n case DetectedActivity.UNKNOWN:\n return \"unknown\";\n case DetectedActivity.TILTING:\n return \"tilting\";\n }\n return \"unrecognized\";\n }", "public String getAsNameAbbreviated(String itemName, String defaultValue);", "public FieldEnumString(List<PropertyModel> fields) {\n final StringBuilder sb = new StringBuilder(128);\n for (PropertyModel mappedField : fields) {\n if (sb.length() > 0) {\n sb.append(\", \");\n }\n sb.append(mappedField.getMappedName());\n }\n display = sb.toString();\n }", "private static String getUniNameOfCodePoint(int codePoint) {\n/* 111 */ String hex = Integer.toString(codePoint, 16).toUpperCase(Locale.US);\n/* 112 */ switch (hex.length()) {\n/* */ \n/* */ case 1:\n/* 115 */ return \"uni000\" + hex;\n/* */ case 2:\n/* 117 */ return \"uni00\" + hex;\n/* */ case 3:\n/* 119 */ return \"uni0\" + hex;\n/* */ } \n/* 121 */ return \"uni\" + hex;\n/* */ }", "public String getStatusName(int mCode)\r\n\t {\r\n\t\t return MRs[mCode].getStatusName();\r\n\t }", "String normalizeName(String tag) {\n\t\tStringBuffer buf = new StringBuffer();\n\t\t\n\t\tboolean newWord = true;\n\t\t// capitalize first letter of each word\n\t\t// remove -'s and _'s\n\t\tfor (int i = 0; i < tag.length(); i++) {\n\t\t\tchar c = tag.charAt(i);\n\t\t\tif (c == '-' || c == '_') {\n\t\t\t\tnewWord=true;\n\t\t\t} else if (newWord) {\n\t\t\t\tbuf.append(Character.toUpperCase(c));\n\t\t\t\tnewWord = false;\n\t\t\t} else {\n\t\t\t\tbuf.append(c);\n\t\t\t\tnewWord = false;\n\t\t\t}\n\t\t}\n\t\treturn buf.toString().trim();\n\t}", "private String getStatusLabel(int status){\n switch (status){\n case Cliente_Firebase.STATUS_PROSPECTO:\n return \"Prospecto\";\n case Cliente_Firebase.STATUS_ENVERIFICACION:\n return \"En Verificación\";\n case Cliente_Firebase.STATUS_ACTIVO:\n return \"Activo\";\n }\n\n return \"\";\n }", "public static final String javaName(String s) {\n StringBuffer n = new StringBuffer(s);\n for (int i = 0; i < s.length(); ++i) {\n if (i == 0) n.setCharAt(i, Character.toUpperCase(n.charAt(i)));\n if (!Character.isLetterOrDigit(n.charAt(i))) \n\tn.setCharAt(i, '_');\n }\n return n.toString();\n }", "public static String getActionName(Action action) {\n\t\tString tempName = action.getName();\n\t\tint length = tempName.length();\n\t\tint nameLength = length;\n\t\tif (tempName.contains(StateEnum.INACTIVE.toString())) {\n\t\t\tnameLength = length - StateEnum.INACTIVE.toString().length() - 4;\n\t\t} else if (tempName.contains(StateEnum.ENABLE.toString())) {\n\t\t\tnameLength = length - StateEnum.ENABLE.toString().length() - 4;\n\t\t} else if (tempName.contains(StateEnum.RUNNING.toString())) {\n\t\t\tnameLength = length - StateEnum.RUNNING.toString().length() - 4;\n\t\t} else if (tempName.contains(StateEnum.COMPLETED.toString())) {\n\t\t\tnameLength = length - StateEnum.COMPLETED.toString().length() - 4;\n\t\t}\n\t\treturn tempName.substring(0, nameLength);\n\t}", "@Override\r\n\tpublic String displayElementName(String elementName) {\r\n\t\tString[] words = StringUtils.split(elementName, \"-\");\r\n\t\tList<String> capitalized = new ArrayList<String>();\r\n\t\tfor (String word : words) {\r\n\t\t\tcapitalized.add(StringUtils.capitalize(word));\r\n\t\t}\r\n\t\treturn StringUtils.join(capitalized, \" \");\r\n\t}", "public void setName(String value)\r\n\t{\r\n\r\n\t\tput(HtmlEnum.name.getAttributeName(), value);\r\n\t}", "java.lang.String getCodeName();", "private String getAPNameString(List<AirplaneModel> association,\r\n\t\t\tViewAirplaneModel type, StringBuilder grp) {\r\n\t\tfor(AirplaneModel model:association){\r\n\t\t\tif(type.getAirplaneModelTypeID()==model.getAirplaneModelTypeID().getAirplaneModelTypeID().longValue()){\r\n\t\t\t\tgrp.append(model.getGroupID().getGroupOwner().trim()).append(NEWLINE);\r\n\t\t\t}\r\n\t\t}\r\n\t\tString str=grp.toString();\r\n\t\tif(str.endsWith(NEWLINE)){\r\n\t\t\tstr=str.substring(0, str.length()-1);\r\n\t\t}\r\n\t\tString st[] = new String[WsrdConstants.HUNDRED];\r\n\t\tst= str.split(NEWLINE);\r\n\t\tArrays.sort(st);\r\n\t\r\n\t\tStringBuilder st1= new StringBuilder();\r\n\t\tfor(int j=0;j<=st.length-1;j++){\r\n\t\t\tst1.append(st[j]);\r\n\t\t\tst1.append(NEWLINE);\r\n\t\t}\r\n\t\treturn st1.toString();\r\n\t}", "public String getNameFromNumber(Integer number) {\n\t\tif (number == 1)\n\t\t\treturn \"PURCHASE\";\n\t\telse\n\t\t\treturn \"RENTAL\";\n\t}", "public String displayName() {\r\n\t\tString name = \"Unknown\";\r\n\t\tif(EUR.equals(this)) {\r\n\t\t\tname = \"Europe\";\r\n\t\t} else if(JPN.equals(this)) {\r\n\t\t\tname = \"Japan\";\r\n\t\t} else if(USA.equals(this)) {\r\n\t\t\tname = \"USA\";\r\n\t\t} else if(KOR.equals(this)) {\r\n\t\t\tname = \"Korea\";\r\n\t\t}\r\n\t\treturn name;\r\n\t}", "public String getName()\n {\n return name.toUpperCase();\n }", "public String getSuitAsString (int aSuit)\n {\n switch (aSuit)\n {\n case 1:return(\"Spades\");\n case 2:return(\"Diamonds\");\n case 3:return(\"Clubs\");\n case 4:return(\"Hearts\");\n default:return(\"Invalid Rank\");\n }\n }", "@SuppressWarnings(\"unchecked\")\n private String toString(Object obj)\n {\n if (obj instanceof Enum)\n return ((Enum) obj).name();\n return obj.toString();\n\n }", "public static String getShortName(String name) {\n String[] strings = name.split(\" \");//no i18n\n String shortName;\n if (strings.length == 1) {\n shortName = strings[0].substring(0, 2);\n } else {\n shortName = strings[0].substring(0, 1) + strings[1].substring(0, 1);\n }\n return shortName.toUpperCase();\n }", "public static String displayStateFullName(String abbr) {\n if (!abMap.containsKey(abbr)) {\n return \"\";\n } else {\n return abMap.get(abbr);\n }\n /* {\n if (abbr.equals(\"AL\")) {\n return \"Alabama\";\n }\n if (abbr.equals(\"AK\")) {\n return \"Alaska\";\n }\n if (abbr.equals(\"AZ\")) {\n return \"Arizona\";\n }\n if (abbr.equals(\"AR\")) {\n return \"Arkansas\";\n }\n if (abbr.equals(\"CA\")) {\n return \"California\";\n }\n // more states here\n }*/\n }", "private static String buildName(String title)\n {\n // The name is based on the title, but with underscores\n String name = title.replace(' ', '_');\n name = name.replaceAll(\"\\\"\", \"%22\");\n name = name.replaceAll(\"[*]\", \"%2a\");\n name = name.replaceAll(\"<\", \"%3c\");\n name = name.replaceAll(\">\", \"%3e\");\n name = name.replaceAll(\":\", \"%3a\");\n name = name.replaceAll(\"([.]?[.]+$)\", \"%2e\");\n return name;\n }", "EPREFIX_TYPE getName();", "private String getExpectedYellowColorName()\n {\n String expected;\n\n switch (ResourceBundleManager.getLocale().getLanguage())\n {\n case \"en\":\n expected = \"Yellow\";\n break;\n\n case \"de\":\n expected = \"Gelb\";\n break;\n\n case \"fr\":\n expected = \"Jaune\";\n break;\n\n case \"it\":\n expected = \"Giallo\";\n break;\n\n case \"es\":\n expected = \"Amarillo\";\n break;\n\n default:\n throw new ResourceBundleException(String.format(\"Unhandled: '%s' locale\", ResourceBundleManager.getLocale()));\n }\n\n return expected;\n }", "public String getEnum() {\n if (model == null)\n return strEnum;\n return model.getEnum();\n }", "public static String getPrimitivesToAnonymizeName(PrimitivesToAnonymize primitivesToAnonymize) {\n\t\tString enumName = null;\n\t\tswitch (primitivesToAnonymize) {\n\t\t\tcase ALL:\n\t\t\t\tenumName = R.ANONYMIZE_ALL;\n\t\t\t\tbreak;\n\t\t\tcase ALL_BUT_BENCH:\n\t\t\t\tenumName = R.ANONYMIZE_ALL_BUT_BENCH;\n\t\t\t\tbreak;\n\t\t\tcase NONE:\n\t\t\t\tenumName = R.ANONYMIZE_NONE;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\t\"A case has not been implemented for the input PrimitivesToAnonymize.\");\n\t\t}\n\t\treturn enumName;\n\t}", "public static String getGenusAndSpeciesName(String name){\r\n\t\tchar firstChar = name.charAt(0);\r\n\t\tif(firstChar>='A'&&firstChar<='Z'){//Genus name often capitalized\r\n\t\t\tStringBuffer gsName = new StringBuffer();\r\n\t\t\tString[] fields = name.split(\"[\\\\s\\\\-]+\");\r\n\t\t\tgsName.append(fields[0]);//genus name\r\n\t\t\tif(fields.length>1){\r\n\t\t\t\tgsName.append(\" \");\r\n\t\t\t\tgsName.append(fields[1]);\r\n\t\t\t}\r\n\t\t\treturn gsName.toString();\r\n\t\t}\r\n\t\treturn name;\r\n\t}", "public String GetGameName(int game_number)\n\t{\n\t\treturn gametype[game_number].GetName();\n\t}", "public static String name(){\n return \"10.Schneiderman.Lorenzo\"; \n }", "public String getCardName(){\n return type.getType() + \" of \" + suit.getSuit();\n }", "private String toCamelCaseUnderscore(String concept) {\n\t\tStringBuffer newConcept = new StringBuffer(\"\");\n\t\t// concept = concept.replace(\" \", \"_\");\n\t\tStringTokenizer token = new StringTokenizer(concept, \" \");\n\t\tboolean firstTest = true;\n\t\twhile (token.hasMoreTokens()) {\n\t\t\tif (!firstTest) {\n\t\t\t\tnewConcept.append(\"_\");\n\t\t\t}\n\t\t\tfirstTest = false;\n\t\t\tString str = (String) token.nextElement();\n\t\t\tstr = str.substring(0, 1).toUpperCase()\n\t\t\t\t\t+ str.substring(1).toLowerCase();\n\t\t\tnewConcept.append(str);\n\t\t}\n\n\t\tconcept = newConcept.toString();\n\n\t\treturn concept;\n\t}", "public static String underscoreName(String name) {\n\t\treturn name.substring(0, 1).toLowerCase() + name.substring(1).replaceAll(\"([A-Z])\", \"_$1\").toLowerCase();\n\t}", "public org.apache.xmlbeans.XmlString xgetEnumSkillName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(ENUMSKILLNAME$8);\n return target;\n }\n }", "public static ALFormat getEnum(int value)\n {\n switch (value)\n {\n case AL_FORMAT_MONO8:\n return MONO_8;\n case AL_FORMAT_MONO16:\n return MONO_16;\n case AL_FORMAT_STEREO8:\n return STEREO_8;\n case AL_FORMAT_STEREO16:\n return STEREO_16;\n }\n\n throw new SilenceException(\"Unknown format value: \" + value);\n }", "String getShortName();", "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 }", "public String getName() {\r\n return \"Boyer/Moore-Suche in Strings\";\r\n }", "private String getCasTypeName(String aTagName) {\n if (aTagName.indexOf(':') == -1 && aTagName.indexOf('-') == -1) {\n return aTagName;\n } else {\n // Note: This is really slow so we avoid if possible. -- RJB\n return StringUtils.replaceAll(StringUtils.replaceAll(aTagName, \":\", \"_colon_\"), \"-\",\n \"_dash_\");\n }\n }" ]
[ "0.69181865", "0.67265815", "0.6394363", "0.6140339", "0.6053319", "0.5995961", "0.598275", "0.5941216", "0.58614653", "0.5801374", "0.57595044", "0.5687911", "0.56466043", "0.56443465", "0.563354", "0.5615969", "0.560549", "0.5598255", "0.55903333", "0.556476", "0.5529797", "0.55213696", "0.5520306", "0.5514081", "0.5507172", "0.54284894", "0.5424759", "0.5415887", "0.5394154", "0.5385475", "0.5372041", "0.5358679", "0.535504", "0.53537744", "0.534987", "0.53464437", "0.5339601", "0.53318405", "0.5327009", "0.5322499", "0.5315633", "0.53147614", "0.5312785", "0.5311429", "0.5282235", "0.5280676", "0.5271141", "0.5269587", "0.5257506", "0.5242815", "0.52217287", "0.5208506", "0.52075356", "0.52003604", "0.519805", "0.5192312", "0.5191096", "0.5186384", "0.51774925", "0.5176609", "0.51761067", "0.517088", "0.5165066", "0.51640254", "0.5160693", "0.5154958", "0.51521873", "0.5147456", "0.513987", "0.51361835", "0.5135828", "0.5133525", "0.51327497", "0.51291794", "0.51280254", "0.5122459", "0.5115879", "0.5112909", "0.5112269", "0.51103103", "0.5110024", "0.5109994", "0.50912154", "0.5078541", "0.50765324", "0.5075619", "0.5073444", "0.50664616", "0.50664157", "0.50635713", "0.50619197", "0.5060908", "0.5054327", "0.5047302", "0.50439024", "0.5043084", "0.5040103", "0.50398713", "0.5035529", "0.5031605" ]
0.7759896
0
All users are from the database, just check that they exist
public boolean isUserAllowedDatabaseAccess(String dbname,String username) { return manager.getAccount(manager.getSystemSubject(), username)!=null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean usersFilled() throws SQLException {\n\t\ttry {\n\t\t\tif (getUsers().last() == true) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn false;\n\t}", "private static boolean doesUserExist () {\n String sqlRetrieveAisId = \"SELECT ais_id FROM users WHERE user_id=?\";\n \n boolean valid = false;\n try (Connection conn = Database.getConnection();\n PreparedStatement pstmt = conn.prepareStatement(sqlRetrieveAisId)) {\n \n pstmt.setInt(1, userId);\n \n ResultSet rs = pstmt.executeQuery();\n \n valid = rs.next() != false;\n } catch (SQLException se) {\n JOptionPane.showMessageDialog(MainLayout.getJPanel(), Messages.getError(1), Messages.getHeaders(0), JOptionPane.ERROR_MESSAGE);\n } catch (IOException ioe) {\n JOptionPane.showMessageDialog(MainLayout.getJPanel(), Messages.getError(0), Messages.getHeaders(0), JOptionPane.ERROR_MESSAGE);\n } catch (Exception e) {\n JOptionPane.showMessageDialog(MainLayout.getJPanel(), Messages.getError(0), Messages.getHeaders(0), JOptionPane.ERROR_MESSAGE);\n }\n \n return valid;\n }", "public boolean hasUsers() {\n\n return !realm.where(User.class).findAll().isEmpty();\n }", "private void checkForUser(){\n if(mUserId != -1){\n return;\n }\n\n if(mPreferences == null) {\n getPrefs();\n }\n\n mUserId = mPreferences.getInt(USER_ID_KEY, -1);\n\n if(mUserId != -1){\n return;\n }\n\n //do we have any users at all?\n List<User> users = mUserDAO.getAllUsers();\n if(users.size() <= 0 ){\n User defaultUser = new User(\"din_djarin\",\"baby_yoda_ftw\");\n mUserDAO.insert(defaultUser);\n }\n }", "private boolean isUserExists() {\n\t\treturn KliqDataStore.isUserExists(this.mobileNumber, null);\r\n\t}", "@Override\n public boolean userExists(User user) {\n return DATABASE.getUsers().stream()\n .anyMatch(currentUser -> user.equals(currentUser));\n }", "public boolean hasUsers() {\n\t\treturn !this.userNames.isEmpty();\n\t}", "private boolean userExists(Utente checkUser) {\n\t\tDB db = getDB();\n\t\tMap<Long, UtenteBase> users = db.getTreeMap(\"users\");\n\t\tfor(Map.Entry<Long, UtenteBase> user : users.entrySet())\n\t\t\tif(user.getValue() instanceof Utente && (((Utente)user.getValue()).getUsername().equals(checkUser.getUsername())))\n\t\t\t\treturn true;\n\t\treturn false;\n\t}", "private Boolean findUser(String username){\n return usersDataBase.containsKey(username);\n }", "public boolean userExists(String user){\n boolean answer = false;\n //look into the database\n try{\n statement = connection.createStatement();\n //execute SQL query and get the data from the database\n ResultSet myResult = statement.executeQuery(\"SELECT name FROM members WHERE name = '\" + user +\"'\");\n while (myResult.next()) {\n if (myResult.getString(\"name\")!= null)\n //name exists so answer = true\n answer = true;\n }\n\n }catch (SQLException ex){ex.printStackTrace();}\n return answer;\n }", "public void loadUsers() {\n CustomUser userOne = new CustomUser();\n userOne.setUsername(SpringJPABootstrap.MWESTON);\n userOne.setPassword(SpringJPABootstrap.PASSWORD);\n\n CustomUser userTwo = new CustomUser();\n userTwo.setUsername(SpringJPABootstrap.TEST_ACCOUNT_USER_NAME);\n userTwo.setPassword(SpringJPABootstrap.TEST_ACCOUNT_PASSWORD);\n\n String firstUserName = userOne.getUsername();\n\n /*\n * for now I am not checking for a second user because there is no delete method being\n * used so if the first user is created the second user is expected to be created. this\n * could cause a bug later on but I will add in more logic if that is the case in a\n * future build.\n */\n if(userService.isUserNameTaken(firstUserName)) {\n log.debug(firstUserName + \" is already taken\");\n return ;\n }\n userService.save(userOne);\n userService.save(userTwo);\n\n log.debug(\"Test user accounts have been loaded!\");\n }", "public static boolean isUsers() {\n try {\n Engine.getUsers();\n return true;\n } catch (IOException e) {\n MessagePrint.println(MessagePrint.Stream.ERR, e.getMessage());\n return false;\n }\n }", "public boolean existUser(String id);", "private void checkUserExist() {\n\n final DatabaseReference mUseRef;\n\n\n if (mAuth.getCurrentUser() != null) {\n final String valid_user_id = mAuth.getCurrentUser().getUid();\n mDatabase.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if (dataSnapshot.hasChild(valid_user_id)) {\n Intent singinIntent = new Intent(JoinActivity.this, MainActivity.class);\n singinIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(singinIntent);\n finish();\n } else {\n Toast.makeText(JoinActivity.this, \"You have to first setup your account!\", Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n\n }\n }", "public boolean userNameExists(){\r\n boolean userNameExists = false;\r\n //reads username and password\r\n String user = signup.getUsername();\r\n String pass = signup.getFirstPassword();\r\n try{\r\n //creates statement\r\n //connects to database\r\n \r\n Connection myConn = DriverManager.getConnection(Main.URL); \r\n \r\n //creates statement\r\n Statement myStmt = myConn.createStatement();\r\n System.out.println(\"statement initiated\");\r\n //SQL query\r\n ResultSet myRs = myStmt.executeQuery(\"select * from LISTOFUSERS \");\r\n System.out.println(\"query initiated\");\r\n //process result set\r\n //checks to see if the username already exists in the database\r\n while (myRs.next()){\r\n System.out.println(\"check\");\r\n if(user.equals(myRs.getString(\"USERNAME\"))){\r\n \r\n userNameExists = true;\r\n break;\r\n }\r\n }\r\n myConn.close();\r\n \r\n \r\n \r\n } catch (Exception e) \r\n {\r\n System.err.println(e.getMessage());\r\n } \r\n return userNameExists; \r\n }", "public boolean checkUserExists(String username) {\n boolean exists = false;\n try {\n conn = dao.getConnection();\n ps = conn.prepareStatement(\"SELECT * FROM USERS WHERE USERNAME=?\");\n ps.setString(1, username);\n\n ResultSet rs = ps.executeQuery();\n\n // rs.next() is false if the set is empty\n exists = rs.next();\n\n // close stuff\n ps.close();\n conn.close();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return exists;\n }", "private void checkUser() {\n\t\tlog.info(\"___________checkUser\");\n\t\tList<User> adminUser = userRepository.getByAuthority(AuthorityType.ROLE_ADMIN.toString());\n\t\tif (adminUser == null || adminUser.isEmpty()) {\n\t\t\tgenerateDefaultAdmin();\n\t\t}\n\t}", "private boolean existsUser(Connection con) throws SQLException {\n\t\tlog.entry();\n\t\tboolean userExists = false;\n\t\tPreparedStatement ps = con.prepareStatement(\"SELECT COUNT(*) FROM Users \"\n\t\t + \"WHERE `id`=?;\");\n\t\ttry {\n\t\t\tps.setInt(1, id);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\tif (rs.first() && rs.getInt(1) > 0) {\n\t\t\t\tuserExists = true;\n\t\t\t}\n\t\t} finally {\n\t\t\tcloseStatement(ps);\n\t\t}\n\t\tthrowSqlException();\n\t\tlog.exit();\n\t\treturn userExists;\n\t}", "public boolean findUserIsExist(String name) {\n\t\treturn false;\r\n\t}", "private void checkUserExists() {\n dblogin.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n showData1(dataSnapshot);\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n\n }", "private void isUserExist() {\n\n if (firebaseAuth.getCurrentUser() != null) {\n\n final String user_id = firebaseAuth.getCurrentUser().getUid();\n users_database_reference.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n if (dataSnapshot.hasChild(user_id)) {\n // sign in the user and go to main activity\n // Intent intent = new Intent(StartActivity.this, MainActivity.class);\n // intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(intent);\n } else {\n // go to profile page\n Intent intent = new Intent(MainActivity.this, Profile.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n\n }\n }", "@Test\n public void readAll_UserExists_Authorized() {\n given(userExists(), permissionValidationSuccess());\n Collection<User> retrievedUsers = userService.readAll(SOME_AUTH_ATTRIBUTES);\n assertEquals(1, retrievedUsers.size());\n assertEquals(USER_THAT_EXISTS, retrievedUsers.iterator().next());\n }", "public boolean checkDb() {\n\t\t\n\t\tint userId = Auth.getCurrentUser().getId();\n\t\tString sql = \"select id from PersonalDetails where id='\"+userId+\"'\";\n\t\tint gotId;\n\t\t//connectToDb();\n\t\t\n\t\ttry(Connection conn = myDb;\n\t\t\tStatement stmt = conn.createStatement();\n\t\t\tResultSet rs = stmt.executeQuery(sql)){\n\t\t\tgotId = rs.getInt(\"id\");\n\t\t}catch(SQLException e){\n\t\t\t\n\t\t\tmyDb = null;\n\t\t\t\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif(gotId == userId) {\n\t\t\treturn true;\n\t\t}else {\n\t\t\t//return false;\n\t\t\treturn false;\n\t\t}\n\n\t}", "private boolean IsUserExist(){\n SignupUser user =roomDB.dao().GetUserData(et_user.getText().toString());\n if(user!=null){\n if(!user.getEmail().isEmpty()){\n Toast.makeText(this, \"User is already registered!\", Toast.LENGTH_SHORT).show();\n return true;\n }\n\n }\n return false;\n }", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "public boolean userDuplicateCheck(String username){\n ArrayList<User> users = new ArrayList<>(db.getAllUsers());\n\n for(User user : users){\n if(user.getUsername().equals(username)){\n return false;\n }\n }\n return true;\n }", "@Override\n public boolean userExists(String name){\n\n String sql = \"SELECT count(*) FROM users WHERE name=?\";\n int count = jdbcTemplate.queryForObject(sql, Integer.class, name);\n if(count == 0) {\n return false;\n } else {\n return true;\n }\n\n }", "boolean hasUserList();", "public boolean hasUser(){\n return numUser < MAX_USER;\n }", "public User userExists(IDatabase db) {\n\t\tUser doesExist = db.userExists(model);\n\t\treturn doesExist;\n\t}", "boolean isUserExists(RegisterData data) throws DuplicateUserException;", "public void checkUsernameExist() {\n\n try {\n BLUser bluser = new BLUser();\n User user = new User();\n\n ResultSet rs = bluser.selectUserIdFromUsername(txt_username.getText());\n\n user.setUsername(txt_username.getText());\n bluser.setUser(user);\n\n if (bluser.checkUsernameExist()) {\n \n populateDataOnTable();\n }// end if\n else {\n JOptionPane.showMessageDialog(rootPane, \"Invalid username!\");\n }// end else \n\n }// end try\n catch (Exception ex) {\n JOptionPane.showMessageDialog(null, ex.getMessage(), \"Exception\", JOptionPane.INFORMATION_MESSAGE);\n }//end catch\n }", "@Override\n\tpublic List<Object> getAllUsers() {\n\t\tList<Object> usersList = new ArrayList<Object>();\n\t\tList<TestUser> users = dao.getAll();\n\t\tSystem.out.println(dao.exists(5));\n\t\tfor(TestUser user : users){\n\t\t\tMap<String,Object> m = new HashMap<String,Object>();\n\t\t\tm.put(\"id\", user.getId());\n\t\t\tm.put(\"name\", user.getUsername());\n\t\t\tm.put(\"pwd\", user.getPassword());\n\t\t\tJSONObject j = new JSONObject(m);\n\t\t\tusersList.add(j);\n\t\t}\n\t\treturn usersList;\n\t}", "public boolean isExistingUsername(String username) {\n boolean isExistingUser = false; \n \n List<User> retrievedUsersList = new LinkedList<User>(); \n retrievedUsersList = repo.returnAllUsers(); \n \n User aUser = null; \n for(var user : retrievedUsersList) {\n aUser = (User)user; \n \n if(aUser.username.equals(username)) {\n isExistingUser = true; \n }\n }\n \n return isExistingUser; \n }", "@Override\n @SuppressWarnings(\"unchecked\")\n public boolean checkExists(String username) throws DAOException{\n \n try{\n Session session = HibernateConnectionUtil.getSession();\n \n Criteria crit = session.createCriteria(UserProfile.class);\n crit.add(Restrictions.eq(\"username\", username));\n List<UserProfile> userList = crit.list();\n session.close();\n return !userList.isEmpty();\n }\n catch(HibernateException e){\n throw new DAOException(\"HibernateException: \" + e.getMessage());\n }\n\n }", "private static boolean verificaUser(String username) {\n String user = null;\r\n try {\r\n PreparedStatement stmt = c.prepareStatement(\"SELECT * FROM utilizador where nome=?;\");\r\n stmt.setString(1, username);\r\n ResultSet rs = stmt.executeQuery();\r\n rs.next();\r\n user = rs.getString(\"nome\");\r\n if (user.equals(username)) {\r\n return true;\r\n }\r\n } catch (SQLException e) {\r\n System.out.println(e);\r\n }\r\n return false;\r\n }", "public boolean isExistingUser() {\r\n return isExistingUser;\r\n }", "private boolean findExist(UsersRobots usersRobots){\n List<UsersRobots> result = (List<UsersRobots>) entityManager.createQuery(\"SELECT ur FROM UsersRobots ur where ur.idUser = :idUser and ur.idRobot = :idRobot\")\n .setParameter(\"idUser\",usersRobots.getIdUser())\n .setParameter(\"idRobot\",usersRobots.getIdRobot())\n .getResultList();\n if(result.size() > 0){\n return true;\n }\n return false;\n }", "@Override\n\tpublic boolean hasUser(Account acccount) {\n\n\n\n\n\n\n\n\n\n\t\t\n\t\treturn (usersHashtable.containsKey(acccount));\n\t}", "public static boolean userExists(String username) throws IOException, SQLException {\n ArrayList<String> user = retrieveUser(username);\n if (!user.isEmpty()) {\n if (user.get(0).equals(username)) {\n System.out.println(\"Username exists in database.\");\n return true;\n }\n }\n System.out.println(\"The user: \" + username + \" does not exist\");\n return false;\n }", "public boolean doesTheUserExist(String user)\r\n\t {\r\n\t\t if (!users.get(user).equals(null))\r\n\t\t return true;\r\n\t\t return false;\r\n\t }", "public synchronized void checkUsers() {\n\t\tHttpSession temp;\n\t\tDate now = new Date();\n\t\tString tempUser;\n\t\tEnumeration userList = userSessions.keys();\n\t\twhile (userList.hasMoreElements()) {\n\t\t\ttempUser = (String) userList.nextElement();\n\t\t\ttry {\n\t\t\t\ttemp = (HttpSession) userSessions.get(tempUser);\n\t\t\t\tif ((now.getTime() - temp.getLastAccessedTime()) > 60000)\n\t\t\t\t\tuserSessions.remove(tempUser);\n\t\t\t} catch (Exception e) {\n\t\t\t\tuserSessions.remove(tempUser);\n\t\t\t}\n\t\t}\n\t}", "public boolean userExists(String userName) {\r\n String qr = \"from UserCredsTbl where userName like '%\" + userName + \"%'\"\r\n + \"or userName like '%\" + userName + \"%'\";\r\n List userList = crud.getObject(qr);\r\n\r\n if (userList.size() > 0) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "public static ArrayList<User> findAllUsers() {\n\n User targetUser = new User();\n IdentityMap<User> userIdentityMap = IdentityMap.getInstance(targetUser);\n\n String findAllUsers = \"SELECT * FROM public.member where type = 0\";\n PreparedStatement stmt = DBConnection.prepare(findAllUsers);\n ArrayList<User> userList = new ArrayList<User>();\n\n try {\n ResultSet rs = stmt.executeQuery();\n\n while(rs.next()) {\n User user = load(rs);\n\n targetUser = userIdentityMap.get(user.getId());\n if (targetUser == null) {\n userList.add(user);\n userIdentityMap.put(user.getId(), user);\n } else {\n userList.add(targetUser);\n }\n }\n DBConnection.close(stmt);\n rs.close();\n\n } catch (SQLException e) {\n System.out.println(\"Exception!\");\n e.printStackTrace();\n }\n return userList;\n }", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "public boolean existsUser(String username);", "private boolean checkUser(String username, String password){\n MongoCursor<Document> cursor = mongoAdapter.getUserCollection().find().iterator();\n\n while(cursor.hasNext()){\n Document document = cursor.next();\n System.out.println(document.get(\"_id\"));\n System.out.println(document.get(\"username\"));\n System.out.println(document.get(\"password\"));\n\n String dbusername = document.get(\"username\").toString();\n String dbpassword = document.get(\"password\").toString();\n\n if(dbusername.equals(username) && dbpassword.equals(password))\n return true;\n }\n return false;\n }", "boolean hasUserId();", "boolean hasUserId();", "boolean hasUserId();", "public void checkIfUserExists(){\n refIdsOnly = database.getReference(\"ids\");\n String idText1 = idEdit.getText().toString();\n\n idListener = new ValueEventListener() {\n boolean userDoesntExist = true;\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n // removing the event listener to make sure it only happens once\n // otherwise it has time to check again for the user just created\n refIdsOnly.removeEventListener(idListener);\n if (dataSnapshot.exists()){\n for (DataSnapshot data:dataSnapshot.getChildren()){\n String id = data.getValue(String.class);\n if (idText1.equals(id)){\n userDoesntExist = false;\n }\n }\n }\n if (userDoesntExist){\n register(idText1);\n }\n else\n Toast.makeText(RegistrationActivity.this, \"duplicate id number\", Toast.LENGTH_LONG).show();\n }\n @Override\n public void onCancelled(DatabaseError databaseError) {\n Toast.makeText(RegistrationActivity.this, \"failed\", Toast.LENGTH_LONG).show();\n }\n };\n refIdsOnly.addValueEventListener(idListener);\n }", "public boolean isUsersListEmpty() {\n\t\treturn this.listUsers.listIsEmpty();\n\t}", "private void verifyFromSQLite(){\n textInputLayoutUsername.setErrorEnabled(false);\n textInputLayoutPassword.setErrorEnabled(false);\n User user = new User();\n boolean _isnorekexist = false;\n\n for (int i=0;i<User.users.size();i++) {\n if (User.users.get(i).username.equals(textInputEditTextUsername.getText().toString())) {\n _isnorekexist = true;\n user = User.users.get(i);\n break;\n }\n }\n if (!inputValidation.isInputEditTextFilled(textInputEditTextUsername, textInputLayoutUsername, getString(R.string.error_message_username))) {\n return;\n }\n if (!inputValidation.isInputEditTextFilled(textInputEditTextPassword, textInputLayoutPassword,getString(R.string.error_message_password))) {\n return;\n }\n if (!inputValidation.isInputEditTextNoRekExist(textInputEditTextUsername, textInputLayoutUsername,_isnorekexist,getString(R.string.error_username_not_exists))){\n return;\n }\n if (databaseHelper.checkUsername(textInputEditTextUsername.getText().toString().trim()\n , textInputEditTextPassword.getText().toString().trim())) {\n\n SessionManager sessionManager = SessionManager.with(this);\n sessionManager.createsession(user);\n progress = new ProgressDialog(this);\n progress.setMessage(\"Loading...\");\n progress.show();\n Thread _thread = new Thread() {\n @Override\n public void run() {\n try {\n Thread.sleep(2000);\n progress.dismiss();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n masuk();\n }\n });\n\n }\n };\n _thread.start();\n }\n else {\n // Snack Bar to show success message that record is wrong\n Snackbar.make(nestedScrollView, getString(R.string.error_valid_username_pin), Snackbar.LENGTH_LONG).show();\n }\n }", "private void showData1(DataSnapshot dataSnapshot) {\n boolean cond = false;\n String emailaddress2 = email.getText().toString();\n for (DataSnapshot ds : dataSnapshot.getChildren()) {\n User eid = new User(ds.getValue());\n eid.setEmail(ds.child(\"email\").getValue().toString());\n if (eid.email.equals(emailaddress2)) {\n cond=true;\n break;\n }\n }\n if (cond == false){\n //if user does not exist then go ahead with sign up\n addemail();\n }\n if (cond ==true){\n Toast.makeText(getApplicationContext(),\"User already exists. Please login\",Toast.LENGTH_SHORT).show();\n }\n\n }", "public boolean checkUserNameIsOccupied(String name) {\n \t\tif (users.size() != 0) {\n \t\t\tfor (int i = 0; i < users.size(); i++) {\n \t\t\t\tif (name.equals(users.get(i).getName())) {\n \t\t\t\t\treturn true;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\treturn false;\n \t}", "public boolean isUsernameExist(String un) {\n\n boolean exist = false;\n\n // accessing registeredUser table (collection)\n MongoCollection<Document> collection = db.getCollection(\"registeredUser\");\n\n // ----- get document of given username from registeredData -----\n System.out.println(\"\\nVerifying if username already exists or not\\n--------------------\\n\");\n String colUsername = \"username\"; // set key and value to look for in document\n FindIterable<Document> docOne = collection.find(Filters.eq(colUsername, un)); // find document by filters\n MongoCursor<Document> cursor1 = docOne.iterator(); // set up cursor to iterate rows of documents\n try {\n // cursor1 will only have 1 data if we found a match\n if (cursor1.hasNext()) {\n System.out.println(\"Username already exists\");\n exist = true;\n }\n else {\n System.out.println(\"Username is available to register\");\n }\n } finally {\n cursor1.close();\n }\n\n return exist;\n }", "public static boolean doesUserIdExist(String userId) {\r\n\t\tString query = \"select userid_active from afbcusrmap_master where master_user='\"\r\n\t\t\t\t+ userId + \"'\";\r\n\t\tboolean doesUserExist = false;\r\n\t\ttry {\r\n\t\t\t\r\n\t//\t\t ArrayList<ArrayList<Object>> statusData = Database\r\n\t//\t\t\t\t.getResultsFromDatabase(query);\r\n\t\t\t \r\n\t\t\t ArrayList<ArrayList<Object>> statusData = (ArrayList<ArrayList<Object>>) readTableWithReturnValue(query);\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\tif(statusData.isEmpty())\r\n\t\t\t{\r\n\t\t\t\tdoesUserExist=false;\r\n\t\t\t\tSystem.out.println(\"User ID Does not Exist ..\");\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tdoesUserExist=true;\r\n\t\t\t\tSystem.out.println(\"Generated UserID already assigned\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\r\n\t\t }\r\n\t\t\r\n\t\treturn doesUserExist;\r\n\t }", "private void isUser() {\r\n FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();\r\n assert user != null;\r\n String Uphonenumber = user.getPhoneNumber();\r\n final String usernumber = Objects.requireNonNull(Uphonenumber);\r\n\r\n DatabaseReference reference = FirebaseDatabase.getInstance().getReference(\"UsersData\");\r\n Query checkUser = reference.orderByChild(\"phone\").equalTo(usernumber);\r\n checkUser.addListenerForSingleValueEvent(new ValueEventListener() {\r\n @Override\r\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\r\n if (dataSnapshot.exists()){\r\n\r\n nameFromDB = dataSnapshot.child(usernumber).child(\"name\").getValue(String.class);\r\n phoneFromDB = dataSnapshot.child(usernumber).child(\"phone\").getValue(String.class);\r\n dashboardUsername.setText(nameFromDB);\r\n dashboardPhoneNumber.setText(phoneFromDB);\r\n progressBar.DismissDialog();\r\n\r\n\r\n }\r\n else{\r\n Toast.makeText(getApplicationContext(),\"User data didn't matched! \", Toast.LENGTH_LONG).show();\r\n }\r\n\r\n }//End of onDataChange method\r\n\r\n @Override\r\n public void onCancelled(@NonNull DatabaseError databaseError) {\r\n\r\n }\r\n });//End of addListenerForSingleValueEvent method\r\n\r\n\r\n }", "private void testUserName(){\r\n\t\t//get user with the 'test' userName\r\n\t\tString command = \"SELECT userName FROM users \"\r\n\t\t\t\t+ \"WHERE userName = \\\"\" + commandList.get(1) + \"\\\";\";\r\n\t\tSystem.out.println(command);//print command\r\n\t\ttry {//send command\r\n\t\t\trs = stmt.executeQuery(command);\r\n\t\t\t\r\n\t\t\tif(rs.next()){//if it returns user, userName exists\r\n\t\t\t\tout.println(\"exists\");\r\n\t\t\t} else {//no results returned, empty\r\n\t\t\t\tout.println(\"free\");\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\tout.println(e.getMessage());//send back error message\r\n\t\t}\r\n\t\t\r\n\r\n\t}", "private int checkUserExists(String name)\r\n\t{\r\n\t\tfor (int i = 0; i < numOfUsers; i++)\r\n\t\t{\r\n\t\t\tif (name.equals(userAccounts[0][i]))\r\n\t\t\t\treturn i;\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "private boolean checkUser(String user_name, String passwordd) throws SQLException {\n boolean sucss = false;\n DBConnection db = new DBConnection();\n Connection connection = db.getConnection();\n String sql = \"SELECT * FROM USER WHERE NAME = ? AND PASSWORD = ?\";\n try (PreparedStatement preparedStatement = connection.prepareStatement(sql);) {\n preparedStatement.setString(1, user_name);\n preparedStatement.setString(2, passwordd);\n ResultSet rs = preparedStatement.executeQuery();\n if (rs.next()) {\n System.out.println(rs.getString(\"name\"));\n System.out.println(rs.getString(\"password\"));\n sucss = true;\n }\n } catch (SQLException e) {\n System.out.println(\"User Is Not Insert\" + e);\n } finally {\n connection.close();\n return sucss;\n }\n }", "public static List<Integer> verifyUsersValid(String... usernames) {\n try {\n List<Integer> uids = new ArrayList<>();\n Connection conn = DriverManager.getConnection(\n Main.resource.getString(\"Postgresql.datasource.url\"),\n Main.resource.getString(\"Postgresql.datasource.username\"),\n Main.resource.getString(\"Postgresql.datasource.password\"));\n for (String username : usernames) {\n int otherid = NewFeature.getId(username, conn);\n uids.add(otherid);\n }\n return uids;\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n return Collections.emptyList();\n\n\n }", "public void viewUsers(){\n Database manager = new Database(\n this,\n \"mypets\",\n null,\n 1\n );\n //2. Let write on DB\n SQLiteDatabase mypets = manager.getWritableDatabase();\n //3. Get information from database\n int idAdmin = 1;\n Cursor row = mypets.rawQuery(\n \"SELECT * FROM users WHERE id not in (?)\",\n idAdmin\n );\n\n if (row.getCount() == 0) {\n Toast.makeText(\n this,\n \"::: There isn't any user registered:::\",\n Toast.LENGTH_SHORT\n ).show();\n } else {\n while(row.moveToNext()) {\n listUsers.add(row.getString(1));\n listUsers.add(row.getString(3));\n }\n adapter = new ArrayAdapter<>(\n this,\n android.R.layout.simple_list_item_1,\n listUsers\n );\n userList.setAdapter(adapter);\n }\n }", "boolean exists(User user);", "Boolean checkUserExists(Integer userId) throws AppException;", "public void userExists(){\n\n DatabaseReference rootRef = FirebaseDatabase.getInstance().getReference();\n DatabaseReference userNameRef = rootRef.child(\"users\").child(winnerName);\n ValueEventListener eventListener = new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if(!dataSnapshot.exists()) {\n createNewUser();\n }\n else{\n updateUser();\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n Log.d(\"TAG\", databaseError.getMessage()); //Don't ignore errors!\n }\n };\n userNameRef.addListenerForSingleValueEvent(eventListener);\n\n\n }", "boolean hasObjUser();", "@Override\r\n\tpublic Boolean userExist(String username) {\n\t\treturn null;\r\n\t}", "boolean hasSelectedUser();", "public static boolean userExist(String username){\n boolean exist = false;\n try{\n Class.forName(\"com.mysql.jdbc.Driver\");\n connection = DriverManager.getConnection(\"RDS_HOST\",\"RDS_USERNAME\",\"RDS_PASSWORD\");\n String query = \"SELECT username FROM users WHERE username = ?\";\n PreparedStatement preparedStatement = connection.prepareStatement(query);\n preparedStatement.setString(1,username);\n resultSet = preparedStatement.executeQuery();\n if(resultSet.next()){\n exist = true;\n }\n\n }\n finally {\n close();\n return exist;\n }\n }", "private boolean isUserExist(String friendName)\r\n\t{\r\n\t\tlogger.debug(\"->->->->-> Inside isUserExist method ->->->->->\");\r\n\t\tif(userDAO.getParticularUserbyUserName(friendName)==null){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "@Override\n\tpublic boolean userExists(String email) {\n\t\treturn (searchIndex(email) >= 0);\n\t}", "Boolean checkUserExists(String userName) throws AppException;", "public Boolean checkusername( String username){\n SQLiteDatabase sdb = this.getReadableDatabase();\n Cursor cursor = sdb.rawQuery(\"Select * from user where username=?\",new String[]{username});\n if(cursor.getCount()>0) {\n return false;\n }\n else {\n return true;\n }\n }", "private void checkAdminInDB(DB db) {\n\t\tMap<Long, UtenteBase> users = db.getTreeMap(\"users\");\n\t\tlong hashCode = (long) \"admin\".hashCode();\n\t\tif(!users.containsKey(hashCode))\n\t\t\tusers.put(hashCode, new Admin(\"admin\", \"admin\"));\n\t}", "public Task<Boolean> ifUserExists(final String uuid){\n final String userID = uuid;\r\n\r\n // tcs is what we return\r\n final TaskCompletionSource<Boolean> tcs = new TaskCompletionSource<>();\r\n\r\n // Checks if a user is in the database\r\n userRef.addListenerForSingleValueEvent(new ValueEventListener() {\r\n @Override\r\n public void onDataChange(DataSnapshot dataSnapshot) {\r\n // Loop through 'users' node and check each leaf\r\n for(DataSnapshot data: dataSnapshot.getChildren()){\r\n // If the uuid exists in our 'users' node in the database\r\n if(data.getKey().equals(uuid)){\r\n // Set TaskCompleteSource result to true\r\n tcs.setResult(true);\r\n return;\r\n }\r\n }\r\n // Could not find uuid in the 'users' node in the database\r\n // Set TCS to false\r\n tcs.setResult(false);\r\n }\r\n\r\n @Override\r\n public void onCancelled(DatabaseError databaseError) {\r\n\r\n }\r\n });\r\n\r\n return tcs.getTask();\r\n }", "@Test\n public void userNameExists ()throws SQLException {\n Connection conn = DriverManager.getConnection(\"jdbc:mysql://localhost/users\", \"root\", \"tech\");\n Statement stmt= (Statement) conn.createStatement();\n sql = \"SELECT * FROM user WHERE userName='\"+uName+\"'\";\n rs = stmt.executeQuery(sql);\n \n while(rs.next()){\n uName=rs.getString(\"username\");\n }\n \n boolean exists=false;\n if(uName==null){\n System.out.println(\"Username does not exist!\");\n exists=false;\n assertTrue(exists=false);\n //return exists;\n }\n System.out.println(\"Username already exists!\");\n exists=true;\n assertTrue(exists=true);\n //return exists;\n }", "public boolean checkUser(String username, String password) {\n String[] columns = {COL_1};\n SQLiteDatabase db = getReadableDatabase();\n String selection = COL_2 + \"=?\" + \" and \" + COL_3 + \"=?\";\n String[] selectionArgs = {username, password};\n Cursor cursor = db.query(USER_TABLE_NAME, columns, selection, selectionArgs, null, null, null);\n int count = cursor.getCount();\n cursor.close();\n db.close();\n\n if (count > 0)\n return true;\n else\n return false;\n }" ]
[ "0.7285229", "0.72088283", "0.7073702", "0.70732117", "0.69571865", "0.6927106", "0.688983", "0.68850905", "0.6846944", "0.6819899", "0.68151754", "0.6790931", "0.67895335", "0.678046", "0.6779771", "0.67641807", "0.6752957", "0.674833", "0.67209816", "0.67001116", "0.66997397", "0.6681712", "0.6654167", "0.66170263", "0.6593433", "0.6593433", "0.6593433", "0.6593433", "0.6593433", "0.6593433", "0.6593433", "0.6585339", "0.65668523", "0.6536954", "0.65360373", "0.65266395", "0.65103436", "0.6490715", "0.6489901", "0.648903", "0.6460803", "0.64534765", "0.64505094", "0.64451736", "0.6397555", "0.6385295", "0.6376848", "0.63756007", "0.6365523", "0.6356906", "0.6346856", "0.6346856", "0.6346856", "0.6346856", "0.6346856", "0.6346856", "0.6346856", "0.6346856", "0.6346856", "0.6346856", "0.6346856", "0.6346856", "0.6346856", "0.6346856", "0.6346856", "0.6346856", "0.6346856", "0.6346856", "0.63335174", "0.632651", "0.6325864", "0.6325864", "0.6325864", "0.63134265", "0.6308197", "0.63076264", "0.6303201", "0.6291296", "0.6285726", "0.62844396", "0.6267417", "0.62563366", "0.6253969", "0.6244352", "0.62434447", "0.62344444", "0.6225607", "0.62202454", "0.6210711", "0.62008417", "0.61973566", "0.6192806", "0.61911386", "0.6189167", "0.6178947", "0.6178257", "0.61776966", "0.61762905", "0.6161167", "0.6159407", "0.61522806" ]
0.0
-1
Method that recursively calls itself to create a String of type Expression and its children that starts at the given indent level.
public void convertToString(StringBuilder stringBuilder, int indentLevel) { indent(stringBuilder, indentLevel); stringBuilder.append(_data); stringBuilder.append('\n'); for (Expression expr : _children) { expr.convertToString(stringBuilder, indentLevel + 1); } System.out.println(stringBuilder.toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String indentedToString( int level ){\n\n\t\tString answer = \n\t\t\t\"ProgramNode.\" \n\t\t\t+ \" Name: \" + name \n\t\t\t+ \"\\n\"\n\t\t\t+ variables.indentedToString( level + 1 )\n\t\t\t+ functions.indentedToString( level + 1 )\n\t\t\t+ main.indentedToString( level + 1 );\n\n\t\treturn answer;\n\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\tString string = \"\";\r\n\t\tif (expressionTree.getNumberOfChildren()==0)\r\n\t\t\treturn expressionTree.getValue();\r\n\t\telse{\r\n\t\t\tstring += \"(\";\r\n\t\t\tfor (int i = 0; i < expressionTree.getNumberOfChildren(); i++){\r\n\t\t\t\tTree<String> subtree = expressionTree.getChild(i);\r\n\t\t\t\tif (subtree.getNumberOfChildren()==0)\r\n\t\t\t\t\tstring += subtree.getValue();\r\n\t\t\t\telse\r\n\t\t\t\t\tstring += (new Expression(subtree.toString())).toString()+\" \";\r\n\t\t\t\tif (i < expressionTree.getNumberOfChildren()-1)\r\n\t\t\t\t\tstring += \" \" + expressionTree.getValue()+\" \";\r\n\t\t\t}\r\n\t\t\tstring += \")\";\r\n\t\t}\r\n\t\treturn string;\r\n\t}", "@Override\n public String toString(int depth) {\n if (depth <= 0) return \"\";\n String sEO = \"\" ;\n if (this.subExpressionOf != null) {\n sEO = Strings.indent(2,\n \"\\nsubExpressionOf: \" +\n Strings.indent(2, this.subExpressionOf.toString(1))) ;} ;\n return \"\\n*OpApplNode: \" + operator.getName() + \" \" + super.toString(depth+1)\n + \" errors: \" + (errors != null ? \"non-null\" : \"null\")\n + toStringBody(depth) + sEO ;\n }", "@Override\n\t\tpublic String toString() {\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tpreOrderTraverse(expression.root, 1, sb);\n\t\t\treturn sb.toString();\n\t\t}", "private TreeNode exprTreeHelper(String expr) {\n if (expr.charAt(0) != '(') {\n return new TreeNode(expr); // you fill this in\n } else {\n // expr is a parenthesized expression.\n // Strip off the beginning and ending parentheses,\n // find the main operator (an occurrence of + or * not nested\n // in parentheses, and construct the two subtrees.\n int nesting = 0;\n int opPos = 0;\n for (int k = 1; k < expr.length() - 1; k++) {\n // you supply the missing code\n \tif (nesting == 0) {\n \t\tif (expr.charAt(k) == '+' || expr.charAt(k) == '*') {\n \t\t\topPos = k;\n \t\t}\n \t}\n \tif (expr.charAt(k) == '(') {\n \t\tnesting++;\n \t} else if (expr.charAt(k) == ')') {\n \t\tnesting--;\n \t}\n }\n String opnd1 = expr.substring(1, opPos);\n String opnd2 = expr.substring(opPos + 1, expr.length() - 1);\n String op = expr.substring(opPos, opPos + 1);\n System.out.println(\"expression = \" + expr);\n System.out.println(\"operand 1 = \" + opnd1);\n System.out.println(\"operator = \" + op);\n System.out.println(\"operand 2 = \" + opnd2);\n System.out.println();\n return new TreeNode(op, exprTreeHelper(opnd1), exprTreeHelper(opnd2)); // you fill this in\n }\n }", "public String convertToString (int indentLevel){\n StringBuffer sb = new StringBuffer(\"\");\n Expression.indent(sb,indentLevel);\n sb.append(_value);\n sb.append(\"\\n\");\n return sb.toString();\n }", "public String toString(){\n String str = \"\";\n for(int i = level; i>0; i--){\n str+=\"\\t\";\n }\n str += getClass().toString();\n if(noOfChildren != 0){\n str+=\" containing\\n\";\n for (int i = 0; i<this.noOfChildren; i++)\n str += getChild(i).toString();\n }\n else{\n str+=\"\\n\";\n }\n return str;\n }", "private TreeNode exprTreeHelper(String expr) {\n if (expr.charAt(0) != '(') {\n \n \treturn new TreeNode(expr); // you fill this in\n } else{\n // expr is a parenthesized expression.\n // Strip off the beginning and ending parentheses,\n // find the main operator (an occurrence of + or * not nested\n // in parentheses, and construct the two subtrees.\n int nesting = 0;\n int opPos = 0;\n char myChar='\\0';\n \n for (int k = 1; k < expr.length() - 1; k++) {\n myChar = expr.charAt(k);\n \tif(myChar == '('){\n \tnesting++;\n }\n if(myChar==')'){\n \tnesting--;\n }\n if(nesting == 0){\n \tif(myChar == '+' || myChar == '*'){\n \t\topPos = k;\n \t break;\t\n \t}\n }\n }\n \n String opnd1 = expr.substring(1, opPos);\n String opnd2 = expr.substring(opPos + 1, expr.length() - 1);\n String op = expr.substring(opPos, opPos + 1);\n System.out.println(\"expression = \" + expr);\n System.out.println(\"operand 1 = \" + opnd1);\n System.out.println(\"operator = \" + op);\n System.out.println(\"operand 2 = \" + opnd2);\n System.out.println();\n return new TreeNode(op,exprTreeHelper(opnd1),exprTreeHelper(opnd2));\n \n }\n }", "private String toStringBody(int depth) {\n if (depth <= 1) return \"\";\n\n String ret;\n if (operator == null) {\n ret = \"\\nOperator: null\";\n }\n else {\n ret = \"\\nOperator: \" + operator.getName().toString() + \" \"\n + operator.getUid() + \" \";\n }\n\n if (unboundedBoundSymbols!=null && unboundedBoundSymbols.length > 0) {\n ret += \"\\nUnbounded bound symbols: \";\n for (int i = 0; i < unboundedBoundSymbols.length; i++) {\n ret += Strings.indent(2,unboundedBoundSymbols[i].toString(depth-1));\n }\n }\n\n if (boundedBoundSymbols != null && boundedBoundSymbols.length > 0) {\n ret += \"\\nBounded bound symbols: \" + getNumberOfBoundedBoundSymbols();\n for (int i = 0; i < boundedBoundSymbols.length; i++) {\n if (boundedBoundSymbols[i] != null && boundedBoundSymbols[i].length > 0) {\n for (int j = 0; j < boundedBoundSymbols[i].length; j++) {\n ret += Strings.indent(2, \"\\n[\" + i + \",\" + j + \"]\" +\n Strings.indent(2,boundedBoundSymbols[i][j].toString(depth-1)));\n }\n }\n }\n }\n\n if (ranges.length > 0) {\n ret += \"\\nRanges: \";\n for (int i = 0; i < ranges.length; i++)\n ret += Strings.indent(2,(ranges[i] != null ?\n ranges[i].toString(depth-1) : \"null\" ));\n }\n\n if (tupleOrs != null && tupleOrs.length > 0 /* && tupleOrs[0] */) {\n ret += \"\\nTupleOrs: \";\n for (int i = 0; i < tupleOrs.length; i++) {\n ret += Strings.indent(2, (tupleOrs[i] ? \"\\ntrue\" : \"\\nfalse\"));\n }\n }\n\n if (operands != null) {\n if (operands.length > 0) {\n ret += \"\\nOperands: \" + operands.length;\n for (int i = 0; i < operands.length; i++) {\n ret += Strings.indent(2,\n (operands[i] == null ? \"\\nnull\" : operands[i].toString(depth-1)));\n }\n }\n }\n else {\n ret += \"\\nOperands: null\";\n }\n return Strings.indent(2, ret);\n }", "ParenthesisExpr createParenthesisExpr();", "@Override\n\tpublic String visitExpr(ExprContext ctx) {\n\t\t\t\t\n\t\t\tif(ctx.getChildCount()==1)\n\t\t\t{\n\t\t\t\treturn visitSubexpr(ctx.subexpr());\n\t\t\t}\n\t\t\telse\n\t\t\t\t\n\t\t\t{\n\t\t\t\tString result = \"\";\n\t\t\t\t\n\t\t\t\t\tresult = \"temp\"+ count.count++;\n\t\t\t\tif(ctx.getChild(1).getText().equals(\"+\"))\n\t\t\t\t{\n\t\t\t\t\tsb.append(\"ADD \"+visit(ctx.children.get(0))+\" \"+visitSubexpr(ctx.subexpr())+\" \"+result+\"\\n\");\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tsb.append(\"SUB \"+visit(ctx.children.get(0))+\" \"+visitSubexpr(ctx.subexpr())+\" \"+ result+\"\\n\");\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\t\t\t}\n\t\n\n\t\t\n\t}", "public String toString() {\n\t\t//|| (this.equals(new StatementParse(\"sequence\", 0)))\n\t\tif (this.equals(Parser.FAIL)) {\n\t\t\treturn \"\";\n\t\t}\n String result = \"\";\n result += \"(\";\n result += this.name;\n for (Parse child: this.children) {\n \tresult += \" \" + child.toString();\n }\n result += \")\";\n return result;\t\n }", "protected String getLevelString()\n {\n\tStringBuffer buf = new StringBuffer();\n\tfor (int i = 0; i < nestLevel; i++)\n\t buf.append(\">\");\n\treturn buf.toString();\n\t}", "private String indent(int level) throws IOException {\n return Utility.repeat(\" \", level);\n }", "public String toStringEx(int depth) {\n\t\treturn toString(0, depth);\n\t}", "public String toStringAST()\r\n/* 75: */ {\r\n/* 76: 94 */ StringBuilder s = new StringBuilder();\r\n/* 77: */ \r\n/* 78: 96 */ s.append('{');\r\n/* 79: 97 */ int count = getChildCount();\r\n/* 80: 98 */ for (int c = 0; c < count; c++)\r\n/* 81: */ {\r\n/* 82: 99 */ if (c > 0) {\r\n/* 83:100 */ s.append(',');\r\n/* 84: */ }\r\n/* 85:102 */ s.append(getChild(c).toStringAST());\r\n/* 86: */ }\r\n/* 87:104 */ s.append('}');\r\n/* 88:105 */ return s.toString();\r\n/* 89: */ }", "public String toString2() {\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tpostOrderTraverse(expression.root,sb);\n\t\t\treturn sb.toString();\n\t\t}", "@Override\n\t\t\tpublic String generate(int depth) {\n\t\t\t\tStringBuilder builder = new StringBuilder();\n\t\t\t\tif(depth == 0) {\n\t\t\t\t\treturn axiom;\n\t\t\t\t}\n\t\t\t\tbuilder.append(generate(depth-1));\n\t\t\t\t\n\t\t\t\tchar[] array = builder.toString().toCharArray();\n\t\t\t\tString result = new String();\n\t\t\t\tfor(int i = 0; i < array.length; i++) {\n\t\t\t\t\tString production = (String) productions.get(array[i]);\n\t\t\t\t\tif(production != null) {\n\t\t\t\t\t\tresult += production;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tresult += array[i];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn result;\n\t\t\t}", "private void infix(ExpressionNodes root, StringBuilder sb)\n\t {\t\n\t \t\n\t \tif (root.left != null) // if there is a left child\n\t \t{ \n\t \t\tinfix(root.left, sb); // run recursive method \n\t \t}\n\t \t\n\t \t// add the string of this node to the the string builder \n\t \tsb.append(root.data);\n\t \t\n\t \t// add a space in between nodes for clarity.\n\t \tsb.append(\" \");\n\t \t\n\t \t\n\t \tif (root.right != null) // if there is a right child\n\t \t{ \n\t \t\tinfix(root.right, sb); // run recursive method \n\t \t}\n\t \t\n\t }", "private static StringBuffer Pad(int depth) {\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tfor (int i = 0; i < depth; i++)\r\n\t\t\tsb.append(\" \");\r\n\t\treturn sb;\r\n\t}", "private String toString(Node<VirtualDataSet> node, int indentDepth) {\n\t\tString indent = createIndent(indentDepth);\n\n\t\tif (node == null)\n\t\t\treturn null;\n\n\t\tif (indentDepth < 0)\n\t\t\tthrow new IllegalArgumentException(\"indentDepth cannot be a negative number.\");\n\n\t\tif (node.children == null) {\n\t\t\tAttribute classAttribute = node.data.getAttribute(node.data.getNumberOfAttributes() - 1);\n\t\t\treturn indent + classAttribute.getName() + \" = \" + classAttribute.getValues()[0] + System.lineSeparator();\n\t\t}\n\n\t\tint statementNo = 0;\n\n\t\tStringBuffer buffer = new StringBuffer();\n\n\t\tfor (int i = 0; i < node.children.length; i++) {\n\t\t\tbuffer.append(indent + ((statementNo++ == 0) ? \"if (\" : \"else if (\") + node.children[i].data.getCondition()\n\t\t\t\t\t+ \") {\" + System.lineSeparator());\n\t\t\tbuffer.append(toString(node.children[i], indentDepth + 2));\n\t\t\tbuffer.append(indent + \"}\" + System.lineSeparator());\n\t\t}\n\n\t\treturn buffer.toString();\n\t}", "public String innerString(Expr e)\n {\n if (e.getPrecedence() < this.getPrecedence())\n return StringUtil.embed(e.toString());\n else\n return e.toString();\n }", "public void buildTree() throws RuntimeException, DivideByZero {\r\n // define local variable to count number of times an operator \r\n // is pushed into it's associated stack. This will be use to \r\n // count register values\r\n int i = 0;\r\n\r\n // split postfix expression enterend into the textbox into tokens using \r\n // StringTokenizer. Delimeters are used so that different inputs \r\n // can be parsed without spaces being necessary \r\n StringTokenizer token = new StringTokenizer(inputExpression, \" */+-\", true);\r\n\r\n // while loop to build tree out of the postfix expression\r\n while (token.hasMoreTokens()) {\r\n // get the next token in series\r\n String nextItem = token.nextToken();\r\n\r\n // use selection statements to determine if the next token\r\n // in the String is an operand, operator, or unknown\r\n if (nextItem.matches(\"[0-9]+\")) {\r\n // push operand to associated stack\r\n operandStk.push(nextItem);\r\n \r\n // push operand to AssemblyCode class\r\n assemblyCode.pushStack(nextItem);\r\n\r\n } else if (nextItem.equals(\"*\") || nextItem.equals(\"/\")\r\n || nextItem.equals(\"+\") || nextItem.equals(\"-\")) {\r\n // push current operator to operators stack\r\n operatorStk.push(nextItem);\r\n // call the getNodes() method to perform operation\r\n getNodes(i);\r\n // count each time an operator is pushed so registers can be counted\r\n i++;\r\n } else if (!nextItem.equals(\" \")){ \r\n // set class variable to equal invalid character\r\n invalidToken = nextItem; \r\n // throw exception if illegal operator or operand is parsed\r\n throw new RuntimeException();\r\n }\r\n } // end while loop\r\n }", "private String tabulatorString(int level) {\r\n String tabs = \"\";\r\n for (int i = 0; i < level; i++) {\r\n tabs += \"\\t\";\r\n }\r\n return tabs;\r\n }", "@Override\n\tpublic String indentedToString(int level) {\n\t\tStringBuilder build = new StringBuilder(indentation(level)).append(\"FUNCTION HEADER: \").append(name).append('\\n');\n\t\tfor (String arg : arguments) {\n\t\t\tbuild.append(indentation(level + 1)).append(arg).append('\\n');\n\t\t}\n\t\treturn build.toString();\n\t}", "public String makeTree() {\r\n // Create a stack to store the files/directories in the tree\r\n Stack<DirectoryTreeNode> itemStack = new Stack<>();\r\n // Initialize a string variable to store the tree diagram\r\n String tree = \"\";\r\n // Push the root directory into the stack\r\n itemStack.push(this.rootDir);\r\n\r\n // Loop through the items in the Stack until all the items have been\r\n // traversed (this is similar to the pre-order traversal of the tree)\r\n while (!itemStack.isEmpty()) {\r\n // Get the item on the top of the stack and store it in current\r\n DirectoryTreeNode current = (DirectoryTreeNode) itemStack.pop();\r\n // Get the number of tabs required in the output for this item\r\n int numTabs = this.getNumberOfAncestors((E) current);\r\n // Get the string of tabs needed to put before current's name\r\n String tabs = this.getNumberOfTabs(numTabs);\r\n // Add the required number of tabs, the current item's of name and a\r\n // newline\r\n tree += tabs + current.getName() + \"\\n\";\r\n\r\n // Check if current is a Directory (in which case it may have\r\n // sub directories and files)\r\n if (current instanceof Directory) {\r\n // Get the list of files and directories of current directory\r\n ArrayList<DirectoryTreeNode> contents =\r\n ((Directory) current).getContents();\r\n // Loop through the contents of current and add them to the stack\r\n for (int i = contents.size() - 1; i >= 0; i--) {\r\n itemStack.add(contents.get(i));\r\n }\r\n }\r\n }\r\n // Return the generated tree diagram\r\n return tree;\r\n }", "StringExpression createStringExpression();", "public String toString(String indent) {\n StringBuffer result = new StringBuffer(indent);\n result.append(value).append('\\n');\n if (left == null && right == null) return result.toString();\n if (left == null) result.append(indent+INDENT+\"-\\n\");\n else result.append(left.toString(indent+INDENT));\n if (right == null) result.append(indent+INDENT+\"-\\n\");\n else result.append(right.toString(indent+INDENT));\n return result.toString();\n }", "@Override\n public String indentedToString(int level)\n {\n String answer = this.indentation(level);\n answer += \"Variable Name: \" + this.name + \" \" +\n VariableNode.super.getType() + \"\\n\";\n return answer;\n }", "public String toString(){\n //return myString(root);\n printInOrder(root);\n return \"\";\n }", "protected String toString(int spaces, int expansion) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\t// first line: Name:ClassName\n\t\tsb.append(StringUtil.getRepeatedString(\" \", spaces)).append(nameProperty().getValue()).append(':').append(getClass().getSimpleName()).\n\t\t\t\tappend(' ').append(getPropertyStrings()).append('\\n');\n\t\t\n\t\t// call toString on all children with spaces += 4\n\t\tif (expansion != 0 && children != null) {\n\t\t\t// Print attributes first\n\t\t\tfor (BusinessObject child : children.values()) {\n\t\t\t\tif (child.isAttribute()) {\n\t\t\t\t\tsb.append(child.toString(spaces + 4, expansion - 1));\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Print everything else\n\t\t\tfor (BusinessObject child : children.values()) {\n\t\t\t\tif (!child.isAttribute()) {\n\t\t\t\t\tsb.append(child.toString(spaces + 4, expansion - 1));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn sb.toString();\n\t}", "public String toString() {\n if (mExpression.size() == 1 && mExpression.get(0).startsWith(\"-\")) {\n return mExpression.get(0);\n }\n\n StringBuilder output = new StringBuilder();\n boolean first = true;\n int size = mExpression.size();\n\n for (int i = 0; i < size; i++) {\n String element = mExpression.get(i);\n\n if (first) {\n first = false;\n } else {\n output.append(\"\");\n }\n\n\n if (isOperand(element) && element.startsWith(\"-\")) {\n output.append(\"(\")\n .append(element)\n .append(\")\");\n } else {\n output.append(element);\n }\n }\n\n return output.toString();\n }", "@Override\n\tpublic String toInfixNotation() {\n\t\tint num;\n\t\tExpressionTree left, right;\n\n\t\ttry {\n\t\t\tnum = Integer.parseInt(EMPTY + this.getValue());\n\t\t\treturn EMPTY + num;\n\t\t}\n\t\tcatch(NumberFormatException n) {\n\t\t\tleft = new ExpressionTree(getLeft());\n\t\t\tright = new ExpressionTree(getRight());\n\t\t\t\n\t\t\treturn OPEN_PAREN + left.toInfixNotation() + SPACE + getValue() \n\t\t\t\t\t+ SPACE + right.toInfixNotation() + CLOSED_PAREN;\n\t\t}\n\t}", "@Override\n public final String asString(int indentSize, int innerIndentInc) {\n return \"\";\n }", "private String toStringHelper(Node<T> node, int curDepth) {\n if (node.data != null) {\n return node.data.toString();\n }\n if (node.children == null) {\n return \"_\";\n }\n\n StringBuilder outString = new StringBuilder();\n for (int i = 0; i < branchingFactor; i++) {\n if (node.get(i) == null) {\n outString.append(\"_\");\n //break;\n } else {\n if (curDepth == 0) {\n outString.append(node.get(i).toString());\n\n } else {\n outString.append(toStringHelper(node.get(i), curDepth - 1));\n }\n }\n\n if (i + 1 != branchingFactor) {\n outString.append(\", \");\n }\n }\n return \"(\" + outString + \")\";\n }", "public String toString() {\n\t\tif (label == null && numChildren <= 0)\n\t\t\treturn \"()\";\n\t\tStringBuffer ret = new StringBuffer(label.toString());\n\t\tif (numChildren > 0) {\n\t\t\tret.append(\"(\"+children[0].toString());\n\t\t\tfor (int i = 1; i < numChildren; i++) {\n\t\t\t\tret.append(\" \"+children[i].toString());\n\t\t\t}\n\t\t\tret.append(\")\");\n\t\t}\n\t\t//\telse\n\t\t//\t ret.append(\":\"+label.hashCode());\n\t\treturn ret.toString();\n\t}", "public String toString() {\n Class<? extends AST> tclass = this.getClass();\n // isolate relative name (starting after the rightmost '.')\n String absoluteClassName = tclass.toString();\n int dotIndex = absoluteClassName.lastIndexOf(\".\", absoluteClassName.length());\n String relativeClassName = absoluteClassName.substring(dotIndex+1);\n // retrieving fields (note that, unfortunately, they are not ordered)\n // TO DO : get rid of static fields (pb in case of singletons)\n Field[] fields = tclass.getDeclaredFields();\n // building string representation of the arguments of the nodes\n int arity = fields.length;\n String args = \"\";\n for(int index = 0; index < arity; index++) {\n String arg;\n try {\n arg = fields[index].get(this).toString(); // retrieve string representation of all arguments\n } catch (Exception e) {\n arg = \"?\"; // IllegalArgument or IllegalAccess Exception (this shouldn't happen)\n }\n if (index != 0) // a separator is required before each argument except the first\n args = args + \", \" + arg;\n//\t\t\t\targs = args + \" \" + arg;\n else\n args = args + arg;\n }\n return relativeClassName + \"(\" + args + \")\";\n//\t\treturn \"<\" + relativeClassName + \">\" + args + \"</\" + relativeClassName + \">\";\n }", "public String toString() {\n if (subTrees.isEmpty()) return rootToString();\n StringBuilder result = new StringBuilder(rootToString() + \"(\" + subTrees.get(0).toString());\n for (int i = 1; i < subTrees.size(); i++) result.append(\",\").append(subTrees.get(i).toString());\n return result + \")\";\n }", "public static String generatePreOrderStringParenthesization(BinaryTree.Node root){\n StringBuffer strTree = generatePreOrderStringParenthesization(root, new StringBuffer(\"(\"));\n strTree.append(\")\");\n return strTree.toString();\n }", "public void recursion(final String expression, int countOperation) {\n int numberOfOperations=0;\n String operationString=expression.replace(\" \",\"\");\n for (int i=0; i<operationString.length()-1; i++)\n {\n if(expression.substring(i,i+1).matches(\"\\\\+\")\n ||operationString.substring(i,i+1).matches(\"\\\\-\")\n ||operationString.substring(i,i+1).matches(\"\\\\*\")\n ||operationString.substring(i,i+1).matches(\"/\")\n ||operationString.substring(i,i+1).matches(\"\\\\^\")\n ||operationString.substring(i,i+1).matches(\"i\")\n ||operationString.substring(i,i+1).matches(\"a\")\n ||operationString.substring(i,i+1).matches(\"o\"))\n {\n numberOfOperations++;\n }\n }\n String result;\n int count=0;\n if (operationString.substring(0,1).equals(\"(\"))\n {\n int start=1;\n int end=0;\n count=1;\n while (count<operationString.length() && start!=end)\n {\n String temp=operationString.substring(count,count+1);\n if (temp.equals(\"(\"))\n {\n start++;\n }\n if (temp.equals(\")\"))\n {\n end++;\n }\n count++;\n }\n }\n if (count!=operationString.length() && !operationString.substring(0,1).equals(\"(\"))\n {\n //разбиваем выражения на подвыражения\n List<String> symbols=new ArrayList<>();\n for (int i=0; i<operationString.length()-1;)\n {\n String temp=operationString.substring(i,i+1);\n if (\"+-*/^\".contains(temp))\n {\n symbols.add(temp);\n i++;\n }\n if(temp.equals(\"s\") || temp.equals(\"t\") || temp.equals(\"c\"))\n {\n symbols.add(operationString.substring(i,i+3));\n i=i+3;\n }\n if (temp.matches(\"\\\\d\"))\n {\n int k=i+1;\n StringBuilder sb=new StringBuilder(temp);\n while (k<operationString.length()&&(operationString.substring(k,k+1).matches(\"\\\\d\")||operationString.substring(k,k+1).matches(\"\\\\.\")))\n {\n sb.append(operationString.substring(k,k+1));\n k++;\n }\n i=k;\n symbols.add(new String(sb));\n }\n if (temp.equals(\"(\"))\n {\n int start=1;\n int end=0;\n int k=i+1;\n while(k<operationString.length() && start!=end)\n {\n if (operationString.substring(k,k+1).equals(\"(\"))\n {\n start++;\n }\n if(operationString.substring(k,k+1).equals(\")\"))\n {\n end++;\n }\n k++;\n }\n PrintStream oldOut=System.out;\n String recTemp;\n ByteArrayOutputStream baos=new ByteArrayOutputStream();\n PrintStream ps=new PrintStream(baos);\n System.setOut(ps);\n recursion(operationString.substring(i,k),++countOperation);\n recTemp=baos.toString();\n System.setOut(oldOut);\n symbols.add(recTemp);\n i=k;\n }\n }\n\n for (int i=0; i<symbols.size(); i++)\n {\n if (symbols.get(i).startsWith(\"s\"))\n {\n symbols.set(i,\"\"+Math.sin(Double.parseDouble(symbols.remove(i+1))*Math.PI/180));\n }\n if (symbols.get(i).startsWith(\"t\"))\n {\n symbols.set(i,\"\"+Math.tan(Double.parseDouble(symbols.remove(i+1))*Math.PI/180));\n }\n if (symbols.get(i).startsWith(\"c\"))\n {\n symbols.set(i,\"\"+Math.cos(Double.parseDouble(symbols.remove(i+1))*Math.PI/180));\n }\n }\n for (int i=0; i<symbols.size();)\n {\n if (symbols.get(i).equals(\"^\"))\n {\n symbols.set(i-1, Math.pow(Double.parseDouble(symbols.get(i - 1)), Double.parseDouble(symbols.get(i + 1))) + \"\");\n symbols.remove(i);\n symbols.remove(i);\n i--;\n }\n i++;\n }\n for (int i=0; i<symbols.size();)\n {\n if (symbols.get(i).equals(\"/\"))\n {\n symbols.set(i-1, Double.parseDouble(symbols.get(i - 1))/Double.parseDouble(symbols.get(i + 1)) + \"\");\n symbols.remove(i);\n symbols.remove(i);\n i--;\n }\n if (symbols.get(i).equals(\"*\"))\n {\n symbols.set(i-1, Double.parseDouble(symbols.get(i - 1))*Double.parseDouble(symbols.get(i + 1)) + \"\");\n symbols.remove(i);\n symbols.remove(i);\n i--;\n }\n i++;\n }\n for (int i=0; i<symbols.size(); i++)\n {\n if (symbols.get(i).equals(\"-\"))\n {\n symbols.set(i,\"-\"+symbols.remove(i+1));\n }\n if (symbols.get(i).equals(\"+\"))\n {\n symbols.remove(i);\n i--;\n }\n }\n double answer=0;\n for (String s:symbols)\n {\n answer=answer+Double.parseDouble(s);\n }\n result=answer+\"\";\n countOperation--;\n }\n else\n {\n //отбрасываем начальные и конечные скобки\n operationString=operationString.substring(1,operationString.length()-1);\n PrintStream oldOut=System.out;\n ByteArrayOutputStream baos=new ByteArrayOutputStream();\n PrintStream ps=new PrintStream(baos);\n System.setOut(ps);\n recursion(operationString,++countOperation);\n result=baos.toString();\n System.setOut(oldOut);\n }\n if (countOperation==0)\n {\n System.out.println(result+\" \"+numberOfOperations);\n }\n else\n {\n System.out.println(result);\n }\n }", "public String toString(int level) {\n\t\tStringBuilder builder = new StringBuilder();\n\t\tfor (int i = 0; i < level; i++) {\n\t\t\tbuilder.append(\"\\t\");\n\t\t}\n\t\tbuilder.append(getName()).append(\" (\").append(getWeight()).append(\") (\").append(getTotalWeight()).append(\")\\n\");\n\t\tfor (Program child : getChildren()) {\n\t\t\tbuilder.append(child.toString(level + 1));\n\t\t}\n\t\treturn (builder.toString());\n\t}", "public static String printTree()\n {\n \tString tree = \"\";\n ArrayList<String> letters = converter.toArrayList();\n for(int i = 0; i < letters.size(); i++)\n {\n tree += letters.get(i);\n if(i + 1 < letters.size())\n \t tree += \" \";\n }\n \n return tree;\n }", "public String tree2Str(TreeNode t){\n\t\tif(t == null)\n\t\t\treturn \"\";\n\t\t\n\t\tStack<TreeNode> stack = new Stack<>();\n\t\tstack.push(t);\n\t\t\n\t\tSet<TreeNode> visited = new HashSet<>();\n\t\tStringBuilder s = new StringBuilder();\n\t\twhile(!stack.isEmpty()){\n\t\t\tt = stack.peek();\n\t\t\t\n\t\t\tif(visited.contains(t)){\n\t\t\t\tstack.pop();\n\t\t\t\ts.append(\")\");\n\t\t\t}else{\n\t\t\t\tvisited.add(t);\n\t\t\t\ts.append(\"(\" + t.data);\n\t\t\t\tif(t.left == null && t.right != null){\n\t\t\t\t\ts.append(\"()\");\n\t\t\t\t}\n\t\t\t\tif(t.right != null){\n\t\t\t\t\tstack.push(t.right);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(t.left != null){\n\t\t\t\t\tstack.push(t.left);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn s.substring(1, s.length()-1);\n\t}", "private void prefix(ExpressionNodes root, StringBuilder sb)\n\t {\n\t \t\n\t \t// add the string of this node to the the string builder \n\t \tsb.append(root.data);\n\t \t\n\t \t// add a space in between nodes for clarity.\n\t \tsb.append(\" \");\n\t \t\n\t \tif (root.left != null) // if there is a left child\n\t \t{ \n\t \t\tprefix(root.left, sb); // run recursive method \n\t \t}\n\t \t\n\t \tif (root.right != null) // if there is a right child\n\t \t{ \n\t \t\tprefix(root.right, sb); // run recursive method \n\t \t}\n\t \t\n\t }", "private String recursiveDescription(int withTabCount) {\n String indent = \"\";\n for (int i = 0; i < withTabCount; i++) {\n indent += \"\\t\";\n }\n\n String result = indent + toString() + \"\\n\";\n if (hasChildren) {\n for (QuadtreeNode node : children) {\n result += node.recursiveDescription(withTabCount + 1);\n }\n }\n\n return result;\n }", "void indent(final StringBuilder xml, final int level) {\n if (INDENT != null) {\n for (int i = 0; i < level; i++)\n xml.append(INDENT);\n }\n }", "public String toString(int indent) {\n //Environment env\t= Environment.getInstance();\n //if(env.isabelle()){return toIsabelleString(indent);};\n\n StringBuffer sb = new StringBuffer();\n\n printSpace(indent, sb);\n\n if (qualifier != null) {\n sb.append(qualifier.toString());\n }\n\n if (name != null) {\n sb.append(name.toString());\n }\n\n if (argument != null) {\n sb.append(\"[\" + argument.toString() + \"]\");\n }\n\n return sb.toString();\n }", "public Indent(String indent_string, int level)\n {\n _indent_string = indent_string;\n _level = level;\n calculateIndentationString();\n }", "@Override\n\tpublic TreeNode buildTree(String[] exp) {\n\t\tStack<TreeNode> stk = new Stack<TreeNode>();\n\t\tTreeNode tmpL, tmpR, tmpRoot;\n\t\tint i;\n\n\t\tfor(String s: exp) {\n\t\t\tif(s.equals(EMPTY))\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\ttry {\n\t\t\t\ti = Integer.parseInt(s);\n\t\t\t\tstk.push(new TreeNode(EMPTY + i));\n\t\t\t}\n\t\t\tcatch (NumberFormatException n) {\n\t\t\t\ttmpR = stk.pop();\n\t\t\t\ttmpL = stk.pop();\n\t\t\t\ttmpRoot = new TreeNode(s, tmpL, tmpR);\n\t\t\t\tstk.push(tmpRoot);\n\t\t\t}\n\t\t}\n\n\t\treturn stk.pop();\n\n\t}", "public String expressionExpand(String s) {\n if (s == null) {\n return \"\";\n }\n Stack<StringBuilder> stk = new Stack<>();\n stk.push(new StringBuilder());\n for (int i = 0; i < s.length(); i++) {\n if (Character.isDigit(s.charAt(i))) {\n int j = i + 1;\n while (j < s.length() && Character.isDigit(s.charAt(j))) {\n j++;\n }\n String num = s.substring(i, j);\n stk.push(new StringBuilder(num));\n stk.push(new StringBuilder());\n i = j; // skip [\n } else if (Character.isLetter(s.charAt(i))) {\n stk.peek().append(s.charAt(i));\n } else if (s.charAt(i) == ']') {\n StringBuilder next = stk.pop();\n int num = Integer.valueOf(stk.pop().toString());\n while (num > 0) {\n stk.peek().append(next);\n num--;\n }\n }\n }\n return stk.pop().toString();\n }", "private void toStringHelper(StringBuffer buffer, int level)\n {\n\t for ( int i = 0; i < level; i++ )\n\t buffer.append(\" \");\n\t \n\t if ( this.operator != null )\n buffer.append(\"opcode:\" + this.operator + \" \");\n\t \n\t if ( this.arity != null )\n\t buffer.append(\"Arity: \" + this.arity.m_minimum + \":\" + this.arity.m_maximum + \" \");\n \n\t if ( finiteCostMatch != null )\n\t buffer.append(\"cost:\" + finiteCostMatch + \" \");\n\t \n for ( JBurgPatternMatcher matcher: this.subPatterns )\n {\n buffer.append(\"\\n\");\n matcher.toStringHelper(buffer, level+1);\n }\n \n buffer.append(\"\\n\");\n\n }", "public String toString() {\n if (root == null) {\n return (treeName + \" Empty tree\\n\");\n } else {\n String space = \"\";\n return treeName + \"\\n\" + toStringRecur(root.right, space) + \"\\n\" + root.element +\n \"[No Parent so sad]\" + toStringRecur(root.left, space) + \"\\n\";\n }\n }", "private void postfix(ExpressionNodes root, StringBuilder sb)\n\t {\n\t \tif (root.left != null) // if there is a left child\n\t \t{ \n\t \t\tpostfix(root.left, sb); // run recursive method\n\t \t}\n\t \t\n\t \tif (root.right != null) // if there is a right child\n\t \t{ \n\t \t\tpostfix(root.right, sb); // run recursive method \n\t \t}\n\t \t\n\t \t// add the string of this node to the the string builder \n\t \tsb.append(root.data);\n\t \t\n\t \t// add a space in between nodes for clarity.\n\t \tsb.append(\" \");\n\t }", "protected static String indent()\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i=0; i<toStringIndent; i++) sb.append(\" \");\n\t\treturn sb.toString();\n\t}", "public String infix()\n\t {\n\t \t// create an empty string builder // \n\t \tStringBuilder sb = new StringBuilder();\n\t \t\n\t \t// fill the string builder//\n\t \tinfix(root, sb);\n\t \t\n\t \treturn sb.toString().trim();\n\t }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n Stack<StackItem> stack = new Stack<>();\n List<MenuItem> items = this.items;\n Collections.reverse(items);\n for (MenuItem i : items) {\n stack.push(new StackItem(i, 0));\n }\n while (stack.size() != 0) {\n StackItem stackItem = stack.pop();\n sb.append(this.getMenuItemRepresentation(stackItem.getMenuItem().toString(), stackItem.getLevel()));\n List<MenuItem> childs = stackItem.getMenuItem().getChilds();\n Collections.reverse(childs);\n for (MenuItem child : childs) {\n stack.push(new StackItem(child, stackItem.getLevel() + 1));\n }\n }\n return sb.toString();\n }", "@Override\n public String toString() {\n Helpers f = new Helpers();\n Expression left = super.getLeft();\n Expression right = super.getRight();\n\n if (super.isBonus()) {\n // x * y -> xy\n if (left instanceof Var && right instanceof Var) {\n return \"(\" + left.toString() + \"\" + right.toString() + \")\";\n }\n // 4 * x -> 4x\n if (right instanceof Var) {\n return \"(\" + left.toString() + \"\" + right.toString() + \")\";\n }\n // x * 4 -> 4x\n if (left instanceof Var) {\n return \"(\" + right.toString() + \"\" + left.toString() + \")\";\n }\n // 4 * (x^2) -> 4(x^2)\n if (right instanceof Pow) {\n return \"(\" + left.toString() + \"\" + right.toString() + \")\";\n }\n // 4 * (xy) -> 4xy\n if (right instanceof Mult) {\n if (((Mult) right).getLeft() instanceof Var && ((Mult) right).getRight() instanceof Var) {\n return \"(\" + left.toString() + \"\" + f.removeOuterParentheses(right.toString()) + \")\";\n }\n }\n }\n return \"(\" + left.toString() + \" * \" + right.toString() + \")\";\n }", "public String toString() {\n return \"(\" + getExpLeft().toString() + \" * \" + getExpRight().toString() + \")\";\n }", "public String convert(ArithmeticExpression expression)\n {\n String expressionString = expression.getExpression();\n String convertedExpression = \"\";\n Stack<String> OpStack = new Stack<>();\n\n int startIndex = 0;\n while(startIndex < expressionString.length())\n {\n if(isOperand(nextToken(expressionString,startIndex)))\n {\n convertedExpression += nextToken(expressionString,startIndex);\n convertedExpression += \" \";\n\n }\n if(Brackets.isLeftBracket(nextToken(expressionString,startIndex)))\n {\n OpStack.push(nextToken(expressionString,startIndex));\n }\n if(Brackets.isRightBracket(nextToken(expressionString,startIndex)))\n {\n String topOp = OpStack.pop();\n while(!Brackets.isLeftBracket(topOp))\n {\n convertedExpression += topOp;\n convertedExpression += \" \";\n topOp = OpStack.pop();\n }\n }\n if(Operator.isOperator(nextToken(expressionString,startIndex)))\n {\n Operator temp = Operator.of(nextToken(expressionString,startIndex));\n if(OpStack.isEmpty())\n {\n OpStack.push(nextToken(expressionString, startIndex));\n }\n else\n {\n Operator topOp = Operator.of(OpStack.peek());\n while (topOp.getRank() <= temp.getRank())\n {\n convertedExpression += OpStack.pop();\n convertedExpression += \" \";\n topOp = Operator.of(OpStack.peek());\n }\n OpStack.push(nextToken(expressionString, startIndex));\n\n }\n }\n if(isOperand(nextToken(expressionString,startIndex)))\n startIndex += nextToken(expressionString,startIndex).length();\n else\n startIndex++;\n }\n while(!OpStack.isEmpty())\n {\n convertedExpression += OpStack.pop();\n convertedExpression += \" \";\n }\n return convertedExpression;\n }", "protected String getParenthesesContent(String expression, int begin) {\r\n\t\t\r\n\t\tStack<Character> stack = new Stack<>();\r\n\t\tfor(int end = begin;end < expression.length(); end++) {\r\n\t\t\tCharacter c = expression.charAt(end);\r\n\t\t\tif(c == '(') {\r\n\t\t\t\tstack.push('(');\r\n\t\t\t} else if(c == ')') {\r\n\t\t\t\tstack.pop();\r\n\t\t\t\tif(stack.empty()) {\r\n\t\t\t\t\treturn expression.substring(begin+1, end);\r\n\t\t\t\t} \r\n\t\t\t}\r\n\t\t}\r\n\t\treturn \"\";\t\t\r\n\t}", "public String toString(String indent) {\n\t\treturn indent + \"RangeLitNode\";\n\t}", "public String asString(int indent, int increment) {\n\n StringBuffer sb = new StringBuffer();\n\n printSpace(indent, sb);\n sb.append(\"CartProdTy\\n\");\n\n if (fields != null) {\n sb.append(fields.asString(indent + increment, increment));\n }\n\n return sb.toString();\n }", "@Override\n\tprotected String toMips(Scope symbolTable, String indent) {\n\t\tStringBuilder build = new StringBuilder(indent).append(\"#SubProgramHeadNode\\n\");\n\n\t\t//load ptr to previous stack's head to pick up values\n\t\tbuild.append(indent).append(\"lw $t0, 8($sp)\\n\");\n\t\tbuild.append(indent).append(\"lw $t0, ($t0)\\n\");\n\n\t\t//iterate across arguments\n\t\tfor (int i = 0; i < arguments.length; i++) {\n\t\t\tbuild.append(indent).append(\"lw $t1, \").append((i + 1) * 4).append(\"($t0)\\t#get loaded value from stack\\n\");\n\t\t\tbuild.append(indent).append(\"sw $t1, \").append(symbolTable.getMemoryOffset(arguments[i])).append(\"($sp)\\t#save word in correct spot (hopefully?)\\n\");\t//This is done in SubProgramNode constructor\n\t\t}\n\n\t\treturn build.toString();\n\t}", "public String\n generate\n (\n boolean first, \n boolean last, \n int level \n ) \n throws GenerateException \n {\n StringBuilder buf = new StringBuilder();\n\n buf.append(openScope(first, level)); \n \n LinkedList<Comparable> missingKeys = null;\n if(!pChildren.isEmpty()) {\n BaseGenerator firstChild = pChildren.get(pChildren.firstKey());\n\n LinkedList<Comparable> ordered = null;\n try {\n ordered = firstChild.getCellPolicy().validateAndOrder(getChildKeys());\n }\n catch(GenerateException ex) {\n throw new GenerateException\n (toString() + \"\\n\" + ex.getMessage()); \n }\n\n Comparable firstKey = ordered.getFirst();\n Comparable lastKey = ordered.getLast();\n for(Comparable key : ordered) {\n BaseGenerator child = pChildren.get(key);\n try {\n buf.append(child.generate(key.equals(firstKey), key.equals(lastKey), level+1));\n }\n catch(GenerateException ex) {\n throw new GenerateException\n (toString() + \" -> \" + ex.getMessage()); \n }\n }\n }\n\n buf.append(closeScope(last, level)); \n\n return buf.toString();\n }", "String printtree(Nod n, int increment) {\n\t\tString s = \" \";\n\t\tString inc = \" \";\n\t\tfor (int i = 0; i < increment; i++) {\n\t\t\tinc += \" \";\n\t\t}\n\t\ts = inc + n.cuvant + \" \" + n.pozitii.toString();\n\t\tfor (Nod fru : n.frunze) {\n\t\t\tif (fru.cuvant.equals(\"%\") != true)\n\t\t\t\ts += \"\\n\" + fru.printtree(fru, increment + indent);\n\t\t}\n\t\treturn s;\n\t}", "private static void render(String s)\n {\n if (s.equals(\"{\"))\n {\n buf_.append(\"\\n\");\n indent();\n buf_.append(s);\n _n_ = _n_ + INDENT_WIDTH;\n buf_.append(\"\\n\");\n indent();\n }\n else if (s.equals(\"(\") || s.equals(\"[\"))\n buf_.append(s);\n else if (s.equals(\")\") || s.equals(\"]\"))\n {\n backup();\n buf_.append(s);\n buf_.append(\" \");\n }\n else if (s.equals(\"}\"))\n {\n int t;\n _n_ = _n_ - INDENT_WIDTH;\n for(t=0; t<INDENT_WIDTH; t++) {\n backup();\n }\n buf_.append(s);\n buf_.append(\"\\n\");\n indent();\n }\n else if (s.equals(\",\"))\n {\n backup();\n buf_.append(s);\n buf_.append(\" \");\n }\n else if (s.equals(\";\"))\n {\n backup();\n buf_.append(s);\n buf_.append(\"\\n\");\n indent();\n }\n else if (s.equals(\"\")) return;\n else\n {\n buf_.append(s);\n buf_.append(\" \");\n }\n }", "public interface Expression {\n \n enum ExpressivoGrammar {ROOT, SUM, PRODUCT, TOKEN, PRIMITIVE_1, PRIMITIVE_2, \n NUMBER, INT, DECIMAL, WHITESPACE, VARIABLE};\n \n public static Expression buildAST(ParseTree<ExpressivoGrammar> concreteSymbolTree) {\n \n if (concreteSymbolTree.getName() == ExpressivoGrammar.DECIMAL) {\n /* reached a double terminal */\n return new Num(Double.parseDouble(concreteSymbolTree.getContents())); \n }\n\n else if (concreteSymbolTree.getName() == ExpressivoGrammar.INT) {\n /* reached an int terminal */\n return new Num(Integer.parseInt(concreteSymbolTree.getContents()));\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.VARIABLE) {\n /* reached a terminal */\n return new Var(concreteSymbolTree.getContents());\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.ROOT || \n concreteSymbolTree.getName() == ExpressivoGrammar.TOKEN || \n concreteSymbolTree.getName() == ExpressivoGrammar.PRIMITIVE_1 || \n concreteSymbolTree.getName() == ExpressivoGrammar.PRIMITIVE_2 || \n concreteSymbolTree.getName() == ExpressivoGrammar.NUMBER) {\n \n /* non-terminals with only one child */\n for (ParseTree<ExpressivoGrammar> child: concreteSymbolTree.children()) {\n if (child.getName() != ExpressivoGrammar.WHITESPACE) \n return buildAST(child);\n }\n \n // should never reach here\n throw new IllegalArgumentException(\"error in parsing\");\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.SUM || concreteSymbolTree.getName() == ExpressivoGrammar.PRODUCT) {\n /* a sum or product node can have one or more children that need to be accumulated together */\n return accumulator(concreteSymbolTree, concreteSymbolTree.getName()); \n }\n \n else {\n throw new IllegalArgumentException(\"error in input: should never reach here\");\n }\n \n }\n \n /**\n * (1) Create parser using lib6005.parser from grammar file\n * (2) Parse string input into CST\n * (3) Build AST from this CST using buildAST()\n * @param input\n * @return Expression (AST)\n */\n public static Expression parse(String input) {\n \n try {\n Parser<ExpressivoGrammar> parser = GrammarCompiler.compile(\n new File(\"src/expressivo/Expression.g\"), ExpressivoGrammar.ROOT);\n ParseTree<ExpressivoGrammar> concreteSymbolTree = parser.parse(input);\n \n// tree.display();\n \n return buildAST(concreteSymbolTree);\n \n }\n \n catch (UnableToParseException e) {\n throw new IllegalArgumentException(\"Can't parse the expression...\");\n }\n catch (IOException e) {\n System.out.println(\"Cannot open file Expression.g\");\n throw new RuntimeException(\"Can't open the file with grammar...\");\n }\n }\n \n // helper methods\n public static Expression accumulator(ParseTree<ExpressivoGrammar> tree, ExpressivoGrammar grammarObj) {\n Expression expr = null;\n boolean first = true;\n List<ParseTree<ExpressivoGrammar>> children = tree.children();\n int len = children.size();\n for (int i = len-1; i >= 0; i--) {\n /* the first child */\n ParseTree<ExpressivoGrammar> child = children.get(i);\n if (first) {\n expr = buildAST(child);\n first = false;\n }\n \n /* accumulate this by creating a new binaryOp object with\n * expr as the leftOp and the result as rightOp\n **/\n \n else if (child.getName() == ExpressivoGrammar.WHITESPACE) continue;\n else {\n if (grammarObj == ExpressivoGrammar.SUM)\n expr = new Sum(buildAST(child), expr);\n else\n expr = new Product(buildAST(child), expr);\n }\n }\n \n return expr;\n \n }\n \n // ----------------- problems 3-4 -----------------\n \n public static Expression create(Expression leftExpr, Expression rightExpr, char op) {\n if (op == '+')\n return Sum.createSum(leftExpr, rightExpr);\n else\n return Product.createProduct(leftExpr, rightExpr);\n }\n\n public Expression differentiate(Var x);\n \n public Expression simplify(Map<String, Double> env);\n\n}", "java.lang.String getNested();", "@Override\n\tpublic String visitSubexpr(SubexprContext ctx) {\n\t\t\n\t\tif(ctx.getChildCount()==1)\n\t\t{\n\t\t\treturn visitValue(ctx.value())\t;\t}\n\t\telse\n\t\t{\n\t\t\tString result = \"\";\n\t\t\tresult = \"temp\"+count.count++;\n\t\t\tif(ctx.getChild(1).getText().equals(\"*\"))\n\t\t\t{\n\t\t\t\n\t\t\t\n\t\t\tsb.append(\"MUL \"+visit(ctx.children.get(0))+\" \"+visitValue(ctx.value())+\" \"+ result+\"\\n\");\n\t\t\treturn result;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsb.append(\"DIV \"+visit(ctx.children.get(0))+ \" \"+visitValue(ctx.value())+\" \"+result+\"\\n\");\n\t\t\t\treturn \tresult;\n\t\t\t}\n\t\t}\n\t\n\t}", "private void createStringConcat( AOpExpr node){\n\t\til.append(fi.createNew(\"java.lang.StringBuilder\"));\n \til.append(InstructionConstants.DUP);\n \tnode.getLeft().apply(this); //Load the left string.\n \til.append(fi.createInvoke(\"java.lang.StringBuilder\", \"<init>\", org.apache.bcel.generic.Type.VOID, new org.apache.bcel.generic.Type[] { org.apache.bcel.generic.Type.STRING }, Constants.INVOKESPECIAL));\n \tnode.getRight().apply(this); \n \til.append(fi.createInvoke(\"java.lang.StringBuilder\", \"append\", new org.apache.bcel.generic.ObjectType(\"java.lang.StringBuilder\"), new org.apache.bcel.generic.Type[] { org.apache.bcel.generic.Type.STRING }, Constants.INVOKEVIRTUAL));\n \til.append(fi.createInvoke(\"java.lang.StringBuilder\", \"toString\", org.apache.bcel.generic.Type.STRING, org.apache.bcel.generic.Type.NO_ARGS, Constants.INVOKEVIRTUAL));\n\t}", "public StatementParse reconstructTree(ArrayList<StatementParse> expression){\n // an empty expression will not trigger this method\n // first element is always an integer\n StatementParse left_node = expression.get(0);\n\n for (int i = 1; i < expression.size(); i++){\n StatementParse right_node = expression.get(i);\n if (right_node instanceof IntegerParse && ((IntegerParse) right_node).getValue() == 0){\n continue;\n }\n StatementParse top;\n if (right_node.isNegative()){\n top = new StatementParse(\"-\");\n } else {\n top = new StatementParse(\"+\");\n }\n top.getChildren().add(left_node);\n top.getChildren().add(right_node);\n left_node = top;\n }\n return left_node;\n }", "public Element compileExpression() {\n\t\tElement ele = null;\n\t\tString token, tokenType;\n\t\tboolean op;\n\t\tboolean oper = false;\n\t\tString command = \"\";\n\t\tElement expressionParent = document.createElement(\"expression\");\n\n\t\t// if the term-op-term-op cycle breaks, that means its the end of the expression\n\t\tdo {\n\n\t\t\t// At least one term\n\t\t\texpressionParent.appendChild(compileTerm());\n\t\t\t\n\t\t\t//If an operand has been encountered, then can write the command as it is postfix\n\t\t\tif (oper) {\n\t\t\t\twriter.writeCommand(command);\n\t\t\t}\n\t\t\tjackTokenizer clone = new jackTokenizer(jTokenizer);\n\t\t\tclone.advance();\n\t\t\ttoken = clone.presentToken;\n\n\t\t\t// zero or more ops\n\t\t\tif (token.matches(\"\\\\+|-|\\\\*|/|\\\\&|\\\\||<|=|>|~\")) {\n\t\t\t\toper = true;\n\n\t\t\t\tswitch (token) {\n\t\t\t\tcase \"+\":\n\t\t\t\t\tcommand = \"add\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"-\":\n\t\t\t\t\tcommand = \"sub\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"*\":\n\t\t\t\t\tcommand = \"call Math.multiply 2\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"/\":\n\t\t\t\t\tcommand = \"call Math.divide 2\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"<\":\n\t\t\t\t\tcommand = \"lt\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \">\":\n\t\t\t\t\tcommand = \"gt\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"=\":\n\t\t\t\t\tcommand = \"eq\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"&\":\n\t\t\t\t\tcommand = \"and\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"|\":\n\t\t\t\t\tcommand = \"or\";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\texpressionParent.appendChild(ele);\n\t\t\t\tjTokenizer.advance();\n\t\t\t\top = true;\n\t\t\t} else {\n\t\t\t\top = false;\n\t\t\t}\n\t\t} while (op);\n\n\t\treturn expressionParent;\n\t}", "public static void parens_helper(String s, int open, int closed) {\n if(open == 0 && closed == 0) {\n System.out.println(s);\n return;\n }\n if(open > 0) {\n parens_helper(s+\"(\", open-1, closed);\n }\n if(open<closed) {\n parens_helper(s+\")\", open, closed-1);\n }\n }", "private void print( org.antlr.v4.tool.Grammar grammar, ParseTree tree, String indentStep, String indent )\n {\n if ( tree != null )\n {\n Object payload = tree.getPayload();\n if ( payload instanceof InterpreterRuleContext )\n {\n String ruleName = grammar.getRule( ((InterpreterRuleContext) payload).getRuleIndex() ).name;\n System.out.println( indent + ruleName );\n }\n else\n {\n System.out.println( indent + \"\\\"\" + tree.getText() + \"\\\"\" );\n }\n for ( int i = 0; i <= tree.getChildCount(); i++ )\n {\n print( grammar, tree.getChild( i ), indentStep, indent + indentStep );\n }\n }\n }", "@Override\r\n\tpublic void buildTree() {\r\n\t\t\r\n\t\t// root level \r\n\t\trootNode = new TreeNode<String>(\"\");\r\n\t\t\r\n\t\t//first level\r\n\t\tinsert(\".\", \"e\");\r\n\t\tinsert(\"-\", \"t\");\r\n\t\t\r\n\t\t//second level\r\n\t\t\r\n\t\tinsert(\". .\", \"i\");\r\n\t\tinsert(\".-\", \"a\");\r\n\t\tinsert(\"-.\", \"n\"); \r\n\t\tinsert(\"--\", \"m\");\r\n\t\t\r\n\t\t//third level\r\n\t\tinsert(\"...\", \"s\");\r\n\t\tinsert(\"..-\", \"u\");\r\n\t\tinsert(\".-.\", \"r\");\r\n\t\tinsert(\".--\", \"w\");\r\n\t\tinsert(\"-..\", \"d\");\r\n\t\tinsert(\"-.-\", \"k\");\r\n\t\tinsert(\"--.\", \"g\");\r\n\t\tinsert(\"---\", \"o\");\r\n\t\t\r\n\t\t//fourth level\r\n\t\tinsert(\"....\", \"h\");\r\n\t\tinsert(\"...-\", \"v\");\r\n\t\tinsert(\"..-.\", \"f\");\r\n\t\tinsert(\".-..\", \"l\");\r\n\t\tinsert(\".--.\", \"p\");\r\n\t\tinsert(\".---\", \"j\");\r\n\t\tinsert(\"-...\", \"b\");\r\n\t\tinsert(\"-..-\", \"x\");\r\n\t\tinsert(\"-.-.\", \"c\");\r\n\t\tinsert(\"-.--\", \"y\");\r\n\t\tinsert(\"--..\", \"z\");\r\n\t\tinsert(\"--.-\", \"q\");\r\n\t\t\r\n\t}", "public String generateXML() \n { \n \n String xml = new String();\n \n String nodetype = new String();\n if (type.equals(\"internal\")){\n nodetype = \"INTERNAL\"; //change this for change in XML node name\n }\n else {\n nodetype = \"LEAF\"; //change this for change in XML node name\n }\n \n xml = \"<\" + nodetype;\n if (!name.equals(\"\")){\n xml = xml + \" name = \\\"\" + name + \"\\\"\";\n }\n if (length >0){\n xml = xml + \" length = \\\"\" + length + \"\\\"\";\n }\n //Section below tests tree size and depths\n // if (level > 0){\n // xml = xml + \" level = \\\"\" + level + \"\\\"\";\n // }\n //if (depth > 0){\n // xml = xml + \" depth = \\\"\" + depth + \"\\\"\";\n //}\n //if (newicklength > 0){\n // xml = xml + \" newicklength = \\\"\" + newicklength + \"\\\"\";\n //}\n // if (treesize > 0){\n // xml = xml + \" treesize = \\\"\" + treesize + \"\\\"\";\n //}\n //if (startxcoord >= 0){\n // xml = xml + \" startx = \\\"\" + startxcoord + \"\\\"\";\n //}\n //if (endxcoord >= 0){\n // xml = xml + \" endx = \\\"\" + endxcoord + \"\\\"\";\n //}\n //Test section done\n xml = xml + \">\";\n \n if (!children.isEmpty()){ //if there are children in this node's arraylist\n Iterator it = children.iterator();\n while(it.hasNext()){\n Node child = (Node) it.next();\n xml = xml + child.generateXML(); //The recursive coolness happens here!\n }\n }\n xml = xml + \"</\" + nodetype + \">\";\n \n return xml;\n }", "public String preorderTraverse(){\r\n\t\t\r\n\t\t//the recursive call to the private method\r\n\t\t//StringBuffer is used because it is passed by reference\r\n\t\t//StringBuffer can be changed in recursive calls\r\n\t\treturn preorderTraverse(this, new StringBuffer(\"\"));\r\n\t}", "public void printTree() {\r\n\t if (expressionRoot == null) {\r\n\t return;\r\n\t }\r\n if (expressionRoot.right != null) {\r\n printTree(expressionRoot.right, true, \"\");\r\n }\r\n System.out.println(expressionRoot.data);\r\n if (expressionRoot.left != null) {\r\n printTree(expressionRoot.left, false, \"\");\r\n }\r\n }", "public static void main(String[] args) {\n int n = 1;\n System.out.println(\"With 1:\");\n createParenthesis(n*2, 0, \"\");\n System.out.println(\"With 2:\");\n n = 2;\n createParenthesis(n*2, 0, \"\");\n System.out.println(\"With 3:\");\n n = 3;\n createParenthesis(n*2, 0, \"\");\n System.out.println(\"With 4:\");\n n = 4;\n createParenthesis(n*2, 0, \"\");\n System.out.println(\"With 10:\");\n n = 10;\n createParenthesis(n*2, 0, \"\");\n }", "@Override\n\tpublic String toString() {\n\t\t//Invert the Stack by pushing Nodes to a new Stack\n\t\tMyStack<T> invertedStack = new MyStack<T>(this.size());\n\t\twhile(!this.isEmpty()) {\n\t\t\tinvertedStack.push(this.pop());\n\t\t}\n\t\t\n\t\t//Create empty String for returning\n\t\tString returnString = \"\";\n\t\t\n\t\t//Create an iterator for traversing the Stack\n\t\tNode iteratorNode = invertedStack.topNode;\n\t\t\n\t\t//Traverse the Stack and append the individual data Strings to the return String\n\t\tfor(int i = 0; i < invertedStack.size(); i++) {\n\t\t\treturnString += iteratorNode.data.toString();\n\t\t\titeratorNode = iteratorNode.nextNode;\n\t\t}\n\t\t\n\t\t//Restore the original Stack so that it isn't destroyed\n\t\twhile(!invertedStack.isEmpty()) {\n\t\t\tthis.push(invertedStack.pop());\n\t\t}\n\t\t\n\t\t//Return the finished String to the function caller\n\t\treturn returnString;\n\t}", "public String toString(Node<E> current, int i) {\n\t\tStringBuilder s = new StringBuilder();\n\t\tfor (int j = 0; j < i; j++) {\n\t\t\ts.append(\"---\");\n\t\t}\n\t\tif (current == null) {\n\t\t\ts.append(\"null\");\n\t\t\treturn s.toString();\n\t\t}\n\t\ts.append(current.data.toString());\n\t\ts.append(\"\\n\");\n\t\ts.append(toString(current.left, i + 1));\n\t\ts.append(\"\\n\");\n\t\ts.append(toString(current.right, i + 1));\n\t\ts.append(\"\\n\");\n\t\treturn s.toString();\n\t}", "void makeTree()\n \t{\n \t\t\t \n \t\tobj.insert(5,\"spandu\");\n \tobj.insert(4,\"anshu\");\n \tobj.insert(3,\"anu\");\n \tobj.insert(6,\"himani\");\n \t\t\n \t}", "@Override\n public String toString() {\n return ((leftChild != null) ? leftChild : \"\")\n + text + \"\\n\"\n + ((rightChild != null) ? rightChild : \"\");\n }", "@Override\n public String toString() { return '(' + left.toString() + ' ' + operation.toString() + ' ' + right.toString() + ')'; }", "@Override\n public String toString() { return '(' + left.toString() + ' ' + operation.toString() + ' ' + right.toString() + ')'; }", "public String toString(){ \r\n\t\t// commented out XP line\r\n\t\t// is a different version of printing out the xp\r\n\t\t// that sets each interval to a [0 - bracket limit for that level].\r\n\t\t// for example, if creature levels up to 2 with exactly 200xp (0xp --> 200xp), \r\n\t\t// with the cumulative xp being 200xp\r\n\t\t// it would display 0/275\r\n\t\t// likewise, if that same creature got an additional 280xp (0-->280) added to its total\r\n\t\t// it would display 5xp/350xp\r\n\r\n\t\tif(this.getIsSpecial()){\r\n\t\t\treturn \"Level \" + this.getLevel() + \" \" + this.species +\r\n\t\t\t\t\t\"\\n+++++++++++++++\" + \r\n\t\t\t\t\t\"\\n!!! Special !!!\" +\r\n\t\t\t\t\t\"\\nNAME: \" + this.getName() +\r\n\t\t\t\t\t\"\\nHP: \" + this.getHitPoints() + \"/\" + this.getMaxHitPoints() +\r\n\t\t\t\t\t\"\\nATK: \" + this.getAttackRating() + \r\n\t\t\t\t\t\"\\nDEF: \" + this.getDefenseRating() + \r\n\t\t\t\t\t\"\\nXP: \" + this.getExperiencePoints() + \"/\" + calcLevel(1,0) + \r\n\t\t\t\t\t//\"\\nXP: \" + (this.getExperiencePoints() - calcPreviousLevel(1,0)) + \"/\" + (200 + ((this.getLevel()-1) * 75)) + \r\n\t\t\t\t\t\"\\nXP VAL: \" + this.getExperienceValue() + \"\\n\";\r\n\t\t\t\t\t//\"Attacks: \" + printAttacks() + \"\\n\";\r\n\t\t}\r\n\t\treturn \"Level \" + this.getLevel() + \" \" + this.species +\r\n\t\t\t\t\"\\n+++++++++++++++\" + \r\n\t\t\t\t\"\\nNAME: \" + this.getName() +\r\n\t\t\t\t\"\\nHP: \" + this.getHitPoints() + \"/\" + this.getMaxHitPoints() +\r\n\t\t\t\t\"\\nATK: \" + this.getAttackRating() + \r\n\t\t\t\t\"\\nDEF: \" + this.getDefenseRating() + \r\n\t\t\t\t\"\\nXP: \" + this.getExperiencePoints() + \"/\" + calcLevel(1,0) + \r\n\t\t\t\t//\"\\nXP: \" + (this.getExperiencePoints() - calcPreviousLevel(1,0)) + \"/\" + (200 + ((this.getLevel()-1) * 75)) +\r\n\t\t\t\t\"\\nXP VAL: \" + this.getExperienceValue() + \"\\n\";\r\n\t\t\t\t//\"Attacks: \" + printAttacks() + \"\\n\";\r\n\r\n\r\n\r\n\t}", "public String toString() { \r\n\t\tString Sresult = \"(\" + lChild.toString() + \" / \" + rChild.toString() + \")\";\r\n\t\treturn Sresult; \r\n\t}", "private static <QUERY> void outputExpression(QueryDialect_SQL dialect, IEntityModelUtil entityModelUtil, QueryBuilder s, ExecutableQueryExpressions expressions, EFieldAccessType fieldReferenceType, int level, int [] context) {\n\t\t\n\t\tfinal EExpressionType type = expressions.getExpressionType(level, context);\n\t\t\n\t\tswitch (type) {\n\t\tcase FIELD:\n\t\t\t\n\t\t\tfinal CompiledFieldReference fieldReference = expressions.getFieldReference(level, context);\n\t\t\t\n\t\t\tdialect.appendFieldReference(s, prepareFieldReference(dialect, entityModelUtil, fieldReferenceType, fieldReference));\n\t\t\tbreak;\n\t\t\t\n\t\tcase VALUE:\n\t\t\t// TODO: handle this properly, must wrap string literals etc\n\t\t\t\n\t\t\tfinal Comparable<?> value = expressions.getValue(level, context);\n\t\t\t\n\t\t\ts.append(value.toString());\n\t\t\tbreak;\n\t\t\t\n\t\tcase LIST:\n\t\t\ts.append('(');\n\n\t\t\tfinal int num = expressions.getSubCount(level, context);\n\n\t\t\tfor (int i = 0; i < num; ++ i) {\n\n\t\t\t\tif (i > 0) {\n\t\t\t\t\tfinal char opChar;\n\n\t\t\t\t\tfinal Operator operator = expressions.getListOperator(level, context, i - 1);\n\t\t\t\t\t\n\t\t\t\t\tswitch (operator) {\n\t\t\t\t\tcase PLUS: \t\topChar = '+'; break;\n\t\t\t\t\tcase MINUS: \topChar = '-'; break;\n\t\t\t\t\tcase MULTIPLY: \topChar = '*'; break;\n\t\t\t\t\tcase DIVIDE: \topChar = '/'; break;\n\t\t\t\t\t\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tthrow new UnsupportedOperationException(\"Unknown arithmetic operator \" + operator);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\ts.sb.append(' ').append(opChar).append(' ');\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// recurse\n\t\t\t\tcontext[level + 1] = i;\n\n\t\t\t\toutputExpression(dialect, entityModelUtil, s, expressions, fieldReferenceType, level + 1, context);\n\t\t\t}\n\n\t\t\ts.append(')');\n\t\t\tbreak;\n\t\t\t\n\t\tcase FUNCTION:\n\t\t\tfinal FunctionBase function = expressions.getFunction(level, context);\n\t\t\tfinal String functionName = dialect.getFunctionName(function);\n\t\t\t\n\t\t\ts.append(functionName);\n\t\t\ts.append('(');\n\t\t\t\n\t\t\tfinal int numParameters = expressions.getSubCount(level, context);\n\t\t\t\n\t\t\tfor (int i = 0; i < numParameters; ++ i) {\n\t\t\t\t\n\t\t\t\tif (i > 0) {\n\t\t\t\t\ts.append(\", \");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcontext[level + 1] = i;\n\n\t\t\t\t// recurse for param\n\t\t\t\toutputExpression(dialect, entityModelUtil, s, expressions, fieldReferenceType, level + 1, context);\n\t\t\t}\n\t\t\t\n\t\t\ts.append(')');\n\t\t\t\n\t\t\tbreak;\n\t\t\t\n\t\tdefault:\n\t\t\tthrow new UnsupportedOperationException(\"Unknown expression type \" + type);\n\t\t}\n\t\t\n\t}", "public String toString() {\n return m_expression;\n }", "public static void printParentheses(int open,int close,String str) {\n if (open == 0 && close == 0) {\n System.out.println(str);\n return;\n }\n\n if (open > close)\n return;\n\n if (open > 0)\n printParentheses(open-1,close,str+\"(\");\n\n if (close > 0)\n printParentheses(open,close-1,str+\")\");\n }", "public String innerRepresentation() {\n return toStringHelper(this.root, this.depth);\n }", "public Indent(int level)\n {\n this(\" \", level);\n }", "public String asString(int indent, int increment) {\n\n StringBuffer sb = new StringBuffer();\n\n printSpace(indent, sb);\n sb.append(\"VariableArrayExp\\n\");\n\n if (qualifier != null) {\n sb.append(qualifier.asString(indent + increment, increment));\n }\n\n if (name != null) {\n sb.append(name.asString(indent + increment, increment));\n }\n\n if (argument != null) {\n sb.append(argument.asString(indent + increment, increment));\n }\n\n return sb.toString();\n }", "@Override\n\tpublic void printParseTree(String indent) {\n\t\tIO.displayln(indent+indent.length()+\" <fun op> \");\n\t\tif(boro_choto != ' ')\n\t\tIO.displayln(indent+indent.length()+\" \"+boro_choto);\n\t\telse if(soman != \"\")\n\t\tIO.displayln(indent+indent.length()+\" \"+soman);\n\t}", "public String generateNewick() \n { \n \n String newick = new String();\n\n if (type.equals(\"internal\")){\n newick = \"(\";\n }\n \n if (!name.equals(\"\")){\n newick = newick + name;\n }\n \n if (!children.isEmpty()){ //if there are children in this node's arraylist\n Iterator it = children.iterator();\n while(it.hasNext()){\n Node child = (Node) it.next();\n newick = newick + child.generateNewick();\n if(it.hasNext()){\n newick = newick + \",\";\n }\n }\n }\n if (type.equals(\"internal\")){\n newick = newick + \")\";\n }\n if (length >0){\n newick = newick + \":\" + length;\n }\n \n return newick;\n }", "public String toString(int stack) {\n\t\tString stkStr = \"\";\n\t\tint start = stack * stackSize;\n\t\tfor (int i = start; i < start + stackPointer[stack]; i++) {\n\t\t\tstkStr += buffer[i] + \" -> \";\n\t\t}\n\t\tstkStr += \"END\";\n\t\treturn stkStr;\n\t}", "private String calculateHardspaces(int depth) {\n\n\t\t\tString hardspaces = \"\";\n\t\t\tfor (int level = 1; level < depth; level++) {\n\t\t\t\thardspaces += \" \";\n\t\t\t}\n\t\t\treturn hardspaces;\n\t\t}", "@Override\r\n\tpublic String toString() {\r\n\t\tString stackString = \"\";\r\n\t\tfor (T e: stack) {\r\n\t\t\tstackString = stackString +e;\r\n\t\t}\r\n\t\treturn stackString;\r\n}", "public String getExpressionString ()\n {\n return toStringToken ((String) getValue ());\n }", "public List<String> generateParen(int n){\n int count = 0; //cannot be smaller than 0 \n int left = n;\n int right = n;\n List<String> res = new ArrayList<>();\n dfs(left, right, count, \"\", res);\n return res;\n }" ]
[ "0.6119658", "0.6069977", "0.59891057", "0.5945511", "0.58132505", "0.5768415", "0.5749317", "0.572812", "0.5695167", "0.55685884", "0.5537058", "0.5502451", "0.54996246", "0.5451215", "0.537747", "0.5367752", "0.53506273", "0.53195626", "0.5315591", "0.52938986", "0.5291714", "0.5270536", "0.526781", "0.5264421", "0.5242445", "0.5195157", "0.5192005", "0.51905113", "0.51556474", "0.51328695", "0.51124626", "0.51112145", "0.5092691", "0.5090748", "0.50694156", "0.50645804", "0.5044075", "0.5036954", "0.5034677", "0.5031401", "0.50218046", "0.49990454", "0.49935663", "0.49902952", "0.49843875", "0.4981867", "0.49774876", "0.49621457", "0.49575168", "0.4955388", "0.4944322", "0.4934096", "0.49336585", "0.49175736", "0.49113733", "0.49111894", "0.49033016", "0.4880004", "0.48790777", "0.48637584", "0.48580393", "0.4828465", "0.48139504", "0.48134112", "0.4792082", "0.4791517", "0.47822356", "0.4778216", "0.47772354", "0.47713906", "0.47709993", "0.4768648", "0.47641295", "0.47621483", "0.47472855", "0.47471866", "0.4744844", "0.47433162", "0.474197", "0.47334445", "0.47330102", "0.47320288", "0.4716823", "0.47123787", "0.47123787", "0.4708129", "0.46993694", "0.469445", "0.4690443", "0.4690087", "0.46893942", "0.46870503", "0.46868953", "0.46776068", "0.46580735", "0.46544948", "0.4651656", "0.46513283", "0.46445367", "0.46407786" ]
0.53696376
15
Helper method for indentation for StirngBuilder
public static void indent(StringBuilder stringBuilder, int indentLevel) { for(int i = 0; i < indentLevel; i++) { stringBuilder.append('\t'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SourceGenerator writeIndent(){\r\n\t\tm_indenter.writeIndent();\r\n\t\treturn this;\r\n\t}", "public void indent()\n {\n indent += 1;\n }", "public TypescriptStringBuilder indent() {\n indent(1);\n return this;\n }", "private String indent(int level) throws IOException {\n return Utility.repeat(\" \", level);\n }", "public int getIndentation()\n {\n return indentation;\n }", "private void indent(StringBuilder sb) {\n for (int i = 0; i < indentLevel; i++) {\n sb.append('\\t');\n }\n }", "protected static String indent()\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i=0; i<toStringIndent; i++) sb.append(\" \");\n\t\treturn sb.toString();\n\t}", "public String toString()\n {\n return getIndentation();\n }", "public void outdent()\n {\n if ( indent > 0 )\n {\n indent -= 1;\n }\n }", "private void startIndentedLine() {\n startLine();\n for (int i = 0; i < indentLevel; i++) {\n out.print(INDENTATION_STRING);\n }\n }", "protected void indentMore() \r\n\t{\r\n\tindent += 3;\r\n\t}", "public void indent() {\n ++tabLevel;\n }", "private static void indent()\r\n {\r\n for (int i = 0; i < indentLevel * 2; i++) {\r\n System.out.print(' ');\r\n }\r\n }", "protected void indentLess() \r\n\t{\r\n\tindent -= 3;\r\n\t}", "public String getIndentation()\n {\n return _indentation;\n }", "private void addIndent() {\r\n if (indentSpace.length() > 0) {\r\n for (int i = 0; i < indent; i++) {\r\n xml.append(indentSpace);\r\n }\r\n }\r\n }", "private ConfigurationHTMLPrinter printIndent() {\n for (int i=0; i<indent; i++) sb.append(\" \");\n return this;\n }", "public void setIndentation(int indentation)\n {\n this.indentation = indentation;\n }", "private void outputIndentation() {\n\t for (int i = 0; i < indent; i++) {\n\t out.print(basicIndent);\n\t }\n\t}", "int getIndentLevel();", "public void outputActualIndentation() {\n\t\tfor (int steps = 1; steps <= indentLevel; steps++) {\n\t\t\toutputJALPrintStream.print(\" \");\n\t\t}\n\t\tif (showMarkerFlag) {\n\t\t\toutputJALPrintStream.print(\"|\");\n\t\t}\n\t}", "private void indent(StringBuffer output, Node node) {\n\t\toutput.append(\"\\n\");\n\t\tString lineNumber = (node == null) ? \"\" : \"[\" + node.getLine() + \"]\";\n\t\toutput.append(String.format(\"%5s \", lineNumber));\n\t\tfor (int i = 0; i < depth; ++i)\n\t\t\toutput.append(\" \");\n\t\toutput.append(\"+-- \");\n\t}", "int getIndentation() {\n return this.indentation;\n }", "void indent(final StringBuilder xml, final int level) {\n if (INDENT != null) {\n for (int i = 0; i < level; i++)\n xml.append(INDENT);\n }\n }", "void setIndentLevel(int level);", "private void ensureIndent() {\n if (addIndentation) {\n writeIndent();\n addIndentation = false;\n }\n }", "private ConfigurationHTMLPrinter incrementIndent() {\n indent++;\n return this;\n }", "public static String tab() {\n return indent;\n }", "private String indent(int spaces) {\n\t\tString result = \"\";\n\t\tfor (int i = 0; i < spaces; i++) {\n\t\t\tresult = result + \" \";// it creates as much spaces as it is told to\n\t\t}\n\t\treturn result;\n\t}", "int getIndentSize();", "public TypescriptStringBuilder unindent() {\n indent(-1);\n return this;\n }", "public void indentMore() {\n\t\tindentLevel += indentStep;\n\t}", "private void writeSpacesCorrespondingToNestedLevel(int nestedLevel) {\n for(int i = 0; i < nestedLevel * 4; i++) {\n writer.print(\" \");\n }\n }", "public void setIndentSize(short indentSize);", "private void indentNewLine(Token<CppTokenId> current){\n if (current.id() == NEW_LINE) {\n return;\n }\n int space;\n Token<CppTokenId> first = ts.lookNextLineImportant();\n if (first != null && (first.id() == CASE ||first.id() == DEFAULT)){\n space = getCaseIndent();\n } else {\n space = getIndent();\n }\n if (current.id() == WHITESPACE) {\n ts.replaceCurrent(current, 0, space, true);\n } else {\n ts.addBeforeCurrent(0, space, true);\n }\n }", "public SourceGenerator writeNewline(){\r\n\t\tif (m_style == CodeStyle.PRETTY){\r\n\t\t\tm_writer.append(m_newline);\r\n\t\t}\r\n\t\treturn this;\r\n\t}", "@Override\n\tpublic void print(int indent) {\n\t}", "protected void addIndentation(PrintWriter p, int indent) {\n for (int k = 0; k < indent; k++) p.print(\" \");\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/* */ }", "protected String getIndent() \r\n\t{\r\n\tStringBuffer buffer = new StringBuffer();\r\n\tfor (int i = 0; i < indent; ++i)\r\n\t\tbuffer.append(' ');\r\n\treturn buffer.toString();\r\n\t}", "public void indentLess() {\n\t\tindentLevel -= indentStep;\n\t}", "public TypescriptStringBuilder indent(final int amount) {\n return setIndentLevel(indentLevel + amount);\n }", "public static final void indent(final StringBuilder buf, int level)\n {\n while (level > 0)\n {\n buf.append(\" \");\n --level;\n }\n }", "protected void indent(Writer out, int level) throws IOException {\r\n if (currentFormat.newlines) {\r\n if (currentFormat.indent == null ||\r\n currentFormat.indent.equals(\"\")) {\r\n return;\r\n }\r\n\r\n for (int i = 0; i < level; i++) {\r\n out.write(currentFormat.indent);\r\n }\r\n }\r\n }", "public String getIndentationString() {\n String result = (String) getTextBuffer().getProperty(PTextBuffer.INDENTATION_PROPERTY);\n if (result == null) {\n result = \"\\t\";\n }\n return result;\n }", "public void output(IndentedWriter out) \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.7074311", "0.7000415", "0.6993157", "0.6912986", "0.6736929", "0.6736922", "0.67366517", "0.6707755", "0.6705961", "0.6674937", "0.6666642", "0.6586866", "0.6526474", "0.64832157", "0.6480764", "0.64304495", "0.64287937", "0.63570166", "0.63490355", "0.63135415", "0.6303705", "0.6274576", "0.62593925", "0.6219179", "0.6176688", "0.61528254", "0.61469984", "0.61155146", "0.61001915", "0.6085563", "0.60784316", "0.6056133", "0.6053515", "0.6051586", "0.60340416", "0.6001182", "0.5978826", "0.5963232", "0.593207", "0.5926155", "0.5815701", "0.5813582", "0.58122987", "0.5809737", "0.58024454", "0.57973003", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039", "0.576039" ]
0.57763
46
Returns the expression's parent
public CompoundExpression getParent() { return _parent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CompoundExpression getParent (){\n return _parent;\n }", "public ASPMSyntaxElement getParent() {\n\t\treturn parent;\n\t}", "protected LambdaTerm getParent() { return parent; }", "static AST getChainParent(JavaNode node)\n {\n JavaNode parent = node.getParent();\n\n switch (parent.getType())\n {\n case JavaTokenTypes.EXPR :\n\n /**\n * @todo maybe more operators make sense?\n */\n case JavaTokenTypes.PLUS :\n //case JavaTokenTypes.NOT_EQUAL:\n //case JavaTokenTypes.EQUAL:\n return getChainParent(parent);\n\n default :\n return parent;\n }\n }", "public String getParent() {\n return _theParent;\n }", "public abstract OperatorImpl getParent();", "@Override\n\tpublic ASTNode getParent() {\n\t\treturn this.parent;\n\t}", "public VisualLexiconNode getParent() {\n \t\treturn parent;\n \t}", "@Override\n\tpublic WhereNode getParent() {\n\t\treturn parent;\n\t}", "public String getParent() {\n return parent;\n }", "public String getParent() {\r\n return parent;\r\n }", "public String getParent() {\r\n return this.parent;\r\n }", "Object getParent();", "public String getParent() {\n return _parent;\n }", "public SqlFromSubSelect getParent() {\n return parent;\n }", "public SeleniumQueryObject parent() {\n\t\treturn ParentFunction.parent(this);\n\t}", "private static Container resolveParent(ContainerOperator contOper) {\n if(contOper.getParent() == null) {\n return (Container)contOper.getSource();\n } else {\n return contOper.getParent();\n }\n }", "public ParseTreeNode getParent() {\r\n return _parent;\r\n }", "public int Parent() { return this.Parent; }", "public PlanNode getParent() {\n return parent;\n }", "public String getParentCall() {\n return parentCall;\n }", "public int getParent();", "public Object getParent() {\r\n return this.parent;\r\n }", "IGLProperty getParent();", "public Object getParent() {\n return this.parent;\n }", "public Object getParent() {\n return this.parent;\n }", "public Object getParent() {\n return this.parent;\n }", "java.lang.String getParent();", "java.lang.String getParent();", "public EventNode getParent() {\n\t\treturn parent;\n\t}", "public final Cause<?> getParent() {\n return parent;\n }", "Node<T> parent();", "public XMLPath getParent() {\r\n return this.parent == null ? null : this.parent.get();\r\n }", "public Instance getParent() {\r\n \t\treturn parent;\r\n \t}", "public CommitNode parent() {\r\n\t\treturn parentCommit;\r\n\t}", "public Object getParent()\n {\n return traversalStack.get(traversalStack.size() - 2);\n }", "public String getParentName() {\n return getProperty(Property.PARENT_NAME);\n }", "public Foo getParent() {\n return parent;\n }", "public String getParent() {\r\n return (String) getAttributeInternal(PARENT);\r\n }", "public ILexComponent getParent();", "public IPSComponent peekParent();", "public PropertySelector getParent() {\n return parent;\n }", "public SpacialPattern getParent() {\n\t\treturn parent;\n\t}", "Spring getParent() {\n return parent;\n }", "public Optional<Cause> getParent() {\n return this.parent;\n }", "public Cause getParent() {\n\t\tif (this.equals(this.rcaCase.problem)) {\n\t\t\treturn null;\n\t\t} else if (this.effectRelations.size() > 0) {\n\t\t\treturn ((Relation) this.effectRelations.toArray()[0]).causeTo;\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public XMLElement getParent()\n/* */ {\n/* 323 */ return this.parent;\n/* */ }", "CoreParentNode coreGetParent();", "@VTID(7)\r\n void getParent();", "@NoProxy\n @NoWrap\n @NoDump\n public BwEvent getParent() {\n return parent;\n }", "public OwObject getParent()\r\n {\r\n return m_Parent;\r\n }", "public TestResultTable.TreeNode getParent() {\n return parent;\n }", "public String getParentName() {\n return parentName;\n }", "public abstract Optional<TypeName> parent();", "public Comment getParent () {\n return parentComment;\n }", "public ConversionHelper getParent()\n {\n return parent;\n }", "public Node getParent() {\r\n\t\t\treturn parent;\r\n\t\t}", "public Node getParent() {\r\n\t\t\treturn parent;\r\n\t\t}", "public BinomialTree<KEY, ITEM> parent()\n\t{\n\t\treturn _parent;\n\t}", "public TreeNode getParent ()\r\n {\r\n return parent;\r\n }", "public String getParentName() {\n return parentName;\n }", "public WidgetParent getParent() {\n return this.m_parent;\n }", "public Peak getParent() {\n\t\treturn parent;\n\t}", "public Entity getParent() {\n return parent;\n }", "@VTID(9)\r\n @ReturnValue(type=NativeType.Dispatch)\r\n com4j.Com4jObject getParent();", "public String getParentName() {\n\t\treturn parentName;\n\t}", "public GitCommit getParent() { return _par!=null? _par : (_par=getParentImpl()); }", "public PageTreeNode getParent() {\n return parent;\n }", "public Node getParent() {\n return parent;\n }", "public Node getParent() {\n return parent;\n }", "public String getParentContainerXPath()\n\t{\n\t\treturn this.parentContainerXPath;\n\t}", "public SearchTreeNode getParent() { return parent; }", "public Node getParent();", "public AccessibleElement getParent();", "public String getCodeParent() {\n\t\treturn codeParent;\n\t}", "public TreeNode getParent() { return par; }", "public Node getParent(){\n return parent;\n }", "public E getParentEntity() {\n return parentEntity;\n }", "public void setParent (CompoundExpression parent){\n _parent = parent;\n }", "protected final Context getParent()\n {\n return m_parent;\n }", "public IBuildObject getParent();", "TMNodeModelComposite getParent() {\n return parent;\n }", "public TeachersDomainStandardsNode getParent() {\n\t\treturn parent;\n\t}", "public StructuredId getParent()\r\n {\r\n return parent;\r\n }", "Position<E> parent(Position<E> p) throws IllegalArgumentException;", "public String getParent() {\n Path path = getPathNIO();\n if (path == null) {\n return \"\";\n }\n\n Path parent = Paths.get(this.dataSource).toAbsolutePath().relativize(path.getParent());\n\n return parent.toString();\n }", "public Concept getParent() { return parent; }", "TreeNodeValueModel<T> parent();", "CoreElement coreGetParentElement();", "public TreeNode getParentNode();", "public ProductContainer getParent();", "public SearchNode<S, A> getParent() {\r\n\t\treturn parent;\r\n\t}", "@VTID(9)\n @ReturnValue(type=NativeType.Dispatch)\n com4j.Com4jObject getParent();", "@VTID(9)\n @ReturnValue(type=NativeType.Dispatch)\n com4j.Com4jObject getParent();", "@VTID(9)\n @ReturnValue(type=NativeType.Dispatch)\n com4j.Com4jObject getParent();", "@VTID(9)\n @ReturnValue(type=NativeType.Dispatch)\n com4j.Com4jObject getParent();", "public Glyph getParent() {\n return parent;\n }", "public Glyph getParent() {\n return parent;\n }", "abstract public Container<?> getParent();", "MenuEntry getParent();" ]
[ "0.8334176", "0.72493875", "0.7240001", "0.7176433", "0.71076155", "0.71062183", "0.7059101", "0.7057941", "0.7045941", "0.7040517", "0.70291156", "0.7028553", "0.70195043", "0.69844663", "0.6924769", "0.6923848", "0.68255323", "0.68215865", "0.68128973", "0.6798222", "0.67835647", "0.67623895", "0.67585737", "0.6753763", "0.6749956", "0.6749956", "0.6749956", "0.6747718", "0.6747718", "0.67463195", "0.6735187", "0.66844654", "0.6659831", "0.66574633", "0.6656423", "0.66516155", "0.66511625", "0.6637743", "0.66350293", "0.6628126", "0.6617619", "0.6613545", "0.659057", "0.65861076", "0.6568049", "0.65680254", "0.6567498", "0.65462124", "0.6540928", "0.65325534", "0.65265", "0.6518293", "0.65125865", "0.65116394", "0.6507824", "0.65035325", "0.65023035", "0.65023035", "0.64901704", "0.6483335", "0.6476764", "0.6474601", "0.6467074", "0.646341", "0.6460065", "0.6459921", "0.6456316", "0.64556664", "0.64458716", "0.64458716", "0.6434191", "0.64243424", "0.6410545", "0.6410437", "0.6407969", "0.64057624", "0.63998026", "0.6399639", "0.6399339", "0.63979775", "0.639784", "0.639253", "0.63818413", "0.63671243", "0.6363935", "0.63616556", "0.6358876", "0.6357293", "0.63572043", "0.63496476", "0.63471377", "0.63437474", "0.63352793", "0.63352793", "0.63352793", "0.63352793", "0.6330873", "0.6330873", "0.63251936", "0.6317487" ]
0.8296533
1
Sets the parent to the specified parent expression
public void setParent (CompoundExpression parent) { _parent = parent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setParent (CompoundExpression parent){\n _parent = parent;\n }", "public void setParent(ASPMSyntaxElement parent) {\n\t\tassert this.parent == null;\n\t\tthis.parent = parent;\n\t}", "public CompoundExpression getParent (){\n return _parent;\n }", "<E extends CtElement> E setParent(E parent);", "public void setParent(String parent) {\r\n this.parent = parent;\r\n }", "public CompoundExpression getParent()\r\n\t\t{\r\n\t\t\treturn _parent;\r\n\t\t}", "public void setParent(String aParent) {\n _theParent = aParent;\n }", "void setParent(IGLProperty parent);", "public void setParent(String parent) {\n this.parent = parent;\n }", "public void setParent(String parent) {\n _parent = parent;\n }", "@Override\n\tpublic void setParent(WhereNode parent) {\n\t\tthis.parent = parent;\n\t}", "private void setParent(Node<T> parent) {\n this.parent = parent;\n }", "public void setParent(ASTNeoNode parent) {\r\n \t\tassertTrue(parent != null);\r\n \t\tassertTrue(this.parent == null); // Can only set parent once\r\n \t\tthis.parent = parent;\r\n \t}", "public void setParent(Node parent){\n this.parent = parent;\n }", "public void setParent(Node<T> parent) {\n this.parent = parent;\n }", "void setParent(TestResultTable.TreeNode p) {\n parent = p;\n }", "protected void setParent(CodeItem codeItem) {\n this.parent = codeItem;\n }", "@Override\n\tpublic void setParent(ASTNode node) {\n\t\tthis.parent = node;\n\t\t\n\t}", "public void setParent(Node parent) {\n this.parent = parent;\n }", "public void setParent(final ParseTreeNode parent) {\r\n _parent = parent;\r\n }", "public void setParent(DocxContext<?> parent) {\n\n }", "public void setParent(Instance parent) {\r\n \t\tthis.parent = parent;\r\n \t}", "public void setParent(RationaleElement parent) {\r\n \t\tif (parent != null) {\r\n \t\t\tthis.parent = parent.getID();\r\n \t\t\tthis.ptype = parent.getElementType();\r\n \t\t}\r\n \t}", "public void setParent(Concept _parent) { parent = _parent; }", "@Override\n public void setParent(IStatement _statement) {\n\t this._parent = _statement;\n }", "public void setParent(SearchNode<S, A> parent) {\r\n\t\tthis.parent = parent;\r\n\t}", "protected void setParent(ILanguageElement parent) {\r\n this.parent = parent;\r\n }", "public void setParent(Node newParent) {\r\n\t\t\tparent = newParent;\r\n\t\t}", "public void setParent(AsNode parent) {\n\t\tthis.state.setG(parent.getState().getG() + parent.childCost.get(this));\n\t\tthis.parent = parent;\n\t}", "@Override\n\tpublic WhereNode getParent() {\n\t\treturn parent;\n\t}", "public void setParent(State aParent);", "public ASPMSyntaxElement getParent() {\n\t\treturn parent;\n\t}", "protected LambdaTerm getParent() { return parent; }", "void setParent(TreeNode<T> parent);", "public void setParentOne(int parent)\n\t{\n\t\tparentSetOne = parent;\n\t}", "public void setParent(MenuTree parent){\n this.parentMenuTree = parent;\n }", "@Override\n\tpublic void setParent(TreeNode parent) {\n\t\tthis.parent = parent ;\n\t}", "@Override\n\tpublic void setParent(TreeNode parent) {\n\t\tthis.parent = parent ;\n\t}", "final void setParent(ShapeParent newParent)\n {\n this.parent = newParent;\n }", "public void setParent( PlanNode parent ) {\n removeFromParent();\n if (parent != null) {\n this.parent = parent;\n this.parent.children.add(this);\n }\n }", "public void setParent(ProviderStore parent) {\n this.parent = parent;\n }", "public void setParent(FileNode parent) {\r\n this.parent = parent;\r\n }", "@Override\n\tpublic void setParent(HtmlTag parent){\n\t\tif(parent != null)\n\t\t{\n\t\t\tsetParentInternal(TreeNode.create(parent));\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsetParentInternal(null);\n\t\t}\n\t\tif(!parent.getChildren().contains(this))\n\t\t{\n\t\t\tparent.addChild(this);\t\n\t\t}\n\t}", "public void setParent(ILexComponent parent);", "void setParent(Resource parent)\n {\n this.parent = new ResourceRef(parent, coral);\n if(parent != null)\n {\n \tparentId = parent.getId();\n }\n else\n {\n \tparentId = -1;\n }\n }", "public void setParent(PafDimMember parent) {\r\n\t\tthis.parent = parent;\r\n\t}", "public static void setParentEventId(ExtendedRecord er, ALATaxonRecord tr) {\n extractOptValue(er, DwcTerm.parentEventID).ifPresent(tr::setParentId);\n }", "public void setParent(LeafTreeNode parent) {\n this.parent = parent;\n }", "public void setParent(Node node) {\n parent = node;\n }", "@Override\n\tpublic void setParent(Tag parentTag) {\n\t\tthis.parentTag = parentTag;\n\n\t}", "public void setParent(Glyph parent) {\n this.parent = parent;\n }", "public void setParent(TreeNode parent)\r\n\t{\r\n\t\tm_parent = parent;\r\n\t}", "public void setParentCall(String parentCall) {\n this.parentCall = parentCall == null ? null : parentCall.trim();\n }", "public final synchronized void setParent(final ICache<K, V, D> parent) {\n ICache<K, V, D> current = parent;\n while (current != null) {\n if (current == this)\n throw new IllegalArgumentException(\"Cycle detected, cannot set parent to \" + parent);\n current = current.getParent();\n }\n this.parent = parent;\n }", "public void setParent(String value) {\r\n setAttributeInternal(PARENT, value);\r\n }", "public OwnerTrace<T> parent(Object parent) {\n\t\tif (parent instanceof OwnerTrace)\n\t\t\tdata.parent = ((OwnerTrace<?>)parent).data;\n\t\telse if (parent == null)\n\t\t\tdata.parent = null;\n\t\telse\n\t\t\tdata.parent = OwnerTrace.of(parent).data;\n\t\treturn this;\n\t}", "public void setParent(final @Nullable Node<@Nullable T> parent) {\n this.parent = parent;\n }", "protected void setParent(Group parent) {\n internalGroup.setParent(parent.internalGroup);\n }", "public void setORM_Parent(orm.Nomenclature value) {\r\n\t\tthis.parent = value;\r\n\t}", "public void setParent(RBNode<T> node, RBNode<T> parent) {\n if(node != null)\r\n node.parent = parent;\r\n }", "public void setParent(PsUpdateIf parent) {\n\t\tsuper.setParent(parent);\n\t\tm_pjRoot = (PjRootFinder)parent;\n\t\tm_pFunction.add(m_pjRoot.m_fx.getInfoPanel());\n\t\tm_pBounds.add(m_pjRoot.m_xMin.getInfoPanel());\n\t\tm_pBounds.add(m_pjRoot.m_xMax.getInfoPanel());\n\t\tm_pBounds.add(m_pjRoot.m_discr.getInfoPanel());\n\t}", "void setParent(WidgetParent ip) {\n this.m_parent = ip;\n }", "public void setParent(Node parent) {\r\n//\t\tdepth = parent.depth + 1;\r\n\t\tthis.parent = parent;\r\n\t\t//return depth;\r\n\t\t\r\n\t}", "public void setParent (TreeNode parent)\r\n {\r\n if (logger.isFineEnabled()) {\r\n logger.fine(\"setParent parent=\" + parent + \" for \" + this);\r\n }\r\n\r\n this.parent = parent;\r\n }", "public SqlFromSubSelect getParent() {\n return parent;\n }", "@Override\n\tpublic ASTNode getParent() {\n\t\treturn this.parent;\n\t}", "public void setParent(CarrierShape parent)\n\t{\n\t\tthis.parent = parent;\n\t}", "public void setParent(AbstractConfigNode parent) {\n this.parent = parent;\n }", "public Token setParent_id(int parent_id) {\n this.parent_id = parent_id;\n setParent_idIsSet(true);\n return this;\n }", "public void setParent(Kit parentKit) {\n this.parent = parentKit;\n }", "public void setParentLabel(String parentLabel){\n\t\tthis.parentLabel = parentLabel;\n\t}", "public void setParent(View parent) {\n throw new Error(\"Can't set parent on root view\");\n }", "public abstract void setParent (XMLReader parent);", "public void setParent(@CheckForNull final OtuSet parent) {\n\t\tthis.parent = parent;\n\t}", "public void setParent(PlasticClassPool parent) \n {\n this.parent = parent;\n parent.children.add(this);\n }", "public VisualLexiconNode getParent() {\n \t\treturn parent;\n \t}", "abstract public void setParent(Command cmd);", "public PlanNode getParent() {\n return parent;\n }", "public PropertySelector getParent() {\n return parent;\n }", "@Override\r\n\tpublic void setParent(Tag arg0) {\n\t}", "public boolean setParent (\n\t\tfinal BinomialTree<KEY, ITEM> parent)\n\t{\n\t\t_parent = parent;\n\t\treturn true;\n\t}", "public void setParent (com.redsaga.hibnatesample.step2.Board _parent) {\n\t\tthis._parent = _parent;\n\t}", "@VTID(7)\r\n void getParent();", "public Delete parent(String parent){\n\t\taddParams(\"parent\", parent);\n\t\treturn this;\n\t}", "public String getParent() {\n return parent;\n }", "public String getParent() {\r\n return parent;\r\n }", "public void setParent(HtmlMap<T> parent)\n\t{\n\t\tthis.m_parent = parent;\n\t}", "public void setParentLayer(EObject newValue);", "public void expression(Node n_parent) {\r\n if(token.get(lookAheadPossition).contains(\"ident(\")||token.get(lookAheadPossition).contains(\"num(\")||token.get(lookAheadPossition).contains(\"boollit(\")||token.get(lookAheadPossition).equals(\"LP\")){\r\n System.out.println(\":: expression::if- \"+n_parent.getData());\r\n\r\n Node makeown = new Node (\"makeown\");\r\n Node n_factor = this.simpleExpression(makeown);\r\n\r\n //compNode = expressionNode.addChild(\"Compare\");\r\n //Node n_connect =\r\n this.restExpression(n_parent,n_factor);\r\n //n_parent.setNodeChild(n_connect);\r\n }\r\n }", "public void setParent(PaletteContainer newParent) {\n if (parent != newParent) {\n PaletteContainer oldParent = parent;\n parent = newParent;\n listeners.firePropertyChange(PROPERTY_PARENT, oldParent, parent);\n }\n }", "public void setParentModule(EObject newValue);", "@Nullable <T extends ContainerHolder> T setParent(@Nullable T parent);", "public void setParent(DrawingComposite parent) {\n\t\tthis.parent = parent;\n\t}", "public ParseTreeNode getParent() {\r\n return _parent;\r\n }", "public void setParentName(String parentName) {\n this.parentName = parentName == null ? null : parentName.trim();\n }", "void setParentInstId(String parentInstId);", "public void setParent(UpTreeNode<E> parent) {\n\t\t\tthis.parent = parent;\n\t\t}", "public Foo getParent() {\n return parent;\n }", "public String getParent() {\n return _parent;\n }", "public void setParentKey(String parentKey) {\n\n this.parentKey = parentKey;\n }" ]
[ "0.84111786", "0.7659562", "0.7359647", "0.732304", "0.7278923", "0.7250969", "0.7250284", "0.7242638", "0.7241882", "0.7234666", "0.71893185", "0.70912343", "0.70394635", "0.70077354", "0.69787383", "0.69659775", "0.6938055", "0.69264835", "0.6915528", "0.6899613", "0.689446", "0.6887522", "0.68368983", "0.682213", "0.6821955", "0.6808087", "0.6794148", "0.67931527", "0.67890495", "0.67565393", "0.67429703", "0.67414963", "0.671107", "0.6695505", "0.6672816", "0.6655504", "0.664454", "0.664454", "0.6617636", "0.66166365", "0.6611621", "0.6611306", "0.6601687", "0.65954536", "0.65925413", "0.6589182", "0.6588896", "0.6572064", "0.65627044", "0.6562159", "0.6560271", "0.6553419", "0.6542738", "0.65067625", "0.65067", "0.6501482", "0.64757836", "0.64746726", "0.6456024", "0.64530015", "0.6444723", "0.6422585", "0.6416914", "0.6402762", "0.6400999", "0.64006877", "0.6399333", "0.63985044", "0.6397878", "0.63871694", "0.63840014", "0.636195", "0.6356906", "0.63413715", "0.63341385", "0.6334107", "0.6324957", "0.63209015", "0.6319979", "0.6316961", "0.63077277", "0.62864834", "0.62851906", "0.62647885", "0.6261257", "0.6256717", "0.62528235", "0.62519646", "0.62470317", "0.62207043", "0.6216977", "0.621322", "0.6210662", "0.6206423", "0.6177903", "0.6156982", "0.61434937", "0.6135339", "0.61173284", "0.6117007" ]
0.82365084
1
Creates and returns a deep copy of the expression. The entire tree rooted at the target node is copied, i.e., the copied Expression is as deep as possible.
public Expression deepCopy() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Expression deepCopy (){\n return new LiteralExpression(_value);\n }", "@Override\n\tpublic Expression copy() {\n\t\treturn null;\n\t}", "public static Expression getCopy(Expression exp) {\n\t\tExpression expcopy = (Expression) EcoreUtil.copy(exp);\t\n\t\treturn expcopy;\n\t}", "@Override\n public ExpressionNode deepCopy(BsjNodeFactory factory);", "public AST copy()\n {\n return new Implicate(left, right);\n }", "public Object clone() throws CloneNotSupportedException {\r\n\t\t// Shallow clone\r\n\t\tExpression v = (Expression) super.clone();\r\n\t\tv.eval_stack = null;\r\n\t\t// v.text = new StringBuffer(new String(text));\r\n\t\tint size = elements.size();\r\n\t\tArrayList cloned_elements = new ArrayList(size);\r\n\t\tv.elements = cloned_elements;\r\n\r\n\t\treturn v;\r\n\t}", "static ExpNode copy(ExpNode root) {\n\n if (root instanceof ConstNode) {\n return new ConstNode(((ConstNode).root).number);\n }\n else if (root instanceof VariableNode) {\n return new VariableNode();\n }\n else {\n Bin0pNode node = (Bin0pNode)root;\n // Left and right operand trees have to be copied not only referenced\n return new Bin0pNode(node.op, copy(node.left). copy(node.right));\n }\n }", "ASTNode clone0(AST target) {\n ExpressionMethodReference result = new ExpressionMethodReference(target);\n result.setSourceRange(getStartPosition(), getLength());\n result.setExpression((Expression) ASTNode.copySubtree(target, getExpression()));\n result.typeArguments().addAll(ASTNode.copySubtrees(target, typeArguments()));\n result.setName((SimpleName) getName().clone(target));\n return result;\n }", "@Override\n\tAlgebraicExpression clone();", "public CFExp deepCopy(){\r\n return this;\r\n }", "public Object clone() {\n\t\treturn new RelExpr((Term)getTerm(0).clone(), op, (Term)getTerm(1).clone());\n\t}", "public Call treeCopy() {\n Call tree = (Call) copy();\n if (children != null) {\n for (int i = 0; i < children.length; ++i) {\n ASTNode child = (ASTNode) getChild(i);\n if (child != null) {\n child = child.treeCopy();\n tree.setChild(child, i);\n }\n }\n }\n return tree;\n }", "public Object clone()\n {\n return new ReturnStatement((Expression) expression.clone(), -1, -1);\n }", "ASTNode clone0(AST target) {\r\n\t\tNewAnonymousClassExpression result = new NewAnonymousClassExpression(target);\r\n\t\tresult.setSourceRange(this.getStartPosition(), this.getLength());\r\n\tresult.setExpression((Expression) ASTNode.copySubtree(target, getExpression()));\r\n\t\tresult.newArguments.addAll(ASTNode.copySubtrees(target, newArguments()));\r\n\t\tresult.constructorArguments.addAll(ASTNode.copySubtrees(target, constructorArguments()));\r\n\t\tresult.baseClasses.addAll(ASTNode.copySubtrees(target, baseClasses()));\r\n\t\tresult.declarations.addAll(ASTNode.copySubtrees(target, declarations()));\r\n\t\treturn result;\r\n\t}", "public Expression copy(HashMap<String, VarNode> variables){\n\t\treturn new Expression(this.ExprNode.copy(variables));\n\t}", "public abstract LambdaTerm deepCopy();", "public Tree<K, V> copy() {\n\t\tTree<K, V> copy = EmptyTree.getInstance(), t = this;\n\t\treturn copy(t, copy);\n\t}", "public abstract Type treeCopy();", "@Override\r\n\tpublic LogicalValue copy() {\r\n\t\treturn new Pointer(target);\r\n\t}", "public abstract Node copy();", "public Object clone()\n\t{\n\t\treturn new Tree();\n\t}", "public QueryNode cloneTree() throws CloneNotSupportedException;", "public Tree<T> clone() {\n Node<T> clonedRoot = this.root.clone();\n clone(this.root, this.root.clone());\n return new Tree<T>(clonedRoot);\n }", "public Call treeCopyNoTransform() {\n Call tree = (Call) copy();\n if (children != null) {\n for (int i = 0; i < children.length; ++i) {\n ASTNode child = (ASTNode) children[i];\n if (child != null) {\n child = child.treeCopyNoTransform();\n tree.setChild(child, i);\n }\n }\n }\n return tree;\n }", "public abstract TreeNode copy();", "public EnbOper cloneShallow() {\n return (EnbOper)cloneShallowContent(new EnbOper());\n }", "public SubstitutedBodyDecl treeCopy() {\n SubstitutedBodyDecl tree = (SubstitutedBodyDecl) copy();\n if (children != null) {\n for (int i = 0; i < children.length; ++i) {\n ASTNode child = (ASTNode) getChild(i);\n if (child != null) {\n child = child.treeCopy();\n tree.setChild(child, i);\n }\n }\n }\n return tree;\n }", "public T cloneDeep();", "public Tree copy() {\n Tree cpTree = new Tree();\n if(!empty()) {\n Node cpNode = copyNodes(root);\n cpTree.setRoot(cpNode);\n }\n return cpTree;\n }", "public BlockLambdaBody treeCopy() {\n BlockLambdaBody tree = (BlockLambdaBody) copy();\n if (children != null) {\n for (int i = 0; i < children.length; ++i) {\n ASTNode child = (ASTNode) getChild(i);\n if (child != null) {\n child = child.treeCopy();\n tree.setChild(child, i);\n }\n }\n }\n return tree;\n }", "public Object clone() {\n AggregateSymbol copy = new AggregateSymbol(getName(), getAggregateFunction(), isDistinct(), LanguageObject.Util.deepClone(getArgs()));\n if (orderBy != null) {\n copy.setOrderBy(orderBy.clone());\n }\n if (condition != null) {\n copy.setCondition((Expression) condition.clone());\n }\n copy.isWindowed = this.isWindowed;\n copy.type = this.type;\n copy.setFunctionDescriptor(getFunctionDescriptor());\n return copy;\n }", "public Complex makeDeepCopy() {\r\n Complex complex2 = new Complex(this.getReal(), this.getImaginary());\r\n return complex2;\r\n }", "ASTNode clone(AST target) {\n ForStatement result = new ForStatement(target);\n result.setLeadingComment(getLeadingComment());\n result.initializers().addAll(ASTNode.copySubtrees(target, initializers()));\n result.setExpression(\n (Expression) ASTNode.copySubtree(target, getExpression()));\n result.updaters().addAll(ASTNode.copySubtrees(target, updaters()));\n result.setBody(\n (Statement) ASTNode.copySubtree(target, getBody()));\n return result; }", "public SubstitutedBodyDecl treeCopyNoTransform() {\n SubstitutedBodyDecl tree = (SubstitutedBodyDecl) copy();\n if (children != null) {\n for (int i = 0; i < children.length; ++i) {\n ASTNode child = (ASTNode) children[i];\n if (child != null) {\n child = child.treeCopyNoTransform();\n tree.setChild(child, i);\n }\n }\n }\n return tree;\n }", "public BinaryNode copy() {\n\t\tBinaryNode newRoot = new BinaryNode(data);\n\t\tif(leftChild != null)\n\t\t\tnewRoot.setLeftChild(leftChild.copy());\n\t\tif(rightChild != null)\n\t\t\tnewRoot.setRightChild(rightChild.copy());\n\t\treturn newRoot;\n\t}", "public Closure copy_function(){\n Closure newClosure = new Closure(this.getParent(), this.getNode());\n newClosure.isFunction = this.isFunction;\n newClosure.returning = this.returning;\n newClosure.belongObject = this.belongObject;\n return newClosure;\n }", "@Override\n public AggregationBuilder clone() {\n try {\n AggregationBuilder clone = (AggregationBuilder) super.clone();\n clone.root = root.clone();\n clone.current = clone.root;\n return clone;\n } catch(CloneNotSupportedException ex){\n return null;\n }\n }", "public T copy() {\n T ret = createLike();\n ret.getMatrix().setTo(this.getMatrix());\n return ret;\n }", "public AgwCslOper cloneShallow() {\n return (AgwCslOper)cloneShallowContent(new AgwCslOper());\n }", "@Override\n public MetaprogramTargetNode deepCopy(BsjNodeFactory factory);", "public Coordinates copy() {\n\t\treturn new Coordinates(this);\n\t}", "public static void main(String[] args) {\n\n System.out.println(\"Testing expression creation and evaluation.\\n\");\n\n ExpNode e1 = new Bin0pNode(\"+\", new VariableNode(), new ConstNode(3));\n ExpNode e2 = new Bin0pNode(\"*\", new ConstNode(2), new VariableNode());\n ExpNode e3 = new Bin0pNode(\"-\", e1, e2);\n ExpNode e4 = new Bin0pNode(\"/\", e1, new ConstNode(-3));\n\n System.out.println(\"For x = 3: \");\n System.out.println(\" \" + e1 + \" = \" + e1.value(3));\n System.out.println(\" \" + e2 + \" = \" + e2.value(3));\n System.out.println(\" \" + e3 + \" = \" + e3.value(3));\n System.out.println(\" \" + e4 + \" = \" + e4.value(3));\n\n System.out.println(\"nTesting copying...\");\n System.out.println(\" copy of \" + e1 + \" gives \" + copy(e1));\n System.out.println(\" copy of \" + e2 + \" gives \" + copy(e2));\n System.out.println(\" copy of \" + e3 + \" gives \" + copy(e3));\n System.out.println(\" copy of \" + e4 + \" gives \" + copy(e4));\n\n // make a copy of e3, where e3.left is e1\n ExpNode e3copy = copy(e3);\n // make a mdification to e1\n ((Bin0pNode)e1).left = new ConstNode(17);\n System.out.println(\" modified e3: \" + e3 + \"; copy should be unmodified: \" + e3copy);\n\n System.out.println(\"nChecking test data...\");\n double[][] dt = makeTestData();\n for (int i = 0; i < dt.length; i++) {\n System.out.println(\" x = \" + dt[i][0] + \"; y = \" + dt[i][1]);\n\n }\n }", "public CopyBuilder copy() {\n return new CopyBuilder(this);\n }", "public Object clone() {\n SetQuery copy = new SetQuery(this.operation);\n\n this.copyMetadataState(copy);\n\n copy.leftQuery = (QueryCommand)this.leftQuery.clone();\n copy.rightQuery = (QueryCommand)this.rightQuery.clone();\n\n copy.setAll(this.all);\n\n if(this.getOrderBy() != null) {\n copy.setOrderBy(this.getOrderBy().clone());\n }\n\n if(this.getLimit() != null) {\n copy.setLimit( this.getLimit().clone() );\n }\n\n copy.setWith(LanguageObject.Util.deepClone(this.getWith(), WithQueryCommand.class));\n\n if (this.projectedTypes != null) {\n copy.setProjectedTypes(new ArrayList<Class<?>>(projectedTypes), this.metadata);\n }\n\n return copy;\n }", "public Address copy() {\n\t\tAddress copy = new Address(this.street, this.city, this.state, this.zipCode);\n\t\treturn copy;\n\t}", "public Query copy() {\r\n\tQuery queryCopy = new Query();\r\n\tqueryCopy.terms = (LinkedList<String>) terms.clone();\r\n\tqueryCopy.weights = (LinkedList<Double>) weights.clone();\r\n\treturn queryCopy;\r\n }", "public AccessPath copy() {\n HashMap m = new HashMap();\n IdentityHashCodeWrapper ap = IdentityHashCodeWrapper.create(this);\n AccessPath p = new AccessPath(this._field, this._n, this._last);\n m.put(ap, p);\n this.copy(m, p);\n return p;\n }", "public abstract Type treeCopyNoTransform();", "public BlockLambdaBody treeCopyNoTransform() {\n BlockLambdaBody tree = (BlockLambdaBody) copy();\n if (children != null) {\n for (int i = 0; i < children.length; ++i) {\n ASTNode child = (ASTNode) children[i];\n if (child != null) {\n child = child.treeCopyNoTransform();\n tree.setChild(child, i);\n }\n }\n }\n return tree;\n }", "Expression createExpression();", "public Term clone() {\n\t\treturn new Term(this.coefficient, this.exponent);\n\t}", "public Update cloneShallow() {\n return (Update)cloneShallowContent(new Update());\n }", "@SuppressWarnings({\"unchecked\", \"cast\"})\n public TypeVariable fullCopy() {\n TypeVariable tree = (TypeVariable) copy();\n if (children != null) {\n for (int i = 0; i < children.length; ++i) {\n ASTNode child = (ASTNode) children[i];\n if(child != null) {\n child = child.fullCopy();\n tree.setChild(child, i);\n }\n }\n }\n return tree;\n }", "Node copy(Node r) {\r\n\t\tif (r == null)\r\n\t\t\treturn null;\r\n\t\tNode leftTree = copy(r.left);\r\n\t\tNode rightTree = copy(r.right);\r\n\t\treturn new Node(r.element, leftTree, rightTree);\r\n\t}", "public static ExpressionTree makeExpression(TreeNode root,\n Field resultField) {\n return new ExpressionTree(root, resultField);\n }", "public EnbOper clone() {\n return (EnbOper)cloneContent(new EnbOper());\n }", "@Override\n public MouseEvent copyFor(Object newSource, EventTarget newTarget) {\n MouseEvent e = (MouseEvent) super.copyFor(newSource, newTarget);\n e.recomputeCoordinatesToSource(this, newSource);\n return e;\n }", "public HeapElt copy() {\n HeapElt newElement = new HeapElt();\n \n newElement.setHandle(this.handle);\n newElement.setRecord(this.record);\n \n return newElement;\n }", "public O copy() {\n return value();\n }", "public MemberAddress clone() {\r\n try {\r\n return (MemberAddress)super.clone();\r\n } catch (CloneNotSupportedException e) {\r\n throw new IllegalStateException(\"Failed to clone the entity: \" + toString(), e);\r\n }\r\n }", "public State copy() {\n State that = new State(this.registers.length);\n for (int i=0; i<this.registers.length; ++i) {\n Object a = this.registers[i];\n if (a == null) continue;\n if (!(a instanceof Set))\n that.registers[i] = a;\n else\n that.registers[i] = NodeSet.FACTORY.makeSet((Set)a);\n }\n if(TRACE_REGISTERS) System.out.println(\"Copying state \" + Arrays.asList(that.registers));\n return that;\n }", "public EventStack<T> deepCopy() {\n final Stack<EventStackEntry<T>> copiedStack = new Stack<>();\n for (final EventStackEntry<T> iterEntry : eventStack) {\n copiedStack.push(iterEntry.deepCopy());\n }\n final EventStack<T> copiedOutput = new EventStack<>(firstEventTime);\n copiedOutput.setStack(copiedStack);\n return copiedOutput;\n }", "@Generated(value={\"edu.jhu.cs.bsj.compiler.utils.generator.SourceGenerator\"})\npublic interface ExpressionNode extends Node, VariableInitializerNode\n{\n /**\n * Generates a deep copy of this node.\n * @param factory The node factory to use to create the deep copy.\n * @return The resulting deep copy node.\n */\n @Override\n public ExpressionNode deepCopy(BsjNodeFactory factory);\n \n}", "private Expression toExpression() {\n Expression lhs = null, rhs = null;\n if (base instanceof DerefSymbol) {\n lhs = ((DerefSymbol)base).toExpression();\n } else if (base instanceof AccessSymbol) {\n lhs = ((AccessSymbol)base).toExpression();\n } else if (base instanceof Identifier) {\n lhs = new Identifier(base);\n } else {\n PrintTools.printlnStatus(0,\n \"[WARNING] Unexpected access expression type\");\n return null;\n }\n rhs = new Identifier(member);\n return new AccessExpression(lhs, AccessOperator.MEMBER_ACCESS, rhs);\n }", "Object clone();", "Object clone();", "public Solution deepClone() {\n\t\tArrayList<GridPoint> cloneRepresentation = new ArrayList<GridPoint>();\n\t\t\n\t\tfor(GridPoint p : solutionRepresentation) {\n\t\t\tint[] coord = new int[2];\n\t\t\tcoord[0] = p.getX();\n\t\t\tcoord[1] = p.getY();\n\t\t\tcloneRepresentation.add(new GridPoint(coord));\n\t\t}\n\t\treturn new Solution(this.host, cloneRepresentation);\n\t}", "public static BNode mirrorCopy(BNode source) {\n\t\tif (source == null) {\n\t\t\treturn null;\n\t\t}\n\t\tBNode target = new BNode();\n\t\ttarget.val = source.val;\n\t\ttarget.right = mirrorCopy(source.left);\n\t\ttarget.left = mirrorCopy(source.right);\n\t\t\n\t\treturn target;\n\t}", "public Node duplicate() {\r\n Variable alterEgo = new Variable(index);\r\n return alterEgo;\r\n }", "@Override\n public Node clone() {\n Node node = null;\n try {\n node = (Node) super.clone();\n } catch (Exception e) {\n System.err.println(\"Unable to clone!\");\n e.printStackTrace();\n }\n return node;\n }", "@Override\n protected PlanNode clone() throws CloneNotSupportedException {\n NestedLoopsJoinNode node = (NestedLoopsJoinNode) super.clone();\n\n // Clone the predicate.\n if (predicate != null)\n node.predicate = predicate.duplicate();\n else\n node.predicate = null;\n\n return node;\n }", "Component deepClone();", "public Expression(Expression exp) {\r\n\t\tconcat(exp);\r\n\t\ttext = new StringBuffer(new String(exp.text));\r\n\t}", "public Instance cloneShallow() {\n Instance copy;\n try {\n copy = new Instance(getNameValue().toString());\n } catch (JNCException e) {\n copy = null;\n }\n return (Instance)cloneShallowContent(copy);\n }", "public Element copy(Element e, boolean additive, boolean deep) {\n\n\t\tsetName( e.getName());\n\t\tsetFalseRoot( e.isFalseRoot());\n\t\tsetNesting( e.getNesting());\n\t\tsetRoot( e.getRoot() );\n\t\tsetNesting( e.getNesting() );\n\t\t//setParent(e.getParent()); //CHANGE 0804101400\n\t\tsetValue(e.getValue());\n\t\tsetQbeEquality( e.isQbeEquality() );\n\n\t\tsetNamespace( e.getNamespace() );\n\n\t\t/////////////////////////////\n\n\t\tif (!additive)\n\t\t\tdeleteAttributes();\n\n//\t\tAttribute[] att = e.getAttributes();\n\n\t\tfor (Attribute att : e.getAttributes().values())\n\t\t\tsetAttribute( att.getName(), att.getValue() ) ;\n\n\t\t\n\n\t\t//setNesting( e.getNesting() );\n\n\t\tif (deep) {\n\n\t\t\t//setRoot( e.getRoot() );\n\n\t\t\tfor (Element element : e.getAllChildren()) {\n\n\t\t\t\tElement child = new Element();\n\n\t\t\t\tchild.copy( element, additive, true);\n\n\t\t\t\taddChild(child, false);\n\n\t\t\t}\n\t\t\t//TODO\n\t\t}\n\n\t\tnormalise();\n\n\t\treturn this;\n\n\t}", "Prototype makeCopy();", "public Function clone();", "public abstract OtTreeNodeWidget copy();", "public Object clone() {\n \t\treturn new Term(this);\n \t}", "public ValueNode getClone() throws StandardException {\n TimestampOperatorNode newTS = (TimestampOperatorNode) getNodeFactory().getNode(\n C_NodeTypes.TIMESTAMP_OPERATOR_NODE,\n leftOperand,\n rightOperand,\n getContextManager());\n\n newTS.copyFields(this);\n return newTS;\n }", "public Object clone() {\n // No problems cloning here since private variables are immutable\n return super.clone();\n }", "@Override\r\n\tpublic BinaryNodeInterface<E> copy() {\n\t\treturn null;\r\n\t}", "FullExpression createFullExpression();", "protected Element setExpr(String expr, String to_node){\n\t\treturn el(\"bpws:copy\", new Node[]{\n\t\t\t\tel(\"bpws:from\", attr(\"expression\", \"abx:getProcessId()\")),\n\t\t\t\tel(\t\"bpws:to\", new Node[]{\n\t\t\t\t\t\tattr(\"variable\", VARNAME),\n\t\t\t\t\t\tattr(\"part\", \"part1\"),\n\t\t\t\t\t\tattr(\"query\", \"/nswomoxsd:receive/nswomoxsd:evt/\" + to_node)\n\t\t\t\t\t})\n\t\t});\n\n\t}", "public Tree<K, V> copy(Tree<K, V> t, Tree<K, V> copy) {\n\t\tcopy = copy.add(key, value);\n\t\tcopy = left.copy(left, copy);\n\t\tcopy = right.copy(right, copy);\n\t\treturn copy;\n\t}", "public Object clone()\n {\n DataSetDivide new_op = new DataSetDivide( );\n // copy the data set associated\n // with this operator\n new_op.setDataSet( this.getDataSet() );\n new_op.CopyParametersFrom( this );\n\n return new_op;\n }", "public TurtleState copy() {\n\t\treturn new TurtleState(position.copy(), direction.copy(), color, shift);\n\t}", "public Object clone();", "public Object clone();", "public Object clone();", "public Object clone();", "public NewInstanceExpressionElements getNewInstanceExpressionAccess() {\r\n\t\treturn pNewInstanceExpression;\r\n\t}", "private final TypeTerm _clone ()\n {\n TypeTerm clone = null;\n try\n {\n clone = (TypeTerm)clone();\n }\n catch (Exception e)\n {\n throw new TypeDefinitionException(e);\n }\n return clone;\n }", "@SuppressWarnings(\"unchecked\")\n @Override\n public <T extends JsonNode> T deepCopy() { return (T) this; }", "public StringStack clone()\n\t{\n\t\tStringStack clonedStack = new StringStack();\n\t\tnodePtr = top;\n\t\twhile (nodePtr!=null)\n\t\t{\n\t\t\tclonedStack.push(nodePtr.getData());\n\t\t\tnodePtr = nodePtr.getLink();\n\t\t}\n\t\treturn clonedStack;\n\t}", "public ConditionWithSymptoms clone() {\n ConditionWithSymptoms data = new ConditionWithSymptoms(conditionName, onsetTime, endTime);\n data.symptoms.putAll(this.symptoms);\n return data;\n }", "JavaExpression createJavaExpression();", "@Override\n public FieldEntity copy()\n {\n return state.copy();\n }", "public SymbolTable copy() {\n\t\tSymbolTable st = new SymbolTable();\n\t\tst.var = (HashMap<String, Variable>) var.clone();\n\t\tst.name = new HashMap<String, NameSSA>();\n\t\tfor (String n : name.keySet()) {\n\t\t\tst.name.put(n, (NameSSA) name.get(n).clone());\n\t\t}\n\t\treturn st;\n\t}", "public static BindState copyOf(BindState pState) {\n return new BindState(pState.stateOnLastFunctionCall, pState.localDefs, pState.globalDefs);\n }" ]
[ "0.7156641", "0.712613", "0.6914317", "0.68813556", "0.6844225", "0.682257", "0.6811502", "0.66287255", "0.66161233", "0.65596265", "0.655737", "0.64636934", "0.6434252", "0.6313185", "0.62648034", "0.61821586", "0.61561924", "0.6083037", "0.60791796", "0.6074434", "0.6060248", "0.6030406", "0.60238075", "0.6023797", "0.6018312", "0.60062623", "0.6005618", "0.5996943", "0.5988027", "0.5966804", "0.595674", "0.5953967", "0.5879276", "0.58095366", "0.5756515", "0.57390773", "0.5626107", "0.56248754", "0.5597665", "0.55929875", "0.55883485", "0.5579248", "0.5567034", "0.55618435", "0.5553836", "0.5547169", "0.5540173", "0.5531806", "0.5530045", "0.5525507", "0.5520795", "0.5471699", "0.5469529", "0.54543436", "0.5450858", "0.54197055", "0.5408725", "0.5395235", "0.5394097", "0.5382395", "0.5374338", "0.5371472", "0.5354575", "0.5343266", "0.5337999", "0.5337999", "0.53023344", "0.529863", "0.5287329", "0.52839524", "0.5276761", "0.52762425", "0.52750623", "0.5242175", "0.5241475", "0.52382183", "0.523682", "0.5229281", "0.5221512", "0.52166843", "0.5209606", "0.5205774", "0.5192277", "0.5189257", "0.5184924", "0.5184273", "0.5183309", "0.5179301", "0.5179301", "0.5179301", "0.5179301", "0.5178376", "0.5173083", "0.5158261", "0.51501197", "0.5147109", "0.5140233", "0.51362735", "0.51309365", "0.51121116" ]
0.73589134
0
Recursively flattens the expression as much as possible throughout the entire tree. Specifically, in every multiplicative or additive expression x whose first or last child c is of the same type as x, the children of c will be added to x, and c itself will be removed. This method modifies the expression itself.
public void flatten() { if (_children.size() > 0) { int i = 0; while(i < _children.size()) { ExpressionNode subExpr = _children.get(i); subExpr.flatten(); if (_data.equals(subExpr._data)) { _children.addAll(subExpr._children); _children.remove(subExpr); } i++; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Expression simplifyMore() {\n Expression left = super.getLeft();\n Expression right = super.getRight();\n\n // x * x -> x^2\n if (left.toString().equals(right.toString())) {\n return new Pow(left, 2);\n }\n\n // ((2.0 * x) * (x * 3.0)) -> 6x^2\n if (left instanceof Mult && right instanceof Mult) {\n if (((Mult) left).getRight().toString().equals(((Mult) right).getLeft().toString())) {\n Expression exp = new Mult(new Mult(((Mult) left).getLeft(), ((Mult) right).getRight()),\n new Mult(((Mult) left).getRight(), ((Mult) right).getLeft()));\n exp.turnBonusOn();\n return exp.simplify();\n }\n }\n\n // 2x * 2x -> 4x^2\n if (left instanceof Mult && right instanceof Mult) {\n if (((Mult) left).getRight().toString().equals(((Mult) right).getRight().toString())) {\n return new Mult(new Mult(((Mult) left).getLeft(), ((Mult) right).getLeft()).simplify(),\n new Pow(((Mult) left).getRight(), 2)).simplify();\n }\n }\n\n // 2x * 2y -> 4xy\n if (left instanceof Mult && right instanceof Mult) {\n return new Mult(new Mult(((Mult) left).getLeft(), ((Mult) right).getLeft()).simplify(),\n new Mult(((Mult) left).getRight(), ((Mult) right).getRight())).simplify();\n }\n\n // sin(x) * cos(x) -> 0.5 * sin(2x)\n if (right instanceof Sin && left instanceof Cos) {\n Expression exp = new Mult(0.5, new Sin(new Mult(2, ((Sin) right).getExpression())));\n exp.turnBonusOn();\n return exp.simplify();\n }\n\n // cos(x) * sin(x) -> 0.5 * sin(2x)\n if (right instanceof Cos && left instanceof Sin) {\n Expression exp = new Sin(new Mult(2, ((Cos) right).getExpression()));\n exp.turnBonusOn();\n return exp.simplify();\n }\n\n // log(x, y) * 2 -> 2 * log(x, y)\n if (left instanceof Sin || left instanceof Cos || left instanceof Log) {\n Expression exp = new Mult(right, left);\n exp.turnBonusOn();\n return exp.simplify();\n }\n\n // x^2 * x^3 -> x^5\n if (left instanceof Pow && right instanceof Pow) {\n if (((Pow) left).getLeft().toString().equals(((Pow) right).getLeft().toString())) {\n Expression exp = new Pow(((Pow) left).getLeft(),\n new Plus(((Pow) left).getRight(), ((Pow) right).getRight()));\n exp.turnBonusOn();\n return exp.simplify();\n }\n }\n\n // x^2 * x -> x^3\n if (left instanceof Pow) {\n if (((Pow) left).getLeft().toString().equals(right.toString())) {\n Expression exp = new Pow(((Pow) left).getLeft(), new Plus(((Pow) left).getRight(), 1));\n exp.turnBonusOn();\n return exp.simplify();\n }\n }\n\n return this;\n }", "public node simplify() {\n node n = null;\n Object[] o = children().toArray();\n int l = o.length;\n if ( l == 1 )\n return (node) o[0];\n\n node orr = (node) o[0];\n node atmost1 = (node) o[0];\n\n for ( int i=1; i<l; i++ ) {\n orr = new or( orr, (node) o[i] );\n atmost1 = new atmostone( atmost1, (node) o[i] );\n }\n node result = (new and(orr, atmost1)).simplify();\n return result;\n }", "public ArrayList<StatementParse> collapseExpression(ArrayList<StatementParse> expression){\n int index = 0;\n for (int i = 0; i < expression.size(); i++){\n if (expression.get(i) instanceof IntegerParse) {\n index = i;\n break;\n }\n // when all nodes are not constant\n if (i == expression.size() - 1){\n index = expression.size();\n }\n }\n\n int result = 0;\n for (int i = index; i < expression.size(); i++){\n StatementParse child = expression.get(i);\n if (child.isNegative()){\n result = result - ((IntegerParse) child).getValue();\n } else {\n result = result + ((IntegerParse) child).getValue();\n }\n }\n ArrayList<StatementParse> converted = new ArrayList<>(expression.subList(0, index));\n // collapse 0\n if (result == 0) return converted;\n // if result is negative, flip the sign\n IntegerParse integer;\n if (result < 0){\n result = - result;\n integer = new IntegerParse(result);\n integer.setNegative(true);\n } else {\n integer = new IntegerParse(result);\n }\n converted.add(integer);\n return converted;\n }", "public static Expression reduceExtensions(Expression expression) { throw Extensions.todo(); }", "public StatementParse reconstructTree(ArrayList<StatementParse> expression){\n // an empty expression will not trigger this method\n // first element is always an integer\n StatementParse left_node = expression.get(0);\n\n for (int i = 1; i < expression.size(); i++){\n StatementParse right_node = expression.get(i);\n if (right_node instanceof IntegerParse && ((IntegerParse) right_node).getValue() == 0){\n continue;\n }\n StatementParse top;\n if (right_node.isNegative()){\n top = new StatementParse(\"-\");\n } else {\n top = new StatementParse(\"+\");\n }\n top.getChildren().add(left_node);\n top.getChildren().add(right_node);\n left_node = top;\n }\n return left_node;\n }", "public static Expression reduce(Expression expression) { throw Extensions.todo(); }", "public void recursiveExpand(StatementParse node, ArrayList<StatementParse> expanded){\n if (node.getName().equals(\"-\")){\n node.getChildren().get(1).changeNegativity();\n }\n for (StatementParse child: node.getChildren()){\n // distribute if the child is negative\n if (child.isNegative()){\n for (StatementParse grandChild: child.getChildren()){\n grandChild.changeNegativity();\n }\n }\n if (this.isMulDiv(child)) {\n StatementParse transformedMulDiv = this.mulDivTransform(child);\n expanded.add(transformedMulDiv);\n } else if (this.isAddSub(child)){\n recursiveExpand(child, expanded);\n } else {\n expanded.add(child);\n }\n }\n }", "public RegexNode ReduceRep()\n\t{\n\t\tRegexNode u;\n\t\tRegexNode child;\n\t\tint type;\n\t\tint min;\n\t\tint max;\n\n\t\tu = this;\n\t\ttype = Type();\n\t\tmin = _m;\n\t\tmax = _n;\n\n\t\tfor (;;)\n\t\t{\n\t\t\tif (u.ChildCount() == 0)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tchild = u.Child(0);\n\n\t\t\t// multiply reps of the same type only\n\t\t\tif (child.Type() != type)\n\t\t\t{\n\t\t\t\tint childType = child.Type();\n\n\t\t\t\tif (!(childType >= Oneloop && childType <= Setloop && type == Loop || childType >= Onelazy && childType <= Setlazy && type == Lazyloop))\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// child can be too lumpy to blur, e.g., (a {100,105}) {3} or (a {2,})?\n\t\t\t// [but things like (a {2,})+ are not too lumpy...]\n\t\t\tif (u._m == 0 && child._m > 1 || child._n < child._m * 2)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tu = child;\n\t\t\tif (u._m > 0)\n\t\t\t{\n\t\t\t\tu._m = min = ((Integer.MAX_VALUE - 1) / u._m < min) ? Integer.MAX_VALUE : u._m * min;\n\t\t\t}\n\t\t\tif (u._n > 0)\n\t\t\t{\n\t\t\t\tu._n = max = ((Integer.MAX_VALUE - 1) / u._n < max) ? Integer.MAX_VALUE : u._n * max;\n\t\t\t}\n\t\t}\n\n\t\treturn min == Integer.MAX_VALUE ? new RegexNode(Nothing, _options) : u;\n\t}", "public RegexNode Reduce()\n\t{\n\t\tRegexNode n;\n\n\t\tswitch (Type())\n\t\t{\n\t\t\tcase Alternate:\n\t\t\t\tn = ReduceAlternation();\n\t\t\t\tbreak;\n\n\t\t\tcase Concatenate:\n\t\t\t\tn = ReduceConcatenation();\n\t\t\t\tbreak;\n\n\t\t\tcase Loop:\n\t\t\tcase Lazyloop:\n\t\t\t\tn = ReduceRep();\n\t\t\t\tbreak;\n\n\t\t\tcase Group:\n\t\t\t\tn = ReduceGroup();\n\t\t\t\tbreak;\n\n\t\t\tcase Set:\n\t\t\tcase Setloop:\n\t\t\t\tn = ReduceSet();\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tn = this;\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn n;\n\t}", "public static Expression transform(Expression input){\n\t\tshouldBeIgnored = false;\n\t\tif(check(input) == false) return null;\n\n\t\treturn recursiveTransform(input);\n\t}", "private List<SimpleNode> flatten(SimpleNode node, Class<?> rootType) {\n if (isFlattenable(node, rootType)) {\n List<SimpleNode> children = new ArrayList<>();\n for (int i = 0; i < node.jjtGetNumChildren(); i++) {\n children.addAll(flatten(node.jjtGetChild(i), rootType));\n }\n return children;\n } else {\n return Collections.singletonList(node);\n }\n }", "@Override\n public RowExpression rewrite(RowExpression expression, Rule.Context context)\n {\n if (expression instanceof CallExpression && ((CallExpression) expression).getArguments().stream().anyMatch(OriginalExpressionUtils::isExpression)) {\n return removeOriginalExpressionArguments((CallExpression) expression, context.getSession(), context.getSymbolAllocator(), context);\n }\n return removeOriginalExpression(expression, context, new HashMap<>());\n }", "private Expr mult(Expr x) throws Err {\n if (x instanceof ExprUnary) {\n ExprUnary y=(ExprUnary)x;\n if (y.op==ExprUnary.Op.SOME) return ExprUnary.Op.SOMEOF.make(y.pos, y.sub);\n if (y.op==ExprUnary.Op.LONE) return ExprUnary.Op.LONEOF.make(y.pos, y.sub);\n if (y.op==ExprUnary.Op.ONE) return ExprUnary.Op.ONEOF.make(y.pos, y.sub);\n }\n return x;\n }", "private TreeNode flat(TreeNode cur) {\n if (cur == null) {\n return null;\n }\n TreeNode right = cur.right;\n TreeNode left = cur.left;\n if (left == null && right == null) {\n return cur;\n }\n cur.left = null;\n\n TreeNode rightLast = flat(right);\n TreeNode leftLast = flat(left);\n if (left != null) {\n leftLast.right = right;\n cur.right = left;\n }\n return rightLast == null ? leftLast : rightLast;\n }", "void visit(MultiplicationExpression expression);", "public RegexNode ReduceConcatenation()\n\t{\n\t\t// Eliminate empties and concat adjacent strings/chars\n\n\t\tboolean wasLastString;\n\t\tRegexOptions optionsLast;\n\t\tRegexOptions optionsAt;\n\t\tint i;\n\t\tint j;\n\n\t\tif (_children == null)\n\t\t{\n\t\t\treturn new RegexNode(RegexNode.Empty, _options);\n\t\t}\n\n\t\twasLastString = false;\n\t\toptionsLast = RegexOptions.forValue(0);\n\n\t\tfor (i = 0, j = 0; i < _children.size(); i++, j++)\n\t\t{\n\t\t\tRegexNode at;\n\t\t\tRegexNode prev;\n\n\t\t\tat = _children.get(i);\n\n\t\t\tif (j < i)\n\t\t\t{\n\t\t\t\t_children.set(j, at);\n\t\t\t}\n\n\t\t\tif (at._type == RegexNode.Concatenate && ((at._options.getValue() & RegexOptions.RightToLeft.getValue()) == (_options.getValue() & RegexOptions.RightToLeft.getValue())))\n\t\t\t{\n\t\t\t\tfor (int k = 0; k < at._children.size(); k++)\n\t\t\t\t{\n\t\t\t\t\tat._children.get(k)._next = this;\n\t\t\t\t}\n\n\t\t\t\t//_children.InsertRange(i + 1, at._children);\n\t\t\t\t_children.addAll(i + 1 , at._children);\n\t\t\t\tj--;\n\t\t\t}\n\t\t\telse if (at._type == RegexNode.Multi || at._type == RegexNode.One)\n\t\t\t{\n\t\t\t\t// Cannot merge strings if L or I options differ\n\t\t\t\toptionsAt = RegexOptions.forValue(at._options.getValue() & (RegexOptions.RightToLeft.getValue() | RegexOptions.IgnoreCase.getValue()));\n\n\t\t\t\tif (!wasLastString || optionsLast != optionsAt)\n\t\t\t\t{\n\t\t\t\t\twasLastString = true;\n\t\t\t\t\toptionsLast = optionsAt;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tprev = _children.get(--j);\n\n\t\t\t\tif (prev._type == RegexNode.One)\n\t\t\t\t{\n\t\t\t\t\tprev._type = RegexNode.Multi;\n\t\t\t\t\tprev._str = String.valueOf(prev._ch);\n\t\t\t\t}\n\n\t\t\t\tif ((optionsAt.getValue() & RegexOptions.RightToLeft.getValue()) == 0)\n\t\t\t\t{\n\t\t\t\t\tif (at._type == RegexNode.One)\n\t\t\t\t\t{\n\t\t\t\t\t\tprev._str += (new Character(at._ch)).toString();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tprev._str += at._str;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif (at._type == RegexNode.One)\n\t\t\t\t\t{\n\t\t\t\t\t\tprev._str = (new Character(at._ch)).toString() + prev._str;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tprev._str = at._str + prev._str;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t\telse if (at._type == RegexNode.Empty)\n\t\t\t{\n\t\t\t\tj--;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\twasLastString = false;\n\t\t\t}\n\t\t}\n\n\t\tif (j < i)\n\t\t{\n\t\t\t//_children.removeRange(j, i - j + j);\n\t\t\tArrayExt.removeRange(_children, j, i - j + j);\n\t\t}\n\n\t\treturn StripEnation(RegexNode.Empty);\n\t}", "public void flatten();", "@Override\n public Expression simplify() {\n Expression right = getExpRight().simplify();\n Expression left = getExpLeft().simplify();\n //check if you can simplify more\n Num zero = new Num(0), one = new Num(1);\n //check if the left expression equals to zero\n if (zero.isEqual(left)) {\n return zero;\n }\n //check if the right expression equals to zero\n if (zero.isEqual(right)) {\n return zero;\n }\n //check if the left expression equals to one\n if (one.isEqual(left)) {\n return right;\n }\n //check if the right expression equals to one\n if (one.isEqual(right)) {\n return left;\n }\n try {\n //check if the expression is a number\n double value = evaluate();\n return new Num(value);\n } catch (Exception e) {\n return new Mult(left, right);\n }\n }", "private Type traverseTree(Node parsedTree) {\n Expression exp = new Expression(Type.EMPTY, Type.EMPTY, Connector.empty); // Creation of a new expression with empty fields\n\n\t\t// Determines the type from left to right of the given expression\n for (Node child : parsedTree.getChildren()) {\n \texp = evalExpressionAndSetLeft(addChildToExpression(child, exp));\n }\n return exp.getLeftExpressionType();\n }", "public Expression simplify() {\n Expression exp = this.getExp().simplify();\n if (exp.getVariables().isEmpty()) {\n try {\n Num n = new Num(this.evaluate());\n return n;\n } catch (Exception e) {\n int checkStyleFix = 0;\n }\n }\n Cos s = new Cos(exp);\n return s;\n }", "public final AstValidator.flatten_clause_return flatten_clause() throws RecognitionException {\n AstValidator.flatten_clause_return retval = new AstValidator.flatten_clause_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree FLATTEN166=null;\n AstValidator.expr_return expr167 =null;\n\n\n CommonTree FLATTEN166_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:377:16: ( ^( FLATTEN expr ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:377:18: ^( FLATTEN expr )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n FLATTEN166=(CommonTree)match(input,FLATTEN,FOLLOW_FLATTEN_in_flatten_clause1651); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n FLATTEN166_tree = (CommonTree)adaptor.dupNode(FLATTEN166);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(FLATTEN166_tree, root_1);\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_expr_in_flatten_clause1653);\n expr167=expr();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, expr167.getTree());\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "public Call treeCopyNoTransform() {\n Call tree = (Call) copy();\n if (children != null) {\n for (int i = 0; i < children.length; ++i) {\n ASTNode child = (ASTNode) children[i];\n if (child != null) {\n child = child.treeCopyNoTransform();\n tree.setChild(child, i);\n }\n }\n }\n return tree;\n }", "public Builder clearRecursionDepth() {\n bitField0_ = (bitField0_ & ~0x00000008);\n recursionDepth_ = 0;\n onChanged();\n return this;\n }", "public static Expression VisitChildren(ExpressionVisitor visitor) { throw Extensions.todo(); }", "public Expression simplify() {\r\n return this;\r\n }", "static void flatten(Value value, Collection<Value> result) {\r\n if (value instanceof ContainerValue) {\r\n ContainerValue cont = (ContainerValue) value;\r\n for (int i = 0, size = cont.getElementSize(); i < size; i++) {\r\n flatten(cont.getElement(i), result);\r\n } \r\n } else {\r\n result.add(value);\r\n }\r\n }", "private void expandTree() {\n tree.expand();\n }", "public Tree transformTree(Tree t) {\n return QPtransform(t);\n }", "public void simplify()\n\t\t{\n\t\t\tfor(int o = 0; o < theOperands.length; o++)\n\t\t\t{\n\t\t\t\tif(!(theOperands[o] instanceof ExpressionSearch))\n\t\t\t\t\tcontinue;\n\t\t\t\tExpressionSearch exp = (ExpressionSearch) theOperands[o];\n\t\t\t\texp.simplify();\n\t\t\t\tif(exp.getOperandCount() == 0)\n\t\t\t\t{\n\t\t\t\t\tremove(o);\n\t\t\t\t\to--;\n\t\t\t\t}\n\t\t\t\tif(exp.and == and)\n\t\t\t\t{\n\t\t\t\t\tSearch [] newOps = new Search [theOperands.length + exp.theOperands.length - 1];\n\t\t\t\t\tSystem.arraycopy(theOperands, 0, newOps, 0, o);\n\t\t\t\t\tSystem.arraycopy(exp.theOperands, 0, newOps, o, exp.theOperands.length);\n\t\t\t\t\tSystem.arraycopy(theOperands, o + 1, newOps, o + exp.theOperands.length,\n\t\t\t\t\t\ttheOperands.length - o - 1);\n\t\t\t\t\tfor(Search op : exp.theOperands)\n\t\t\t\t\t\tif(op instanceof CompoundSearch)\n\t\t\t\t\t\t\t((CompoundSearch) op).setParent(this);\n\t\t\t\t\to += exp.theOperands.length - 1;\n\t\t\t\t\ttheOperands = newOps;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "void flatten(TreeNode root) {\n TreeNode tail = root;\n while (tail != null) {\n if (tail.left != null) {\n // 1. Find the right-most node of tail's left\n TreeNode rightMost = tail.left;\n while (rightMost.right != null)\n rightMost = rightMost.right;\n\n // 2. Insert [tail.left -> ... -> rightMost] in between `tail` and `tail.right`\n rightMost.right = tail.right;\n tail.right = tail.left;\n\n // 3. Cut off from tail's left\n tail.left = null;\n }\n\n // 4. Move `tail` one step down on the right\n tail = tail.right;\n }\n }", "public static Expression reduceAndCheck(Expression expression) { throw Extensions.todo(); }", "public Node flatten(Node head) {\n Node p = head;\n while (p != null) {\n if (p.child != null) {\n Node tmp = p.child;\n while (tmp.next != null) {\n tmp = tmp.next;\n }\n Node next = p.next;\n /** add the head of the child linked list to the original. **/\n p.next = p.child;\n p.child.prev = p;\n tmp.next = next;\n if (next != null) {\n next.prev = tmp;\n }\n p.child = null;\n }\n p = p.next;\n }\n return head;\n }", "public void flatten()\n\t{\n\t}", "public void flatten (){\n // Don't need to do anything\n }", "public void unmemoize() {\n\t\tif (children != null) {\t\n\t\t\tfor (Item i : children) {\n\t\t\t\t((TreeItem)i).unmemoize();\n\t\t\t}\n\t\t}\n\t\ttreeLeaves = null;\n\t\tleaves = null;\n\t}", "@Override\n\tpublic int evalTree() {\n\t\tint num;\n\t\tExpressionTree left, right;\n\t\t\n\t\ttry {\n\t\t\tnum = Integer.parseInt(EMPTY + this.getValue());\n\n\t\t\treturn num;\n\t\t}\n\n\t\tcatch (NumberFormatException n) {\n\t\t\tleft = new ExpressionTree(getLeft());\n\t\t\tright = new ExpressionTree(getRight());\n\t\t\tif(TIMES_SIGN.equals(this.getValue()))\n\t\t\t\treturn left.evalTree() * right.evalTree();\n\t\t\telse\n\t\t\t\treturn left.evalTree() + right.evalTree();\n\t\t}\n\t}", "public void flatten (TreeNode root) {\n while (root != null) {\n TreeNode left = root.left;\n if (left != null) {\n while (left.right != null) {\n left = left.right;\n }\n left.right = root.right;\n root.right = root.left;\n root.left = null;\n }\n root = root.right;\n }\n }", "default void flatten() {\n\t\tFieldGraph<F> flatGraph = FieldGraph.of(getFields());\n\t\tC flatClone = cloneFlat();\t// have to clone, because pull doesn't change value if pulling from self\n\t\tfor (F field : getFields())\n\t\t\tpull(field, flatClone, flatGraph);\n\t}", "public void reduce(boolean inclChildren) {\n isExtended = false;\n if (inclChildren)\n for (BudgetAccountTableRow child : children)\n child.reduce(true);\n updateUItoExtState();\n }", "public void rebuild() {\n\t\tif (!divided) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tint totalChildren = 0;\n\t\tfor (QuadTreeNode<E> q : nodes) {\n\t\t\t// If there is a divided child then we cant do anything\n\t\t\tif (q.isDivided()) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\ttotalChildren += q.numPoints();\n\t\t}\n\t\t\n\t\t// If the sum of all the children contained in the sub nodes\n\t\t// is greater than allowed then we cant do anything\n\t\tif (totalChildren > QUADTREE_NODE_CAPACITY) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Add all the nodes from the children to this node then remvoe the nodes\n\t\tpoints = new HashMap<Point, E>();\n\t\tfor (QuadTreeNode<E> q : nodes) {\n\t\t\tpoints.putAll(q.points);\n\t\t}\n\t\t\n\t\tnodes.clear();\n\t\tdivided = false;\n\t}", "public Expression commutativeExp() {\r\n return this;\r\n }", "public static UnaryExpression makeUnary(ExpressionType expressionType, Expression expression, Class type) { throw Extensions.todo(); }", "Expression multExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = powerExpression();\r\n\t\twhile(isKind(OP_TIMES, OP_DIV, OP_MOD)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = powerExpression();\r\n\t\t\te0 = new ExpressionBinary(first,e0,op,e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "private Expression evalExpressionAndSetLeft(Expression exp) {\n Type rightExpression = exp.getRightExpressionType(); // Get the right type from the given expression\n\n\t\t// Expression not filled yet, so return unmodified expression\n\t\tif (rightExpression.equals(Type.EMPTY)) {\n \t\treturn exp;\n \t}\n \tType typeOfExpression = typeConversionRules.expressionType(exp); // Look up the given expression's type in the Type Conversion Rules\n \tif (typeOfExpression == null) {\n \t\tthrow new UndeterminableTypeException(\"Expression not found in Type Conversion Rules\");\n \t}\n\n \t// Set evaluated expression to the expression's left type and reset other fields\n \texp.setLeftExpressionType(typeOfExpression);\n \texp.setExpressionSymbol(Connector.empty);\n \texp.setRightExpressionType(Type.EMPTY);\n \treturn exp;\n }", "public void updateChildNodes() {\n\t\tList<FTNonLeafNode> nodesToRemove = new ArrayList<FTNonLeafNode>();\n\t\tfor (FTNonLeafNode intermediateNode : intermediateNodes.values()) {\n\t\t\tList<FTNode> childNodesToRemove = new ArrayList<FTNode>();\n\t\t\tfor (String childName : intermediateNode.childNodes.keySet()) {\n\t\t\t\tif (intermediateNodes.containsKey(childName)) {\n\t\t\t\t\t// update child node if it has child node\n\t\t\t\t\tFTNonLeafNode childNode = intermediateNodes.get(childName);\n\t\t\t\t\tif ((childNode instanceof FTOrNode) || (childNode instanceof FTAndNode)) {\n\t\t\t\t\t\tintermediateNode.addChildNode(childName, intermediateNodes.get(childName));\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t// if parent node is an OR node\n\t\t\t\t\t\t// remove this child\n\t\t\t\t\t\tif (intermediateNode instanceof FTOrNode) {\n\t\t\t\t\t\t\tchildNodesToRemove.add(childNode);\n\t\t\t\t\t\t\tnodesToRemove.add(childNode);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// if parent node is an AND node\n\t\t\t\t\t\t// remove the parent node and child node\n\t\t\t\t\t\t// and set their values to false in case they are referenced by other nodes\n\t\t\t\t\t\telse if (intermediateNode instanceof FTAndNode) {\n\t\t\t\t\t\t\tnodesToRemove.add(intermediateNode);\n\t\t\t\t\t\t\tnodesToRemove.add(childNode);\n\t\t\t\t\t\t\t// mark the nodes as they are not getting removed till after the loop\n\t\t\t\t\t\t\tintermediateNode.resolved = true;\n\t\t\t\t\t\t\tintermediateNode.nodeValue = false;\n\t\t\t\t\t\t\tchildNode.resolved = true;\n\t\t\t\t\t\t\tchildNode.nodeValue = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tintermediateNode.removeChildNodes(childNodesToRemove);\n\t\t\t// if no child node left for this intermediate node,\n\t\t\t// then its parent node should remove this intermediate node as well\n\t\t}\n\t\t// remove the no child nodes\n\t\tfor (FTNonLeafNode node : nodesToRemove) {\n\t\t\tintermediateNodes.remove(node.nodeName);\n\t\t}\n\t}", "public static Tree QPtransform(Tree t) {\n doTransform(t);\n return t;\n }", "@Override\n\tpublic String visitSubexpr(SubexprContext ctx) {\n\t\t\n\t\tif(ctx.getChildCount()==1)\n\t\t{\n\t\t\treturn visitValue(ctx.value())\t;\t}\n\t\telse\n\t\t{\n\t\t\tString result = \"\";\n\t\t\tresult = \"temp\"+count.count++;\n\t\t\tif(ctx.getChild(1).getText().equals(\"*\"))\n\t\t\t{\n\t\t\t\n\t\t\t\n\t\t\tsb.append(\"MUL \"+visit(ctx.children.get(0))+\" \"+visitValue(ctx.value())+\" \"+ result+\"\\n\");\n\t\t\treturn result;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsb.append(\"DIV \"+visit(ctx.children.get(0))+ \" \"+visitValue(ctx.value())+\" \"+result+\"\\n\");\n\t\t\t\treturn \tresult;\n\t\t\t}\n\t\t}\n\t\n\t}", "public abstract List<Node> expand();", "public RegexNode ReduceSet()\n\t{\n\t\t// Extract empty-set, one and not-one case as special\n\n\t\tif (RegexCharClass.IsEmpty(_str))\n\t\t{\n\t\t\t_type = Nothing;\n\t\t\t_str = null;\n\t\t}\n\t\telse if (RegexCharClass.IsSingleton(_str))\n\t\t{\n\t\t\t_ch = RegexCharClass.SingletonChar(_str);\n\t\t\t_str = null;\n\t\t\t_type += (One - Set);\n\t\t}\n\t\telse if (RegexCharClass.IsSingletonInverse(_str))\n\t\t{\n\t\t\t_ch = RegexCharClass.SingletonChar(_str);\n\t\t\t_str = null;\n\t\t\t_type += (Notone - Set);\n\t\t}\n\n\t\treturn this;\n\t}", "private static FlatLexerRule flattenLexerRule(Rule rule, Map<String, Rule> rules) {\n // Because some rules were resolved as a dependency of another rule,\n // it might happen that it is already flattened.\n if (rule instanceof FlatLexerRule) {\n return (FlatLexerRule) rule;\n }\n\n if (rule instanceof UnresolvedLexerRule) {\n throw new IngridParserException(\n \"Rule '\" + rule.name + \"' must be resolved before flattening\");\n }\n\n LexerRule lexerRule = (LexerRule) rule;\n\n // If we have only one element, we might be looking at a literal rule..\n // We count all elements of all alternatives:\n if (lexerRule.alternatives.size() == 1 && lexerRule.alternatives.get(0).size() == 1) {\n Rule only = lexerRule.alternatives.get(0).get(0);\n if (only instanceof LiteralRule) {\n return new LiteralRule(rule.name, ((LiteralRule) only).value);\n }\n }\n\n // We can construct one big regex out of sub rules\n List<List<String>> regexs = new ArrayList<>();\n\n // Gather all sub rule contents (or resolve them, if wasn't resolved before)\n for (List<Rule> alternative : lexerRule.alternatives) {\n List<String> subRegex = new ArrayList<>();\n\n for (Rule element : alternative) {\n // Is each sub element already resolved?\n if (!(element instanceof FlatLexerRule)) {\n if (element instanceof QuantifierRule) {\n int lastIndex = subRegex.size() - 1;\n\n if (lastIndex < 0) {\n throw new IngridParserException(\"Quantifier suffix found with no prefix regex\");\n }\n\n // If more characters, we might need braces\n // There are cases where we might not, such as [A-Z] or (foo), so might be improved a little\n // It's tricky though, because of cases such as [A-Z][a-z], so simple heuristics is not enough\n String prevRegex = subRegex.get(lastIndex);\n if (prevRegex.length() > 1) {\n prevRegex = '(' + prevRegex + ')';\n }\n\n // We append it to the previous rule\n String quantifier = ((QuantifierRule) element).quantity.toString();\n\n subRegex.set(lastIndex, prevRegex + quantifier);\n\n } else if(element instanceof BlockStartRule) {\n subRegex.add(\"(\");\n } else if(element instanceof BlockEndRule) {\n subRegex.add(\")\");\n } else if(element instanceof BlockAltRule) {\n subRegex.add(\"|\");\n } else if (element instanceof UnresolvedLexerRule) {\n if (!rules.containsKey(element.name)) {\n throw new UnresolvableRuleException(\"Failed to resolve lexer rule '\" + element.name + \"'\");\n }\n\n try {\n FlatLexerRule flatRule = flattenLexerRule(rules.get(element.name), rules);\n rules.put(element.name, flatRule);\n subRegex.add(flatRule.getContent());\n } catch (StackOverflowError t) {\n throw new IngridParserException(\n \"Lexer rule '\" + rule.name + \"' or some of its subrules is recursive! \" +\n \"Ingrid cannot handle cyclic rules :(\");\n }\n } else {\n throw new IngridParserException(\n \"Rule '\" + element.name + \"' (\" + element.getClass().getSimpleName() + \") failed to be flattened\");\n }\n } else {\n // We need to escape literal rule\n // e.g. <?xml to <\\?xml\n String regex;\n if (element instanceof LiteralRule) {\n regex = escapeLiteral((LiteralRule) element);\n } else {\n regex = ((FlatLexerRule) element).getContent();\n }\n\n subRegex.add(regex);\n }\n }\n\n regexs.add(subRegex);\n }\n\n // Build regex from gathered strings\n return new RegexRule(rule.name, buildLexerRegex(regexs));\n }", "private void removeOpRecursive(Operator<?> operator) {\n List<Operator<?>> parentOperators = new ArrayList<Operator<?>>();\n for (Operator<?> op : operator.getParentOperators()) {\n parentOperators.add(op);\n }\n for (Operator<?> parentOperator : parentOperators) {\n Preconditions.checkArgument(parentOperator.getChildOperators().contains(operator),\n \"AssertionError: parent of \" + operator.getName() + \" doesn't have it as child.\");\n parentOperator.removeChild(operator);\n if (parentOperator.getNumChild() == 0) {\n removeOpRecursive(parentOperator);\n }\n }\n }", "public void recursion(final String expression, int countOperation) {\n int numberOfOperations=0;\n String operationString=expression.replace(\" \",\"\");\n for (int i=0; i<operationString.length()-1; i++)\n {\n if(expression.substring(i,i+1).matches(\"\\\\+\")\n ||operationString.substring(i,i+1).matches(\"\\\\-\")\n ||operationString.substring(i,i+1).matches(\"\\\\*\")\n ||operationString.substring(i,i+1).matches(\"/\")\n ||operationString.substring(i,i+1).matches(\"\\\\^\")\n ||operationString.substring(i,i+1).matches(\"i\")\n ||operationString.substring(i,i+1).matches(\"a\")\n ||operationString.substring(i,i+1).matches(\"o\"))\n {\n numberOfOperations++;\n }\n }\n String result;\n int count=0;\n if (operationString.substring(0,1).equals(\"(\"))\n {\n int start=1;\n int end=0;\n count=1;\n while (count<operationString.length() && start!=end)\n {\n String temp=operationString.substring(count,count+1);\n if (temp.equals(\"(\"))\n {\n start++;\n }\n if (temp.equals(\")\"))\n {\n end++;\n }\n count++;\n }\n }\n if (count!=operationString.length() && !operationString.substring(0,1).equals(\"(\"))\n {\n //разбиваем выражения на подвыражения\n List<String> symbols=new ArrayList<>();\n for (int i=0; i<operationString.length()-1;)\n {\n String temp=operationString.substring(i,i+1);\n if (\"+-*/^\".contains(temp))\n {\n symbols.add(temp);\n i++;\n }\n if(temp.equals(\"s\") || temp.equals(\"t\") || temp.equals(\"c\"))\n {\n symbols.add(operationString.substring(i,i+3));\n i=i+3;\n }\n if (temp.matches(\"\\\\d\"))\n {\n int k=i+1;\n StringBuilder sb=new StringBuilder(temp);\n while (k<operationString.length()&&(operationString.substring(k,k+1).matches(\"\\\\d\")||operationString.substring(k,k+1).matches(\"\\\\.\")))\n {\n sb.append(operationString.substring(k,k+1));\n k++;\n }\n i=k;\n symbols.add(new String(sb));\n }\n if (temp.equals(\"(\"))\n {\n int start=1;\n int end=0;\n int k=i+1;\n while(k<operationString.length() && start!=end)\n {\n if (operationString.substring(k,k+1).equals(\"(\"))\n {\n start++;\n }\n if(operationString.substring(k,k+1).equals(\")\"))\n {\n end++;\n }\n k++;\n }\n PrintStream oldOut=System.out;\n String recTemp;\n ByteArrayOutputStream baos=new ByteArrayOutputStream();\n PrintStream ps=new PrintStream(baos);\n System.setOut(ps);\n recursion(operationString.substring(i,k),++countOperation);\n recTemp=baos.toString();\n System.setOut(oldOut);\n symbols.add(recTemp);\n i=k;\n }\n }\n\n for (int i=0; i<symbols.size(); i++)\n {\n if (symbols.get(i).startsWith(\"s\"))\n {\n symbols.set(i,\"\"+Math.sin(Double.parseDouble(symbols.remove(i+1))*Math.PI/180));\n }\n if (symbols.get(i).startsWith(\"t\"))\n {\n symbols.set(i,\"\"+Math.tan(Double.parseDouble(symbols.remove(i+1))*Math.PI/180));\n }\n if (symbols.get(i).startsWith(\"c\"))\n {\n symbols.set(i,\"\"+Math.cos(Double.parseDouble(symbols.remove(i+1))*Math.PI/180));\n }\n }\n for (int i=0; i<symbols.size();)\n {\n if (symbols.get(i).equals(\"^\"))\n {\n symbols.set(i-1, Math.pow(Double.parseDouble(symbols.get(i - 1)), Double.parseDouble(symbols.get(i + 1))) + \"\");\n symbols.remove(i);\n symbols.remove(i);\n i--;\n }\n i++;\n }\n for (int i=0; i<symbols.size();)\n {\n if (symbols.get(i).equals(\"/\"))\n {\n symbols.set(i-1, Double.parseDouble(symbols.get(i - 1))/Double.parseDouble(symbols.get(i + 1)) + \"\");\n symbols.remove(i);\n symbols.remove(i);\n i--;\n }\n if (symbols.get(i).equals(\"*\"))\n {\n symbols.set(i-1, Double.parseDouble(symbols.get(i - 1))*Double.parseDouble(symbols.get(i + 1)) + \"\");\n symbols.remove(i);\n symbols.remove(i);\n i--;\n }\n i++;\n }\n for (int i=0; i<symbols.size(); i++)\n {\n if (symbols.get(i).equals(\"-\"))\n {\n symbols.set(i,\"-\"+symbols.remove(i+1));\n }\n if (symbols.get(i).equals(\"+\"))\n {\n symbols.remove(i);\n i--;\n }\n }\n double answer=0;\n for (String s:symbols)\n {\n answer=answer+Double.parseDouble(s);\n }\n result=answer+\"\";\n countOperation--;\n }\n else\n {\n //отбрасываем начальные и конечные скобки\n operationString=operationString.substring(1,operationString.length()-1);\n PrintStream oldOut=System.out;\n ByteArrayOutputStream baos=new ByteArrayOutputStream();\n PrintStream ps=new PrintStream(baos);\n System.setOut(ps);\n recursion(operationString,++countOperation);\n result=baos.toString();\n System.setOut(oldOut);\n }\n if (countOperation==0)\n {\n System.out.println(result+\" \"+numberOfOperations);\n }\n else\n {\n System.out.println(result);\n }\n }", "public ExpressionTree()\n\t\t{\n\t root = null;\n\t\t}", "public final void expressionRoot() {\n ManchesterOWLSyntaxTree EXPRESSION1 = null;\n ManchesterOWLSyntaxAutoComplete.expression_return e = null;\n try {\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:82:5:\n // ( ^( EXPRESSION e= expression ) )\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:82:9:\n // ^( EXPRESSION e= expression )\n {\n EXPRESSION1 = (ManchesterOWLSyntaxTree) match(input, EXPRESSION,\n FOLLOW_EXPRESSION_in_expressionRoot155);\n if (state.failed) {\n return;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return;\n }\n pushFollow(FOLLOW_expression_in_expressionRoot161);\n e = expression();\n state._fsp--;\n if (state.failed) {\n return;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return;\n }\n if (state.backtracking == 1) {\n EXPRESSION1.setCompletions(e.node.getCompletions());\n }\n }\n } catch (@SuppressWarnings(\"unused\") RecognitionException | RewriteEmptyStreamException exception) {}\n return;\n }", "public Expression concat(Expression expr) {\r\n\t\telements.addAll(expr.elements);\r\n\t\treturn this;\r\n\t}", "@Override\n public JsonNode visit(JmesPathSubExpression subExpression, JsonNode input) throws InvalidTypeException {\n JsonNode prelimnaryResult = subExpression.getExpressions().get(0).accept(this, input);\n for (int i = 1; i < subExpression.getExpressions().size(); i++) {\n prelimnaryResult = subExpression.getExpressions().get(i).accept(this, prelimnaryResult);\n }\n return prelimnaryResult;\n }", "@SuppressWarnings({\"unchecked\"})\n private void expandStack() {\n T[] newStack;\n \n newStack = (T[]) new Object[Array.getLength(this.elements) + 1];\n for( int i = 0; i < Array.getLength(this.elements); i++ )\n newStack[i] = this.elements[i];\n this.elements = newStack;\n }", "private Code<?> transform(Code.Quantifier e) {\n\t\tPair<SemanticType, Integer>[] e_types = e.types;\n\t\tPair<SemanticType, Integer>[] n_types = new Pair[e_types.length];\n\t\tCode<?> invariant = null;\n\t\tfor (int i = 0; i != e_types.length; ++i) {\n\t\t\tPair<SemanticType, Integer> p1 = e_types[i];\n\t\t\tCode.Variable var = Code.Variable(p1.first(), p1.second());\n\t\t\tPair<SemanticType,Code<?>> p2 = expand(var, p1.first(), 0);\n\t\t\tn_types[i] = new Pair<SemanticType,Integer>(p2.first(),p1.second());\n\t\t\tCode<?> ei = p2.second();\t\t\t\n\t\t\tif (ei != null) {\n\t\t\t\tinvariant = invariant == null ? ei : and(invariant, ei);\n\t\t\t}\n\t\t}\n\t\tCode<?> body = transform(e.operands[0]);\n\t\tif (invariant != null) {\n\t\t\t// We need to treat universal and existential quantifiers\n\t\t\t// differently.\n\t\t\tif(e.opcode == Code.Op.EXISTS) {\n\t\t\t\tbody = and(invariant, body);\n\t\t\t} else {\n\t\t\t\tbody = implies(invariant, body);\n\t\t\t}\n\t\t}\n\t\treturn Code.Quantifier(e.type, e.opcode, body, n_types, e.attributes());\n\t}", "public ArrayList<String> convertToRPN(String[] expression) {\n ArrayList<String> result = new ArrayList<String>();\n if (expression == null || expression.length == 0) {\n return result;\n }\n \n ExpressionTreeNode root = build(expression);\n Stack<ExpressionTreeNode> stack = new Stack<ExpressionTreeNode>();\n ExpressionTreeNode curr = null;\n ExpressionTreeNode prev = null;\n if (root == null) { // take care of here, null root can also be pushed to stack\n return result;\n }\n stack.push(root);\n while (!stack.isEmpty()) {\n curr = stack.peek();\n if (prev == null || prev.left == curr || prev.right == curr) {\n if (curr.left != null) {\n stack.push(curr.left);\n } else if (curr.right != null) {\n stack.push(curr.right);\n }\n } else if (curr.left == prev) {\n if (curr.right != null) {\n stack.push(curr.right);\n }\n } else {\n result.add(stack.pop().expression);\n }\n prev = curr;\n }\n \n return result;\n }", "public Call treeCopy() {\n Call tree = (Call) copy();\n if (children != null) {\n for (int i = 0; i < children.length; ++i) {\n ASTNode child = (ASTNode) getChild(i);\n if (child != null) {\n child = child.treeCopy();\n tree.setChild(child, i);\n }\n }\n }\n return tree;\n }", "public abstract Type treeCopyNoTransform();", "@Override\n public Expression simplify() {\n try {\n return new Num(this.evaluate());\n } catch (Exception e) {\n if (getExpression1().simplify().toString().equals(getExpression2().simplify().toString())) {\n return new Num(0);\n }\n if (getExpression1().simplify().toString().equals(\"0.0\")) {\n return new Neg(getExpression2().simplify());\n }\n if (getExpression2().simplify().toString().equals(\"0.0\")) {\n return getExpression1().simplify();\n }\n return new Minus(getExpression1().simplify(), getExpression2().simplify());\n }\n }", "@Override\n public R visit(AdditiveExpression n, A argu) {\n R _ret = null;\n n.multiplicativeExpression.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n return _ret;\n }", "private void subdivide() {\n if (!hasChildren) {\n hasChildren = true;\n this.children = new QuadtreeNodeChildren(this);\n } else {\n return;\n }\n }", "public void recomputeTree() {\n\t\tsuperRoot = factory.createTreeNode(null, this);\n\t\tlayoutToTree.put(null, superRoot);\n\t\tcreateTrees(context.getNodes());\n\t}", "public final VecMathParser.expr_return expr() throws RecognitionException {\n VecMathParser.expr_return retval = new VecMathParser.expr_return();\n retval.start = input.LT(1);\n\n Object root_0 = null;\n\n Token char_literal8=null;\n VecMathParser.multExpr_return multExpr7 = null;\n\n VecMathParser.multExpr_return multExpr9 = null;\n\n\n Object char_literal8_tree=null;\n\n try {\n // /Users/parrt/research/book/TPDSL/Book/code/walking/tree-grammar/VecMath.g:15:5: ( multExpr ( '+' multExpr )* )\n // /Users/parrt/research/book/TPDSL/Book/code/walking/tree-grammar/VecMath.g:15:7: multExpr ( '+' multExpr )*\n {\n root_0 = (Object)adaptor.nil();\n\n pushFollow(FOLLOW_multExpr_in_expr117);\n multExpr7=multExpr();\n\n state._fsp--;\n\n adaptor.addChild(root_0, multExpr7.getTree());\n // /Users/parrt/research/book/TPDSL/Book/code/walking/tree-grammar/VecMath.g:15:16: ( '+' multExpr )*\n loop3:\n do {\n int alt3=2;\n int LA3_0 = input.LA(1);\n\n if ( (LA3_0==10) ) {\n alt3=1;\n }\n\n\n switch (alt3) {\n \tcase 1 :\n \t // /Users/parrt/research/book/TPDSL/Book/code/walking/tree-grammar/VecMath.g:15:17: '+' multExpr\n \t {\n \t char_literal8=(Token)match(input,10,FOLLOW_10_in_expr120); \n \t char_literal8_tree = (Object)adaptor.create(char_literal8);\n \t root_0 = (Object)adaptor.becomeRoot(char_literal8_tree, root_0);\n\n \t pushFollow(FOLLOW_multExpr_in_expr123);\n \t multExpr9=multExpr();\n\n \t state._fsp--;\n\n \t adaptor.addChild(root_0, multExpr9.getTree());\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop3;\n }\n } while (true);\n\n\n }\n\n retval.stop = input.LT(-1);\n\n retval.tree = (Object)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (Object)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "public void prune() {\n this.getTree().prune();\n }", "public static Temp evalExpression(CommonTree tree){\n\t\t// leaf node, int/float/id\n\n\t\tif (tree.getChildCount() == 0){\n\t\t\tTemp temp = new Temp(temperaryNum++,tree.getType(),tree.getText());\n\t\t\tif (tree.getType() == LittleParser.INTLITERAL){\n\t\t\t\tircode.add(new ThreeOpCode(\"STOREI\",tree.getText(),temp.getName()));\n\t\t\t}\n\t\t\telse if(tree.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\tircode.add(new ThreeOpCode(\"STOREF\",tree.getText(),temp.getName()));\n\t\t\t}\n\t\t\telse{ // look up the variable in the symbol table to set type, use var_name instead of $Tx and recycle $Tx\n\t\t\t\ttemp.setType(allTables.lookupType(temp.getValue().trim()));\n\t\t\t\ttemp.setName(tree.getText());\n\t\t\t\ttemperaryNum--;\n\t\t\t}\n\t\t\treturn temp;\n\t\t}\n\t\t// Not a leaf node, evaluate children expressions\n\t\telse{\n\t\t\t// test for function call\n\t\t\tif (tree.getType() == LittleParser.FUNC_CALL){\n\t\t\t\t// add IR for evaluating the function and return temperary for return value\n\t\t\t\t// after it has been popped off the stack\n\t\t\t\treturn evalFunction(tree);\n\t\t\t}\n\t\t\t//\t\t\tif (tree.getChild(0).getChildCount() == 0 && tree.getChild(1).getChildCount() == 0){\n\t\t\t//\t\t\t\tif ()\n\t\t\t//\t\t\t}\n\t\t\tTemp left = evalExpression((CommonTree) tree.getChild(0));\n\t\t\tTemp right = evalExpression((CommonTree) tree.getChild(1));\n\n\t\t\tTemp temp = new Temp(temperaryNum++,left.getType(), \"EXP\");\n\t\t\tif (tree.getText().contains(\"+\")){ // add\n\t\t\t\tif (left.getType() == LittleParser.INTLITERAL && right.getType() == LittleParser.INTLITERAL){\n\t\t\t\t\tircode.add(new ThreeOpCode(\"ADDI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == LittleParser.FLOATLITERAL || right.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\t\tircode.add(new ThreeOpCode(\"ADDR\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t} //both parameters\n\t\t\t\telse if (left.getType() == -1 && right.getType() == -1){\n\t\t\t\t\t//System.out.println(left.getName() + \": \" + left.getType() + \" \" + right.getName() + \": \" + right.getType());\n\t\t\t\t\t// need to lookup symbol in main and then global to find type\n\t\t\t\t\tint ltype = allTables.lookupType(left.name);\n\t\t\t\t\tint rtype = allTables.lookupType(right.name);\n\t\t\t\t\tif (ltype == LittleParser.INTLITERAL && rtype == LittleParser.INTLITERAL){\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"ADDI\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"ADDR\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tircode.add(new ThreeOpCode(\"ADDI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\ttemp.setType(LittleParser.INTLITERAL);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (tree.getText().contains(\"-\")){ // subtract\n\t\t\t\tif (left.getType() == LittleParser.INTLITERAL && right.getType() == LittleParser.INTLITERAL){\n\t\t\t\t\tircode.add(new ThreeOpCode(\"SUBI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == LittleParser.FLOATLITERAL || right.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\t\tircode.add(new ThreeOpCode(\"SUBR\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == -1 && right.getType() == -1){\n\t\t\t\t\t//System.out.println(left.getName() + \": \" + left.getType() + \" \" + right.getName() + \": \" + right.getType());\n\t\t\t\t\t// need to lookup symbol in main and then global to find type\n\t\t\t\t\tint ltype = allTables.lookupType(left.name);\n\t\t\t\t\tint rtype = allTables.lookupType(right.name);\n\t\t\t\t\tif (ltype == LittleParser.INTLITERAL && rtype == LittleParser.INTLITERAL){\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"SUBI\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"SUBR\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tircode.add(new ThreeOpCode(\"SUBI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\ttemp.setType(LittleParser.INTLITERAL);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (tree.getText().contains(\"*\")){ // multiply\n\t\t\t\tif (left.getType() == LittleParser.INTLITERAL && right.getType() == LittleParser.INTLITERAL){\n\t\t\t\t\t//System.out.println(\"MULTI \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"MULI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == LittleParser.FLOATLITERAL || right.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\t\t//System.out.println(\"MULTF \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"MULR\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == -1 && right.getType() == -1){\n\t\t\t\t\t//System.out.println(left.getName() + \": \" + left.getType() + \" \" + right.getName() + \": \" + right.getType());\n\t\t\t\t\t// need to lookup symbol in main and then global to find type\n\t\t\t\t\tint ltype = allTables.lookupType(left.name);\n\t\t\t\t\tint rtype = allTables.lookupType(right.name);\n\t\t\t\t\tif (ltype == LittleParser.INTLITERAL && rtype == LittleParser.INTLITERAL){\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"MULI\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"MULR\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t//System.out.println(\"MULTI \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"MULI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\ttemp.setType(LittleParser.INTLITERAL);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{ // divide\n\t\t\t\tif (right.getType() == LittleParser.INTLITERAL && left.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\t\t//System.out.println(\"DIVI \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"DIVI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (right.getType() == LittleParser.FLOATLITERAL || left.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\t\t//System.out.println(\"DIVF \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"DIVR\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == -1 && right.getType() == -1){\n\t\t\t\t\t//System.out.println(left.getName() + \": \" + left.getType() + \" \" + right.getName() + \": \" + right.getType());\n\t\t\t\t\t// need to lookup symbol in main and then global to find type\n\t\t\t\t\tint ltype = allTables.lookupType(left.name);\n\t\t\t\t\tint rtype = allTables.lookupType(right.name);\n\t\t\t\t\tif (ltype == LittleParser.INTLITERAL && rtype == LittleParser.INTLITERAL){\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"DIVI\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"DIVR\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t//System.out.println(\"DIVI \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"DIVI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\ttemp.setType(LittleParser.INTLITERAL);\n\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn temp;\n\t\t}\n\n\t}", "public T expr(final Expression expression) {\r\n\t\tif (expression.values() == null)\r\n\t\t\treturn expr(expression.expression());\r\n\t\treturn expr(expression.expression(), expression.values()\r\n\t\t\t\t.toArray());\r\n\t}", "public Composite multiply(Composite comp) {\n\t\tif(comp.isUnit()){\n\t\t\treturn this;\n\t\t}\n\t\tif(this.isUnit()){\n\t\t\treturn comp;\n\t\t}\n\t\tNode head = comp.head;\n\t\tNode current_node = this.head;\n\t\t//long product = 1;\n\t\tBigInteger product = BigInteger.ONE;\n\t\twhile (current_node != null){\n\t\t\tlong factor = (long) Math.pow(current_node.factor, current_node.power);\n\t\t\tproduct = product.multiply(BigInteger.valueOf(factor));\n\t\t\tcurrent_node = current_node.next;\n\t\t}\n\t\twhile (comp.head != null){\n\t\t\tlong factor = (long)Math.pow(comp.head.factor, comp.head.power);\n\t\t\tproduct = product.multiply(BigInteger.valueOf(factor));\n\t\t\tcomp.head = comp.head.next;\n\t\t}\n\t\tComposite p = new Composite();\n\t\tNode n = new Node(product.longValue(), 1);\n\t\tp.head = n;\n\t\tcomp.head = head;\n\t\treturn p;\n\t}", "private static void doTransform(Tree t) {\n\n if (t.value().startsWith(\"QP\")) {\n //look at the children\n List<Tree> children = t.getChildrenAsList();\n if (children.size() >= 3 && children.get(0).isPreTerminal()) {\n //go through the children and check if they match the structure we want\n String child1 = children.get(0).value();\n String child2 = children.get(1).value();\n String child3 = children.get(2).value();\n if((child3.startsWith(\"CD\") || child3.startsWith(\"DT\")) &&\n (child1.startsWith(\"RB\") || child1.startsWith(\"JJ\") || child1.startsWith(\"IN\")) &&\n (child2.startsWith(\"IN\") || child2.startsWith(\"JJ\"))) {\n transformQP(t);\n }\n }\n /* --- to be written or deleted\n } else if (t.value().startsWith(\"NP\")) {\n //look at the children\n List<Tree> children = t.getChildrenAsList();\n if (children.size() >= 3) {\n\n }\n ---- */\n } else if (t.isPhrasal()) {\n for (Tree child : t.getChildrenAsList()) {\n doTransform(child);\n }\n }\n }", "public static UnaryExpression unbox(Expression expression, Class type) {\n return makeUnary(ExpressionType.Unbox, expression, type);\n }", "public Polynomial visit(ProductExpression expression) {\n return Polynomial.multiply(\n expression.getLeft().accept(this),\n expression.getRight().accept(this));\n }", "private void postfix(ExpressionNodes root, StringBuilder sb)\n\t {\n\t \tif (root.left != null) // if there is a left child\n\t \t{ \n\t \t\tpostfix(root.left, sb); // run recursive method\n\t \t}\n\t \t\n\t \tif (root.right != null) // if there is a right child\n\t \t{ \n\t \t\tpostfix(root.right, sb); // run recursive method \n\t \t}\n\t \t\n\t \t// add the string of this node to the the string builder \n\t \tsb.append(root.data);\n\t \t\n\t \t// add a space in between nodes for clarity.\n\t \tsb.append(\" \");\n\t }", "private List<MutateOperation> removeDescendantsAndFilter(String resourceName) {\n List<MutateOperation> operations = new ArrayList<>();\n\n if (this.parentsToChildren.containsKey(resourceName)) {\n Set<String> children = parentsToChildren.get(resourceName);\n for (String child : children) {\n // Recursively adds operations to the return value that remove each of the child nodes of\n // the current node from the tree.\n operations.addAll(removeDescendantsAndFilter(child));\n }\n }\n\n // Creates and adds an operation to the return value that will remove the current node from\n // the tree.\n AssetGroupListingGroupFilterOperation operation =\n AssetGroupListingGroupFilterOperation.newBuilder().setRemove(resourceName).build();\n operations.add(\n MutateOperation.newBuilder().setAssetGroupListingGroupFilterOperation(operation).build());\n return operations;\n }", "ArrayList<Expression> getChildren();", "private static String infixToPostfix(String expression)\r\n {\r\n String result = \"\";\r\n char current_char = ' ';\r\n int index = 0;\r\n StackInterface<Character> operand_stack = new ArrayStack<>();\r\n switch(stack_type)\r\n {\r\n case(\"vector\"):\r\n operand_stack = new VectorStack<>();\r\n break;\r\n \r\n case(\"linked\"):\r\n operand_stack = new LinkedListStack<>();\r\n break;\r\n }\r\n\r\n //iterates through every character and puts them in the stack or the result accordingly\r\n while(index < expression.length())\r\n {\r\n current_char = expression.charAt(index);\r\n switch(current_char)\r\n {\r\n //checks if the character is an operand and if so checks if it should pop the previous input or not\r\n case '+': case '-': case '*': case '/':\r\n if(!operand_stack.isEmpty())\r\n {\r\n while(!operand_stack.isEmpty() && getOperandImportance(current_char) <= getOperandImportance(operand_stack.peek()))\r\n {\r\n result += operand_stack.pop();\r\n }\r\n operand_stack.push(current_char);\r\n }\r\n else\r\n {\r\n operand_stack.push(current_char);\r\n }\r\n break;\r\n\r\n //exponents are always pushed onto the stack\r\n case '^':\r\n operand_stack.push(current_char);\r\n break;\r\n\r\n //if an open delimiter is there, we add it to the stack\r\n case '(': case '{': case '[':\r\n operand_stack.push(current_char);\r\n break;\r\n \r\n //if the delimiter is closing we pop until we find the open equivalent\r\n case ')': case '}': case ']':\r\n while(operand_stack.peek() != delimiterEquivalent(current_char))\r\n {\r\n result += operand_stack.pop();\r\n }\r\n operand_stack.pop();\r\n break;\r\n\r\n case ' ':\r\n break;\r\n\r\n default: \r\n result += current_char;\r\n break;\r\n }\r\n index++;\r\n }\r\n\r\n //pops everything left in the stack to the result at the end\r\n while(!operand_stack.isEmpty())\r\n {\r\n result += operand_stack.pop();\r\n }\r\n\r\n return result;\r\n }", "public void decreaseCurrentDepth(){\n currentDepth--;\n if (this.children == null) generateChildren();\n else {\n for (Node child : this.children) child.decreaseCurrentDepth();\n }\n }", "Unary expr(Expr e);", "public List<Expression> getSubExpressions();", "static <QUERY> void outputExpressions(QueryDialect_SQL dialect, IEntityModelUtil entityModelUtil, QueryBuilder s, ExecutableQueryExpressions expressions, EFieldAccessType fieldReferenceType) {\n\t\t\n\t\tint level = 0;\n\t\tint [] context = new int[100]; // probably less than 100 nested-levels\n\t\t\n\t\tcontext[0] = 0; // just one root expression\n\t\t\n\t\toutputExpression(dialect, entityModelUtil, s, expressions, fieldReferenceType, level, context);\n\t}", "public static List<Element> Exp2Rpn(String expression) {\r\n\t\tList<String> tokenList = tokenize(expression);\r\n\t\tList<Element> rpn = new LinkedList<Element>();\r\n\t\tStack<Element> stack = new Stack<Element>();\r\n\r\n\t\tfor (String token : tokenList) {\r\n\t\t\tElement currentElement = string2Element(token);\r\n\r\n\t\t\tif (currentElement.isOperator()) {\r\n\t\t\t\twhile (!stack.empty() && precedence(stack.peek(), currentElement) == 1) {\r\n\t\t\t\t\trpn.add(stack.pop());\r\n\t\t\t\t}\r\n\t\t\t\tstack.push(currentElement);\r\n\t\t\t} else if (currentElement.isNumber()) {\r\n\t\t\t\trpn.add(currentElement);\r\n\t\t\t} else if (currentElement.isLeftParenthesis()) {\r\n\t\t\t\tstack.push(currentElement);\r\n\t\t\t} else if (currentElement.isRightParenthesis()) {\r\n\t\t\t\twhile (!stack.peek().isLeftParenthesis()) {\r\n\t\t\t\t\trpn.add(stack.pop());\r\n\t\t\t\t}\r\n\t\t\t\tstack.pop(); // pops '('\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\twhile (!stack.empty()) {\r\n\t\t\trpn.add(stack.pop());\r\n\t\t}\r\n\r\n\t\treturn rpn;\r\n\t}", "@Override\n\tAlgebraicExpression clone();", "public ASTNode simplify() {\n ASTNode mat=getChildConst(0);\n \n if(mat instanceof CompoundMatrix) {\n if(getChild(1).isConstant()) { // If the index is a constant, evaluate it. \n long idx=getChild(1).getValue();\n if(idx<1 || idx>=(mat.numChildren())) {\n return null; // out of bounds -- do not attempt to evaluate it. \n }\n else {\n ASTNode elem=mat.getChild( (int)idx ); // Index from 1. Index domain is in position 0.\n if(mat==getChild(0)) {\n elem.setParent(null);\n }\n return elem;\n }\n }\n \n Intpair a=getChild(1).getBounds();\n int numelements=mat.numChildren()-1;\n \n if(a.upper<numelements) {\n // Always safe to trim the right-hand end of the matrix\n ArrayList<ASTNode> newelements=list();\n if(mat==getChild(0)) {\n mat.detachChildren();\n }\n getChild(1).setParent(null);\n for(int i=1; i<=a.upper; i++) newelements.add(mat.getChild(i));\n return new ElementOne(CompoundMatrix.make(newelements), getChild(1));\n }\n \n // IF the index is not yet flattened, then trim both ends.\n if(getChild(1).toFlatten(false) && (a.lower>1 || a.upper<numelements)) {\n // Trim the ends of the compound matrix by the bounds of the index variable. \n // Does not deal with holes in the index domain. This would require a table constraint. \n // Potentially unflattens the index variable. dangerous. \n ArrayList<ASTNode> newelements=list();\n \n if(a.lower<1) a.lower=1;\n if(a.upper>numelements) a.upper=numelements;\n if(mat==getChild(0)) {\n mat.detachChildren();\n }\n getChild(1).setParent(null);\n for(long i=a.lower; i<=a.upper; i++) newelements.add(mat.getChild((int)i));\n return new ElementOne(CompoundMatrix.make(newelements), BinOp.makeBinOp(\"-\", getChild(1), NumberConstant.make(a.lower-1)));\n }\n\t }\n\t \n\t return null;\n\t}", "@Override\r\n\tpublic void visit(UnaryExpression unaryExpression) {\n\r\n\t}", "public List<PlanNode> removeAllChildren() {\n if (this.children.isEmpty()) {\n return new ArrayList<PlanNode>(0);\n }\n List<PlanNode> copyOfChildren = new ArrayList<PlanNode>(this.children);\n for (Iterator<PlanNode> childIter = this.children.iterator(); childIter.hasNext();) {\n PlanNode child = childIter.next();\n childIter.remove();\n child.parent = null;\n }\n return copyOfChildren;\n }", "private ParseTree transformLeftHandSideExpression(ParseTree tree) {\n switch (tree.type) {\n case ARRAY_LITERAL_EXPRESSION:\n case OBJECT_LITERAL_EXPRESSION:\n resetScanner(tree);\n // If we fail to parse as an LeftHandSidePattern then\n // parseLeftHandSidePattern will take care reporting errors.\n return parseLeftHandSidePattern();\n default:\n return tree;\n }\n }", "public Object clone() throws CloneNotSupportedException {\r\n\t\t// Shallow clone\r\n\t\tExpression v = (Expression) super.clone();\r\n\t\tv.eval_stack = null;\r\n\t\t// v.text = new StringBuffer(new String(text));\r\n\t\tint size = elements.size();\r\n\t\tArrayList cloned_elements = new ArrayList(size);\r\n\t\tv.elements = cloned_elements;\r\n\r\n\t\treturn v;\r\n\t}", "public Builder clearRecursive() {\n if (recursiveBuilder_ == null) {\n recursive_ = null;\n onChanged();\n } else {\n recursive_ = null;\n recursiveBuilder_ = null;\n }\n\n return this;\n }", "@Override\n public void reduce() {\n if(null != getState())\n switch(getState()) {\n case OPERATOR:\n if (getDispenser().tokenIsOperator() && numOpNumOnStack())\n priorityReduce();\n break;\n case RIGHT_PAREN:\n if (getDispenser().tokenIsRightParen()) {\n if (!getStack().contains('('))\n throw new RuntimeException(\"Error -- mismatched parentheses\");\n while ((char)getStack().get(getStack().size() - 2) != '(')\n reduceNumOpNum();\n double aNum = (double)getStack().pop();\n getStack().pop();\n getStack().push(aNum);\n }\n break;\n case END:\n if (getDispenser().tokenIsEOF()) {\n if(getStack().contains('('))\n throw new RuntimeException(\"Error -- mismatched parentheses\");\n while(numOpNumOnStack())\n reduceNumOpNum();\n if(getStack().size() != 1)\n throw new RuntimeException(\"Error -- mismatched parentheses\");\n }\n break;\n }\n }", "public String expressionExpand(String s) {\n if (s == null) {\n return \"\";\n }\n Stack<StringBuilder> stk = new Stack<>();\n stk.push(new StringBuilder());\n for (int i = 0; i < s.length(); i++) {\n if (Character.isDigit(s.charAt(i))) {\n int j = i + 1;\n while (j < s.length() && Character.isDigit(s.charAt(j))) {\n j++;\n }\n String num = s.substring(i, j);\n stk.push(new StringBuilder(num));\n stk.push(new StringBuilder());\n i = j; // skip [\n } else if (Character.isLetter(s.charAt(i))) {\n stk.peek().append(s.charAt(i));\n } else if (s.charAt(i) == ']') {\n StringBuilder next = stk.pop();\n int num = Integer.valueOf(stk.pop().toString());\n while (num > 0) {\n stk.peek().append(next);\n num--;\n }\n }\n }\n return stk.pop().toString();\n }", "public static void main(String[] args) {\n \n LinkedBinaryTree expr = new LinkedBinaryTree<String>();\n // a is the root of the tree\n Position a, b, c, d, e, f, g, h, i;\n a = expr.addRoot(\"*\");\n b = expr.addLeft(a, \"+\");\n c = expr.addLeft(b, \"/\");\n d = expr.addLeft(c, \"*\");\n e = expr.addLeft(d, \"+\");\n expr.addLeft(e, \"5\");\n expr.addRight(e, \"2\");\n f = expr.addRight(d, \"-\");\n expr.addLeft(f, \"2\");\n expr.addRight(f, \"1\");\n g = expr.addRight(c, \"+\");\n expr.addLeft(g, \"2\");\n expr.addRight(g, \"9\");\n h = expr.addRight(b, \"-\");\n i = expr.addLeft(h, \"-\");\n expr.addLeft(i, \"7\");\n expr.addRight(i, \"2\");\n expr.addRight(h, \"1\");\n expr.addRight(a, \"8\");\n \n System.out.println(\"The original expression:\");\n System.out.println(\"(((5+2)*(2–1)/(2+9)+((7–2)–1))*8)\\n\");\n \n System.out.println(\"Preorder traversal:\");\n Iterable<Position<String>> preIter = expr.preorder();\n for (Position<String> s : preIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Inorder traversal:\");\n Iterable<Position<String>> inIter = expr.inorder();\n for (Position<String> s : inIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Postorder traversal:\");\n Iterable<Position<String>> postIter = expr.postorder();\n for (Position<String> s : postIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Breadth traversal:\");\n Iterable<Position<String>> breadthIter = expr.breadthfirst();\n for (Position<String> s : breadthIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Parenthesized representation:\"); \n printParenthesize(expr, a);\n System.out.println();\n }", "public StatementParse addSubTransform(StatementParse node) {\n\n ArrayList<StatementParse> expanded = this.expandNode(node);\n expanded = this.nonConstantFirst(expanded);\n expanded = this.collapseExpression(expanded);\n expanded = this.positiveFirst(expanded);\n node = this.reconstructTree(expanded);\n return node;\n }", "public void rewrite(LogicalPlan input) throws QueryCompilationException\n {\n // Stack the logical operators for a bottom-up and right-to-left traversal\n Stack<Operator> stack_logical = new Stack<Operator>();\n LogicalPlanUtil.stackBottomUpRightToLeft(input.getRootOperator(), stack_logical);\n \n // Remove the duplicate Navigate bottom-up\n while (!stack_logical.isEmpty())\n {\n Operator current_op = stack_logical.pop();\n if (current_op instanceof Navigate)\n {\n Navigate current_nav = (Navigate) current_op;\n RelativeVariable duplicate = getDuplicate(current_nav);\n if (duplicate != null)\n {\n // Remove the current Navigate operator and update the variable references above\n Operator child = current_nav.getChild();\n LogicalPlanUtil.remove(current_op);\n m_substitutions.clear();\n m_substitutions.put(current_nav.getAliasVariable(), duplicate);\n VariableReferencesUpdater var_ref_updater = new VariableReferencesUpdater();\n Operator op = child;\n do\n {\n op = op.getParent();\n if (op == null) break;\n op.accept(var_ref_updater);\n op.updateOutputInfo();\n } while (!(op instanceof Project || op instanceof GroupBy));\n }\n else\n {\n m_navigate_vars.put(current_nav.getAliasVariable(), current_nav);\n }\n }\n }\n }", "public ExpressionNode getSubTree(boolean useTerminal) throws CloneNotSupportedException {\n if (useTerminal) {\n if (arity == 0) {\n return this.clone();\n } else {\n return child[random.nextInt(arity)].getSubTree(true);\n }\n } else {\t// get a non-root, non-terminal node\n int target = random.nextInt(this.deepestNode() - 1) + 1;\n return this.getNodeAtDepth(target);\n }\n }", "protected void expand() {\n matrix = matrix.power(e);\n }", "private TreeNode exprTreeHelper(String expr) {\n if (expr.charAt(0) != '(') {\n \n \treturn new TreeNode(expr); // you fill this in\n } else{\n // expr is a parenthesized expression.\n // Strip off the beginning and ending parentheses,\n // find the main operator (an occurrence of + or * not nested\n // in parentheses, and construct the two subtrees.\n int nesting = 0;\n int opPos = 0;\n char myChar='\\0';\n \n for (int k = 1; k < expr.length() - 1; k++) {\n myChar = expr.charAt(k);\n \tif(myChar == '('){\n \tnesting++;\n }\n if(myChar==')'){\n \tnesting--;\n }\n if(nesting == 0){\n \tif(myChar == '+' || myChar == '*'){\n \t\topPos = k;\n \t break;\t\n \t}\n }\n }\n \n String opnd1 = expr.substring(1, opPos);\n String opnd2 = expr.substring(opPos + 1, expr.length() - 1);\n String op = expr.substring(opPos, opPos + 1);\n System.out.println(\"expression = \" + expr);\n System.out.println(\"operand 1 = \" + opnd1);\n System.out.println(\"operator = \" + op);\n System.out.println(\"operand 2 = \" + opnd2);\n System.out.println();\n return new TreeNode(op,exprTreeHelper(opnd1),exprTreeHelper(opnd2));\n \n }\n }", "protected SortedSet<Operation> nestOperations(SortedSet<Operation> operations) {\n\t\tSet<Operation> markedForRemoval = new HashSet<Operation>();\n\t\tfor (Operation op : operations) {\n\t\t\tSortedSet<Operation> toBeNested = new TreeSet<Operation>(SORT_BY_POSITION_AND_SUSPECT_TYPE);\n\t\t\tif (toBeNested.contains(op)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tSourcePosition opPos = op.getPosition();\n\t\t\tSortedSet<Operation> tailSet = operations.tailSet(op);\n\t\t\tIterator<Operation> tailIter = tailSet.iterator();\n\t\t\ttailIter.next(); // skip op itself\n\t\t\twhile (tailIter.hasNext()) {\n\t\t\t\tOperation tailOp = tailIter.next();\n\t\t\t\tSourcePosition tailOpPos = tailOp.getPosition();\n\t\t\t\tif (tailOpPos.getURL().equals(opPos.getURL()) && tailOpPos.getStartOffset() < opPos.getEndOffset()) {\n\t\t\t\t\t// if the next operation has the same URL and should be nested.\n\t\t\t\t\ttoBeNested.add(tailOp);\n\t\t\t\t} else {\n\t\t\t\t\t// no need to look further, there won't be any nesting further down\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (toBeNested.size() > 0) {\n\t\t\t\top.addChildren(nestOperations(toBeNested));\n\t\t\t}\n\t\t\tmarkedForRemoval.addAll(toBeNested);\n\t\t}\n\t\t// remove the nested Operations from the this level\n\t\toperations.removeAll(markedForRemoval);\n\t\treturn operations;\n\t}", "@Override\r\n\tpublic Expression simplify() {\n\t\tSystem.out.println(\"减法化简\");\r\n\t\tExpression newLeft = left.simplify();\r\n Expression newRight = right.simplify();\r\n ConstantExpression leftConst =null;\r\n ConstantExpression rightConst =null;\r\n NegateExpression rightNegate =null;\r\n try {\r\n \tleftConst =(ConstantExpression) newLeft;\r\n\t\t} catch (Exception e) {\t}\r\n\t\ttry {\r\n\t\t\trightConst =(ConstantExpression) newRight;\r\n\t\t} catch (Exception e) {\t}\r\n\t\ttry {\r\n\t\t\trightNegate =(NegateExpression) newRight;\r\n\t\t} catch (Exception e) {\t}\r\n\t\t\r\n\t\tif ( leftConst != null && rightConst != null )\r\n {\r\n // two constants; just evaluate it;\r\n return new ConstantExpression( leftConst.getValue()- rightConst.getValue());\r\n }\r\n else if ( leftConst != null && leftConst.getValue()== 0 )\r\n {\r\n // 0 - y; return -y;\r\n if ( rightNegate != null )\r\n {\r\n // y = -u (--u); return u;\r\n return rightNegate.child;\r\n }\r\n return new NegateExpression( newRight );\r\n }\r\n else if ( rightConst != null && rightConst.getValue()== 0 )\r\n {\r\n // x - 0; return x;\r\n return newLeft;\r\n }\r\n else if ( rightNegate != null )\r\n {\r\n // x - -y; return x + y;\r\n return new AddExpression( newLeft, rightNegate.child );\r\n }\r\n\t\tif(newLeft.toString().equals(newRight.toString())){\r\n\t\t\treturn new ConstantExpression(0);\r\n\t\t}\r\n // x - y; no simplification\r\n return new SubExpression( newLeft, newRight );\r\n\t}", "public static UnaryExpression makeUnary(ExpressionType expressionType, Expression expression, Class type, Method method) { assert type != null; throw Extensions.todo(); }" ]
[ "0.5543289", "0.5537302", "0.55143815", "0.5491031", "0.54503906", "0.5303333", "0.52905786", "0.51780254", "0.515111", "0.5031766", "0.4960613", "0.49399754", "0.48779783", "0.48620737", "0.4859584", "0.48592895", "0.48391742", "0.48328793", "0.47282717", "0.47133532", "0.47087932", "0.4707661", "0.46995082", "0.46944568", "0.4691065", "0.46389768", "0.46235806", "0.4619148", "0.4613367", "0.46116737", "0.4603234", "0.45982292", "0.45938033", "0.45912054", "0.45761108", "0.456084", "0.45421562", "0.45408654", "0.4534167", "0.45318422", "0.45203754", "0.45073614", "0.44905972", "0.44311783", "0.4429253", "0.44287297", "0.442844", "0.4426845", "0.44216114", "0.44202062", "0.44185442", "0.44029182", "0.43936864", "0.43819556", "0.43497297", "0.43345684", "0.43235227", "0.43224144", "0.43167508", "0.43147624", "0.43026435", "0.42896053", "0.42841527", "0.42819732", "0.42815956", "0.42782238", "0.4276861", "0.427031", "0.42659107", "0.42657116", "0.42627835", "0.42495334", "0.42420322", "0.42306104", "0.42252025", "0.42164016", "0.42141977", "0.42083123", "0.42065707", "0.42032865", "0.4184693", "0.41834357", "0.4183227", "0.41830835", "0.4183073", "0.41789234", "0.41744235", "0.41735977", "0.41698948", "0.4169894", "0.41680264", "0.41595942", "0.41581482", "0.41551828", "0.4150522", "0.4142511", "0.41324654", "0.41241342", "0.41209075", "0.41191894" ]
0.6975767
0
/+ END BAJA AUTO GENERATED CODE +
public BNHaystackLearnStructureJob() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mo38117a() {\n }", "public void mo4359a() {\n }", "public void mo115190b() {\n }", "public final void mo51373a() {\n }", "public static void generateCode()\n {\n \n }", "public void mo12930a() {\n }", "public void mo21782G() {\n }", "public void mo21785J() {\n }", "public void mo21825b() {\n }", "public void mo9848a() {\n }", "@Override\n public void func_104112_b() {\n \n }", "public void mo21779D() {\n }", "public void mo23813b() {\n }", "public void mo115188a() {\n }", "private void kk12() {\n\n\t}", "public void mo21793R() {\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 void mo97908d() {\n }", "public void mo44053a() {\n }", "public void mo3749d() {\n }", "public void mo55254a() {\n }", "public void mo21781F() {\n }", "public void mo1531a() {\n }", "public void mo2740a() {\n }", "public void mo9137b() {\n }", "protected void mo6255a() {\n }", "public void mo21791P() {\n }", "public void mo5382o() {\n }", "public void mo6944a() {\n }", "public void mo21795T() {\n }", "public void mo21787L() {\n }", "public void mo3376r() {\n }", "public void mo6081a() {\n }", "public void mo1403c() {\n }", "public void mo21794S() {\n }", "public final void mo1285b() {\n }", "public void mo21780E() {\n }", "public void mo97906c() {\n }", "public void mo56167c() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo5097b() {\n }", "public void mo5248a() {\n }", "public final void mo91715d() {\n }", "public void mo9233aH() {\n }", "public void mo5251b() {\n }", "public void mo21789N() {\n }", "void mo57277b();", "void mo72113b();", "public void baocun() {\n\t\t\n\t}", "public void m23075a() {\n }", "void mo41086b();", "public void mo21879u() {\n }", "private static void cajas() {\n\t\t\n\t}", "public void mo21878t() {\n }", "void m1864a() {\r\n }", "public void mo21784I() {\n }", "public void mo21792Q() {\n }", "@Override\n protected void codeGenMain(DecacCompiler compiler, Registres regs, Pile p) {\n }", "public void mo21783H() {\n }", "void mo80455b();", "void mo41083a();", "public void mo3370l() {\n }", "private void m50366E() {\n }", "public abstract void mo70713b();", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public void mo21786K() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "void mo57278c();", "public void mo12628c() {\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo5099c() {\n }", "public void mo1405e() {\n }", "public void mo2471e() {\n }", "public final void mo8775b() {\n }", "static void feladat9() {\n\t}", "void mo119582b();", "private stendhal() {\n\t}", "void mo4833b();", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void mo21788M() {\n }", "private final zzgy zzgb() {\n }", "public void mo21877s() {\n }", "private zza.zza()\n\t\t{\n\t\t}", "public void mo8738a() {\n }", "static void feladat4() {\n\t}", "public void mo21800a() {\n }", "void mo54405a();", "void mo80457c();", "void mo17012c();", "public void mo1406f() {\n }", "void mo60893b();", "public void genCode(CodeFile code) {\n\t\t\n\t}", "public void mo9241ay() {\n }", "@Override\n\tpublic void orgasm() {\n\t\t\n\t}" ]
[ "0.71499187", "0.6954521", "0.6954348", "0.6900293", "0.6896463", "0.68500113", "0.6822028", "0.6804999", "0.67675227", "0.6764697", "0.6756089", "0.67162997", "0.66883165", "0.6688309", "0.6672509", "0.66664565", "0.66554", "0.66554", "0.66554", "0.66554", "0.66554", "0.66554", "0.66554", "0.6653841", "0.6648627", "0.6648581", "0.66413534", "0.66141725", "0.66100854", "0.6606735", "0.66050464", "0.6599488", "0.6589455", "0.65794414", "0.6569785", "0.6538408", "0.65377194", "0.65205115", "0.6515536", "0.65068793", "0.65063024", "0.6504308", "0.64948434", "0.6490955", "0.6482436", "0.6477407", "0.6468204", "0.6466053", "0.6460626", "0.6458792", "0.64384216", "0.64308786", "0.6430557", "0.64278436", "0.642498", "0.64181304", "0.6415221", "0.64059424", "0.63937557", "0.63889426", "0.6379293", "0.63570654", "0.63561964", "0.63483554", "0.6341988", "0.63328826", "0.6326005", "0.63221914", "0.63199806", "0.63018405", "0.62975603", "0.62975603", "0.62895274", "0.6286314", "0.62735885", "0.62726355", "0.62724787", "0.62669027", "0.6263879", "0.6259644", "0.6248236", "0.6241631", "0.62406", "0.6232295", "0.6231276", "0.62245435", "0.6222493", "0.6217765", "0.6214574", "0.6209139", "0.62040555", "0.619111", "0.61889046", "0.6178077", "0.6164384", "0.61543995", "0.61469805", "0.6145004", "0.61419237", "0.6128993", "0.6120299" ]
0.0
-1
User user = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal(); String name = user.getUsername(); //get logged in username simpMessageHeaderAccessor.getSessionAttributes().put("username",message.getAuthor());
@MessageMapping("/chat.register") @SendTo("/topic/public") public Message register(@Payload Message message, SimpMessageHeaderAccessor simpMessageHeaderAccessor) { simpMessageHeaderAccessor.getSessionAttributes().put("username", message.getAuthor()); return message; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getPrincipal(){\n String userName = null;\n Object principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\n if (principal instanceof UserDetails) {\n userName = ((UserDetails)principal).getUsername();\n } else {\n userName = principal.toString();\n }\n return userName;\n }", "private String getPrincipal(){\n String userName = null;\n Object principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\n if (principal instanceof UserDetails) {\n userName = ((UserDetails)principal).getUsername();\n } else {\n userName = principal.toString();\n }\n return userName;\n }", "private String getPrincipal() {\r\n\t\tString userName = null;\r\n\t\tObject principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\r\n\r\n\t\tif (principal instanceof UserDetails) {\r\n\t\t\tuserName = ((UserDetails) principal).getUsername();\r\n\t\t} else {\r\n\t\t\tuserName = principal.toString();\r\n\t\t}\r\n\t\treturn userName;\r\n\t}", "private String getPrincipal() {\n\t\tString userName = null;\n\t\tObject principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\n\t\tif (principal instanceof UserDetails) {\n\t\t\tuserName = ((UserDetails) principal).getUsername();\n\t\t} else {\n\t\t\tuserName = principal.toString();\n\t\t}\n\t\treturn userName;\n\t}", "private String getLoggedUser() {\n\t\torg.springframework.security.core.userdetails.User user2 = \n\t\t\t\t(org.springframework.security.core.userdetails.User) \n\t\t\t\tSecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\t\tString name = user2.getUsername();\n\t\treturn name;\n\t}", "private String getPrincipalUsername()\n\t{\n\t\tString userName = null;\n\t\tObject principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\n\t\tif (principal instanceof UserDetails)\n\t\t{\n\t\t\tuserName = ((UserDetails) principal).getUsername();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tuserName = principal.toString();\n\t\t}\n\t\treturn userName;\n\t}", "@Override\r\n\tpublic String getCurrentUserName() {\r\n\t\tString currentUserName = SecurityContextHolder.getContext().getAuthentication().getName();\r\n\t\treturn currentUserName;\r\n\t}", "public String getCurrentUserUsername(){\n Subject subject = org.apache.shiro.SecurityUtils.getSubject();\n if(subject!=null){\n return subject.getPrincipal().toString();\n }else{\n return \"User\";\n }\n }", "private String getUserData() { \n\t\t \n\t\tString userName;\n\t\tObject principial = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\t\n\t\tif(principial instanceof UserDetails) {\n\t\t\tuserName = ((UserDetails) principial).getUsername();\n\t\t} else {\n\t\t\tuserName = principial.toString(); \n\t\t}\n\t\treturn userName; \n\t}", "@Override\n\tpublic String getUsername(Context ctx){\n\t\treturn ctx.session().get(\"username\");\n\t}", "public String getUserName() {\n return sessionData.getUserName();\n }", "private String getLoggedInUser() {\r\n\t\tOptional<Authentication> authentication = Optional\r\n\t\t\t\t.ofNullable(SecurityContextHolder.getContext().getAuthentication());\r\n\t\treturn authentication.map(Authentication::getPrincipal).map(obj -> (UserDetails) obj)\r\n\t\t\t\t.map(UserDetails::getUsername).orElse(null);\r\n\t}", "public static String obtenerUsuarioSession(JwtAuthenticationToken request) {\n UserContext usuarioBean;\n try {\n usuarioBean = (UserContext) request.getPrincipal();\n return usuarioBean.getUsername();\n } catch (Exception e) {\n // TODO: handle exception\n return \"\";\n }\n\n }", "public String getUserName()\n {\n return userName;\n }", "public String getUserName(){\n return this.userName;\n }", "public String getUserName(){\n return this.userName;\n }", "public String getUserName() {\n\t \t return userName; \n\t}", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUsernameFromToken() {\n\t\tHttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();\n\t\tfinal String requestTokenHeader = request.getHeader(AUTH);\n\t\tString jwtToken = requestTokenHeader.substring(BEARER.length());\n\t\treturn getClaimFromToken(jwtToken, Claims::getSubject);\n\t}", "public static String getUserName() {\r\n\t\tHttpSession session = (HttpSession) FacesContext.getCurrentInstance()\r\n\t\t\t\t.getExternalContext().getSession(false);\r\n\t\treturn session.getAttribute(\"username\").toString();\r\n\t}", "public static String getUserName() {\r\n\t\tHttpSession session = (HttpSession) FacesContext.getCurrentInstance()\r\n\t\t\t\t.getExternalContext().getSession(false);\r\n\t\treturn session.getAttribute(\"username\").toString();\r\n\t}", "public String getUserName() {\r\n return userName;\r\n }", "public String getUserName() {\r\n return userName;\r\n }", "public String getUserName() {\r\n return userName;\r\n }", "public String getUserName() {\r\n return userName;\r\n }", "public String usuarioconectado() {\n\t\tString nome;\n\t\tObject principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\n\t\tif (principal instanceof UserDetails) {\n\t\t\tnome = ((UserDetails) principal).getUsername();\n\t\t} else {\n\t\t\tnome = principal.toString();\n\t\t}\n\t\t// System.out.println(nome);\n\t\treturn nome;\n\t}", "protected String getUsernameFromSession(HttpServletRequest request) {\n\n\t\tHttpSession currentSession = request.getSession();\n\t\tif (currentSession.isNew())\n\t\t\treturn null;\n\n\t\treturn (String) currentSession.getAttribute(StringConstants.ATTRIBUTE_USERNAME_NAME);\n\n\t}", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName(){\n\t\treturn this.userName;\n\t}", "public String getUserName() {\n return this.userName;\n }", "public String getUserName() {\n return this.userName;\n }", "public String getUserName() {\n return this.userName;\n }", "public Object userName() {\n return this.userName;\n }", "public static String getLoggedUser() {\n\t\tAuthentication auth = SecurityContextHolder.getContext().getAuthentication();\n\t\treturn auth.getName();\n\t}", "public String getUserName() {\n return order.getUser().getUsername();\n }", "private String getAuthorUsername(UIMessage message) {\r\n\t\tString toReturn = \"<Author-Not-Found>\";\r\n\t\ttry {\r\n\t\t\ttoReturn = facade.getMemberByID(message.getAuthorID()).getUsername();\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\t// do nothing - return a default user-name\r\n\t\t}\r\n\t\treturn toReturn;\t\t\r\n\t}", "public String getUserName();", "public String getUserName()\n\t{\n\t\treturn this.userName;\n\t}", "public String getUsernameFromToken(HttpServletRequest request) {\n\t\tfinal String requestTokenHeader = request.getHeader(AUTH);\n\t\tString jwtToken = requestTokenHeader.substring(BEARER.length());\n\t\treturn getClaimFromToken(jwtToken, Claims::getSubject);\n\t}", "UserDetails getCurrentUser();", "@Override\n public String getUserRealName(HttpServletRequest request) {\n String result = null;\n String userName = (String) request.getSession().getAttribute(\"userName\");\n if (userName != null && !userName.equals(\"\")) {\n CrUser user = userRepo.findByUserName(userName);\n if (user != null) {\n result = user.getRealName();\n }\n }\n return result;\n }", "public String getUsername(){\r\n return this.username;\r\n }", "public String getUserName()\n {\n return m_UserName;\n }", "public String getCurrentUser() {\r\n return SecurityContextHolder.getContext().getAuthentication().getName();\r\n }", "@Override\n\tpublic String getUsername() {\n\t\treturn getInnerObject().getUsername();\n\t}", "@Override\n\tpublic java.lang.String getUserName() {\n\t\treturn _second.getUserName();\n\t}", "public String getName(){\n return username;\n\t}", "public String getUsername(){\n return this.username;\n }", "@Override\n\tpublic String getUserName() {\n\t\treturn model.getUserName();\n\t}", "@Override\n\tpublic String getUserName() {\n\t\treturn model.getUserName();\n\t}", "public String getUsername() {\n\treturn username;\r\n}", "public String getUsername()\r\n {\r\n return this.username; \r\n }", "String getUserName() {\r\n\t\t\treturn username;\r\n\t\t}", "java.lang.String getUserName();", "java.lang.String getUserName();", "java.lang.String getUserName();", "public String getUsername()\r\n {\r\n return username;\r\n }", "public String getUser() {\r\n\t\treturn _userName;\r\n\t}", "public String getUsername(String authToken) {\n String username = null;\n try {\n final Claims claims = getClaimsFromToken(authToken);\n username = claims.getSubject();\n } catch (Exception e){\n username = null;\n }\n return username;\n }", "public String getUserName() {\r\n\t\treturn userName;\r\n\t}", "public String getUserName() {\r\n\t\treturn userName;\r\n\t}", "public String getUserName() {\r\n\t\treturn userName;\r\n\t}", "public String getUserName() {\r\n\t\treturn userName;\r\n\t}", "protected final String getUserName() {\n return this.userName;\n }", "public String getUsername(){\n return username;\n }", "public String getUserName() {\n\t\treturn this.username;\r\n\t}", "String getUserName();", "String getUserName();", "public String getUsername() {\n\treturn username;\n}", "private User getCurrentUser() {\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n String username = auth.getName();\n return userService.findByUsername(username);\n }", "private void getInfoUser(Model model,Principal principal){\n String username= principal.getName();\n\n if(username != null){\n User user= userService.findUserByName(username);\n String email= user.getEmail();\n String image= user.getImage();\n model.addAttribute(\"image\",image);\n model.addAttribute(\"username\", username);\n model.addAttribute(\"email\", email);\n }\n }", "public String getUserName() {\n\t\treturn this.userName;\n\t}", "public String getUsername() {return username;}", "public String getUsername(){\n return this.username;\n }", "public String getUsername(){\n return this.username;\n }", "@Override\n public String getUserName() {\n return name;\n }", "@Override\n\tpublic String getUserName() {\n\t\treturn super.getUserName();\n\t}", "@Override\n\tpublic String getUserName() {\n\t\treturn super.getUserName();\n\t}", "public String getUserName() {\n\t\treturn _userName;\n\t}", "public String getUsername()\n {\n return this.username;\n }" ]
[ "0.7600174", "0.7600174", "0.73164225", "0.72084314", "0.7166778", "0.7153449", "0.7089397", "0.70785433", "0.7017368", "0.69877", "0.6966578", "0.6846525", "0.6805551", "0.6789484", "0.6776652", "0.6776652", "0.6750206", "0.6742112", "0.6736182", "0.6701371", "0.6672802", "0.6672802", "0.66715163", "0.66715163", "0.66715163", "0.66715163", "0.6651915", "0.66262156", "0.66115373", "0.66115373", "0.66115373", "0.66115373", "0.66115373", "0.66115373", "0.66115373", "0.66115373", "0.66115373", "0.66115373", "0.66115373", "0.66115373", "0.66115373", "0.66115373", "0.66115373", "0.66115373", "0.66115373", "0.66115373", "0.66115373", "0.66115373", "0.66115373", "0.6605382", "0.6596315", "0.6596315", "0.6596315", "0.6595975", "0.6542605", "0.65259564", "0.65222806", "0.64949983", "0.6446643", "0.6435539", "0.64233756", "0.6393658", "0.6392257", "0.6389495", "0.63741684", "0.6372457", "0.63712376", "0.63643926", "0.6358669", "0.6357502", "0.6357502", "0.63554883", "0.6349814", "0.6323334", "0.6313327", "0.6313327", "0.6313327", "0.63074815", "0.62987566", "0.629587", "0.6293167", "0.6293167", "0.6293167", "0.6293167", "0.62917066", "0.62910825", "0.6288838", "0.62888074", "0.62888074", "0.62876964", "0.6278475", "0.62782097", "0.6277717", "0.6276564", "0.6266443", "0.6266443", "0.62643903", "0.6262287", "0.6262287", "0.62593496", "0.6254227" ]
0.0
-1
/ open = 0 Open a file open = 1 Save a file
public FileDB(String []str, int length, int open,String fileName){ super(new BorderLayout()); this.open = open; selecStr = ""; flag = true; listModel = new DefaultListModel(); for(int i=0;i<length;i++) listModel.addElement(str[i]); list = new JList(listModel); list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); list.setSelectedIndex(0); list.addListSelectionListener(this); list.setVisibleRowCount(8); JScrollPane listScrollPane = new JScrollPane(list); JButton ok = new JButton("OK"); ok.setActionCommand("ok"); ok.addActionListener(this); /* ok.setMinimumSize(new Dimension(this.getWidth()/2,this.getHeight()/4)); ok.setPreferredSize(new Dimension(this.getWidth()/2,this.getHeight()/4)); ok.setMaximumSize(new Dimension(this.getWidth()/2,this.getHeight()/4));*/ JButton cancel = new JButton("Cancel"); cancel.setActionCommand("cancel"); cancel.addActionListener(this); /* cancel.setMinimumSize(new Dimension(this.getWidth()/2,this.getHeight()/4)); cancel.setPreferredSize(new Dimension(this.getWidth()/2,this.getHeight()/4)); cancel.setMaximumSize(new Dimension(this.getWidth()/2,this.getHeight()/4));*/ JPanel buttonPane = new JPanel(); if(open==1){ System.out.println("Filename is "+fileName); if(fileName!=null){ StringTokenizer st = new StringTokenizer(fileName," :"); ta = new TextArea(st.nextToken()); } else ta = new TextArea("iConc"); } else if(open == 0){ ta = new TextArea("iConc"); } buttonPane.add(ta); buttonPane.add(ok); buttonPane.add(cancel); add(listScrollPane, BorderLayout.CENTER); add(buttonPane, BorderLayout.PAGE_END); createAndShowGUI(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "File openFile();", "private void mnuFileSaveActionPerformed(java.awt.event.ActionEvent evt) {\n if (fileOpened){\n saveFile(openFile);\n }else{\n JOptionPane.showConfirmDialog(this, \"No file currently open! doing \\\"Save as\\\" instead\");\n saveNewFile();\n }\n }", "void open(String fileName);", "private void saveFile(File file){\r\n\t\ttry {\r\n\t\t\tlocal.saveFile(file);\r\n\t\t\topenFile = file;\r\n\t\t\tpopulateRecentMenu();\r\n\t\t\tframe.setTitle(openFile.getName());\r\n\t\t\tedit = false;\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void\topen(File path) throws IOException;", "File getSaveFile();", "public void opened();", "void open();", "void open();", "void open();", "public boolean open() {\n\t\tif (RTS_COMMON.Option.VERBOSE)\n\t\t\tTRACE_OPEN(\"open Outbytefile\");\n\t\tif (_OPEN)\n\t\t\treturn (false);\n\t\tFile file = doCreateAction();\n\t\ttry {\n\t\t\toutputStream = new FileOutputStream(file, _APPEND);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tif (RTS_COMMON.Option.VERBOSE)\n\t\t\t\te.printStackTrace();\n\t\t\treturn (false);\n\t\t}\n\t\t_OPEN = true;\n\t\t_BYTESIZE = _DEFAULT_BYTESIZE;\n\t\treturn (true);\n\t}", "private void openPressed(){\n\t\tJFileChooser fileChooser = new JFileChooser(System.getProperty(\"user.dir\"));\n\t\tFileNameExtensionFilter extentions = new FileNameExtensionFilter(\"SuperCalcSave\", \"scalcsave\");\n\t\tfileChooser.setFileFilter(extentions);\n\t\tint retunedVal = fileChooser.showOpenDialog(this);\n\t\tFile file = null;\n\t\tif(retunedVal == JFileChooser.APPROVE_OPTION){\n\t\t\tfile = fileChooser.getSelectedFile();\n\t\t}\n\t\t//only continue if a file is selected\n\t\tif(file != null){\n\t\t\tSaveFile saveFile = null;\n\t\t\ttry {\n\t\t\t\t//read in file\n\t\t\t\tObjectInputStream input = new ObjectInputStream(new FileInputStream(file));\n\t\t\t\tsaveFile = (SaveFile) input.readObject();\n\t\t\t\tinput.close();\n\t\t\t\tVariable.setList(saveFile.getVariables());\n\t\t\t\tUserFunction.setFunctions(saveFile.getFunctions());\n\t\t\t\tmenuBar.updateFunctions();\n\t\t\t\tSystem.out.println(\"Open Success\");\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "public void fileOpen () {\n\t\ttry {\n\t\t\tinput = new Scanner(new File(file));\n\t\t\tSystem.out.println(\"file created\");\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"file could not be created\");\n\t\t}\n\t}", "public void open() throws IOException;", "void open() throws IOException;", "void save(File file);", "@Override\n\tpublic void save(Object o, String file) {\n\t\t\n\t}", "public void autoOpen(){\n\t\tSaveFile saveFile = null;\n\t\ttry {\n\t\t\t//read in file\n\t\t\tFile file = new File(System.getProperty(\"user.dir\")+\"/Default.scalcsave\");\n\t\t\tObjectInputStream input = new ObjectInputStream(new FileInputStream(file));\n\t\t\tsaveFile = (SaveFile) input.readObject();\n\t\t\tinput.close();\n\t\t\tVariable.setList(saveFile.getVariables());\n\t\t\tUserFunction.setFunctions(saveFile.getFunctions());\n\t\t\tsaveFile.setSettings();\n\t\t\tmenuBar.updateFunctions();\n\t\t\tSystem.out.println(\"Open Success\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public String openFile() {\n\t\t\n\t\tString chosenFile = \"\";\n\t\treturn chosenFile;\n\t\t\n\t}", "@Override\n\tpublic boolean isFileOpen(String fileName) \n\t{\n\t\treturn false;\n\t}", "public boolean open(String filename)\n {\n \n boolean retVal = open_0(nativeObj, filename);\n \n return retVal;\n }", "public void open();", "public void open();", "public boolean save(String file);", "boolean open();", "public void openFile()\r\n {\r\n try // open file\r\n {\r\n input = new RandomAccessFile( \"clients.dat\", \"r\" );\r\n } // end try\r\n catch ( IOException ioException )\r\n {\r\n System.err.println( \"File does not exist.\" );\r\n } // end catch\r\n }", "public void openForWriting(String datei) throws IOException {\n \n oos = new ObjectOutputStream(new FileOutputStream(datei));\n \n }", "private boolean open() {\r\n\t\tfor ( int i = 0; i < _headerObject._filenames.length; ++i) {\r\n\t\t\tFileObject fileObject = ( FileObject)_headerObject._fileObjectMap.get( _headerObject._filenames[ i]);\r\n\t\t\tif ( null == fileObject)\r\n\t\t\t\treturn false;\r\n\r\n\t\t\tif ( !fileObject.open())\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public static void save(FileIO fileIO)\r\n\t{\n\t\t\r\n\t}", "private int handleOpen(int name) {\n\t\tString FileName = readVirtualMemoryString(name, MAXSTRLEN);\n\t\t//error if file name is not valid\n\t\tif(FileName == null)\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\n\t\t//find a free file descriptor\n\t\tint fileIndex = -1;\n\t\tfor(int i = 2; i < 16; i++)\n\t\t{\n\t\t\tif(fileDescriptors[i] == null)\n\t\t\t{\n\t\t\t\tfileIndex = i;\n\t\t\t}\n\t\t}\n\n\t\t//error if no file descriptor is free\n\t\tif(fileIndex == -1)\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\n\t\tOpenFile file = ThreadedKernel.fileSystem.open(FileName, false);\n\n\t\t//error if file cannot be created\n\t\tif(file == null)\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfileDescriptors[fileIndex] = file;\n\t\t\treturn fileIndex;\n\t\t}\n\t}", "@Override\n\tpublic void open() throws IOException {\n\t\t\n\t}", "String savedFile();", "private void open()\n {\n try\n {\n // Found how to append to a file here \n //http://stackoverflow.com/questions/1625234/how-to-append-text-to-an-existing-file-in-java\n r = new PrintWriter( new BufferedWriter(new FileWriter(filePath, true)));\n }\n catch( IOException e )\n {\n r = null;\n UI.println(\"An error occored when operning stream to the log file.\\n This game wont be logged\");\n Trace.println(e);\n }\n }", "@Override\n\tpublic void openDocument(String path, String name) {\n\t\t\n\t}", "private void openFile() {\n\t\t\n\t\n\t\t\t\n\t\tFile file = jfc.getSelectedFile();\n\t\tint a = -1;\n\t\tif(file==null&&!jta.getText().equals(\"\"))\n\t\t{\n\t\t\ta = JOptionPane.showConfirmDialog(this, \"저장?\");\n\t\t\n\t\t}\n\t\tswitch (a){\n\t\tcase 0:\n\t\t\ttry {\n\t\t\t\tint c = -1;\n\t\t\t\tif(file==null)\n\t\t\t\t{\n\t\t\t\t\tc = jfc.showSaveDialog(this);\n\t\t\t\t}\n\t\t\t\tif(file!= null || c ==0)\n\t\t\t\t{\t\n\t\t\t\t\tFileWriter fw = new FileWriter(jfc.getSelectedFile());\n\t\t\t\t\tfw.write(jta.getText());\n\t\t\t\t\tfw.close();\n\t\t\t\t\tSystem.out.println(\"파일을 저장하였습니다\");\n\t\t\t\t}\n\t\t\t} catch (Exception e2) {\n\t\t\t\t// TODO: handle exception\n\t\t\t\tSystem.out.println(e2.getMessage());\n\t\t\t}\n\t\tbreak;\n\t\tcase 1:\n\t\t\ttry {\n\t\t\t\tint j=-1;\n\t\t\t\tif(file==null)\n\t\t\t\t{\n\t\t\t\t\tj = jfc.showOpenDialog(this);\n\t\t\t\t}\n\t\t\t\tif(file!= null || j == 1)\n\t\t\t\t{\t\n\t\t\t\t\tFileReader fr = new FileReader(file);\n\n\t\t\t\t\tString str=\"\";\n\t\t\t\t\twhile((j=fr.read())!=-1)\n\t\t\t\t\t{\n\t\t\t\t\t\tstr = str+(char)j;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tjta.setText(str);\n\t\t\t\t\t\n\t\t\t\t\tsetTitle(file.getName());\n\t\t\t\t\t\n\t\t\t\t\tfr.close();\n\t\t\t\t}\n\t\t\t}\t\n\t\t\tcatch (Exception e2) {\n\t\t\t\t// TODO: handle exception\n\t\t\t\tSystem.out.println(e2.getMessage());\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t\tint d= jfc.showOpenDialog(this);\n\t\t\n\t\tif(d==0)\n\t\t\ttry {\n\t\t\t\tFileReader fr = new FileReader(jfc.getSelectedFile());\n\t\t\t\tint l;\n\t\t\t\tString str=\"\";\n\t\t\t\twhile((l=fr.read())!=-1)\n\t\t\t\t{\n\t\t\t\t\tstr = str+(char)l;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tjta.setText(str);\n\t\t\t\t\n\t\t\t\tfr.close();\n\t\n\t\t\t\t\t\n\t\t\t} catch (Exception e2) {\n\t\t\t\t// TODO: handle exception\n\t\t\t\tSystem.out.println(e2.getMessage());\n\t\t\t}\n\t}", "public void save() throws FileNotFoundException, IOException, ClassNotFoundException ;", "public abstract void open();", "public abstract void open();", "private static native boolean open_0(long nativeObj, String filename);", "void save(String filename);", "private void serializeBeforeOpen() {\r\n sr.save(this.path);\r\n }", "public void handleOpenFile (File inFile) {\n openFile (inFile);\n }", "public void open() {\r\n\t}", "public boolean open() {\n\t\tif (!open) {\n\t\t\ttry {\n\t\t\t\tif (format.equals(\"sgml\")) {\n\t\t\t\t\tFile file = new File(fullFileName());\t//return the full file name,including directory and filename\n\t\t\t\t\tString line;\n\t\t\t\t\tBufferedReader reader = new BufferedReader (\n\t\t\t\t\t\t// (new FileReader(file));\n\t\t\t\t\t\tnew InputStreamReader (new FileInputStream(file), JetTest.encoding));\n\t\t\t\t\tStringBuffer fileText = new StringBuffer();\t\t//store all text in filename\n\t\t\t\t\twhile((line = reader.readLine()) != null)\n\t\t\t\t\t\tfileText.append(line + \"\\n\");\n\t\t\t\t\tString text = fileText.toString(); //Store the converted text\n\t\t\t\t\tSGMLProcessor.allTags = allTags;\t\n\t\t\t\t\tSGMLProcessor.emptyTags = emptyTags;\n\t\t\t\t\tDocument doc = SGMLProcessor.sgmlToDoc (this, text, SGMLtags);\t//Because format.equals(\"sgml\")\n\t\t\t\t\topen = true;\n\t\t\t\t\treturn true;\n\t\t\t\t} else if (format.equals(\"pos\")) {\n\t\t\t\t\tposRead();\n\t\t\t\t\topen = true;\n\t\t\t\t\treturn true;\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println (\"Error opening document \" + fileName);\n\t\t\t\t\tSystem.out.println (\"Unknown document format.\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\t\tSystem.out.println (\"Error opening document \" + fileName);\n\t\t\t\t\tSystem.out.println (e);\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t} else {\n\t\t\t// return true if already open\n\t\t\treturn true;\n\t\t}\n\t}", "@Override\n\tpublic void open() throws IOException {\n\t}", "public void open() {\n\t}", "void saveToFile(String filename) throws IOException;", "void save(String fileName);", "protected void openFiles() {\n\t\tthis.container = fso.openFile(prefix+EXTENSIONS[CTR_FILE],\"rw\");\n\t\tthis.metaData = fso.openFile(prefix+EXTENSIONS[MTD_FILE], \"rw\");\n\t\tthis.reservedBitMap = fso.openFile(prefix+EXTENSIONS[RBM_FILE], \"rw\");\n\t\tthis.updatedBitMap = fso.openFile(prefix+EXTENSIONS[UBM_FILE], \"rw\");\n\t\tthis.freeList = fso.openFile(prefix+EXTENSIONS[FLT_FILE], \"rw\");\n\t}", "File getSaveLocation();", "public void openFile(String file)\n\t{\n\t\tthis.file=file;\n\t\tSystem.out.println(\"file has been opened\");\n\t}", "public boolean openFile(String name){\n boolean tmp=false;\n\n try{\n _file = new File(name);\n tmp=_file.exists();\n if (tmp) {\n rows =new Vector<String>();\n loadTSPTWFile();\n if(DEBUG){\n System.out.println(\"Load new file:\"+name);\n }\n loadTSPTWFile();\n }\n }catch( IOException ioe){\n tmp=false;\n }\n\n return tmp;\n }", "private void savePressed(){\n\t\t\n\t\tJFileChooser fileChooser = new JFileChooser(System.getProperty(\"user.dir\"));\n\t\tFileNameExtensionFilter extentions = new FileNameExtensionFilter(\"SuperCalcSave\", \"scalcsave\");\n\t\tfileChooser.setFileFilter(extentions);\n\t\tint retunedVal = fileChooser.showSaveDialog(this);\n\t\tFile file = null;\n\t\tif(retunedVal == JFileChooser.APPROVE_OPTION){\n\t\t\tfile = fileChooser.getSelectedFile();\n\t\t\t//make sure file has the right extention\n\t\t\tif(file.getAbsolutePath().contains(\".scalcsave\"))\n\t\t\t\tfile = new File(file.getAbsolutePath());\n\t\t\telse\n\t\t\t\tfile = new File(file.getAbsolutePath()+\".scalcsave\");\n\t\t}\n\t\t//only continue if a file is selected\n\t\tif(file != null){\t\n\t\t\ttry {\n\t\t\t\t//read in file\n\t\t\t\tObjectOutputStream output = new ObjectOutputStream(new FileOutputStream(file));\n\t\t\t\toutput.writeObject(SaveFile.getSaveFile());\n\t\t\t\toutput.close();\n\t\t\t\tSystem.out.println(\"Save Success\");\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "SparseStream openFile(String path, FileMode mode, FileAccess access) throws IOException;", "public void open (File file)\n\t{\n\t\topen (file, false);\n\t}", "public void open(){\n try {\n output = new BufferedWriter(new FileWriter(training_path, true));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public int open(String filename)\n {\n return open(filename, i_hdl); \n }", "public boolean openFile(SwingShabadEditor shabadEditor) throws IOException {\r\n \t\tint returnVal = fc.showOpenDialog(null);\r\n \t\tif (returnVal == JFileChooser.APPROVE_OPTION) {\r\n \t\t\tFile file = fc.getSelectedFile();\r\n \r\n \t\t\tif (file.exists()) {\r\n \t\t\t\tshabadEditor.setText(FileUtils.readFileToString(file));\r\n \r\n \t\t\t\tcurFile = file;\r\n \t\t\t\treturn true;\r\n \t\t\t} else {\r\n \t\t\t\tDialogUtility.showFileDoesntExistDialog();\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\treturn false;\r\n \t}", "@Override\n public boolean save(String file) {\n boolean ans = false;\n ObjectOutputStream oos;\n try {\n FileOutputStream fileOut = new FileOutputStream(file, true);\n oos = new ObjectOutputStream(fileOut);\n oos.writeObject(this);\n ans= true;\n }\n catch (FileNotFoundException e) {\n e.printStackTrace(); }\n catch (IOException e) {e.printStackTrace();}\n return ans;\n }", "void openFile(String fileName){\n\t\ttry {\n\t\t\tout = new BufferedWriter(new FileWriter(fileName));\n\t\t\tString dateTime = new SimpleDateFormat(\"dd/MM/yyyy HH:mm\").format(new Date()); \n\t\t\t//out.write(\"Início dos testes \" + dateTime + \"\\n\" );\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public void setOpenedFile(Path path) {\r\n\t\topenedFile = path;\r\n\t}", "@Override\n\tpublic void open() {\n\t\t\n\t}", "@Override\n public void setSaveFile(File file)\n {\n \n }", "public void actionPerformed(ActionEvent arg0) {\n\t\t\t\tfile.save();\r\n\t\t\t\tclose();\r\n//\t\t\t\tfile.de = true;\r\n\r\n\t\t\t}", "private void saveFile() {\n if (fileExisted == false) {\n JFileChooser fChoice = new JFileChooser();\n int choice = fChoice.showSaveDialog(this);\n if (choice == JFileChooser.APPROVE_OPTION) {\n File f = fChoice.getSelectedFile();\n //\n if(!f.getName().contains(\".txt\")){\n File fN=new File(f.getParent(), f.getName()+\".txt\");\n FileDAO.writeFile(fN, txtContent);\n fMain = fN;\n fileExisted = true;\n lastSave=true;\n this.setTitle(fN.getName());\n }\n else{\n \n FileDAO.writeFile(f, txtContent);\n fMain = f;\n fileExisted = true;\n lastSave=true;\n this.setTitle(f.getName());\n } \n \n }\n } else if (fileExisted == true) {\n FileDAO.writeFile(fMain, txtContent);\n lastSave=true;\n }\n\n }", "public void fileSaved(OpenDefinitionsDocument doc) { }", "public void fileSaved(OpenDefinitionsDocument doc) { }", "void save_to_file() {\n\t\tthis.setAlwaysOnTop(false);\n\t\t\n\t\t/**\n\t\t * chose file with file selector \n\t\t */\n\t\t\n\t\tFileDialog fd = new FileDialog(this, \"Choose a save directory\", FileDialog.SAVE);\n\t\t\n\t\t//default path is current directory\n\t\tfd.setDirectory(System.getProperty(\"user.dir\"));\n\t\tfd.setFile(\"*.cmakro\");\n\t\tfd.setVisible(true);\n\t\t\n\t\t\n\t\tString filename = fd.getFile();\n\t\tString path = fd.getDirectory();\n\t\tString file_withpath = path + filename;\n\t\t\n\t\tif (filename != null) {\n\t\t\t System.out.println(\"save path: \" + file_withpath);\n\t\t\t \n\t\ttry {\n\t\t\tObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(file_withpath));\n\n\t\t\tout.writeObject(Key_Lists);\n\t\t\t\n\t\t\tout.close();\n\t\t\t\n\t\t\tinfo_label.setForeground(green);\n\t\t\tinfo_label.setText(\"file saved :D\");\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tthis.setAlwaysOnTop(true);\n\t\t\n\t}", "public abstract void saveToFile(PrintWriter out);", "public boolean save() {\n\t\treturn save(_file);\n\t}", "public abstract void save(FileWriter fw) throws IOException;", "protected void open()\n {\n }", "public void open()\n {\n }", "public void save (File argFile) throws IOException;", "@Override\n\tpublic void open() {\n\t\tthis.ok = true;\n\t}", "SparseStream openFile(String path, FileMode mode) throws IOException;", "FileObject getFile();", "FileObject getFile();", "void doOpenRecent(String fileName) {\r\n\t\tif (saveSettings == null) {\r\n\t\t\tsaveSettings = new MapSaveSettings();\r\n\t\t\tsaveSettings.buildings = true;\r\n\t\t\tsaveSettings.surface = true;\r\n\t\t}\r\n\t\tsaveSettings.fileName = new File(fileName);\r\n\t\tdoLoad();\r\n\t}", "@Override public void open() throws IOException {\n }", "@Override\n\tpublic void open() {\n\n\t}", "@Override\n\tpublic void open() {\n\n\t}", "public static boolean saveToFile(Object o, String fileName) {\n FileOutputStream fos = null;\n BufferedOutputStream bos = null;\n ObjectOutputStream oos = null;\n File objectFile = null;\n\n objectFile = new File(fileName);\n try {\n fos = new FileOutputStream(objectFile);\n bos = new BufferedOutputStream(fos);\n oos = new ObjectOutputStream(bos);\n oos.writeObject(o);\n oos.close();\n bos.close();\n fos.close();\n } catch (FileNotFoundException e) {\n return false;\n } catch (IOException e) {\n return false;\n }\n return true;\n }", "public void openFile(File selectedFile) {\n System.err.println(\"selected: \" + selectedFile);\n }", "public boolean getOpen()\n\t{\n\t\treturn getBooleanIOValue(\"Open\", true);\n\t}", "private void openFile(File file){\r\n\t\ttry {\r\n\t\t\tlocal.openFile(file);\r\n\t\t\topenFile = file;\r\n\t\t\tframe.setTitle(file.getName());\r\n\t\t\tedit = false;\r\n\t\t\tBibtexPrefs.addOpenedFile(file);\r\n\t\t\tpopulateRecentMenu();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\terrorDialog(e.toString());\r\n\t\t} catch (IllegalArgumentException e){\r\n\t\t\terrorDialog(\"The bibtex file \" +file.getPath()+ \" appears to be invalid.\\n\"\r\n\t\t\t\t\t+ \"Parsing error occured because you have the following in your file:\\n\"\r\n\t\t\t\t\t+e.getMessage());\r\n\t\t}\r\n\t}", "static String save() {\n JFileChooser fileChooser;\n String path = FileLoader.loadFile(\"path.txt\");\n if (path != null) {\n fileChooser = new JFileChooser(path);\n } else {\n fileChooser = new JFileChooser((FileSystemView.getFileSystemView().getHomeDirectory()));\n }\n\n fileChooser.setDialogTitle(\"Save text file\");\n fileChooser.setDialogType(JFileChooser.SAVE_DIALOG);\n\n if (fileChooser.showSaveDialog(null) == JFileChooser.APPROVE_OPTION) {\n FileLoader.saveFile(\"path.txt\", fileChooser.getSelectedFile().getParent(), false);\n return fileChooser.getSelectedFile().getAbsolutePath() + \".mytxt\" ;\n }\n return null;\n }", "public boolean saveFile() {\n\t\tif (isProjectOpen() && projectModified) {\n\t\t\tboolean written = projectFileIO.writeFile(soundList.values());\n\t\t\tif (written)\n\t\t\t\tprojectModified = false;\n\t\t\treturn written;\n\t\t}\n\t\treturn false;\n\t}", "public final boolean allowsOpen( FileOpenParams params) {\n\t\n\t //\tIf the file is not currently open then allow the file open\n\t \n\t if ( getOpenCount() == 0)\n\t return true;\n\t \n\t //\tCheck the shared access mode\n\t \n\t if ( getSharedAccess() == SharingMode.READWRITE &&\n\t params.getSharedAccess() == SharingMode.READWRITE)\n\t return true;\n\t else if (( getSharedAccess() & SharingMode.READ) != 0 &&\n\t params.isReadOnlyAccess())\n\t return true;\n\t else if(( getSharedAccess() & SharingMode.WRITE) != 0 &&\n\t params.isWriteOnlyAccess())\n\t return true;\n\t \n\t //\tSharing violation, do not allow the file open\n\t \n\t return false;\n\t}", "@Override\n public OutputStream openOutputFile(String pathname) throws IOException {\n return new FileOutputStream(pathname);\n }", "@Override\n public void saveFile(String fileString, String filename) throws IOException {\n }", "public Save(File loc) throws FileNotFoundException {\n FILE = loc;\n }", "public boolean isFileOpened() {\r\n \t\tif (curFile == null)\r\n \t\t\treturn false;\r\n \t\telse\r\n \t\t\treturn true;\r\n \t}", "public Boolean saveToFile(String fileName, Object lines) {\n\t if(lines == null || fileName == null){\n\t\t return false;\n\t }\n\t try{\n\t\t ObjectOutputStream objOut = new ObjectOutputStream(new FileOutputStream((defaultPath+\"\\\\\" + fileName)));\n\t\t objOut.writeObject(lines);\n\t\t return true;\n\t } catch (IOException e){\n\t\t \n\t } \n\t return false;\n }", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tString s=e.getActionCommand();\r\n\t\r\n\t\tif(s.equalsIgnoreCase(\"open\"))\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\r\n\t\t{\r\n\t\t\tstr=\"\";msg=\"\";\r\n\t\t\tFileDialog fd=new FileDialog(this,\"openfile\",FileDialog.LOAD);\r\n\t\t//to be added\r\n\t\t\tfd.setVisible(true);\r\n\t\t\tdir=fd.getDirectory();\r\n\t\t\t//path is got by directory\r\n\t\t\tfname=fd.getFile();\r\n\t\t\t//fname will get the name of the file so together we get teh full location\r\n\t\t\tFileInputStream fis=new FileInputStream(dir+fname);\r\n\t\t\t//file inputstream reader class obj is fis \r\n\t\t\tDataInputStream dis=new DataInputStream(fis);\r\n\t\t\t//here input it to datastream reader it is must\r\n\t\t\tstr=dis.readLine();\r\n\t\t\twhile(str!=null)\r\n\t\t\t{\r\n\t\t\t\tmsg=msg+str+\"\\n\";\r\n\t\t\t\tstr=dis.readLine();\r\n\t\t\t}\r\n\t\t\tta1.setText(msg);\r\n\t\t\tdis.close();\r\n\t\t\tfis.close();\r\n\t\t}\r\n\t\tcatch(Exception a)\r\n\t\t{\r\n\t\t\ta.printStackTrace();\r\n\t\t}\r\n\t\r\n\t\t}\r\n\t\tif(s.equalsIgnoreCase(\"save\"))\r\n\t\t{\ttry\r\n\t\t{\r\n\t\t\tFileDialog fd=new FileDialog(this,\"savefile\",FileDialog.SAVE);\r\n\t\t//to be added\r\n\t\t\tfd.setVisible(true);\r\n\t\t\ttxt=ta1.getText();\r\n\t\t\tdir=fd.getDirectory();\r\n\t\t\t//path is got by directory\r\n\t\t\tfname=fd.getFile();\r\n\t\t\t//fname will get the name of the file so together we get teh full location\r\n\t\t\tFileOutputStream fis=new FileOutputStream(dir+fname);\r\n\t\t\t//file inputstream reader class obj is fis \r\n\t\t\tDataOutputStream dis=new DataOutputStream(fis);\r\n\t\t\t//here input it to datastream reader it is must\r\n\t\t\t//str=dis.readLine();\r\n\t\t\t/*while(str!=null)\r\n\t\t\t{\r\n\t\t\t\tmsg=msg+str+\"\\n\";\r\n\t\t\t\tstr=dis.readLine();\r\n\t\t\t}\r\n\t\t\tta1.setText(msg);*/\r\n\t\t\tdis.writeBytes(txt);\r\n\t\t\tdis.close();\r\n\t\t\tfis.close();\r\n\t\t}\r\n\t\tcatch(Exception a)\r\n\t\t{\r\n\t\t\ta.printStackTrace();\r\n\t\t}\r\n\t\r\n\r\n\t\t}\r\n\t\r\n\tif (s.equalsIgnoreCase(\"cut\"))\r\n\t{\r\n\t\tmsg=ta1.getSelectedText();\r\n\t\tif(msg==null)\r\n\t\t\tJOptionPane.showMessageDialog(this,\"select text\");\r\n\t\telse\r\n\t\t\tta1.replaceRange(\"\", ta1.getSelectionStart(), ta1.getSelectionEnd());\r\n\t\t\t\t\r\n\t}\r\n\r\n\tif (s.equalsIgnoreCase(\"copy\"))\r\n\t{\r\n\t\tmsg=ta1.getSelectedText();\r\n\t\tif(msg==null)\r\n\t\t\tJOptionPane.showMessageDialog(this,\"select text\");\r\n\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t}\r\n\t\r\n\tif (s.equalsIgnoreCase(\"paste\"))\r\n\t{\r\n\t\t\r\n\t\tta1.replaceRange(msg, ta1.getSelectionStart(), ta1.getSelectionEnd());\r\n\t\t\t\r\n\t\t\t\t\r\n\t}\r\n\t\r\n\t\r\n}", "public void save(String fileName) throws IOException;", "@Override\n public void ensureOpen() throws IOException {\n }", "public void saveGame(File fileLocation);", "void openFilePath(String newFilePath) throws IllegalValueException;", "File getFile();", "File getFile();" ]
[ "0.6966647", "0.66942275", "0.661059", "0.6502645", "0.63799644", "0.6356959", "0.62973446", "0.6278413", "0.6278413", "0.6278413", "0.6265269", "0.6230688", "0.61995137", "0.6194166", "0.61759156", "0.6167851", "0.61152303", "0.61142576", "0.6105359", "0.6101114", "0.60832393", "0.6065633", "0.6065633", "0.6045432", "0.6017904", "0.60115975", "0.6010038", "0.599853", "0.5995594", "0.597643", "0.5970319", "0.5950119", "0.594834", "0.59195703", "0.59175223", "0.59048575", "0.58787775", "0.58787775", "0.58676475", "0.5848965", "0.5840809", "0.58141637", "0.58050394", "0.5799358", "0.5795935", "0.5793265", "0.5784519", "0.5775767", "0.57719976", "0.5770933", "0.5759494", "0.57522136", "0.5752154", "0.57514614", "0.5738542", "0.57297224", "0.57293147", "0.571906", "0.57102734", "0.5710194", "0.5709091", "0.5700514", "0.5695376", "0.56869143", "0.56826305", "0.5642178", "0.5642178", "0.5626477", "0.5622905", "0.56226254", "0.5620739", "0.5619675", "0.56048846", "0.55921423", "0.5588414", "0.5585555", "0.5572509", "0.5572509", "0.5551728", "0.55222106", "0.55134964", "0.55134964", "0.5509362", "0.550101", "0.5497432", "0.5494113", "0.54940504", "0.54933506", "0.54910755", "0.5489325", "0.5482578", "0.5478669", "0.54713684", "0.547031", "0.54650724", "0.546488", "0.54631525", "0.54561293", "0.5453045", "0.54489154", "0.54489154" ]
0.0
-1
Make sure we have nice window decorations.
public void createAndShowGUI() { JFrame.setDefaultLookAndFeelDecorated(true); //Create and set up the window. if(open==0) frame = new JFrame("Open a file"); else if(open ==1) frame = new JFrame("Save file as"); //frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //Create and set up the content pane. JComponent newContentPane =this ; newContentPane.setOpaque(true); //content panes must be opaque frame.setContentPane(newContentPane); //Display the window. frame.pack(); frame.setVisible(true); // frame.setSize(500,500); // validate(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void xtestWindowAlpha() throws Exception {\n if (GraphicsEnvironment.isHeadless())\n return;\n System.setProperty(\"sun.java2d.noddraw\", \"true\");\n GraphicsConfiguration gconfig = WindowUtils.getAlphaCompatibleGraphicsConfiguration();\n Frame root = JOptionPane.getRootFrame();\n final Window background = new Window(root);\n background.setBackground(Color.white);\n background.setLocation(X, Y);\n final Window transparent = new Window(root, gconfig);\n transparent.setBackground(Color.black);\n transparent.setLocation(X, Y);\n WindowUtils.setWindowAlpha(transparent, .5f);\n \n transparent.addMouseListener(handler);\n transparent.addMouseMotionListener(handler);\n\n SwingUtilities.invokeAndWait(new Runnable() { public void run() {\n background.pack();\n background.setSize(new Dimension(W, H));\n background.setVisible(true);\n transparent.pack();\n transparent.setSize(new Dimension(W, H));\n transparent.setVisible(true);\n }});\n \n //robot.delay(60000);\n\n Point where = new Point(transparent.getX() + W/2, \n transparent.getY() + H/2);\n Color sample = robot.getPixelColor(where.x, where.y);\n // NOTE: w32 won't sample non-opaque windows\n if (System.getProperty(\"os.name\").startsWith(\"Windows\")) {\n assertFalse(\"Sample not transparent (w32)\",\n sample.equals(transparent.getBackground()));\n }\n else {\n assertEquals(\"Sample should be 50% fg/bg\",\n new Color(128, 128, 128), sample);\n }\n \n SwingUtilities.invokeAndWait(new Runnable() {public void run() {\n WindowUtils.setWindowAlpha(transparent, 1f);\n }});\n sample = robot.getPixelColor(where.x, where.y);\n assertEquals(\"Window should be opaque with alpha=1f\",\n transparent.getBackground(), sample);\n \n SwingUtilities.invokeAndWait(new Runnable() {public void run() {\n WindowUtils.setWindowAlpha(transparent, 0f);\n }});\n sample = robot.getPixelColor(where.x, where.y);\n assertEquals(\"Window should be transparent with alpha=0f\",\n transparent.getBackground(), sample);\n }", "private void drawWindowSetup(){\n\t\t//draw header\n\t\ttopBar.draw(graphics);\n\t\t//draw footer\n\t\tbottomBar.draw(graphics);\n\t\t//draw right bar\n\t\trightBar.draw(graphics);\n\t}", "public void xtestWindowTransparency() throws Exception {\n if (GraphicsEnvironment.isHeadless())\n return;\n System.setProperty(\"sun.java2d.noddraw\", \"true\");\n GraphicsConfiguration gconfig = WindowUtils.getAlphaCompatibleGraphicsConfiguration();\n Frame root = JOptionPane.getRootFrame();\n final Window background = new Window(root);\n background.setBackground(Color.white);\n background.setLocation(X, Y);\n final JWindow transparent = new JWindow(root, gconfig);\n transparent.setLocation(X, Y);\n ((JComponent)transparent.getContentPane()).setOpaque(false);\n transparent.getContentPane().add(new JComponent() {\n\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\tpublic Dimension getPreferredSize() {\n return new Dimension(W, H);\n }\n protected void paintComponent(Graphics g) {\n g = g.create();\n g.setColor(Color.red);\n g.fillRect(getWidth()/4, getHeight()/4, getWidth()/2, getHeight()/2);\n g.drawRect(0, 0, getWidth()-1, getHeight()-1);\n g.dispose();\n }\n });\n transparent.addMouseListener(handler);\n transparent.addMouseMotionListener(handler);\n \n SwingUtilities.invokeAndWait(new Runnable() { public void run() {\n background.pack();\n background.setSize(new Dimension(W, H));\n background.setVisible(true);\n transparent.pack();\n transparent.setSize(new Dimension(W, H));\n transparent.setVisible(true);\n transparent.toFront();\n }});\n \n WindowUtils.setWindowTransparent(transparent, true);\n \n //robot.delay(60000);\n\n Color sample = robot.getPixelColor(X + W/2, Y + H/2);\n assertEquals(\"Painted pixel should be opaque\", Color.red, sample);\n \n sample = robot.getPixelColor(X + 10, Y + 10);\n assertEquals(\"Unpainted pixel should be transparent\", Color.white, sample);\n }", "public void xtestWindowDisposeBug() throws Exception {\n final JFrame w = new JFrame(getName());\n w.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n w.getContentPane().add(new JLabel(getName()));\n\n WindowUtils.setWindowMask(w, new Area(new Rectangle(600, 20)));\n w.pack();\n // small window, no bug. big window, bug.\n w.setSize(600, 600);\n w.setResizable(false);\n w.setVisible(true);\n final Shape mask = new Rectangle(0, 0, w.getWidth(), w.getHeight());\n while (true) {\n System.gc();\n Thread.sleep(50);\n SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n WindowUtils.setWindowMask(w, mask);\n Window[] owned = w.getOwnedWindows();\n System.err.println(owned.length + \": \" + Arrays.asList(w.getOwnedWindows()));\n }\n });\n }\n }", "@Override // android.widget.PopupWindow\n public boolean hasDecorView() {\n return true;\n }", "private void configureWindow() {\n\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n background.setBackground(Color.BLACK);\n setSize(initialWindowWidth, initialWindowHeight);\n setVisible(true);\n }", "public void createScreenBorders() {\n // set the screen's borders.\n this.upper = 0;\n this.lower = 600;\n this.left = 0;\n this.right = 800;\n }", "static void maximumWindow(View decorView) {\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_IMMERSIVE\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_FULLSCREEN);\n }", "@TargetApi(Build.VERSION_CODES.LOLLIPOP)\n private void setupTransparentSystemBarsForLollipop() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n Window window = getWindow();\n window.getAttributes().systemUiVisibility |=\n (View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION);\n window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS\n | WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);\n window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);\n window.setStatusBarColor(Color.TRANSPARENT);\n window.setNavigationBarColor(Color.TRANSPARENT);\n }\n }", "private void decorate() {\n setBorderPainted(false);\n setOpaque(true);\n \n setContentAreaFilled(false);\n setMargin(new Insets(1, 1, 1, 1));\n }", "public boolean supportsSystemDecorations() {\n return (this.mWmService.mDisplayWindowSettings.shouldShowSystemDecorsLocked(this) || (this.mDisplay.getFlags() & 64) != 0 || (this.mWmService.mForceDesktopModeOnExternalDisplays && !isUntrustedVirtualDisplay())) && this.mDisplayId != this.mWmService.mVr2dDisplayId;\n }", "@VisibleForTesting\n protected void maybeUpdateLayout() {\n try {\n Object attributes = getWindowAttributes();\n\n int layoutValue =\n attributes.getClass().getDeclaredField(getDisplayCutoutMode()).getInt(null);\n\n attributes.getClass()\n .getDeclaredField(\"layoutInDisplayCutoutMode\")\n .setInt(attributes, layoutValue);\n\n setWindowAttributes(attributes);\n } catch (Exception ex) {\n // API is not available.\n return;\n }\n }", "private static void getWindowHandles() {\n\t\t\r\n\t}", "private void setupWindowsAnimations() {\n }", "public static void windowLookAndFeel(){\r\n\t try{\r\n\t UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n\t }catch (Exception e) {\r\n\t System.out.println(\"Look and Feel error: \" + e);\r\n\t }\r\n\t}", "public interface User32 extends StdCallLibrary{\n\n\tUser32 INSTANCE = (User32) Native.loadLibrary(\"User32\", User32.class);\n\n\tint SM_CXSCREEN = 0;\n\tint SM_CYSCREEN = 1;\n\n\tint GetSystemMetrics(int nIndex);\n\n\tint SPI_GETWORKAREA = 48;\n\n\tint SystemParametersInfoW(int uiAction, int uiParam, RECT pvParam, int fWinIni);\n\n\tPointer GetForegroundWindow();\n\n\tint GW_HWNDFIRST = 0;\n\tint GW_HWNDNEXT = 2;\n\n\tPointer GetWindow(Pointer hWnd, int uCmd);\n\n\tint IsWindow(Pointer hWnd);\n\tint IsWindowVisible(Pointer hWnd);\n\n\tint GWL_STYLE = -16;\n\tint GWL_EXSTYLE = -20;\n\n\tint GetWindowLongW(Pointer hWnd, int nIndex);\n\tint SetWindowLongW(Pointer hWnd, int nIndex, int dwNewLong);\n\n\tint WS_MAXIMIZE = 0x01000000;\n\tint WS_EX_LAYERED = 0x00080000;\n\n\tint IsIconic(Pointer hWnd);\n\n\tint GetWindowTextW(Pointer hWnd, char[] lpString, int nMaxCount);\n\tint GetClassNameW(Pointer hWnd, char[] lpString, int nMaxCount);\n\n\tint GetWindowRect(Pointer hWnd, RECT lpRect);\n\n\tint ERROR = 0;\n\n\tint GetWindowRgn(Pointer hWnd, Pointer hRgn);\n\n\tint MoveWindow(Pointer hWnd, int X, int Y, int nWidth, int nHeight, int bRepaint);\n\n\tint BringWindowToTop(Pointer hWnd);\n\n\tPointer GetDC(Pointer hWnd);\n\tint ReleaseDC(Pointer hWnd, Pointer hDC);\n\n\tint ULW_ALPHA = 2;\n\n\tint UpdateLayeredWindow(Pointer hWnd, Pointer hdcDst,\n POINT pptDst, SIZE psize,\n Pointer hdcSrc, POINT pptSrc, int crKey,\n BLENDFUNCTION pblend, int dwFlags);\n\n interface WNDENUMPROC extends StdCallCallback {\n /** Return whether to continue enumeration. */\n boolean callback(Pointer hWnd, Pointer arg);\n }\n\n boolean EnumWindows(WNDENUMPROC lpEnumFunc, Pointer arg);\n\n}", "@Override\r\n\tprotected final void createAppWindows() {\r\n \t//Instantiate only DD-specific windows. SFDC-scope windows (such as mainWindow) are static\r\n \t// objects in the EISTestBase class\r\n \tmyDocumentsPopUp = createWindow(\"WINDOW_MY_DOCUMENTS_POPUP_PROPERTIES_FILE\");\r\n }", "protected void saveWindowDimensionsIfWindowed() {\n\t\tif(isFullscreen() || isBorderless()) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.lastWindowWidth = getWidth();\n\t\tthis.lastWindowHeight = getHeight();\n\t\tthis.lastWindowPosX = getPositionX();\n\t\tthis.lastWindowPosY = getPositionY();\n\t}", "public ToolsPaletteWindow()\n {\n super( TOOLS, false, false );\n setContentPane( this.content );\n createUI();\n }", "public void layoutAndAssignWindowLayersIfNeeded() {\n this.mWmService.mWindowsChanged = true;\n setLayoutNeeded();\n if (HwPCUtils.isPcCastModeInServer() && HwPCUtils.isValidExtDisplayId(this.mDisplayId)) {\n this.mWmService.updateFocusedWindowLocked(3, false);\n assignWindowLayers(false);\n } else if (!this.mWmService.updateFocusedWindowLocked(3, false)) {\n assignWindowLayers(false);\n }\n this.mInputMonitor.setUpdateInputWindowsNeededLw();\n this.mWmService.mWindowPlacerLocked.performSurfacePlacement();\n this.mInputMonitor.updateInputWindowsLw(false);\n }", "public void setupTransparentStatusBar(){\n\n if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP){\n Window window = getWindow();\n window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);\n window.setFlags(\n WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS,\n WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);\n window.setFlags(\n WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION,\n WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);\n window.setNavigationBarColor(getResources().getColor(R.color.colorPrimaryDark));\n window.setStatusBarColor(getResources().getColor(R.color.colorPrimaryDark));\n }\n\n }", "protected boolean hasModalWindow() {\n return false;\n }", "public void waitForAllWindowsDrawn() {\n forAllWindows((Consumer<WindowState>) new Consumer(this.mWmService.mPolicy) {\n /* class com.android.server.wm.$$Lambda$DisplayContent$oqhmXZMcpcvgI50swQTzosAcjac */\n private final /* synthetic */ WindowManagerPolicy f$1;\n\n {\n this.f$1 = r2;\n }\n\n @Override // java.util.function.Consumer\n public final void accept(Object obj) {\n DisplayContent.this.lambda$waitForAllWindowsDrawn$24$DisplayContent(this.f$1, (WindowState) obj);\n }\n }, true);\n }", "private void createMessageWindow() {\n\t\tmessageBG = Icon.createImageIcon(\"/images/UI/messageWindow.png\");\n\t\tmessageWindow = new JLabel(messageBG);\n\t\t\n\t\tmessageWindow = new JLabel(\"\");\n\t\tmessageWindow.setFont(new Font(\"Courier\", Font.PLAIN, 20));\n\t\tmessageWindow.setIcon(messageBG);\n\t\tmessageWindow.setIconTextGap(-messageBG.getIconWidth()+10);\n\t\tmessageWindow.setHorizontalTextPosition(0);\n\t\tmessageWindow.setOpaque(false);\n\t\t\t\t\n\t\tmessagePanel.add(messageWindow, BorderLayout.CENTER);\n\t\tmessagePanel.setOpaque(false);\n\t}", "@Override\n protected void windowInit ()\n {\n }", "@Override\n public long getValidWindow() {\n return 0;\n }", "public void calculateWindow()\n {\n Vector2 windowBottomLeftBounds = new Vector2(1000000, 1000000);\n Vector2 windowTopRightBounds = new Vector2(-1000000, -1000000);\n for (Element<?> e : children())\n {\n if (e.id() != null && (e.id().startsWith(id() + \"hBar\") || e.id().startsWith(id() + \"vBar\")))\n {\n continue;\n }\n for (Element<?> child : e)\n {\n Vector2 alignmentVector = child.alignment().alignmentVector();\n Vector2 bottomLeftBounds = new Vector2(child.x() - (alignmentVector.x * child.width()), child.y()\n - (alignmentVector.y * child.height()));\n Vector2 topRightBounds = new Vector2(bottomLeftBounds.x + child.width(), bottomLeftBounds.y + child.height());\n // left\n if (windowBottomLeftBounds.x > bottomLeftBounds.x)\n {\n windowBottomLeftBounds.x = bottomLeftBounds.x;\n }\n // bottom\n if (windowBottomLeftBounds.y > bottomLeftBounds.y)\n {\n windowBottomLeftBounds.y = bottomLeftBounds.y;\n }\n // right\n if (windowTopRightBounds.x < topRightBounds.x)\n {\n windowTopRightBounds.x = topRightBounds.x;\n }\n // top\n if (windowTopRightBounds.y < topRightBounds.y)\n {\n windowTopRightBounds.y = topRightBounds.y;\n }\n }\n }\n \n content = new CRectangle(windowBottomLeftBounds.x, windowBottomLeftBounds.y, windowTopRightBounds.x - windowBottomLeftBounds.x,\n windowTopRightBounds.y - windowBottomLeftBounds.y);\n content.origin = new Vector2(0, 0);\n \n calculateScrollSize();\n }", "protected void setLightBoxBackground() { Console.setBackground(Console.BLUE); }", "private void appearance()\r\n\t\t{\n\t\tgridLayout.setHgap(5);\r\n\t\tgridLayout.setVgap(5);\r\n\r\n\t\t//set the padding + external border with title inside the box\r\n\t\tBorder lineBorder = BorderFactory.createLineBorder(Color.BLACK);\r\n\t\tBorder outsideBorder = BorderFactory.createTitledBorder(lineBorder, title, TitledBorder.CENTER, TitledBorder.TOP);\r\n\t\tBorder marginBorder = BorderFactory.createEmptyBorder(5, 5, 5, 5);\r\n\t\tthis.setBorder(BorderFactory.createCompoundBorder(outsideBorder, marginBorder));\r\n\r\n\t\t//set initial value to builder\r\n\t\tdiceBuilder.setInterval(min, max);\r\n\t\t}", "private void Settings(){\n setUndecorated(true); \r\n\t setSize(250,70);\r\n\t setLocationRelativeTo(null);\r\n setAlwaysOnTop(true);\r\n\t setVisible(true);\r\n \r\n addMouseListener(new HandleStatusDialog());\r\n addWindowListener(new HandleStatusDialog());\r\n }", "public Egresos() {\n this.setUndecorated(true);\n initComponents();\n }", "protected void createWindow(int depth, int width, int type, boolean gui,\r\n\t\t\tint monoAttr, int colorAttr, int ul, int upper, int ur, int left,\r\n\t\t\tint right, int ll, int bottom, int lr) {\r\n\r\n\t int lastPos = screen52.getLastPos();\r\n\t int numCols = screen52.getColumns();\r\n\r\n\t\tint c = screen52.getCol(lastPos);\r\n\t\tint w = 0;\r\n\t\twidth++;\r\n\r\n\t\tw = width;\r\n\t\tchar initChar = Screen5250.initChar;\r\n\t\tint initAttr = Screen5250.initAttr;\r\n\r\n\t\t// set leading attribute byte\r\n\t\tscreen52.setScreenCharAndAttr(initChar, initAttr, true);\r\n\r\n\t\t// set upper left\r\n\t\tif (gui) {\r\n\t\t\tscreen52.setScreenCharAndAttr((char) ul, colorAttr, UPPER_LEFT, false);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tscreen52.setScreenCharAndAttr((char) ul, colorAttr, false);\r\n\t\t}\r\n\r\n\t\t// draw top row\r\n\t\twhile (w-- >= 0) {\r\n\t\t\tif (gui) {\r\n\t\t\t\tscreen52.setScreenCharAndAttr((char) upper, colorAttr, UPPER,false);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tscreen52.setScreenCharAndAttr((char) upper, colorAttr, false);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// set upper right\r\n\t\tif (gui) {\r\n\t\t\tscreen52.setScreenCharAndAttr((char) ur, colorAttr, UPPER_RIGHT, false);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tscreen52.setScreenCharAndAttr((char) ur, colorAttr, false);\r\n\r\n\t\t}\r\n\r\n\t\t// set ending attribute byte\r\n\t\tscreen52.setScreenCharAndAttr(initChar, initAttr, true);\r\n\r\n\t\tlastPos = ((screen52.getRow(lastPos) + 1) * numCols) + c;\r\n\t\tscreen52.goto_XY(lastPos);\r\n\r\n\t\t// now handle body of window\r\n\t\twhile (depth-- > 0) {\r\n\r\n\t\t\t// set leading attribute byte\r\n\t\t\tscreen52.setScreenCharAndAttr(initChar, initAttr, true);\r\n\t\t\t// set left\r\n\t\t\tif (gui) {\r\n\t\t\t\tscreen52.setScreenCharAndAttr((char) left, colorAttr, GUI_LEFT, false);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tscreen52.setScreenCharAndAttr((char) left, colorAttr, false);\r\n\r\n\t\t\t}\r\n\r\n\t\t\tw = width - 2;\r\n\t\t screen52.setScreenCharAndAttr(initChar, initAttr, NO_GUI, true);\r\n\t\t\t// fill it in\r\n\t\t\twhile (w-- >= 0) {\r\n//\t\t\t if (!planes.isUseGui(screen52.getLastPos()))\r\n\t\t\t screen52.setScreenCharAndAttr(initChar, initAttr, NO_GUI, false);\r\n\t\t\t}\r\n\t\t\tscreen52.setScreenCharAndAttr(initChar, initAttr, NO_GUI, true);\r\n\r\n\t\t\t// set right\r\n\t\t\tif (gui) {\r\n\t\t\t\tscreen52.setScreenCharAndAttr((char) right, colorAttr, GUI_RIGHT, false);\r\n\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tscreen52.setScreenCharAndAttr((char) right, colorAttr, false);\r\n\r\n\t\t\t}\r\n\r\n\t\t\tscreen52.setScreenCharAndAttr(initChar, initAttr, true);\r\n\r\n\t\t\tlastPos = ((screen52.getRow(lastPos) + 1) * numCols) + c;\r\n\t\t\tscreen52.goto_XY(lastPos);\r\n\t\t}\r\n\r\n\t\t// set leading attribute byte\r\n\t\tscreen52.setScreenCharAndAttr(initChar, initAttr, true);\r\n\t\tif (gui) {\r\n\t\t\tscreen52.setScreenCharAndAttr((char) ll, colorAttr, LOWER_LEFT, false);\r\n\r\n\t\t}\r\n\t\telse {\r\n\t\t\tscreen52.setScreenCharAndAttr((char) ll, colorAttr, false);\r\n\r\n\t\t}\r\n\t\tw = width;\r\n\r\n\t\t// draw bottom row\r\n\t\twhile (w-- >= 0) {\r\n\t\t\tif (gui) {\r\n\t\t\t\tscreen52.setScreenCharAndAttr((char) bottom, colorAttr, BOTTOM, false);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tscreen52.setScreenCharAndAttr((char) bottom, colorAttr, false);\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// set lower right\r\n\t\tif (gui) {\r\n\t\t\tscreen52.setScreenCharAndAttr((char) lr, colorAttr, LOWER_RIGHT, false);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tscreen52.setScreenCharAndAttr((char) lr, colorAttr, false);\r\n\t\t}\r\n\r\n\t\t// set ending attribute byte\r\n\t\tscreen52.setScreenCharAndAttr(initChar, initAttr, true);\r\n\r\n\t}", "@Before\n public void setUp() {\n synchronized (mWm.mGlobalLock) {\n spyOn(mDisplayContent);\n doNothing().when(mDisplayContent).layoutAndAssignWindowLayersIfNeeded();\n }\n }", "boolean isStatusBarObsecuredByWin(WindowState win) {\n boolean z = false;\n if (win == null || this.mStatusBar == null || (win.getAttrs().flags & 16) != 0 || win.toString().contains(\"hwSingleMode_window\")) {\n return false;\n }\n Rect winFrame = win.getFrameLw();\n Rect statusbarFrame = this.mStatusBar.getFrameLw();\n if (winFrame.top <= statusbarFrame.top && winFrame.bottom >= statusbarFrame.bottom && winFrame.left <= statusbarFrame.left && winFrame.right >= statusbarFrame.right) {\n z = true;\n }\n return z;\n }", "public void windowsConfiguration() {\n\t\tthis.setTitle(\"Segaleo\");\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setResizable(false);\n\t\tthis.setLocationRelativeTo(null);\n\t}", "public void makeWindows()\r\n {\r\n int spacingX = random.nextInt( 3 ) + 3;\r\n int spacingY = random.nextInt( 5 ) + 3;\r\n int windowsX = random.nextInt( 3 ) + 4;\r\n int windowsY = random.nextInt( 3 ) + 5;\r\n int sizeX = ( building.getWidth() - spacingX * ( windowsX + 1 ) ) / windowsX;\r\n int sizeY = ( building.getHeight() - spacingY * ( windowsY + 1 ) ) / windowsY;\r\n \r\n \r\n for( int i = 1; i <= windowsX; i++ )\r\n {\r\n for( int k = 1; k <= windowsY; k++ )\r\n {\r\n \r\n Rectangle r = new Rectangle( building.getXLocation() + ( spacingX / 2 + spacingX * i ) + sizeX * ( i - 1 ), \r\n building.getYLocation() + ( spacingY / 2 + spacingY * k ) + sizeY * ( k - 1 ) );\r\n r.setSize( sizeX, sizeY );\r\n r.setColor( new Color( 254, 254, 34 ) );\r\n add( r );\r\n }\r\n }\r\n }", "private void createDisplayEditOverlay() {\n\t}", "@Override // com.android.server.wm.WindowContainer\n public boolean fillsParent() {\n return true;\n }", "public static void win(){\n System.out.println(\"\\n\" + getAnsiGreen() +\n \"██╗░░░██╗░█████╗░██╗░░░██╗░░░░██╗░░░░░░░██╗░█████╗░███╗░░██╗░░░\\n\" +\n \"╚██╗░██╔╝██╔══██╗██║░░░██║░░░░██║░░██╗░░██║██╔══██╗████╗░██║░░░\\n\" +\n \"░╚████╔╝░██║░░██║██║░░░██║░░░░╚██╗████╗██╔╝██║░░██║██╔██╗██║░░░\\n\" +\n \"░░╚██╔╝░░██║░░██║██║░░░██║░░░░░████╔═████║░██║░░██║██║╚████║░░░\\n\" +\n \"░░░██║░░░╚█████╔╝╚██████╔╝░░░░░╚██╔╝░╚██╔╝░╚█████╔╝██║░╚███║██╗\\n\" +\n \"░░░╚═╝░░░░╚════╝░░╚═════╝░░░░░░░╚═╝░░░╚═╝░░░╚════╝░╚═╝░░╚══╝╚═╝\\n\" +\n \"\\n\" +\n \"░█████╗░░█████╗░███╗░░██╗░██████╗░██████╗░░█████╗░████████╗░██████╗██╗██╗\\n\" +\n \"██╔══██╗██╔══██╗████╗░██║██╔════╝░██╔══██╗██╔══██╗╚══██╔══╝██╔════╝██║██║\\n\" +\n \"██║░░╚═╝██║░░██║██╔██╗██║██║░░██╗░██████╔╝███████║░░░██║░░░╚█████╗░██║██║\\n\" +\n \"██║░░██╗██║░░██║██║╚████║██║░░╚██╗██╔══██╗██╔══██║░░░██║░░░░╚═══██╗╚═╝╚═╝\\n\" +\n \"╚█████╔╝╚█████╔╝██║░╚███║╚██████╔╝██║░░██║██║░░██║░░░██║░░░██████╔╝██╗██╗\\n\" +\n \"░╚════╝░░╚════╝░╚═╝░░╚══╝░╚═════╝░╚═╝░░╚═╝╚═╝░░╚═╝░░░╚═╝░░░╚═════╝░╚═╝╚═╝\" + getAnsiReset());\n\n try {\n TimeUnit.SECONDS.sleep(1);\n System.out.println(\"You feel movement in your belly...\");\n startNewOrQuitGame();\n } catch (InterruptedException e) {\n System.out.println(\"Something wrong with the Game!!!\");\n }\n }", "public void windowIconified(WindowEvent arg0)\n {\n ti.setImageAutoSize(true);\n\n try\n {\n SystemTray.getSystemTray().add(ti);\n cms.setVisible(false);\n ti.addMouseListener(new MouseListener()\n {\n public void mouseClicked(MouseEvent arg0)\n {\n SystemTray.getSystemTray().remove(ti);\n cms.setVisible(true);\n cms.setState(JFrame.NORMAL);\n }\n public void mouseEntered(MouseEvent arg0)\n {\n // Unused\n }\n public void mouseExited(MouseEvent arg0)\n {\n // Unused\n }\n public void mousePressed(MouseEvent arg0)\n {\n // Unused\n }\n public void mouseReleased(MouseEvent arg0)\n {\n // Unused\n }\n });\n }\n catch (AWTException e)\n {\n e.printStackTrace();\n }\n }", "@Override // android.widget.PopupWindow\n public WindowManager.LayoutParams getDecorViewLayoutParams() {\n return this.mWindowLayoutParams;\n }", "public void showWindows() {\n\t\t pack();\n\t setResizable(false);\n\t setLocationRelativeTo(null);\n\t setVisible(true);\n\t\t\n\t}", "public boolean shouldInsetWidgets() {\n Rect widgetPadding = inv.defaultWidgetPadding;\n\n // Check all sides to ensure that the widget won't overlap into another cell, or into\n // status bar.\n return workspaceTopPadding > widgetPadding.top\n && cellLayoutBorderSpacePx.x > widgetPadding.left\n && cellLayoutBorderSpacePx.y > widgetPadding.top\n && cellLayoutBorderSpacePx.x > widgetPadding.right\n && cellLayoutBorderSpacePx.y > widgetPadding.bottom;\n }", "public WindowDecorator(Window window) {// creates a window\n this.window = window;\n }", "public boolean getStrokeOnTop() { return false; }", "protected void setBoxBackground() { Console.setBackground(Console.RED); }", "void createWindow();", "@Override\n public boolean isActive(W window) {\n return true;\n }", "private void configuraInterface() {\n\t\tJFrame.setDefaultLookAndFeelDecorated(true);\n\t\ttry\t{\n\t\t\tUIManager.setLookAndFeel(\"com.sun.java.swing.plaf.windows.WindowsLookAndFeel\");\n\t\t}\n\t\tcatch (Exception ex) {\n\t\t\tSystem.out.println(\"Falhou o carregamento do L&F: \");\n\t\t\tSystem.out.println(ex);\n\t\t}\n\t}", "private void m146649c() {\n if (this.f108106a) {\n getHolder().setFormat(-2);\n setZOrderOnTop(true);\n }\n getHolder().addCallback(this.f108110e);\n setAlpha(0.0f);\n }", "public /* synthetic */ void lambda$new$8$DisplayContent(WindowState w) {\n WindowSurfacePlacer windowSurfacePlacer = this.mWmService.mWindowPlacerLocked;\n boolean obscuredChanged = w.mObscured != this.mTmpApplySurfaceChangesTransactionState.obscured;\n RootWindowContainer root = this.mWmService.mRoot;\n w.mObscured = this.mTmpApplySurfaceChangesTransactionState.obscured;\n if (!this.mTmpApplySurfaceChangesTransactionState.obscured) {\n boolean isDisplayed = w.isDisplayedLw();\n if (isDisplayed && w.isObscuringDisplay()) {\n root.mObscuringWindow = w;\n this.mTmpApplySurfaceChangesTransactionState.obscured = true;\n }\n this.mTmpApplySurfaceChangesTransactionState.displayHasContent |= root.handleNotObscuredLocked(w, this.mTmpApplySurfaceChangesTransactionState.obscured, this.mTmpApplySurfaceChangesTransactionState.syswin);\n if (w.mHasSurface && isDisplayed) {\n int type = w.mAttrs.type;\n if (type == 2008 || type == 2010 || (w.mAttrs.privateFlags & 1024) != 0) {\n this.mTmpApplySurfaceChangesTransactionState.syswin = true;\n }\n if (this.mTmpApplySurfaceChangesTransactionState.preferredRefreshRate == 0.0f && w.mAttrs.preferredRefreshRate != 0.0f) {\n this.mTmpApplySurfaceChangesTransactionState.preferredRefreshRate = w.mAttrs.preferredRefreshRate;\n }\n int preferredModeId = getDisplayPolicy().getRefreshRatePolicy().getPreferredModeId(w);\n if (this.mTmpApplySurfaceChangesTransactionState.preferredModeId == 0 && preferredModeId != 0) {\n this.mTmpApplySurfaceChangesTransactionState.preferredModeId = preferredModeId;\n }\n }\n }\n if (obscuredChanged && w.isVisibleLw() && this.mWallpaperController.isWallpaperTarget(w)) {\n this.mWallpaperController.updateWallpaperVisibility();\n }\n w.handleWindowMovedIfNeeded();\n WindowStateAnimator winAnimator = w.mWinAnimator;\n w.resetContentChanged();\n if (w.mHasSurface) {\n boolean committed = winAnimator.commitFinishDrawingLocked();\n if (this.isDefaultDisplay && committed) {\n if (w.mAttrs.type == 2023) {\n this.pendingLayoutChanges |= 1;\n }\n if ((w.mAttrs.flags & 1048576) != 0) {\n if (WindowManagerDebugConfig.DEBUG_WALLPAPER_LIGHT) {\n Slog.v(TAG, \"First draw done in potential wallpaper target \" + w);\n }\n this.mWallpaperMayChange = true;\n this.pendingLayoutChanges |= 4;\n }\n }\n }\n AppWindowToken atoken = w.mAppToken;\n if (atoken != null) {\n atoken.updateLetterboxSurface(w);\n if (atoken.updateDrawnWindowStates(w) && !this.mTmpUpdateAllDrawn.contains(atoken)) {\n this.mTmpUpdateAllDrawn.add(atoken);\n }\n }\n if (!this.mLosingFocus.isEmpty() && w.isFocused() && w.isDisplayedLw()) {\n this.mWmService.mH.obtainMessage(3, this).sendToTarget();\n }\n w.updateResizingWindowIfNeeded();\n if (!this.mIsRequestFullScreen && w.mAttrs.type != 3 && w.mAppToken != null && w.isVisible() && w.isRequestFullscreen()) {\n this.mIsRequestFullScreen = true;\n }\n this.mWmService.mHwWMSEx.travelAllWindow(w);\n }", "@Override // com.android.server.wm.WindowContainer\n public boolean fillsParent() {\n return true;\n }", "public Window() {\n f.setTitle(\"Save my money\");\n f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n f.setResizable(false);\n f.setBackground(Color.WHITE);\n }", "private void createWindow() throws Exception {\r\n Display.setFullscreen(false);\r\n Display.setDisplayMode(new DisplayMode(WIDTH, HEIGHT));\r\n Display.setTitle(\"Program 2\");\r\n Display.create();\r\n }", "@Override\n\tpublic Window createWindow() {\n\t\tLightVisualThemeWindow lightVisualThemeWindow = new LightVisualThemeWindow();\n\t\treturn lightVisualThemeWindow;\n\t}", "public void verifyPrintPageOpenedInNewWindow() {\n\t Assert.assertTrue(printPreviewApp.isDisplayed());\n\t}", "public void updateWindowsForAnimator() {\n forAllWindows(this.mUpdateWindowsForAnimator, true);\n }", "public interface FormWindow extends FormContainer {\n \n /**\n * Sets the related FormWindow.<br>\n * Related windows are somewhat similar to Owners, but\n * they don't change fg/bg-behaviour of the window-manager.\n * In Swing you can't assign an Owner without forcing its childs\n * to always stay in front of the owning window.\n * Furthermore, some windows don't support Owners, such as Frames.\n * The related window is just a link that will default to\n * the owner but can be set to any other window.\n *\n * @param relatedWindow the related FormWindow\n */\n public void setRelatedWindow(FormWindow relatedWindow);\n \n /**\n * Gets the related window.<br>\n * Falls back to getOwner() if not set and owner is a formwindow.\n *\n * @return the related window, the owner of null if not a FormWindow.\n */\n public FormWindow getRelatedWindow();\n \n \n /**\n * Sets the autoposition feature.<br>\n * Windows with this autoposition enabled will place themselves\n * in a nice manner on the screen when displayed initially.\n * \n * @param autoPosition true to enable autoposition, false if not (default) \n */\n public void setAutoPosition(boolean autoPosition);\n\n /**\n * Returns whether auto position is enabled.\n * \n * @return true if autoposition is enabled\n */\n public boolean isAutoPosition();\n\n \n /** \n * Adss a wrap listener which will be invoked\n * whenever the focus wraps in this window, i.e. from the logically\n * last field to the logically first.\n *\n * @param listener the form wrap listener\n * @see FormFocusTraversalPolicy\n */\n public void addFormWrapListener(FormWrapListener listener);\n \n /**\n * Removes a form wrap listener.\n * \n * @param listener the listener to remove\n */\n public void removeFormWrapListener(FormWrapListener listener);\n \n /** \n * Fires all form wrap listeners for this window.\n * \n * @param evt the form wrap event \n */\n public void fireFormWrappedFocus(FormWrapEvent evt);\n \n \n /**\n * Sets a version number for the current look and feel of this window.\n * Allows to track LookAndFeel changes and automatically update UI if changed.\n * @param version the n-th look and feel version\n */\n public void setUIVersion(int version);\n \n /**\n * Gets the look and feel version for this window.\n * \n * @return the look and feel version\n */\n public int getUIVersion();\n \n \n /**\n * Sets the tooltip display for this window.<br>\n * If a tooltip display is set the component's tooltips will\n * be displayed for each component receiving the keyboard focus\n * (instead of popping up on mouse hover).\n * \n * @param tooltipDisplay the tooltip display, null = none (default)\n */\n public void setTooltipDisplay(TooltipDisplay tooltipDisplay);\n \n /**\n * Gets the tooltip display for this window.\n * \n * @return the tooltip display, null = none (default)\n */\n public TooltipDisplay getTooltipDisplay();\n \n\n /**\n * Sets the behaviour of setFormValues() of FormContainers in this FormWindow. \n * \n * @param keepChanged true if setFormValues() should NOT override values\n * changed by the user. The default is false.\n */\n public void setKeepChangedValues(boolean keepChanged);\n \n /**\n * Gets the behaviour for setFormValues().\n * \n * @return true if keep changed values\n */\n public boolean getKeepChangedValues();\n\n \n /**\n * Aligns the location of this window in order not\n * to cover other windows (best as possible).\n */\n public void alignLocation();\n \n \n /**\n * Set a timer to close the window automatically.<br>\n * FormContainers use this feature to close after a certain\n * time of inactivity and unchanged data.<br>\n * Note: autoClosing must be set before displaying the window (just like setModal()).\n * \n * @param timeout the time in milliseconds, 0 = no autoclose\n */\n public void setAutoClose(long timeout);\n \n /**\n * Gets the autoclose timeout.\n * \n * @return the time in milliseconds, 0 = no autoclose\n */\n public long getAutoClose();\n \n /**\n * Returns whether this window is a candidate for autoClose-monitoring.\n * The method is invoked when displaying the window.\n *\n * @return true if window should be monitored by the autoclose-thread\n */\n public boolean isAutoCloseable();\n \n /**\n * Checks if window should be autoclosed.\n * \n * @return true if window can safely be closed due to autoclosing-rules.\n */\n public boolean checkAutoClose();\n \n \n /**\n * Sets the system-time of last setFormValues() or triggerValuesChanged() \n * for this window in milliseconds.\n * \n * @param millis the time of last values changed\n */\n public void setTimeOfLastValuesChanged(long millis);\n \n /**\n * Gets the system-time of last setFormValues() or triggerValuesChanged() \n * for this window in milliseconds.\n * \n * @return the time of last values changed\n */\n public long getTimeOfLastValuesChanged();\n \n}", "public void windowCreated()\n {\n return;\n }", "@Override\r\n public void windowDeiconified(WindowEvent e) {\r\n System.out.println(\"Window is not normal.\");\r\n }", "private static void createAndShowGUI() {\n\t\tJFrame.setDefaultLookAndFeelDecorated(true);\n\n\t\tLevelEditor le = new LevelEditor();\n\t}", "private void m119424c() {\n View view = new View(getContext());\n view.setLayoutParams(new FrameLayout.LayoutParams(-1, DisplayUtils.m87172c(getContext())));\n view.setBackgroundColor(C17345i.m87160a(ContextCompat.getColor(getContext(), R.color.BK01), 0.2f));\n ViewGroup viewGroup = (ViewGroup) getView();\n if (f85662a || viewGroup != null) {\n viewGroup.addView(view);\n ViewGroup.MarginLayoutParams marginLayoutParams = (ViewGroup.MarginLayoutParams) this.mSystemBar.getLayoutParams();\n marginLayoutParams.topMargin = DisplayUtils.m87171b(getContext(), 36.0f) - DisplayUtils.m87172c(getContext());\n this.mSystemBar.setLayoutParams(marginLayoutParams);\n m119425d();\n return;\n }\n throw new AssertionError();\n }", "public static void main(String[] args) {\n\t\twindowGraphicMode();\r\n\t}", "@Test\n\tpublic void testGUIPanels() {\n\t\tfinal int RGB_GRAY = 238;\n\t\tColor defaultColor = new Color(RGB_GRAY, RGB_GRAY, RGB_GRAY);\n\n\t\tassertThat(window.requireEnabled());\n\t\tassertThat(window.requireVisible());\n\t\tassertThat(window.requireTitle(\"Parabolic shot!\"));\n\n\t\tassertThat(window.panel(\"Control panel\").requireVisible());\n\t\tassertThat(window.panel(\"Control panel\").background()\n\t\t\t\t.requireEqualTo(defaultColor));\n\t\tassertThat(window.panel(\"Control panel\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Shoot\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Stop\").requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Clear\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Shoot\").requireVisible());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Stop\").requireVisible());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Clear\").requireVisible());\n\n\t\tassertThat(window.panel(\"Information panel\").requireVisible());\n\t\tassertThat(window.panel(\"Information panel\").background()\n\t\t\t\t.requireEqualTo(defaultColor));\n\t\tassertThat(window.panel(\"Information panel\").requireEnabled());\n\n\t\tassertThat(window.panel(\"Parabolic shot panel\").requireVisible());\n\t\tassertThat(window.panel(\"Parabolic shot panel\").background()\n\t\t\t\t.requireEqualTo(defaultColor));\n\t\tassertThat(window.panel(\"Parabolic shot panel\").requireEnabled());\n\t}", "private void setupWindow() {\n\t\tgetContentPane().setLayout(null);\t\t\t\t\n\n\t\t// Set title\n\t\tsetTitle(\"Gallhp\");\n\n\t\t// Set location and size\n\t\tsetLocationRelativeTo(null);\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\t\n\t\tsetSize(800, 600);\n\t\tsetResizable(false);\n\n\t}", "private static void createWindow(){\n try{\n\n displayMode = new DisplayMode(1600 ,900);\n Display.setDisplayMode(displayMode);\n\n /*\n Display.setDisplayMode(getDisplayMode(1920 ,1080,false));\n if(displayMode.isFullscreenCapable()){\n Display.setFullscreen(true);\n }else{\n Display.setFullscreen(false);\n }\n */\n Display.setTitle(\"CubeKraft\");\n Display.create();\n }catch (Exception e){\n for(StackTraceElement s: e.getStackTrace()){\n System.out.println(s.toString());\n }\n }\n }", "private static void invasionStatusBar(Activity activity) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n Window window = activity.getWindow();\n View decorView = window.getDecorView();\n decorView.setSystemUiVisibility(decorView.getSystemUiVisibility()\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE);\n window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);\n window.setStatusBarColor(Color.TRANSPARENT);\n }\n }", "static private Screen createScreen() {\n Screen test = new Screen();\n //These values below, don't change\n test.addWindow(1,1,64, 12);\n test.addWindow(66,1,64,12);\n test.addWindow(1,14,129,12);\n test.setWidthAndHeight();\n test.makeBoarders();\n test.setWindowsType();\n test.draw();\n return test;\n }", "private void drawBox(Graphics window, int hsBtoRGB, int x, int y) {\n\t\t\n\t}", "public void resetBaseline() {\n\t\tint w = monitor.getWidth();\n\t\tint h = monitor.getHeight();\n\t\n\t\tbaselineWindow = new PopupWindow(layout3, w, h, true);\n\t\tbaselineWindow.setOutsideTouchable(true);\n\t\tbaselineWindow.setFocusable(false);\n\t\t\n\t\tshowBaselineWindow(h);\n\t\tcountdown2Handler.post(countdown2Runnable);\n\t}", "public void startKeyguardExitOnNonAppWindows(boolean onWallpaper, boolean goingToShade) {\n forAllWindows((Consumer<WindowState>) new Consumer(this.mWmService.mPolicy, onWallpaper, goingToShade) {\n /* class com.android.server.wm.$$Lambda$DisplayContent$68_t1mHyvN9aDP5Tt_BKUPoYT8 */\n private final /* synthetic */ WindowManagerPolicy f$0;\n private final /* synthetic */ boolean f$1;\n private final /* synthetic */ boolean f$2;\n\n {\n this.f$0 = r1;\n this.f$1 = r2;\n this.f$2 = r3;\n }\n\n @Override // java.util.function.Consumer\n public final void accept(Object obj) {\n DisplayContent.lambda$startKeyguardExitOnNonAppWindows$19(this.f$0, this.f$1, this.f$2, (WindowState) obj);\n }\n }, true);\n }", "static public void make() {\n\t\tif (window != null)\n\t\t\treturn;\n\n\t\twindow = new JFrame();\n\t\twindow.setTitle(\"Finecraft\");\n\t\twindow.setMinimumSize(new Dimension(500, 300));\n\t\twindow.setSize(asInteger(WINDOW_WIDTH), asInteger(WINDOW_HEIGHT));\n\t\twindow.setResizable(asBoolean(WINDOW_RESIZE));\n\t\twindow.setLocationRelativeTo(null);\n\t\twindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t}", "private void displayWinScreen() {\n if (crewState.getShip().getShieldLevel() > 0) {\n new EventPopupWindow(String.format(\"You Won:\\nYou managed to collect all %d parts.\\n\\n\"\n + \"Score: %d\",\n getShipPartsNeededCount(),\n getScore()));\n } else {\n new EventPopupWindow(String.format(\"Although your ship is toast, you technically \"\n + \"still won the game. None of the parts are useful anymore, you will die on \"\n + \"this planet, but according to the job description you did everything that \"\n + \"was required. At least you can say you followed the spec, right?\\n\\n\"\n + \"Score: %d\",\n getShipPartsNeededCount(),\n getScore()));\n }\n }", "@Override\n\tprotected int getAddWindowWidth() {\n\t\treturn 230;\n\t}", "private void zeichneWindow(int ypos,int xpos, int size)\r\n {\r\n ypos = ypos + size/6;\r\n xpos = xpos + size/6;\r\n size = size/4;\r\n zeichneWand(\"blau\",ypos,xpos,size); \r\n }", "public MainWindowAlt() {\n initComponents();\n //this.getContentPane().setBackground(Color.CYAN);\n }", "@Override\r\n\tprotected void pack() {\r\n\r\n\t\tRectangle displayarea = shell.getDisplay().getPrimaryMonitor().getBounds();\r\n\t\tRectangle windowarea = shell.getBounds();\r\n\t\tshell.setBounds((displayarea.width - windowarea.width) / 2,\r\n\t\t\t\t(displayarea.height - windowarea.height) / 2,\r\n\t\t\t\twindowarea.width, windowarea.height);\r\n\t}", "public void windowIconified(WindowEvent arg0) {\n //textArea1.append(\"Window is minimized\");\n\n }", "public boolean okToDisplay() {\n return this.mDisplayId == 0 ? !this.mWmService.mDisplayFrozen && this.mWmService.mDisplayEnabled && this.mWmService.mPolicy.isScreenOn() : this.mDisplayInfo.state == 2;\n }", "@Override\n\tpublic void paint(Graphics graphics) {\n\t\ttry {\n\t\t\t// calls default paint functions in parent object\n\t\t\tsuper.paintComponents(s.getDrawGraphics());\n\n\t\t\t// sets buffer panel to size of window\n\t\t\tbufferPanel.setBounds(0, 0, this.getWidth(), this.getHeight());\n\t\t\t// calls function to draw onto g\n\t\t\tGraphics2D g = (Graphics2D) s.getDrawGraphics();\n\t\t\tdrawJavaString(i_console);\n\t\t\tdrawJavaString(i_palette);\n\n\t\t\tif (i_console_docked) {\n\t\t\t\ti_console.setBounds(p_console.getBounds());\n\t\t\t}\n\t\t\tif (i_palette_docked) {\n\t\t\t\ti_palette.setBounds(p_palette.getBounds());\n\t\t\t}\n\n\t\t\tcontroller.showRects(g);\n\n\t\t\tif(!rightMenuClick){\n\t\t\t\tif(this.getExtendedState() == Frame.MAXIMIZED_BOTH){\n\t\t\t\t\tg.translate(i_palette.getBounds().x, i_palette.getBounds().y+45);\n\t\t\t\t\ti_palette.paintAll(g);\n\t\t\t\t\tg.translate(i_console.getBounds().x - i_palette.getBounds().x, i_console.getBounds().y - i_palette.getBounds().y);\n\t\t\t\t\ti_console.paintAll(g);\n\t\t\t\t\tController.fullscreen = true;\n\t\t\t\t}else{\n\t\t\t\t\tg.translate(i_palette.getBounds().x+5, i_palette.getBounds().y+51);\n\t\t\t\t\ti_palette.paintAll(g);\n\t\t\t\t\tg.translate(i_console.getBounds().x - i_palette.getBounds().x, i_console.getBounds().y - i_palette.getBounds().y);\n\t\t\t\t\ti_console.paintAll(g);\n\t\t\t\t\tController.fullscreen = false;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tcontroller.showBorders(g, 5, 51);\n\t\t\t}\n\n\t\t\ts.show();\n\t\t\tToolkit.getDefaultToolkit().sync();\n\t\t\tif (rectToBeRemoved != -1) {\n\t\t\t\tdelete(rectToBeRemoved);\n\t\t\t\tcontroller.getRects().remove(rectToBeRemoved);\n\t\t\t\trectToBeRemoved = -1;\n\t\t\t}\n\t\t\trepaint();\n\t\t} catch (Exception ex) {\n\t\t}\n\t}", "private void setupWindow() {\n // Some visual tweaks - first, modify window width based on screen dp. Height handled\n // later after the adapter is populated\n WindowManager.LayoutParams params = getWindow().getAttributes();\n DisplayMetrics metrics = getResources().getDisplayMetrics();\n if (isSmallTablet(metrics)) {\n params.width = (metrics.widthPixels * 2 / 3);\n params.height = (metrics.heightPixels * 3 / 5);\n }\n // For phone screens, we won't adjust the window dimensions\n\n // Don't dim the background while the activity is displayed\n params.alpha = 1.0f;\n params.dimAmount = 0.0f;\n\n getWindow().setAttributes(params);\n\n // Set dialog title\n Set<String> preferredLines =\n PreferenceManager.getDefaultSharedPreferences(this).getStringSet(DashTubeExtension.FAVOURITE_LINES_PREF, null);\n setTitle((preferredLines != null && preferredLines.size() > 0)\n ? R.string.expanded_title_filtered\n : R.string.expanded_title);\n\n // Updated time text\n String updatedStr = String.format(getString(R.string.updated_at),\n getIntent().getStringExtra(DashTubeExtension.TUBE_STATUS_TIMESTAMP));\n\n TextView time = (TextView) findViewById(R.id.updated_at);\n time.setText(updatedStr);\n }", "void effacer() {\r\n Graphics g = this.zoneDessin.getGraphics();\r\n g.setColor(Color.gray);\r\n g.fillRect(0, 0, this.getWidth(), this.getHeight());\r\n }", "public void createPopupWindow() {\r\n \t//\r\n }", "private void drawBorder(Graphics2D g2, boolean enabled, int x, int y, int w, int h)\r\n/* 193: */ {\r\n/* 194:228 */ g2.setColor(enabled ? PlasticLookAndFeel.getControlDarkShadow() : MetalLookAndFeel.getControlDisabled());\r\n/* 195: */ \r\n/* 196: */ \r\n/* 197:231 */ g2.drawOval(x, y, w, h);\r\n/* 198: */ }", "public final void windowRepaintOp() {\n super.defaultWindowRepaintOp();\n }", "public void windowBecameFront() \n {\n return; \n }", "@Override\n\tpublic void windowIconified(WindowEvent e) {\n\t}", "public boolean hasSecureWindowOnScreen() {\n return getWindow($$Lambda$DisplayContent$5D_ifLpk7QwGe9ZLZynNnDca9g.INSTANCE) != null;\n }", "@Override\n public void windowIconified(WindowEvent we) {\n }", "@Override\n public void drawScreen(int n, int n2) {\n void mouseY;\n void mouseX;\n super.drawScreen((int)mouseX, (int)mouseY);\n float[] hsb = Color.RGBtoHSB(this.setting.getValue().getRed(), this.setting.getValue().getGreen(), this.setting.getValue().getBlue(), null);\n Color color = Color.getHSBColor(hsb[0], Float.intBitsToFloat(Float.floatToIntBits(6.4887953f) ^ 0x7F4FA436), Float.intBitsToFloat(Float.floatToIntBits(4.629535f) ^ 0x7F142527));\n Gui.drawRect((int)this.getX(), (int)this.getY(), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 14), (int)new Color(40, 40, 40).getRGB());\n Gui.drawRect((int)(this.getX() + this.getWidth() - 12), (int)(this.getY() + 2), (int)(this.getX() + this.getWidth() - 2), (int)(this.getY() + 12), (int)this.setting.getValue().getRGB());\n RenderUtils.drawOutline(this.getX() + this.getWidth() - 12, this.getY() + 2, this.getX() + this.getWidth() - 2, this.getY() + 12, Float.intBitsToFloat(Float.floatToIntBits(2.7144578f) ^ 0x7F2DB9AD), new Color(20, 20, 20).getRGB());\n if (this.open) {\n Gui.drawRect((int)this.getX(), (int)(this.getY() + 14), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 28), (int)new Color(40, 40, 40).getRGB());\n float i = Float.intBitsToFloat(Float.floatToIntBits(1.3378998E38f) ^ 0x7EC94E07);\n while (i + Float.intBitsToFloat(Float.floatToIntBits(13.8331995f) ^ 0x7EDD54C9) < Float.intBitsToFloat(Float.floatToIntBits(0.07128618f) ^ 0x7F51FE7D)) {\n RenderUtils.drawRecta((float)(this.getX() + 2) + i, this.getY() + 16, Float.intBitsToFloat(Float.floatToIntBits(7.249331f) ^ 0x7F67FA85), Float.intBitsToFloat(Float.floatToIntBits(1.7045807f) ^ 0x7EEA2FB3), Color.getHSBColor(i / Float.intBitsToFloat(Float.floatToIntBits(0.115068644f) ^ 0x7F2BA91C), Float.intBitsToFloat(Float.floatToIntBits(4.3161592f) ^ 0x7F0A1DFA), Float.intBitsToFloat(Float.floatToIntBits(21.075346f) ^ 0x7E289A4F)).getRGB());\n i += Float.intBitsToFloat(Float.floatToIntBits(3.807338f) ^ 0x7E95CD0B);\n }\n RenderUtils.drawOutline(this.getX() + 2, this.getY() + 16, this.getX() + 2 + this.getWidth() - 4, this.getY() + 27, Float.intBitsToFloat(Float.floatToIntBits(2.7503529f) ^ 0x7F3005C8), new Color(0, 0, 0).getRGB());\n RenderUtils.drawRecta((float)(this.getX() + 2) + this.hueWidth, this.getY() + 16, Float.intBitsToFloat(Float.floatToIntBits(5.200255f) ^ 0x7F26687D), Float.intBitsToFloat(Float.floatToIntBits(1.2665411f) ^ 0x7E921E05), new Color(255, 255, 255).getRGB());\n Gui.drawRect((int)this.getX(), (int)(this.getY() + 28), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 42), (int)new Color(40, 40, 40).getRGB());\n RenderUtils.drawSidewaysGradient(this.getX() + 2, this.getY() + 29, this.getWidth() - 4, Float.intBitsToFloat(Float.floatToIntBits(0.19645536f) ^ 0x7F792B98), new Color(255, 255, 255), color, 255, 255);\n RenderUtils.drawOutline(this.getX() + 2, this.getY() + 29, this.getX() + 2 + this.getWidth() - 4, this.getY() + 40, Float.intBitsToFloat(Float.floatToIntBits(103.69628f) ^ 0x7DCF647F), new Color(0, 0, 0).getRGB());\n RenderUtils.drawRecta((float)(this.getX() + 2) + this.satWidth, this.getY() + 29, Float.intBitsToFloat(Float.floatToIntBits(7.3489017f) ^ 0x7F6B2A34), Float.intBitsToFloat(Float.floatToIntBits(0.1948352f) ^ 0x7F7782E1), new Color(255, 255, 255).getRGB());\n Gui.drawRect((int)this.getX(), (int)(this.getY() + 42), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 56), (int)new Color(40, 40, 40).getRGB());\n RenderUtils.drawSidewaysGradient(this.getX() + 2, this.getY() + 42, this.getWidth() - 4, Float.intBitsToFloat(Float.floatToIntBits(1.5246161f) ^ 0x7EF3269F), new Color(0, 0, 0), color, 255, 255);\n RenderUtils.drawOutline(this.getX() + 2, this.getY() + 42, this.getX() + 2 + this.getWidth() - 4, this.getY() + 53, Float.intBitsToFloat(Float.floatToIntBits(3.7803736f) ^ 0x7F71F1A4), new Color(0, 0, 0).getRGB());\n RenderUtils.drawRecta((float)(this.getX() + 2) + this.briWidth, this.getY() + 42, Float.intBitsToFloat(Float.floatToIntBits(8.346171f) ^ 0x7E8589EB), Float.intBitsToFloat(Float.floatToIntBits(0.08925866f) ^ 0x7C86CD3F), new Color(255, 255, 255).getRGB());\n Gui.drawRect((int)this.getX(), (int)(this.getY() + 56), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 70), (int)new Color(40, 40, 40).getRGB());\n this.renderAlphaBG(this.getX() + 2, this.getY() + 55, this.alphaBG);\n RenderUtils.drawSidewaysGradient(this.getX() + 2, this.getY() + 55, this.getWidth() - 4, Float.intBitsToFloat(Float.floatToIntBits(0.13166903f) ^ 0x7F36D43F), new Color(0, 0, 0), color, 0, 255);\n RenderUtils.drawOutline(this.getX() + 2, this.getY() + 55, this.getX() + 2 + this.getWidth() - 4, this.getY() + 66, Float.intBitsToFloat(Float.floatToIntBits(19.69502f) ^ 0x7E9D8F67), new Color(0, 0, 0).getRGB());\n RenderUtils.drawRecta((float)(this.getX() + 2) + this.alphaWidth, this.getY() + 55, Float.intBitsToFloat(Float.floatToIntBits(6.702013f) ^ 0x7F5676E4), Float.intBitsToFloat(Float.floatToIntBits(0.13652846f) ^ 0x7F3BCE1E), new Color(255, 255, 255).getRGB());\n Gui.drawRect((int)this.getX(), (int)(this.getY() + 70), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 84), (int)new Color(40, 40, 40).getRGB());\n Europa.FONT_MANAGER.drawString(\"Rainbow\", this.getX() + 3, (float)(this.getY() + 78) - Europa.FONT_MANAGER.getHeight() / Float.intBitsToFloat(Float.floatToIntBits(0.8730777f) ^ 0x7F5F8205), Color.WHITE);\n Gui.drawRect((int)(this.getX() + this.getWidth() - 12), (int)(this.getY() + 72), (int)(this.getX() + this.getWidth() - 2), (int)(this.getY() + 82), (int)new Color(30, 30, 30).getRGB());\n if (this.setting.getRainbow().booleanValue()) {\n RenderUtils.prepareGL();\n GL11.glShadeModel((int)7425);\n GL11.glEnable((int)2848);\n GL11.glLineWidth((float)Float.intBitsToFloat(Float.floatToIntBits(0.2713932f) ^ 0x7EAAF40D));\n GL11.glBegin((int)1);\n GL11.glColor3f((float)((float)ModuleColor.getActualColor().getRed() / Float.intBitsToFloat(Float.floatToIntBits(0.015137452f) ^ 0x7F070313)), (float)((float)ModuleColor.getActualColor().getGreen() / Float.intBitsToFloat(Float.floatToIntBits(1.1948546f) ^ 0x7CE7F0FF)), (float)((float)ModuleColor.getActualColor().getBlue() / Float.intBitsToFloat(Float.floatToIntBits(0.36357376f) ^ 0x7DC52657)));\n GL11.glVertex2d((double)(this.getX() + this.getWidth() - 8), (double)(this.getY() + 80));\n GL11.glColor3f((float)((float)ModuleColor.getActualColor().getRed() / Float.intBitsToFloat(Float.floatToIntBits(0.015521388f) ^ 0x7F014D6B)), (float)((float)ModuleColor.getActualColor().getGreen() / Float.intBitsToFloat(Float.floatToIntBits(0.01025841f) ^ 0x7F5712E4)), (float)((float)ModuleColor.getActualColor().getBlue() / Float.intBitsToFloat(Float.floatToIntBits(0.10675689f) ^ 0x7EA5A35B)));\n GL11.glVertex2d((double)(this.getX() + this.getWidth() - 8 + 4), (double)(this.getY() + 74));\n GL11.glEnd();\n GL11.glBegin((int)1);\n GL11.glColor3f((float)((float)ModuleColor.getActualColor().getRed() / Float.intBitsToFloat(Float.floatToIntBits(0.009417259f) ^ 0x7F654AD9)), (float)((float)ModuleColor.getActualColor().getGreen() / Float.intBitsToFloat(Float.floatToIntBits(0.07014828f) ^ 0x7EF0A9E7)), (float)((float)ModuleColor.getActualColor().getBlue() / Float.intBitsToFloat(Float.floatToIntBits(0.013465701f) ^ 0x7F239F3E)));\n GL11.glVertex2d((double)(this.getX() + this.getWidth() - 8), (double)(this.getY() + 80));\n GL11.glColor3f((float)((float)ModuleColor.getActualColor().getRed() / Float.intBitsToFloat(Float.floatToIntBits(0.0155056f) ^ 0x7F010B33)), (float)((float)ModuleColor.getActualColor().getGreen() / Float.intBitsToFloat(Float.floatToIntBits(0.011914493f) ^ 0x7F3C3501)), (float)((float)ModuleColor.getActualColor().getBlue() / Float.intBitsToFloat(Float.floatToIntBits(0.012230922f) ^ 0x7F376434)));\n GL11.glVertex2d((double)(this.getX() + this.getWidth() - 10), (double)(this.getY() + 77));\n GL11.glEnd();\n RenderUtils.releaseGL();\n }\n }\n Gui.drawRect((int)(this.getX() - 1), (int)this.getY(), (int)this.getX(), (int)(this.getY() + 84), (int)new Color(30, 30, 30).getRGB());\n Gui.drawRect((int)(this.getX() + this.getWidth()), (int)this.getY(), (int)(this.getX() + this.getWidth() + 1), (int)(this.getY() + 84), (int)new Color(30, 30, 30).getRGB());\n Europa.FONT_MANAGER.drawString(this.setting.getName(), this.getX() + 3, this.getY() + 3, Color.WHITE);\n }", "public void windowDeiconified(WindowEvent arg0) {\n //textArea1.append(\"Window is in normal state\");\n\n }", "boolean usesVisualizationStyles();", "@Override\n\tprotected int getAddWindowHeigh() {\n\t\treturn 170;\n\t}", "void buildWindow()\n { main.gui.gralMng.selectPanel(\"primaryWindow\");\n main.gui.gralMng.setPosition(-30, 0, -47, 0, 'r'); //right buttom, about half less display width and hight.\n int windProps = GralWindow.windConcurrently;\n GralWindow window = main.gui.gralMng.createWindow(\"windStatus\", \"Status - The.file.Commander\", windProps);\n windStatus = window; \n main.gui.gralMng.setPosition(3.5f, GralPos.size -3, 1, GralPos.size +5, 'd');\n widgCopy = main.gui.gralMng.addButton(\"sCopy\", main.copyCmd.actionConfirmCopy, \"copy\");\n widgEsc = main.gui.gralMng.addButton(\"dirBytes\", actionButton, \"esc\");\n }", "@Override\r\n public void windowIconified(WindowEvent e) {\n }", "@TargetApi(Build.VERSION_CODES.LOLLIPOP)\n private void setupWindowAnimations() {\n\n Explode explode = new Explode();\n explode.setDuration(500);\n getWindow().setEnterTransition(explode);\n\n Fade fade = new Fade();\n fade.setDuration(500);\n getWindow().setReturnTransition(fade);\n }", "private void createBWScreen() {\n\t\tfloat[] dash1 = { 2f, 0f, 2f };\n\t\t// Color myNewBlue = new Color(136, 69, 19);\n\t\tColor myNewBlue = new Color(153, 118, 55);\n\t\tBasicStroke bs1 = new BasicStroke(1, BasicStroke.CAP_ROUND, BasicStroke.JOIN_BEVEL);\n\n\t\tactionPanel = new ImagePanel(new ImageIcon(ClassLoader.getSystemResource(\"image/BackgroundNFA.png\")).getImage());\n\t\tactionPanel.setBackground(Color.white);\n\t\tactionPanel.setBounds(0, 0, 1259, 719);\n\t\tgetContentPane().add(actionPanel);\n\n\t\tactionPanel.setBorder(new TitledBorder(null, \"\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\n\t\tactionPanel.setLayout(null);\n\n\t\tg = (Graphics2D) actionPanel.getGraphics();\n\t\tg.setColor(myNewBlue);\n\t\tg.setStroke(bs1);\n\t\ttimer = new Timer(5, blinker);\n\t\ttimer.start();\n\n\t\ttransitionLabel1121 = new JLabel();\n\t\tappleLabels.put(1121, transitionLabel1121);\n\t\ttransitionLabel1121.setBounds(435, 135, 40, 40);\n\t\ttransitionLabel1121.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/appleBW.png\")));\n\t\tactionPanel.add(transitionLabel1121);\n\n\t\ttransitionLabel1122 = new JLabel();\n\t\tappleLabels.put(1122, transitionLabel1122);\n\t\ttransitionLabel1122.setBounds(616, 135, 40, 40);\n\t\ttransitionLabel1122.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/appleBW.png\")));\n\t\tactionPanel.add(transitionLabel1122);\n\n\t\ttransitionLabel1123 = new JLabel();\n\t\tappleLabels.put(1123, transitionLabel1123);\n\t\ttransitionLabel1123.setBounds(801, 133, 40, 40);\n\t\ttransitionLabel1123.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/appleBW.png\")));\n\t\tactionPanel.add(transitionLabel1123);\n\n\t\ttransitionLabel2131 = new JLabel();\n\t\tappleLabels.put(2131, transitionLabel2131);\n\t\ttransitionLabel2131.setBounds(210, 282, 40, 40);\n\t\ttransitionLabel2131.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/appleBW.png\")));\n\t\tactionPanel.add(transitionLabel2131);\n\n\t\ttransitionLabel2132 = new JLabel();\n\t\tappleLabels.put(2132, transitionLabel2132);\n\t\ttransitionLabel2132.setBounds(264, 282, 40, 40);\n\t\ttransitionLabel2132.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/appleBW.png\")));\n\t\tactionPanel.add(transitionLabel2132);\n\n\t\ttransitionLabel2133 = new JLabel();\n\t\tappleLabels.put(2133, transitionLabel2133);\n\t\ttransitionLabel2133.setBounds(312, 282, 40, 40);\n\t\ttransitionLabel2133.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/appleBW.png\")));\n\t\tactionPanel.add(transitionLabel2133);\n\n\t\ttransitionLabel2234 = new JLabel();\n\t\tappleLabels.put(2234, transitionLabel2234);\n\t\ttransitionLabel2234.setBounds(549, 282, 40, 40);\n\t\ttransitionLabel2234.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/appleBW.png\")));\n\t\tactionPanel.add(transitionLabel2234);\n\n\t\ttransitionLabel2235 = new JLabel();\n\t\tappleLabels.put(2235, transitionLabel2235);\n\t\ttransitionLabel2235.setBounds(615, 282, 40, 40);\n\t\ttransitionLabel2235.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/appleBW.png\")));\n\t\tactionPanel.add(transitionLabel2235);\n\n\t\ttransitionLabel2236 = new JLabel();\n\t\tappleLabels.put(2236, transitionLabel2236);\n\t\ttransitionLabel2236.setBounds(674, 282, 40, 40);\n\t\ttransitionLabel2236.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/appleBW.png\")));\n\t\tactionPanel.add(transitionLabel2236);\n\n\t\ttransitionLabel2337 = new JLabel();\n\t\tappleLabels.put(2337, transitionLabel2337);\n\t\ttransitionLabel2337.setBounds(913, 282, 40, 40);\n\t\ttransitionLabel2337.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/appleBW.png\")));\n\t\tactionPanel.add(transitionLabel2337);\n\n\t\ttransitionLabel2338 = new JLabel();\n\t\tappleLabels.put(2338, transitionLabel2338);\n\t\ttransitionLabel2338.setBounds(966, 282, 40, 40);\n\t\ttransitionLabel2338.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/appleBW.png\")));\n\t\tactionPanel.add(transitionLabel2338);\n\n\t\ttransitionLabel2339 = new JLabel();\n\t\tappleLabels.put(2339, transitionLabel2339);\n\t\ttransitionLabel2339.setBounds(1017, 282, 40, 40);\n\t\ttransitionLabel2339.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/appleBW.png\")));\n\t\tactionPanel.add(transitionLabel2339);\n\n\t\ttransitionLabel3141 = new JLabel();\n\t\tappleLabels.put(3141, transitionLabel3141);\n\t\ttransitionLabel3141.setBounds(118, 460, 40, 40);\n\t\ttransitionLabel3141.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/appleLevel4BW.png\")));\n\t\tactionPanel.add(transitionLabel3141);\n\n\t\ttransitionLabel3142 = new JLabel();\n\t\tappleLabels.put(3142, transitionLabel3142);\n\t\ttransitionLabel3142.setBounds(145, 460, 40, 40);\n\t\ttransitionLabel3142.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/appleLevel4BW.png\")));\n\t\tactionPanel.add(transitionLabel3142);\n\n\t\ttransitionLabel3143 = new JLabel();\n\t\tappleLabels.put(3143, transitionLabel3143);\n\t\ttransitionLabel3143.setBounds(173, 460, 40, 40);\n\t\ttransitionLabel3143.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/appleLevel4BW.png\")));\n\t\tactionPanel.add(transitionLabel3143);\n\n\t\ttransitionLabel3244 = new JLabel();\n\t\tappleLabels.put(3244, transitionLabel3244);\n\t\ttransitionLabel3244.setBounds(237, 460, 40, 40);\n\t\ttransitionLabel3244.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/appleLevel4BW.png\")));\n\t\tactionPanel.add(transitionLabel3244);\n\n\t\ttransitionLabel3245 = new JLabel();\n\t\tappleLabels.put(3245, transitionLabel3245);\n\t\ttransitionLabel3245.setBounds(262, 460, 40, 40);\n\t\ttransitionLabel3245.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/appleLevel4BW.png\")));\n\t\tactionPanel.add(transitionLabel3245);\n\n\t\ttransitionLabel3246 = new JLabel();\n\t\tappleLabels.put(3246, transitionLabel3246);\n\t\ttransitionLabel3246.setBounds(285, 460, 40, 40);\n\t\ttransitionLabel3246.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/appleLevel4BW.png\")));\n\t\tactionPanel.add(transitionLabel3246);\n\n\t\ttransitionLabel3347 = new JLabel();\n\t\tappleLabels.put(3347, transitionLabel3347);\n\t\ttransitionLabel3347.setBounds(346, 460, 40, 40);\n\t\ttransitionLabel3347.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/appleLevel4BW.png\")));\n\t\tactionPanel.add(transitionLabel3347);\n\n\t\ttransitionLabel3348 = new JLabel();\n\t\tappleLabels.put(3348, transitionLabel3348);\n\t\ttransitionLabel3348.setBounds(376, 460, 40, 40);\n\t\ttransitionLabel3348.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/appleLevel4BW.png\")));\n\t\tactionPanel.add(transitionLabel3348);\n\n\t\ttransitionLabel3349 = new JLabel();\n\t\tappleLabels.put(3349, transitionLabel3349);\n\t\ttransitionLabel3349.setBounds(406, 460, 40, 40);\n\t\ttransitionLabel3349.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/appleLevel4BW.png\")));\n\t\tactionPanel.add(transitionLabel3349);\n\n\t\ttransitionLabel34410 = new JLabel();\n\t\tappleLabels.put(34410, transitionLabel34410);\n\t\ttransitionLabel34410.setBounds(469, 460, 40, 40);\n\t\ttransitionLabel34410.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/appleLevel4BW.png\")));\n\t\tactionPanel.add(transitionLabel34410);\n\n\t\ttransitionLabel34411 = new JLabel();\n\t\tappleLabels.put(34411, transitionLabel34411);\n\t\ttransitionLabel34411.setBounds(496, 460, 40, 40);\n\t\ttransitionLabel34411.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/appleLevel4BW.png\")));\n\t\tactionPanel.add(transitionLabel34411);\n\n\t\ttransitionLabel34412 = new JLabel();\n\t\tappleLabels.put(34412, transitionLabel34412);\n\t\ttransitionLabel34412.setBounds(524, 460, 40, 40);\n\t\ttransitionLabel34412.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/appleLevel4BW.png\")));\n\t\tactionPanel.add(transitionLabel34412);\n\n\t\ttransitionLabel35413 = new JLabel();\n\t\tappleLabels.put(35413, transitionLabel35413);\n\t\ttransitionLabel35413.setBounds(588, 460, 40, 40);\n\t\ttransitionLabel35413.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/appleLevel4BW.png\")));\n\t\tactionPanel.add(transitionLabel35413);\n\n\t\ttransitionLabel35414 = new JLabel();\n\t\tappleLabels.put(35414, transitionLabel35414);\n\t\ttransitionLabel35414.setBounds(616, 460, 40, 40);\n\t\ttransitionLabel35414.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/appleLevel4BW.png\")));\n\t\tactionPanel.add(transitionLabel35414);\n\n\t\ttransitionLabel35415 = new JLabel();\n\t\tappleLabels.put(35415, transitionLabel35415);\n\t\ttransitionLabel35415.setBounds(642, 460, 40, 40);\n\t\ttransitionLabel35415.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/appleLevel4BW.png\")));\n\t\tactionPanel.add(transitionLabel35415);\n\n\t\ttransitionLabel36416 = new JLabel();\n\t\tappleLabels.put(36416, transitionLabel36416);\n\t\ttransitionLabel36416.setBounds(704, 460, 40, 40);\n\t\ttransitionLabel36416.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/appleLevel4BW.png\")));\n\t\tactionPanel.add(transitionLabel36416);\n\n\t\ttransitionLabel36417 = new JLabel();\n\t\tappleLabels.put(36417, transitionLabel36417);\n\t\ttransitionLabel36417.setBounds(733, 460, 40, 40);\n\t\ttransitionLabel36417.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/appleLevel4BW.png\")));\n\t\tactionPanel.add(transitionLabel36417);\n\n\t\ttransitionLabel36418 = new JLabel();\n\t\tappleLabels.put(36418, transitionLabel36418);\n\t\ttransitionLabel36418.setBounds(758, 460, 40, 40);\n\t\ttransitionLabel36418.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/appleLevel4BW.png\")));\n\t\tactionPanel.add(transitionLabel36418);\n\n\t\ttransitionLabel37419 = new JLabel();\n\t\tappleLabels.put(37419, transitionLabel37419);\n\t\ttransitionLabel37419.setBounds(820, 460, 40, 40);\n\t\ttransitionLabel37419.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/appleLevel4BW.png\")));\n\t\tactionPanel.add(transitionLabel37419);\n\n\t\ttransitionLabel37420 = new JLabel();\n\t\tappleLabels.put(37420, transitionLabel37420);\n\t\ttransitionLabel37420.setBounds(848, 460, 40, 40);\n\t\ttransitionLabel37420.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/appleLevel4BW.png\")));\n\t\tactionPanel.add(transitionLabel37420);\n\n\t\ttransitionLabel37421 = new JLabel();\n\t\tappleLabels.put(37421, transitionLabel37421);\n\t\ttransitionLabel37421.setBounds(876, 460, 40, 40);\n\t\ttransitionLabel37421.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/appleLevel4BW.png\")));\n\t\tactionPanel.add(transitionLabel37421);\n\n\t\ttransitionLabel38422 = new JLabel();\n\t\tappleLabels.put(38422, transitionLabel38422);\n\t\ttransitionLabel38422.setBounds(938, 460, 40, 40);\n\t\ttransitionLabel38422.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/appleLevel4BW.png\")));\n\t\tactionPanel.add(transitionLabel38422);\n\n\t\ttransitionLabel38423 = new JLabel();\n\t\tappleLabels.put(38423, transitionLabel38423);\n\t\ttransitionLabel38423.setBounds(965, 460, 40, 40);\n\t\ttransitionLabel38423.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/appleLevel4BW.png\")));\n\t\tactionPanel.add(transitionLabel38423);\n\n\t\ttransitionLabel38424 = new JLabel();\n\t\tappleLabels.put(38424, transitionLabel38424);\n\t\ttransitionLabel38424.setBounds(992, 460, 40, 40);\n\t\ttransitionLabel38424.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/appleLevel4BW.png\")));\n\t\tactionPanel.add(transitionLabel38424);\n\n\t\ttransitionLabel39425 = new JLabel();\n\t\tappleLabels.put(39425, transitionLabel39425);\n\t\ttransitionLabel39425.setBounds(1054, 460, 40, 40);\n\t\ttransitionLabel39425.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/appleLevel4BW.png\")));\n\t\tactionPanel.add(transitionLabel39425);\n\n\t\ttransitionLabel39426 = new JLabel();\n\t\tappleLabels.put(39426, transitionLabel39427);\n\t\ttransitionLabel39426.setBounds(1082, 460, 40, 40);\n\t\ttransitionLabel39426.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/appleLevel4BW.png\")));\n\t\tactionPanel.add(transitionLabel39426);\n\n\t\ttransitionLabel39427 = new JLabel();\n\t\tappleLabels.put(39427, transitionLabel39427);\n\t\ttransitionLabel39427.setBounds(1111, 460, 40, 40);\n\t\ttransitionLabel39427.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/appleLevel4BW.png\")));\n\t\tactionPanel.add(transitionLabel39427);\n\n\t\ttreeBWLevel1 = new JLabel(\"\");\n\t\ttreeBWLevel1.setLayout(new FlowLayout(FlowLayout.CENTER));\n\t\ttreeBWLevel1.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBW.png\")));\n\t\ttreeBWLevel1.setBounds(605, 51, 58, 58);\n\t\ttreeBWLevel1.setName(\"11\");\n\t\tactionPanel.add(treeBWLevel1);\n\t\tlabelList.put(11, treeBWLevel1);\n\t\ttreeBWLevel23 = new JLabel(\"\");\n\t\ttreeBWLevel23.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBW.png\")));\n\t\ttreeBWLevel23.setBounds(956, 200, 58, 58);\n\t\ttreeBWLevel23.setName(\"23\");\n\t\tlabelList.put(23, treeBWLevel23);\n\t\tactionPanel.add(treeBWLevel23);\n\t\ttreeBWLevel22 = new JLabel(\"\");\n\t\ttreeBWLevel22.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBW.png\")));\n\t\ttreeBWLevel22.setBounds(605, 200, 58, 58);\n\t\ttreeBWLevel22.setName(\"22\");\n\t\tlabelList.put(22, treeBWLevel22);\n\t\tactionPanel.add(treeBWLevel22);\n\t\ttreeBWLevel21 = new JLabel(\"\");\n\t\ttreeBWLevel21.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBW.png\")));\n\t\ttreeBWLevel21.setBounds(254, 200, 58, 58);\n\t\ttreeBWLevel21.setName(\"21\");\n\t\tlabelList.put(21, treeBWLevel21);\n\t\tactionPanel.add(treeBWLevel21);\n\t\ttreeBWLevel31 = new JLabel(\"\");\n\t\ttreeBWLevel31.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBW.png\")));\n\t\ttreeBWLevel31.setBounds(137, 350, 58, 58);\n\t\ttreeBWLevel31.setName(\"31\");\n\t\tlabelList.put(31, treeBWLevel31);\n\t\tactionPanel.add(treeBWLevel31);\n\t\ttreeBWLevel32 = new JLabel(\"\");\n\t\ttreeBWLevel32.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBW.png\")));\n\t\ttreeBWLevel32.setBounds(254, 350, 58, 58);\n\t\ttreeBWLevel32.setName(\"32\");\n\t\tlabelList.put(32, treeBWLevel32);\n\t\tactionPanel.add(treeBWLevel32);\n\t\ttreeBWLevel33 = new JLabel(\"\");\n\t\ttreeBWLevel33.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBW.png\")));\n\t\ttreeBWLevel33.setBounds(371, 350, 58, 58);\n\t\ttreeBWLevel33.setName(\"33\");\n\t\tlabelList.put(33, treeBWLevel33);\n\t\tactionPanel.add(treeBWLevel33);\n\t\ttreeBWLevel34 = new JLabel(\"\");\n\t\ttreeBWLevel34.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBW.png\")));\n\t\ttreeBWLevel34.setBounds(488, 350, 58, 58);\n\t\ttreeBWLevel34.setName(\"34\");\n\t\tlabelList.put(34, treeBWLevel34);\n\t\tactionPanel.add(treeBWLevel34);\n\t\ttreeBWLevel35 = new JLabel(\"\");\n\t\ttreeBWLevel35.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBW.png\")));\n\t\ttreeBWLevel35.setBounds(605, 350, 58, 58);\n\t\ttreeBWLevel35.setName(\"35\");\n\t\tlabelList.put(35, treeBWLevel35);\n\t\tactionPanel.add(treeBWLevel35);\n\t\ttreeBWLevel36 = new JLabel(\"\");\n\t\ttreeBWLevel36.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBW.png\")));\n\t\ttreeBWLevel36.setBounds(722, 350, 58, 58);\n\t\ttreeBWLevel36.setName(\"36\");\n\t\tlabelList.put(36, treeBWLevel36);\n\t\tactionPanel.add(treeBWLevel36);\n\t\ttreeBWLevel37 = new JLabel(\"\");\n\t\ttreeBWLevel37.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBW.png\")));\n\t\ttreeBWLevel37.setBounds(839, 350, 58, 58);\n\t\ttreeBWLevel37.setName(\"37\");\n\t\tlabelList.put(37, treeBWLevel37);\n\t\tactionPanel.add(treeBWLevel37);\n\t\ttreeBWLevel38 = new JLabel(\"\");\n\t\ttreeBWLevel38.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBW.png\")));\n\t\ttreeBWLevel38.setBounds(956, 350, 58, 58);\n\t\ttreeBWLevel38.setName(\"38\");\n\t\tlabelList.put(38, treeBWLevel38);\n\t\tactionPanel.add(treeBWLevel38);\n\t\ttreeBWLevel39 = new JLabel(\"\");\n\t\ttreeBWLevel39.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBW.png\")));\n\t\ttreeBWLevel39.setBounds(1073, 350, 58, 58);\n\t\ttreeBWLevel39.setName(\"39\");\n\t\tlabelList.put(39, treeBWLevel39);\n\t\tactionPanel.add(treeBWLevel39);\n\t\ttreeBWLevel41 = new JLabel(\"\");\n\t\ttreeBWLevel41.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBWLevel4.png\")));\n\t\ttreeBWLevel41.setBounds(98, 510, 40, 40);\n\t\ttreeBWLevel41.setName(\"41\");\n\t\tlabelList.put(41, treeBWLevel41);\n\t\tactionPanel.add(treeBWLevel41);\n\t\ttreeBWLevel42 = new JLabel(\"\");\n\t\ttreeBWLevel42.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBWLevel4.png\")));\n\t\ttreeBWLevel42.setBounds(137, 510, 40, 40);\n\t\ttreeBWLevel42.setName(\"42\");\n\t\tlabelList.put(42, treeBWLevel42);\n\t\tactionPanel.add(treeBWLevel42);\n\t\ttreeBWLevel43 = new JLabel(\"\");\n\t\ttreeBWLevel43.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBWLevel4.png\")));\n\t\ttreeBWLevel43.setBounds(176, 510, 40, 40);\n\t\ttreeBWLevel43.setName(\"43\");\n\t\tlabelList.put(43, treeBWLevel43);\n\t\tactionPanel.add(treeBWLevel43);\n\t\ttreeBWLevel44 = new JLabel(\"\");\n\t\ttreeBWLevel44.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBWLevel4.png\")));\n\t\ttreeBWLevel44.setBounds(215, 510, 40, 40);\n\t\ttreeBWLevel44.setName(\"44\");\n\t\tlabelList.put(44, treeBWLevel44);\n\t\tactionPanel.add(treeBWLevel44);\n\t\ttreeBWLevel45 = new JLabel(\"\");\n\t\ttreeBWLevel45.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBWLevel4.png\")));\n\t\ttreeBWLevel45.setBounds(254, 510, 40, 40);\n\t\ttreeBWLevel45.setName(\"45\");\n\t\tlabelList.put(45, treeBWLevel45);\n\t\tactionPanel.add(treeBWLevel45);\n\t\ttreeBWLevel46 = new JLabel(\"\");\n\t\ttreeBWLevel46.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBWLevel4.png\")));\n\t\ttreeBWLevel46.setBounds(293, 510, 40, 40);\n\t\ttreeBWLevel46.setName(\"46\");\n\t\tlabelList.put(46, treeBWLevel46);\n\t\tactionPanel.add(treeBWLevel46);\n\t\ttreeBWLevel47 = new JLabel(\"\");\n\t\ttreeBWLevel47.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBWLevel4.png\")));\n\t\ttreeBWLevel47.setBounds(332, 510, 40, 40);\n\t\ttreeBWLevel47.setName(\"47\");\n\t\tlabelList.put(47, treeBWLevel47);\n\t\tactionPanel.add(treeBWLevel47);\n\t\ttreeBWLevel48 = new JLabel(\"\");\n\t\ttreeBWLevel48.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBWLevel4.png\")));\n\t\ttreeBWLevel48.setBounds(371, 510, 40, 40);\n\t\ttreeBWLevel48.setName(\"48\");\n\t\tlabelList.put(48, treeBWLevel48);\n\t\tactionPanel.add(treeBWLevel48);\n\t\ttreeBWLevel49 = new JLabel(\"\");\n\t\ttreeBWLevel49.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBWLevel4.png\")));\n\t\ttreeBWLevel49.setBounds(410, 510, 40, 40);\n\t\ttreeBWLevel49.setName(\"49\");\n\t\tlabelList.put(49, treeBWLevel49);\n\t\tactionPanel.add(treeBWLevel49);\n\t\ttreeBWLevel412 = new JLabel(\"\");\n\t\ttreeBWLevel412.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBWLevel4.png\")));\n\t\ttreeBWLevel412.setBounds(527, 510, 40, 40);\n\t\ttreeBWLevel412.setName(\"412\");\n\t\tlabelList.put(412, treeBWLevel412);\n\t\tactionPanel.add(treeBWLevel412);\n\t\ttreeBWLevel410 = new JLabel(\"\");\n\t\ttreeBWLevel410.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBWLevel4.png\")));\n\t\ttreeBWLevel410.setBounds(449, 510, 40, 40);\n\t\ttreeBWLevel410.setName(\"410\");\n\t\tlabelList.put(410, treeBWLevel410);\n\t\tactionPanel.add(treeBWLevel410);\n\t\ttreeBWLevel411 = new JLabel(\"\");\n\t\ttreeBWLevel411.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBWLevel4.png\")));\n\t\ttreeBWLevel411.setBounds(488, 510, 40, 40);\n\t\ttreeBWLevel411.setName(\"411\");\n\t\tlabelList.put(411, treeBWLevel411);\n\t\tactionPanel.add(treeBWLevel411);\n\t\ttreeBWLevel413 = new JLabel(\"\");\n\t\ttreeBWLevel413.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBWLevel4.png\")));\n\t\ttreeBWLevel413.setBounds(566, 510, 40, 40);\n\t\ttreeBWLevel413.setName(\"413\");\n\t\tlabelList.put(413, treeBWLevel413);\n\t\tactionPanel.add(treeBWLevel413);\n\t\ttreeBWLevel414 = new JLabel(\"\");\n\t\ttreeBWLevel414.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBWLevel4.png\")));\n\t\ttreeBWLevel414.setBounds(605, 510, 40, 40);\n\t\ttreeBWLevel414.setName(\"414\");\n\t\tlabelList.put(414, treeBWLevel414);\n\t\tactionPanel.add(treeBWLevel414);\n\t\ttreeBWLevel415 = new JLabel(\"\");\n\t\ttreeBWLevel415.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBWLevel4.png\")));\n\t\ttreeBWLevel415.setBounds(644, 510, 40, 40);\n\t\ttreeBWLevel415.setName(\"415\");\n\t\tlabelList.put(415, treeBWLevel415);\n\t\tactionPanel.add(treeBWLevel415);\n\t\ttreeBWLevel416 = new JLabel(\"\");\n\t\ttreeBWLevel416.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBWLevel4.png\")));\n\t\ttreeBWLevel416.setBounds(683, 510, 40, 40);\n\t\ttreeBWLevel416.setName(\"416\");\n\t\tlabelList.put(416, treeBWLevel416);\n\t\tactionPanel.add(treeBWLevel416);\n\t\ttreeBWLevel417 = new JLabel(\"\");\n\t\ttreeBWLevel417.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBWLevel4.png\")));\n\t\ttreeBWLevel417.setBounds(722, 510, 40, 40);\n\t\ttreeBWLevel417.setName(\"417\");\n\t\tlabelList.put(417, treeBWLevel417);\n\t\tactionPanel.add(treeBWLevel417);\n\t\ttreeBWLevel418 = new JLabel(\"\");\n\t\ttreeBWLevel418.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBWLevel4.png\")));\n\t\ttreeBWLevel418.setBounds(761, 510, 40, 40);\n\t\ttreeBWLevel418.setName(\"418\");\n\t\tlabelList.put(418, treeBWLevel418);\n\t\tactionPanel.add(treeBWLevel418);\n\n\t\ttreeBWLevel419 = new JLabel(\"\");\n\t\ttreeBWLevel419.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBWLevel4.png\")));\n\t\ttreeBWLevel419.setName(\"419\");\n\t\ttreeBWLevel419.setBounds(800, 510, 40, 40);\n\t\tlabelList.put(419, treeBWLevel419);\n\t\tactionPanel.add(treeBWLevel419);\n\n\t\ttreeBWLevel420 = new JLabel(\"\");\n\t\ttreeBWLevel420.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBWLevel4.png\")));\n\t\ttreeBWLevel420.setName(\"420\");\n\t\ttreeBWLevel420.setBounds(839, 510, 40, 40);\n\t\tlabelList.put(420, treeBWLevel420);\n\t\tactionPanel.add(treeBWLevel420);\n\n\t\ttreeBWLevel421 = new JLabel(\"\");\n\t\ttreeBWLevel421.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBWLevel4.png\")));\n\t\ttreeBWLevel421.setName(\"421\");\n\t\ttreeBWLevel421.setBounds(878, 510, 40, 40);\n\t\tlabelList.put(421, treeBWLevel421);\n\t\tactionPanel.add(treeBWLevel421);\n\n\t\ttreeBWLevel422 = new JLabel(\"\");\n\t\ttreeBWLevel422.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBWLevel4.png\")));\n\t\ttreeBWLevel422.setName(\"422\");\n\t\ttreeBWLevel422.setBounds(917, 510, 40, 40);\n\t\tlabelList.put(422, treeBWLevel422);\n\t\tactionPanel.add(treeBWLevel422);\n\n\t\ttreeBWLevel423 = new JLabel(\"\");\n\t\ttreeBWLevel423.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBWLevel4.png\")));\n\t\ttreeBWLevel423.setName(\"423\");\n\t\ttreeBWLevel423.setBounds(956, 510, 40, 40);\n\t\tlabelList.put(423, treeBWLevel423);\n\t\tactionPanel.add(treeBWLevel423);\n\n\t\ttreeBWLevel424 = new JLabel(\"\");\n\t\ttreeBWLevel424.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBWLevel4.png\")));\n\t\ttreeBWLevel424.setName(\"424\");\n\t\ttreeBWLevel424.setBounds(995, 510, 40, 40);\n\t\tlabelList.put(424, treeBWLevel424);\n\t\tactionPanel.add(treeBWLevel424);\n\n\t\ttreeBWLevel425 = new JLabel(\"\");\n\t\ttreeBWLevel425.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBWLevel4.png\")));\n\t\ttreeBWLevel425.setName(\"425\");\n\t\ttreeBWLevel425.setBounds(1034, 510, 40, 40);\n\t\tlabelList.put(425, treeBWLevel425);\n\t\tactionPanel.add(treeBWLevel425);\n\n\t\ttreeBWLevel426 = new JLabel(\"\");\n\t\ttreeBWLevel426.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBWLevel4.png\")));\n\t\ttreeBWLevel426.setName(\"426\");\n\t\tlabelList.put(426, treeBWLevel426);\n\t\ttreeBWLevel426.setBounds(1073, 510, 40, 40);\n\t\tactionPanel.add(treeBWLevel426);\n\n\t\ttreeBWLevel427 = new JLabel(\"\");\n\t\ttreeBWLevel427.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBWLevel4.png\")));\n\t\ttreeBWLevel427.setName(\"427\");\n\t\ttreeBWLevel427.setBounds(1112, 510, 40, 40);\n\t\tlabelList.put(4127, treeBWLevel427);\n\t\tactionPanel.add(treeBWLevel427);\n\t\tactionPanel.add(treeBWLevel427);\n\t\tarrowLabel = new JLabel(\"\");\n\t\tarrowLabel.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/arrow.png\")));\n\t\tarrowLabel.setBounds(660, 600, 30, 30);\n\t\tactionPanel.add(arrowLabel);\n\t\tarrowLabel.setVisible(false);\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBackground(Color.LIGHT_GRAY);\n\t\tpanel.setBorder(new TitledBorder(null, \"\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\n\t\tpanel.setBounds(6, 599, 1250, 98);\n\t\tactionPanel.add(panel);\n\t\tpanel.setLayout(null);\n\t\ttestPanel = new JPanel();\n\t\ttestPanel.setBounds(650, 27, 245, 39);\n\t\tpanel.add(testPanel);\n\t\ttestPanel.setLayout(new FlowLayout(FlowLayout.LEFT, 5, 5));\n\n\t\ttestBtn1 = new JButton(\"\");\n\t\ttestBtn1.setBackground(Color.GRAY);\n\t\ttestPanel.add(testBtn1);\n\n\t\ttestBtn2 = new JButton(\"\");\n\t\ttestBtn2.setBackground(Color.GRAY);\n\t\ttestPanel.add(testBtn2);\n\n\t\ttestBtn3 = new JButton(\"\");\n\t\ttestBtn3.setBackground(Color.GRAY);\n\t\ttestPanel.add(testBtn3);\n\n\t\ttestPanel.setVisible(false);\n\t\ttestPanel.setBackground(Color.LIGHT_GRAY);\n\n\t\tpanel_1 = new JPanel();\n\t\tpanel_1.setBackground(Color.LIGHT_GRAY);\n\t\tpanel_1.setBounds(181, 27, 376, 44);\n\t\tpanel.add(panel_1);\n\n\t\tJLabel lblNewLabel = new JLabel(\"Enter Test string\");\n\t\tpanel_1.add(lblNewLabel);\n\n\t\ttestField = new JTextField();\n\t\ttestField.setBounds(20, 40, 161, 27);\n\t\tpanel_1.add(testField);\n\t\ttestField.setColumns(10);\n\t\ttestBtn = new JButton(\"Test\");\n\t\ttestBtn.setBounds(340, 20, 92, 30);\n\t\tpanel_1.add(testBtn);\n\n\t\ttestBtn.addMouseListener(new MouseAdapter() {\n\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t\t\ttestPanel.setVisible(true);\n\t\t\t\tarrowLabel.setVisible(true);\n\n\t\t\t\ttestString = testField.getText().toString();\n\n\t\t\t\ttestBtn1.setText(String.valueOf(testString.charAt(0)));\n\t\t\t\ttestBtn2.setText(String.valueOf(testString.charAt(1)));\n\t\t\t\ttestBtn3.setText(String.valueOf(testString.charAt(2)));\n\t\t\t\tactionPanel.revalidate();\n\t\t\t\tactionPanel.repaint();\n\t\t\t\t// testBtn1.setText(\" \" + testString.charAt(0));\n\n\t\t\t\ttestBtn1.addMouseListener(new MouseAdapter() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\tarrowLabel.setVisible(true);\n\t\t\t\t\t\tarrowLabel.setBounds(700, 600, 30, 30);\n\t\t\t\t\t\tNFARunWindow.this.testUserInput(testString.substring(0, 1));\n\t\t\t\t\t\ttestBtn1.setBackground(Color.GREEN);\n\t\t\t\t\t\ttestBtn2.setBackground(Color.GRAY);\n\t\t\t\t\t\ttestBtn3.setBackground(Color.GRAY);\n\t\t\t\t\t\tactionPanel.revalidate();\n\t\t\t\t\t\tactionPanel.repaint();\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\ttestBtn2.addMouseListener(new MouseAdapter() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\tarrowLabel.setBounds(745, 600, 30, 30);\n\t\t\t\t\t\tarrowLabel.setVisible(true);\n\t\t\t\t\t\tNFARunWindow.this.testUserInput(testString.substring(0, 2));\n\t\t\t\t\t\ttestBtn2.setBackground(Color.GREEN);\n\t\t\t\t\t\ttestBtn3.setBackground(Color.GRAY);\n\t\t\t\t\t\tactionPanel.revalidate();\n\t\t\t\t\t\tactionPanel.repaint();\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\ttestBtn3.addMouseListener(new MouseAdapter() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\tarrowLabel.setBounds(790, 600, 30, 30);\n\t\t\t\t\t\tNFARunWindow.this.testUserInput(testString.substring(0, 3));\n\t\t\t\t\t\ttestBtn3.setBackground(Color.GREEN);\n\t\t\t\t\t\tarrowLabel.setVisible(false);\n\t\t\t\t\t\tactionPanel.revalidate();\n\t\t\t\t\t\tactionPanel.repaint();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t});\n\n\t}", "@Override\r\n\tpublic void windowIconified(WindowEvent e) {\n\r\n\t}", "public CommonPopWindow build() {\n/* 65 */ if (this.mWidth != 0 && this.mHeight != 0) {\n/* 66 */ mPopupWindow = new PopupWindow(mContentView, this.mWidth, this.mHeight);\n/* */ } else {\n/* 68 */ mPopupWindow = new PopupWindow(mContentView, -2, -2);\n/* */ } \n/* */ \n/* */ \n/* 72 */ mPopupWindow.setTouchable(this.mTouchable);\n/* 73 */ mPopupWindow.setFocusable(this.mFocusable);\n/* 74 */ mPopupWindow.setOutsideTouchable(this.mOutsideTouchable);\n/* */ \n/* 76 */ if (this.mDrawable != null) {\n/* 77 */ mPopupWindow.setBackgroundDrawable(this.mDrawable);\n/* */ } else {\n/* 79 */ mPopupWindow.setBackgroundDrawable((Drawable)new ColorDrawable());\n/* */ } \n/* 81 */ if (this.mAnimationStyle != -1) {\n/* 82 */ mPopupWindow.setAnimationStyle(this.mAnimationStyle);\n/* */ }\n/* 84 */ if (this.mWidth == 0 || this.mHeight == 0) {\n/* 85 */ measureWidthAndHeight(mContentView);\n/* */ \n/* 87 */ this.mWidth = mPopupWindow.getContentView().getMeasuredWidth();\n/* 88 */ this.mHeight = mPopupWindow.getContentView().getMeasuredHeight();\n/* */ } \n/* */ \n/* 91 */ Activity activity = (Activity)this.mContext;\n/* 92 */ if (activity != null && this.mBackgroundDarkEnable) {\n/* 93 */ float alpha = (this.mDarkAlpha >= 0.0F || this.mDarkAlpha <= 1.0F) ? this.mDarkAlpha : 0.7F;\n/* 94 */ mWindow = activity.getWindow();\n/* 95 */ WindowManager.LayoutParams params = mWindow.getAttributes();\n/* 96 */ params.alpha = alpha;\n/* 97 */ mWindow.setAttributes(params);\n/* */ } \n/* */ \n/* 100 */ mPopupWindow.setOnDismissListener(this);\n/* */ \n/* 102 */ mPopupWindow.update();\n/* */ \n/* 104 */ if (this.mListener != null && this.mLayoutResId != 0) {\n/* 105 */ this.mListener.getChildView(mPopupWindow, mContentView, this.mLayoutResId);\n/* */ }\n/* */ \n/* 108 */ return this;\n/* */ }", "private static void createAndShowGUI() {\n //\n // Use the normal window decorations as defined by the look-and-feel\n // schema\n //\n JFrame.setDefaultLookAndFeelDecorated(true);\n //\n // Create the main application window\n //\n mainWindow = new MainWindow();\n //\n // Show the application window\n //\n mainWindow.pack();\n mainWindow.setVisible(true);\n }", "public static Color getWindowColor() {\n return WINDOW;\n }" ]
[ "0.6138743", "0.6094215", "0.6086101", "0.5985643", "0.59803766", "0.589949", "0.5661822", "0.565546", "0.56502223", "0.56317824", "0.56136215", "0.5473026", "0.54459506", "0.54312706", "0.5417571", "0.54159737", "0.5404399", "0.53584", "0.53386736", "0.53314734", "0.53299814", "0.5319348", "0.52447134", "0.52404815", "0.5238854", "0.52348", "0.5230784", "0.5227836", "0.521872", "0.52185935", "0.5215159", "0.51886237", "0.51885957", "0.5179608", "0.5177191", "0.51610065", "0.51516837", "0.51511985", "0.51427007", "0.5137301", "0.51198477", "0.51113", "0.5109565", "0.5108374", "0.51047736", "0.5101625", "0.5093298", "0.5089857", "0.5062935", "0.50569606", "0.5055898", "0.50556314", "0.5054649", "0.5050869", "0.50423634", "0.5041585", "0.50357157", "0.5034827", "0.50318795", "0.5021942", "0.5020328", "0.50042564", "0.49872535", "0.49845922", "0.49818507", "0.4981121", "0.49793097", "0.4978754", "0.4976743", "0.49521047", "0.49516898", "0.49434978", "0.49427763", "0.49356592", "0.4915689", "0.49140748", "0.49069113", "0.4895907", "0.48922905", "0.48917744", "0.48916024", "0.48897913", "0.48854667", "0.4882241", "0.4878279", "0.4878243", "0.48775992", "0.48774445", "0.48738804", "0.48731983", "0.48729476", "0.48717815", "0.48681948", "0.48675022", "0.48629642", "0.48550397", "0.48500136", "0.48485246", "0.48418272", "0.4838313", "0.48378617" ]
0.0
-1
TODO Autogenerated method stub
@Override public void undo(RechercheDetailleeAction arg0, RechercheDetailleeResult arg1, ExecutionContext arg2) throws ActionException { }
{ "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
lay danh sach mat hang dang duoc ban
public ArrayList<Mathang> getMathang(){ ArrayList<Mathang> kq = null; String sql = "select * from tblMathang"; try { CallableStatement cs = con.prepareCall(sql); ResultSet rs = cs.executeQuery(); while(rs.next()) { if(kq == null) { kq = new ArrayList<Mathang>(); } Mathang mh = new Mathang(); mh.setId(rs.getInt("tblMathangID")); mh.setTenmathang(rs.getString("tenmathang")); mh.setMa(rs.getString("ma")); mh.setGianban(rs.getFloat("giaban")); mh.setGianhap(rs.getFloat("gianhap")); mh.setNhanhieu(rs.getString("nhanhieu")); mh.setNhacungcap(rs.getString("nhacungcap")); kq.add(mh); } } catch (Exception e) { e.printStackTrace(); } return kq; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void maasHesapla() {\n\t\tSystem.out.println(\"isciler icin maas 5000 tl \");\n \t\t\n\t}", "private void strin() {\n\n\t}", "private void peliLoppuuUfojenTuhoamiseen() {\n if (tuhotut == Ufolkm) {\n ingame = false;\n Loppusanat = \"STEVE HOLT!\";\n }\n }", "private void kk12() {\n\n\t}", "private void poetries() {\n\n\t}", "public void eisagwgiAstheni() {\n\t\t// Elegxw o arithmos twn asthenwn na mhn ypervei ton megisto dynato\n\t\tif(numOfPatient < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tpatient[numOfPatient] = new Asthenis();\n\t\t\tpatient[numOfPatient].setFname(sir.readString(\"DWSTE TO ONOMA TOU ASTHENH: \")); // Pairnei to onoma tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU ASTHENH: \")); // Pairnei to epitheto tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setAMKA(rnd.nextInt(1000000)); // To sistima dinei automata ton amka tou asthenous\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t//Elegxos monadikotitas tou amka tou astheni\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfPatient; i++)\n\t\t\t{\n\t\t\t\tif(patient[i].getAMKA() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfPatient++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS ASTHENEIS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "bdm mo1784a(akh akh);", "void kiemTraThangHopLi() {\n }", "void rajib () {\n\t\t \n\t\t System.out.println(\"Rajib is IT Eng\");\n\t }", "public static void main(String[] args) {\n\t\t\n\t\tScanner scan=new Scanner(System.in);\n\t\tSystem.out.println(\"lutfen hangi harfin anlamini istediginizi giriniz\");\n\t\tchar harf=scan.next().charAt(0);//girilen kelimenin ilk harfini alir sikayet etmez\n\t\t\n\t\tswitch (harf) {\n\t\tcase 'V':\n\t\tcase 'v':\n\t\t\tSystem.out.println(\"very\");\n\t\t\tbreak;\n\t\tcase 'I':\n\t\tcase 'i':\n\t\t\tSystem.out.println(\"important\");\n\t\t\tbreak;\n\t\tcase 'P':\n\t\tcase 'p':\n\t\t\tSystem.out.println(\"person\");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\t\tSystem.out.println(\"gecerli harf giriniz\");\n\t\t}\n\t\t\n\t\t//kullanicinin birden fazla harf girmesini sorun olarak kabul ediyorsaniz\n\t\t//ve bunu hata olarak kullaniciya geri bildirmek istiyorsaniz\n\t\t\n\t\t\n\t\tSystem.out.println(\"lutfen hangi harfin anlamini istediginizi giriniz\");\n\t\tString str=scan.next();\n\t\t\n\t\tswitch (str) {\n\t\tcase \"V\":\n\t\tcase \"v\":\n\t\t\tSystem.out.println(\"very\");\n\t\t\tbreak;\n\t\tcase \"I\":\n\t\tcase \"i\":\n\t\t\tSystem.out.println(\"important\");\n\t\t\tbreak;\n\t\tcase \"P\":\n\t\tcase \"p\":\n\t\t\tSystem.out.println(\"person\");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\t\tSystem.out.println(\"gecerli harf giriniz\");\n\t\t}\n\t\t\nscan.close();\n\t}", "public void sugangSincheong(CSugang sugang) {\n\t\t\r\n\t}", "public void anazitisiSintagisVaseiGiatrou() {\n\t\tString doctorName = null;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tdoctorName = sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \"); // Zitaw apo ton xrhsth na mou dwsei to onoma tou giatrou pou exei grapsei thn sintagh pou epithumei\n\t\t\tfor(int i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\tif(doctorName.equals(prescription[i].getDoctorLname())) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou exei grapsei o giatros\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t// Emfanizw thn/tis sintagh/sintages pou exoun graftei apo ton sygkekrimeno giatro\n\t\t\t\t\tprescription[i].print();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_2++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON IATRO ME EPWNYMO: \" + doctorName);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "void show_sense(int a, int b, String w[][]){\r\n int t1,t2,t3,t4;\r\n t1=a-1; // kirinya kotak\r\n t2=a+1; // kanannya kotak\r\n t3=a+4; // bawahnya kotak\r\n t4=a-4; // atasnya kotak\r\n\r\n if(a==5 || a==9) // kalau misal koordinat di batas kiri (5 dan 9), kirinya gak dianggap (0)\r\n t1=0;\r\n if (a==8|| a==12) // kalau misal koordinat di batas kanan (8 dan 12), kanannya gak dianggap (0)\r\n t2=0;\r\n if (a==4) // kalau misal koordinat di batas kanan (4), kanannya gak dianggap (0)\r\n t2 =0;\r\n if (a==13) // koordinat 13 itu agent, kirinya agent itu 0\r\n t1=0;\r\n\r\n // error handling kalau table diluar batas\r\n if(t3>16)\r\n t3=0;\r\n if(t4<0)\r\n t4=0;\r\n\r\n // b = breeze\r\n // adjacent nya pit itu breeze\r\n if(b==1){\r\n b_pos[0] = t1;\r\n b_pos[1] = t2;\r\n b_pos[2] = t3;\r\n b_pos[3] = t4;\r\n }\r\n else if (b==2){ // s = stench\r\n s_pos[0] = t1; // adjacent nya wumpus itu stench\r\n s_pos[1] = t2;\r\n s_pos[2] = t3;\r\n s_pos[3] = t4;\r\n }\r\n\r\n int temp1,count;\r\n\r\n for (int i = 0; i < 4; i++) {\r\n if (b==1) temp1 = b_pos[i];\r\n else temp1 = s_pos[i];\r\n\r\n count=0;\r\n \r\n // Iterasi buat ngasih tanda stench dan breeze\r\n for (int j = 1; j <= 4; j++) {\r\n for (int k = 1; k <= 4; k++) {\r\n ++count;\r\n if (count==temp1 && b==1 && !w[j][k].contains(\"B\")){\r\n w[j][k]+=\"B\";\r\n }\r\n else if (count==temp1 && b==2 && !w[j][k].contains(\"s\")){\r\n w[j][k]+=\"s\";\r\n }\r\n }\r\n }\r\n }\r\n\r\n }", "void NhapGT(int thang, int nam) {\n }", "public String dispaly(String result, String which) {\n String fword=\"\";\n String dump=result;\n Log.i(\"result \"+which,result);\n if(result!=null){\n result=result.replaceAll(\"lang=en\",\"\");\n String ts;\n if(result.contains(\"[[\")||result.contains(\"{{\"))\n {\tdump=dump.replaceAll(\"[^a-zA-Z0-9.\\\\[\\\\]|,;}\\\\s+]\", \"\").trim();\n if(dump.startsWith(\"[[\"))\n {\n int i=result.indexOf(\"[[\");\n int j=result.indexOf(\"]]\");\n fword=result.substring(i,j);\n int k=fword.indexOf('|');\n fword=fword.substring(k+1);\n //System.out.println(\"First Word \"+fword);\n //System.out.println(\"FIND \"+result);\n result=result.substring(j+2);\n //\tSystem.out.println(\"FIND \"+result);\n result=fword.concat(result);\n result=result.replace('|',' ');\n\n }\n else\n {\n System.out.println(\"Esle called \"+result);\n dump=dump.replaceAll(\"[^a-zA-Z0-9.\\\\[\\\\]|,;}\\\\s+]\", \"\").trim();\n String arr[]=dump.split(\" \");\n for(int aa=0;aa<arr.length;aa++)\n {\n\n if(arr[aa].contains(\"[[\")&&arr[aa].contains(\"|\"))\n {\n //System.out.println(arr[aa]);\n String min=arr[aa];\n //System.out.println(\"MINNN \"+min);\n int x=min.indexOf(\"[[\");\n int y=min.indexOf(\"|\");\n min=min.substring(y+1);\n //System.out.println(min);\n result=result.replace(arr[aa], min);\n }\n }\n result=result.replace('|',' ');\n }\n }\n //if(result.matches(\"[[[a-zA-Z|]\"))\n send+=\"<h3>\"+which+\"</h3>\"+\"\\n\";\n // System.out.println(\"Meaning for \"+which);\n if(result.contains(\"}}\"))\n {\n int resultindex=result.indexOf(\"}}\");\n //\t System.out.println(resultindex);\n result=result.substring(resultindex);\n }\n\n result = result.replaceAll(\"[^a-zA-Z0-9.,;\\\\s+]\", \"\");\n result=result.replaceAll(\";\",\".\\n\");\n\n // result.endsWith(\".\");\n // System.out.println(result);\n int newline=0;\n for(int i=0;i<result.length();i++)\n {\n if(result.charAt(i)=='\\n')\n {\n newline++;\n }\n }\n\n // System.out.println(\"New Line \"+newline);\n for(int i=0;i<newline;i++)\n {\n int nn=result.indexOf(\"\\n\");\n // System.out.println(\"First line \"+nn);\n String res=result.substring(0,nn);\n result=result.substring(nn+1);\n // System.out.println(res);\n send+=res+\"\\n\";\n }\n int nn=result.indexOf(\"\\n\");\n\n\n result=result.substring(nn+1);\n send+=result+\"\\n\";\n // System.out.println(result);\n /* fword=fword.trim();\n if(!fword.isEmpty())\n {\n\n fword=fword.concat(\" \");\n // send=fword+send;\n send=fword.concat(send);\n\n // System.out.println(\"Called\");\n return send;\n }*/\n\n\n\n }\n /*else {\n result1.setText(\"Wrorng\");\n send+=\"Enter Correct word\";\n // System.out.println(\"Enter correct word\");\n return \"Wrong\";\n }*/\n\n return send;\n }", "public void verliesLeven() {\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t int sayi=10;\n\t \n\t for (int i = 0; i < 10000; i++) {\n\t i++;\n\t sayi++;\n\t }\n\t \n\t // Bu kodu calistirdigimizda 13.satira kadar Java kac obje uretir\n\t // Bu soruyu cevaplamak icin degiskenin data turune bakmaliyiz\n\t // sayi ve i'nin veri turu : int\n\t // int mutable\n\t \n\t String str=\"A\";\n\t for (int i = 0; i < 10000; i++) {\n\t\t\t\tstr+=\" \";\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t \n\t /*\n\t * 20.satir ile 24.satir arasındakı kac obje olur\n\t * i int oldugu icin sadece bir tane variavl olusturulur\n\t * ancak str string oldugunda 10002 tane obje olustururlur\n\t * \t */\n\t}", "public void orina() {\n System.out.println(\"Que bien me quedé! Deposito vaciado.\");\n }", "private static PohonAVL seimbangkanKembaliKanan(PohonAVL p) {\n //...\n // Write your codes in here\n }", "public void gored() {\n\t\t\n\t}", "public void eisagwgiFarmakou() {\n\t\t// Elegxw o arithmos twn farmakwn na mhn ypervei ton megisto dynato\n\t\tif(numOfMedicine < 100)\n\t\t{\n\t\t\tSystem.out.println();\t\n\t\t\tmedicine[numOfMedicine] = new Farmako();\t\n\t\t\tmedicine[numOfMedicine].setCode(rnd.nextInt(1000000)); // To sistima dinei automata ton kwdiko tou farmakou\n\t\t\tmedicine[numOfMedicine].setName(sir.readString(\"DWSTE TO ONOMA TOU FARMAKOU: \")); // Zitaw apo ton xristi na mou dwsei to onoma tou farmakou\n\t\t\tmedicine[numOfMedicine].setPrice(sir.readPositiveFloat(\"DWSTE THN TIMH TOU FARMAKOU: \")); // Pairnw apo ton xristi tin timi tou farmakou\n\t\t\tSystem.out.println();\n\t\t\t// Elegxos monadikotitas tou kwdikou tou farmakou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tif(medicine[i].getCode() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(10);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfMedicine++;\n\t\t}\n\t\t// An xeperastei o megistos arithmos farmakwn\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLA FARMAKA!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\t\tScanner scan = new Scanner(System.in);\n\t\t\t\tSystem.out.println(\"Hangi islemi yapmak istersiniz 1) hesabi goruntuleme\\r\\n\" + \n\t\t\t\t\t\t\"\t\t 2)Para cekme\\r\\n\" + \n\t\t\t\t\t\t\"\t\t 3) Para yatirma\\r\\n\" + \n\t\t\t\t\t\t\"\t\t 4)Cikis\");\n\t\t\t\t\n\t\t\t\tint islem = scan.nextInt();\n\t\t\t\tdouble toplamTutar = 5000;\n\t\t\t\tswitch(islem) {\n\t\t\t\tcase 1:\n\t\t\t\t\tSystem.out.println(\"Hesabinizda \" +toplamTutar + \"tl bulunmaktadir\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tSystem.out.println(\"Cekmek istediginiz miktari giriniz \");\n\t\t\t\t\tint miktar = scan.nextInt();\n\t\t\t\t\tSystem.out.println(\"Para cekiminiz basariyla gerceklesti\");\n\t\t\t\t\tSystem.out.println(\"Yeni hesap bakiyeniz = \" + (toplamTutar-miktar));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tSystem.out.println(\"Yatirmak istediginiz miktari giriniz\");\n\t\t\t\t\tint yatirilanPara = scan.nextInt();\n\t\t\t\t\tSystem.out.println(\"Para yatirma isleminiz basariyla gerceklesti\");\n\t\t\t\t\tSystem.out.println(\"Yeni hesap bakiyeniz = \" + (toplamTutar + yatirilanPara));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tSystem.out.println(\"Bizleri tercih ettiginiz icin tesekkur ederiz Iyi gunler dileriz\");\n\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tSystem.out.println(\"Yanlis giris yaptiniz lutfen tekrar deneyin\");\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tscan.close();\n\t\t\n\t\t\t\t\n\t}", "public void eisagwgiGiatrou() {\n\t\t// Elegxw o arithmos twn iatrwn na mhn ypervei ton megisto dynato\n\t\tif(numOfDoctors < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tdoctor[numOfDoctors] = new Iatros();\n\t\t\tdoctor[numOfDoctors].setFname(sir.readString(\"DWSTE TO ONOMA TOU GIATROU: \")); // Pairnei apo ton xristi to onoma tou giatrou\n\t\t\tdoctor[numOfDoctors].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \")); // Pairnei apo ton xristi to epitheto tou giatrou\n\t\t\tdoctor[numOfDoctors].setAM(rnd.nextInt(1000000)); // To sistima dinei automata ton am tou giatrou\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t// Elegxos monadikotitas tou am tou giatrou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfDoctors; i++)\n\t\t\t{\n\t\t\t\tif(doctor[i].getAM() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfDoctors++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS GIATROUS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "public void mo38117a() {\n }", "public void mo12930a() {\n }", "public static void main(String[] args) {\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n System.out.println(\"lutfen 15 karakterli bir sifre giriniz\");\n String sifre = scan.next();\n \n int sayac=0;\n \n if (sifre.length() == 15) {\n for (char karakter = ' '; karakter < '~'; karakter++) { \n if (sifre.indexOf(karakter) != -1 && sifre.lastIndexOf(karakter) == sifre.indexOf(karakter)) {\n \t sayac++; \n \t \n }\n \n }\n if (sayac==15) {\n \tSystem.out.println(\"gecerli sifre\");\n } else {\n \tSystem.out.println(\"gecersiz sifre\");\n }\n } \n else {\n System.out.println(\"girdiginiz kelime 15 karakterden olusmuyor lutfen 15 karakter giriniz\");\n\t }\n scan.close(); \n\t}", "public static void main(String[] args) {\n boolean rendi=true;\n int banyak=0;\n String jawab;\n Scanner ren=new Scanner(System.in);\n \n while (rendi){\n System.out.println(\"Apakah anda ingin keluar?\");\n System.out.print(\"Jawab[ya/tidak]\"); \n jawab=ren.nextLine();\n \n if (jawab.equalsIgnoreCase(\"ya\")){\n rendi=false;\n }\n banyak++;\n }\n \n System.out.println(\"anda sudah mengulangnya sebanyak\" +banyak+ \"kali\");}", "public String cekPengulangan(String kata) throws IOException{\n String hasil=\"\";\n if(cekUlangSemu(kata)){\n return kata+\" kata ulang semu \";\n }\n if(kata.contains(\"-\")){\n String[] pecah = kata.split(\"-\");\n String depan = pecah[0];\n String belakang = pecah[1];\n ArrayList<String> depanList = new ArrayList<String>();\n ArrayList<String> belakangList = new ArrayList<String>();\n if(!depan.equals(\"\")){\n depanList.addAll(morpParser.cekBerimbuhan(depan, 0));\n }\n if(!belakang.equals(\"\")){\n belakangList.addAll(morpParser.cekBerimbuhan(belakang, 0));\n }\n for(int i = 0; i < depanList.size(); i++){\n for(int j = 0; j < belakangList.size(); j++){\n if(depanList.get(i).equals(belakangList.get(j))){\n return depan+\" kata ulang penuh \";\n }\n }\n }\n if(depan.equals(belakang)){\n return depan+\" kata ulang penuh \";\n }\n char[] isiCharDepan = depan.toCharArray();\n char[] isiCharBelakang = belakang.toCharArray();\n boolean[] sama = new boolean[isiCharDepan.length];\n int jumlahSama=0;\n int jumlahBeda=0;\n for(int i =0;i<sama.length;i++){\n if(isiCharDepan[i]==isiCharBelakang[i]){\n sama[i]=true;\n jumlahSama++;\n }\n else{\n sama[i]=false;\n jumlahBeda++;\n }\n }\n \n if(jumlahBeda<jumlahSama && isiCharDepan.length==isiCharBelakang.length){\n return depan+\" kata ulang berubah bunyi \";\n }\n \n \n }\n else{\n if(kata.charAt(0)==kata.charAt(2)&&kata.charAt(1)=='e'){\n if((kata.charAt(0)=='j'||kata.charAt(0)=='t')&&!kata.endsWith(\"an\")){\n return kata.substring(2)+\" kata ulang sebagian \";\n }\n else if(kata.endsWith(\"an\")){\n return kata.substring(2,kata.length()-2)+\" kata ulang sebagian \";\n }\n \n }\n }\n return hasil;\n }", "@Override\n\t\tpublic void attack() {\n\t\t\tSystem.out.println(\"날으면서 원거리 공격을 하다.\");\n\t\t}", "public static void main(String[] args) throws Exception {\nSystem.out.println(\"i love nayanthara\");\nSystem.out.println(\"i love trisha\");\nSystem.out.println(\"i love keerthisuresh\");\n\n \n \n\t }", "public void belajar(){\n\t\tSystem.out.println(\"Belajar java di \"+tempat+\" selama \"+jamBelajar+\" jam\");\n\t}", "public static void main(String[] args) {\n System.out.println(\"***************************\");\n System.out.println(\"****** Jeux du Pendu ******\");\n System.out.println(\"***************************\");\n System.out.println(\"***** Moins de points *****\");\n System.out.println(\"******** tu auras *********\");\n System.out.println(\"****** Mieux ce sera ******\");\n System.out.println(\"***************************\");\n System.out.println(\"***************************\");\n\n //init tableau de mots\n String[] listeDeMots = { \"css\", \"html\", \"diagramme\", \"linux\", \"windows\" };\n\n boolean victory = false;\n int nbErreur = 0;\n //choix random dans la liste de mots\n String motCache = listeDeMots[(int) (Math.random() * listeDeMots.length)];\n\n //transformation des caractères du mot en underscore\n char[] tabMotCache = new char[motCache.length()];\n for (int i = 0; i < motCache.length(); i++) {\n tabMotCache[i] = '_';\n }\n System.out.println(\n \"Le mot caché contient \" + motCache.length() + \" lettres.\"\n );\n System.out.println(tabMotCache);\n\n Scanner lettre = new Scanner(System.in);\n while ((victory == false) || (nbErreur <= 7)) {\n String lettreChoisie = lettre.next();\n\n System.out.println(\"Veuillez saisir une lettre !\");\n // prend la première lettre saisi par l'user\n if (lettreChoisie.length() > 1) {\n lettreChoisie = lettreChoisie.substring(0, 1);\n }\n // si la lettre tapée est dans le mot remplace l'underscore par la lettre\n // et répète l'occurence pour plusieurs fois la même lettre dans le mot\n if (motCache.contains(lettreChoisie)) {\n int index = motCache.indexOf(lettreChoisie);\n\n while (index >= 0) {\n tabMotCache[index] = lettreChoisie.charAt(0);\n index = motCache.indexOf(lettreChoisie, index + 1);\n System.out.println(tabMotCache);\n }\n } else {\n nbErreur++;\n System.out.println(\"Tu as commis \" + nbErreur + \" erreurs..\");\n System.out.println(\"Il te reste \" + (7 - nbErreur) + \" essais !\");\n System.out.println(tabMotCache);\n }\n\n // on récupère le tableau de caractère en string pour vérifier l'égalité\n // avec le mot caché et déclarer la victoire\n String motDeviner = new String(tabMotCache);\n if (motDeviner.equals(motCache)) {\n victory = true;\n System.out.println(\"You win !\");\n System.out.println(\"Tu as commis \" + nbErreur + \" erreur !\");\n System.out.println(\"Tu as obtenu \" + (nbErreur * 5) + \" points !\");\n break;\n }\n if (nbErreur == 7) {\n System.out.println(\n \"You looose ! Le mot à deviner était : \" + motCache + \" !\"\n );\n System.out.println(\"Tu as obtenu \" + (nbErreur * 5) + \" points !\");\n break;\n }\n }\n lettre.close();\n }", "public static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tSystem.out.println(\"Please enter a word\");\n\t\tString a=scan.nextLine();\n\n\t\tint sayac=0;\n\t\tint sayac1=0;\n\t\tint sayac2=0;\n\t\tint sayac3=0;\n\t\tint sayac4=0;\n\t\tint sayac5=0;\n\t\tint sayac6=0;\n\t\tint sayac7=0;\n\t\tint sayac8=0;\n\t\tint sayac9=0;\n\t\n\t\n\tint b=a.toLowerCase().length();\n\t\nchar[] alphabet= {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','u','p','r','s','t','u','z','w','x','v'};\n\t\n\t\n\t\t\n\tfor(int i=0; i<=b-1; i++) {\n\t\tfor(int j=0; j<alphabet.length; j++) {\n\t\tif(a.charAt(i)==alphabet[j] ) {\n\t\t\tSystem.out.println(\"a harfi \"+(i+1)+\". siradadir\");\n\t\t\tsayac++;\n\t\t\tSystem.out.println(sayac+\"tane a.charAt(i) harfi vardir\");\n\t\t}\n\t\t\n\t\t\n\t\n\t\t}}\n\n\n\t}", "public void eisagwgiSintagis() {\n\t\t//Elegw ean mporei na eisaxthei suntagi\n\t\tif(numOfMedicine != 0 && numOfDoctors != 0 && numOfPatient != 0 && numOfPrescription < 1000) \n\t\t{\n\t\t\ttmp_1 = numOfPrescription + 1;\n\t\t\t// Emfanizw to synolo twn giatrwn pou yparxoun sto farmakeio\n\t\t\tfor(i = 0; i < numOfDoctors; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(i + \". STOIXEIA IATROU: \");\n\t \t \tdoctor[i].print();\n\t \t \tSystem.out.println();\n\t\t\t}\n\t\t\t// O xristis epilegei ton ari8mo pou antistoixei ston giatro pou egrapse thn syntagh\n\t\t\ttmp_1 = sir.readPositiveInt(\"EPILEKSTE TON GIATRO POU EGGRAPSE THN SYNTAGH: \"); \n\t\t\t// Elegxw an o yparxei o giatros pou edwse o xristis\n\t\t\twhile(tmp_1 < 0 || tmp_1 > numOfDoctors - 1)\n\t \t {\n\t\t\t\ttmp_1 = sir.readPositiveInt(\"DEN YPARXEI GIATROS ME TO NOUMERO POU PLIKTROLOGISATE! PARAKALW KSANADWSTE ARITHMO: \");\n\t\t\t\tSystem.out.println();\n\t \t }\n\t\t\t\n\t\t\ti = numOfPrescription + 1;\n\t\t\t// Emfanizw to synolo twn asthenwn pou yparxoun sto farmakeio\n\t\t\tfor(i = 0; i < numOfPatient; i++)\n\t\t {\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(i + \". STOIXEIA ASTHENOUS: \");\n\t patient[i].print();\n\t System.out.println();\n\t\t }\n\t\t\t// O xristis epilegei ton ari8mo pou antistoixei ston as8enh gia ton opoio proorizetai i syntagh\n\t\t\ti = sir.readPositiveInt(\"EPILEKSTE TON ASTHENH GIA TON OPOIO PROORIZETAI H SYNTAGH: \"); \n\t\t\t// Elegxw an o yparxei o as8enhs pou edwse o xristis\n\t\t\twhile(i < 0 || i > numOfPatient - 1)\n\t \t {\n\t\t\t\ti = sir.readPositiveInt(\"DEN YPARXEI ASTHENHS ME TO NOUMERO POU PLIKTROLOGISATE! PARAKALW KSANADWSTE ARITHMO: \");\n\t\t\t\tSystem.out.println();\n\t \t }\n\t\t\t\n\t\t\t// O xristis eisagei tn synoliko ar8mo farmakwn pou 8a exei h syntagh\n\t\t\tSystem.out.println();\n\t\t\ttmp_2= sir.readPositiveInt(\"EISAGETAI TON ARITHMO TWN FARMAKWN POU EPITHUMEITAI NA EXEI H SYNTAGH(1-6): \");\n\t\t\t// Elegxw an o ari8mos twn farmakwn pou edwse o xristis einai egkyros\n\t\t\twhile(tmp_2 < 0 || tmp_2 > 6)\n\t \t {\n\t\t\t\ttmp_2 = sir.readPositiveInt(\"PARAKALW KSANAEISAGETAI SYNOLIKO ARITHMO FARMAKWN(1-6): \");\n\t\t\t\tSystem.out.println();\n\t \t }\n\t\t\t// Apo8ikeuw tis times ston constructor Syntagi\n\t\t\tprescription[numOfPrescription] = new Syntagi(doctor[tmp_1], patient[i], sir.readDate(\"\\nEISAGETAI THN HMEROMHNIA EGGRAFHS THS SYNTAGHS: \"), tmp_2);\n\t\t\t\n\t\t\tprescription[numOfPrescription].dimiourgiaPinakaFarmakwn(); // Kalw tin methodo auti gia na dimiourgisw ton pinaka me ton arithmo twn farmakwn pou mou edwse o xrhsths\n\t\t\t\n\t\t\t// Emfanizw to synolo twn farmakwn\n\t\t\tfor(i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(i + \". STOIXEIA FARMAKOU: \");\n\t\t\t\tmedicine[i].print();\n\t\t\t}\n\t\t\t\n\t\t\tfor(i = 0; i < tmp_2; i++)\n \t \t{\n\t\t\t\ta = i + 1; \n\t\t\t\t// An h syntagh apoteleitai apo perissotera tou enos farmaka tote...\n\t\t\t\tif(tmp_2 != 1)\n \t \t \t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_1 = sir.readPositiveInt(\"ARITHMOS \" + a + \"ou FARMAKOU: \");\n\t\t\t\t\ttmp_3 = sir.readPositiveInt(\"POSOTHTA \" + a + \"ou FARMAKOU: \");\n \t \t \tSystem.out.println();\n \t \t \t}\n\t\t\t\t// An h syntagh apoteleitai apo ena farmako tote...\n\t\t\t\telse\n \t \t \t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_1 = sir.readPositiveInt(\"ARITHMOS FARMAKOU: \");\n\t\t\t\t\ttmp_3 = sir.readPositiveInt(\"POSOTHTA FARMAKOU: \");\n \t \t\t \tSystem.out.println();\n \t \t \t}\n \t \t \t// Elegxw an o ari8mos pou edwse o xristis einai egkyros\n\t\t\t\twhile(tmp_1 < 0 || tmp_1 > numOfMedicine - 1)\n \t \t \t{\n \t \t \t\ttmp_1 = sir.readPositiveInt(\"EISAGATAI LATHOS DEDOMENA!DWSTE KSANA TIMH: \");\n \t \t\t \tSystem.out.println();\n \t \t \t}\n \t \t \t\n\t\t\t\tprescription[numOfPrescription].gemismaPinakaFarmakwn(i, medicine[tmp_1], tmp_3); // Kalw tin methodo auti gia na gemisw ton pinaka twn farmakwn pou dimiourgisa proigoumenws\n \t \t}\n\t\t\tnumOfPrescription++;\n\t\t}\n\t\t// Elegxw pote den mporei na eisaxthei syntagh\n\t\telse\n\t\t{\n\t\t\t// An oi syntages pou exoun eisaxthei xeperasan to epitrepto orio\n\t\t\tif(numOfPrescription >= 1000)\n \t\t \t{\n \t\t\t\tSystem.out.print(\"DEN MPOREITAI NA EISAGETAI ALLES SYNTAGES!EXEI KALIFTHEI O MEGISTOS ARITHMOS TOUS\");\n \t\t\t\tSystem.out.println();\n \t\t \t}\n\t\t\t// An den yparxoun iatroi, astheneis kai farmaka sto farmakeio\n\t\t\telse if(numOfDoctors == 0 && numOfPatient == 0 && numOfMedicine == 0)\n \t\t \t{\n \t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI GIATROI, ASTHENEIS KAI FARMAKA WSTE NA OLOKLIRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI GIATROUS, ASTHENEIS KAI FARMAKA!\");\n \t\t\t\tSystem.out.println();\n \t\t \t}\n\t\t\t// An den yparxoun iatroi kai astheneis\n\t\t\telse if(numOfDoctors == 0 && numOfPatient == 0)\n \t \t{\n\t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI GIATROI KAI ASTHENEIS GIA NA OLOKLHRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI GIATROUS KAI ASTHENEIS!\");\n \t \t \tSystem.out.println();\n \t \t}\n\t\t\t// An den yparxoun iatroi kai farmaka\n\t\t\telse if(numOfDoctors == 0 && numOfMedicine == 0)\n \t \t{\n\t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI GIATROI KAI FARMAKA GIA NA OLOKLHRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI GIATROUS KAI FARMAKA!\");\n \t \t \tSystem.out.println();\n \t \t}\n\t\t\t// An den yparxoun astheneis kai farmaka\n\t\t\telse if(numOfPatient == 0 && numOfMedicine == 0)\n \t \t{\n\t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI ASTHENEIS KAI FARMAKA GIA NA OLOKLHRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI ASTHENEIS KAI FARMAKA!\");\n \t \t \tSystem.out.println();\n \t \t}\n\t\t\t// An den yparxoun iatroi\n\t\t\telse if (numOfDoctors == 0)\n \t\t \t{\n \t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI GIATROI GIA NA OLOKLHRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI GIATROUS!\");\n \t\t\t\tSystem.out.println();\n \t\t \t}\n \t\t \t// An den yparxoun astheneis\n\t\t\telse\n \t\t \t{\n \t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI ASTHENEIS GIA NA OLOKLHRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI ASTHENEIS!\");\n \t\t\t\tSystem.out.println();\n \t\t \t}\n\t\t}\n\t}", "public static void main(String[] args) {\n\n String text= \"merhaba arkadaslar \";\n System.out.println( \"1. bolum =\" + text .substring(1,5));// 1 nolu indexten 5 e kadar. 5 dahil degil\n System.out.println(\"2. bolum =\"+ text.substring(0,3));\n System.out.println(\"3. bolum =\"+ text.substring(4));// verilen indexten sonun akadar al\n\n String strAlinan= text.substring(0,3);\n\n\n\n\n\n }", "private static String processInquire(String content) {\n\t\tString myWaza = \"fold \\n\";\n\t\tString[] playerInfoFront = content.split(\"\\n\");\n\t\tBoolean isAllin = false;//前面是否有人allin\n\t\tint maxJetton = 80;\t\t\n\t\tint frontNum = playerInfoFront.length;//前面的人数,第一圈结束会把自己放到最后一行\n\t\tint nums = Player.getNums();//总人数\n\t\n\t\t//根据Inquire更新player的状态\n\t\tfor(int i = 0; i < frontNum - 1;i++){\n\t\t\tString[] onePlayer = playerInfoFront[i].split(\" \");\n\t\t\t//onePlayer[0]即Pid\n\t\t\t\n\t\t\tfor(int j = 0; j < nums; j++){\n\t\t\t\tif(onePlayer[0].equals(players[j].getPid() + \"\")){\n\t\t\t\t\tplayers[j].setJetton(Integer.parseInt(onePlayer[1]));\n\t\t\t\t\tplayers[j].setMoney(Integer.parseInt(onePlayer[2]));\n\t\t\t\t\tplayers[j].setBet(Integer.parseInt(onePlayer[3]));\n\t\t\t\t\tplayers[j].setAction(onePlayer[4]);\n\t\t\t\t\tif(onePlayer[4].equals(\"all_in \\n\")){\n\t\t\t\t\t\tisAllin = true;\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(Integer.parseInt(onePlayer[1]) > maxJetton)\n\t\t\t\t\t\tmaxJetton = Integer.parseInt(onePlayer[1]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tif(Card.getNums() == 2){\n\t\t\t//pre-flop 0,1两张手牌\n\t\t\tmyWaza = actionBaseHold(cards, nums, players, maxJetton);\n\t\t}else if(Card.getNums() == 5){\n\t\t\tmyWaza = \"call \\n\";\n\t\t\t//flop-round 0,1两张手牌 2,3,4三张翻牌\n\t\t\tmyWaza = actionBaseFlop(cards, nums, players, maxJetton);\n\t\t\t/*\n\t\t\tif(getWinRate() < 0.5){\n\t\t\t\tmyWaza = \"fold \\n\";\n\t\t\t}else if(getWinRate() >= 0.5 && getWinRate() < 0.8){\n\t\t\t\tmyWaza = \"call \\n\";\n\t\t\t}else{\n\t\t\t\tmyWaza = \"all_in \\n\";\n\t\t\t}*/\t\n\t\t}else if(Card.getNums() == 6){\n\t\t\tmyWaza = \"call \\n\";\n\t\t\t//turn-round 0,1两张手牌 2,3,4三张翻牌,5一张转牌\n\t\t}else{\n\t\t\tmyWaza = \"call \\n\";\n\t\t\t//river-found 0,1两张手牌 2,3,4三张翻牌,5一张转牌,6一张河牌\n\t\t}\n\t\t\n\t\treturn myWaza;\n\t}", "public void baocun() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void think() {\n\t\t\n\t}", "public void anazitisiSintagisVaseiAstheni() {\n\t\tint amkaCode = 0;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tamkaCode = sir.readPositiveInt(\"EISAGETAI TO AMKA TOU ASTHENH: \"); // Zitaw apo ton xrhsth na mou dwsei ton amka tou asthenh pou thelei\n\t\t\tfor(i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\t\tif(amkaCode == prescription[i].getPatientAmka()) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou proorizetai gia ton sygkekrimeno asthenh\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t\tprescription[i].print(); // Emfanizw thn/tis sintagh/sintages oi opoies proorizontai gia ton sigkekrimeno asthenh\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\ttmp_2++;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON ASTHENH ME AMKA: \" + amkaCode);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "private void laadSpellen() {\r\n this.spellen = this.dc.geefOpgeslagenSpellen();\r\n int index = 0;\r\n String res = String.format(\"%25s %20s\", r.getString(\"spelNaam\"), r.getString(\"moeilijkheidsGraad\"));\r\n for (String[] rij : spellen) {\r\n index++;\r\n res += String.format(\"%n%d) %20s\", index, rij[0]);\r\n switch (rij[1]) {\r\n case \"1\":\r\n res += String.format(\"%20s\", r.getString(\"makkelijk\"));\r\n break;\r\n case \"2\":\r\n res += String.format(\"%20s\", r.getString(\"gemiddeld\"));\r\n break;\r\n case \"3\":\r\n res += String.format(\"%20s\", r.getString(\"moeilijk\"));\r\n break;\r\n }\r\n \r\n }\r\n System.out.printf(res);\r\n }", "@Override\r\n\tpublic void 먹기() {\n\t\tSystem.out.println(\"다람쥐,도토리를 먹는다.\");\r\n\t}", "public static void main (String[] args){\n int y = 1;\n for (y = 1; y <= 4; y++){\n // He usat bucles per no duplicar codi i per optimització.\n int x =1;\n // Bucle\n for (x = 1; x <= 4; x++){\n String abc = \"AAAAABCÇDEEEEEFGHIIIIIJKLMNOOOOOPQRSTUUUUUVWXYZ\"; //47\n int lletra = (int) (abc.length() * Math.random());\n char a = abc.charAt(lletra);\n System.out.print(\"\\u001B[36m\"+a); \n } \n System.out.println(\"\");\n }\n }", "public void tampilKarakterA(){\r\n System.out.println(\"Saya mempunyai kaki empat \");\r\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\t\r\n\t\tint input = 0;\r\n\t\tint ai = 0;\r\n\t\tint win = 0;\r\n\t\tint defeat = 0;\r\n\t\tint draw = 0;\r\n\t\t\r\n\t\tString me = \"\";\r\n\t\tString com = \"\";\r\n\t\tSystem.out.println(\"★☆★☆★☆★☆가위바위보 게임입니다!★☆★☆★☆★☆\");\r\n\t\tfor(int i = 1 ; i < 4 ; i++) {\r\n\t\t\tSystem.out.println(\"\\t\\t\\t\\t\\t 최대횟수/남은횟수\");\r\n\t\t\tSystem.out.println(\"가위(1), 바위(2), 보(3) 중 하나를 입력하세요>>>\\t\\t3 / \" + i);\r\n\t\t\tinput = scan.nextInt();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tai = (int)(Math.random()*3) + 1;\r\n\t\t\t\r\n\t\t\tif (input == 1) me = \"가위\";\r\n\t\t\telse if (input == 2) me = \"바위\";\r\n\t\t\telse if (input == 3) me = \"보\";\r\n\t\t\telse System.out.println(\"잘못 입력하셨습니다\");\r\n\t\t\tif (ai == 1) com = \"가위\";\r\n\t\t\telse if (ai == 2) com = \"바위\";\r\n\t\t\telse if (ai == 3) com = \"보\";\r\n\t\t\t\r\n\t\t\tif(me != \"\") {\r\n\t\t\t\tSystem.out.println(\"컴퓨터도 선택 했습니다.\");\r\n\t\t\t\tSystem.out.println(\"당신은 \\\"\" + me + \"\\\" 상대는 \\\"\" + com + \"\\\" 을 선택했습니다\");\r\n\t\t\t\r\n\t\t\t\tswitch (input - ai) {\r\n\t\t\t\tcase -1 : case 2 : \r\n\t\t\t\t\tSystem.out.println(\"★☆저런~~ 졌네요★☆\\n\"); defeat += 1; \r\n\t\t\t\t\tSystem.out.println(\"전적 => 승리 [ \" + win + \" ]\\t패배 [ \" + defeat + \" ]\\t무승부 [ \" + draw + \" ]\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase -2 : case 1 : \r\n\t\t\t\t\tSystem.out.println(\"★☆오~~ 이겼네요★☆\\n\"); win += 1; \r\n\t\t\t\t\tSystem.out.println(\"전적 => 승리 [ \" + win + \" ]\\t패배 [ \" + defeat + \" ]\\t무승부 [ \" + draw + \" ]\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase 0 : \r\n\t\t\t\t\tSystem.out.println(\"★☆이런! 비겼네요★☆\\n\"); draw += 1;\r\n\t\t\t\t\tSystem.out.println(\"전적 => 승리 [ \" + win + \" ]\\t패배 [ \" + defeat + \" ]\\t무승부 [ \" + draw + \" ]\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tdefault : System.out.println(\"오류 입니다\"); \r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(win==defeat) {\r\n\t\t\tSystem.out.println(\"최종 결과 => 무승부 입니다\");\r\n\t\t} else if(win > defeat) {\r\n\t\t\tSystem.out.println(\"최종 결과 => 당신의 승리입니다\");\r\n\t\t} else if(win < defeat) {\r\n\t\t\tSystem.out.println(\"최종 결과 => 당신의 패배입니다\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"오류 입니다\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tpublic void nhanTinNhan() {\n\n\t}", "public void mo63047b(String str) {\n String str2;\n String str3;\n String str4;\n String str5;\n super.mo63047b(str);\n if (C25352e.m83221d(this.f77546j)) {\n this.f89203a.mo65916c();\n C24961b e = C24958f.m81905a().mo65273b(this.f77546j).mo65266a(\"result_ad\").mo65276b(\"play_over\").mo65283e(\"video\");\n Aweme aweme = this.f77546j;\n C7573i.m23582a((Object) aweme, \"mAweme\");\n Video video = aweme.getVideo();\n C7573i.m23582a((Object) video, \"mAweme.video\");\n e.mo65271b((long) video.getVideoLength()).mo65270a(mo75261ab());\n this.f89214bh++;\n C28418f a = C28418f.m93413a();\n C7573i.m23582a((Object) a, \"FeedSharePlayInfoHelper.inst()\");\n a.f74936f = this.f89214bh;\n if (this.f89214bh >= this.f89215bi) {\n C28418f a2 = C28418f.m93413a();\n C7573i.m23582a((Object) a2, \"FeedSharePlayInfoHelper.inst()\");\n if (!a2.f74934d) {\n Aweme aweme2 = this.f77546j;\n C7573i.m23582a((Object) aweme2, \"mAweme\");\n AwemeRawAd awemeRawAd = aweme2.getAwemeRawAd();\n if (awemeRawAd != null) {\n str3 = awemeRawAd.getWebUrl();\n } else {\n str3 = null;\n }\n if (TextUtils.isEmpty(str3)) {\n C24961b b = C24958f.m81905a().mo65273b(this.f77546j).mo65266a(\"result_ad\").mo65276b(\"play\");\n if (!C25352e.m83224g(this.f77546j) || !TextUtils.equals(mo75290r(), \"general_search\")) {\n str4 = \"\";\n } else {\n str4 = \"video\";\n }\n b.mo65283e(str4).mo65270a(mo75261ab());\n return;\n } else if (mo75314al()) {\n mo75311ai();\n return;\n } else {\n this.f89215bi++;\n C24961b b2 = C24958f.m81905a().mo65273b(this.f77546j).mo65266a(\"result_ad\").mo65276b(\"play\");\n if (!C25352e.m83224g(this.f77546j) || !TextUtils.equals(mo75290r(), \"general_search\")) {\n str5 = \"\";\n } else {\n str5 = \"video\";\n }\n b2.mo65283e(str5).mo65270a(mo75261ab());\n return;\n }\n }\n }\n C24961b b3 = C24958f.m81905a().mo65273b(this.f77546j).mo65266a(\"result_ad\").mo65276b(\"play\");\n if (!C25352e.m83224g(this.f77546j) || !TextUtils.equals(mo75290r(), \"general_search\")) {\n str2 = \"\";\n } else {\n str2 = \"video\";\n }\n b3.mo65283e(str2).mo65270a(mo75261ab());\n }\n }", "public void Tyre() {\n\t\t\r\n\t}", "public void nhapdltextlh(){\n\n }", "public void Ganhou() {\n\t\tString[] g = new String[10]; \n\t\tg[0] = m[0][0] + m[0][1] + m[0][2];\n\t\tg[1] = m[1][0] + m[1][1] + m[1][2];\n\t\tg[2] = m[2][0] + m[2][1] + m[2][2];\n\t\t\n\t\tg[3] = m[0][0] + m[1][0] + m[2][0];\n\t\tg[4] = m[0][1] + m[1][1] + m[2][1];\n\t\tg[5] = m[0][2] + m[1][2] + m[2][2];\n\t\t\n\t\tg[6] = m[0][0] + m[1][1] + m[2][2];\n\t\tg[7] = m[2][0] + m[1][1] + m[0][2];\n\t\tg[8] = \"0\";\n\t\tg[9] = \"0\";\n\t\t\n\t\tfor(int i= 0; i<10; i++) {\n\t\t\tif(g[i].equals(\"XXX\")){\n\t\t\t\tJOptionPane.showMessageDialog(null,\"X GANHOU\");\n\t\t\t\tacabou = true;\n\t\t\t\temp = 0; \n\t\t\t\tbreak;\n\t\t\t} else if (g[i].equals(\"OOO\")) {\n\t\t\t\tJOptionPane.showMessageDialog(null,\"O GANHOU\");\n\t\t\t\tacabou = true;\n\t\t\t\tbreak;\n\t\t\t} \n\t\t}\n\t\t\n\t\tif (emp == 9) {\n\t\t\tJOptionPane.showMessageDialog(null,\"EMPATOU\");\t\n\t\t\tacabou = true;\n\t\t}\n\t}", "public void TongSL() {\n System.out.println(\"|-> Tong So Luong cua Giao Dich Vang: \" + sum1 + \" <-|\");\n System.out.println(\"|-> Tong So Luong cua Giao Dich Tien Te:\" + sum2 + \" <-|\");\n }", "@Override\n\t\tpublic void attack() {\n\t\t\tSystem.out.println(\"잽을 날리다\");\n\t\t}", "public void onderbreek(){\n \n }", "@Override\n\tpublic void 숨쉰다() {\n\t\tSystem.out.println(\"허파로 숨을 쉰다.\");\n\t\t\n\t}", "@Override\n\tpublic String hablar() {\n\t\treturn \"Hola, soy un Buitre y sť volar\";\n\t}", "public static void Latihan() {\n Model.Garis();\n System.out.println(Model.subTitel[0]);\n Model.Garis();\n\n System.out.print(Model.subTitel[1]);\n Model.nilaiTebakan = Model.inputUser.nextInt();\n\n System.out.println(Model.subTitel[2] + Model.nilaiTebakan);\n\n // Operasi Logika\n Model.statusTebakan = (Model.nilaiTebakan == Model.nilaiBenar);\n System.out.println(Model.subTitel[3] + Model.hasilTebakan(Model.TrueFalse) + \"\\n\\n\");\n }", "dkj mo4367a(dkk dkk);", "@Override\r\n\tpublic void hacerSonido() {\n\t\tSystem.out.print(\"miau,miau -- o depende\");\r\n\t\t\r\n\t}", "private String bossReject(){\n return \"我覺得你們需要重做,因為跟我想的不一樣\";\n }", "public static void main(String[] args) {\n\t\tHorseList.add(new Horse1(\"0번마\",1));\n\t\tRunning.add(0);\n\t\tHorseList.add(new Horse1(\"1번마\",1));\n\t\tRunning.add(0);\n\t\tHorseList.add(new Horse1(\"2번마\",1));\n\t\tRunning.add(0);\n\t\tHorseList.add(new Horse1(\"3번마\",1));\n\t\tRunning.add(0);\n\t\tHorseList.add(new Horse1(\"4번마\",1));\n\t\tRunning.add(0);\n\t\tHorseList.add(new Horse1(\"5번마\",1));\n\t\tRunning.add(0);\n\t\tHorseList.add(new Horse1(\"6번마\",1));\n\t\tRunning.add(0);\n\t\tHorseList.add(new Horse1(\"7번마\",1));\n\t\tRunning.add(0);\n\t\tHorseList.add(new Horse1(\"8번마\",1));\n\t\tRunning.add(0);\n\t\tHorseList.add(new Horse1(\"9번마\",1));\n\t\tRunning.add(0);\n\n\t\t\n\t\tfor(Horse1 hs : HorseList) {\n\t\t\ths.start();\t\n\t\t}\n\t\t\n\t\tfor(int i=0; i<55; i++) {\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t\tfor (Horse1 hs : HorseList) {\n\t\t\t\t\t\tString result =\"\";\n\t\t\t\t\t\tresult +=hs.getNm();\n\t\t\t\t\t\tfor (int j = 0; j < 50; j++) {\n\t\t\t\t\t\tif(j==Running.get(Integer.parseInt(hs.getNm().substring(0,1)))) {\n\t\t\t\t\t\t\tresult +=\"♘>\";\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tresult +=\"-\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(result);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\tThread.sleep(200);\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\tSystem.out.println(\"경기 끝...\");\n\t\tSystem.out.println(\"---------------------\");\n\t\tSystem.out.println();\n\t\tSystem.out.println(\" 경기 결과 \");\n\t\tSystem.out.println(\"=================전역변수로정렬===================\");\n\t\tSystem.out.println(\" 1등 2등 3등 4등 5등 6등 7등 8등 9등 10등\");\n\t\tSystem.out.println(\"말이름 : \" + strRank);\n\t\tSystem.out.println(\"=================compare정렬전===================\");\t\t\n\t\tfor(Horse1 hs : HorseList) {\n\t\t\tSystem.out.println(hs.getNm() + \" : \" + hs.getRank() + \"등\");\n\t\t}\n\t\tSystem.out.println(\"=================compare정렬후===================\");\n\t\tCollections.sort(HorseList, new Sortrank1());\n\t\tfor(Horse1 hs : HorseList) {\n\t\t\tSystem.out.println(hs.getNm() + \" : \" + hs.getRank()+ \"등\");\n\t\t}\n\t}", "public static void main(String[] args) {\n String a = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ#-\";\r\n //---------------------------------------------------------------------\r\n \r\n //Memanggil alfabet String yang diinginkan\r\n //Menentukan alfabet untuk Nama\r\n char hasil1 = a.charAt(0);\r\n char hasil2 = a.charAt(25);\r\n char hasil3 = a.charAt(7);\r\n char hasil4 = a.charAt(0);\r\n char hasil5 = a.charAt(17);\r\n char hasil6 = a.charAt(27);\r\n char hasil7 = a.charAt(1);\r\n char hasil8 = a.charAt(4);\r\n char hasil9 = a.charAt(17);\r\n char hasil10 = a.charAt(11);\r\n char hasil11 = a.charAt(8);\r\n char hasil12 = a.charAt(0);\r\n char hasil13 = a.charAt(13);\r\n char hasil14 = a.charAt(0);\r\n //---------------------------------------------------------------------\r\n \r\n //Menentukan alfabet untuk Kelas\r\n char hasil15 = a.charAt(23);\r\n char hasil16 = a.charAt(8);\r\n char hasil17 = a.charAt(8);\r\n char hasil18 = a.charAt(27);\r\n char hasil19 = a.charAt(17);\r\n char hasil20 = a.charAt(15);\r\n char hasil21 = a.charAt(11);\r\n char hasil22 = a.charAt(27);\r\n char hasil23 = a.charAt(1);\r\n //---------------------------------------------------------------------\r\n \r\n //Saat nya memanggil output yang telah di tentukan pada variable-variable diatas\r\n System.out.println(\"ALFABET TERSEDIA : \"+a);\r\n //---------------------------------------------------------------------\r\n \r\n //---------------------------------------------------------------------\r\n System.out.println(\"---------------------------------------------------\"\r\n + \"------------------\");\r\n //---------------------------------------------------------------------\r\n \r\n //Pemanggilan Nama\r\n System.out.println(\"Nama : \"+hasil1+\"\"+hasil2+\"\"+hasil3+\"\"+hasil4+\r\n \"\"+hasil5+\"\"+hasil6+\"\"+hasil7+\"\"+hasil8+\"\"+hasil9+\"\"+hasil10+\"\"\r\n +hasil11+\"\"+hasil12+\"\"+hasil13+\"\"+hasil14);\r\n //---------------------------------------------------------------------\r\n \r\n //Pemanggilan Kelas\r\n System.out.println(\"Kelas : \"+hasil15+\"\"+hasil16+\"\"+hasil17+\"\"+\r\n hasil18+\"\"+hasil19+\"\"+hasil20+\"\"+hasil21+\"\"+hasil22+\"\"+hasil23);\r\n //---------------------------------------------------------------------\r\n \r\n //---------------------------------------------------------------------\r\n System.out.println(\"---------------------------------------------------\"\r\n + \"------------------\");\r\n //---------------------------------------------------------------------\r\n \r\n }", "public void mo21877s() {\n }", "public void breathe(){\n\n System.out.println(\"Through big nostrills\");\n }", "public void mo6081a() {\n }", "private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }", "public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n String word = \"Tenet\";\n String word3 = \"tenet\";\n System.out.println(\"word \" + word);\n word.toLowerCase(); //porównanie bez wielkosci znakow\n //charAt(0) - zero,\n String[] Tablica = new String[word.length()];\n for (int i = 0; i < word.length(); i++) {\n Tablica[i] = String.valueOf(word.charAt(i));\n }\n String word2 = \"\";\n\n for (int i = (word.length() - 1); i >= 0; i--) {\n //System.out.print(Tablica[i]);\n word2 = word2 + Tablica[i];\n }\n //System.out.println();\n System.out.println(\"word 2 \" + word2);\n System.out.println(\"word 3 \" + word3);\n\n System.out.print(\"word 3 i word 2 \");\n if (word3.toLowerCase().equals(word2.toLowerCase())) {\n System.out.println(\"jest palidronem\");\n } else {\n System.out.println(\"nie jest palidronem\");\n }\n\n//koniec\n\n }", "@Override\n\tpublic void attack() {\n\t\tSystem.out.println(\" 원거리 공격을 하다\");\n\t}", "public static void main(String[] args) {\n int kor,eng,math;\r\n char score='A';\r\n // 사용자가 입력 \r\n /*Scanner scan=new Scanner(System.in);\r\n System.out.print(\"국어 점수 입력:\");\r\n kor=scan.nextInt();\r\n System.out.print(\"영어 점수 입력:\");\r\n eng=scan.nextInt();\r\n System.out.print(\"수학 점수 입력:\");\r\n math=scan.nextInt();*/\r\n kor=input(\"국어\");\r\n eng=input(\"영어\");\r\n math=input(\"수학\");\r\n \r\n // 학점 \r\n int avg=(kor+eng+math)/30;\r\n score=hakjum(avg);// 메소드는 호출 => 메소드 처음부터 실행 => 결과값을 넘겨주고 다음문장으로 이동\r\n /*switch(avg)\r\n {\r\n case 10:\r\n case 9:\r\n \tscore='A';\r\n \tbreak;\r\n case 8:\r\n \tscore='B';\r\n \tbreak;\r\n case 7:\r\n \tscore='C';\r\n \tbreak;\r\n case 6:\r\n \tscore='D';\r\n \tbreak;\r\n default:\r\n \tscore='F';\r\n }*/\r\n \r\n System.out.println(\"국어:\"+kor);\r\n System.out.println(\"영어:\"+eng);\r\n System.out.println(\"수학:\"+math);\r\n System.out.println(\"총점:\"+(kor+eng+math));\r\n System.out.printf(\"평균:%.2f\\n\",(kor+eng+math)/3.0);\r\n System.out.println(\"학점:\"+score);\r\n\t}", "private static void ExplainRules() {\n System.out.printf(\"\\n %sWELCOME TO BOMB BLAST%s!!!!!!!!!!!!\\n\\n \", Styling.ANSI_BLUE, Styling.ANSI_RESET);\r\n System.out.printf(\"- Your object is to survive as long as possible, and accumlate the most points.\\n- You accumulate points by not triggering the bomb and therefore surviving the round.\\nWhere is the bomb? Within a random box\\n- All boxes are empty apart from ONE\\n- If you select the bomb ridden box you will receive NO POINTS!\\nAnd the survivors will receive points based on how long it took the group to find the bomb\\n- After a selected amount of rounds whoever has survived the most amount of attempts wins!!\\n\\n\");\r\n AnyKey.pressAnyKeyToContinue();\r\n }", "public void Makan()\n\t{\n\tSystem.out.println(\"Harimau Makan Daging dan minum susu\");\n\tSystem.out.println();\n\t}", "public abstract String dohvatiKontakt();", "public static void main(String[] args) {\n\t\tint a=0,b=0,cnt=0;\r\n\t\tScanner in=new Scanner(System.in);\r\n\t\ta=in.nextInt();\r\n\t\tString str=\"\";\r\n\t\tin.close();\r\n\t\tif(a<0){\r\n\t\t\tstr=\"fu \";\r\n\t\t\ta=-a;\r\n\t\t}\r\n\t\twhile(a!=0){\r\n\t\t\tb=b*10+a%10;\r\n\t\t\tif(b==0){\r\n\t\t\t\tcnt++;\r\n\t\t\t}\r\n\t\t\ta=a/10;\r\n\t\t}\r\n\t\tdo{\r\n\t\t\tswitch(b%10)\r\n\t\t\t{\r\n\t\t\t\tcase 0:str+=\"ling\";break;\t\t\r\n\t\t\t\tcase 1:str+=\"yi\";break;\r\n\t\t\t\tcase 2:str+=\"er\";break;\r\n\t\t\t\tcase 3:str+=\"san\";break;\r\n\t\t\t\tcase 4:str+=\"si\";break;\r\n\t\t\t\tcase 5:str+=\"wu\";break;\r\n\t\t\t\tcase 6:str+=\"liu\";break;\r\n\t\t\t\tcase 7:str+=\"qi\";break;\r\n\t\t\t\tcase 8:str+=\"ba\";break;\r\n\t\t\t\tcase 9:str+=\"jiu\";break;\r\n\t\t\t}\r\n\t\t\tb/=10;\r\n\t\t\tif(b!=0){\r\n\t\t\t\tstr+=\" \";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}while(b!=0);\t\r\n\t\tfor(int i=1;i<=cnt;i++)\r\n\t\t{\r\n\t\t\tstr=str+\" ling\";\r\n\t\t}\t\r\n\t\tSystem.out.print(str);\r\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 }", "public static void main(String[] args) {\n \n String palabaras[], palabraSelected=\"\";\n char juego[];\n char letra; \n char seguir; \n \n \n //puede volver a jugar.\n //con las palabras que no ha salido. Gastando palabras\n //en caso de no existir palabra terminar el juego e indicar el mensaje respectivo.\n\n\n do {\n aciertos=0; errores=0;\n bandera=false;\n\n palabaras= leerArchivo();\n \n if(palabaras.length==0){\n System.out.println(\"No se puede jugar porque no hay palabras\");\n break; \n }\n\n \n \n String nombre= palabaras[0].substring(0,18).trim().toUpperCase();\n\n String pa= String.format(\"%1$-20s\", \"walter\");\n System.out.println(pa.length());\n\n // escribirLineaArchivo(palabaras);\n \n //obtenerPalabra\n //random para obtener la palabara\n \n palabraSelected= obtenerPalabra(palabaras);\n //palabraSelected= palabraSelected.toUpperCase();\n \n //obtnerVectorJuego\n //instacia del venctor juego con el tamaño de la palabra seleccionada\n juego= obtenerVectorJuego(palabraSelected);\n \n /*//1 manera apata de llenar el vector juego con la palabra seleccinada\n for(int i=0; i<palabraSelected.length(); i++){\n \n juego[i]=palabraSelected.charAt(i);\n \n }\n */\n \n //segunda manera\n\n /* if(!palabraSelected.equals(\"fdd\")){\n\n\n }*/\n \n System.out.println(\"BIENVENIDO AL JUEGO DEL AHORCADO..\"); \n \n do {\n \n bandera=false;\n //imprimirJuego\n imprimirJuego(palabraSelected, juego);\n \n letra = solicitarLetra();\n \n //validarLetra\n validarLetra(letra, juego);\n \n //imprimirResultado\n imprimirResultado();\n \n \n } while (aciertos!=juego.length && errores!=7);\n \n \n //imprimirResultadoFinal\n imprimirResultadoFinal(juego, palabraSelected);\n\n\n\n System.out.println(\"Desea volver a jugar(S/N)? \"); \n seguir= scan.next().toUpperCase().charAt(0);\n \n eliminarPalabraArchivo(palabraSelected, palabaras);\n \n\n\n\n\n } while (seguir=='S');\n }", "public void mo55254a() {\n }", "void tampilKarakterA();", "public void kast() {\n\t\t// vaelg en tilfaeldig side\n\t\tdouble tilfaeldigtTal = Math.random();\n\t\tvaerdi = (int) (tilfaeldigtTal * 6 + 1);\n\t}", "@Override\n\tpublic void attack() {\n\t\tSystem.out.println(\"빠르게 근접공격을 하다\");\n\t}", "private void showStat() {\n\t\tSystem.out.println(\"=============================\");\n\t\tSystem.out.println(\"Your won! Congrates!\");\n\t\tSystem.out.println(\"The word is:\");\n\t\tSystem.out.println(\"->\\t\" + this.word.toString().replaceAll(\" \", \"\"));\n\t\tSystem.out.println(\"Your found the word with \" \n\t\t\t\t+ this.numOfWrongGuess + \" wrong guesses.\");\n\t}", "public static void batalla(){\n\tSystem.out.print(\"\\033[H\\033[2J\");//limpia pantalla\n System.out.flush();\n int turno; //declaracion de variables locales a utilizar\n int numeroAleatorio;\n int numeroAleatorio2;\n int ataqueEnemigo;\n int experienciaGanada;\n int oroGanado;\n String enemigo;\n Random aleatorio = new Random();//declarando variables tipo random para aleatoriedad\n Random aleatorio2 = new Random();\n Random aleatorio3 = new Random();\n //Inicializando la batalla\n System.out.println(\"...Bienvenido a la batalla...\");\n System.out.println(\"El turno de atacar es aleatorio.\");\n //eligiendo al oponente en battalla mediante el llamado de la funcion enemigos\n enemigo = enemigos();\n System.out.printf(\"\\nTu oponente es: \"+enemigo);\n //eligiendo turno aleatorio si es 1 inicia enemigo, si es 2 inicia jugador\n turno = (aleatorio.nextInt(2)+1);\n do{//condicion si primer turno es del jugador\n if(turno%2==0){\n turnoJugador();//llamando a funcion turnoJugador \n\t\t\t\tSystem.out.print(\"\\033[H\\033[2J\");//limpia pantalla\n \t\tSystem.out.flush(); \n }\n else{\n System.out.println(\"\\nturno de:\"+enemigo);\n ataqueEnemigo= turnoEnemigo(enemigo);//enviando parametro enemigo\n puntosDeVida= puntosDeVida-ataqueEnemigo;//descontando vida a jugador \n } \n turno=turno+1;//contador para los turnos correspondientes\n //validando la continuidad del juego mediante los puntos de vida.\n }while(puntosDeVida>0 && puntosDeVidaEnemigo>0&&opcionMiedo!=1);\n\n if(opcionMiedo!=1){//condicion de huida del jugador \n \t//condicion si el ganador de la battala es el Jugador\n \tif(puntosDeVida>puntosDeVidaEnemigo){\n \t\tSystem.out.print(\"\\033[H\\033[2J\");//limpia pantalla\n \t\tSystem.out.flush();\n \t\tSystem.out.println(\"Ganador de la batalla: \"+nombrePersonaje);\n \t//sumando los atributos ganados en battala\n \t\tnumeroAleatorio = (aleatorio2.nextInt(30-20+1)+20);\n \t\texperienciaGanada= ((nivel+1)*10)+numeroAleatorio;\n \t\texperiencia=experiencia+experienciaGanada;\n \n \t\tnumeroAleatorio2 = (aleatorio3.nextInt(45-15+1)+15);\n \t\toroGanado= ((nivel+1)*10)+numeroAleatorio2;\n \t\toro=oro+oroGanado;\n \t//imprimiendo los atributos ganados en batalla\n \t\tSystem.out.println(\"Oro Ganado: \"+oroGanado);\n \t\tSystem.out.println(\"experiencia Ganada: \"+experienciaGanada);\n \t//reiniciando la vida a los enemigos\n \t\tpuntosDeVidaEnemigo=0;\n \t//contador de derrotas para los enemigos disponibles\n\t\t\tswitch(enemigo){\n\t\t\t\tcase \"Dark_Wolf\":{\n \t\tenemigoVencido1=enemigoVencido1+1;\n \tbreak;\n \t\t}\n \tcase \"Dragon\":{\n \t\tenemigoVencido2=enemigoVencido2+1;\n \tbreak;\n \t\t}\n \tdefault:{\n enemigoVencido3=enemigoVencido3+1;\n break;\n }\n }\n }\n \telse{//mostrando al enemigo ganador en pantalla\n \t\tSystem.out.print(\"\\033[H\\033[2J\");//limpia pantalla\n \t\tSystem.out.flush();\n \t\tSystem.out.println(\"Ganador de la batalla: \"+enemigo);\n \t\t//reiniciando las caracteristicas principales al jugador\n \t\tpuntosDeVida=150;\n \t\tpuntosDeMana=10;\n \t\tnivel=0;\n \t\texperiencia=0;\n \t\toro=0;\n \t\tarticulo1=0;\n \t\tarticulo2=0;\n \t\tarticulo3=0;\n \t\tenemigoVencido1=0;\n \t\tenemigoVencido2=0;\n \t\tenemigoVencido3=0;\n }\n }else{\n\t\t\tSystem.out.println(\"Huiste de la batalla!!!\");\n\t\t\tSystem.out.println(\"oro perdido:\"+oroPerdido);\n\t\t\tpuntosDeVidaEnemigo=0;}//reiniciando solo la vida del enemigo despues de la huida del jugador\n }", "public void leerAlimentos();", "public void smell() {\n\t\t\n\t}", "public static void main(String[] args) {\n\n\t\tSystem.out.println(\"1.숫자\");\n\t\tSystem.out.println(\"1_1 정수------------------\");\n\t\tbyte bb = 127;\n\t\tshort sh = 32767;\n\t\tint x =2100000000;\n\t\tlong lo = 9223372036854775807L;\n\t\t\n\t\tSystem.out.println(bb);\n\t\tSystem.out.println(sh);\n\t\tSystem.out.println(x);\n\t\tSystem.out.println(lo);\n\t\t\n\t\tSystem.out.println(\"1_2 실수-------------------\");\n\t\t\n\t\tfloat ff = 123.456f;\n\t\tdouble dd = 123.456;\n\t\tSystem.out.println(ff);\n\t\tSystem.out.println(dd);\n\t\t\n\t\tSystem.out.println(\"2. boolean----------------\");\n\t\tboolean bo = true;\n\t\tSystem.out.println(bo);\n\t\t\n\t\tSystem.out.println(\"3. 문자----------------\");\n\t\tchar ch = 'a';\n\t\tchar ch2 = 'b';\n\t\tSystem.out.println(ch);\n\t\t\n\t\tString str = \"선생님은 귀여워요\";\n\t\tSystem.out.println(str);\n\t\t\n\t\t\n\t\t\n\t}", "@Override\n\tpublic void xoaDonHang(String ma_kh) {\n\n\t}", "public static void main(String[] args) {\n\t\tint posIndi = 1;\n\t\tint posLara = 4;\n\n\t\t// Position de la bague\n\t\tint posBague = 7;\n\t\tboolean laraEstSurLaBague = false;\n\t\tboolean indiEstSurLaBague = false;\n\n\t\t// Position de la bombe, le joueur qui tombe sur cette case, voit sa partie\n\t\t// renitialisée\n\t\tint posBombe = 11;\n\n\t\t// Position du passage secret, si un joueur atteint cette case il est direct\n\t\t// propulsé à la case 14\n\t\tint posPassageSecret = 6;\n\n\t\t// Etat du jeu, vrai si personne n'a encore atteint le trésor\n\t\tboolean estEnCours = true;\n\n\t\t// Joueur Courant Indi --> 1 Lara --> 2\n\t\tint joueurCourant = 1;\n\n\t\tPlateauJeu jeu = new PlateauJeu();\n\t\tjeu.placerIndi(posIndi);\n\t\tjeu.placerLara(posLara);\n\t\tjeu.placerBague(posBague);\n\t\tjeu.placerPassage(posPassageSecret);\n\t\tjeu.placerBombe(posBombe);\n\n\t\t// Jeu\n\t\twhile (estEnCours) {\n\t\t\tif (joueurCourant == 1) {\n\t\t\t\tjeu.afficherInformation(\"Tour d'Indi!\");\n\t\t\t\tint de = jeu.lancerDe();\n\t\t\t\tposIndi += de;\n\t\t\t\tif (posIndi == posLara) {\n\t\t\t\t\tposIndi++;\n\t\t\t\t}\n\t\t\t\t// Si Indi est sur la case du passage, on supprime le passage et on empêche tout autre personne de marcher sur le passage\n\t\t\t\tif (posIndi == posPassageSecret) {\n\t\t\t\t\tjeu.afficherInformation(\n\t\t\t\t\t\t\t\"Indi a pris le passage secret, il sera à la case 14, cliquez \\\"suivant\\\" pour continuer\");\n\t\t\t\t\tposIndi = 14;\n\t\t\t\t\tjeu.supprimerPassage();\n\t\t\t\t\tposPassageSecret = -1;\n\t\t\t\t\tjeu.suivant();\n\t\t\t\t}\n\t\t\t\t// Si Indi est sur la case de la bombe, on supprime la bombe et on empêche tout autre personne de marcher sur une bombe\n\t\t\t\tif (posIndi == posBombe) {\n\t\t\t\t\tjeu.supprimerIndi();\n\t\t\t\t\tposIndi = 1;\n\t\t\t\t\tjeu.placerIndi(posIndi);\n\t\t\t\t\tjeu.supprimerBombe();\n\t\t\t\t\tposBombe = -1;\n\t\t\t\t\tjeu.afficherInformation(\n\t\t\t\t\t\t\t\"Indi a pris la bombe, sa partie est renitialisée, cliquez \\\"suivant\\\" pour continuer\");\n\t\t\t\t\tjeu.suivant();\n\t\t\t\t}\n\t\t\t\t// Si Indi est sur la case de la bague, on supprime la bague et on empêche tout autre personne de marcher sur une bague\n\t\t\t\tif (posIndi == posBague) {\n\t\t\t\t\tindiEstSurLaBague = true;\n\t\t\t\t\tjeu.supprimerBague();\n\t\t\t\t\tjeu.placerIndi(posIndi);\n\t\t\t\t\tposBague = -1;\n\t\t\t\t\tjeu.afficherInformation(\n\t\t\t\t\t\t\t\"Indi a pris la bague, il perd un tour, cliquez \\\"suivant\\\" pour continuer\");\n\t\t\t\t\tjeu.suivant();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tposIndi = (posIndi > 16) ? 16 : posIndi;\n\t\t\t\tjeu.deplacerIndi(posIndi);\n\t\t\t\t\n\t\t\t\t// Si Lara n'a pas marché sur la bague, le tour prochain est le sien\n\t\t\t\tif (!laraEstSurLaBague) {\n\t\t\t\t\tjoueurCourant = 2;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Si Lara a marché sur la bague, elle perd un tour\n\t\t\t\tif (laraEstSurLaBague) {\n\t\t\t\t\tlaraEstSurLaBague = false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tjeu.afficherInformation(\"Tour de Lara!\");\n\t\t\t\tint de = jeu.lancerDe();\n\t\t\t\tposLara += de;\n\t\t\t\tif (posLara == posIndi) {\n\t\t\t\t\tposLara++;\n\t\t\t\t}\n\t\t\t\t// Si Lara est sur la case du passage, on supprime le passage et on empêche tout autre personne de marcher sur le passage\n\t\t\t\tif (posLara == posPassageSecret) {\n\t\t\t\t\tjeu.afficherInformation(\n\t\t\t\t\t\t\t\"Lara a pris le passage secret, elle sera à la case 14, cliquez \\\"suivant\\\" pour continuer\");\n\t\t\t\t\tposLara = 14;\n\t\t\t\t\tjeu.supprimerPassage();\n\t\t\t\t\tposPassageSecret = -1;\n\t\t\t\t\tjeu.suivant();\n\t\t\t\t}\n\t\t\t\t// Si Lara est sur la case de la bombe, on supprime la bombe et on empêche tout autre personne de marcher sur une bombe\n\t\t\t\tif (posLara == posBombe) {\n\t\t\t\t\tjeu.supprimerLara();\n\t\t\t\t\tposLara = 4;\n\t\t\t\t\tjeu.placerLara(posLara);\n\t\t\t\t\tjeu.supprimerBombe();\n\t\t\t\t\tposBombe = -1;\n\t\t\t\t\tjeu.afficherInformation(\n\t\t\t\t\t\t\t\"Lara a pris la bombe, sa partie est renitialisée, cliquez \\\"suivant\\\" pour continuer\");\n\t\t\t\t\tjeu.suivant();\n\t\t\t\t}\n\t\t\t\t// Si Lara est sur la case de la bague, on supprime la bague et on empêche tout autre personne de marcher sur une bague\n\t\t\t\tif (posLara == posBague) {\n\t\t\t\t\tlaraEstSurLaBague = true;\n\t\t\t\t\tjeu.supprimerBague();\n\t\t\t\t\tjeu.placerLara(posLara);\n\t\t\t\t\tposBague = -1;\n\t\t\t\t\tjeu.afficherInformation(\n\t\t\t\t\t\t\t\"Lara a pris la bague, elle perd un tour, cliquez \\\"suivant\\\" pour continuer\");\n\t\t\t\t\tjeu.suivant();\n\t\t\t\t}\n\t\t\t\tposLara = (posLara > 16) ? 16 : posLara;\n\t\t\t\tjeu.deplacerLara(posLara);\n\t\t\t\t\n\t\t\t\t// Si Indi n'a pas marché sur la bague, le tour prochain est le sien\n\t\t\t\tif (!indiEstSurLaBague) {\n\t\t\t\t\tjoueurCourant = 1;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Si Indi a marché sur la bague, il perd un tour\n\t\t\t\tif (indiEstSurLaBague) {\n\t\t\t\t\tindiEstSurLaBague = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Condition de continuation du jeu\n\t\t\testEnCours = posLara < 16 && posIndi < 16;\n\t\t}\n\n\t\tif (posLara == 16) {\n\t\t\tjeu.afficherInformation(\"Lara a gagné! La partie est terminée\");\n\t\t} else {\n\t\t\tjeu.afficherInformation(\"Indi a gagné! La partie est terminée\");\n\t\t}\n\n\t}", "public void nace() {\n System.out.println(\"Ostia, acabo de nacer tío.\");\n }", "public static void main(String[] args) {\n\t\tScanner ip = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Welcome to the Katapayadi Wizard! Enter the 1st syllable of the raga of your choice: \");\r\n\t\t\r\n\t\tString F = ip.nextLine();\r\n\t\tSystem.out.println(\"Great! Now enter the 2nd syllable of the raga of your choice: \");\r\n\t\t\r\n\t\tString S = ip.nextLine();\r\n\t\t//int firstIndex; \r\n\t\t\r\n\t\tString [] [] alphabets = {{\"nya\", \"ka\", \"kha\", \"ga\", \"gha\", \"nga\", \"cha\", \"ccha\", \"ja\", \"jha\"}, \r\n\t\t\t\t\t\t\t\t {\"na\", \"ta\", \"tah\",\"da\", \"dah\", \"nna\", \"tha\", \"ttha\", \"dha\", \"ddha\"},\r\n\t\t\t\t\t\t\t\t {\"null\",\"pa\", \"pha\",\"ba\",\"bha\",\"ma\", \"null\", \"null\", \"null\", \"null\", },\r\n\t\t\t\t\t\t\t\t {\"null\",\"ya\", \"ra\", \"la\", \"va\", \"se\", \"sha\", \"sa\", \"ha\",\"null\"}};\r\n\t\t\r\n\t\tint firstNum = getFirstIndex(alphabets, F);\r\n\t\tint secondNum = getSecondIndex(alphabets, S); \r\n\t\tint finalIndex = concat(firstNum, secondNum);\r\n\t\t\r\n\t\tString swaras1= swaraSthanam1(finalIndex);\r\n\t\t//String finalanswer = The [index]th melakartha: aro [swaras1] and ava [swaras2].\r\n\t\tSystem.out.println(firstNum);\r\n\t\tSystem.out.println(secondNum);\r\n\t\t\r\n\t\tSystem.out.println(finalIndex);\r\n\t\t\r\n\t\tSystem.out.println(swaras1);\r\n\t\t\r\n\t}", "public void stg() {\n\n\t}", "void breach();", "public void trykkPaa() throws TrykketPaaBombe {\n // Ingenting skal skje dersom en av disse er true;\n if (brettTapt || trykketPaa || flagget) {\n return;\n }\n\n // Om ruten er en bombe taper man brettet\n if (bombe) {\n trykketPaa = true;\n setText(\"x\");\n setBackground(new Background(new BackgroundFill(Color.RED, CornerRadii.EMPTY, Insets.EMPTY)));\n throw new TrykketPaaBombe();\n }\n // Om ruten har null naboer skal et stoerre omraade aapnes\n else if (bombeNaboer == 0) {\n Lenkeliste<Rute> besokt = new Lenkeliste<Rute>();\n Lenkeliste<Rute> aapneDisse = new Lenkeliste<Rute>();\n aapneDisse.leggTil(this);\n // Rekursiv metode som fyller aapneDisse med riktige ruter\n finnAapentOmraade(besokt, aapneDisse);\n for (Rute r : aapneDisse) {\n r.aapne();\n }\n } else {\n aapne();\n }\n }", "public void atakuj() {\n\n System.out.println(\"to metoda atakuj z klasy Potwor \");\n\n }", "@Override\n\tpublic void 식사(String 메뉴) {\n\t\t\n\t}", "public void ektypwsiFarmakou() {\n\t\t// Elegxw an yparxoun farmaka\n\t\tif(numOfMedicine != 0)\n\t\t{\n\t\t\tfor(int i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"INFO FOR MEDICINE No.\" + (i+1) + \":\");\n\t\t\t\tmedicine[i].print();\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMA FARMAKA PROS EMFANISH!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tclass Ulamek{\r\n\t\t\tprivate int licznik, mianownik;\r\n\r\n\t\t\tpublic void ustawLicznik (int l){\r\n\t\t\t\tlicznik=l;\r\n\t\t\t}\r\n\t\t\tpublic void ustawMianownik (int m){\r\n\t\t\t\tmianownik=m;\r\n\t\t\t}\r\n\t\t\tpublic void ustawUlamek (int u1, int u2){\r\n\t\t\t\tlicznik=u1;\r\n\t\t\t\tmianownik=u2;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpublic void wyswietl (){\r\n\t\t\t\t\r\n\t\t\t\tint przod, reszta, przod_dlugosc, mianownik_dlugosc, licznik_dlugosc;\r\n\t\t\t\tString przod_zamiana, mianownik_string, licznik_string;\r\n\t\t\t\tdouble wynik;\r\n\t\t\t\t\r\n\t\t\t\tif (mianownik!=0 && licznik !=0){\r\n\t\t\t\tprzod=licznik/mianownik;\r\n\t\t\t\treszta=licznik-(przod*mianownik);\r\n\t\t\t\tprzod_zamiana=\"\"+przod;\r\n\t\t\t\tprzod_dlugosc=przod_zamiana.length();\r\n\t\t\t\twynik=1.0*licznik/mianownik;\r\n\t\t\t\t\r\n\t\t\t\tif(reszta!=0){\r\n\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\tint licznik = 0;\r\n\t\t\t\t\tdo{\r\n\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t licznik++;\r\n\t\t\t\t\t}while (licznik!=przod_dlugosc);\r\n\t\t\t\tSystem.out.println(reszta);\r\n\t\t\t}\r\n\r\n\t\t\t\t//zamiana na stringa i liczenie\r\n\t\t\t\tmianownik_string=\"\"+mianownik;\r\n\t\t\t\tmianownik_dlugosc=mianownik_string.length();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//brak calości\r\n\t\t\t\tif(przod==0){\r\n\t\t\t\tSystem.out.print(\" \"+\" \"+\" \");\r\n\t\t\t\tint licznik3 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t licznik3++;\r\n\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t System.out.print(\" = \"+wynik);\r\n\r\n\t\t\t System.out.println();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\tif(przod!=0){\r\n\t\t\t\tSystem.out.print(\" \"+przod+\" \");\r\n\t\t\t\tint licznik3 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t\tif(reszta!=0){\r\n\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t}\r\n\t\t\t\t licznik3++;\r\n\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t System.out.print(\" = \"+wynik);\r\n\r\n\t\t\t System.out.println();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(reszta!=0){\r\n\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\tint licznik2 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t\tif(reszta!=0){\r\n\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t licznik2++;\r\n\t\t\t\t\t\r\n\t\t\t\t}while (licznik2!=przod_dlugosc);\r\n\t\t\t\tSystem.out.println(mianownik);\r\n\t\t\t System.out.println();\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\t//jezeli blad \r\n\t\t\t\t\tmianownik_string=\"\"+mianownik;\r\n\t\t\t\t\tmianownik_dlugosc=mianownik_string.length();\r\n\t\t\t\t\tlicznik_string=\"\"+licznik;\r\n\t\t\t\t\tlicznik_dlugosc=licznik_string.length();\r\n\t\t\t\t\tif(licznik_dlugosc>mianownik_dlugosc){\r\n\t\t\t\t\t\tmianownik_dlugosc=licznik_dlugosc;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//gora\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t//if(licznik==0){\r\n\t\t\t\t\t//System.out.print(\" \");\r\n\t\t\t\t\t//}\r\n\r\n\t\t\t\t\tSystem.out.println(licznik);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//srodek\r\n\t\t\t\t\tSystem.out.print(\" \"+\" \"+\" \");\r\n\t\t\t\t\t\r\n\t\t\t\t\tint licznik3 = 0;\r\n\t\t\t\t\tdo{\r\n\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t licznik3++;\r\n\t\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t\t System.out.print(\" = \"+\"ERR\");\r\n\r\n\t\t\t\t System.out.println();\r\n\t\t\t\t\t\r\n\t\t\t\t //dol\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t\t\tSystem.out.println(mianownik);\r\n\t\t\t\t\t System.out.println();\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t Ulamek u1=new Ulamek();\r\n\t\t Ulamek u2=new Ulamek();\r\n\r\n\t\t u1.ustawLicznik(3);\r\n\t\t u1.ustawMianownik(5);\r\n\r\n\t\t u2.ustawLicznik(142);\r\n\t\t u2.ustawMianownik(8);\r\n\r\n\t\t u1.wyswietl();\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t\t \r\n\t\t u2.wyswietl();\r\n\r\n\r\n\r\n\r\n\t\t u2.ustawUlamek(100,0);\r\n\r\n\r\n\t\t u2.wyswietl();\r\n\r\n\t}" ]
[ "0.64705974", "0.6308506", "0.6168303", "0.6126524", "0.60802436", "0.60212636", "0.59240097", "0.5881918", "0.5868073", "0.5860939", "0.58555055", "0.57947564", "0.5789834", "0.5788644", "0.5765093", "0.5763316", "0.57152987", "0.57054836", "0.5698422", "0.5691554", "0.5684941", "0.56733197", "0.56630003", "0.56597406", "0.56559247", "0.5640812", "0.563788", "0.5636548", "0.5635139", "0.56280047", "0.56262946", "0.5618828", "0.56160736", "0.56123", "0.5612052", "0.55976874", "0.55926156", "0.5592086", "0.5591906", "0.55914587", "0.5589143", "0.55853355", "0.5563149", "0.5559294", "0.55573547", "0.5555885", "0.55503595", "0.5547438", "0.5545743", "0.5545225", "0.5540585", "0.55276406", "0.5519524", "0.5504068", "0.5503852", "0.54980487", "0.54965293", "0.5489371", "0.5479914", "0.547665", "0.54729754", "0.5470283", "0.5469608", "0.54659444", "0.546492", "0.54616135", "0.54604995", "0.5459092", "0.5457073", "0.54568493", "0.54543614", "0.54522616", "0.54518783", "0.54490244", "0.54490244", "0.54490244", "0.54490244", "0.54490244", "0.54490244", "0.54490244", "0.54464746", "0.5442932", "0.54420805", "0.543724", "0.54367065", "0.54365724", "0.5431765", "0.5430478", "0.5430025", "0.5430012", "0.54288477", "0.542854", "0.54282445", "0.54257154", "0.54243326", "0.54212564", "0.54179955", "0.5415393", "0.5409152", "0.5406022", "0.5405605" ]
0.0
-1
lay chi tiet mat hang
public boolean checkmathang(Mathang mh) { boolean kq = false; // if(mh.getMa().contains("true") || mh.getMa().contains("=")) { // return false; // } String sql = "select * from tblMathang where tblMathangID = ?"; try { CallableStatement cs = con.prepareCall(sql); // cs.setString(1, mh.getMa()); cs.setInt(1, mh.getId()); ResultSet rs = cs.executeQuery(); if(rs.next()) { mh.setId(rs.getInt("tblMathangID")); mh.setTenmathang(rs.getString("tenmathang")); mh.setMa(rs.getString("ma")); mh.setGianban(rs.getFloat("giaban")); mh.setGianhap(rs.getFloat("gianhap")); mh.setNhanhieu(rs.getString("nhanhieu")); mh.setNhacungcap(rs.getString("nhacungcap")); kq = true; } } catch (Exception e) { e.printStackTrace(); kq = false; } return kq; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void chi(String pinzhong, String xingming) {\n\t\n\t}", "@Override\n\tpublic void maasHesapla() {\n\t\tSystem.out.println(\"isciler icin maas 5000 tl \");\n \t\t\n\t}", "@Override\n\tpublic void chi(String xingming) {\n\t\tSystem.out.println(\"我喜欢吃棒棒糖\");\n\t}", "public void playTopHat() {\n\t\tSystem.out.println(\"ding ding da-ding\");\n\t\t\n\t}", "public static void batalla(){\n\tSystem.out.print(\"\\033[H\\033[2J\");//limpia pantalla\n System.out.flush();\n int turno; //declaracion de variables locales a utilizar\n int numeroAleatorio;\n int numeroAleatorio2;\n int ataqueEnemigo;\n int experienciaGanada;\n int oroGanado;\n String enemigo;\n Random aleatorio = new Random();//declarando variables tipo random para aleatoriedad\n Random aleatorio2 = new Random();\n Random aleatorio3 = new Random();\n //Inicializando la batalla\n System.out.println(\"...Bienvenido a la batalla...\");\n System.out.println(\"El turno de atacar es aleatorio.\");\n //eligiendo al oponente en battalla mediante el llamado de la funcion enemigos\n enemigo = enemigos();\n System.out.printf(\"\\nTu oponente es: \"+enemigo);\n //eligiendo turno aleatorio si es 1 inicia enemigo, si es 2 inicia jugador\n turno = (aleatorio.nextInt(2)+1);\n do{//condicion si primer turno es del jugador\n if(turno%2==0){\n turnoJugador();//llamando a funcion turnoJugador \n\t\t\t\tSystem.out.print(\"\\033[H\\033[2J\");//limpia pantalla\n \t\tSystem.out.flush(); \n }\n else{\n System.out.println(\"\\nturno de:\"+enemigo);\n ataqueEnemigo= turnoEnemigo(enemigo);//enviando parametro enemigo\n puntosDeVida= puntosDeVida-ataqueEnemigo;//descontando vida a jugador \n } \n turno=turno+1;//contador para los turnos correspondientes\n //validando la continuidad del juego mediante los puntos de vida.\n }while(puntosDeVida>0 && puntosDeVidaEnemigo>0&&opcionMiedo!=1);\n\n if(opcionMiedo!=1){//condicion de huida del jugador \n \t//condicion si el ganador de la battala es el Jugador\n \tif(puntosDeVida>puntosDeVidaEnemigo){\n \t\tSystem.out.print(\"\\033[H\\033[2J\");//limpia pantalla\n \t\tSystem.out.flush();\n \t\tSystem.out.println(\"Ganador de la batalla: \"+nombrePersonaje);\n \t//sumando los atributos ganados en battala\n \t\tnumeroAleatorio = (aleatorio2.nextInt(30-20+1)+20);\n \t\texperienciaGanada= ((nivel+1)*10)+numeroAleatorio;\n \t\texperiencia=experiencia+experienciaGanada;\n \n \t\tnumeroAleatorio2 = (aleatorio3.nextInt(45-15+1)+15);\n \t\toroGanado= ((nivel+1)*10)+numeroAleatorio2;\n \t\toro=oro+oroGanado;\n \t//imprimiendo los atributos ganados en batalla\n \t\tSystem.out.println(\"Oro Ganado: \"+oroGanado);\n \t\tSystem.out.println(\"experiencia Ganada: \"+experienciaGanada);\n \t//reiniciando la vida a los enemigos\n \t\tpuntosDeVidaEnemigo=0;\n \t//contador de derrotas para los enemigos disponibles\n\t\t\tswitch(enemigo){\n\t\t\t\tcase \"Dark_Wolf\":{\n \t\tenemigoVencido1=enemigoVencido1+1;\n \tbreak;\n \t\t}\n \tcase \"Dragon\":{\n \t\tenemigoVencido2=enemigoVencido2+1;\n \tbreak;\n \t\t}\n \tdefault:{\n enemigoVencido3=enemigoVencido3+1;\n break;\n }\n }\n }\n \telse{//mostrando al enemigo ganador en pantalla\n \t\tSystem.out.print(\"\\033[H\\033[2J\");//limpia pantalla\n \t\tSystem.out.flush();\n \t\tSystem.out.println(\"Ganador de la batalla: \"+enemigo);\n \t\t//reiniciando las caracteristicas principales al jugador\n \t\tpuntosDeVida=150;\n \t\tpuntosDeMana=10;\n \t\tnivel=0;\n \t\texperiencia=0;\n \t\toro=0;\n \t\tarticulo1=0;\n \t\tarticulo2=0;\n \t\tarticulo3=0;\n \t\tenemigoVencido1=0;\n \t\tenemigoVencido2=0;\n \t\tenemigoVencido3=0;\n }\n }else{\n\t\t\tSystem.out.println(\"Huiste de la batalla!!!\");\n\t\t\tSystem.out.println(\"oro perdido:\"+oroPerdido);\n\t\t\tpuntosDeVidaEnemigo=0;}//reiniciando solo la vida del enemigo despues de la huida del jugador\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\t\r\n\t\tint input = 0;\r\n\t\tint ai = 0;\r\n\t\tint win = 0;\r\n\t\tint defeat = 0;\r\n\t\tint draw = 0;\r\n\t\t\r\n\t\tString me = \"\";\r\n\t\tString com = \"\";\r\n\t\tSystem.out.println(\"★☆★☆★☆★☆가위바위보 게임입니다!★☆★☆★☆★☆\");\r\n\t\tfor(int i = 1 ; i < 4 ; i++) {\r\n\t\t\tSystem.out.println(\"\\t\\t\\t\\t\\t 최대횟수/남은횟수\");\r\n\t\t\tSystem.out.println(\"가위(1), 바위(2), 보(3) 중 하나를 입력하세요>>>\\t\\t3 / \" + i);\r\n\t\t\tinput = scan.nextInt();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tai = (int)(Math.random()*3) + 1;\r\n\t\t\t\r\n\t\t\tif (input == 1) me = \"가위\";\r\n\t\t\telse if (input == 2) me = \"바위\";\r\n\t\t\telse if (input == 3) me = \"보\";\r\n\t\t\telse System.out.println(\"잘못 입력하셨습니다\");\r\n\t\t\tif (ai == 1) com = \"가위\";\r\n\t\t\telse if (ai == 2) com = \"바위\";\r\n\t\t\telse if (ai == 3) com = \"보\";\r\n\t\t\t\r\n\t\t\tif(me != \"\") {\r\n\t\t\t\tSystem.out.println(\"컴퓨터도 선택 했습니다.\");\r\n\t\t\t\tSystem.out.println(\"당신은 \\\"\" + me + \"\\\" 상대는 \\\"\" + com + \"\\\" 을 선택했습니다\");\r\n\t\t\t\r\n\t\t\t\tswitch (input - ai) {\r\n\t\t\t\tcase -1 : case 2 : \r\n\t\t\t\t\tSystem.out.println(\"★☆저런~~ 졌네요★☆\\n\"); defeat += 1; \r\n\t\t\t\t\tSystem.out.println(\"전적 => 승리 [ \" + win + \" ]\\t패배 [ \" + defeat + \" ]\\t무승부 [ \" + draw + \" ]\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase -2 : case 1 : \r\n\t\t\t\t\tSystem.out.println(\"★☆오~~ 이겼네요★☆\\n\"); win += 1; \r\n\t\t\t\t\tSystem.out.println(\"전적 => 승리 [ \" + win + \" ]\\t패배 [ \" + defeat + \" ]\\t무승부 [ \" + draw + \" ]\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase 0 : \r\n\t\t\t\t\tSystem.out.println(\"★☆이런! 비겼네요★☆\\n\"); draw += 1;\r\n\t\t\t\t\tSystem.out.println(\"전적 => 승리 [ \" + win + \" ]\\t패배 [ \" + defeat + \" ]\\t무승부 [ \" + draw + \" ]\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tdefault : System.out.println(\"오류 입니다\"); \r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(win==defeat) {\r\n\t\t\tSystem.out.println(\"최종 결과 => 무승부 입니다\");\r\n\t\t} else if(win > defeat) {\r\n\t\t\tSystem.out.println(\"최종 결과 => 당신의 승리입니다\");\r\n\t\t} else if(win < defeat) {\r\n\t\t\tSystem.out.println(\"최종 결과 => 당신의 패배입니다\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"오류 입니다\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "public void tampilKarakterC(){\r\n System.out.println(\"Saya adalah binatang \");\r\n }", "protected static void HienThiChiTiet() {\n\t\t\n\t\ttry {\n\n\t\t\tdtm1.setRowCount(0);\n\n\t\t\tString Sql = \"select SanPham.TenSP, Soluong,DonGia,DVT, DonGia*Soluong from SanPham,HoaDonTiec,ChiTietHoaDonTiec where SanPham.MaSP=ChiTietHoaDonTiec.MaSP and HoaDonTiec.MaHD=ChiTietHoaDonTiec.MaHD and HoaDonTiec.MaHD=?\";\n\t\t\tPreparedStatement prepare = conn.prepareStatement(Sql);\n\t\t\tprepare.setString(1, maHD);\n\t\t\tResultSet result = prepare.executeQuery();\n\t\t\twhile (result.next()) {\n\t\t\t\tVector<Object> vec = new Vector<Object>();\n\t\t\t\tvec.add(result.getString(1));\n\t\t\t\tvec.add(result.getInt(2));\n\t\t\t\tvec.add(result.getInt(3));\n\t\t\t\tvec.add(result.getString(4));\n\t\t\t\tvec.add(result.getInt(5));\n\t\t\t\t//maHD = result.getString(8);\n\t\t\t\t\n\t\t\t\tdtm1.addRow(vec);\n\t\t\t\t//int i = tbl.getRowCount();\n\t\t\t\t//txtMaHD.setText(maHD);// hiển thị mã HD theo bàn\n\n\t\t\t}\n\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t\n\t}", "public void displayPhieuXuatKho() {\n\t\tlog.info(\"-----displayPhieuXuatKho()-----\");\n\t\tif (!maPhieu.equals(\"\")) {\n\t\t\ttry {\n\t\t\t\tDieuTriUtilDelegate dieuTriUtilDelegate = DieuTriUtilDelegate.getInstance();\n\t\t\t\tPhieuTraKhoDelegate pxkWS = PhieuTraKhoDelegate.getInstance();\n\t\t\t\tCtTraKhoDelegate ctxWS = CtTraKhoDelegate.getInstance();\n\t\t\t\tDmKhoa dmKhoaNhan = new DmKhoa();\n\t\t\t\tdmKhoaNhan = (DmKhoa)dieuTriUtilDelegate.findByMa(IConstantsRes.KHOA_KC_MA, \"DmKhoa\", \"dmkhoaMa\");\n\t\t\t\tphieuTra = pxkWS.findByPhieutrakhoByKhoNhan(maPhieu, dmKhoaNhan.getDmkhoaMaso());\n\t\t\t\tif (phieuTra != null) {\n\t\t\t\t\tmaPhieu = phieuTra.getPhieutrakhoMa();\n\t\t\t\t\tresetInfo();\n\t\t\t\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\t\t\tngayXuat = df.format(phieuTra.getPhieutrakhoNgay());\n\t\t\t\t\tfor (CtTraKho ct : ctxWS.findByphieutrakhoMa(phieuTra.getPhieutrakhoMa())) {\n\t\t\t\t\t\tCtTraKhoExt ctxEx = new CtTraKhoExt();\n\t\t\t\t\t\tctxEx.setCtTraKho(ct);\n\t\t\t\t\t\tlistCtKhoLeTraEx.add(ctxEx);\n\t\t\t\t\t}\n\t\t\t\t\tcount = listCtKhoLeTraEx.size();\n\t\t\t\t\tisFound=\"true\";\n\t\t\t\t\t// = null la chua luu ton kho -> cho ghi nhan\n\t\t\t\t\t// = 1 da luu to kho -> khong cho ghi nhan\n\t\t\t\t\tif(phieuTra.getPhieutrakhoNgaygiophat()==null)\n\t\t\t\t\tisUpdate = \"1\";\n\t\t\t\t\telse\n\t\t\t\t\t\tisUpdate = \"0\";\n\t\t\t\t} else {\n\t\t\t\t\tFacesMessages.instance().add(IConstantsRes.PHIEUXUATKHO_NULL, maPhieu);\n\t\t\t\t\treset();\n\t\t\t\t}\n\t\t\t\ttinhTien();\n\t\t\t} catch (Exception e) {\n\t\t\t\tFacesMessages.instance().add(IConstantsRes.PHIEUXUATKHO_NULL, maPhieu);\n\t\t\t\treset();\n\t\t\t\tlog.error(String.format(\"-----Error: %s\", e));\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void eisagwgiAstheni() {\n\t\t// Elegxw o arithmos twn asthenwn na mhn ypervei ton megisto dynato\n\t\tif(numOfPatient < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tpatient[numOfPatient] = new Asthenis();\n\t\t\tpatient[numOfPatient].setFname(sir.readString(\"DWSTE TO ONOMA TOU ASTHENH: \")); // Pairnei to onoma tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU ASTHENH: \")); // Pairnei to epitheto tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setAMKA(rnd.nextInt(1000000)); // To sistima dinei automata ton amka tou asthenous\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t//Elegxos monadikotitas tou amka tou astheni\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfPatient; i++)\n\t\t\t{\n\t\t\t\tif(patient[i].getAMKA() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfPatient++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS ASTHENEIS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "@Override\r\n public void Story(){\r\n super.Story();\r\n System.out.println(\"=======================================================================================\");\r\n System.out.println(\"|| Arya harus bergegas untuk menyelamatkan seluruh warga. Dia tidak tau posisi warga ||\");\r\n System.out.println(\"|| yang harus diselamatkan ada pada ruangan yang mana. ||\");\r\n System.out.println(\"=======================================================================================\");\r\n }", "private void gotoSTK(){\n\t short buf_length = (short) MyText.length;\n\t short i = buf_length;\n\t initDisplay(MyText, (short) 0, (short) buf_length, (byte) 0x81,(byte) 0x04);\n}", "public static void main(String[] args) {\n int chieuDai = 10;\n int chieuRong = 20;\n\n int chuViHinhCN = HinhChuNhat.chuVi(chieuDai, chieuRong);\n int dienTichHCN = HinhChuNhat.dienTich(chieuDai,chieuRong);\n System.out.println(\"Chu vi va dien tich hinh Chu Nhat\");\n System.out.println(\"Chu vi hinh chu nhat la: \" + chuViHinhCN);\n System.out.println(\"Dien tich hinh chu nhat la: \" + dienTichHCN);\n\n //tinh chu vi va dien tich hinh vuong\n int canhHinhVuong = 50;\n int chuViHV = HinhVuong.chuVi(canhHinhVuong);\n int dientichHV = HinhVuong.dienTich(canhHinhVuong);\n System.out.println(\"Chu vi va dien tich Hinh Tron \");\n System.out.println(\"Chu vi hinh vuong la:\" + chuViHV);\n System.out.println(\"Dien tich hinh vuong la:\" + dientichHV);\n\n //tinh chu vi va dien tich Hinh Tron\n float bankinh = 2.6f;\n float chuViHC = HinhTron.chuViHinhTron(bankinh);\n float dienTichHC = HinhTron.dienTichHinhTron(bankinh);\n System.out.println(\"Chu vi va dien tich hinh tron\");\n System.out.println(\"Chu vi hinh tron: \" + chuViHC);\n System.out.println(\"Dien tich hinh tron: \" + dienTichHC);\n }", "@Override\n\tpublic void gaga() {\n\t\tthis.zhizhi();\n\t}", "@Override\n\tpublic void jiao() {\n\t\tSystem.out.println(\"我睡觉打呼噜\");\n\t}", "private void vuoronKaikkiHeitotHeitetty() {\n while (heittojaJaljella < 1) {\n if (tulosLaitettu) {\n break;\n }\n try {\n Thread.sleep(100);\n } catch (InterruptedException ex) {\n System.out.println(\"Ei ole laitettu tulosta\");\n }\n }\n }", "public final void bHT() {\n AppMethodBeat.m2504i(21893);\n C7060h.pYm.mo8381e(12931, Long.valueOf(this.nyK), Long.valueOf(this.nyL), Long.valueOf(this.nzg), Long.valueOf(this.nzh), Long.valueOf(this.nzi), Long.valueOf(this.nzj));\n AppMethodBeat.m2505o(21893);\n }", "private void displayGameHeader()\n {\n System.out.println(\"########Welcome to Formula 9131 Championship########\");\n }", "@Override\n\tpublic void nhap() {\n\t\tScanner reader = new Scanner(System.in);\n\t\tSystem.out.println(\" so cmnd:\");\n\t\tthis.cmnd = reader.nextLine();\n\t\tSystem.out.println(\" nhap ho ten khach hang:\");\n\t\tthis.hoTenKhachHang = reader.nextLine();\n\t\tSystem.out.println(\" so tien gui:\");\n\t\tthis.soTienGui = Double.parseDouble(reader.nextLine());\n\t\tSystem.out.println(\" nhap ngay lap:\");\n\t\tthis.ngayLap = reader.nextLine();\n\t\tSystem.out.println(\" lai suat:\");\n\t\tthis.laiSuat = Double.parseDouble(reader.nextLine());\n\t\tSystem.out.println(\" so thang gui:\");\n\t\tthis.soThangGui = Integer.parseInt(reader.nextLine());\n\t\tSystem.out.println(\" nhap ky han:\");\n\t\tthis.kyHan = Integer.parseInt(reader.nextLine());\n\t}", "@Override\n public void interact() {\n System.out.print(\"Halo aku ikan di bawah laut dalam lho, aku punya lampu supaya aku\" \n + \"bisa tetap melihat di kegelapan\");\n }", "void kiemTraThangHopLi() {\n }", "public static void Latihan() {\n Model.Garis();\n System.out.println(Model.subTitel[0]);\n Model.Garis();\n\n System.out.print(Model.subTitel[1]);\n Model.nilaiTebakan = Model.inputUser.nextInt();\n\n System.out.println(Model.subTitel[2] + Model.nilaiTebakan);\n\n // Operasi Logika\n Model.statusTebakan = (Model.nilaiTebakan == Model.nilaiBenar);\n System.out.println(Model.subTitel[3] + Model.hasilTebakan(Model.TrueFalse) + \"\\n\\n\");\n }", "public void visKontingenthaandteringMenu ()\r\n {\r\n System.out.println(\"Du har valgt kontingent.\");\r\n System.out.println(\"Hvad oensker du at foretage dig?\");\r\n System.out.println(\"1: Se priser\");\r\n System.out.println(\"2: Se medlemmer i restance\");\r\n System.out.println(\"0: Afslut\");\r\n\r\n }", "public void Makan()\n\t{\n\tSystem.out.println(\"Harimau Makan Daging dan minum susu\");\n\tSystem.out.println();\n\t}", "private void vuoronKolmasHeitto() {\n while (heittojaJaljella == 1) {\n if (tulosLaitettu) {\n break;\n }\n try {\n Thread.sleep(100);\n } catch (InterruptedException ex) {\n System.out.println(\"Ei ole heitetty tai laitettu tulosta\");\n }\n }\n }", "@Override\r\n\tpublic void actionMisil() {\n\t\tSystem.out.println(\"미사일 있다.\");\r\n\t}", "public void tampilKarakterA(){\r\n System.out.println(\"Saya mempunyai kaki empat \");\r\n }", "public static void main(String[] args) {\n\t\t\n\t\t\t\tScanner scan = new Scanner(System.in);\n\t\t\t\tSystem.out.println(\"Hangi islemi yapmak istersiniz 1) hesabi goruntuleme\\r\\n\" + \n\t\t\t\t\t\t\"\t\t 2)Para cekme\\r\\n\" + \n\t\t\t\t\t\t\"\t\t 3) Para yatirma\\r\\n\" + \n\t\t\t\t\t\t\"\t\t 4)Cikis\");\n\t\t\t\t\n\t\t\t\tint islem = scan.nextInt();\n\t\t\t\tdouble toplamTutar = 5000;\n\t\t\t\tswitch(islem) {\n\t\t\t\tcase 1:\n\t\t\t\t\tSystem.out.println(\"Hesabinizda \" +toplamTutar + \"tl bulunmaktadir\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tSystem.out.println(\"Cekmek istediginiz miktari giriniz \");\n\t\t\t\t\tint miktar = scan.nextInt();\n\t\t\t\t\tSystem.out.println(\"Para cekiminiz basariyla gerceklesti\");\n\t\t\t\t\tSystem.out.println(\"Yeni hesap bakiyeniz = \" + (toplamTutar-miktar));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tSystem.out.println(\"Yatirmak istediginiz miktari giriniz\");\n\t\t\t\t\tint yatirilanPara = scan.nextInt();\n\t\t\t\t\tSystem.out.println(\"Para yatirma isleminiz basariyla gerceklesti\");\n\t\t\t\t\tSystem.out.println(\"Yeni hesap bakiyeniz = \" + (toplamTutar + yatirilanPara));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tSystem.out.println(\"Bizleri tercih ettiginiz icin tesekkur ederiz Iyi gunler dileriz\");\n\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tSystem.out.println(\"Yanlis giris yaptiniz lutfen tekrar deneyin\");\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tscan.close();\n\t\t\n\t\t\t\t\n\t}", "public void affichage() {\n if (blanc){\n System.out.print(\"Cb\");\n }\n else{\n System.out.print(\"Cn\");\n }\t\t\n }", "public void belajar(){\n\t\tSystem.out.println(\"Belajar java di \"+tempat+\" selama \"+jamBelajar+\" jam\");\n\t}", "@Override\n\tpublic void nhanTinNhan() {\n\n\t}", "@Override\n\tpublic double tinhTienLai() {\n\t\tdouble tienLai=0;\n\t\tif(soThangGui>=kyHan){\n\t\t\t tienLai=soTienGui*laiSuat*soThangGui;\n\t\t}\n\t\treturn tienLai;\n\t}", "void rajib () {\n\t\t \n\t\t System.out.println(\"Rajib is IT Eng\");\n\t }", "public static void main(String[] args) {\n\t\tHorseList.add(new Horse1(\"0번마\",1));\n\t\tRunning.add(0);\n\t\tHorseList.add(new Horse1(\"1번마\",1));\n\t\tRunning.add(0);\n\t\tHorseList.add(new Horse1(\"2번마\",1));\n\t\tRunning.add(0);\n\t\tHorseList.add(new Horse1(\"3번마\",1));\n\t\tRunning.add(0);\n\t\tHorseList.add(new Horse1(\"4번마\",1));\n\t\tRunning.add(0);\n\t\tHorseList.add(new Horse1(\"5번마\",1));\n\t\tRunning.add(0);\n\t\tHorseList.add(new Horse1(\"6번마\",1));\n\t\tRunning.add(0);\n\t\tHorseList.add(new Horse1(\"7번마\",1));\n\t\tRunning.add(0);\n\t\tHorseList.add(new Horse1(\"8번마\",1));\n\t\tRunning.add(0);\n\t\tHorseList.add(new Horse1(\"9번마\",1));\n\t\tRunning.add(0);\n\n\t\t\n\t\tfor(Horse1 hs : HorseList) {\n\t\t\ths.start();\t\n\t\t}\n\t\t\n\t\tfor(int i=0; i<55; i++) {\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t\tfor (Horse1 hs : HorseList) {\n\t\t\t\t\t\tString result =\"\";\n\t\t\t\t\t\tresult +=hs.getNm();\n\t\t\t\t\t\tfor (int j = 0; j < 50; j++) {\n\t\t\t\t\t\tif(j==Running.get(Integer.parseInt(hs.getNm().substring(0,1)))) {\n\t\t\t\t\t\t\tresult +=\"♘>\";\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tresult +=\"-\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(result);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\tThread.sleep(200);\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\tSystem.out.println(\"경기 끝...\");\n\t\tSystem.out.println(\"---------------------\");\n\t\tSystem.out.println();\n\t\tSystem.out.println(\" 경기 결과 \");\n\t\tSystem.out.println(\"=================전역변수로정렬===================\");\n\t\tSystem.out.println(\" 1등 2등 3등 4등 5등 6등 7등 8등 9등 10등\");\n\t\tSystem.out.println(\"말이름 : \" + strRank);\n\t\tSystem.out.println(\"=================compare정렬전===================\");\t\t\n\t\tfor(Horse1 hs : HorseList) {\n\t\t\tSystem.out.println(hs.getNm() + \" : \" + hs.getRank() + \"등\");\n\t\t}\n\t\tSystem.out.println(\"=================compare정렬후===================\");\n\t\tCollections.sort(HorseList, new Sortrank1());\n\t\tfor(Horse1 hs : HorseList) {\n\t\t\tSystem.out.println(hs.getNm() + \" : \" + hs.getRank()+ \"등\");\n\t\t}\n\t}", "public boolean helpForAll()\n {\n boolean action = false;\n //boolean value2048 = false;\n \n int i = 0;\n \n // Faire {...} tant qu'on a pu effectuer une action le coup précédent //et tant qu'on a pas rencontré la valeur 2048 \n do\n {\n action = helpForOne();\n //System.out.println(i++);\n //System.out.println(\"Action : \"+action);\n this.displayGrid();\n } while (action);\n //} while (action && !value2048);\n \n return action;\n }", "public void kast() {\n\t\t// vaelg en tilfaeldig side\n\t\tdouble tilfaeldigtTal = Math.random();\n\t\tvaerdi = (int) (tilfaeldigtTal * 6 + 1);\n\t}", "bdm mo1784a(akh akh);", "public void playHoomans() {\r\n System.out.println(\"Thanks for killing each other, human!\");\r\n }", "@Override\r\n\tpublic void fly() {\n\t\tSystem.out.println(\"오리날다\");\r\n\t}", "public void Ganhou() {\n\t\tString[] g = new String[10]; \n\t\tg[0] = m[0][0] + m[0][1] + m[0][2];\n\t\tg[1] = m[1][0] + m[1][1] + m[1][2];\n\t\tg[2] = m[2][0] + m[2][1] + m[2][2];\n\t\t\n\t\tg[3] = m[0][0] + m[1][0] + m[2][0];\n\t\tg[4] = m[0][1] + m[1][1] + m[2][1];\n\t\tg[5] = m[0][2] + m[1][2] + m[2][2];\n\t\t\n\t\tg[6] = m[0][0] + m[1][1] + m[2][2];\n\t\tg[7] = m[2][0] + m[1][1] + m[0][2];\n\t\tg[8] = \"0\";\n\t\tg[9] = \"0\";\n\t\t\n\t\tfor(int i= 0; i<10; i++) {\n\t\t\tif(g[i].equals(\"XXX\")){\n\t\t\t\tJOptionPane.showMessageDialog(null,\"X GANHOU\");\n\t\t\t\tacabou = true;\n\t\t\t\temp = 0; \n\t\t\t\tbreak;\n\t\t\t} else if (g[i].equals(\"OOO\")) {\n\t\t\t\tJOptionPane.showMessageDialog(null,\"O GANHOU\");\n\t\t\t\tacabou = true;\n\t\t\t\tbreak;\n\t\t\t} \n\t\t}\n\t\t\n\t\tif (emp == 9) {\n\t\t\tJOptionPane.showMessageDialog(null,\"EMPATOU\");\t\n\t\t\tacabou = true;\n\t\t}\n\t}", "protected void choixModeTri(){\r\n boolean choix = false;\r\n OPMode.menuChoix=true;\r\n OPMode.telemetryProxy.addLine(\"**** CHOIX DU MODE DE TRI ****\");\r\n OPMode.telemetryProxy.addLine(\" Bouton X : GAUCHE\");\r\n OPMode.telemetryProxy.addLine(\" Bouton B : DROITE\");\r\n OPMode.telemetryProxy.addLine(\" Bouton Y : UNE SEULE COULEUR\");\r\n OPMode.telemetryProxy.addLine(\" Bouton A : MANUEL\");\r\n OPMode.telemetryProxy.addLine(\" CHOIX ? .........\");\r\n OPMode.telemetryProxy.update();\r\n while (!choix){\r\n if (gamepad.x){\r\n OPMode.modeTri = ModeTri.GAUCHE;\r\n choix = true;\r\n }\r\n if (gamepad.b){\r\n OPMode.modeTri = ModeTri.DROITE;\r\n choix = true;\r\n }\r\n if (gamepad.y){\r\n OPMode.modeTri = ModeTri.UNI;\r\n choix = true;\r\n }\r\n if (gamepad.a){\r\n OPMode.modeTri = ModeTri.MANUEL;\r\n choix = true;\r\n }\r\n }\r\n OPMode.menuChoix = false;\r\n\r\n }", "public static void printHangman(int printInput) {\n\t\t\t\n\t\t switch (printInput) {\n \t case 0: \n\t\t System.out.println(\" \" + \" _______\");\n\t\t System.out.println(\" \" + \" | \" + \" \" + \" \" + \" \" + \" |\");\n\t\t System.out.println(\" \" + \" | \" + \" \" + \" \" + \" \" + \" O\");\n\t\t System.out.println(\" \" + \" | \" + \" \" + \" \" + \" \" + \"/|\\\\\");\n System.out.println(\" \" + \" | \" + \" \" + \" \" + \" / \\\\\");\n \t\t System.out.println(\" \" + \" | \");\n System.out.println(\"__|___\");\n\t\t System.out.println(\"| \" + \" \" + \" \" + \" |\"); \n break;\n \t case 1:\n\t\t System.out.println(\" \" + \" _______\");\n\t\t System.out.println(\" \" + \" | \" + \" \" + \" \" + \" \" + \" |\");\n\t\t System.out.println(\" \" + \" | \" + \" \" + \" \" + \" \" + \" O\");\n\t\t System.out.println(\" \" + \" | \" + \" \" + \" \" + \" \" + \"/|\\\\\");\n System.out.println(\" \" + \" | \" + \" \" + \" \" + \" /\");\n \t\t System.out.println(\" \" + \" | \");\n System.out.println(\"__|___\");\n\t\t System.out.println(\"| \" + \" \" + \" \" + \" |\"); \n break;\n \t case 2: \n System.out.println(\" \" + \" _______\");\n\t\t System.out.println(\" \" + \" | \" + \" \" + \" \" + \" \" + \" |\");\n\t\t System.out.println(\" \" + \" | \" + \" \" + \" \" + \" \" + \" O\");\n\t\t System.out.println(\" \" + \" | \" + \" \" + \" \" + \" \" + \"/|\\\\\"); \n System.out.println(\" \" + \" | \");\n \t\t System.out.println(\" \" + \" | \");\n System.out.println(\"__|___\");\n\t\t System.out.println(\"| \" + \" \" + \" \" + \" |\");\n break;\n \t case 3: \n\t\t System.out.println(\" \" + \" _______\");\n\t\t System.out.println(\" \" + \" | \" + \" \" + \" \" + \" \" + \" |\");\n\t\t System.out.println(\" \" + \" | \" + \" \" + \" \" + \" \" + \" O\");\n\t\t System.out.println(\" \" + \" | \" + \" \" + \" \" + \" \" + \"/|\"); \n System.out.println(\" \" + \" | \");\n \t\t System.out.println(\" \" + \" | \");\n System.out.println(\"__|___\");\n\t\t System.out.println(\"| \" + \" \" + \" \" + \" |\");\n break;\n \t case 4: \n\t\t System.out.println(\" \" + \" _______\");\n\t\t System.out.println(\" \" + \" | \" + \" \" + \" \" + \" \" + \" |\");\n\t\t System.out.println(\" \" + \" | \" + \" \" + \" \" + \" \" + \" O\");\n\t\t System.out.println(\" \" + \" | \" + \" \" + \" \" + \" \" + \"/\");\n System.out.println(\" \" + \" | \");\n \t\t System.out.println(\" \" + \" | \");\n System.out.println(\"__|___\");\n\t\t System.out.println(\"| \" + \" \" + \" \" + \" |\");\n break;\n \t case 5: \n\t\t System.out.println(\" \" + \" _______\");\n\t\t System.out.println(\" \" + \" | \" + \" \" + \" \" + \" \" + \" |\");\n\t\t System.out.println(\" \" + \" | \" + \" \" + \" \" + \" \" + \" O\");\n\t\t System.out.println(\" \" + \" | \");\n\t\t System.out.println(\" \" + \" | \");\n System.out.println(\" \" + \" | \");\n \t\t System.out.println(\" \" + \" | \");\n System.out.println(\"__|___\");\n\t\t System.out.println(\"| \" + \" \" + \" \" + \" |\");\n break;\n \t case 6: \n\t\t System.out.println(\" \" + \" _______\");\n\t\t System.out.println(\" \" + \" | \" + \" \" + \" \" + \" \" + \" |\");\n\t\t System.out.println(\" \" + \" | \");\n\t\t System.out.println(\" \" + \" | \");\n\t\t System.out.println(\" \" + \" | \");\n System.out.println(\" \" + \" | \");\n \t\t System.out.println(\" \" + \" | \");\n System.out.println(\"__|___\");\n\t\t System.out.println(\"| \" + \" \" + \" \" + \" |\");\n break;\n \t case 7: \n\t\t System.out.println(\" \" + \" _______\");\n\t\t System.out.println(\" \" + \" | \");\n\t\t System.out.println(\" \" + \" | \");\n\t\t System.out.println(\" \" + \" | \");\n\t\t System.out.println(\" \" + \" | \");\n System.out.println(\" \" + \" | \");\n \t\t System.out.println(\" \" + \" | \");\n System.out.println(\"__|___\");\n\t\t System.out.println(\"| \" + \" \" + \" \" + \" |\");\n break;\n \t}\n\n\t}", "public void displayPantry(){\r\n jam1.displayJam();\r\n jam2.displayJam();\r\n jam3.displayJam();\r\n \r\n }", "public void maakNieuweDoolhof()\n {\n /*hzs: hoek zonder schat\n hms: hoek met schat\n r: recht stuk\n t: T-kruispunt met schat*/\n //vaste aantallen vakjes\n int hzs = 10, hms = 6, r = 11, t = 6;\n List<String> schatten = sch.getSchatten();\n List<String> tSchatten = schatten.subList(12, 18);\n Collections.shuffle(tSchatten);\n List<String> hSchatten = schatten.subList(18, 24);\n Collections.shuffle(hSchatten);\n\n int hKaartTeller = 0, tKaartTeller = 0;\n\n //losse vakken random invullen\n //oneven rijen\n for (int h = 0; h <= 6; h += 2)\n {\n for (int i = 1; i <= 5; i += 2)\n {\n int kaart = (int) (1 + (Math.random() * 4));\n switch (kaart)\n {\n case 1:\n if (hzs > 0)\n {\n this.gangkaarten[h][i] = new HoekKaart((int) Math.floor(Math.random() * 4) + 1, false);\n hzs--;\n } else\n {\n i--;\n }\n break;\n case 2:\n if (hms > 0)\n {\n this.gangkaarten[h][i] = new HoekKaart((int) Math.floor(Math.random() * 4) + 1, hSchatten.get(hKaartTeller), false);\n hms--;\n hKaartTeller++;\n } else\n {\n i--;\n }\n break;\n case 3:\n if (r > 0)\n {\n this.gangkaarten[h][i] = new RechtKaart((int) Math.floor(Math.random() * 4) + 1, false);\n r--;\n } else\n {\n i--;\n }\n break;\n case 4:\n if (t > 0)\n {\n this.gangkaarten[h][i] = new TKaart((int) Math.floor(Math.random() * 4) + 1, tSchatten.get(tKaartTeller), false);\n t--;\n tKaartTeller++;\n } else\n {\n i--;\n }\n break;\n\n }\n }\n }\n\n //even rijen\n for (int j = 1; j <= 5; j += 2)\n {\n for (int i = 0; i <= 6; i++)\n {\n int kaart = (int) (1 + (Math.random() * 4));\n switch (kaart)\n {\n case 1:\n if (hzs > 0)\n {\n this.gangkaarten[j][i] = new HoekKaart((int) Math.floor(Math.random() * 4) + 1, false);\n hzs--;\n } else\n {\n i--;\n }\n break;\n case 2:\n if (hms > 0)\n {\n this.gangkaarten[j][i] = new HoekKaart((int) Math.floor(Math.random() * 4) + 1, hSchatten.get(hKaartTeller), false);\n hms--;\n hKaartTeller++;\n } else\n {\n i--;\n }\n break;\n case 3:\n if (r > 0)\n {\n this.gangkaarten[j][i] = new RechtKaart((int) Math.floor(Math.random() * 4) + 1, false);\n r--;\n } else\n {\n i--;\n }\n break;\n case 4:\n if (t > 0)\n {\n this.gangkaarten[j][i] = new TKaart((int) Math.floor(Math.random() * 4) + 1, tSchatten.get(tKaartTeller), false);\n t--;\n tKaartTeller++;\n } else\n {\n i--;\n }\n break;\n\n }\n }\n }\n }", "public MangKaib(Main game){\n super(game);\n taust = new Taust(0,0,600,400);\n taust.checkLevel();// checkime, mis areaga tegu on peale uue tausta loomist\n mobSpawner.lisaMobInfo(); // laeme mob info.\n //game, width height draw x draw y, elud, damage, nimi, exp\n mangija = new Player(game, 97,174,50,370,100,10);\n mspawner = new mobSpawner(game, Mobid[13].getWidth(), Mobid[13].getHeight(), 450, 370, km[13].elud, km[13].dpsMin, km[13].dpsMax, km[13].mobSpeed, km[13].nimi, km[13].mobXp, km[13].mobGold,km[13].mobGold);\n magicAttack = new magicAttack(game,(mangija.x+mangija.width-15),(mangija.y-(mangija.height/2)),40,20,1,mangija.damage);\n kLiides = new uiBox(0,400,600,200);\n kLiides2 = new uiSide(600,0,200,600);\n uusRida = new Tekstid(0,420);//420 v 590\n }", "@Override\n\t\tpublic void attack() {\n\t\t\tSystem.out.println(\"날으면서 원거리 공격을 하다.\");\n\t\t}", "public void Onwin(){\r\n xPos=0;\r\n yPos=0;\r\n indice = rand.nextInt(11);\r\n if(indice==12){indice2= indice-1;}\r\n else{indice2= indice+1;};\r\n\r\n\r\n texto.setText(\"\");\r\n texto.append(expressions[indice]);\r\n texto1.setText(\"\");\r\n texto1.append(expressions[indice2]);\r\n\r\n matrix=generateMatrix(Alphat,expressions[indice]);\r\n textoG.setText(\"\");\r\n for(int i=0;i<matrix.length;i++){\r\n textoG.append(matrix[i]+\"\\n\");\r\n }\r\n\r\n }", "@Override\n\tpublic void getThongTin() {\n\t\tSystem.out.print(\"Ghế \");\n\t\tvatlieu.getMoTa();\n\t}", "public void run() {\n \t canvas.reset();\n \t rg = RandomGenerator.getInstance();\n int index = rg.nextInt(0,9);\n hang = new HangmanLexicon();\n \n //word = hang.getWord(index);\n try{\n BufferedReader br = new BufferedReader(new FileReader(\"HangmanLexicon.txt\"));\n \n while(true){\n \t String line = br.readLine();\n \t if(line == null)\n \t\t continue;\n \t ArrayList<String> kt = new ArrayList<String>();\n \t \n \t \n \t \n }\n for(int k = 0; k < word.length();k++){\n \t t = t + \"-\";\n \t \n }\n \n \twhile(counter >=0){\n \t\n \tsetup();\n \t\n \t\n \t\n \t\n \t}\n \t\n\t}\n\n \n private void setup(){\n \t\n \t\n \t\n \t\n \n int k = word.length();\n \n int i = 65;\n int temp = rg.nextInt(0,25);\n \tchar c = (char)(i + temp);\n \tboolean presentcharacter = false;\n \n \tcanvas.displayWord(t);\n \tSystem.out.println(\"you have only \" + counter + \" cases left\");\n System.out.println(\"Your Guess \"+ c);\n for(int j = 0; j<word.length();j++){\n \t\t\n \t\tif(word.charAt(j) == c){\n \t\t\tpresentcharacter = true;\n \t\t\tk--;\n \t\t}\n \t}\n \t\n \t\n \n \tif(presentcharacter){\n \t\tfor(int num = 0; num<word.length();num++){\n \t\t\tif(word.charAt(num) == c){\n \t\t\t\tSystem.out.println(\"you guessed it right\");\n \t\t\t\tt = t.substring(0,num) +c +t.substring(num+1,t.length());\n \t\t\t \t\n \t\t\t}\n \t\t\t\n \t\t}\n \t\t\n \t\t\n \t\t\n \t\t\n \t}\n \t\n \t\tcanvas.noteIncorrectGuess(c, counter);\n \t\t\n \t\t\n \t\n \tcounter--;\n \n \n \t if(k == 0){\n \t \t\n \t \tSystem.out.println(\"you have won this game\");\n \t \tSystem.out.println(\"Congratulations\");\n return; \t \t\n \t \t\n \t \t\n \t }\n \n }\n \n \n\n private String t = \"\" ;\n public String word;\npublic int counter = 8;\n private HangmanLexicon hang;\n private RandomGenerator rg;\n}", "public void showHeuristics() {\n for (int row = 0; row < BOARD_SIZE; row++) {\n for (int col = 0; col < BOARD_SIZE; col++) {\n System.out.printf(\"%3d\", getSquareAccessibility(row, col));\n if (col == BOARD_SIZE - 1) {\n System.out.println();\n }\n }\n }\n }", "public PILShindanAnk(Logger logg, Map<String, String> cProps) {\r\n super(logg, cProps, \"診断&アンケート\");\r\n Shindan = new AnswerShindan(logg);\r\n }", "public void tarjoaKaakao(automaatti ja, KaakaoTarjoilu ct) {\n\t\tif (ja.getKaakao() < 10) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Raaka-aine loppu. Täytä säiliö!\", \"Virhe!\", JOptionPane.ERROR_MESSAGE);\n\t\t} else {\n\t\t\tct.setVisible(true);\n\t}}", "public void ektypwsiAstheni() {\n\t\t// Elegxw an yparxoun astheneis\n\t\tif(numOfPatient != 0)\n\t\t{\n\t\t\tfor(int i = 0; i < numOfPatient; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"INFO FOR PATIENT No.\" + (i+1) + \":\");\n\t\t\t\tpatient[i].print();\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMOI ASTHENEIS PROS EMFANISH!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "private void peliLoppuuUfojenTuhoamiseen() {\n if (tuhotut == Ufolkm) {\n ingame = false;\n Loppusanat = \"STEVE HOLT!\";\n }\n }", "public static void main(String[] args) {\n int kor,eng,math;\r\n char score='A';\r\n // 사용자가 입력 \r\n /*Scanner scan=new Scanner(System.in);\r\n System.out.print(\"국어 점수 입력:\");\r\n kor=scan.nextInt();\r\n System.out.print(\"영어 점수 입력:\");\r\n eng=scan.nextInt();\r\n System.out.print(\"수학 점수 입력:\");\r\n math=scan.nextInt();*/\r\n kor=input(\"국어\");\r\n eng=input(\"영어\");\r\n math=input(\"수학\");\r\n \r\n // 학점 \r\n int avg=(kor+eng+math)/30;\r\n score=hakjum(avg);// 메소드는 호출 => 메소드 처음부터 실행 => 결과값을 넘겨주고 다음문장으로 이동\r\n /*switch(avg)\r\n {\r\n case 10:\r\n case 9:\r\n \tscore='A';\r\n \tbreak;\r\n case 8:\r\n \tscore='B';\r\n \tbreak;\r\n case 7:\r\n \tscore='C';\r\n \tbreak;\r\n case 6:\r\n \tscore='D';\r\n \tbreak;\r\n default:\r\n \tscore='F';\r\n }*/\r\n \r\n System.out.println(\"국어:\"+kor);\r\n System.out.println(\"영어:\"+eng);\r\n System.out.println(\"수학:\"+math);\r\n System.out.println(\"총점:\"+(kor+eng+math));\r\n System.out.printf(\"평균:%.2f\\n\",(kor+eng+math)/3.0);\r\n System.out.println(\"학점:\"+score);\r\n\t}", "public void splMatriksBalikan() {\n Matriks MKoef = this.Koefisien();\n Matriks MKons = this.Konstanta();\n\n if(!MKoef.IsPersegi()) {\n System.out.println(\"Matriks koefisien bukan matriks persegi, sehingga tidak dapat diselesaikan dengan metode matriks balikan.\");\n this.Solusi = \"Matriks koefisien bukan matriks persegi, sehingga tidak dapat diselesaikan dengan metode matriks balikan.\";\n } else {\n float det = MKoef.DeterminanKofaktor();\n if (det == 0) {\n System.out.println(\"Determinan matriks koefisien bernilai 0, sehingga tidak dapat diselesaikan dengan metode matriks balikan.\");\n this.Solusi = \"Determinan matriks koefisien bernilai 0, sehingga tidak dapat diselesaikan dengan metode matriks balikan.\";\n } else {\n Matriks MBalikan = MKoef.BuatMatriksBalikan();\n Matriks MHsl = MBalikan.KaliMatriks(MKons);\n\n for (int i = 0; i < MHsl.NBrsEff; i++) {\n System.out.println(\"x\" + (i+1) + \" = \" + MHsl.M[i][0]);\n this.Solusi += \"x\" + (i+1) + \" = \" + MHsl.M[i][0] + \"\\n\";\n }\n }\n }\n }", "public void anazitisiSintagisVaseiAstheni() {\n\t\tint amkaCode = 0;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tamkaCode = sir.readPositiveInt(\"EISAGETAI TO AMKA TOU ASTHENH: \"); // Zitaw apo ton xrhsth na mou dwsei ton amka tou asthenh pou thelei\n\t\t\tfor(i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\t\tif(amkaCode == prescription[i].getPatientAmka()) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou proorizetai gia ton sygkekrimeno asthenh\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t\tprescription[i].print(); // Emfanizw thn/tis sintagh/sintages oi opoies proorizontai gia ton sigkekrimeno asthenh\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\ttmp_2++;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON ASTHENH ME AMKA: \" + amkaCode);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "@Override\n\tpublic void attack() {\n\t\tSystem.out.println(\" 원거리 공격을 하다\");\n\t}", "private void showStat() {\n\t\tSystem.out.println(\"=============================\");\n\t\tSystem.out.println(\"Your won! Congrates!\");\n\t\tSystem.out.println(\"The word is:\");\n\t\tSystem.out.println(\"->\\t\" + this.word.toString().replaceAll(\" \", \"\"));\n\t\tSystem.out.println(\"Your found the word with \" \n\t\t\t\t+ this.numOfWrongGuess + \" wrong guesses.\");\n\t}", "public void Caracteristicas(){\n System.out.println(\"La resbaladilla tiene las siguientes caracteristicas: \");\r\n if (escaleras==true) {\r\n System.out.println(\"Tiene escaleras\");\r\n }else System.out.println(\"No tiene escaleras\");\r\n System.out.println(\"Esta hecho de \"+material);\r\n System.out.println(\"Tiene una altura de \"+altura);\r\n }", "public void Onwin2(){\r\n xPos=0;\r\n yPos=0;\r\n indice = rand.nextInt(11);\r\n if(indice==12){indice2= indice-1;}\r\n else{indice2= indice+1;};\r\n\r\n\r\n texto.setText(\"\");\r\n texto.append(expressions[indice2]);\r\n texto1.setText(\"\");\r\n texto1.append(expressions[indice]);\r\n\r\n matrix=generateMatrix(Alphat,expressions[indice]);\r\n textoG.setText(\"\");\r\n for(int i=0;i<matrix.length;i++){\r\n textoG.append(matrix[i]+\"\\n\");\r\n }\r\n\r\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Nhập số nguyên tố:\");\n\t\tint n=Nhap();\n\t\tSystem.out.println(\"Liệt kê:\");\n\t\tlietke(n);\n\t}", "@Override\n\tpublic void eat() {\n\t\tSystem.out.println(\"사료를 먹다\");\n\t}", "public void joueDeuxHumains()\n\t{\n\t\tboolean fin = false;\n\t\tboolean result = false;\n\t\tint etoiles;\n\t\tint choix;\n\t\tint i = 0;\n\t\tint x = 0;\n\t\tint y = 0;\n\t\tint x2 = 0;\n\t\tint y2 = 0;\n\t\tString couleur;\n\t\tetoiles = initialiser();\n\t\twhile (!fin)\n\t\t{\n\t\t\tif (i % 2 == 0)\n\t\t\t{\n\t\t\t\tcouleur = \"bleu\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcouleur = \"rouge\";\n\t\t\t}\n\t\t\tSystem.out.println(\"1-Jouer\");\n\t\t\tSystem.out.println(\"2-Afficher une composante\");\n\t\t\tSystem.out.println(\"3-Vérifier si une case relie une composante\");\n\t\t\tSystem.out.println(\"4-Regarder s'il existe un chemin entre deux cases d'une couleur donnée\");\n\t\t\tSystem.out.println(\"5-Afficher le nombre minimum de cases entre deux cases données (x,y) et (z,t)\");\n\t\t\tSystem.out.println(\"6-Quitter\");\n\t\t\tchoix = clavier.nextInt();\n\t\t\tafficher(i);\n\t\t\tswitch (choix)\n\t\t\t{\n\t\t\t\tcase 1:\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"### Ajout d'une case pour jouer ###\");\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de x ?\");\n\t\t\t\t\tx = clavier.nextInt();\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de y ?\");\n\t\t\t\t\ty = clavier.nextInt();\n\t\t\t\t\tcompressionChemin(x, y);\n\t\t\t\t\tresult = tableauPeres_[x][y].colorerCase(couleur);\n\t\t\t\t\t//System.out.println(existeCheminCases(getLesVoisins(x, y, couleur), tableauPeres_[x][y], couleur));\n\t\t\t\t\tif (getNbEtoiles(x, y, couleur) < getNbEtoiles(getLesVoisins(x, y, couleur).getX(), getLesVoisins(x, y, couleur).getY(), couleur))\n\t\t\t\t\t{\n\t\t\t\t\t\tunion(getLesVoisins(x, y, couleur).getX(), getLesVoisins(x, y, couleur).getY(), x, y);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tunion(x, y, getLesVoisins(x, y, couleur).getX(), getLesVoisins(x, y, couleur).getY());\n\t\t\t\t\t}\n\t\t\t\t\tpreparerScore(x, y, couleur);\n\t\t\t\t\tafficheScores(couleur);\n\t\t\t\t\tnombresEtoiles(x, y, couleur);\n\t\t\t\t\t++i;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tSystem.out.println(\"### Afficher une composante ###\");\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de x ?\");\n\t\t\t\t\tx = clavier.nextInt();\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de y ?\");\n\t\t\t\t\ty = clavier.nextInt();\n\t\t\t\t\tcompressionChemin(x, y);\n\t\t\t\t\tcompressionChemin(x2, y2);\n\t\t\t\t\tafficheComposante(x, y, couleur);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tSystem.out.println(\"### Tester si une case relie une composante ###\");\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de x ?\");\n\t\t\t\t\tx = clavier.nextInt();\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de y ?\");\n\t\t\t\t\ty = clavier.nextInt();\n\t\t\t\t\tcompressionChemin(x, y);\n\t\t\t\t\tif(!relieComposantes(x, y, couleur))\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"Cette case ne relie aucune composante.\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"Cette case relie une ou plusieurs composante(s).\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tSystem.out.println(\"### Tester s'il existe un chemin entre deux cases données ###\");\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de x de la première case ?\");\n\t\t\t\t\tx = clavier.nextInt();\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de y de la première case ?\");\n\t\t\t\t\ty = clavier.nextInt();\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de x de la deuxième case ?\");\n\t\t\t\t\tx2 = clavier.nextInt();\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de y de la deuxième case ?\");\n\t\t\t\t\ty2 = clavier.nextInt();\n\t\t\t\t\tcompressionChemin(x, y);\n\t\t\t\t\tcompressionChemin(x2, y2);\n\t\t\t\t\tif (existeCheminCases(tableauPeres_[x][y], tableauPeres_[x2][y2], couleur))\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"Il existe un chemin entre les deux cases.\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"Il n'existe pas de chemin entre les deux cases.\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\tSystem.out.println(\"### Afficher nombre minimum de cases qui relie deux cases ###\");\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de x de la première case ?\");\n\t\t\t\t\tx = clavier.nextInt();\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de y de la première case ?\");\n\t\t\t\t\ty = clavier.nextInt();\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de x de la deuxième case ?\");\n\t\t\t\t\tx2 = clavier.nextInt();\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de y de la deuxième case ?\");\n\t\t\t\t\ty2 = clavier.nextInt();\n\t\t\t\t\tcompressionChemin(x, y);\n\t\t\t\t\tcompressionChemin(x2, y2);\n\t\t\t\t\tSystem.out.println(relierCasesMin(x, y, x2, y2, couleur));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\tfin = true;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (scoreJ2_ == etoiles)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Joueur bleu a gagné !\");\n\t\t\t\tfin = true;\n\t\t\t}\n\t\t\telse if (scoreJ1_ == etoiles)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Joueur rouge a gagné !\");\n\t\t\t\tfin = true;\n\t\t\t}\n\n\t\t}\n\t}", "private static void printHangman() {\n\t\tfor (int i = 0; i < word.length(); i++) {\n\t\t\tif (guessesResult[i]) {\n\t\t\t\tSystem.out.print(word.charAt(i));\n\t\t\t} else {\n\t\t\t\tSystem.out.print(\" _ \");\n\t\t\t}\n\t\t}\n\t}", "void think() {\n //get the output of the neural network\n decision = brain.output(vision);\n\n if (decision[0] > 0.8) {//output 0 is boosting\n boosting = true;\n } else {\n boosting = false;\n }\n if (decision[1] > 0.8) {//output 1 is turn left\n spin = -0.08f;\n } else {//cant turn right and left at the same time\n if (decision[2] > 0.8) {//output 2 is turn right\n spin = 0.08f;\n } else {//if neither then dont turn\n spin = 0;\n }\n }\n //shooting\n if (decision[3] > 0.8) {//output 3 is shooting\n shoot();\n }\n }", "public void showpuzzle(){\n\t\tpuzzle();\n\t\tframe.setVisible(true);\n\t\twordHint = 0;\n\t\tif(wordHint == length){\n\t\t\tCollections.shuffle(puzzle);\n\t\t\twordHint++;\n\t\t}\n\t}", "@Override\n\tpublic void attack() {\n\t\tSystem.out.println(\"빠르게 근접공격을 하다\");\n\t}", "public void fly() {\n\t\tSystem.out.println(\"我是比赛用排球, 我可以飞!\");\n\t}", "public void mainkan(){\n System.out.println();\n //System.out.printf(\"Waktu: %1.2f\\n\", this.oPlayer.getWaktu());\n System.out.println(\"Nama : \" + this.oPlayer.nama);\n System.out.println(\"Senjata : \" + this.oPlayer.getNamaSenjataDigunakan());\n System.out.println(\"Kesehatan : \" + this.oPlayer.getKesehatan());\n// System.out.println(\"Daftar Efek : \" + this.oPlayer.getDaftarEfekDiri());\n System.out.println(\"Nama Tempat : \" + this.namaTempat);\n System.out.println(\"Narasi : \" + this.narasi);\n }", "void show_sense(int a, int b, String w[][]){\r\n int t1,t2,t3,t4;\r\n t1=a-1; // kirinya kotak\r\n t2=a+1; // kanannya kotak\r\n t3=a+4; // bawahnya kotak\r\n t4=a-4; // atasnya kotak\r\n\r\n if(a==5 || a==9) // kalau misal koordinat di batas kiri (5 dan 9), kirinya gak dianggap (0)\r\n t1=0;\r\n if (a==8|| a==12) // kalau misal koordinat di batas kanan (8 dan 12), kanannya gak dianggap (0)\r\n t2=0;\r\n if (a==4) // kalau misal koordinat di batas kanan (4), kanannya gak dianggap (0)\r\n t2 =0;\r\n if (a==13) // koordinat 13 itu agent, kirinya agent itu 0\r\n t1=0;\r\n\r\n // error handling kalau table diluar batas\r\n if(t3>16)\r\n t3=0;\r\n if(t4<0)\r\n t4=0;\r\n\r\n // b = breeze\r\n // adjacent nya pit itu breeze\r\n if(b==1){\r\n b_pos[0] = t1;\r\n b_pos[1] = t2;\r\n b_pos[2] = t3;\r\n b_pos[3] = t4;\r\n }\r\n else if (b==2){ // s = stench\r\n s_pos[0] = t1; // adjacent nya wumpus itu stench\r\n s_pos[1] = t2;\r\n s_pos[2] = t3;\r\n s_pos[3] = t4;\r\n }\r\n\r\n int temp1,count;\r\n\r\n for (int i = 0; i < 4; i++) {\r\n if (b==1) temp1 = b_pos[i];\r\n else temp1 = s_pos[i];\r\n\r\n count=0;\r\n \r\n // Iterasi buat ngasih tanda stench dan breeze\r\n for (int j = 1; j <= 4; j++) {\r\n for (int k = 1; k <= 4; k++) {\r\n ++count;\r\n if (count==temp1 && b==1 && !w[j][k].contains(\"B\")){\r\n w[j][k]+=\"B\";\r\n }\r\n else if (count==temp1 && b==2 && !w[j][k].contains(\"s\")){\r\n w[j][k]+=\"s\";\r\n }\r\n }\r\n }\r\n }\r\n\r\n }", "protected void setExplain(int line, int one, int two) {\r\n String a = setToInfinity(one);\r\n String b = setToInfinity(two);\r\n String text;\r\n switch (line) {\r\n case 0:\r\n text = \"Aufruf mit: negascout(\" + a + \",\" + b + \")\";\r\n break;\r\n case 1:\r\n text = \"\\u00DCberpr\\u00FCfe, ob node ein Blatt ist\";\r\n break;\r\n case 2:\r\n text = \"Der Blattknoten wird zu \" + a + \" ausgewertet\";\r\n break;\r\n case 3:\r\n text = \"a = \" + a;\r\n break;\r\n case 4:\r\n text = \"b = \" + a;\r\n break;\r\n case 5:\r\n text = \"Iteriere \\u00FCber alle Kindknoten.\";\r\n break;\r\n case 60:\r\n text = \"Negierter Aufruf auf dem ersten Kindknoten\";\r\n break;\r\n case 61:\r\n text = \"Negierter Aufruf mit minimalem Fenster\";\r\n break;\r\n case 62:\r\n text = \"score = \" + a;\r\n break;\r\n case 7:\r\n text = \"\\u00FCberpr\\u00FCfe, ob Fail High vorliegt\";\r\n break;\r\n case 8:\r\n text = \"Erneuter Aufruf mit dem gesamten Fenster\";\r\n break;\r\n case 90:\r\n text = \"alpha = max( \" + a + \", \" + b + \" ) = \" + a;\r\n break;\r\n case 91:\r\n text = \"alpha = max( \" + a + \", \" + b + \" ) = \" + b;\r\n break;\r\n case 100:\r\n text = \"alpha = \" + a + \" ist gr\\u00F6\\u00DFer als beta = \" + b;\r\n break;\r\n case 101:\r\n text = \"alpha = \" + a + \" ist kleiner als beta = \" + b;\r\n break;\r\n case 110:\r\n text = \"Es wird ein Cutoff durchgef\\u00FChrt\";\r\n break;\r\n case 111:\r\n text = \"Der Cutoff ist irrelevant, weil es keine weiteren Kinder gibt.\";\r\n break;\r\n case 12:\r\n text = \"Setze neues minimales Fenster mit b =\" + a;\r\n break;\r\n case 14:\r\n text = \"Der letzte Kindknoten wurde betrachtet.\";\r\n break;\r\n case 200:\r\n text = \"Der Algorithmus gibt das Ergebnis \" + a + \" zur\\u00FCck.\";\r\n break;\r\n default:\r\n text = \"\";\r\n\r\n }\r\n explain.setText(text, null, null);\r\n }", "public final void beK() {\n AppMethodBeat.i(88975);\n if (this.kaS.aZV().vTW != null && this.kaS.aZV().vTW.size() > 0) {\n tm tmVar = (tm) this.kaS.aZV().vTW.get(0);\n if (this.iPD != null) {\n this.iPD.setText(tmVar.title);\n }\n if (this.ksp != null) {\n if (TextUtils.isEmpty(tmVar.kbW)) {\n this.ksp.setVisibility(8);\n } else {\n this.ksp.setText(tmVar.kbW);\n }\n }\n if (this.ksq != null) {\n if (TextUtils.isEmpty(tmVar.kbX)) {\n this.ksq.setVisibility(8);\n } else {\n this.ksq.setText(tmVar.kbX);\n AppMethodBeat.o(88975);\n return;\n }\n }\n }\n AppMethodBeat.o(88975);\n }", "@Override\r\n\tpublic void 자기() {\n\t\tSystem.out.println(\"잠을 잔다\");\r\n\t}", "public static void getBattleChoice() {\n \t\tMainGame.display.disp(\"What do you want to do?:\");\r\n \t\tMainGame.display.Enable(MainGame.display.attack, MainGame.display.defend, MainGame.display.heal);\r\n \t}", "private static void saluti() {\n\t\tUtilityIO.header(MSG_CHIUSURA, SIMBOLO_MESSAGGIO_BENV_USCITA);\n\t\tSystem.out.println();\n\t}", "private void tutorial(){\n\t\tString msg = \"[Space] = Inicia e pausa o jogo depois de iniciado.\";\n\t\tmsg += \"\\n[Seta esquerda] = Move o paddle para a esquerda.\";\n\t\tmsg += \"\\n[Seta direita] = Move o paddle para a direita.\";\n\t\tmsg += \"\\n[I] = Abre a janela de informaçoes.\";\n\t\tmsg += \"\\n[R] = Reinicia o jogo.\";\n\t\tJOptionPane.showMessageDialog(null, \"\"+msg, \"Informaçoes\", JOptionPane.INFORMATION_MESSAGE);\n\t}", "public void BacaIsi(int masalah){\r\n\t\t// KAMUS LOKAL\r\n\t\tint metode;\r\n\t\tint nbBrs;\r\n\t\tint nbKol;\r\n\r\n\t\tMatriks tempM;\r\n\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\t// ALGORITMA\r\n\t\tSystem.out.printf(\"Pilih metode pembacaan matriks \\n1. Input Keyboard \\n2. File \\n\");\r\n\r\n\t\tmetode = sc.nextInt();\r\n\r\n\t\tif (metode == 1) {\r\n\r\n\t\t\t// Menerima Masukan dari keyboard untuk SPL\r\n\t\t\tif (masalah == 1) {\r\n\r\n\t\t\t\tSystem.out.printf(\"Panjang baris:\");\r\n\t\t\t\tnbBrs = sc.nextInt();\r\n\r\n\t\t\t\tSystem.out.printf(\"Panjang kolom:\");\r\n\t\t\t\tnbKol = sc.nextInt();\r\n\r\n\t\t\t\ttempM = new Matriks(nbBrs,nbKol);\r\n\r\n\t\t\t\tSystem.out.println(\"Matriks:\");\r\n\t\t\t\tfor (int i=0; i<nbBrs; i++) {\r\n\t\t\t\t\tfor (int j=0; j<nbKol; j++) {\r\n\t\t\t\t\t\ttempM.Elmt[i][j] = sc.nextDouble();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n<<<<<<< HEAD\r\n\t\t\t\t\r\n=======\r\n>>>>>>> 3fd955cf024845ce6a62834b1327d604a20de6d4\r\n\t\t\t\tthis.Elmt = tempM.Elmt;\r\n\t\t\t\tthis.BrsEff = tempM.BrsEff;\r\n\t\t\t\tthis.KolEff = tempM.KolEff;\r\n\t\t\t}\r\n\r\n\t\t\t// Menerima Masukan untuk Interpolasi Linier dari Keyboard\r\n\t\t\telse if (masalah == 2) {\r\n\t\t\t\tString titik;\r\n\t\t\t\tScanner scanner = new Scanner(System.in).useDelimiter(\"line.separator\");\r\n\t\t\t\tScanner s;\r\n\r\n\t\t\t\tSystem.out.printf(\"Input N: \");\r\n\t\t\t\tnbBrs = sc.nextInt();\r\n\r\n\t\t\t\ttempM = new Matriks(nbBrs,2);\r\n\r\n\t\t\t\tSystem.out.println(\"Titik:\");\r\n\t\t\t\tfor (int i=0; i<nbBrs+1; i++) {\r\n\t\t\t\t\ttitik = scanner.nextLine();\r\n\t\t\t\t\ttitik = titik.substring(1, titik.length()-1);\r\n\r\n\t\t\t\t\ts = new Scanner(titik).useDelimiter(\", \");\r\n\r\n\t\t\t\t\ttempM.Elmt[i][0] = s.nextDouble();\r\n\t\t\t\t\ttempM.Elmt[i][1] = s.nextDouble();\r\n\r\n\t\t\t\t\ts.close();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tscanner.close();\r\n<<<<<<< HEAD\r\n\t\t\t\t\r\n=======\r\n>>>>>>> 3fd955cf024845ce6a62834b1327d604a20de6d4\r\n\r\n\t\t\t\tthis.Elmt = tempM.Elmt;\r\n\t\t\t\tthis.BrsEff = tempM.BrsEff;\r\n\t\t\t\tthis.KolEff = tempM.KolEff;\r\n\t\t\t}\r\n\r\n\t\t\t//Menerima Masukan untuk Regresi Linier berganda\r\n\t\t\telse if (masalah == 3) {\r\n\t\t\t\tSystem.out.printf(\"Jumlah data: \");\r\n\t\t\t\tnbBrs = sc.nextInt();\r\n\r\n\t\t\t\tSystem.out.printf(\"Jumlah peubah: \");\r\n\t\t\t\tnbKol = sc.nextInt();\r\n\r\n\t\t\t\ttempM = new Matriks(nbBrs,nbKol+1);\r\n\r\n\t\t\t\tSystem.out.println(\"Matriks:\");\r\n\t\t\t\tfor (int i=0; i<nbBrs; i++) {\r\n\t\t\t\t\tfor (int j=0; j<nbKol; j++) {\r\n\t\t\t\t\t\ttempM.Elmt[i][j] = sc.nextDouble();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.Elmt = tempM.Elmt;\r\n\t\t\t\tthis.BrsEff = tempM.BrsEff;\r\n\t\t\t\tthis.KolEff = tempM.KolEff;\r\n\t\t\t\t\r\n\t\t\t} \r\n\t\t\t// Menerima Masukan input untuk persoalan matriks inverse dan determinan\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"Ukuran Matriks: \");\r\n\t\t\t\tnbBrs = sc.nextInt();\r\n\t\t\t\ttempM = new Matriks(nbBrs, nbBrs);\r\n\t\t\t\tSystem.out.println(\"Elemen Matriks: \");\r\n\r\n\t\t\t\tfor(int i=0; i<nbBrs; i++){\r\n\t\t\t\t\tfor(int j=0; j<nbBrs; j++){\r\n\t\t\t\t\t\ttempM.Elmt[i][j] = sc.nextDouble();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tthis.Elmt = tempM.Elmt;\r\n\t\t\t\tthis.BrsEff = tempM.BrsEff;\r\n\t\t\t\tthis.KolEff = tempM.KolEff;\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//Menerima masukan dari file eksternal\r\n\t\telse if (metode == 2) {\r\n\t\t\tint i = 0;\r\n\t\t\tint j = 0;\r\n\t\t\tdouble tempI;\r\n\r\n\t\t\tString b;\r\n\t\t\tString[] baris;\r\n\r\n\t\t\tSystem.out.printf(\"Masukkan alamat file: \");\r\n\t\t\tString alamat = sc.next();\r\n\r\n\t\t\tFile file = new File(alamat);\r\n\r\n\t\t\ttry {\r\n\t\t\t\tScanner s = new Scanner(file);\r\n\r\n\t\t\t\twhile (s.hasNextLine()) {\r\n\t\t\t\t\tb = s.nextLine();\r\n\t\t\t\t\ti = i + 1;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\ts.close();\r\n\r\n\t\t\t\tbaris = new String[i];\r\n\t\t\t\ts = new Scanner(file);\r\n\t\t\t\tnbBrs = i;\r\n\t\t\t\ti = 0;\r\n\r\n\t\t\t\twhile (s.hasNextLine()) {\r\n\t\t\t\t\tbaris[i] = s.nextLine();\r\n\t\t\t\t\ti = i + 1;\r\n\t\t\t\t}\r\n\t\t\t\ts.close();\r\n\r\n\t\t\t\ts = new Scanner(baris[0]);\r\n\r\n\t\t\t\twhile (s.hasNextDouble()) {\r\n\t\t\t\t\ttempI = s.nextDouble();\r\n\t\t\t\t\tj = j + 1;\r\n\t\t\t\t}\r\n\t\t\t\ts.close();\r\n\t\t\t\tnbKol = j;\r\n\r\n\t\t\t\ttempM = new Matriks(nbBrs,nbKol);\r\n\r\n\t\t\t\tfor (i=0; i<nbBrs; i++) {\r\n\t\t\t\t\tsc = new Scanner(baris[i]);\r\n\r\n\t\t\t\t\tfor (j=0; j<nbKol; j++) {\r\n\t\t\t\t\t\ttempM.Elmt[i][j] = sc.nextDouble();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\tsc.close();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tthis.Elmt = tempM.Elmt;\r\n\t\t\t\tthis.BrsEff = tempM.BrsEff;\r\n\t\t\t\tthis.KolEff = tempM.KolEff;\r\n\t\t\t} catch(FileNotFoundException e) {\r\n\t\t\t\tSystem.out.println(\"An error occured.\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private static void displayHelp(){\n System.out.println(\"1. (R)eport\");\n System.out.println(\"2. (M)inimum Spanning Tree\");\n System.out.println(\"3. (S)hortest Path from i j\");\n System.out.println(\"4. (D)own i j\");\n System.out.println(\"5. (U)p i j\");\n System.out.println(\"6. (C)hange Weight i j x\");\n System.out.println(\"7. (E)ulerian\");\n System.out.println(\"8. (Q)uit\");\n }", "public static void main (String[] args){\n int y = 1;\n for (y = 1; y <= 4; y++){\n // He usat bucles per no duplicar codi i per optimització.\n int x =1;\n // Bucle\n for (x = 1; x <= 4; x++){\n String abc = \"AAAAABCÇDEEEEEFGHIIIIIJKLMNOOOOOPQRSTUUUUUVWXYZ\"; //47\n int lletra = (int) (abc.length() * Math.random());\n char a = abc.charAt(lletra);\n System.out.print(\"\\u001B[36m\"+a); \n } \n System.out.println(\"\");\n }\n }", "public void TulisIsi(){\r\n\t\tfor(int i=0;i<BrsEff;i++){\r\n\t\t\tfor(int j=0;j<KolEff;j++){\r\n\t\t\t\tSystem.out.printf(\"%.2f \", Elmt[i][j]);\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}", "@Override\n\tpublic void eat() {\n\t\tsuper.eat();\n\t\tSystem.out.println(\"喝奶.......\");\n\t}", "private static void printAnswer(boolean result)\n {\n //Check if all the hils could be connected by the tunnels\n if (result)\n {\n //Print the cost off connecting all the hills\n System.out.println(\"Campus #\" + c + \": \" + totalCost);\n }\n else\n {\n //Have a snarky remark for the ants, who can not connect all their hills\n System.out.println(\"Campus #\" + c + \": I'm a programmer, not a miracle worker!\");\n }\n }", "@Override\r\n\tpublic void 먹기() {\n\t\tSystem.out.println(\"다람쥐,도토리를 먹는다.\");\r\n\t}", "private void vuoronToinenHeitto() {\n while (heittojaJaljella == 2) {\n if (tulosLaitettu) {\n break;\n }\n try {\n Thread.sleep(100);\n } catch (InterruptedException ex) {\n System.out.println(\"Ei ole heitetty tai laitettu tulosta\");\n }\n }\n }", "public void display() {System.out.println(skaitlis);}", "@Override\r\n\tpublic void trunOn() {\n\t\tSystem.out.println(\"끄다\");\r\n\t}", "public static void hvitetest1w(){\r\n\t}", "private void fletcher(int[] msg){\r\n\t\t\r\n\t\theadline = lang.newText(new Coordinates(20,20), \"Fletcher's Checksum - Animation\", \"\", null, headline_props);\r\n\t\theadline.setFont(new Font(\"Monospaced\", Font.PLAIN, 20), null, null);\r\n\t\tRect head_rect = lang.newRect(new Offset(-2,-2,headline,AnimalScript.DIRECTION_NW),\r\n\t\t\t\tnew Coordinates(395, 37), \"\", null);\r\n\t\tlang.nextStep();\r\n\t\t\r\n\t\tdisplayExp(0);\r\n\t\tlang.nextStep(\"1.: Einfuehrung\");\r\n\t\t\r\n\t\texpl.hide();\r\n\t\tshowSourceCode(true);\r\n\t\top_counter = new MyIntVariable(new Offset(0, 20, sc, \"SW\"),0, \"Anzahl Operationen\");\r\n\t\tlang.nextStep();\r\n\t\t\r\n\t\tsc.highlight(0);\r\n\t\tlang.nextStep();\r\n\t\t\r\n\t\t// Array-Repraesentation\r\n\t\tarray1 = lang.newIntArray(new Coordinates(50,100), msg, \"msg\", null, array_props);\r\n\t\tlang.nextStep();\r\n\t\t\r\n\t\tsc.toggleHighlight(0,1);\r\n\t\tlang.nextStep();\r\n\t\t\r\n\t\t// Zeile #1\r\n\t\ti = lang.newArrayMarker(array1, 0, \"i\", null, ami);\r\n\t\tsum1 = new MyIntVariable(new Coordinates(50, 150), 0, \"sum1\");\r\n\t\tsum2 = new MyIntVariable(new Coordinates(50, 180), 0, \"sum2\");\r\n\t\tlang.nextStep();\r\n\t\t\r\n\t\t// Zeilen #2 - #5\r\n\t\tsc.toggleHighlight(1,2);\r\n\t\tfletcher_loop();\r\n\t\t\r\n\t\tsc.toggleHighlight(2,5);\r\n\t\top_counts[0] = op_counter.get();\r\n\t\tlang.nextStep(\"2. Vorbereiten der Nachricht\");\r\n\t\tdisplayExp(1);\r\n\t\t\r\n\t\tint check1_int = 255 - ((sum1.get() + sum2.get()) % 255);\r\n\t\tint check2_int = 255 - ((sum1.get() + check1_int) % 255);\r\n\t\t\r\n\t\texpl.hide();\r\n\t\t\r\n\t\tsc.toggleHighlight(5,6);\r\n\t\tshowCalc_2(sum1.get(), sum2.get());\r\n\t\t\r\n\t\tcheck1 = new MyIntVariable(new Coordinates(150, 150), check1_int, \"check1\");\r\n\t\tcheck1.switchHighlight();\r\n\t\tsc_calc.hide();\r\n\t\top_counter.add(3);\r\n\t\tlang.nextStep();\r\n\t\t\r\n\t\tsc.toggleHighlight(6,7);\r\n\t\tshowCalc_2(sum1.get(), check1_int);\r\n\t\t\r\n\t\tcheck2 = new MyIntVariable(new Coordinates(150, 180), check2_int, \"check2\");\r\n\t\tcheck1.switchHighlight(); check2.switchHighlight();\r\n\t\tsc_calc.hide();\r\n\t\top_counter.add(3);\r\n\t\tlang.nextStep();\r\n\t\t\r\n\t\tcheck2.switchHighlight();\r\n\t\top_counts[1] = op_counter.get(); op_counter.set(0);\r\n\t\tsc.unhighlight(7);\r\n\t\tdisplayExp(2);\r\n\t\t\r\n\t\texpl.hide();\r\n\t\tcheck1.switchHighlight();\r\n\t\tlang.nextStep();\r\n\t\t\r\n\t\t\r\n\t\ti.hide(); array1.hide(); \r\n\t\tarray1 = lang.newIntArray(new Coordinates(50, 100), appendToArray(msg, check1.get()), \"\", null, array_props);\r\n\t\ti = lang.newArrayMarker(array1, msg.length - 1, \"i\", null, ami);\r\n\t\ti.increment(null, duration);\r\n\t\tarray1.highlightCell(i.getPosition(), null, duration);\r\n\t\tsc.highlight(8);\r\n\t\tlang.nextStep();\r\n\t\t\r\n\t\tcheck1.hide();\r\n\t\tcheck2.switchHighlight();\r\n\t\tsc.unhighlight(8);\r\n\t\tlang.nextStep();\r\n\t\t\r\n\t\ti.hide(); array1.hide();\r\n\t\tarray1 = lang.newIntArray(new Coordinates(50, 100), appendToArray(toArray(array1), check2.get()), \"\", null, array_props);\r\n\t\ti = lang.newArrayMarker(array1, msg.length, \"i\", null, ami);\r\n\t\ti.increment(null, duration);\r\n\t\tarray1.highlightCell(i.getPosition(), null, duration);\r\n\t\tsc.highlight(9);\r\n\t\tlang.nextStep();\r\n\t\t\r\n\t\t\r\n\t\tcheck2.hide(); array1.unhighlightCell(i.getPosition(), null, duration);\r\n\t\ti.hide(); \r\n\t\tsc.toggleHighlight(9,10);\r\n\t\tlang.nextStep(\"3. Der erste Test\");\r\n\t\t\r\n\t\t\r\n\t\tdisplayExp(3);\r\n\t\t\r\n\t\tsc.hide();\r\n\t\tshowSourceCode(false);\r\n\t\tlang.nextStep();\r\n\t\t\r\n\t\tsc.highlight(1);\r\n\t\tlang.nextStep();\r\n\t\t\r\n\t\texpl.hide();\r\n\t\ti = lang.newArrayMarker(array1, 0, \"\", null, ami);\r\n\t\tsum1.set(0); sum2.set(0);\r\n\t\tlang.nextStep();\r\n\t\t\r\n\t\tsc.toggleHighlight(1, 2);\r\n\t\tfletcher_loop(); \r\n\t\t\r\n\t\tlang.nextStep();\r\n\t\top_counts[2] = op_counter.get(); op_counter.set(0);\r\n\t\tdisplayExp(4);\r\n\t\t\r\n\t\texpl.hide(); i.hide();\r\n\t\tsc.toggleHighlight(2,5);\r\n\t\tdisplayExp(5);\r\n\t\t\r\n\t\tlang.nextStep(\"4. Fehlererkennung\");\r\n\t\t\r\n\t\t//Fehler-Beispiel\r\n\t\t\r\n\t\tarray1.highlightCell(error_position, null, duration);\r\n\t\tlang.nextStep();\r\n\t\t\r\n\t\tif(array1.getData(error_position) + error_value < 255 && array1.getData(error_position) + error_value > 0){\r\n\t\t\tarray1.hide(); \r\n\t\t\tarray1.put(error_position, array1.getData(error_position) + error_value, null, duration);\r\n\t\t\tarray1 = lang.newIntArray(new Coordinates(50, 100), toArray(array1), \"\", null, array_props);\r\n\t\t\tarray1.highlightCell(error_position, null, duration);\r\n\t\t}else{\r\n\t\t\tif(array1.getData(error_position) == 255)\r\n\t\t\t\tno_detection = true;\r\n\t\t\t\r\n\t\t\tarray1.put(error_position, 0, null, duration);\r\n\t\t}\r\n\t\tlang.nextStep();\r\n\t\t\r\n\t\t\r\n\t\texpl.hide();\r\n\t\ti = lang.newArrayMarker(array1, 0, \"i\", null, ami);\r\n\t\tsum1.set(0); sum2.set(0);\r\n\t\tarray1.unhighlightCell(error_position, null, duration);\r\n\t\tsc.toggleHighlight(5,1);\r\n\t\tlang.nextStep();\r\n\t\t\r\n\t\tsc.toggleHighlight(1,2);\r\n\t\tfletcher_loop();\r\n\t\t\r\n\t\tsc.toggleHighlight(2,5);\r\n\t\top_counts[3] = op_counter.get(); op_counter.set(0);\r\n\t\t\r\n\t\tif(!no_detection){\r\n\t\tdisplayExp(7);\r\n\t\texpl.hide();\r\n\t\tdisplayExp(8);\r\n\t\t}else\r\n\t\t\tdisplayExp(10);\r\n\t\t\r\n\t\texpl.hide();\r\n\t\tlang.hideAllPrimitives();\r\n\t\theadline.show(); head_rect.show();\r\n\t\tdisplayExp(9);\r\n\t\tlang.nextStep(\"5. Abschluss\");\r\n\t}", "private static void ExplainRules() {\n System.out.printf(\"\\n %sWELCOME TO BOMB BLAST%s!!!!!!!!!!!!\\n\\n \", Styling.ANSI_BLUE, Styling.ANSI_RESET);\r\n System.out.printf(\"- Your object is to survive as long as possible, and accumlate the most points.\\n- You accumulate points by not triggering the bomb and therefore surviving the round.\\nWhere is the bomb? Within a random box\\n- All boxes are empty apart from ONE\\n- If you select the bomb ridden box you will receive NO POINTS!\\nAnd the survivors will receive points based on how long it took the group to find the bomb\\n- After a selected amount of rounds whoever has survived the most amount of attempts wins!!\\n\\n\");\r\n AnyKey.pressAnyKeyToContinue();\r\n }", "private static void ICCChamp2017() {\n\t\tSystem.out.println(\"Final Match In England\");\n\t\t\n\t}", "@Override\n\tpublic void attack() {\n\t\tSystem.out.println(\"땅밑에서 공격하다\");\n\t}", "public void tiepTucNhap() {\n\t\tlog.info(\"-----tiepTucNhap()-----\");\n\t\tlog.info(String.format(\"-----index: %s\", updateItem));\n\t\t\n\t\tlog.info(\"tonkhoMa:\"+tonkhoMa);\n\t\tlog.info(\"xuat:\"+xuat);\n\t\tlog.info(\"dmtMa:\"+dmtMa);\n\t\tlog.info(\"updateItem:\"+updateItem);\n\t\tlog.info(\"tonkho:\"+tonkho);\n\n\t\tif (xuat == null || xuat.equals(\"\") || tonkho == null || tonkho.equals(\"\")){\n\t\t\treturn;\n\t\t}\n\t\t \n\t\tif (\"\".equals(tonkhoMa) && tonkhoMa == null) {\n\t\t\tlog.info(\"-----tonkho ma is null.\");\n\t\t} else {\n\t\t\tlog.info(String.format(\"-----tonkho ma: %s\", tonkhoMa));\n\t\t\tTonKho tk = null;\n\t\t\t\n\t\t\tTonKhoDelegate tkDelegate;\n\t\t\ttry {\n\t\t\t\ttkDelegate = TonKhoDelegate.getInstance();\n\t\t\t\t\n\t\t\t\ttk = tkDelegate.find(Integer.valueOf(tonkhoMa));\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tCtTraKho ctx = new CtTraKho();\n\t\t\t\n\t\t\tDouble slXuat = new Double(\"0\");\n\t\t\tfor (int i = 0; i < listCtKhoLeTraEx.size(); i++) {\n\t\t\t\tCtTraKho ctxk = listCtKhoLeTraEx.get(i).getCtTraKho();\n\t\t\t\tif (malk.equals(ctxk.getCttrakhoMalk())) {\n\t\t\t\t\tlog.info(\"-----malk \" + malk);\n\t\t\t\t\tslXuat += ctxk.getCttrakhoSoluong();\n\t\t\t\t\tupdateItem = i;\n\t\t\t\t}\n\t\t\t}\n\t\t\tslXuat += Double.valueOf(xuat);\n\t\t\tctx.setCttrakhoSoluong(slXuat);\n\t\t\tCtTraKhoExt ctxEx = createCtXuatKho(ctx, tk);\n\t\t\tlog.info(\"-----xuat: \" + slXuat);\n\t\t\t\n\t\t\tif (updateItem.equals(-1)) {\n\t\t\t\tlog.info(\"-----them moi ct\");\n\t\t\t\tlistCtKhoLeTraEx.add(ctxEx);\n\t\t\t} else {\n\t\t\t\tlog.info(\"-----Cap nhat ct-----\");\n\t\t\t\tif (tk != null) {\n\t\t\t\t\tlistCtKhoLeTraEx.set(updateItem, ctxEx);\n\t\t\t\t} else {\n\t\t\t\t\tFacesMessages.instance().add(IConstantsRes.PHIEUXUATKHO_TK_NULL, dmtMa);\n\t\t\t\t}\n\n\t\t\t\tlog.info(String.format(\"-----update ct: %s\", ctx.getCttrakhoThutu()));\n\t\t\t}\n\n\t\t\tcount = listCtKhoLeTraEx.size();\n\t\t\tlog.info(String.format(\"-----listCtXuatKho: %s\", listCtKhoLeTraEx.size()));\n\t\t\ttonkhoMa = \"\";\n\t\t\tdmtMa = \"\";\n\t\t\ttonkho = new Double(0);\n\t\t\txuat = new Double(0);\n\t\t\tupdateItem = -1;\n\t\t}\n\t\ttinhTien();\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tScanner scan=new Scanner(System.in);\n\t\tSystem.out.println(\"lutfen hangi harfin anlamini istediginizi giriniz\");\n\t\tchar harf=scan.next().charAt(0);//girilen kelimenin ilk harfini alir sikayet etmez\n\t\t\n\t\tswitch (harf) {\n\t\tcase 'V':\n\t\tcase 'v':\n\t\t\tSystem.out.println(\"very\");\n\t\t\tbreak;\n\t\tcase 'I':\n\t\tcase 'i':\n\t\t\tSystem.out.println(\"important\");\n\t\t\tbreak;\n\t\tcase 'P':\n\t\tcase 'p':\n\t\t\tSystem.out.println(\"person\");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\t\tSystem.out.println(\"gecerli harf giriniz\");\n\t\t}\n\t\t\n\t\t//kullanicinin birden fazla harf girmesini sorun olarak kabul ediyorsaniz\n\t\t//ve bunu hata olarak kullaniciya geri bildirmek istiyorsaniz\n\t\t\n\t\t\n\t\tSystem.out.println(\"lutfen hangi harfin anlamini istediginizi giriniz\");\n\t\tString str=scan.next();\n\t\t\n\t\tswitch (str) {\n\t\tcase \"V\":\n\t\tcase \"v\":\n\t\t\tSystem.out.println(\"very\");\n\t\t\tbreak;\n\t\tcase \"I\":\n\t\tcase \"i\":\n\t\t\tSystem.out.println(\"important\");\n\t\t\tbreak;\n\t\tcase \"P\":\n\t\tcase \"p\":\n\t\t\tSystem.out.println(\"person\");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\t\tSystem.out.println(\"gecerli harf giriniz\");\n\t\t}\n\t\t\nscan.close();\n\t}", "public void testLang(){\n\t\tSystem.out.println(\"Player Num: \" + player.getNum());\n//\t\tSystem.out.println(\"Diplayed na^^\");\n\t}", "@Override\n\tpublic void xoaDonHang(String ma_kh) {\n\n\t}", "@Override\n\tpublic void cry() {\n\t\tSystem.out.println(\"黄种人-哭\");\n\t}", "public static void setupSouSuoBiaoDiGui(int status,int shenDu,int hang,Vector luJing)\n {\n \n \n \n for(int nextstatusXiaBiao=0;nextstatusXiaBiao<9;nextstatusXiaBiao++)\n {\n Vector[]newluJing=new Vector[9];\n newluJing[nextstatusXiaBiao]=(Vector)(luJing.clone());\n newluJing[nextstatusXiaBiao].add(String.valueOf(nextstatusXiaBiao));\n \n int[]nextStatusArray=(int[])(bianHuanTable.get(status));\n int nextstatus=nextStatusArray[nextstatusXiaBiao];\n //\n //===============================================\n \n if(souSuoBiao[hang][nextstatus].size()==0)\n {\n //souSuoBiao[hang][nextstatus].remove (0);\n souSuoBiao[hang][nextstatus].add(0,String.valueOf(shenDu));\n souSuoBiao[hang][nextstatus].add(1,newluJing[nextstatusXiaBiao]);\n \n \n souSuoBiaoFeiNullGeShu++;\n //MyPrintln.println(\"共计:\"+String.valueOf (souSuoBiaoFeiNullGeShu));\n \n }\n \n else \n {\n //按序放到正确位置\n \n //souSuoBiao[hang][nextstatus].add(String.valueOf(shenDu));\n //souSuoBiao[hang][nextstatus].add(newluJing[nextstatusXiaBiao]);\n ///=======\n int i1 ;\n for(i1=0;i1<souSuoBiao[hang][nextstatus].size();i1+=2)\n {\n String oldshenDu=(String)(souSuoBiao[hang][nextstatus].get(i1));\n if(shenDu<Integer.parseInt(oldshenDu))\n {\n break ;\n }\n }\n //--------\n souSuoBiao[hang][nextstatus].add(i1,String.valueOf(shenDu));\n souSuoBiao[hang][nextstatus].add(i1+1,newluJing[nextstatusXiaBiao]);\n \n //======\n \n \n //oldshenDu.\n }\n \n \n \n }\n //=======================================\n //将调用和条件改变位置到上面,则是深度优先\n //=====================================\n \n shenDu++;\n \n if((souSuoType.compareTo(\"shenDuControlGetAll\")==0&&shenDu<=shenDuControl)\n ||(souSuoType.compareTo(\"short\")==0&&souSuoBiaoHangFull(hang)!=1)\n )\n //if(souSuoBiaoHangFull(hang)!=1)//行满则返回\n //该条件是得到最短路径的方法。只得到一个。如果采用广度优先搜索,那么第一个结果就是需要的结果\n /// if(shenDu<=2)//该条件是得到所有3步内的方法,最短的自动放到最前面\n {\n //int[]nextStatusArray=bianHuanTable.get(status);\n for(int nextstatusXiaBiao=0;nextstatusXiaBiao<9;nextstatusXiaBiao++)\n {\n Vector[]newluJing=new Vector[9];\n newluJing[nextstatusXiaBiao]=(Vector)(luJing.clone());\n newluJing[nextstatusXiaBiao].add(String.valueOf(nextstatusXiaBiao));\n \n int[]nextStatusArray=(int[])(bianHuanTable.get(status));\n int nextstatus=nextStatusArray[nextstatusXiaBiao];\n //===============\n // souSuoBiao[status][nextstatus].add(String.valueOf(nextstatusXiaBiao));\n // souSuoBiao[status][nextstatus].add(String.valueOf(1));\n //---------------------\n // int[]lastStatusArray=bianHuanTable.get(nextstatus);\n // for(int laststatusXiaBiao=0;laststatusXiaBiao<9;laststatusXiaBiao++)\n // {\n // int laststatus=lastStatusArray[lastXiaBiao];\n //----------\n \n // souSuoBiao[status][laststatus].add(String.valueOf(nextstatusXiaBiao));\n // souSuoBiao[status][laststatus].add(String.valueOf(laststatusXiaBiao));\n // souSuoBiao[status][laststatus].add((2));\n \n //----------\n //}\n //\n // if(souSuoBiao[hang][nextstatus].size()==0)\n // {\n // souSuoBiao[hang][nextstatus].add(String.valueOf(nextstatusXiaBiao));\n // souSuoBiao[hang][nextstatus].add(String.valueOf(++shenDu));\n // souSuoBiaoFeiNullGeShu++;\n // MyPrintln.println(\"共计:\"+String.valueOf (souSuoBiaoFeiNullGeShu));\n // }\n //\n \n \n setupSouSuoBiaoDiGui(nextstatus,shenDu,hang,newluJing[nextstatusXiaBiao]);\n \n //=====================\n \n }\n }\n }", "private void showFacts() {\n\t\tSystem.out.println(\"=============================\");\n\t\tSystem.out.println(\"Your lose! Try harder and better luck next time.\");\n\t}", "public void mo21863h() {\n this.f24530b.mo22070k();\n mo21790O();\n if (this.f24532d != null) {\n this.f24532d.mo21750s();\n }\n mo21833b(\"pause\");\n mo21879u();\n }", "@Override\n\tpublic void HowtoEat() {\n\t\tSystem.out.println(\"Fırında Ye!!\");\n\t}" ]
[ "0.6399337", "0.61730576", "0.60757333", "0.60383457", "0.60031134", "0.59533805", "0.59366256", "0.59234583", "0.5870224", "0.58358246", "0.58218783", "0.58122087", "0.5803937", "0.5803414", "0.57830215", "0.5777595", "0.57161427", "0.5713316", "0.57006335", "0.5696693", "0.5692263", "0.5691711", "0.56753457", "0.5674475", "0.5665099", "0.5656453", "0.56487405", "0.5643078", "0.5635963", "0.5628577", "0.56266725", "0.56170785", "0.5608852", "0.5596855", "0.55884856", "0.5587294", "0.5585868", "0.5582494", "0.5572926", "0.55695873", "0.55681974", "0.55521166", "0.5547861", "0.5547148", "0.5544057", "0.55355304", "0.55149204", "0.55080146", "0.549072", "0.54899913", "0.5486672", "0.5483052", "0.5477329", "0.54766583", "0.5467265", "0.546585", "0.5465288", "0.5456376", "0.5447645", "0.54476094", "0.5446744", "0.54448926", "0.5439412", "0.54257506", "0.54167265", "0.541539", "0.54101074", "0.5401109", "0.539883", "0.5392921", "0.5387885", "0.5381953", "0.53804606", "0.5376579", "0.537149", "0.5371451", "0.5368928", "0.5362521", "0.53611237", "0.5361082", "0.5359695", "0.53593826", "0.53590184", "0.5358617", "0.53523785", "0.5346402", "0.53452045", "0.5343301", "0.5338027", "0.5330496", "0.5327909", "0.5324775", "0.5324644", "0.53244334", "0.53243715", "0.5321274", "0.53212434", "0.5321019", "0.5319302", "0.53184414", "0.5315785" ]
0.0
-1
Instantiates a new about activity.
public AboutActivity() { super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void openAbout() {\r\n \tIntent intent = new Intent(this, AboutActivity.class);\r\n \tstartActivity(intent);\r\n }", "public AboutAction() {\r\n _dialog = new AboutDialog(this);\r\n }", "public void showAbout() {\n\t\t/* track \"About\" */\n\t\ttracker.trackEvent(\"Listings\", \"Click\", \"About\", 0);\n\n\t\tUri uri = Uri.parse(\"http://static.flipzu.com/about-android.html\");\n\t\tIntent intent = new Intent(Intent.ACTION_VIEW, uri);\n\t\tstartActivity(intent);\n\t}", "public void aboutInit(MenuItem menuItem){\n Intent aboutUsIntent = new Intent(MainActivity.this, about.class);\n startActivity(aboutUsIntent);\n }", "public void showAbout(View view){\n startActivity(intent);\n }", "public void helpAboutAction() {\n new HelpAbout(this.parentFrame);\n }", "public void onClickAbout(View view) {\n Intent intent = new Intent(this, AboutActivity.class);\n startActivity(intent);\n }", "protected ActionListener createAboutActionListener() {\r\n return new AboutActionListener();\r\n }", "public void onClickAbout (View v)\n\t{\n\t\tstartActivity (new Intent(getApplicationContext(), AboutViewController.class));\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent =new Intent();\n\t\t\t\tintent.setClass(mContext, AboutActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "private void initAboutEntries() {\n About liamGooglePlus = new About.Builder()\n .setTitle(App.CONTEXT.getString(R.string.google_plus))\n .setUrl(App.CONTEXT.getString(R.string.url_liam_google_plus))\n .build();\n\n About liamTwitter = new About.Builder()\n .setTitle(App.CONTEXT.getString(R.string.twitter))\n .setUrl(App.CONTEXT.getString(R.string.url_liam_twitter))\n .build();\n\n liamAdapter.add(new AboutItem(liamGooglePlus));\n liamAdapter.add(new AboutItem(liamTwitter));\n\n About franciscoGooglePlus = new About.Builder()\n .setTitle(App.CONTEXT.getString(R.string.google_plus))\n .setUrl(App.CONTEXT.getString(R.string.url_francisco_google_plus))\n .build();\n\n About franciscoTwitter = new About.Builder()\n .setTitle(App.CONTEXT.getString(R.string.twitter))\n .setUrl(App.CONTEXT.getString(R.string.url_francisco_twitter))\n .build();\n\n About franciscoPlayStore = new About.Builder()\n .setTitle(App.CONTEXT.getString(R.string.play_store_apps))\n .setUrl(App.CONTEXT.getString(R.string.url_francisco_play_store))\n .build();\n\n franciscoAdapter.add(new AboutItem(franciscoGooglePlus));\n franciscoAdapter.add(new AboutItem(franciscoTwitter));\n franciscoAdapter.add(new AboutItem(franciscoPlayStore));\n\n About appCompat = new About.Builder()\n .setTitle(App.CONTEXT.getString(R.string.appcompat))\n .setUrl(App.CONTEXT.getString(R.string.url_appcompat))\n .build();\n\n About cardView = new About.Builder()\n .setTitle(App.CONTEXT.getString(R.string.cardview))\n .setUrl(App.CONTEXT.getString(R.string.url_cardview))\n .build();\n\n About design = new About.Builder()\n .setTitle(App.CONTEXT.getString(R.string.design))\n .setUrl(App.CONTEXT.getString(R.string.url_design))\n .build();\n\n About customTabs = new About.Builder()\n .setTitle(App.CONTEXT.getString(R.string.customtabs))\n .setUrl(App.CONTEXT.getString(R.string.url_customtabs))\n .build();\n\n About butterknife = new About.Builder()\n .setTitle(App.CONTEXT.getString(R.string.butterknife))\n .setUrl(App.CONTEXT.getString(R.string.url_butterknife))\n .build();\n\n About realm = new About.Builder()\n .setTitle(App.CONTEXT.getString(R.string.realm))\n .setUrl(App.CONTEXT.getString(R.string.url_realm))\n .build();\n\n About tinyBus = new About.Builder()\n .setTitle(App.CONTEXT.getString(R.string.tinybus))\n .setUrl(App.CONTEXT.getString(R.string.url_tinybus))\n .build();\n\n About icepick = new About.Builder()\n .setTitle(App.CONTEXT.getString(R.string.icepick))\n .setUrl(App.CONTEXT.getString(R.string.url_icepick))\n .build();\n\n About materialize = new About.Builder()\n .setTitle(App.CONTEXT.getString(R.string.materialize))\n .setUrl(App.CONTEXT.getString(R.string.url_materialize))\n .build();\n\n About fastAdapter = new About.Builder()\n .setTitle(App.CONTEXT.getString(R.string.fastadapter))\n .setUrl(App.CONTEXT.getString(R.string.url_fastadapter))\n .build();\n\n About plaid = new About.Builder()\n .setTitle(App.CONTEXT.getString(R.string.plaid))\n .setUrl(App.CONTEXT.getString(R.string.url_plaid))\n .build();\n\n libsAdapter.add(new AboutItem(appCompat));\n libsAdapter.add(new AboutItem(cardView));\n libsAdapter.add(new AboutItem(design));\n libsAdapter.add(new AboutItem(customTabs));\n libsAdapter.add(new AboutItem(butterknife));\n libsAdapter.add(new AboutItem(realm));\n libsAdapter.add(new AboutItem(tinyBus));\n libsAdapter.add(new AboutItem(icepick));\n libsAdapter.add(new AboutItem(materialize));\n libsAdapter.add(new AboutItem(fastAdapter));\n libsAdapter.add(new AboutItem(plaid));\n\n About sourceCode = new About.Builder()\n .setTitle(App.CONTEXT.getString(R.string.selene_source_code))\n .setUrl(App.CONTEXT.getString(R.string.url_selene_source_code))\n .build();\n\n About projectPhoebe = new About.Builder()\n .setTitle(App.CONTEXT.getString(R.string.project_phoebe))\n .setUrl(App.CONTEXT.getString(R.string.url_project_phoebe))\n .build();\n\n mutateMoreAdapter.add(new AboutItem(sourceCode));\n mutateMoreAdapter.add(new AboutItem(projectPhoebe));\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.action_about:\n \t \t//Toast.makeText(getApplicationContext(),\"Show About\", Toast.LENGTH_LONG).show();\n \t \tAboutDialog about = new AboutDialog(this);\n \t \tabout.setTitle(\"About Streetview\");\n \t\t\t\tabout.show();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "public static void goToAboutWindow()\n {\n AboutWindow aboutWindow = new AboutWindow();\n aboutWindow.setVisible(true);\n aboutWindow.setFatherWindow(actualWindow, false);\n }", "public void onAboutItemClick(MenuItem item) {\n AboutActivity fragment = new AboutActivity();\n presentFragment(fragment,\"about\",false);\n }", "public void GoToAbout(View view) {\n Intent intent = new Intent(this, About.class);\n startActivity(intent);\n }", "private void showAbout() {\n toolbar.setTitle(R.string.about);\n AboutFragment aboutFragment = new AboutFragment();\n displaySelectedFragment(aboutFragment);\n }", "public void onClick(View v) {\n\t\t\t\tIntent intent=new Intent(MainActivity.this,about.class);\n\t\t intent.setAction(\"about\");\n\t\t showactivity(intent);\n\t\t\t}", "public static AboutFragment newInstance() {\n\t\tAboutFragment aboutFragment = new AboutFragment();\n\t\treturn aboutFragment;\n\t}", "public void onClickAbout (View v)\n{\n startActivity (new Intent(getApplicationContext(), AboutActivity.class));\n}", "public AboutDialog( SanBootView view,String name,Icon icon) {\r\n this(view,\"\",true,name,icon);\r\n }", "private void showAbout() {\r\n\t\tshowMessage(\"About\", \" Curtis Baldwin's Intelligent Building\"); // About message created when about button\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// pressed\r\n\t}", "public void aboutApp() {\n\n\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"/view/AboutApp.fxml\"), I18n.getResourceBundle());\n\n\t\tUtilMethods.createDialog(loader, controller.getStage());\n\n\t}", "private void about() {\n System.out.println(Strings.MAIN_ABOUT_MESSAGE);\n System.out.println();\n }", "public static About createEntity(EntityManager em) {\n About about = new About();\n return about;\n }", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.about);\r\n\t}", "public void setAbout(String aboutMessage) {\n this.about = aboutMessage;\n }", "private void openAbout() {\r\n\t\tJDialogAbout jDialogAbout = new JDialogAbout();\r\n\t\tjDialogAbout.setVisible(true);\r\n\t}", "public static void showAboutWindow()\n {\n if (aboutWindow == null)\n {\n aboutWindow = new AboutWindow(null);\n\n /*\n * When the global/shared AboutWindow closes, don't keep a reference\n * to it and let it be garbage-collected.\n */\n aboutWindow.addWindowListener(new WindowAdapter()\n {\n @Override\n public void windowClosed(WindowEvent e)\n {\n if (aboutWindow == e.getWindow())\n aboutWindow = null;\n }\n });\n }\n aboutWindow.setVisible(true);\n }", "public abstract String about();", "private void gotoInfo() {\n Intent launchInfo = new Intent(this, Info.class);\n startActivity(launchInfo);\n }", "public AboutPanel() {\n super();\n initialize();\n }", "@Override\n protected void onCreate(Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n\n // Set the content view, defining the UI.\n setContentView(R.layout.activity_about);\n\n // Get the app toolbar by id.\n Toolbar toolbar = findViewById(R.id.toolbar);\n // Set the title of the toolbar.\n toolbar.setTitle(\"About\");\n // Set the text style of the toolbar, which currently only\n // sets the title's text size.\n toolbar.setTitleTextAppearance(this, R.style.ToolbarTitleTheme);\n // Set the text color of the title in the toolbar.\n toolbar.setTitleTextColor(getResources().getColor(R.color.black1));\n // Set this toolbar as the ActionBar.\n setSupportActionBar(toolbar);\n\n // Get the ActionBar.\n ActionBar actionBar = getSupportActionBar();\n\n // If the ActionBar exists, enable the home button,\n // which upon click opens the MainActivity.\n if (actionBar != null)\n {\n actionBar.setDisplayHomeAsUpEnabled(true);\n }\n\n // Getting the about navigation bar by id.\n aboutNavBar = findViewById(R.id.aboutNavBar);\n\n // Getting by id the TextView to display the Terms of Use intro in bold.\n TextView termsIntroBold = findViewById(R.id.termsIntroBold);\n // Get the String containing links.\n String termsLinkText = getResources().getString(R.string.terms_intro_bold);\n // Set its HTML as text.\n termsIntroBold.setText(Html.fromHtml(termsLinkText));\n // Activate its links.\n termsIntroBold.setMovementMethod(LinkMovementMethod.getInstance());\n\n // Getting by id the TextView to display the Terms of Use contact info.\n TextView termsContact = findViewById(R.id.termsContact);\n // Get the String containing email links.\n String termsEmailText = getResources().getString(R.string.terms_contact);\n // Set its HTML as text.\n termsContact.setText(Html.fromHtml(termsEmailText));\n // Activate its links.\n termsContact.setMovementMethod(LinkMovementMethod.getInstance());\n\n // Getting by id the TextView to display the Privacy Policy intro in bold.\n TextView privacyIntroBold = findViewById(R.id.privacyIntroBold);\n // Get the String containing links.\n String privacyLinkText = getResources().getString(R.string.privacy_intro_bold);\n // Set its HTML as text.\n privacyIntroBold.setText(Html.fromHtml(privacyLinkText));\n // Activate its links.\n privacyIntroBold.setMovementMethod(LinkMovementMethod.getInstance());\n\n // Getting by id the TextView to display the Privacy Policy contact info.\n TextView privacyContact = findViewById(R.id.privacyContact);\n // Get the String containing email links.\n String privacyEmailText = getResources().getString(R.string.privacy_contact);\n // Set its HTML as text.\n privacyContact.setText(Html.fromHtml(privacyEmailText));\n // Activate its links.\n privacyContact.setMovementMethod(LinkMovementMethod.getInstance());\n\n // Getting by id the TextView to display source code info.\n TextView sourceCode = findViewById(R.id.sourceCode);\n // Get the String containing links.\n String sourceCodeLinkText = getResources().getString(R.string.source_code);\n // Set its HTML as text.\n sourceCode.setText(Html.fromHtml(sourceCodeLinkText));\n // Activate its links.\n sourceCode.setMovementMethod(LinkMovementMethod.getInstance());\n\n // Getting the scroll view of this Activity by id.\n final ScrollView aboutScrollView = findViewById(R.id.aboutScrollView);\n // Getting the How It Works CardView by id.\n final CardView howItWorksCard = findViewById(R.id.howItWorksCard);\n // Getting the Terms of Use CardView by id.\n final CardView termsCard = findViewById(R.id.termsCard);\n // Getting the Privacy Policy CardView by id.\n final CardView privacyCard = findViewById(R.id.privacyCard);\n // Getting the Source Code CardView by id.\n final CardView sourceCodeCard = findViewById(R.id.sourceCodeCard);\n\n // Getting the How It Works navigation Button by id.\n Button howItWorksBtn = findViewById(R.id.howItWorksBtn);\n // Set an onClickListener to the How It Works Button which upon click\n // scrolls to its corresponding CardView.\n howItWorksBtn.setOnClickListener(new View.OnClickListener()\n {\n @Override\n public void onClick(View view)\n {\n aboutScrollView.smoothScrollTo(0, howItWorksCard.getTop() - toPixels(10));\n }\n });\n\n // Getting the Terms of Use navigation Button by id.\n Button termsBtn = findViewById(R.id.termsBtn);\n // Set an onClickListener to the Terms of Use Button which upon click\n // scrolls to its corresponding CardView.\n termsBtn.setOnClickListener(new View.OnClickListener()\n {\n @Override\n public void onClick(View view)\n {\n aboutScrollView.smoothScrollTo(0, termsCard.getTop() - toPixels(9));\n }\n });\n\n // Getting the Privacy Policy navigation Button by id.\n Button privacyBtn = findViewById(R.id.privacyBtn);\n // Set an onClickListener to the Privacy Policy Button which upon click\n // scrolls to its corresponding CardView.\n privacyBtn.setOnClickListener(new View.OnClickListener()\n {\n @Override\n public void onClick(View view)\n {\n aboutScrollView.smoothScrollTo(0, privacyCard.getTop() - toPixels(9));\n }\n });\n\n // Getting the Source Code navigation Button by id.\n Button sourceCodeBtn = findViewById(R.id.sourceCodeBtn);\n // Set an onClickListener to the Source Code Button which upon click\n // scrolls to its corresponding CardView.\n sourceCodeBtn.setOnClickListener(new View.OnClickListener()\n {\n @Override\n public void onClick(View view)\n {\n aboutScrollView.smoothScrollTo(0, sourceCodeCard.getTop() - toPixels(9));\n }\n });\n\n // If the user's android version is at least Marshmallow,\n // set the How It Works content to avoid word breaks.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M)\n {\n TextView howItWorksContent = findViewById(R.id.howItWorks);\n howItWorksContent.setBreakStrategy(Layout.BREAK_STRATEGY_SIMPLE);\n }\n }", "@FXML public void showAbout() {\n\t\tPopupMessage.getInstance().showAlert(AlertType.INFORMATION, \n\t\t\t\t\t\t\t\t\t\t\taboutTitle,\n\t\t\t\t\t\t\t\t\t\t\taboutHeader, \n\t\t\t\t\t\t\t\t\t\t\taboutDetails);\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent=new Intent();\n\t\t\t\tintent.putExtra(\"isFirstInfo\", 1);\n\t\t\t\tintent.setClass(mContext, HelpActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "public aboutIF() {\n initComponents();\n \n }", "private void showAboutActivity(String name){\n Intent i = new Intent(this, WelcomeActivity.class);\n i.putExtra(\"userName\",name);\n //se muestra la segunda actividad\n startActivity(i);\n\n\n }", "public About() {\n initComponents();\n }", "public void setAbout(String about) {\n this.about = about;\n }", "void aboutMenuItem_actionPerformed(ActionEvent e) {\n AboutDialog dlg = new AboutDialog(this, \"About InfoFilter Application\", true);\n Point loc = this.getLocation();\n\n dlg.setLocation(loc.x + 50, loc.y + 50);\n dlg.show();\n }", "public void helpAbout_actionPerformed(ActionEvent e) {\n AboutDialog dlg = new AboutDialog(this, \"About InfoFilter Application\", true);\n Point loc = this.getLocation();\n\n dlg.setLocation(loc.x + 50, loc.y + 50);\n dlg.show();\n }", "private void popupMenuAbout() {\n\t\t//\n\t\t// Display the dialog\n\t\t//\n\t\tAboutDialog aboutDialog = new AboutDialog(parent.getShell(), SWT.APPLICATION_MODAL | SWT.DIALOG_TRIM);\n\t\taboutDialog.open();\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_about_one);\n\t}", "public void processAbout() {\n AppMessageDialogSingleton dialog = AppMessageDialogSingleton.getSingleton();\n \n // POP UP THE DIALOG\n dialog.show(\"About This Application\", \"Application Name: Metro Map Maker\\n\"\n + \"Written By: Myungsuk Moon and Richard McKenna\\n\"\n + \"Framework Used: DesktopJavaFramework (by Richard McKenna)\\n\"\n + \"Year of Work: 2017\");\n }", "private OnClickListener aboutApplication() {\n\t\tOnClickListener listener = new OnClickListener() {\n\t\t\t final DialogInterface.OnClickListener dialogClickListener = new DialogInterface.OnClickListener() {\n\t\t @Override\n\t\t public void onClick(DialogInterface dialog, int which) {\n\t\t switch (which){\n\t\t //Cancel the current popup dialog\n\t\t\t case DialogInterface.BUTTON_NEUTRAL:\n\t\t\t dialog.cancel();\n\t\t\t break;\n\t\t\t }\n\t\t }\n\t\t };\n\t\t\t@SuppressWarnings(\"deprecation\")\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t//Show details on a popup window\n\t\t\t\tAlertDialog alertDialog = new AlertDialog.Builder(GameInitializerActivity.this).create();\n\t\t\t\tLayoutInflater factory = LayoutInflater.from(GameInitializerActivity.this);\n\t\t\t\tfinal View view = factory.inflate(R.layout.activity_about_popupwindow, null);\n\t\t\t\talertDialog.setView(view);\n\t\t\t\talertDialog.setButton3(\"OK. I Got this !!\", dialogClickListener);\n\t\t\t\talertDialog.show();\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t};\n\t\treturn listener;\n\t}", "public AboutAction(CyApplicationManager appMgr,CySwingApplication swingApp) {\n\t\tsuper(Messages.AC_ABOUT,appMgr,swingApp);\n\t\tsetPreferredMenu(\"Plugins.\" + Messages.AC_MENU_ANALYSIS);\n\t}", "public AboutViewController() {\n }", "private void showAboutDialog() {\n\n view.aboutDialog();\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == R.id.action_about) {\n\t\t\taboutDialog.show();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "void showAbout() {\n\t\tif (aboutScreen == null) {\n\t\t aboutScreen = new Form(\"About AMMS Mansion demo\");\n\t\t aboutScreen.append(\"This MIDlet demonstrates the 3D audio capabilities of AMMS API.\\n\");\n\t\t aboutScreen.append(\"\\n\");\n\t\t aboutScreen.append(\"Copyright (c) 2006 Nokia. All rights reserved.\\n\");\n\t\t aboutScreen.append(\"\\n\");\n\t\t aboutScreen.append(\"\\n\");\n\t\t}\n\t\taboutScreen.addCommand(toggleCommand);\n\t\taboutScreen.setCommandListener(this);\n\t\tdisplay.setCurrent(aboutScreen);\n }", "public void GoInfo(View view) {\n Intent a = new Intent(MainActivity.this, Info.class);\n startActivity(a);\n }", "private JMenuItem getAboutMenuItem() {\n\t\tif (aboutMenuItem == null) {\n\t\t\taboutMenuItem = new JMenuItem();\n\t\t\taboutMenuItem.setText(\"About\");\n\t\t\taboutMenuItem.addActionListener(new ActionListener() {\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tJDialog aboutDialog = getAboutDialog();\n\t\t\t\t\taboutDialog.pack();\n\t\t\t\t\tPoint loc = getJFrame().getLocation();\n\t\t\t\t\tloc.translate(20, 20);\n\t\t\t\t\taboutDialog.setLocation(loc);\n\t\t\t\t\taboutDialog.setVisible(true);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn aboutMenuItem;\n\t}", "private void actionOnClicAbout() {\r\n\t\tAboutCalSevWindow aboutWin = new AboutCalSevWindow();\r\n\t\taboutWin.setVisible(true);\r\n\t}", "public static void actionPerformed()\r\n {\r\n AboutWindow.showAboutWindow();\r\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tthis.requestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\t\n\t\t// use about_dialog layout for content\n\t\tthis.setContentView(R.layout.find_app);\n\t \t\n\t\tTextView about_text = (TextView) this.findViewById(R.id.About_Dialog_Text);\n\t\t\n\t\t// show about message\n \tString html_about = \"\";\n \tfor(int i=0; i<str_about.length; i++) {\n \t\thtml_about = html_about + str_about[i] + \"<br />\";\n \t}\n \t\n \tabout_text.setText(android.text.Html.fromHtml(html_about));\n \t\n \tButton about_close_btn = (Button) this.findViewById(R.id.About_Dialog_CloseButton);\n \t\n \t// create OK button\n \tabout_close_btn.setOnClickListener(this);\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tnew AlertDialog.Builder(Portal.this)\n\t\t\t\t.setTitle(R.string.about_me)\n\t\t\t\t.setMessage(R.string.about_me_message)\n\t\t\t\t.setNeutralButton(R.string.close, new DialogInterface.OnClickListener() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.show();\n\t\t\t}", "public InterfaceAbout() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}", "private JMenuItem getAboutMenuItem() {\n if (aboutMenuItem == null) {\n aboutMenuItem = new JMenuItem();\n aboutMenuItem.setText(\"About\");\n aboutMenuItem.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n JDialog aboutDialog = getAboutDialog();\n aboutDialog.pack();\n Point loc = getJFrame().getLocation();\n loc.translate(20, 20);\n aboutDialog.setLocation(loc);\n aboutDialog.setVisible(true);\n }\n });\n }\n return aboutMenuItem;\n }", "private void dialogAbout() {\n\t\tGraphicalUserInterfaceAbout.start();\r\n\t}", "public void aboutOnClick(View view) {\n // Configure \"About\" dialog\n AlertDialog.Builder dialog = new AlertDialog.Builder(this);\n dialog.setTitle(getResources().getString(R.string.about_title));\n dialog.setCancelable(false);\n dialog.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // Do nothing, just dismiss the dialog\n }\n });\n\n dialog.setMessage(getDeviceReport());\n\n dialog.show();\n }", "public void onClick(View v) {\n\t\tIntent in1=new Intent(getApplicationContext(),About.class);\n\t\tstartActivity(in1);\n\t\t}", "public void AboutDialog() {\r\n final Dialog dialog = new Dialog(this); // Context, this, etc.\r\n dialog.setContentView(R.layout.about_dialog);\r\n dialog.setTitle(R.string.dialog_title);\r\n\r\n Button dialogButton = (Button) dialog.findViewById(R.id.dialog_cancel);\r\n // if button is clicked, close the custom dialog\r\n dialogButton.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n dialog.dismiss();\r\n }\r\n });\r\n\r\n\r\n dialog.show();\r\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.about);\n\t\tgetActionBar().setTitle(\"关于AmoMcu\");\n\n\t\tIntent intent = getIntent();\n\t\tString value = intent.getStringExtra(\"testIntent\");\n\n\t\tString help = \"新产品预告:RGB灯泡即将推出,配套Android Apk与源码\"\n\t\t\t\t+ \"字符串显示与hex显示切换,时间可开关,表示收到数据的时间,点击“清除数据”把当前的数据清除掉,\"\n\t\t\t\t+ \"“详情”可显示单独某一项数据,比如ds18b20的温度计.\\r\\n\"\n\t\t\t\t+ \"\tAmoMcu 现专注蓝牙4.0低功耗开发板,\" + \"由三人团队组成,均拥有八至十年的工作经验,\"\n\t\t\t\t+ \"擅长CC2540等单片机的硬、软件开发,\" + \"十年间负责过的产品主要有:基于S3C44B0的电能质量分析仪、\"\n\t\t\t\t+ \"发动机点火分析仪、汽车故障检测仪,NRF9E5无线电池数据采集系统,\"\n\t\t\t\t+ \"2009年开始介入基于S3C6410的产品开发,对wince系统较为熟悉,\"\n\t\t\t\t+ \"2012年开始深入基于Exynos4412的设备开发,\"\n\t\t\t\t+ \"以及基于联发科MTK6575等Android手机终端以及平板开发;\"\n\t\t\t\t+ \"软件上,多年从事Android底层Linux驱动和HAL等驱动开发以及APK开发......\";\n\n\t\tTextView tv = (TextView) findViewById(R.id.about_text_help);\n\t\ttv.setText(help);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_new) {\n newArt();\n }\n if (id == R.id.action_moreinfo) {\n new AlertDialog.Builder(this)\n .setMessage(\"Do you want to get the information from the MoMa\")\n .setCancelable(false)\n .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n }\n })\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Uri webpage = Uri.parse(\"http://www.moma.org/collection/artists/4057\");\n Intent intent = new Intent(Intent.ACTION_VIEW, webpage);\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }\n })\n .create()\n .show();\n }\n\n return super.onOptionsItemSelected(item);\n }", "public String getAbout() {\n return about;\n }", "public AboutPanel_V2() {\n init();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n mContext = container.getContext();\n if (mContext instanceof OnFragmentInteractionListener) {\n mListener = (OnFragmentInteractionListener) mContext;\n } else {\n throw new RuntimeException(mContext.toString()\n + \" must implement OnFragmentInteractionListener\");\n }\n\n return new AboutPage(mContext)\n .isRTL(false) // right to left\n .setDescription(getString(R.string.fragment_about_description, getString(R.string.app_name)))\n .setImage(R.mipmap.ic_launcher_round)\n .addItem(new Element().setTitle(getString(R.string.fragment_about_version, getString(R.string.version_number))))\n .addGroup(getString(R.string.fragment_about_connect_with_us_section))\n .addEmail(getString(R.string.email_feedback))\n .addPlayStore(getString(R.string.play_store_id))\n .addGroup(getString(R.string.fragment_about_copyright_section))\n .addItem(getCopyRightsElement())\n .addItem(getLicenseElement())\n .create();\n }", "public String getAbout() {\n return about;\n }", "private JMenuItem getAboutMenuItem() {\n\t\tif (aboutMenuItem == null) {\n\t\t\taboutMenuItem = new JMenuItem();\n\t\t\taboutMenuItem.setText(\"O aplikácii SluchAnal\");\n\t\t\taboutMenuItem.addActionListener(new ActionListener() {\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tJDialog aboutDialog = getAboutDialog();\n\t\t\t\t\taboutDialog.pack();\n\t\t\t\t\tPoint loc = getHlavneOkno().getLocation();\n\t\t\t\t\tloc.translate(20, 20);\n\t\t\t\t\taboutDialog.setLocation(loc);\n\t\t\t\t\taboutDialog.setVisible(true);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn aboutMenuItem;\n\t}", "public void openHelp(){\n\n Intent helpIntent = new Intent(this, Help.class);\n startActivity(helpIntent);\n\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == R.id.about) {\n\t\t\tAboutDialogFragment aboutDialogFragment=new AboutDialogFragment();\n\t\t\taboutDialogFragment.show(getSupportFragmentManager(), ABOUT_DIALOG_TAG);\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public void performAction(View view) {\n startActivity(new Intent(MainActivity.this, MyInfoActivity.class));\n }", "public void handleAbout() {\n displayAuxiliaryWindow(aboutWindow);\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_about);\n setSupportActionBar(findViewById(R.id.toolbar));\n if (getSupportActionBar() != null) {\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n }\n setTitle(getString(R.string.activity_main_title));\n }", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n setContentView(R.layout.about);\r\n// TextView aboutUs;\r\n// aboutUs = (TextView)findViewById(R.id.aboutUs);\r\n// aboutUs.setText(\"This application is created by \" +\r\n// \t\t\"Eugene, Felicia and Tran from Republic Polytechnic. \" +\r\n// \t\t\"\\n\\nMuseum Partner is used as a guide, helping \" +\r\n// \t\t\"to enhance the user experience during your museum visits.\"\r\n// );\r\n// \r\n// aboutUs.setTextSize(18);\r\n\t}", "public AboutDialog( Frame frmParent_, Init pInit_ ) \n {\n this( frmParent_,\n pInit_.getAuthor(),\n pInit_.getInfoHeader() );\n }", "public AboutProjectDialog(MainFrame mf) {\n super(mf, \"About\");\n }", "public void aboutMenu(ActionEvent actionEvent) {\n anchorHelp.setVisible(true);\n paneNotation.setVisible(false);\n paneAbout.setVisible(true);\n }", "private void goSomewhere() {\n\n Intent intent = new Intent();\n intent.setClassName(Home.this,this.tip.getTipIntent());\n startActivity(intent);\n }", "public void execute(){\r\n\t\tapplicationController.about();\r\n\t}", "public JMenuItem getAboutMenuItem() {\n return aboutMenuItem;\n }", "private void jMenu_AboutMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenu_AboutMouseClicked\n new About().setVisible(true);\n }", "public AboutController(){\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch (id){\n case R.id.action_about:\n Intent intent = new Intent(MainActivity.this,About.class);\n startActivity(intent);\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == R.id.about) {\n return true;\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 == R.id.action_about) {\n startActivity(new Intent(getApplicationContext(), aboutActivity.class));\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "public static void showAboutUs() throws IOException {\n Main.FxmlLoader(ABOUTUSPAGE_PATH);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.activity_about_us, container, false);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_about_us) {\n final Dialog dialog = new Dialog(this);\n dialog.setContentView(R.layout.dialog_about_us);\n dialog.setTitle(this.getString(R.string.about_us));\n dialog.show();\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 == R.id.about) {\n Intent aboutIntent=new Intent(MainActivity.this,AboutActivity.class);\n startActivity(aboutIntent);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "public InfoDialog() {\r\n\t\tcreateContents();\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_about) {\n startActivity(new Intent(MainActivity.this, ActivityAbout.class));\n }\n\n return super.onOptionsItemSelected(item);\n }", "@FXML\n private void handleAboutButton(ActionEvent event) \n {\n \n Switchable.switchTo(\"AboutView\");\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.avtor);\n\t\t\n\t\tTextView tv = (TextView) findViewById(R.id.about_me);\n\t\tString data = \"\" +\n\t\t\t\t\"Информация об авторе:\\n\" + \n\t\t\t\t\"Я Вконтакте: http://vk.com/id117176297 \\n\" +\n\t\t\t\t\"Телефон: +7 (917)-432-16-56 \\n\" +\n\t\t\t \"Email: [email protected] \\n\" +\n\t\t\t\t\"\\n\" +\n\t\t\t\t\"\";\n\n\t\t\t\tif(tv != null) {\n\t\t\t\ttv.setText(data);\n\t\t\t\tLinkify.addLinks(tv, Linkify.ALL);\n\t\t\t\ttv.setLinkTextColor(Color.parseColor(\"#2f6699\"));\n\t\t\t\t}\n\t\t\n\n\t}", "private void initAbout(){\n setSpacing(30);\n getChildren().addAll(initNameText(), initDescriptionText());\n setAlignment(Pos.CENTER);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n return new AlertDialog.Builder(getActivity())\n .setMessage(R.string.more_info_text)\n\n // User cannot dismiss dialog by hitting back button\n .setCancelable(false)\n\n // Set up No Button\n .setNegativeButton(R.string.not_now,\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,\n int id) {\n dismiss();\n }\n })\n\n // Set up Yes Button\n .setPositiveButton(R.string.visit_moma,\n new DialogInterface.OnClickListener() {\n public void onClick(final DialogInterface dialog, int id) {\n startActivity(new Intent(Intent.ACTION_VIEW, Uri\n .parse(VISIT_MOMA_URL)));\n dismiss();\n }\n }).create();\n }", "@Override\n public void onClick(View view) {\n Intent i = new Intent(HelpActivity.this, HomeActivity.class);\n startActivity(i);\n }", "public interface OnAboutListener {\n public void onAbout();\n }", "@Override\r\n public void onCreate(Bundle icicle) {\r\n super.onCreate(icicle);\r\n // ToDo add your GUI initialization code here\r\n requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);\r\n \r\n this.activateExamBoard(getIntent());\r\n }", "protected void startHelpActivity() {\n\t\tIntent intent = new Intent(this, HelpViewActivity.class);\n\t\tstartActivity(intent);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\n\t\tAlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(this);\n\t\t\n\t\tint id = item.getItemId();\n\t\tif (id == R.id.action_about) {\n\t\t\talertDialogBuilder.setTitle(\"About Timeline-Enhanced Portrait Charts\");\n\t\t\talertDialogBuilder.setMessage(\"Programming by Joohan Lee under the supervision of Dr. Geoffrey M. Draper. This app is a research project funded by Brigham Young University Hawaii.\");\n\t\t\talertDialogBuilder.setPositiveButton(\"OK\", null);\n\t\t\tAlertDialog alertDialog = alertDialogBuilder.create();\n\t\t\talertDialog.show();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}" ]
[ "0.7046781", "0.69062436", "0.67148185", "0.6533556", "0.64567244", "0.64554065", "0.6430134", "0.638647", "0.6359816", "0.63337016", "0.630308", "0.6241684", "0.6223119", "0.6207133", "0.61956257", "0.6182975", "0.6137527", "0.61330795", "0.61154693", "0.6113702", "0.60259455", "0.5993915", "0.59828436", "0.5976639", "0.596511", "0.5944051", "0.5942869", "0.58699954", "0.5851873", "0.5833638", "0.5818644", "0.5810734", "0.5800789", "0.5765578", "0.5763021", "0.57598466", "0.57583565", "0.57538027", "0.57455343", "0.57400024", "0.5736755", "0.57272", "0.5727199", "0.5710158", "0.5702543", "0.56923634", "0.56832016", "0.56754816", "0.5673792", "0.56669915", "0.5665707", "0.56603557", "0.5655365", "0.5652166", "0.56517667", "0.5638368", "0.5635079", "0.5620246", "0.56161636", "0.56041586", "0.55901045", "0.5582196", "0.55753213", "0.557434", "0.5571709", "0.55658984", "0.5563618", "0.5539902", "0.55311054", "0.5508783", "0.5483476", "0.5468932", "0.54623026", "0.54613984", "0.5444477", "0.54389834", "0.5390232", "0.5382758", "0.5380776", "0.537493", "0.53748333", "0.53723234", "0.5369711", "0.5367491", "0.5364029", "0.5358777", "0.5358278", "0.535394", "0.5349667", "0.5349367", "0.53490466", "0.53422755", "0.53418595", "0.5325326", "0.5311608", "0.5308679", "0.53008676", "0.52942824", "0.52940995", "0.529301" ]
0.77168685
0
Load the credits from xml.
private List<Map<String, String>> loadCredits() { final String[] creditsArray = this.getResources().getStringArray( R.array.credits); final Credits credits = new Credits(creditsArray); return credits.getListCredits(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void loadXML(){\n new DownloadXmlTask().execute(URL);\n }", "public void loadFromLocalXML(Context context) {\n\n AccountManager.getInstance().reset();\n int _cnt = PreferenceManager.getDefaultSharedPreferences(context).getInt(\"Account_amount\", 0);\n for (int _iter = 0; _iter < _cnt; _iter++) {\n String[] _tmp;\n _tmp = PreferenceManager.getDefaultSharedPreferences(context).getString(\"Account_\" + String.valueOf(_iter), \"\").split(String.valueOf(separator));\n this.addAccount(_tmp[0], _tmp[1], _tmp[2], Integer.valueOf(_tmp[3]));\n }\n\n }", "public void readXML() {\n\t try {\n\n\t \t//getting xml file\n\t \t\tFile fXmlFile = new File(\"cards.xml\");\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\t\tDocument doc = dBuilder.parse(fXmlFile);\n\t\t \n\t\t\t//doc.getDocumentElement().normalize(); ???\n\t\t \n\t\t \t//inserting card IDs and Effects into arrays\n\t\t\tNodeList nList = doc.getElementsByTagName(\"card\");\n\t\t\tfor (int i = 0; i < nList.getLength(); i++) {\n\t\t\t\tNode nNode = nList.item(i);\n\t\t\t\tif (nNode.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\t\tElement eElement = (Element) nNode;\n\t\t\t\t\tint id = Integer.parseInt(eElement.getAttribute(\"id\"));\n\t\t\t\t\tString effect = eElement.getElementsByTagName(\"effect\").item(0).getTextContent();\n\t\t\t\t\tidarr.add(id);\n\t\t\t\t\teffsarr.add(effect);\n\t\t\t\t}\n\t\t\t}\n\t } catch (Exception e) {\n\t\t\te.printStackTrace();\n\t }\n }", "public static void getXMLBorrowings() {\n\t\t// Make some local arrays to use below\n\t\tArrayList<Borrowings> borrowingList = new ArrayList<Borrowings>();\n\t\ttry {\n\t\t\t// Retrieving the xml file stuff\n\t\t\tFile xmlFile = new File(\"Borrowings.xml\");\n\t\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder builder = factory.newDocumentBuilder();\n\t\t\tDocument borrowings = builder.parse(xmlFile);\n\t\t\t\n\t\t\t// Get all the nodes with tag \"rent\"\n\t\t\tNodeList rentNodes = borrowings.getElementsByTagName(\"rent\");\n\t\t\tfor(int i = 0; i < rentNodes.getLength(); i++) { // Go through each rent node\n\t\t\t Node rentNode = rentNodes.item(i);\n\t\t\t if(rentNode.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t \tElement rentEl = (Element) rentNode;\n\t\t\t // Get the borrowings info (and convert types when necessary)\n\t\t\t String sid = rentEl.getElementsByTagName(\"studentID\").item(0).getTextContent();\n\t\t\t int sID = Integer.parseInt(sid);\n\t\t\t String mid = rentEl.getElementsByTagName(\"materialID\").item(0).getTextContent();\n\t\t\t int mID = Integer.parseInt(mid);\n\t\t\t String duemilli = rentEl.getElementsByTagName(\"due\").item(0).getTextContent();\n\t\t\t long due = Long.parseLong(duemilli);\n\t\t\t Date deadline = new Date(due);\n\t\t\t \n\t\t\t // And then create all a new instance of Borrowings with the info\n\t\t\t\t Borrowings newBorrow = new Borrowings(sID, mID, deadline);\n\t\t\t\t // Put the newly created borrowing instance in the list\n\t\t\t\t borrowingList.add(newBorrow);\n\t\t\t }\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Something went wrong with the Users.xml parsing\");\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t// Store our arrays so they are accessible elsewhere\n\t\tManageUsers.setBorrowingList(borrowingList);\n\t}", "public void readXmlFile() {\r\n try {\r\n ClassLoader classLoader = getClass().getClassLoader();\r\n File credentials = new File(classLoader.getResource(\"credentials_example.xml\").getFile());\r\n DocumentBuilderFactory Factory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder Builder = Factory.newDocumentBuilder();\r\n Document doc = Builder.parse(credentials);\r\n doc.getDocumentElement().normalize();\r\n username = doc.getElementsByTagName(\"username\").item(0).getTextContent();\r\n password = doc.getElementsByTagName(\"password\").item(0).getTextContent();\r\n url = doc.getElementsByTagName(\"url\").item(0).getTextContent();\r\n setUsername(username);\r\n setPassword(password);\r\n setURL(url);\r\n } catch (Exception error) {\r\n System.out.println(\"Error in parssing the given xml file: \" + error.getMessage());\r\n }\r\n }", "private ExchangeRates loadXmlFromNetwork(String urlString) throws XmlPullParserException, IOException {\n\t\tInputStream stream = null;\n\t\tECBParser parser = new ECBParser();\n\t\t\n\t\ttry {\n\t\t\tstream = downloadStream(urlString);\n\t\t\tsaveToSd(stream);\n\t\t\tparser.parse(readFromSd(), exchangeRates);\n\t\t} finally {\n\t\t\tif (stream != null) {\n\t\t\t\tstream.close();\n\t\t\t}\n\t\t}\n\n\t\treturn exchangeRates;\n\t}", "public void readxml() throws JAXBException, FileNotFoundException {\n Player loadplayer = xml_methods.load();\n logger.info(\"player name: \" + loadplayer.getName());\n if (!item.isEmpty()) {\n logger.trace(loadplayer.getitem(0).getName());\n }\n tfName.setText(loadplayer.getName());\n isset = true;\n player = loadplayer;\n\n }", "public List parseXml(String xml) {\n\n\t\t/*\n\t\t * Create block list and connector list\n\t\t */\n\t\tList list = new ArrayList();\n\t\tList<Block> blockList = new ArrayList<Block>();\n\t\tList<Connector> connectorList = new ArrayList<Connector>();\n\n\t\t/*\n\t\t * Write the xml to a file\n\t\t */\n\t\tString fileName = \"parseXml.xml\";\n\t\twriteToFile(fileName, xml);\n\n\t\t/*\n\t\t * Use DocumentBuilder to parse the xml file\n\t\t */\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder db = null;\n\t\tDocument document = null;\n\t\ttry {\n\t\t\tdb = dbf.newDocumentBuilder();\n\t\t\tdocument = db.parse(fileName);\n\t\t} catch(ParserConfigurationException pe) {\n\t\t\tSystem.out.println(pe.getMessage());\n\t\t} catch(SAXException se) {\n\t\t\tSystem.out.println(se.getMessage());\n\t\t} catch(IOException ie) {\n\t\t\tSystem.out.println(ie.getMessage());\n\t\t}\n\n\t\t/*\n\t\t * Get the root element of this xml tree\n\t\t */\n\t\tElement root = document.getDocumentElement();\n\n\t\t/*\n\t\t * Create a hashmap to store the blocks' name and their dependency\n\t\t */\n\t\tHashMap<String,Integer> blockMap = new HashMap<String,Integer>();\n\t\tNodeList blockNodes = root.getElementsByTagName(\"block\");\n\t\tfor(int i = 0; i < blockNodes.getLength(); i++) {\n\t\t\tElement blockNode = (Element)blockNodes.item(i);\n\t\t\tElement nameNode = (Element) (blockNode.getElementsByTagName(\"name\")).item(0);\n\t\t\tString blockName = \"\";\n\t\t\tText nameText = (Text) nameNode.getFirstChild();\n\t\t\tif(nameText != null) {\n\t\t\t\tblockName = nameText.getNodeValue();\n\t\t\t}\n\t\t\tblockMap.put(blockName, 0);\n\t\t}\n\n\t\t/*\n\t\t * Parse the connector nodes\n\t\t */\n\t\tNodeList connectorNodes = root.getElementsByTagName(\"connector\");\n\t\tfor(int i = 0; i < connectorNodes.getLength(); i++) {\n\n\t\t\tConnector connector = new Connector();\n\t\t\tString origin = \"\";\n\t\t\tString destination = \"\";\n\n\t\t\tElement connectorNode = (Element) connectorNodes.item(i);\n\n\t\t\t//origin\n\t\t\tElement originNode = (Element) (connectorNode.getElementsByTagName(\"origin\")).item(0);\n\t\t\tText originText = (Text) originNode.getFirstChild();\n\t\t\tif(originText != null) {\n\t\t\t\torigin = originText.getNodeValue();\n\t\t\t}\n\t\t\tconnector.setOrigin(origin);\n\n\t\t\t//destination\n\t\t\tElement destinationNode = (Element) (connectorNode.getElementsByTagName(\"destination\")).item(0);\n\t\t\tText destinationText = (Text) destinationNode.getFirstChild();\n\t\t\tif(destinationText != null) {\n\t\t\t\tdestination = destinationText.getNodeValue();\n\t\t\t}\n\t\t\tconnector.setDestination(destination);\n\n\t\t\tblockMap.put(destination, blockMap.get(destination) + 1);\n\n\t\t\tconnectorList.add(connector);\n\t\t}\n\t\tlist.add(connectorList);\n\n\t\t/*\n\t\t * Parse the block nodes\n\t\t */\n\t\tfor(int i = 0; i < blockNodes.getLength(); i++) {\n\n\t\t\tBlock block = new Block();\n\t\t\tString blockName = \"\";\n\t\t\tint dependency = 0;\n\t\t\tString command = \"\";\n\t\t\tString input = \"\";\n\t\t\tString output = \"\";\n\n\t\t\tElement blockNode = (Element) blockNodes.item(i);\n\n\t\t\t//name\n\t\t\tElement nameNode = (Element) (blockNode.getElementsByTagName(\"name\")).item(0);\n\t\t\tText nameText = (Text) nameNode.getFirstChild();\n\t\t\tif(nameText != null) {\n\t\t\t\tblockName = nameText.getNodeValue();\n\t\t\t}\n\t\t\tblock.setName(blockName);\n\n\t\t\t//dependency\n\t\t\tdependency = blockMap.get(blockName);\n\t\t\tblock.setDependency(dependency);\n\n\t\t\t//command\n\t\t\tElement commandNode = (Element) (blockNode.getElementsByTagName(\"command\")).item(0);\n\t\t\tText commandText = (Text) commandNode.getFirstChild();\n\t\t\tif(commandText != null) {\n\t\t\t\tcommand = commandText.getNodeValue();\n\t\t\t}\n\t\t\tblock.setCommand(command);\n\n\t\t\t//input\n\t\t\tNodeList inputNodes = blockNode.getElementsByTagName(\"input\");\n\t\t\tif(block.getDependency() == 0 && inputNodes.getLength() > 0) {\n\t\t\t\tElement inputNode = (Element) inputNodes.item(0);\n\t\t\t\tElement inputDataTypeNode = (Element) (inputNode.getElementsByTagName(\"dataType\")).item(0);\n\t\t\t\tText inputDataTypeText = (Text) inputDataTypeNode.getFirstChild();\n\t\t\t\tif(inputDataTypeText != null) {\n\t\t\t\t\tinput = inputDataTypeText.getNodeValue();\n\t\t\t\t}\n\t\t\t} \n\t\t\tblock.setInput(input);\n\n\t\t\t//output\n\t\t\tElement outputNode = (Element) (blockNode.getElementsByTagName(\"output\")).item(0);\n\t\t\tElement outputDataTypeNode = (Element) (outputNode.getElementsByTagName(\"dataType\")).item(0);\n\t\t\tText outputDataTypeText = (Text) outputDataTypeNode.getFirstChild();\n\t\t\tif(outputDataTypeText != null) {\n\t\t\t\toutput = outputDataTypeText.getNodeValue();\n\t\t\t}\n\t\t\tblock.setOutput(output);\n\n\t\t\tblockList.add(block);\n\t\t}\n\t\tlist.add(blockList);\n\n\t\treturn list;\n\t}", "private void loadCreditCardAccounts(String creditCardAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(creditCardAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //read...\n String currentLine = input.nextLine();\n\n //parsing out on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data.\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n Date dueDate = dateFormat.parse(splitLine[5]);\n Date dateNotified = dateFormat.parse(splitLine[6]);\n double currentPaymentDue = Double.parseDouble(splitLine[7]);\n Date lastPaymentDate = dateFormat.parse(splitLine[8]);\n boolean missedPayment = Boolean.parseBoolean(splitLine[9]);\n double limit = Double.parseDouble(splitLine[10]);\n String creditCardNumber = splitLine[11];\n int cvv = Integer.parseInt(splitLine[12]);\n\n CreditCard creditCardAccount = new CreditCard(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n dueDate,\n dateNotified,\n currentPaymentDue,\n lastPaymentDate,\n missedPayment,\n limit,\n creditCardNumber,\n cvv);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n creditCardAccount.setTransactions(accountTransactions);\n\n //add credit cards\n accounts.add(creditCardAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "private void loadFromXml(String fileName) throws IOException {\n\t\tElement root = new XmlReader().parse(Gdx.files.internal(fileName));\n\n\t\tthis.name = root.get(\"name\");\n\t\tGdx.app.log(\"Tactic\", \"Loading \" + this.name + \"...\");\n\n\t\tArray<Element> players = root.getChildrenByName(\"player\");\n\t\tint playerIndex = 0;\n\t\tfor (Element player : players) {\n\t\t\t//int shirt = player.getInt(\"shirt\"); // shirt number\n\t\t\t//Gdx.app.log(\"Tactic\", \"Location for player number \" + shirt);\n\n\t\t\t// regions\n\t\t\tArray<Element> regions = player.getChildrenByName(\"region\");\n\t\t\tfor (Element region : regions) {\n\t\t\t\tString regionName = region.get(\"name\"); // region name\n\n\t\t\t\tthis.locations[playerIndex][Location.valueOf(regionName).ordinal()] = new Vector2(region.getFloat(\"x\"), region.getFloat(\"y\"));\n\n\t\t\t\t//Gdx.app.log(\"Tactic\", locationId + \" read\");\n\t\t\t}\n\t\t\tplayerIndex++;\n\t\t}\t\n\t}", "public void loadConfig(XMLElement xml) {\r\n\r\n }", "@Test\n public void testVisaCCPositive_XML() {\n String visaCCNumber = UtilityParsers.xmlHelper(visaInputFilePathXML);\n CreditCardValidator creditCardValidator = new VisaCCValidator(visaCCNumber);\n assertTrue(creditCardValidator.validateCreditCard());\n }", "@Override\n\tpublic void loadFromXmlArgs(Map<String, Object> args) {\n\n\t\tmoney = AiObjParser.getRange(Utils.fallback(args.get(\"money\"), args.get(\"coins\"), args.get(\"points\"), 0), money);\n\n\t\tpause = AiObjParser.getRange(\n\t\t\t\tUtils.fallback(args.get(\"pause\"), args.get(\"time\"), args.get(\"gap\"), args.get(\"delay\"), args.get(\"every\"), args.get(\"secs\"), 1),\n\t\t\t\tpause);\n\t}", "private Account loadTestData(String dataFile) throws ParserConfigurationException, \n SAXException, IOException {\n try {\n // getting parser\n SAXParserFactory factory = SAXParserFactory.newInstance();\n factory.setNamespaceAware(true);\n SAXParser parser = factory.newSAXParser();\n XMLReader reader = parser.getXMLReader();\n \n // getting loader\n InvoiceXMLLoaderCH loader = new InvoiceXMLLoaderCH();\n \n // getting input file\n InputSource input = new InputSource(this.getClass().getResourceAsStream(dataFile));\n \n // setting content handler and parsing file\n reader.setContentHandler(loader);\n reader.parse(input);\n \n return (Account) loader.getAccountList().get(0);\n \n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n throw e;\n } catch (SAXException e) {\n e.printStackTrace();\n throw e;\n } catch (IOException e) {\n e.printStackTrace();\n throw e;\n }\n }", "private void readXML() {\n\t\tSAXParserFactory factory = SAXParserFactory.newInstance();\n\t\tXMLReader handler = new XMLReader();\n\t\tSAXParser parser;\n\t\t\n\t\t//Parsing xml file\n\t\ttry {\n\t\t\tparser = factory.newSAXParser();\n\t\t\tparser.parse(\"src/data/users.xml\", handler);\n\t\t\tgroupsList = handler.getGroupNames();\n\t\t} catch(SAXException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ParserConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t};\n\t}", "private void loadFile() {\n String xmlContent = \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?><atomic-mass-table mass-units=\\\"u\\\" abundance-units=\\\"Mole Fraction\\\"><entry symbol=\\\"H\\\" atomic-number=\\\"1\\\"> <natural-abundance> <mass value=\\\"1.00794\\\" error=\\\"0.00007\\\" /> <isotope mass-number=\\\"1\\\"> <mass value=\\\"1.0078250319\\\" error=\\\"0.00000000006\\\" /> <abundance value=\\\"0.999885\\\" error=\\\"0.000070\\\" /> </isotope> <isotope mass-number=\\\"2\\\"> <mass value=\\\"2.0141017779\\\" error=\\\"0.0000000006\\\" /> <abundance value=\\\"0.000115\\\" error=\\\"0.000070\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"He\\\" atomic-number=\\\"2\\\"> <natural-abundance> <mass value=\\\"4.002602\\\" error=\\\"0.000002\\\" /> <isotope mass-number=\\\"3\\\"> <mass value=\\\"3.0160293094\\\" error=\\\"0.0000000012\\\" /> <abundance value=\\\"0.00000134\\\" error=\\\"0.00000003\\\" /> </isotope> <isotope mass-number=\\\"4\\\"> <mass value=\\\"4.0026032497\\\" error=\\\"0.0000000015\\\" /> <abundance value=\\\"0.99999866\\\" error=\\\"0.00000003\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Li\\\" atomic-number=\\\"3\\\"> <natural-abundance> <mass value=\\\"6.9421\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"3\\\"> <mass value=\\\"6.0151223\\\" error=\\\"0.0000005\\\" /> <abundance value=\\\"0.0759\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"7\\\"> <mass value=\\\"7.0160041\\\" error=\\\"0.0000005\\\" /> <abundance value=\\\"0.9241\\\" error=\\\"0.0004\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Be\\\" atomic-number=\\\"4\\\"> <natural-abundance> <mass value=\\\"9.012182\\\" error=\\\"0.000003\\\" /> <isotope mass-number=\\\"9\\\"> <mass value=\\\"9.0121822\\\" error=\\\"0.0000004\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"B\\\" atomic-number=\\\"5\\\"> <natural-abundance> <mass value=\\\"10.881\\\" error=\\\"0.007\\\" /> <isotope mass-number=\\\"10\\\"> <mass value=\\\"10.0129371\\\" error=\\\"0.0000003\\\" /> <abundance value=\\\"0.199\\\" error=\\\"0.007\\\" /> </isotope> <isotope mass-number=\\\"11\\\"> <mass value=\\\"11.0093055\\\" error=\\\"0.0000004\\\" /> <abundance value=\\\"0.801\\\" error=\\\"0.007\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"C\\\" atomic-number=\\\"6\\\"> <natural-abundance> <mass value=\\\"12.0107\\\" error=\\\"0.0008\\\" /> <isotope mass-number=\\\"12\\\"> <mass value=\\\"12\\\" error=\\\"0\\\" /> <abundance value=\\\"0.9893\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"13\\\"> <mass value=\\\"13.003354838\\\" error=\\\"0.000000005\\\" /> <abundance value=\\\"0.0107\\\" error=\\\"0.0008\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"N\\\" atomic-number=\\\"7\\\"> <natural-abundance> <mass value=\\\"14.0067\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"14\\\"> <mass value=\\\"14.0030740074\\\" error=\\\"0.0000000018\\\" /> <abundance value=\\\"0.99636\\\" error=\\\"0.00020\\\" /> </isotope> <isotope mass-number=\\\"15\\\"> <mass value=\\\"15.000108973\\\" error=\\\"0.000000012\\\" /> <abundance value=\\\"0.00364\\\" error=\\\"0.00020\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"O\\\" atomic-number=\\\"8\\\"> <natural-abundance> <mass value=\\\"15.9994\\\" error=\\\"0.0003\\\" /> <isotope mass-number=\\\"16\\\"> <mass value=\\\"15.9949146223\\\" error=\\\"0.0000000025\\\" /> <abundance value=\\\"0.99759\\\" error=\\\"0.00016\\\" /> </isotope> <isotope mass-number=\\\"17\\\"> <mass value=\\\"16.99913150\\\" error=\\\"0.00000022\\\" /> <abundance value=\\\"0.00038\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"18\\\"> <mass value=\\\"17.9991604\\\" error=\\\"0.0000009\\\" /> <abundance value=\\\"0.00205\\\" error=\\\"0.00014\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"F\\\" atomic-number=\\\"9\\\"> <natural-abundance> <mass value=\\\"18.9984032\\\" error=\\\"0.0000005\\\" /> <isotope mass-number=\\\"19\\\"> <mass value=\\\"18.99840320\\\" error=\\\"0.00000007\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ne\\\" atomic-number=\\\"10\\\"> <natural-abundance> <mass value=\\\"20.1797\\\" error=\\\"0.0006\\\" /> <isotope mass-number=\\\"20\\\"> <mass value=\\\"19.992440176\\\" error=\\\"0.000000003\\\" /> <abundance value=\\\"0.9048\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"21\\\"> <mass value=\\\"20.99384674\\\" error=\\\"0.00000004\\\" /> <abundance value=\\\"0.0027\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"22\\\"> <mass value=\\\"21.99138550\\\" error=\\\"0.00000025\\\" /> <abundance value=\\\"0.0925\\\" error=\\\"0.0003\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Na\\\" atomic-number=\\\"11\\\"> <natural-abundance> <mass value=\\\"22.989770\\\" error=\\\"0.000002\\\" /> <isotope mass-number=\\\"23\\\"> <mass value=\\\"22.98976966\\\" error=\\\"0.00000026\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Mg\\\" atomic-number=\\\"12\\\"> <natural-abundance> <mass value=\\\"24.3050\\\" error=\\\"0.0006\\\" /> <isotope mass-number=\\\"24\\\"> <mass value=\\\"23.98504187\\\" error=\\\"0.00000026\\\" /> <abundance value=\\\"0.7899\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"25\\\"> <mass value=\\\"24.98583700\\\" error=\\\"0.00000026\\\" /> <abundance value=\\\"0.1000\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"26\\\"> <mass value=\\\"25.98259300\\\" error=\\\"0.00000026\\\" /> <abundance value=\\\"0.1101\\\" error=\\\"0.0003\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Al\\\" atomic-number=\\\"13\\\"> <natural-abundance> <mass value=\\\"26.981538\\\" error=\\\"0.000002\\\" /> <isotope mass-number=\\\"27\\\"> <mass value=\\\"26.98153841\\\" error=\\\"0.00000024\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Si\\\" atomic-number=\\\"14\\\"> <natural-abundance> <mass value=\\\"28.0855\\\" error=\\\"0.0003\\\" /> <isotope mass-number=\\\"28\\\"> <mass value=\\\"27.97692649\\\" error=\\\"0.00000022\\\" /> <abundance value=\\\"0.92223\\\" error=\\\"0.00019\\\" /> </isotope> <isotope mass-number=\\\"29\\\"> <mass value=\\\"28.97649468\\\" error=\\\"0.00000022\\\" /> <abundance value=\\\"0.04685\\\" error=\\\"0.00008\\\" /> </isotope> <isotope mass-number=\\\"30\\\"> <mass value=\\\"29.97377018\\\" error=\\\"0.00000022\\\" /> <abundance value=\\\"0.03092\\\" error=\\\"0.00011\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"P\\\" atomic-number=\\\"15\\\"> <natural-abundance> <mass value=\\\"30.973761\\\" error=\\\"0.000002\\\" /> <isotope mass-number=\\\"31\\\"> <mass value=\\\"30.97376149\\\" error=\\\"0.00000027\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"S\\\" atomic-number=\\\"16\\\"> <natural-abundance> <mass value=\\\"32.065\\\" error=\\\"0.005\\\" /> <isotope mass-number=\\\"32\\\"> <mass value=\\\"31.97207073\\\" error=\\\"0.00000015\\\" /> <abundance value=\\\"0.9499\\\" error=\\\"0.0026\\\" /> </isotope> <isotope mass-number=\\\"33\\\"> <mass value=\\\"32.97145854\\\" error=\\\"0.00000015\\\" /> <abundance value=\\\"0.0075\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"34\\\"> <mass value=\\\"33.96786687\\\" error=\\\"0.00000014\\\" /> <abundance value=\\\"0.0425\\\" error=\\\"0.0024\\\" /> </isotope> <isotope mass-number=\\\"36\\\"> <mass value=\\\"35.96708088\\\" error=\\\"0.00000025\\\" /> <abundance value=\\\"0.0001\\\" error=\\\"0.0001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cl\\\" atomic-number=\\\"17\\\"> <natural-abundance> <mass value=\\\"35.453\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"35\\\"> <mass value=\\\"34.96885271\\\" error=\\\"0.00000004\\\" /> <abundance value=\\\"0.7576\\\" error=\\\"0.0010\\\" /> </isotope> <isotope mass-number=\\\"37\\\"> <mass value=\\\"36.96590260\\\" error=\\\"0.00000005\\\" /> <abundance value=\\\"0.2424\\\" error=\\\"0.0010\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ar\\\" atomic-number=\\\"18\\\"> <natural-abundance> <mass value=\\\"39.948\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"36\\\"> <mass value=\\\"35.96754626\\\" error=\\\"0.00000027\\\" /> <abundance value=\\\"0.0003365\\\" error=\\\"0.000030\\\" /> </isotope> <isotope mass-number=\\\"38\\\"> <mass value=\\\"37.9627322\\\" error=\\\"0.0000005\\\" /> <abundance value=\\\"0.000632\\\" error=\\\"0.000005\\\" /> </isotope> <isotope mass-number=\\\"40\\\"> <mass value=\\\"39.962383124\\\" error=\\\"0.000000005\\\" /> <abundance value=\\\"0.996003\\\" error=\\\"0.000030\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"K\\\" atomic-number=\\\"19\\\"> <natural-abundance> <mass value=\\\"39.0983\\\" error=\\\"0.0001\\\" /> <isotope mass-number=\\\"39\\\"> <mass value=\\\"38.9637069\\\" error=\\\"0.0000003\\\" /> <abundance value=\\\"0.932581\\\" error=\\\"0.000044\\\" /> </isotope> <isotope mass-number=\\\"40\\\"> <mass value=\\\"39.96399867\\\" error=\\\"0.00000029\\\" /> <abundance value=\\\"0.000117\\\" error=\\\"0.000001\\\" /> </isotope> <isotope mass-number=\\\"41\\\"> <mass value=\\\"40.96182597\\\" error=\\\"0.00000028\\\" /> <abundance value=\\\"0.067302\\\" error=\\\"0.000044\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ca\\\" atomic-number=\\\"20\\\"> <natural-abundance> <mass value=\\\"40.078\\\" error=\\\"0.004\\\" /> <isotope mass-number=\\\"40\\\"> <mass value=\\\"39.9625912\\\" error=\\\"0.0000003\\\" /> <abundance value=\\\"0.96941\\\" error=\\\"0.00156\\\" /> </isotope> <isotope mass-number=\\\"42\\\"> <mass value=\\\"41.9586183\\\" error=\\\"0.0000004\\\" /> <abundance value=\\\"0.00647\\\" error=\\\"0.00023\\\" /> </isotope> <isotope mass-number=\\\"43\\\"> <mass value=\\\"42.9587668\\\" error=\\\"0.0000005\\\" /> <abundance value=\\\"0.00135\\\" error=\\\"0.00010\\\" /> </isotope> <isotope mass-number=\\\"44\\\"> <mass value=\\\"43.9554811\\\" error=\\\"0.0000009\\\" /> <abundance value=\\\"0.02086\\\" error=\\\"0.00110\\\" /> </isotope> <isotope mass-number=\\\"46\\\"> <mass value=\\\"45.9536927\\\" error=\\\"0.0000025\\\" /> <abundance value=\\\"0.00004\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"48\\\"> <mass value=\\\"47.952533\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00187\\\" error=\\\"0.00021\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sc\\\" atomic-number=\\\"21\\\"> <natural-abundance> <mass value=\\\"44.955910\\\" error=\\\"0.000008\\\" /> <isotope mass-number=\\\"45\\\"> <mass value=\\\"44.9559102\\\" error=\\\"0.0000012\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ti\\\" atomic-number=\\\"22\\\"> <natural-abundance> <mass value=\\\"47.867\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"46\\\"> <mass value=\\\"45.9526295\\\" error=\\\"0.0000012\\\" /> <abundance value=\\\"0.0825\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"47\\\"> <mass value=\\\"46.9517637\\\" error=\\\"0.0000010\\\" /> <abundance value=\\\"0.0744\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"48\\\"> <mass value=\\\"47.9479470\\\" error=\\\"0.0000010\\\" /> <abundance value=\\\"0.7372\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"49\\\"> <mass value=\\\"48.9478707\\\" error=\\\"0.0000010\\\" /> <abundance value=\\\"0.0541\\\" error=\\\"0.0002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"V\\\" atomic-number=\\\"23\\\"> <natural-abundance> <mass value=\\\"50.9415\\\" error=\\\"0.0001\\\" /> <isotope mass-number=\\\"50\\\"> <mass value=\\\"49.9471627\\\" error=\\\"0.0000014\\\" /> <abundance value=\\\"0.00250\\\" error=\\\"0.00004\\\" /> </isotope> <isotope mass-number=\\\"51\\\"> <mass value=\\\"50.9439635\\\" error=\\\"0.0000014\\\" /> <abundance value=\\\"0.99750\\\" error=\\\"0.00004\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cr\\\" atomic-number=\\\"24\\\"> <natural-abundance> <mass value=\\\"51.9961\\\" error=\\\"0.0006\\\" /> <isotope mass-number=\\\"50\\\"> <mass value=\\\"49.9460495\\\" error=\\\"0.0000014\\\" /> <abundance value=\\\"0.04345\\\" error=\\\"0.00013\\\" /> </isotope> <isotope mass-number=\\\"52\\\"> <mass value=\\\"51.9405115\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.83789\\\" error=\\\"0.00018\\\" /> </isotope> <isotope mass-number=\\\"53\\\"> <mass value=\\\"52.9406534\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.09501\\\" error=\\\"0.00017\\\" /> </isotope> <isotope mass-number=\\\"54\\\"> <mass value=\\\"53.938846\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.02365\\\" error=\\\"0.00007\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Mn\\\" atomic-number=\\\"25\\\"> <natural-abundance> <mass value=\\\"54.938049\\\" error=\\\"0.000009\\\" /> <isotope mass-number=\\\"55\\\"> <mass value=\\\"54.9380493\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Fe\\\" atomic-number=\\\"26\\\"> <natural-abundance> <mass value=\\\"55.845\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"54\\\"> <mass value=\\\"53.9396147\\\" error=\\\"0.0000014\\\" /> <abundance value=\\\"0.05845\\\" error=\\\"0.00035\\\" /> </isotope> <isotope mass-number=\\\"56\\\"> <mass value=\\\"55.9349418\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.91754\\\" error=\\\"0.00036\\\" /> </isotope> <isotope mass-number=\\\"57\\\"> <mass value=\\\"56.9353983\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.02119\\\" error=\\\"0.00010\\\" /> </isotope> <isotope mass-number=\\\"58\\\"> <mass value=\\\"57.9332801\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.00282\\\" error=\\\"0.00004\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Co\\\" atomic-number=\\\"27\\\"> <natural-abundance> <mass value=\\\"58.933200\\\" error=\\\"0.000009\\\" /> <isotope mass-number=\\\"59\\\"> <mass value=\\\"59.9331999\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ni\\\" atomic-number=\\\"28\\\"> <natural-abundance> <mass value=\\\"58.6934\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"58\\\"> <mass value=\\\"57.9353477\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.680769\\\" error=\\\"0.000089\\\" /> </isotope> <isotope mass-number=\\\"60\\\"> <mass value=\\\"59.9307903\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.262231\\\" error=\\\"0.000077\\\" /> </isotope> <isotope mass-number=\\\"61\\\"> <mass value=\\\"60.9310601\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.011399\\\" error=\\\"0.000006\\\" /> </isotope> <isotope mass-number=\\\"62\\\"> <mass value=\\\"61.9283484\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.0036345\\\" error=\\\"0.000017\\\" /> </isotope> <isotope mass-number=\\\"64\\\"> <mass value=\\\"63.9279692\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.009256\\\" error=\\\"0.000009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cu\\\" atomic-number=\\\"29\\\"> <natural-abundance> <mass value=\\\"63.546\\\" error=\\\"0.003\\\" /> <isotope mass-number=\\\"63\\\"> <mass value=\\\"62.9296007\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.6915\\\" error=\\\"0.0015\\\" /> </isotope> <isotope mass-number=\\\"65\\\"> <mass value=\\\"64.9277938\\\" error=\\\"0.0000019\\\" /> <abundance value=\\\"0.3085\\\" error=\\\"0.0015\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Zn\\\" atomic-number=\\\"30\\\"> <natural-abundance> <mass value=\\\"65.409\\\" error=\\\"0.004\\\" /> <isotope mass-number=\\\"64\\\"> <mass value=\\\"63.9291461\\\" error=\\\"0.0000018\\\" /> <abundance value=\\\"0.48268\\\" error=\\\"0.00321\\\" /> </isotope> <isotope mass-number=\\\"66\\\"> <mass value=\\\"65.9260364\\\" error=\\\"0.0000017\\\" /> <abundance value=\\\"0.27975\\\" error=\\\"0.00077\\\" /> </isotope> <isotope mass-number=\\\"67\\\"> <mass value=\\\"66.9271305\\\" error=\\\"0.0000017\\\" /> <abundance value=\\\"0.04102\\\" error=\\\"0.00021\\\" /> </isotope> <isotope mass-number=\\\"68\\\"> <mass value=\\\"67.9248473\\\" error=\\\"0.0000017\\\" /> <abundance value=\\\"0.19024\\\" error=\\\"0.00123\\\" /> </isotope> <isotope mass-number=\\\"70\\\"> <mass value=\\\"69.925325\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00631\\\" error=\\\"0.00009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ga\\\" atomic-number=\\\"31\\\"> <natural-abundance> <mass value=\\\"69.723\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"69\\\"> <mass value=\\\"68.925581\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.60108\\\" error=\\\"0.00009\\\" /> </isotope> <isotope mass-number=\\\"71\\\"> <mass value=\\\"70.9247073\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.39892\\\" error=\\\"0.00009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ge\\\" atomic-number=\\\"32\\\"> <natural-abundance> <mass value=\\\"72.64\\\" error=\\\"0.01\\\" /> <isotope mass-number=\\\"70\\\"> <mass value=\\\"69.9242500\\\" error=\\\"0.0000019\\\" /> <abundance value=\\\"0.2038\\\" error=\\\"0.0018\\\" /> </isotope> <isotope mass-number=\\\"72\\\"> <mass value=\\\"71.9220763\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.2731\\\" error=\\\"0.0026\\\" /> </isotope> <isotope mass-number=\\\"73\\\"> <mass value=\\\"72.9234595\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0776\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"74\\\"> <mass value=\\\"73.9211784\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.3672\\\" error=\\\"0.0015\\\" /> </isotope> <isotope mass-number=\\\"76\\\"> <mass value=\\\"75.9214029\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0783\\\" error=\\\"0.0007\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"As\\\" atomic-number=\\\"33\\\"> <natural-abundance> <mass value=\\\"74.92160\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"75\\\"> <mass value=\\\"74.9215966\\\" error=\\\"0.0000018\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Se\\\" atomic-number=\\\"34\\\"> <natural-abundance> <mass value=\\\"78.96\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"74\\\"> <mass value=\\\"73.9224767\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0089\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"76\\\"> <mass value=\\\"75.9192143\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0937\\\" error=\\\"0.0029\\\" /> </isotope> <isotope mass-number=\\\"77\\\"> <mass value=\\\"76.9199148\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0763\\\" error=\\\"0.0016\\\" /> </isotope> <isotope mass-number=\\\"78\\\"> <mass value=\\\"77.9173097\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.2377\\\" error=\\\"0.0028\\\" /> </isotope> <isotope mass-number=\\\"80\\\"> <mass value=\\\"79.9165221\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.4961\\\" error=\\\"0.0041\\\" /> </isotope> <isotope mass-number=\\\"82\\\"> <mass value=\\\"81.9167003\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.0873\\\" error=\\\"0.0022\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Br\\\" atomic-number=\\\"35\\\"> <natural-abundance> <mass value=\\\"79.904\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"79\\\"> <mass value=\\\"78.9183379\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.5069\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"81\\\"> <mass value=\\\"80.916291\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.4931\\\" error=\\\"0.0007\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Kr\\\" atomic-number=\\\"36\\\"> <natural-abundance> <mass value=\\\"83.798\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"78\\\"> <mass value=\\\"77.920388\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.00355\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"80\\\"> <mass value=\\\"79.916379\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.02286\\\" error=\\\"0.00010\\\" /> </isotope> <isotope mass-number=\\\"82\\\"> <mass value=\\\"81.9134850\\\" error=\\\"0.0000028\\\" /> <abundance value=\\\"0.11593\\\" error=\\\"0.00031\\\" /> </isotope> <isotope mass-number=\\\"83\\\"> <mass value=\\\"82.914137\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.11500\\\" error=\\\"0.00019\\\" /> </isotope> <isotope mass-number=\\\"84\\\"> <mass value=\\\"83.911508\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.56987\\\" error=\\\"0.00015\\\" /> </isotope> <isotope mass-number=\\\"86\\\"> <mass value=\\\"85.910615\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.17279\\\" error=\\\"0.00041\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Rb\\\" atomic-number=\\\"37\\\"> <natural-abundance> <mass value=\\\"85.4678\\\" error=\\\"0.0003\\\" /> <isotope mass-number=\\\"85\\\"> <mass value=\\\"84.9117924\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.7217\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"87\\\"> <mass value=\\\"86.9091858\\\" error=\\\"0.0000028\\\" /> <abundance value=\\\"0.2783\\\" error=\\\"0.0002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sr\\\" atomic-number=\\\"38\\\"> <natural-abundance> <mass value=\\\"87.62\\\" error=\\\"0.01\\\" /> <isotope mass-number=\\\"84\\\"> <mass value=\\\"83.913426\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0056\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"86\\\"> <mass value=\\\"85.9092647\\\" error=\\\"0.0000025\\\" /> <abundance value=\\\"0.0986\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"87\\\"> <mass value=\\\"86.9088816\\\" error=\\\"0.0000025\\\" /> <abundance value=\\\"0.0700\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"88\\\"> <mass value=\\\"87.9056167\\\" error=\\\"0.0000025\\\" /> <abundance value=\\\"0.8258\\\" error=\\\"0.0001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Y\\\" atomic-number=\\\"39\\\"> <natural-abundance> <mass value=\\\"88.90585\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"89\\\"> <mass value=\\\"88.9058485\\\" error=\\\"0.0000026\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Zr\\\" atomic-number=\\\"40\\\"> <natural-abundance> <mass value=\\\"91.224\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"90\\\"> <mass value=\\\"89.9047022\\\" error=\\\"0.0000024\\\" /> <abundance value=\\\"0.5145\\\" error=\\\"0.0040\\\" /> </isotope> <isotope mass-number=\\\"91\\\"> <mass value=\\\"90.9056434\\\" error=\\\"0.0000023\\\" /> <abundance value=\\\"0.1122\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"92\\\"> <mass value=\\\"91.9050386\\\" error=\\\"0.0000023\\\" /> <abundance value=\\\"0.1715\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"94\\\"> <mass value=\\\"93.9063144\\\" error=\\\"0.0000026\\\" /> <abundance value=\\\"0.1738\\\" error=\\\"0.0028\\\" /> </isotope> <isotope mass-number=\\\"96\\\"> <mass value=\\\"95.908275\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0280\\\" error=\\\"0.0009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Nb\\\" atomic-number=\\\"41\\\"> <natural-abundance> <mass value=\\\"92.90638\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"93\\\"> <mass value=\\\"92.9063762\\\" error=\\\"0.0000024\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Mo\\\" atomic-number=\\\"42\\\"> <natural-abundance> <mass value=\\\"95.94\\\" error=\\\"0.02\\\" /> <isotope mass-number=\\\"92\\\"> <mass value=\\\"91.906810\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.1477\\\" error=\\\"0.0031\\\" /> </isotope> <isotope mass-number=\\\"94\\\"> <mass value=\\\"93.9050867\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.0923\\\" error=\\\"0.0010\\\" /> </isotope> <isotope mass-number=\\\"95\\\"> <mass value=\\\"94.9058406\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.1590\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"96\\\"> <mass value=\\\"95.9046780\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.1668\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"97\\\"> <mass value=\\\"96.9030201\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.0956\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"98\\\"> <mass value=\\\"97.9054069\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.2419\\\" error=\\\"0.0026\\\" /> </isotope> <isotope mass-number=\\\"100\\\"> <mass value=\\\"99.907476\\\" error=\\\"0.000006\\\" /> <abundance value=\\\"0.0967\\\" error=\\\"0.0020\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ru\\\" atomic-number=\\\"44\\\"> <natural-abundance> <mass value=\\\"101.07\\\" error=\\\"0.02\\\" /> <isotope mass-number=\\\"96\\\"> <mass value=\\\"95.907604\\\" error=\\\"0.000009\\\" /> <abundance value=\\\"0.0554\\\" error=\\\"0.0014\\\" /> </isotope> <isotope mass-number=\\\"98\\\"> <mass value=\\\"97.905287\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.0187\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"99\\\"> <mass value=\\\"98.9059385\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\".01276\\\" error=\\\"0.0014\\\" /> </isotope> <isotope mass-number=\\\"100\\\"> <mass value=\\\"99.9042189\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.1260\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"101\\\"> <mass value=\\\"100.9055815\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.1706\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"102\\\"> <mass value=\\\"101.9043488\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.3155\\\" error=\\\"0.0014\\\" /> </isotope> <isotope mass-number=\\\"104\\\"> <mass value=\\\"103.905430\\\" error=\\\".01862\\\" /> <abundance value=\\\"0.1862\\\" error=\\\"0.0027\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Rh\\\" atomic-number=\\\"45\\\"> <natural-abundance> <mass value=\\\"1025.90550\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"103\\\"> <mass value=\\\"102.905504\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pd\\\" atomic-number=\\\"46\\\"> <natural-abundance> <mass value=\\\"106.42\\\" error=\\\"0.01\\\" /> <isotope mass-number=\\\"102\\\"> <mass value=\\\"101.905607\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0102\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"104\\\"> <mass value=\\\"103.904034\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.1114\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"105\\\"> <mass value=\\\"104.905083\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.2233\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"106\\\"> <mass value=\\\"105.903484\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.2733\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"108\\\"> <mass value=\\\"107.903895\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.2646\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"110\\\"> <mass value=\\\"109.905153\\\" error=\\\"0.000012\\\" /> <abundance value=\\\"0.1172\\\" error=\\\"0.0009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ag\\\" atomic-number=\\\"47\\\"> <natural-abundance> <mass value=\\\"107.8682\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"107\\\"> <mass value=\\\"106.905093\\\" error=\\\"0.000006\\\" /> <abundance value=\\\"0.51839\\\" error=\\\"0.00008\\\" /> </isotope> <isotope mass-number=\\\"109\\\"> <mass value=\\\"108.904756\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.48161\\\" error=\\\"0.00008\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cd\\\" atomic-number=\\\"48\\\"> <natural-abundance> <mass value=\\\"112.411\\\" error=\\\"0.008\\\" /> <isotope mass-number=\\\"106\\\"> <mass value=\\\"105.906458\\\" error=\\\"0.000006\\\" /> <abundance value=\\\"0.0125\\\" error=\\\"0.0006\\\" /> </isotope> <isotope mass-number=\\\"108\\\"> <mass value=\\\"107.904183\\\" error=\\\"0.000006\\\" /> <abundance value=\\\"0.0089\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"110\\\"> <mass value=\\\"109.903006\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1249\\\" error=\\\"0.0018\\\" /> </isotope> <isotope mass-number=\\\"111\\\"> <mass value=\\\"110.904182\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1280\\\" error=\\\"0.0012\\\" /> </isotope> <isotope mass-number=\\\"112\\\"> <mass value=\\\"111.9027577\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.2413\\\" error=\\\"0.0021\\\" /> </isotope> <isotope mass-number=\\\"113\\\"> <mass value=\\\"112.9044014\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.1222\\\" error=\\\"0.0012\\\" /> </isotope> <isotope mass-number=\\\"114\\\"> <mass value=\\\"113.9033586\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.2873\\\" error=\\\"0.0042\\\" /> </isotope> <isotope mass-number=\\\"116\\\"> <mass value=\\\"115.904756\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0749\\\" error=\\\"0.0018\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"In\\\" atomic-number=\\\"49\\\"> <natural-abundance> <mass value=\\\"114.818\\\" error=\\\"0.003\\\" /> <isotope mass-number=\\\"113\\\"> <mass value=\\\"112.904062\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0429\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"115\\\"> <mass value=\\\"114.903879\\\" error=\\\"0.000040\\\" /> <abundance value=\\\"0.9571\\\" error=\\\"0.0005\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sn\\\" atomic-number=\\\"50\\\"> <natural-abundance> <mass value=\\\"118.710\\\" error=\\\"0.007\\\" /> <isotope mass-number=\\\"112\\\"> <mass value=\\\"111.904822\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.0097\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"114\\\"> <mass value=\\\"113.902783\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0066\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"115\\\"> <mass value=\\\"114.903347\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0034\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"116\\\"> <mass value=\\\"115.901745\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1454\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"117\\\"> <mass value=\\\"116.902955\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0768\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"118\\\"> <mass value=\\\"117.901608\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2422\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"119\\\"> <mass value=\\\"118.903311\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0859\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"120\\\"> <mass value=\\\"119.9021985\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.3258\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"122\\\"> <mass value=\\\"121.9034411\\\" error=\\\"0.0000029\\\" /> <abundance value=\\\"0.0463\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"124\\\"> <mass value=\\\"123.9052745\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.0579\\\" error=\\\"0.0005\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sb\\\" atomic-number=\\\"51\\\"> <natural-abundance> <mass value=\\\"121.760\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"121\\\"> <mass value=\\\"120.9038222\\\" error=\\\"0.0000026\\\" /> <abundance value=\\\"0.5721\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"123\\\"> <mass value=\\\"122.9042160\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.4279\\\" error=\\\"0.0005\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Te\\\" atomic-number=\\\"52\\\"> <natural-abundance> <mass value=\\\"127.60\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"120\\\"> <mass value=\\\"119.904026\\\" error=\\\"0.000011\\\" /> <abundance value=\\\"0.0009\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"122\\\"> <mass value=\\\"121.9030558\\\" error=\\\"0.0000029\\\" /> <abundance value=\\\"0.0255\\\" error=\\\"0.0012\\\" /> </isotope> <isotope mass-number=\\\"123\\\"> <mass value=\\\"122.9042711\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.0089\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"124\\\"> <mass value=\\\"123.9028188\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0474\\\" error=\\\"0.0014\\\" /> </isotope> <isotope mass-number=\\\"125\\\"> <mass value=\\\"124.9044241\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.0707\\\" error=\\\"0.0015\\\" /> </isotope> <isotope mass-number=\\\"126\\\"> <mass value=\\\"125.9033049\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.1884\\\" error=\\\"0.0025\\\" /> </isotope> <isotope mass-number=\\\"128\\\"> <mass value=\\\"127.9044615\\\" error=\\\"0.0000019\\\" /> <abundance value=\\\"0.3174\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"130\\\"> <mass value=\\\"129.9062229\\\" error=\\\"0.0000021\\\" /> <abundance value=\\\"0.3408\\\" error=\\\"0.0062\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"I\\\" atomic-number=\\\"53\\\"> <natural-abundance> <mass value=\\\"126.90447\\\" error=\\\"0.00003\\\" /> <isotope mass-number=\\\"127\\\"> <mass value=\\\"126.904468\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Xe\\\" atomic-number=\\\"54\\\"> <natural-abundance> <mass value=\\\"131.293\\\" error=\\\"0.006\\\" /> <isotope mass-number=\\\"124\\\"> <mass value=\\\"123.9058954\\\" error=\\\"0.0000021\\\" /> <abundance value=\\\"0.000952\\\" error=\\\"0.000003\\\" /> </isotope> <isotope mass-number=\\\"126\\\"> <mass value=\\\"125.904268\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.000890\\\" error=\\\"0.000002\\\" /> </isotope> <isotope mass-number=\\\"128\\\"> <mass value=\\\"127.9035305\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.019102\\\" error=\\\"0.000008\\\" /> </isotope> <isotope mass-number=\\\"129\\\"> <mass value=\\\"128.9047799\\\" error=\\\"0.0000009\\\" /> <abundance value=\\\"0.264006\\\" error=\\\"0.000082\\\" /> </isotope> <isotope mass-number=\\\"130\\\"> <mass value=\\\"129.9035089\\\" error=\\\"0.0000011\\\" /> <abundance value=\\\"0.040710\\\" error=\\\"0.000013\\\" /> </isotope> <isotope mass-number=\\\"131\\\"> <mass value=\\\"130.9050828\\\" error=\\\"0.0000018\\\" /> <abundance value=\\\"0.212324\\\" error=\\\"0.000030\\\" /> </isotope> <isotope mass-number=\\\"132\\\"> <mass value=\\\"131.9041546\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.269086\\\" error=\\\"0.000033\\\" /> </isotope> <isotope mass-number=\\\"134\\\"> <mass value=\\\"133.9053945\\\" error=\\\"0.0000009\\\" /> <abundance value=\\\"0.104357\\\" error=\\\"0.000021\\\" /> </isotope> <isotope mass-number=\\\"136\\\"> <mass value=\\\"135.907220\\\" error=\\\"0.000008\\\" /> <abundance value=\\\"0.088573\\\" error=\\\"0.000044\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cs\\\" atomic-number=\\\"55\\\"> <natural-abundance> <mass value=\\\"132.90545\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"133\\\"> <mass value=\\\"132.905447\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ba\\\" atomic-number=\\\"56\\\"> <natural-abundance> <mass value=\\\"137.327\\\" error=\\\"0.007\\\" /> <isotope mass-number=\\\"130\\\"> <mass value=\\\"129.906311\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.00106\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"132\\\"> <mass value=\\\"131.905056\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.00101\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"134\\\"> <mass value=\\\"133.904504\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.02417\\\" error=\\\"0.00018\\\" /> </isotope> <isotope mass-number=\\\"135\\\"> <mass value=\\\"134.905684\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.000003\\\" error=\\\"0.00012\\\" /> </isotope> <isotope mass-number=\\\"136\\\"> <mass value=\\\"135.904571\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.07854\\\" error=\\\"0.00024\\\" /> </isotope> <isotope mass-number=\\\"137\\\"> <mass value=\\\"136.905822\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.11232\\\" error=\\\"0.00024\\\" /> </isotope> <isotope mass-number=\\\"138\\\"> <mass value=\\\"137.905242\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.71698\\\" error=\\\"0.00042\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"La\\\" atomic-number=\\\"57\\\"> <natural-abundance> <mass value=\\\"138.9055\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"138\\\"> <mass value=\\\"137.907108\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00090\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"139\\\"> <mass value=\\\"138.906349\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.99910\\\" error=\\\"0.00001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ce\\\" atomic-number=\\\"58\\\"> <natural-abundance> <mass value=\\\"140.116\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"136\\\"> <mass value=\\\"135.907140\\\" error=\\\"0.000050\\\" /> <abundance value=\\\"0.00185\\\" error=\\\"0.00002\\\" /> </isotope> <isotope mass-number=\\\"138\\\"> <mass value=\\\"137.905986\\\" error=\\\"0.000011\\\" /> <abundance value=\\\"0.00251\\\" error=\\\"0.00002\\\" /> </isotope> <isotope mass-number=\\\"140\\\"> <mass value=\\\"139.905\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.88450\\\" error=\\\"0.00051\\\" /> </isotope> <isotope mass-number=\\\"142\\\"> <mass value=\\\"141.909241\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.11114\\\" error=\\\"0.00051\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pr\\\" atomic-number=\\\"59\\\"> <natural-abundance> <mass value=\\\"140.90765\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"141\\\"> <mass value=\\\"140.907648\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Nd\\\" atomic-number=\\\"60\\\"> <natural-abundance> <mass value=\\\"144.24\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"142\\\"> <mass value=\\\"141.907719\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.272\\\" error=\\\"0.005\\\" /> </isotope> <isotope mass-number=\\\"143\\\"> <mass value=\\\"142.909810\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.122\\\" error=\\\"0.002\\\" /> </isotope> <isotope mass-number=\\\"144\\\"> <mass value=\\\"143.910083\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.238\\\" error=\\\"0.003\\\" /> </isotope> <isotope mass-number=\\\"145\\\"> <mass value=\\\"144.912569\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.083\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"146\\\"> <mass value=\\\"145.913113\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.172\\\" error=\\\"0.003\\\" /> </isotope> <isotope mass-number=\\\"148\\\"> <mass value=\\\"147.916889\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.057\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"150\\\"> <mass value=\\\"149.920887\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.056\\\" error=\\\"0.002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sm\\\" atomic-number=\\\"62\\\"> <natural-abundance> <mass value=\\\"150.36\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"144\\\"> <mass value=\\\"143.911996\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0307\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"147\\\"> <mass value=\\\"146.914894\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1499\\\" error=\\\"0.0018\\\" /> </isotope> <isotope mass-number=\\\"148\\\"> <mass value=\\\"147.914818\\\" error=\\\"0.1124\\\" /> <abundance value=\\\"0.1124\\\" error=\\\"0.0010\\\" /> </isotope> <isotope mass-number=\\\"149\\\"> <mass value=\\\"148.917180\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1382\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"150\\\"> <mass value=\\\"149.917272\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0738\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"152\\\"> <mass value=\\\"151.919729\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2675\\\" error=\\\"0.0016\\\" /> </isotope> <isotope mass-number=\\\"154\\\"> <mass value=\\\"153.922206\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2275\\\" error=\\\"0.0029\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Eu\\\" atomic-number=\\\"63\\\"> <natural-abundance> <mass value=\\\"151.964\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"151\\\"> <mass value=\\\"150.919846\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.4781\\\" error=\\\"0.0006\\\" /> </isotope> <isotope mass-number=\\\"153\\\"> <mass value=\\\"152.921227\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.5219\\\" error=\\\"0.0006\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Gd\\\" atomic-number=\\\"64\\\"> <natural-abundance> <mass value=\\\"157.25\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"152\\\"> <mass value=\\\"151.919789\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0020\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"154\\\"> <mass value=\\\"153.920862\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0218\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"155\\\"> <mass value=\\\"154.922619\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1480\\\" error=\\\"0.0012\\\" /> </isotope> <isotope mass-number=\\\"156\\\"> <mass value=\\\"155.922120\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2047\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"157\\\"> <mass value=\\\"156.923957\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1565\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"158\\\"> <mass value=\\\"157.924101\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2484\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"160\\\"> <mass value=\\\"159.927051\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2186\\\" error=\\\"0.0019\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Tb\\\" atomic-number=\\\"65\\\"> <natural-abundance> <mass value=\\\"158.92534\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"159\\\"> <mass value=\\\"158.925343\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Dy\\\" atomic-number=\\\"66\\\"> <natural-abundance> <mass value=\\\"162.500\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"156\\\"> <mass value=\\\"155.924278\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.00056\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"158\\\"> <mass value=\\\"157.924405\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00095\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"160\\\"> <mass value=\\\"159.925194\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.02329\\\" error=\\\"0.00018\\\" /> </isotope> <isotope mass-number=\\\"161\\\"> <mass value=\\\"160.926930\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.18889\\\" error=\\\"0.00042\\\" /> </isotope> <isotope mass-number=\\\"162\\\"> <mass value=\\\"161.926795\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.25475\\\" error=\\\"0.00036\\\" /> </isotope> <isotope mass-number=\\\"163\\\"> <mass value=\\\"162.928728\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.24896\\\" error=\\\"0.00042\\\" /> </isotope> <isotope mass-number=\\\"164\\\"> <mass value=\\\"163.929171\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.28260\\\" error=\\\"0.00054\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ho\\\" atomic-number=\\\"67\\\"> <natural-abundance> <mass value=\\\"164.93032\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"165\\\"> <mass value=\\\"164.930319\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Er\\\" atomic-number=\\\"68\\\"> <natural-abundance> <mass value=\\\"167.259\\\" error=\\\"0.003\\\" /> <isotope mass-number=\\\"162\\\"> <mass value=\\\"161.928775\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00139\\\" error=\\\"0.00005\\\" /> </isotope> <isotope mass-number=\\\"164\\\"> <mass value=\\\"163.929197\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.01601\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"166\\\"> <mass value=\\\"165.930290\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.33503\\\" error=\\\"0.00036\\\" /> </isotope> <isotope mass-number=\\\"167\\\"> <mass value=\\\"166.932046\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.22869\\\" error=\\\"0.00009\\\" /> </isotope> <isotope mass-number=\\\"168\\\"> <mass value=\\\"167.932368\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.26978\\\" error=\\\"0.00018\\\" /> </isotope> <isotope mass-number=\\\"170\\\"> <mass value=\\\"169.935461\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.14910\\\" error=\\\"0.00036\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Tm\\\" atomic-number=\\\"69\\\"> <natural-abundance> <mass value=\\\"168.93421\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"169\\\"> <mass value=\\\"168.934211\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Yb\\\" atomic-number=\\\"70\\\"> <natural-abundance> <mass value=\\\"173.04\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"168\\\"> <mass value=\\\"167.933895\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.0013\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"170\\\"> <mass value=\\\"169.934759\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0304\\\" error=\\\"0.0015\\\" /> </isotope> <isotope mass-number=\\\"171\\\"> <mass value=\\\"170.936323\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1428\\\" error=\\\"0.0057\\\" /> </isotope> <isotope mass-number=\\\"172\\\"> <mass value=\\\"171.936378\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2183\\\" error=\\\"0.0067\\\" /> </isotope> <isotope mass-number=\\\"173\\\"> <mass value=\\\"172.938207\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1613\\\" error=\\\"0.0027\\\" /> </isotope> <isotope mass-number=\\\"174\\\"> <mass value=\\\"173.938858\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.3183\\\" error=\\\"0.0092\\\" /> </isotope> <isotope mass-number=\\\"176\\\"> <mass value=\\\"175.942569\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1276\\\" error=\\\"0.0041\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Lu\\\" atomic-number=\\\"71\\\"> <natural-abundance> <mass value=\\\"174.967\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"175\\\"> <mass value=\\\"174.9407682\\\" error=\\\"0.0000028\\\" /> <abundance value=\\\"0.9741\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"176\\\"> <mass value=\\\"175.9426827\\\" error=\\\"0.0000028\\\" /> <abundance value=\\\"0.0259\\\" error=\\\"0.0002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Hf\\\" atomic-number=\\\"72\\\"> <natural-abundance> <mass value=\\\"178.49\\\" error=\\\"0.02\\\" /> <isotope mass-number=\\\"174\\\"> <mass value=\\\"173.940042\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0016\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"176\\\"> <mass value=\\\"175.941403\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0526\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"177\\\"> <mass value=\\\"176.9432204\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.1860\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"178\\\"> <mass value=\\\"177.9436981\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.2728\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"179\\\"> <mass value=\\\"178.9488154\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.1362\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"180\\\"> <mass value=\\\"179.9465488\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.3508\\\" error=\\\"0.0016\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ta\\\" atomic-number=\\\"73\\\"> <natural-abundance> <mass value=\\\"180.9479\\\" error=\\\"0.0001\\\" /> <isotope mass-number=\\\"180\\\"> <mass value=\\\"179.947466\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.00012\\\" error=\\\"0.00002\\\" /> </isotope> <isotope mass-number=\\\"181\\\"> <mass value=\\\"180.947996\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.99988\\\" error=\\\"0.00002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"W\\\" atomic-number=\\\"74\\\"> <natural-abundance> <mass value=\\\"183.84\\\" error=\\\"0.01\\\" /> <isotope mass-number=\\\"180\\\"> <mass value=\\\"179.946706\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.0012\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"182\\\"> <mass value=\\\"181.948205\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.265\\\" error=\\\"0.0016\\\" /> </isotope> <isotope mass-number=\\\"183\\\"> <mass value=\\\"182.9502242\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.1431\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"184\\\"> <mass value=\\\"183.9509323\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.3064\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"186\\\"> <mass value=\\\"185.954362\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2843\\\" error=\\\"0.0019\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Re\\\" atomic-number=\\\"75\\\"> <natural-abundance> <mass value=\\\"186.207\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"185\\\"> <mass value=\\\"184.952955\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.3740\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"187\\\"> <mass value=\\\"186.9557505\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.6260\\\" error=\\\"0.0002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Os\\\" atomic-number=\\\"76\\\"> <natural-abundance> <mass value=\\\"190.23\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"184\\\"> <mass value=\\\"183.952491\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0002\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"186\\\"> <mass value=\\\"185.953838\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0159\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"187\\\"> <mass value=\\\"186.9557476\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.0196\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"188\\\"> <mass value=\\\"187.9558357\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.1324\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"189\\\"> <mass value=\\\"188.958145\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1615\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"190\\\"> <mass value=\\\"189.958445\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2626\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"192\\\"> <mass value=\\\"191.961479\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.4078\\\" error=\\\"0.0019\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ir\\\" atomic-number=\\\"77\\\"> <natural-abundance> <mass value=\\\"192.217\\\" error=\\\"0.003\\\" /> <isotope mass-number=\\\"191\\\"> <mass value=\\\"190.960591\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.373\\\" error=\\\"0.002\\\" /> </isotope> <isotope mass-number=\\\"193\\\"> <mass value=\\\"192.962923\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.627\\\" error=\\\"0.002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pt\\\" atomic-number=\\\"78\\\"> <natural-abundance> <mass value=\\\"195.078\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"190\\\"> <mass value=\\\"189.959930\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.00014\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"192\\\"> <mass value=\\\"191.961035\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00782\\\" error=\\\"0.00007\\\" /> </isotope> <isotope mass-number=\\\"194\\\"> <mass value=\\\"193.962663\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.32967\\\" error=\\\"0.00099\\\" /> </isotope> <isotope mass-number=\\\"195\\\"> <mass value=\\\"194.964774\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.33832\\\" error=\\\"0.00010\\\" /> </isotope> <isotope mass-number=\\\"196\\\"> <mass value=\\\"195.964934\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.25242\\\" error=\\\"0.00041\\\" /> </isotope> <isotope mass-number=\\\"198\\\"> <mass value=\\\"197.967875\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.07163\\\" error=\\\"0.00055\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Au\\\" atomic-number=\\\"79\\\"> <natural-abundance> <mass value=\\\"196.96655\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"197\\\"> <mass value=\\\"196.966551\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Hg\\\" atomic-number=\\\"80\\\"> <natural-abundance> <mass value=\\\"200.59\\\" error=\\\"0.02\\\" /> <isotope mass-number=\\\"196\\\"> <mass value=\\\"195.965814\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0015\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"198\\\"> <mass value=\\\"197.966752\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0997\\\" error=\\\"0.0020\\\" /> </isotope> <isotope mass-number=\\\"199\\\"> <mass value=\\\"198.968262\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1687\\\" error=\\\"0.0022\\\" /> </isotope> <isotope mass-number=\\\"200\\\"> <mass value=\\\"199.968309\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2310\\\" error=\\\"0.0019\\\" /> </isotope> <isotope mass-number=\\\"201\\\"> <mass value=\\\"200.970285\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1318\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"202\\\"> <mass value=\\\"201.970625\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2986\\\" error=\\\"0.0026\\\" /> </isotope> <isotope mass-number=\\\"204\\\"> <mass value=\\\"203.973475\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0687\\\" error=\\\"0.0015\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Tl\\\" atomic-number=\\\"81\\\"> <natural-abundance> <mass value=\\\"204.3833\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"203\\\"> <mass value=\\\"202.972329\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2952\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"205\\\"> <mass value=\\\"204.974412\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.7048\\\" error=\\\"0.0001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pb\\\" atomic-number=\\\"82\\\"> <natural-abundance> <mass value=\\\"207.2\\\" error=\\\"0.1\\\" /> <isotope mass-number=\\\"204\\\"> <mass value=\\\"203.973028\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.014\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"206\\\"> <mass value=\\\"205.974449\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.241\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"207\\\"> <mass value=\\\"206.975880\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.221\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"208\\\"> <mass value=\\\"207.976636\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.524\\\" error=\\\"0.001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Bi\\\" atomic-number=\\\"83\\\"> <natural-abundance> <mass value=\\\"208.98038\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"209\\\"> <mass value=\\\"208.980384\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Th\\\" atomic-number=\\\"90\\\"> <natural-abundance> <mass value=\\\"232.0381\\\" error=\\\"0.0001\\\" /> <isotope mass-number=\\\"232\\\"> <mass value=\\\"232.0380495\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pa\\\" atomic-number=\\\"91\\\"> <natural-abundance> <mass value=\\\"231.03588\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"231\\\"> <mass value=\\\"231.03588\\\" error=\\\"0.00002\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"U\\\" atomic-number=\\\"92\\\"> <natural-abundance> <mass value=\\\"238.02891\\\" error=\\\"0.00003\\\" /> <isotope mass-number=\\\"234\\\"> <mass value=\\\"234.0409447\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.000054\\\" error=\\\"0.000005\\\" /> </isotope> <isotope mass-number=\\\"235\\\"> <mass value=\\\"235.0439222\\\" error=\\\"0.0000021\\\" /> <abundance value=\\\"0.007204\\\" error=\\\"0.000006\\\" /> </isotope> <isotope mass-number=\\\"238\\\"> <mass value=\\\"238.0507835\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.992742\\\" error=\\\"0.000010\\\" /> </isotope> </natural-abundance> </entry></atomic-mass-table>\";\n try {\n// this.document = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(in);\n this.document = XMLParser.parse(xmlContent);\n } catch (Exception e) {\n throw new RuntimeException(\"Error reading atomic_system.xml.\");\n }\n\n NodeList nodes = document.getElementsByTagName(\"entry\");\n\n for (int i = 0; i < nodes.getLength(); i++) {\n Node node = nodes.item(i);\n\n String symbol = node.getAttributes().getNamedItem(\"symbol\").getNodeValue();\n\n entries.put(symbol, new Entry(node));\n }\n }", "public ArrayList<Airport> loadXMLFromString(String xml) throws Exception\n\t\t\t{\n\t\t\t DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\t\t DocumentBuilder builder = factory.newDocumentBuilder();\n\t\t\t InputSource is = new InputSource(new StringReader(xml));\n\t\t\t Document airports = builder.parse(is);\n\t\t\t \n\t\t\t //Airport oneAirport = new Airport();\n\t\t\t ArrayList<Airport> allAirports = new ArrayList<Airport>();\n\t\t\t \n\t\t\t NodeList airportlist = airports.getElementsByTagName(\"Airport\");\n\t\t\t \n\t\t\t for(int i=0; i<airportlist.getLength(); i++){\n\t\t\t Airport oneAirport = new Airport();\n\t Element airport=(Element)airportlist.item(i);\n\t /*parse attributes*/\n\t\t\t oneAirport.setCode(airport.getAttribute(\"Code\"));\n\t\t\t oneAirport.setName(airport.getAttribute(\"Name\"));\n\t\t\t /*parse child nodes*/\n\t\t\t oneAirport.setLatitude(Double.parseDouble(airport.getElementsByTagName(\"Latitude\").item(0).getTextContent()));\n\t\t\t oneAirport.setLongitude(Double.parseDouble(airport.getElementsByTagName(\"Longitude\").item(0).getTextContent()));\n\t\t\t allAirports.add(oneAirport);\n\t\t }\n\t\t\t \n\t\t\t return allAirports;\n\t\t\t}", "public static void parseLevelObjectsFromXml(final CandyLevelActivity candyLevel) {\r\n\t\ttry {\r\n\t\t\t// Load the XML into a DOM.\r\n\t\t\tfinal InputStream input = candyLevel.getAssets().open(\"levels/w\" + candyLevel.world + \".xml\");\r\n\t\t\tfinal DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n\t\t\tfinal DocumentBuilder db = dbf.newDocumentBuilder();\r\n\t\t\tfinal Document doc = db.parse(new InputSource(input));\r\n\t\t\tdoc.getDocumentElement().normalize();\r\n\r\n\t\t\t// Get all elements named level.\r\n\t\t\tfinal NodeList levelNodeList = doc.getElementsByTagName(\"l\"); // l = level\r\n\r\n\t\t\t// Select the correct level in the world.\r\n\t\t\tfor (int i = 0; i < levelNodeList.getLength(); i++) {\r\n\t\t\t\tif (Integer.valueOf(((Element) levelNodeList.item(i)).getAttribute(\"id\")) == candyLevel.level) {\r\n\t\t\t\t\tfinal Element currentLevelElement = (Element) levelNodeList.item(i);\r\n\r\n\t\t\t\t\t// Make a list of all child objects.\r\n\t\t\t\t\tfinal NodeList objectNodeList = currentLevelElement.getElementsByTagName(\"o\"); // o = object\r\n\r\n\t\t\t\t\t// Load attributes into an Object[3], then append to objectArrayList.\r\n\t\t\t\t\tfor (int j = 0; j < objectNodeList.getLength(); j++) {\r\n\t\t\t\t\t\tfinal Element currentObjectElement = (Element) objectNodeList.item(j);\r\n\t\t\t\t\t\tcandyLevel.objectList.add(new int[] {Integer.valueOf(currentObjectElement.getAttribute(\"n\")), // n = number indicating type of object\r\n\t\t\t\t\t\t\t\tInteger.valueOf(currentObjectElement.getAttribute(\"r\")), // r = row\r\n\t\t\t\t\t\t\t\tInteger.valueOf(currentObjectElement.getAttribute(\"c\")) // c = column\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tfinal NodeList tutorialNodeList = currentLevelElement.getElementsByTagName(\"h\"); // h = help = tutorial\r\n\t\t\t\t\tfor (int j = 0; j < tutorialNodeList.getLength(); j++) {\r\n\t\t\t\t\t\tfinal Element currentTutorialElement = (Element) tutorialNodeList.item(j);\r\n\t\t\t\t\t\tcandyLevel.tutorialList.add(new String[] {currentTutorialElement.getTextContent(),\r\n\t\t\t\t\t\t\t\tcurrentTutorialElement.getAttribute(\"r\"), // r = row\r\n\t\t\t\t\t\t\t\tcurrentTutorialElement.getAttribute(\"c\") // c = column\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tfinal NodeList toastNodeList = currentLevelElement.getElementsByTagName(\"t\"); // t toast\r\n\t\t\t\t\tif (toastNodeList.getLength()==1) {\r\n\t\t\t\t\t\tcandyLevel.helpTextString = ((Element)toastNodeList.item(0)).getTextContent();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tfinal NodeList moveNodeList = currentLevelElement.getElementsByTagName(\"m\");\r\n\t\t\t\t\tif (moveNodeList.getLength() == 0) {\r\n\t\t\t\t\t\tcandyLevel.advancedMovesFor3Stars = 1;\r\n\t\t\t\t\t\tcandyLevel.basicMovesFor2Stars = 1;\r\n\t\t\t\t\t\tif (CandyUtils.DEBUG) Log.w(TAG, \"Level \" + candyLevel.world + \"-\" + candyLevel.level + \" lacks moves requirements.\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tfinal Element currentMoveElement = (Element)moveNodeList.item(0);\r\n\t\t\t\t\t\tcandyLevel.advancedMovesFor3Stars = Integer.valueOf(currentMoveElement.getAttribute(\"a\"));\r\n\t\t\t\t\t\tcandyLevel.basicMovesFor2Stars = Integer.valueOf(currentMoveElement.getAttribute(\"b\"));\r\n\t\t\t\t\t\tif (CandyUtils.DEBUG) Log.i(TAG, \"Move requirements: \" + candyLevel.advancedMovesFor3Stars + \", \" + candyLevel.basicMovesFor2Stars);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t} else if (i + 1 == levelNodeList.getLength()) {\r\n\t\t\t\t\tthrow new Exception(\"Missing level \" + candyLevel.world + \"-\" + candyLevel.level + \"!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tif (CandyUtils.DEBUG) Log.e(TAG, \"XML FAIL!\", e);\r\n\t\t\tToast.makeText(candyLevel.getApplicationContext(), \"Failed to load level.\", Toast.LENGTH_LONG).show();\r\n\t\t\tif (!(candyLevel.world == 1 & candyLevel.level == 1)) {\r\n\t\t\t\tcandyLevel.world = 1;\r\n\t\t\t\tcandyLevel.level = 1;\r\n\t\t\t\tparseLevelObjectsFromXml(candyLevel);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static MxAcmt00400101 parse(String xml) {\n return ((MxAcmt00400101) com.prowidesoftware.swift.model.mx.MxReadImpl.parse(MxAcmt00400101 .class, xml, _classes, new com.prowidesoftware.swift.model.mx.MxReadParams()));\n }", "public static MxAcmt00400101 parse(String xml, MxReadConfiguration conf) {\n return ((MxAcmt00400101) com.prowidesoftware.swift.model.mx.MxReadImpl.parse(MxAcmt00400101 .class, xml, _classes, new com.prowidesoftware.swift.model.mx.MxReadParams(conf)));\n }", "public static void readXML(){\n try{\n Document doc = getDoc(\"config.xml\");\n Element root = doc.getRootElement();\n\n //Muestra los elementos dentro de la configuracion del xml\n \n System.out.println(\"Color : \" + root.getChildText(\"color\"));\n System.out.println(\"Pattern : \" + root.getChildText(\"pattern\"));\n System.out.println(\"Background : \" + root.getChildText(\"background\"));\n \n\n } catch(Exception e){\n System.out.println(e.getMessage());\n }\n }", "public void setCredits(double credits) {\n this.credits = credits;\n }", "public MxAcmt00400101(final String xml) {\n this();\n MxAcmt00400101 tmp = parse(xml);\n getAcctDtlsV01 = tmp.getGetAcctDtlsV01();\n }", "public void getXmlFromStream (BufferedReader reader){\n\n String tmpDate = null;\n String strDate = null;\n Date date = null;\n\n try{\n XmlPullParserFactory factory = XmlPullParserFactory.newInstance();\n XmlPullParser xpp = factory.newPullParser();\n\n // point the parser to our file.\n xpp.setInput(reader);\n // get initial eventType\n int eventType = xpp.getEventType();\n\n // process tag while not reaching the end of document\n while(eventType != XmlPullParser.END_DOCUMENT) {\n switch(eventType) {\n // at start of document: START_DOCUMENT\n case XmlPullParser.START_DOCUMENT:\n //study = new Study();\n break;\n\n // at start of a tag: START_TAG\n case XmlPullParser.START_TAG:\n // get tag name\n String tagName = xpp.getName();\n\n // if <Cube>, get attribute: 'currency'\n if(tagName.equalsIgnoreCase(KEY_CUBE)) {\n if(strDate == null){\n strDate = xpp.getAttributeValue(null, KEY_DATE);\n }\n\n String currency = xpp.getAttributeValue(null, KEY_CURRENCY);\n String rate = xpp.getAttributeValue(null, KEY_RATE);\n if(currency != null) {\n\n // Create new object\n date = createDate(strDate); // Create date\n double doubleRate = Double.parseDouble(rate); // Convert string to double\n cubes.add(new CubeXML(new Date(),currency, doubleRate)); // Create object and store in list\n }\n }\n break;\n }\n // jump to next event\n eventType = xpp.next();\n }\n\n // Add euro\n cubes.add(new CubeXML(date, \"Euro\",1));\n\n } catch (XmlPullParserException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public static void load() {\r\n\t\ttransList = new ArrayList<Transaction>();\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"loading all trans...\");\r\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(\"src/transaction.csv\"));\r\n\t\t\treader.readLine();\r\n\t\t\tString line = null;\r\n\t\t\twhile ((line = reader.readLine()) != null) {\r\n\t\t\t\tString item[] = line.split(\",\");\r\n\t\t\t\tString type = item[0];\r\n\t\t\t\tint acc = Integer.parseInt(item[1]);\r\n\t\t\t\tdouble amount = Double.parseDouble(item[2]);\r\n\t\t\t\tint year = Integer.parseInt(item[3]);\r\n\t\t\t\tint month = Integer.parseInt(item[4]);\r\n\t\t\t\tint date = Integer.parseInt(item[5]);\r\n\t\t\t\tCalendar cal = Calendar.getInstance();\r\n\t\t\t\tcal.set(year, month - 1, date);\r\n\t\t\t\tif (type.charAt(0) == 'w') {\r\n\t\t\t\t\tWithdrawal trans = new Withdrawal(acc, amount, cal);\r\n\t\t\t\t\ttransList.add(trans);\r\n\t\t\t\t\tSystem.out.println(trans.toFile());\r\n\t\t\t\t} else if (type.charAt(0) == 'd') {\r\n\t\t\t\t\tboolean cleared = Boolean.parseBoolean(item[6]);\r\n\t\t\t\t\tDeposit trans = new Deposit(acc, amount, cal, cleared);\r\n\t\t\t\t\ttransList.add(trans);\r\n\t\t\t\t\tSystem.out.println(trans.toFile());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treader.close();\r\n\t\t\tSystem.out.println(\"loading finished\");\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private CardParser() throws ParserConfigurationException, IOException, SAXException{\n\n InputStream configStream = getClass().getClassLoader().getResourceAsStream(\"config.xml\");\n DocumentBuilderFactory domBuilderFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder domBuilder = domBuilderFactory.newDocumentBuilder();\n Document dom = domBuilder.parse(configStream);\n dom.getDocumentElement().normalize();\n config = getChildNode(\"config\", dom)\n .orElseThrow(() -> new IllegalConfigXMLException(\"Missing root config node\"));\n }", "public void parse() throws ParserConfigurationException, SAXException, IOException, XMLStreamException {\n\t\tString currentElem = null;\n\t\tCard card = null;\n\t\tType type = null;\n\t\tAuthor author = null;\n\n\t\tXMLInputFactory xmlFactory = XMLInputFactory.newInstance();\n\t\tXMLEventReader xmlReader = xmlFactory.createXMLEventReader(new StreamSource(xmlFileName));\n\n\t\twhile (xmlReader.hasNext()) {\n\t\t\tXMLEvent event = xmlReader.nextEvent();\n\n\t\t\tif (event.isCharacters() && event.asCharacters().isWhiteSpace()) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (event.isStartElement()) {\n\t\t\t\tStartElement startElement = event.asStartElement();\n\t\t\t\tcurrentElem = startElement.getName().getLocalPart();\n\n\t\t\t\tif (currentElem.equals(\"OldCards\")) {\n\t\t\t\t\toldCards = new OldCards();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (currentElem.equals(\"Card\")) {\n\t\t\t\t\tcard = new Card();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (currentElem.equals(\"Type\")) {\n\t\t\t\t\ttype = new Type();\n\t\t\t\t\tAttribute attribute = startElement.getAttributeByName(new QName(\"send\"));\n\t\t\t\t\tif (attribute != null) {\n\t\t\t\t\t\ttype.setSend(Boolean.parseBoolean(attribute.getValue()));\n\t\t\t\t\t}\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (currentElem.equals(\"Author\")) {\n\t\t\t\t\tauthor = new Author();\n\t\t\t\t\tAttribute attribute = startElement.getAttributeByName(new QName(\"famous\"));\n\t\t\t\t\tif (attribute != null) {\n\t\t\t\t\t\tauthor.setFamous(Boolean.parseBoolean(attribute.getValue()));\n\t\t\t\t\t}\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (event.isCharacters()) {\n\t\t\t\tCharacters characters = event.asCharacters();\n\n\t\t\t\tif (currentElem.equals(\"Thema\")) {\n\t\t\t\t\tcard.setThema(characters.getData());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (currentElem.equals(\"Type\")) {\n\t\t\t\t\ttype.setType(characters.getData());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (currentElem.equals(\"Country\")) {\n\t\t\t\t\tcard.setCountry(characters.getData());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (currentElem.equals(\"Year\")) {\n\t\t\t\t\tcard.setYear(Integer.parseInt(characters.getData()));\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (currentElem.equals(\"Author\")) {\n\t\t\t\t\tauthor.setName(characters.getData());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (currentElem.equals(\"Valuable\")) {\n\t\t\t\t\tcard.setValuable(characters.getData());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (event.isEndElement()) {\n\t\t\t\tEndElement endElement = event.asEndElement();\n\t\t\t\tString localName = endElement.getName().getLocalPart();\n\n\t\t\t\tif (localName.equals(\"Card\")) {\n\t\t\t\t\toldCards.getCards().add(card);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (localName.equals(\"Type\")) {\n\t\t\t\t\tcard.setType(type);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (localName.equals(\"Author\")) {\n\t\t\t\t\tcard.getAuthors().add(author);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\txmlReader.close();\n\t}", "public void parseFile(String chemin) {\n try {\n XMLReader xr = XMLReaderFactory.createXMLReader();\n CarburantsParser SaxRead = new CarburantsParser();\n\n xr.setContentHandler(SaxRead);\n xr.parse(chemin);\n\n this.listOfLists = SaxRead.getListOfLists();\n\n LOGGER.info(\"Parsing Ok\");\n\n this.notifyObservers();\n\n } catch (Exception e) {\n LOGGER.error(\"Problème lors du parsing : \" + e);\n }\n }", "LinkedList<Data> getDataConfirm(){\r\n FileInputStream xx = null;\r\n try {\r\n xx = new FileInputStream(\"dataConfirm.xml\");\r\n // harus diingat objek apa yang dahulu disimpan di file \r\n // program untuk membaca harus sinkron dengan program\r\n // yang dahulu digunakan untuk menyimpannya\r\n int isi;\r\n char charnya;\r\n String stringnya;\r\n // isi file dikembalikan menjadi string\r\n stringnya =\"\";\r\n while ((isi = xx.read()) != -1) {\r\n charnya= (char) isi;\r\n stringnya = stringnya + charnya;\r\n } \r\n // string isi file dikembalikan menjadi larik double\r\n return (LinkedList<Data>) xstream.fromXML(stringnya);\t \r\n }\r\n catch (Exception e){\r\n System.err.println(\"test: \"+e.getMessage());\r\n }\r\n finally{\r\n if(xx != null){\r\n try{\r\n xx.close();\r\n }\r\n catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n } \r\n } \r\n return null;\r\n \r\n }", "public MxAuth05300101(final String xml) {\n this();\n MxAuth05300101 tmp = parse(xml);\n finInstrmRptgTradgVolCapRsltRpt = tmp.getFinInstrmRptgTradgVolCapRsltRpt();\n }", "public MxSeev03400211(final String xml) {\n this();\n MxSeev03400211 tmp = parse(xml);\n corpActnInstrStsAdvc = tmp.getCorpActnInstrStsAdvc();\n }", "@Override\n public void parseXml(Element ele, LoadContext lc) {\n\n }", "public void credits() {\n\t}", "public Repository fromXml(String file) {\n File xmlFile = new File(file);\n Repository repository = new Repository();\n Contracts contracts = null;\n JAXBContext jaxbContext;\n try {\n jaxbContext = JAXBContext.newInstance(Contracts.class);\n Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();\n if (!xmlFile.exists()) System.out.println(\"File does not exist\");\n assert jaxbUnmarshaller != null;\n contracts = (Contracts) jaxbUnmarshaller.unmarshal(xmlFile);\n } catch (JAXBException e) {\n e.printStackTrace();\n }\n assert contracts != null;\n repository.setArrayList((ArrayList<Contract>) contracts.getContractList());\n\n return repository;\n\n }", "public MxCain00300101(final String xml) {\n this();\n MxCain00300101 tmp = parse(xml);\n acqrrFinInitn = tmp.getAcqrrFinInitn();\n }", "public List<ExchangeRate> parseRates(InputStream xml, String currency) {\n List<ExchangeRate> rates = new ArrayList<ExchangeRate>();\n\n try {\n XMLInputFactory factory = XMLInputFactory.newInstance();\n XMLStreamReader r = factory.createXMLStreamReader(xml);\n try {\n int event = r.getEventType();\n String date = null;\n boolean matchCurrency = false;\n boolean continueParse = true;\n while (continueParse) {\n if (event == XMLStreamConstants.START_ELEMENT) {\n // Both the date and rates use the Cube element\n if (r.getLocalName().equals(\"Cube\")) {\n for(int i = 0, n = r.getAttributeCount(); i < n; ++i) {\n // First mark the date\n if (r.getAttributeLocalName(i).equals(\"time\")) {\n date = r.getAttributeValue(i);\n }\n\n // Now get the currency\n if ((r.getAttributeLocalName(i).equals(\"currency\")) && r.getAttributeValue(i).equals(currency)) {\n matchCurrency = true;\n }\n\n // Finally, get the rate and add to the list\n if (r.getAttributeLocalName(i).equals(\"rate\")) {\n if (matchCurrency) {\n ExchangeRate rate = new ExchangeRate(date, currency, Double.parseDouble(r.getAttributeValue(i)));\n rates.add(rate);\n matchCurrency = false;\n }\n\n }\n }\n }\n }\n\n if (!r.hasNext()) {\n continueParse = false;\n } else {\n event = r.next();\n }\n }\n } finally {\n r.close();\n }\n } catch (Exception e) {\n Logger.error(\"Error parsing XML\", e);\n }\n\n\n return rates;\n }", "void loadXML(String path,\n SourceParameters parameters)\n throws SAXException, ProcessingException, IOException;", "public void initComponents() {\n\t\t\n\t\tDocumentBuilder builder;\n\t\tDocumentBuilderFactory factory =DocumentBuilderFactory.newInstance();\n\t\tElement root;\n\t\tNodeList modules;\n\t\tint indexNodes;\n\t\t\n\t\ttry {\n\t\t\t\tbuilder = factory.newDocumentBuilder();\n\t\t\t\tDocument document =builder.parse(\n\t\t\t\tClassLoader.getSystemResourceAsStream(m_fileModuleNameStructure));\n\t\t\t\t\n\t\t\t\t\n\t\t\t\troot = document.getDocumentElement();\n\t\t\t\tmodules = root.getElementsByTagName(\"module\");\n\t\t\t\t\n\t\t\t\tfor(indexNodes = 0; indexNodes < modules.getLength(); indexNodes++)\n\t\t\t\t\tparseDataOneModule(modules.item(indexNodes));\n\t\t\t\t\n\t\t\t\t\n\t\t} \n\t\tcatch (ParserConfigurationException e) \n\t\t{\n\t\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t} catch (SAXException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t}", "void bukaXoxo(){\r\n FileInputStream xx = null;\r\n try {\r\n xx = new FileInputStream(\"xoxo.xml\");\r\n // harus diingat objek apa yang dahulu disimpan di file \r\n // program untuk membaca harus sinkron dengan program\r\n // yang dahulu digunakan untuk menyimpannya\r\n int isi;\r\n char charnya;\r\n String stringnya;\r\n // isi file dikembalikan menjadi string\r\n stringnya =\"\";\r\n while ((isi = xx.read()) != -1) {\r\n charnya= (char) isi;\r\n stringnya = stringnya + charnya;\r\n } \r\n // string isi file dikembalikan menjadi larik double\r\n resi = (String) xstream.fromXML(stringnya);\t \r\n }\r\n catch (Exception e){\r\n System.err.println(\"test: \"+e.getMessage());\r\n }\r\n finally{\r\n if(xx != null){\r\n try{\r\n xx.close();\r\n }\r\n catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n } \r\n } \r\n \r\n }", "private void loadCheckingAccounts(String checkingAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(checkingAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //reading...\n String currentLine = input.nextLine();\n\n //parse on commas\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data...\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n int overdraftSavingsAccountId = Integer.parseInt(splitLine[5]);\n boolean isGoldDiamond = Boolean.parseBoolean(splitLine[6]);\n\n Checking checkingAccount = new Checking(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n overdraftSavingsAccountId,\n isGoldDiamond);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n checkingAccount.setTransactions(accountTransactions);\n\n //add checking account...\n accounts.add(checkingAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "private void loadCDAccounts(String cdAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(cdAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //reading...\n String currentLine = input.nextLine();\n\n //parse on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parse out data...\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n Date startDate = dateFormat.parse(splitLine[5]);\n Date endDate = dateFormat.parse(splitLine[6]);\n\n CD cdAccount = new CD(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n startDate,\n endDate);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n cdAccount.setTransactions(accountTransactions);\n\n //add CD Accounts...\n accounts.add(cdAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "public static MxCain00300101 parse(String xml, MxReadConfiguration conf) {\n return ((MxCain00300101) com.prowidesoftware.swift.model.mx.MxReadImpl.parse(MxCain00300101 .class, xml, _classes, new com.prowidesoftware.swift.model.mx.MxReadParams(conf)));\n }", "public static InputStream tmxFromXML(final CandyLevelActivity candyLevel, final int world, final int level) {\n\t\ttry {\r\n\t\t\tfinal InputStream input = candyLevel.getAssets().open(\"levels/w\" + world + \".xml\");\r\n\t\t\tfinal DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n\t\t\tfinal DocumentBuilder db = dbf.newDocumentBuilder();\r\n\t\t\tfinal Document doc = db.parse(new InputSource(input));\r\n\t\t\tdoc.getDocumentElement().normalize();\r\n\t\t\tfinal NodeList levelNodeList = doc.getElementsByTagName(\"l\");\r\n\t\t\tfor (int i = 0; i < levelNodeList.getLength(); i++) {\r\n\t\t\t\tif (Integer.valueOf(((Element) levelNodeList.item(i)).getAttribute(\"id\")) == level) {\r\n\t\t\t\t\tfinal Element currentLevelElement = (Element) levelNodeList.item(i);\r\n\t\t\t\t\tfinal NodeList nodeList = currentLevelElement.getElementsByTagName(\"c\");\r\n\t\t\t\t\treturn new ByteArrayInputStream(((Element) nodeList.item(0)).getTextContent().getBytes());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tthrow new Exception(\"Missing level \" + world + \"-\" + level + \"!\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tif (CandyUtils.DEBUG) Log.e(TAG, \"Failed to load TMX, loading default.\", e);\r\n\t\t\treturn new ByteArrayInputStream(\"H4sIAAAAAAAAA2NkYGBgpDGmFRg1f9R8aptPzXQ9HMNn1PxR80k1n5qYCYiZkfgAkQjLUsAGAAA=\".getBytes());\r\n\t\t}\r\n\t}", "public Account load() throws IOException {\n Account account = new Account();\n try {\n FileReader fileReader = new FileReader(fileName);\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n //if (line.contains(\"#\")) { continue; }\n String[] info = line.split(\" @ \");\n\n switch (info[0]) {\n case \"INIT\":\n account.setToInitialize(Boolean.parseBoolean(info[1]));\n break;\n case \"BS\":\n account.setBaseSavings(Float.parseFloat((info[1])));\n break;\n case \"INC\":\n parseIncome(info, account);\n break;\n case \"EXP\":\n parseExpenditure(info, account);\n break;\n case \"G\":\n parseGoal(info, account);\n break;\n case \"INS\":\n parseInstalment(info, account);\n break;\n case \"LOA\":\n parseLoan(info, account);\n break;\n case \"BAN\":\n parseBankAccount(info, account);\n break;\n default:\n throw new DukeException(\"OOPS!! Your file has been corrupted/ input file is invalid!\");\n }\n }\n bufferedReader.close();\n } catch (FileNotFoundException err) {\n final File parentDir = new File(\"dataFG\");\n parentDir.mkdir();\n final String hash = \"moneyAccount\";\n final String fileName = hash + \".txt\";\n final File file = new File(parentDir, fileName);\n file.createNewFile();\n } catch (IOException | DateTimeParseException | DukeException e) {\n e.printStackTrace();\n }\n return account;\n }", "private void initializeXml() {\n Bundle bundle = this.getIntent().getExtras();\n\n // Texts.\n dateText = (TextView)findViewById(R.id.date_text);\n typeText = (TextView)findViewById(R.id.packet_type_text);\n sourceAddressText = (TextView)findViewById(R.id.source_address_text);\n packetDataText = (TextView)findViewById(R.id.packet_data_text);\n\n dateText.setText(bundle.getString(\"date\"));\n typeText.setText(bundle.getString(\"type\"));\n sourceAddressText.setText(bundle.getString(\"sourceAddress\"));\n data = bundle.getString(\"packetData\");\n packetDataText.setText(data);\n\n // Buttons.\n Button compareButton = (Button)findViewById(R.id.compare_button);\n compareButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n handleCompareButtonPressed();\n }\n });\n }", "private void loadData() throws Exception {\n List<Student> listOfStudents = new ArrayList<>();\n DocumentBuilderFactory documentBuilderFactory =\n DocumentBuilderFactory.newInstance();\n\n DocumentBuilder documentBuilder =\n documentBuilderFactory.newDocumentBuilder();\n Document document = documentBuilder.parse(XMLfile);\n Element root = document.getDocumentElement();\n\n NodeList nodes = root.getChildNodes();\n int len = nodes.getLength();\n for (int i = 0; i < len; i++) {\n Node studentNode = nodes.item(i);\n if (studentNode instanceof Element) {\n Student b = createStudent((Element) studentNode);\n listOfStudents.add(b);\n }\n }\n Map<Long, Student> map= new HashMap<>();\n for (Student s : listOfStudents){\n map.putIfAbsent(s.getId(),s);\n }\n this.setEntities(map);\n }", "public <T> T handleCardsXML(String xmlFileName, String typeName, Class<T> type)\r\n\t{\r\n\t\tcardElements = new ArrayList<Card>();\r\n\t\tgetCardData(xmlFileName, typeName);\r\n\t\tSystem.out.println(\"Loaded \" + typeName + \", Counter: \" + cardElements.size());\r\n\t\treturn type.cast(cardElements);\r\n\t}", "public Cargo(AIMain aiMain, FreeColXMLReader xr) throws XMLStreamException {\n readFromXML(aiMain, xr);\n }", "public static void loadAspriations(Console console) {\t\t\n\t\tconsole.writeDebugText(\"Loading aspirations from aspirations.xml\");\n\t\taspirations = new ArrayList<String>();\n\t\txmlAspirations = new XMLReader(\"/xml/aspirations.xml\");\n\t\t\n\t\tString[] tags = {\"child\", \"adult\"};\n\t\t\n\t\tfor (String tag : tags) {\n\t\t\tfor (String node : xmlAspirations.getNodeList(tag)) {\n\t\t\t\taspirations.add(node);\n\t\t\t}\n\t\t}\n\t\t\n\t\tconsole.writeNotification(\"Loaded %d aspirations from file.\", aspirations.size());\n\t}", "private void loadBoardFromXML(){\n int x = 0;\n int y = 0;\n int width = 0;\n try {\n File inputFile = new File(\"Config\\\\level1.xml\");\n DocumentBuilderFactory dbFactory\n = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n Document doc = dBuilder.parse(inputFile);\n doc.getDocumentElement().normalize();\n\n NodeList nList = doc.getElementsByTagName(\"line\");\n for(int n = 0; n < nList.getLength(); ++ n){\n Node nNode = nList.item(n);\n NodeList innerList = nNode.getChildNodes();\n for(int j = 0; j < innerList.getLength(); ++j){\n Node innerNode = innerList.item(j);\n if(innerNode.getTextContent().equals(\"wall\")){\n Wall wall = new Wall(x,y);\n walls.add(wall);\n } else if(innerNode.getTextContent().equals(\"empty_field\")){\n } else if(innerNode.getTextContent().equals(\"player\")){\n player = new Player(x,y);\n } else if(innerNode.getTextContent().equals(\"box\")){\n Box box = new Box(x,y);\n boxes.add(box);\n } else if(innerNode.getTextContent().equals(\"end_position\")){\n End_position end_position = new End_position(x,y);\n end_positions.add(end_position);\n }\n x+= DISTANCE;\n }\n //next row\n y += DISTANCE;\n if(width < x){\n width = x;\n }\n if(LEVEL_WIDTH < x) LEVEL_WIDTH = x;\n x = 0;\n }\n LEVEL_HEIGHT = y;\n }catch(Exception ex){\n ex.printStackTrace();\n }\n }", "public static void main(String[] args) {\n try (BufferedReader input = Files.newBufferedReader(Paths.get(\"clients.xml\"))) {\n //unmarshall the file's contents\n Accounts accounts = JAXB.unmarshal(input, Accounts.class);\n //display contents\n System.out.printf(\"%-10s%-12s%-12s%10s%n\", \"Account\", \"FirstName\", \"Lastname\", \"Balance\");\n for (Account account : accounts.getAccounts()) {\n System.out.printf(\"%-10d%-12s%-12s%10.2f%n\", account.getAccountNumber(), account.getFirstName(), account.getLastName(), account.getBalance());\n }\n } catch (IOException ioException) {\n System.err.println(\"Error opening file\");\n }\n }", "private void readXGMML() throws JAXBException, IOException {\n \n \t\ttry {\n \t\t\tnodeAttributes = Cytoscape.getNodeAttributes();\n \t\t\tedgeAttributes = Cytoscape.getEdgeAttributes();\n \t\t\tnetworkCyAttributes = Cytoscape.getNetworkAttributes();\n \n \t\t\t// Use JAXB-generated methods to create data structure\n \t\t\tfinal JAXBContext jaxbContext = JAXBContext.newInstance(\n \t\t\t\t\tXGMML_PACKAGE, this.getClass().getClassLoader());\n \t\t\t// Unmarshall the XGMML file\n \t\t\tfinal Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();\n \n \t\t\t/*\n \t\t\t * Read the file and map the entire XML document into data\n \t\t\t * structure.\n \t\t\t */\n \t\t\tif (taskMonitor != null) {\n \t\t\t\ttaskMonitor.setPercentCompleted(-1);\n \t\t\t\ttaskMonitor.setStatus(\"Reading XGMML data...\");\n \t\t\t}\n \t\t\t\n \t\t\tnetwork = (Graph) unmarshaller.unmarshal(networkStream);\n \t\t\t// Report Status Value\n \t\t\tif (taskMonitor != null) {\n \t\t\t\t//taskMonitor.setPercentCompleted(50);\n \t\t\t\ttaskMonitor.setStatus(\"XGMML file is valid. Next, create network...\");\n \t\t\t}\n \t\t\tnetworkName = network.getLabel();\n \n \t\t\trootNodes = new ArrayList();\n \n \t\t\t// Split the list into two: node and edge list\n \t\t\tnodes = new ArrayList();\n \t\t\tedges = new ArrayList();\n \t\t\tfinal Iterator it = network.getNodeOrEdge().iterator();\n \t\t\twhile (it.hasNext()) {\n \t\t\t\tfinal Object curObj = it.next();\n \t\t\t\tif (curObj.getClass() == cytoscape.generated2.impl.NodeImpl.class) {\n \t\t\t\t\tnodes.add(curObj);\n \t\t\t\t} else {\n \t\t\t\t\tedges.add(curObj);\n \t\t\t\t}\n \t\t\t}\n \n \t\t\t// Build the network\n \t\t\tcreateGraph();\n \n \t\t\t// It's not generally a good idea to catch OutOfMemoryErrors, but\n \t\t\t// in this case, where we know the culprit (a file that is too\n \t\t\t// large),\n \t\t\t// we can at least try to degrade gracefully.\n \t\t} catch (OutOfMemoryError oe) {\n \t\t\tnetwork = null;\n \t\t\tedges = null;\n \t\t\tnodes = null;\n \t\t\tnodeIDMap = null;\n \t\t\tnodeMap = null;\n \t\t\tSystem.gc();\n \t\t\tthrow new XGMMLException(\n \t\t\t\t\t\"Out of memory error caught! The network being loaded is too large for the current memory allocation. Use the -Xmx flag for the java virtual machine to increase the amount of memory available, e.g. java -Xmx1G cytoscape.jar -p plugins ....\");\n \t\t}\n \t}", "public static ArrayList<NodeRules> getDataFromXml(String xml) throws RulesException\n\t{\n\t\tArrayList<NodeRules> lstNodeRules = new ArrayList<NodeRules>();\n\t\ttry \n\t\t{\n\t\t\tDocument document = DocumentHelper.parseText(xml);\n\t\t\tElement qos_rules = document.getRootElement();\n\t\t\tArrayList<ServicesRules> lstServicesRules = new ArrayList<ServicesRules>();\n\t\t\tfor(Iterator i1 = qos_rules.elementIterator(\"nodes\"); i1.hasNext();)\n\t\t\t{\n\t\t\t\tElement element_nodes = (Element) i1.next();\n\t\t\t\tfor(Iterator i2 = element_nodes.elementIterator(\"type_node\"); i2.hasNext();)\n\t\t\t\t{\n\t\t\t\t\tElement element_type_node = (Element) i2.next();\n\t\t\t\t\tNodeRules node_rules = new NodeRules();\n\t\t\t\t\tnode_rules.setName(element_type_node.attributeValue(\"name\"));\t\t\t\n\t\t\t\t\tfor(Iterator i3 = element_type_node.elementIterator(\"service\"); i3.hasNext();)\n\t\t\t\t\t{\n\t\t\t\t\t\tElement element_service = (Element) i3.next();\n\t\t\t\t\t\tServicesRules services_rules = new ServicesRules(element_service.attributeValue(\"name\"));\t\t\t\t\n\t\t\t\t\t\tfor(Iterator i4 = element_service.elementIterator(\"rules\"); i4.hasNext();)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tElement element_rules = (Element) i4.next();\n\t\t\t\t\t\t\tRules rules = new Rules(element_rules.attributeValue(\"name\"), element_rules.attributeValue(\"unit\"));\n\t\t\t\t\t\t\tThresholdRules tr_low = new ThresholdRules(EnumParameter.LOW, Integer.parseInt(element_rules.elementText(EnumParameter.LOW)));\n\t\t\t\t\t\t\trules.getList().add(tr_low);\n\t\t\t\t\t\t\tThresholdRules tr_medium = new ThresholdRules(EnumParameter.MEDIUM, Integer.parseInt(element_rules.elementText(EnumParameter.MEDIUM)));\n\t\t\t\t\t\t\trules.getList().add(tr_medium);\n\t\t\t\t\t\t\tThresholdRules tr_warning = new ThresholdRules(EnumParameter.WARNING, Integer.parseInt(element_rules.elementText(EnumParameter.WARNING)));\n\t\t\t\t\t\t\trules.getList().add(tr_warning);\n\t\t\t\t\t\t\tThresholdRules tr_critical = new ThresholdRules(EnumParameter.CRITICAL, Integer.parseInt(element_rules.elementText(EnumParameter.CRITICAL)));\n\t\t\t\t\t\t\trules.getList().add(tr_critical);\n\t\t\t\t\t\t\tservices_rules.getLstRules().add(rules);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlstServicesRules.add(services_rules);\n\t\t\t\t\t}\n\t\t\t\t\tnode_rules.setLstServicesRules(lstServicesRules);\n\t\t\t\t\tlstNodeRules.add(node_rules);\n\t\t\t\t}\n\t\t\t}\n\t\t\tLoggerHelper.info(\"Load XML configuration file for MME\");\n\t\t\treturn lstNodeRules;\n\t\t}\n\t\tcatch (DocumentException e) \n\t\t{\n\t\t\tthrow new RulesException(e);\n\t\t} \n\t}", "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 List<CD> getCDFromXML() throws SAXException, IOException, ParserConfigurationException {\n\t\tString filePath = \"src/Part2_Ex3/CD.xml\";\n\t\tFile xmlFile = new File(filePath);\n\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder dBuilder;\n\t\tdBuilder = dbFactory.newDocumentBuilder();\n\t\tDocument doc = dBuilder.parse(xmlFile);\n\t\tdoc.getDocumentElement().normalize();\n\t\tList<CD> lst = new ArrayList<>();\n\t\tNodeList nodeList = doc.getElementsByTagName(\"CD\");\n\t\tfor (int i = 0; i < nodeList.getLength(); i++) {\n\t\t\tlst.add(getCD(nodeList.item(i)));\n\t\t}\n\t\treturn lst;\n\t}", "public static MxCain00300101 parse(String xml) {\n return ((MxCain00300101) com.prowidesoftware.swift.model.mx.MxReadImpl.parse(MxCain00300101 .class, xml, _classes, new com.prowidesoftware.swift.model.mx.MxReadParams()));\n }", "public static MxCatm00100109 parse(String xml, MxReadConfiguration conf) {\n return ((MxCatm00100109) com.prowidesoftware.swift.model.mx.MxReadImpl.parse(MxCatm00100109 .class, xml, _classes, new com.prowidesoftware.swift.model.mx.MxReadParams(conf)));\n }", "private void loadSettings() {\n//\t\tSharedPreferences prefs = this.getSharedPreferences(Defs.PREFS_NAME, 0);\n//\t\t\n//\t\tString fileData = prefs.getString(Defs.PREFS_KEY_PREV_RATES_FILE, \"\");\n//\t\tLog.d(TAG, \"Loaded last \" + fileData);\n//\t\tif ( fileData.length() > 0 ) {\n//\t\t\tByteArrayInputStream bias = new ByteArrayInputStream(fileData.getBytes());\n//\t\t\t_oldRates = new ExchangeRate();\n//\t\t\tparseRates(bias, _oldRates);\n//\t\t}\n\t}", "private void loadATMAccounts(String atmAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(atmAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //reading...\n String currentLine = input.nextLine();\n\n //parse on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parse out data...\n int accountId = Integer.parseInt(splitLine[0]);\n String ssn = splitLine[1];\n Date dateOpened = dateFormat.parse(splitLine[2]);\n int pin = Integer.parseInt(splitLine[3]);\n Date lastDateUsed = dateFormat.parse(splitLine[4]);\n int dailyUsageCount = Integer.parseInt(splitLine[5]);\n String cardNumber = splitLine[6];\n\n ATM atmAccount = new ATM(accountId,\n ssn,\n dateOpened,\n pin,\n lastDateUsed,\n dailyUsageCount,\n cardNumber);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n atmAccount.setTransactions(accountTransactions);\n\n //add ATM accounts...\n accounts.add(atmAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "public void readFromXMLImpl(XMLStreamReader in) throws XMLStreamException {\n super.readAttributes(in);\n \n // Remove this when the 0.9.x save hack (in Game.java) is gone.\n ownerId = in.getAttributeValue(null, \"owner\");\n \n messageType = Enum.valueOf(MessageType.class, getAttribute(in, \"messageType\", MessageType.DEFAULT.toString()));\n beenDisplayed = Boolean.parseBoolean(in.getAttributeValue(null, \"hasBeenDisplayed\"));\n sourceId = in.getAttributeValue(null, \"source\");\n displayId = in.getAttributeValue(null, \"display\");\n \n super.readChildren(in);\n }", "private void loadData(final String filePath)\r\n {\r\n try\r\n {\r\n File fXMLFile = new File(filePath);\r\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\r\n Document doc = dBuilder.parse(fXMLFile);\r\n parseXMLDocument(doc);\r\n }\r\n catch (ParserConfigurationException ex)\r\n {\r\n System.err.println(\"\\t ParserConfigurationException caught at XMLReader.loadData\");\r\n ex.printStackTrace();\r\n }\r\n catch (SAXException ex)\r\n {\r\n System.err.println(\"\\t SAXException caught at XMLReader.loadData\");\r\n ex.printStackTrace();\r\n }\r\n catch (IOException ex)\r\n {\r\n System.err.println(\"\\t IOException caught at XMLReader.loadData\");\r\n ex.printStackTrace();\r\n }\r\n }", "private void initAccounts() {\n ((GenesisBlock) DependencyManager.getBlockchain().getGenesisBlock()).getAccountBalances().forEach((key, value) -> {\n Account account = getAccount(key);\n account.addBalance(value);\n });\n DependencyManager.getBlockchain().getChain().getChain().forEach(this::parseBlock);\n }", "public void selectedTx(){\r\n\r\n tpoCheck(); //check tpo\r\n channelNumber = Double.parseDouble(channel.getText());//set channelNumber\r\n System.out.println(\"Channel number: \"+channelNumber);\r\n\r\n System.out.println(\" \"); //just adding some space for clarity on console print out\r\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder builder = null;\r\n try {\r\n builder = factory.newDocumentBuilder();\r\n } catch (ParserConfigurationException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n // Load the input XML document, parse it and return an instance of the document class. will need to make this work on any computer somehow.\r\n Document document = null;\r\n try {\r\n document = builder.parse(new File(\"test.xml\"));\r\n } catch (SAXException e) {\r\n e.printStackTrace();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n //refer to Transmitter.java\r\n List<Transmitter> transmitters = new ArrayList<Transmitter>();\r\n NodeList nodeList = document.getDocumentElement().getChildNodes();\r\n for (int i = 0; i < nodeList.getLength(); i++) { //loop through to get every item and its attributes from the test.xml\r\n Node node = nodeList.item(i);\r\n\r\n if (node.getNodeType() == Node.ELEMENT_NODE) {\r\n Element elem = (Element) node;\r\n\r\n // Get the value of the ID attribute.\r\n ID = node.getAttributes().getNamedItem(\"ID\").getNodeValue();//transmitters(i.e. ULXTE-2)\r\n // Get the value of all sub-elements.\r\n pa = Integer.parseInt(elem.getElementsByTagName(\"PA\").item(0).getChildNodes().item(0).getNodeValue());//pa modules\r\n cabinets = Integer.parseInt(elem.getElementsByTagName(\"Cabinets\").item(0).getChildNodes().item(0).getNodeValue());// cabinets\r\n powerblocks = Integer.parseInt(elem.getElementsByTagName(\"Powerblocks\").item(0).getChildNodes().item(0).getNodeValue());// power blocks\r\n linesize = elem.getElementsByTagName(\"Linesize\").item(0).getChildNodes().item(0).getNodeValue();//line size\r\n powerRating = Double.parseDouble(elem.getElementsByTagName(\"Power\").item(0).getChildNodes().item(0).getNodeValue());\r\n\r\n transmitters.add(new Transmitter(ID, pa, cabinets, powerblocks, linesize, powerRating));//call constructor in Transmitter.java to set values for variables\r\n\r\n /** breaks for loop when ID == tx_cb value. need ID for populating label element. display info to console about selection **/\r\n if (ID.equals(tx_cb.getValue())) {\r\n NodeList power = elem.getElementsByTagName(\"Power\");\r\n Node node2 = power.item(0);\r\n System.out.println(ID + \" selected\");\r\n System.out.println(pa + \" PA Modules for \" + ID);\r\n System.out.println(\"Power rating: \"+powerRating);\r\n break;\r\n }\r\n }\r\n }\r\n for (Transmitter tx : transmitters) {\r\n if (ID.equals(tx_cb.getValue())) {\r\n TX_Text.setText(tx.toString());\r\n }\r\n }\r\n }", "public static MxAcmt00400101 parse(String xml, MxRead parserImpl) {\n return ((MxAcmt00400101) parserImpl.read(MxAcmt00400101 .class, xml, _classes));\n }", "public static void loadStudRecsFromFile(File file) {\r\n\t\ttry {\r\n\t\t\tJAXBContext context = JAXBContext\r\n\t\t\t\t\t.newInstance(StudRecsWrapper.class);\r\n\t\t\tUnmarshaller um = context.createUnmarshaller();\r\n\t\t\t\r\n\t\t\tStudRecsWrapper wrapper = (StudRecsWrapper) um.unmarshal(file);\r\n\t\t\t\r\n\t\t\tstudRecs.clear();\r\n\t\t\tstudRecs.addAll(wrapper.getStudRecs());\r\n\t\t\tSystem.out.println(\"File loaded!\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Cannot load file, does it exist?\");\r\n\t\t}\r\n\t}", "void loadCrimeList(InputStream inputStream) {\n // Define a scanner\n try (Scanner scanner = new Scanner(inputStream)) {\n\n // While the scanner has another line to read\n while (scanner.hasNextLine()) {\n\n // Get the next link and split it into parts\n String line = scanner.nextLine();\n String parts[] = line.split(\",\");\n\n //Assign each part to a local var\n String id = parts[0];\n String title = parts[1];\n String dateString = parts[2];\n String solvedString = parts[3];\n\n UUID uuid = UUID.fromString(id);\n Date date = new SimpleDateFormat(\n \"yyyy-MM-dd\",\n Locale.getDefault()\n ).parse(dateString);\n boolean isSolved = (solvedString.equals(\"1\"));\n\n // Add the Crime to the Crime list\n mCrimes.add(\n new Crime(\n uuid,\n title,\n date,\n isSolved\n )\n );\n }\n\n // Date read in, so set the dataLoadedOnce flag to true.\n mDataLoadedOnce = true;\n\n } catch (Exception e) {\n Log.e(\"Read CSV\", e.toString());\n }\n }", "public void parseXML(String XML);", "public ScoreEntry(XMLElement xml) {\n int score = 0;\n Date finishTime = new Date();\n Date startTime = new Date();\n Properties properties = new Properties();\n\n for(Object o : xml.getChildren()) {\n XMLElement xe = (XMLElement) o;\n final String name = xe.getName();\n final String val = xe.getContent();\n if(name.equals(\"score\")) {\n score = Integer.parseInt(val);\n } else if(name.equals(\"startTime\")) {\n try {\n startTime = DateFormat.getInstance().parse(val);\n } catch (Exception ignore) {}\n } else if(name.equals(\"finishTime\")) {\n try {\n finishTime = DateFormat.getInstance().parse(val);\n } catch (Exception ignore) {}\n } else if(name.equals(\"properties\")) {\n for(Object o2 : xe.getChildren()) {\n XMLElement prop = (XMLElement) o2;\n if(prop.getName().equals(\"property\")) {\n properties.setProperty(prop.getStringAttribute(\"name\"),prop.getStringAttribute(\"value\"));\n }\n }\n }\n }\n\n this.score = score;\n this.finishTime = finishTime;\n this.startTime = startTime;\n this.properties = properties;\n }", "private static ArrayList<Publication> getParserAuthor() {\n\t\n\t ArrayList<Publication> list= new ArrayList<Publication>(); \n //获取DOM解析器 \n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); \n DocumentBuilder builder; \n try { \n builder = factory.newDocumentBuilder(); \n Document doc; \n doc = builder.parse(new File(\"Myxml.xml\")); \n //得到一个element根元素,获得根节点 \n Element root = doc.getDocumentElement(); \n System.out.println(\"根元素:\"+root.getNodeName()); \n \n //子节点 \n NodeList personNodes = root.getElementsByTagName(\"publication\"); \n for(int i = 0; i<personNodes.getLength();i++){ \n Element personElement = (Element) personNodes.item(i); \n Publication publication = new Publication(); \n NodeList childNodes = personElement.getChildNodes(); \n //System.out.println(\"*****\"+childNodes.getLength()); \n \n for (int j = 0; j < childNodes.getLength(); j++) { \n if(childNodes.item(j).getNodeType()==Node.ELEMENT_NODE){ \n if(\"authors\".equals(childNodes.item(j).getNodeName())){ \n publication.setAuthors(childNodes.item(j).getFirstChild().getNodeValue()); \n }else if(\"id\".equals(childNodes.item(j).getNodeName())){ \n publication.setId(childNodes.item(j).getFirstChild().getNodeValue()); \n } \n } \n } \n list.add(publication); \n } \n for(Publication publication2 : list){ //为了查看数据是否正确,进行打印结果 \n System.out.println(publication2.toString()); \n } \n } catch (SAXException e) { \n e.printStackTrace(); \n } catch (IOException e) { \n e.printStackTrace(); \n } catch (ParserConfigurationException e) { \n e.printStackTrace(); \n } \n return list;\n}", "public void parseXML(String xmlString) {\n DocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance(); \n Document document = null; \n try { \n //DOM parser instance \n DocumentBuilder builder = builderFactory.newDocumentBuilder(); \n \n //parse an XML file into a DOM tree, in this case, change the filepath to xml String \n document = builder.parse(new File(filePath));\n \n //get root element, which is <Airports>\n Element rootElement = document.getDocumentElement(); \n \n //traverse child elements. retrieve all the <Airport>\n NodeList nodes = rootElement.getChildNodes(); \n for (int i=0; i < nodes.getLength(); i++) \n { \n Node node = nodes.item(i); \n if (node.getNodeType() == Node.ELEMENT_NODE) { \n Element airport = (Element) node; \n \n //process child element \n String code = airport.getAttribute(\"Code\");\n String name = airport.getAttribute(\"Name\"); \n \n // child node of airport\n NodeList airportChildren = airport.getChildNodes();\n \n // value of longitude & latitude\n String longitude = airportChildren.item(1).getTextContent();\n String latitude = airportChildren.item(2).getTextContent();\n \n Location location = new Location(longitude, latitude);\n airportList.add(new Airport(code, name, location));\n } \n } \n \n // another approach to traverse all the listNode by tagName \n /*NodeList nodeList = rootElement.getElementsByTagName(\"book\"); \n if(nodeList != null) \n { \n for (int i = 0 ; i < nodeList.getLength(); i++) \n { \n Element element = (Element)nodeList.item(i); \n String id = element.getAttribute(\"id\"); \n } \n }*/\n // add the DOM object to the airportList\n } catch (ParserConfigurationException e) { \n e.printStackTrace(); \n } catch (SAXException e) { \n e.printStackTrace(); \n } catch (IOException e) { \n e.printStackTrace(); \n } \n }", "public static MxCatm00100109 parse(String xml) {\n return ((MxCatm00100109) com.prowidesoftware.swift.model.mx.MxReadImpl.parse(MxCatm00100109 .class, xml, _classes, new com.prowidesoftware.swift.model.mx.MxReadParams()));\n }", "public static MxAuth05300101 parse(String xml, MxReadConfiguration conf) {\n return ((MxAuth05300101) com.prowidesoftware.swift.model.mx.MxReadImpl.parse(MxAuth05300101 .class, xml, _classes, new com.prowidesoftware.swift.model.mx.MxReadParams(conf)));\n }", "private void readIt(XMLElement doc, MembershipService membership) {\r\n Enumeration elements = doc.getChildren();\r\n\r\n while (elements.hasMoreElements()) {\r\n XMLElement elem = (XMLElement) elements.nextElement();\r\n\r\n if (elem.getName().equals(handlernameTag)) {\r\n setHandlerName(elem.getTextValue());\r\n continue;\r\n }\r\n if (membership != null) {\r\n // Set credential\r\n if (elem.getName().equals(credentialTag)) {\r\n Credential credential;\r\n\r\n if (elem.getTextValue() != null) {\r\n try {\r\n credential = membership.makeCredential(elem);\r\n setCredential(credential);\r\n } catch (Exception ce) {\r\n if (LOG.isEnabledFor(Priority.WARN)) {\r\n LOG.warn(\"Credential creation failed\", ce);\r\n }\r\n }\r\n }\r\n continue;\r\n }\r\n }\r\n\r\n // Set payload\r\n if (elem.getName().equals(payloadTag)) {\r\n setPayload(elem.getTextValue());\r\n }\r\n }\r\n }", "public Profile getProfile(String xmlString){\n\tProfile profile = null;\n profile = new Profile();\n String text = \"\";\n XmlPullParserFactory factory = null;\n XmlPullParser parser = null;\n try {\n factory = XmlPullParserFactory.newInstance();\n factory.setNamespaceAware(true);\n parser = factory.newPullParser();\n\n parser.setInput(new StringReader(xmlString.replaceAll(\"&\", \"&amp;\")));\n\n int eventType = parser.getEventType();\n while (eventType != XmlPullParser.END_DOCUMENT) {\n String tagname = parser.getName();\n switch (eventType) {\n case XmlPullParser.START_TAG:\n break;\n\n case XmlPullParser.TEXT:\n //Convert html encoding\n String rawText = parser.getText();\n Spanned escapedText = Html.fromHtml(rawText);\n text = escapedText.toString();\n break;\n\n case XmlPullParser.END_TAG:\n if (tagname.equalsIgnoreCase(\"id\")) {\n profile.setName(text);\n } else if (tagname.equalsIgnoreCase(\"level\")) {\n profile.setLevel(Integer.parseInt(text));\n } else if (tagname.equalsIgnoreCase(\"aboutme\")) {\n profile.setAboutMe(text);\n } else if (tagname.equalsIgnoreCase(\"avatar\")) {\n profile.setAvatar(text);\n } else if (tagname.equalsIgnoreCase(\"progress\")) {\n profile.setProgress(Integer.parseInt(text));\n } else if (tagname.equalsIgnoreCase(\"Platinum\")) {\n profile.setPlatium(Integer.parseInt(text));\n } else if (tagname.equalsIgnoreCase(\"Gold\")) {\n profile.setGold(Integer.parseInt(text));\n } else if (tagname.equalsIgnoreCase(\"Silver\")) {\n profile.setSilver(Integer.parseInt(text));\n } else if (tagname.equalsIgnoreCase(\"Bronze\")) {\n profile.setBronze(Integer.parseInt(text));\n } else if (tagname.equalsIgnoreCase(\"Plus\")) {\n if(text.equalsIgnoreCase(\"1\")){\n profile.setPlus(true);\n }\n else{\n profile.setPlus(false);\n }\n } else if (tagname.equalsIgnoreCase(\"R\")) {\n profile.setBackgroundRed(Integer.parseInt(text.replaceFirst(\"#\", \"\"), 16)); // To convert hexadecimal to integer and remove #\n } else if (tagname.equalsIgnoreCase(\"G\")) {\n profile.setBackgroundGreen(Integer.parseInt(text.replaceFirst(\"#\", \"\"), 16));\n } else if (tagname.equalsIgnoreCase(\"B\")) {\n profile.setBackgroundBlue(Integer.parseInt(text.replaceFirst(\"#\", \"\"), 16));\n }\n break;\n\n default:\n break;\n }\n eventType = parser.next();\n }\n\n } catch (XmlPullParserException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\t\n\treturn profile;\n}", "@Override\n public void fromXML(Node node)\n {\n super.fromXML(node);\n\n NodeList children = node.getChildNodes();\n\n for (int j = 0; j < children.getLength(); j++)\n {\n Node child = children.item(j);\n\n if (child.getNodeName().equalsIgnoreCase(\"lethal-range\"))\n {\n this.setLethalRange(Double.parseDouble(child.getTextContent()));\n }\n else if (child.getNodeName().equalsIgnoreCase(\"pk\"))\n {\n this.setPk(Double.parseDouble(child.getTextContent()));\n }\n else if (child.getNodeName().equalsIgnoreCase(\"max-gs\"))\n {\n this.setMaxGs(Double.parseDouble(child.getTextContent()));\n }\n }\n }", "@Override\r\n\tpublic void initFromXMLfile(URL arg0) throws InitializingException {\n\t}", "public SCMLProject load(String xml)\n\t{\n\t\tXmlReader reader = new XmlReader();\n\t\treturn load(reader.parse(xml));\n\t}", "public void loadxml ()\n\t{\n\t\t\t\tString [] kategorienxml;\n\t\t\t\tString [] textbausteinexml;\n\t\t\t\tString [] textexml;\n\t\t\t\t\n\t\t\t\tString filenamexml = \"Katalogname_gekuerzt_lauffaehig-ja.xml\";\n\t\t\t\tFile xmlfile = new File (filenamexml);\n\t\t\t\t\n\t\t\t\t// lies gesamten text aus: String gesamterhtmlcode = \"\";\n\t\t\t\tString gesamterhtmlcode = \"\";\n\t\t\t\tString [] gesamtertbarray = new String[1001];\n\t\t BufferedReader inx = null;\n\t\t try {\n\t\t inx = new BufferedReader(new FileReader(xmlfile));\n\t\t String zeilex = null;\n\t\t while ((zeilex = inx.readLine()) != null) {\n\t\t \tSystem.out.println(zeilex + \"\\n\");\n\t\t \tRandom rand = new Random();\n\t\t \tint n = 0;\n\t\t \t// Obtain a number between [0 - 49].\n\t\t \tif (zeilex.contains(\"w:type=\\\"Word.Bookmark.End\\\"/>\")) // dann ab hier speichern bis zum ende:\n\t\t \t{\n\t\t \t\t// \terstelle neue random zahl und speichere alle folgenden zeilen bis zum .Start in diesen n rein\n\t\t \t\tn = rand.nextInt(1001);\n\n\t\t \t\t\n\t\t \t}\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n] + zeilex;\n\t\t \tFile f = new File (\"baustein_\"+ n + \".txt\");\n\t\t \t\n\t\t \tFileWriter fw = new FileWriter (f);\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"\\\"</w:t></w:r></w:r></w:hlink><w:hlink w:dest=\\\"\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"w:val=\\\"Hyperlink\\\"/></w:rPr><w:r><w:rPr><w:rStyle w:val=\\\"T8\\\"/></w:rPr>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"\t\t \t<w:rStyle\" , \"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:t></w:r></w:p>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"w:val=\\\"Hyperlink\\\"/>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"<w:pStyle w:val=\\\"_37_b._20_Text\\\"/>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:rPr><w:r><w:t>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:t></w:r></w:r></w:hlink><w:hlink w:dest=\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:rPr></w:r></w:hlink><w:hlink w:dest=\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"<w:r><w:rPr><w:rStyle\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"xmlns:fo=\\\"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:t></w:r></w:r></w:hlink></w:p><w:p\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:t></w:r></w:r></w:hlink></w:p><w:p\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"xmlns:fo=\\\"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0\\\"><w:pPr></\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"w:pPr><w:r>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"compatible:1.0\\\"><w:pPr></w:pPr>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:p><w:p\",\"\");\n\t\t \n\n\t\t \t\n\n\t\t \tfw.write(gesamtertbarray[n]);\n\t\t \tfw.flush();\n\t\t \tfw.close();\n\t\t \t\n\t\t \tif (zeilex.contains(\"w:type=\\\"Word.Bookmark.Start\\\"))\"))\n \t\t\t{\n\t\t \t\t// dann erhöhe speicher id für neue rand zahl, weil ab hier ist ende des vorherigen textblocks;\n\t\t\t \tn = rand.nextInt(1001);\n \t\t\t}\n\t\t \n\t\t }}\n\t\t \tcatch (Exception s)\n\t\t {}\n\t\t \n\t\t\n\t\t \n\t\t \n\t\t \n\t\t \n\t\t \n\t\t \n\t}", "public static void loadMap(CityMap map)\n\t\t\tthrows ParserConfigurationException, SAXException, IOException, XMLException {\n\t\tCityMap previous = map;\n\t\tFile xml = XMLFileOpener.getInstance().open(true);\n\t\tDocumentBuilder docBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();\n\t\tDocument document = docBuilder.parse(xml);\n\t\tElement root = document.getDocumentElement();\n\t\tif (root.getNodeName().equals(\"Reseau\")) {\n\t\t\tmap.clear();\n\t\t\tbuildMapFromDOMXML(root, map);\n\t\t} else {\n\t\t\tmap = previous;\n\t\t\tthrow new XMLException(\"Document non conforme\");\n\t\t}\n\t}", "public static History loadFromXML(String fileName) throws FileNotLoadedException {\n\t\ttry {\n\t\tJAXBContext context = JAXBContext.newInstance(History.class);\n\t\tUnmarshaller unmarshaller = context.createUnmarshaller();\n\t\t\n\t\t// Read from file\n\t\tHistory history = (History) unmarshaller.unmarshal(new File(fileName));\t\t\n\t\t\n\t\treturn history;\n\t\t} catch (JAXBException e) {\n\t\t\tSystem.err.println(e + \"/nFile not loaded!\");\n throw new FileNotLoadedException();\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tSystem.err.println(\"File not found. Check that a file with the name '\" + fileName + \"' exists!\");\n throw new FileNotLoadedException();\n\t\t}\t\n\t}", "@Override\n protected void loadXMLDescription() {\n\n }", "private static Patent parseGrantv41(String patentxml) {\n\t\tPatent patent = new PatentGrant();\n \ttry {\n\t\t\tSAXParserFactory spf = SAXParserFactory.newInstance();\n\t\t\tSAXParser sp;\n\t\n\t\t\tsp = spf.newSAXParser();\n\t\n\t\t\tXMLReader xr = sp.getXMLReader();\n \n\t // prase the xml according to its dtd version\n\t JAXBContext jc = JAXBContext.newInstance(\"xml.us.patent.grant.v41\");\n\t Marshaller marshaller = jc.createMarshaller();\t \n\t Unmarshaller unmarshaller = jc.createUnmarshaller();\n\t UnmarshallerHandler unmarshallerHandler = unmarshaller.getUnmarshallerHandler();\n\t xr.setContentHandler((ContentHandler) unmarshallerHandler);\n\t \n\t InputSource xmlSource = new InputSource(new StringReader(patentxml));\n\t xr.parse(xmlSource);\n\t \n\t xml.us.patent.grant.v41.UsPatentGrant grant = (xml.us.patent.grant.v41.UsPatentGrant) unmarshallerHandler.getResult();\n\t \n\t // extract patent data\n\t List<Object> grantLst = grant.getDocPageOrUsBibliographicDataGrantOrAbstractOrDrawingsOrDescriptionOrUsSequenceListDocOrUsMegatableDocOrTableExternalDocOrUsChemistryOrUsMathOrUsClaimStatementOrClaims();\n\t for(int i=0; i<grantLst.size(); i++) {\n\t \tObject grantnode = grantLst.get(i);\n\t \tif(grantnode.getClass()==xml.us.patent.grant.v41.UsBibliographicDataGrant.class) {\n\t \t\txml.us.patent.grant.v41.UsBibliographicDataGrant usBibliographicDataGrant = (xml.us.patent.grant.v41.UsBibliographicDataGrant) grantnode;\n\t \t\t\n\t \t\t// get publication reference\n\t \t\txml.us.patent.grant.v41.PublicationReference publicationReference = usBibliographicDataGrant.getPublicationReference();\n\t \t\t\n\t \t\txml.us.patent.grant.v41.DocumentId docId = publicationReference.getDocumentId();\n\t \t\tpatent.setPubDocNumber(docId.getDocNumber());\n\t \t\tpatent.setPubCountry(docId.getCountry().getvalue());\n\t \t\tpatent.setPubKind(docId.getKind());\n\t \t\tpatent.setPubDate(docId.getDate().getvalue());\n\t \t\t\n\t \t\txml.us.patent.grant.v41.InventionTitle inventionTitle = usBibliographicDataGrant.getInventionTitle();\n\t \t\tpatent.setTitle(inventionTitle.getvalue());\n\t \t\t\n\t \t\t// get application reference\n\t \t\txml.us.patent.grant.v41.ApplicationReference applicationReference = usBibliographicDataGrant.getApplicationReference();\n\t \t\tdocId = applicationReference.getDocumentId();\n\t \t\tpatent.setAppDocNumber(docId.getDocNumber());\n\t \t\tpatent.setAppCountry(docId.getCountry().getvalue());\n\t \t\tpatent.setAppDate(docId.getDate().getvalue());\n\t \t\t\n\t \t\t// get inventors\n\t \t\txml.us.patent.grant.v41.Parties parties = usBibliographicDataGrant.getParties();\n\t \t\tif(parties!=null) {\n\t \t\t\txml.us.patent.grant.v41.Inventors inventors = parties.getInventors();\n\t\t \t\tif(inventors!=null) {\n\t\t \t\t\tList<Object> inventorsLst = inventors.getInventorOrDeceasedInventor();\n\t\t \t\t\tfor(Object inventornode : inventorsLst) {\n\t \t\t\t\t\tif(inventornode.getClass()==xml.us.patent.grant.v41.Inventor.class) {\n\t \t\t\t\t\t\txml.us.patent.grant.v41.Inventor inventor = (xml.us.patent.grant.v41.Inventor) inventornode;\n\t \t\t\t\t\t\tList<xml.us.patent.grant.v41.Addressbook> inventorAddressbook = inventor.getAddressbook();\n\t \t\t\t\t\t\tfor(xml.us.patent.grant.v41.Addressbook inventorAddressbookDet : inventorAddressbook)\n\t \t\t\t\t\t\t{\n\t \t\t\t\t\t\t\tpatent.addInventor(new AddrezzBook(inventorAddressbookDet));\n\t \t\t\t\t\t\t}\t\t\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\t\n\t \t\t// get assignees\n\t \t\txml.us.patent.grant.v41.Assignees assignees = usBibliographicDataGrant.getAssignees();\n\t \t\tif(assignees!=null) {\n\t\t \t\tList<xml.us.patent.grant.v41.Assignee> assigneeLst = assignees.getAssignee();\n\t\t \t\tfor(xml.us.patent.grant.v41.Assignee assigneeDet : assigneeLst) {\n\t\t \t\t\tpatent.addAssignee(new AddrezzBook(assigneeDet));\n\t\t \t\t}\n\t \t\t}\n\t \t\t\n\t \t\t// get US classification\n\t \t\txml.us.patent.grant.v41.ClassificationNational usClassification = usBibliographicDataGrant.getClassificationNational();\n\t \t\tif(usClassification!=null) {\n\t\t \t\tpatent.setMainClassification(usClassification.getMainClassification());\n\t\t \t\t\n\t\t \t\tList<xml.us.patent.grant.v41.FurtherClassification> furtherClassifications = usClassification.getFurtherClassification();\n\t\t \t\tif(furtherClassifications!=null) {\n\t\t \t\t\tfor(xml.us.patent.grant.v41.FurtherClassification furtherClassification : furtherClassifications) {\n\t\t \t\t\t\tpatent.addfurtherClassification(furtherClassification.getvalue());\n\t\t \t\t\t}\n\t\t \t\t}\n\t \t\t}\n\t \t\t\n\t \t\t// get IPC classification\n\t \t\txml.us.patent.grant.v41.ClassificationsIpcr ipcs = usBibliographicDataGrant.getClassificationsIpcr();\n\t \t\tif(ipcs!=null) {\n\t \t\t\tList<xml.us.patent.grant.v41.ClassificationIpcr> ipcLst = ipcs.getClassificationIpcr();\n\t \t\t\tif(ipcLst!=null) {\n\t \t\t\t\tfor(xml.us.patent.grant.v41.ClassificationIpcr ipc : ipcLst) {\n\t \t\t\t\t\txml.us.patent.grant.v41.IpcVersionIndicator versionIndicator = ipc.getIpcVersionIndicator();\n\t \t\t\t\t\tif(versionIndicator!=null) {\n\t \t\t\t\t\t\tpatent.addIpcVersionDate(versionIndicator.getDate().getvalue());\n\t \t\t\t\t\t}\n\t \t\t\t\t\tpatent.addIpcClassificationLevel(ipc.getClassificationLevel());\n\t \t\t\t\t\tpatent.addIpcSection(ipc.getSection());\n\t \t\t\t\t\tpatent.addIpcClass(ipc.getClazz().getvalue());\n\t \t\t\t\t\tpatent.addIpcSubclass(ipc.getSubclass());\n\t \t\t\t\t\tpatent.addIpcMainGroup(ipc.getMainGroup());\n\t \t\t\t\t\tpatent.addIpcSubgroup(ipc.getSubgroup());\n\t \t\t\t\t\tpatent.addIpcSymbolLevel(ipc.getSymbolPosition());\n\t \t\t\t\t\tpatent.addIpcClassificationValue(ipc.getClassificationValue());\n\t \t\t\t\t}\n\t \t\t\t}\t \t\t\n\t \t\t}\n\t \t}\t \t\n\t \telse if(grantnode.getClass()==xml.us.patent.grant.v41.Abstract.class) { // get abstract\n\t \t\txml.us.patent.grant.v41.Abstract abstr = (xml.us.patent.grant.v41.Abstract) grantnode;\n\t \t\tStringWriter sw = new StringWriter();\n\t \t\tmarshaller.marshal(abstr, sw);\n\t \t\tpatent.addAbstractParagraph(sw.toString().replaceAll(\"</.*?>|<[^>]*?/>\", \"\").replaceAll(\"<.*?>\", \"\\n\"));\n\t \t}\n\t \telse if(grantnode.getClass()==xml.us.patent.grant.v41.Description.class) { // get description\n\t \t\txml.us.patent.grant.v41.Description desc = (xml.us.patent.grant.v41.Description) grantnode;\n\t \t\tStringWriter sw = new StringWriter();\n\t \t\tmarshaller.marshal(desc, sw);\n\t \t\tpatent.addDescParagraph(sw.toString().replaceAll(\"</.*?>|<[^>]*?/>\", \"\").replaceAll(\"<.*?>\", \"\\n\")); \t\t\n\t \t}\t\t\t \t\n\t \telse if(grantnode.getClass()==xml.us.patent.grant.v41.Claims.class) { // get claims\n\t \t\txml.us.patent.grant.v41.Claims claims = (xml.us.patent.grant.v41.Claims) grantnode;\n\t \t\tStringWriter sw = new StringWriter();\n\t \t\tmarshaller.marshal(claims, sw);\n\t \t\tpatent.addClaim(sw.toString().replaceAll(\"<claim id.*?>|</.*?>|<[^>]*?/>\", \"\").replaceAll(\"<claim-ref.*?>|</claim-ref.*?>\",\" \").replaceAll(\"</claim-ref.*?>\",\" \").replaceAll(\"<.*?>\", \"\\n\"));\n\t \t}\n\t }\n\t } catch (ParserConfigurationException | SAXException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (JAXBException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn patent;\n\t}", "public MxCatm00100109(final String xml) {\n this();\n MxCatm00100109 tmp = parse(xml);\n stsRpt = tmp.getStsRpt();\n }", "public void readXML(String xml){\n\t\tint maxId = 0;\n\t\ttry {\n \tFile xmlFile = new File(xml); \n \tDocumentBuilderFactory documentFactory = DocumentBuilderFactory.newInstance(); \n \tDocumentBuilder documentBuilder = documentFactory.newDocumentBuilder(); \n \tDocument doc = documentBuilder.parse(xmlFile); \n \tdoc.getDocumentElement().normalize();\n \tNodeList nodeList = doc.getElementsByTagName(\"node\");\n \tHashMap<Integer,Artifact> artifactTable = new HashMap<Integer, Artifact>();\n \tHashMap<Integer,Element> nodeTable = new HashMap<Integer, Element>();\n \n \tfor (int i = 0; i < nodeList.getLength(); i++) { \n \t\tNode xmlItem = nodeList.item(i);\n \t\tif (xmlItem.getNodeType() == Node.ELEMENT_NODE) { \n \t\t\tElement node = (Element) xmlItem;\n \t\t\tArtifact newNode = new Artifact(Rel.getContext());\n \t\t\tRel.addView(newNode,100,100);\n \t\t\tnewNode.setId(Integer.parseInt(node.getElementsByTagName(\"id\").item(0).getTextContent()));\n \t\t\tnewNode.setPrevWidth(100);\n \t\t\tnewNode.setPrevHeight(100);\n \t\t\tnewNode.setTag(\"node\");\n \t\t\tnewNode.setText(node.getElementsByTagName(\"label\").item(0).getTextContent());\n \t\t\tnewNode.setType(node.getElementsByTagName(\"type\").item(0).getTextContent());\n \t\t\tnewNode.setInformation(node.getElementsByTagName(\"information\").item(0).getTextContent());\n \t\t\tnewNode.setPosition(node.getElementsByTagName(\"position\").item(0).getTextContent());\n \t\t\tnewNode.setAge(Long.parseLong(node.getElementsByTagName(\"age\").item(0).getTextContent()));\n \t\t\tnewNode.setBackgroundResource(Utility.getDrawableType(newNode));\n \t\t\tif(\"\".compareTo((String) newNode.getText()) != 0){\n \t\t\t\tnewNode.matchWithText();\n \t\t\t}\n \t\t\tartifactTable.put(newNode.getId(), newNode);\n \t\t\tnodeTable.put(newNode.getId(), node);\n \t\t\tif(Integer.parseInt(node.getElementsByTagName(\"id\").item(0).getTextContent())>maxId){\n \t\t\t\tmaxId = Integer.parseInt(node.getElementsByTagName(\"id\").item(0).getTextContent());\n \t\t\t}\n \t\t} \n \t\t\n \t}\n \t\n \t//once we created all the artifacts now we can set the fathers and sons for every node with the artifact and xmlnode tables we have filled while reading\n \tIterator it = artifactTable.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry pairs = (Map.Entry)it.next();\n NodeList sonsList = nodeTable.get(pairs.getKey()).getElementsByTagName(\"son\");\n if(sonsList != null){\n\t for (int j = 0; j < sonsList.getLength(); j++) {\n\t \tartifactTable.get(pairs.getKey()).addSon(artifactTable.get(Integer.parseInt(sonsList.item(j).getTextContent())));\n\t }\n }\n \n NodeList fathersList = nodeTable.get(pairs.getKey()).getElementsByTagName(\"father\");\n if(fathersList != null){\n\t for (int j = 0; j < fathersList.getLength(); j++) {\n\t \tartifactTable.get(pairs.getKey()).addFather(artifactTable.get(Integer.parseInt(fathersList.item(j).getTextContent())));\n\t }\n }\n \n }\n \n \n }catch(Exception e){\n \tLog.v(\"error reading xml\",e.toString());\n }\n\t\tGlobal.ID = maxId+1;\n\t}", "public void LoadLifeloggingData(String XMLFilePath) throws SQLException {\n\t\tString loaddata1 = \"LOAD XML INFILE '\" + XMLFilePath + \"'\"\n\t + \"INTO TABLE minute ROWS IDENTIFIED BY '<minute>'\";\n\t\tString loaddata2 = \"LOAD XML INFILE '\" + XMLFilePath + \"'\"\n\t + \"INTO TABLE image ROWS IDENTIFIED BY '<image-path>'\"; \n\t\t\n\t\tStatement stmt = this.connection.createStatement();\n\t\tstmt.execute(loaddata1);\n\t\tstmt.execute(loaddata2);\n\t\tstmt.close();\n\t}", "public Map<String, Integer> getCredits() {\n\t\treturn credits;\n\t}", "private List getContractList(String xmlResponse) {\r\n\t\t\r\n\t\tList contractList = new ArrayList();\r\n\t\tContractVO contractVO;\t\r\n\t\tElement root;\r\n\t\t\r\n\t\ttry {\r\n\t\t\troot = DOMUtils.openDocument(new ByteArrayInputStream(xmlResponse.getBytes()));\r\n\t\t\tElement data = DOMUtils.getElement(root, \"data\", true);\r\n\t\t\tdata = DOMUtils.getElement(data, \"customer\", true);\r\n\t\t\t\r\n\t\t\t//first get the full name\r\n\t\t\tElement subcriberName = DOMUtils.getElement(data, \"address\", true);\r\n\t\t\tsubcriberName = DOMUtils.getElement(subcriberName, \"full-name\", true);\r\n\t\t\tString subcriberNameStr = \"\";\r\n\t\t\tsubcriberNameStr = DOMUtils.getText(subcriberName).toString();\r\n\t\t\t\r\n\t\t\t// Obtain the packages from the DOM \r\n\t\t\tNodeList nodeList = DOMUtils.getElements(data, \"contract\");\t\t\t\r\n\t\t\t\r\n\t\t\tElement element;\r\n\t\t\tfor (int i = 0; i < nodeList.getLength(); i++) {\r\n\t\t\t\telement = (Element) nodeList.item(i);\r\n\t\t\t\tcontractVO = new ContractVO();\r\n\t\t\t\tElement subElementId = DOMUtils.getElement(element, \"id\", true);\r\n\t\t\t\tcontractVO.setContractNumber(DOMUtils.getText(subElementId).toString());\r\n\t\t\t\tElement subElementAccessNum = DOMUtils.getElement(element, \"msisdn\", true);\r\n\t\t\t\tcontractVO.setAccessNumber(DOMUtils.getText(subElementAccessNum).toString());\r\n\t\t\t\tcontractVO.setSubscriberName(subcriberNameStr);\r\n\t\t\t\tcontractList.add(contractVO);\r\n\t\t\t}\r\n\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tlog.error(\"Error parsing xml response from Infobus\", e);\r\n\t\t\tthrow new ErrorMessageException(e);\r\n\t\t}\r\n\t\t\r\n\t\treturn contractList;\r\n\t}", "public static ArrayList<APIAsset> GetAssetsFromSampleData(String nodeFilePath, String nodePath) {\n ArrayList<APIAsset> API_Assets = new ArrayList<APIAsset>();\n\n try {\n // Get the SAXReader object \n SAXReader reader = new SAXReader();\n // Get the xml document object by sax reader. \n Document document = reader.read(nodeFilePath);\n List<Node> nodes = document.selectNodes(nodePath);\n\n // Read all the node inside xpath nodes and print the value of each \n for (Node node : nodes) {\n\n APIAsset API_Asset = GetAssetFromNode(node);\n API_Assets.add(API_Asset);\n\n }\n } catch (Exception ex) {\n ApiLog.One.WriteException(ex);\n }\n return API_Assets;\n }", "public long getCredits()\n {\n return credits;\n }", "private void loadData() {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\n String fromSymbols = sharedPreferences.getString(getString(R.string.cryto_key), getString(R.string.cryto_value));\n String toSymbols = sharedPreferences.getString(getString(R.string.currencies_key), getString(R.string.currencies_value));\n new FetchUrlTask().execute(fromSymbols, toSymbols);\n sharedPreferences.registerOnSharedPreferenceChangeListener(this);\n }", "void read(XmlPullParser xmlPullParser) throws IOException, XmlPullParserException;", "public void setCredit(int credit) {\n this.credit = credit;\n }", "public static void getXMLMaterials() {\n\t\t// Make some local array to use below\n\t\tArrayList<Material> materialList = new ArrayList<Material>();\n\t\ttry {\n\t\t\tFile xmlFile = new File(\"Material.xml\");\n\t\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder builder = factory.newDocumentBuilder();\n\t\t\tDocument material = builder.parse(xmlFile);\n\t\t\t\n\t\t NodeList materialNodes = material.getElementsByTagName(\"Material\");\n\n\t\t for(int i = 0; i < materialNodes.getLength(); i++) { // Go through each material node\n\t\t Node materialNode = materialNodes.item(i);\n\t\t if(materialNode.getNodeType() == Node.ELEMENT_NODE) {\n\t\t Element materialEl = (Element) materialNode;\n\t\t \n\t\t // Get the material's info (and convert types when necessary)\n\t\t String type = materialEl.getElementsByTagName(\"type\").item(0).getTextContent();\n\t\t String name = materialEl.getElementsByTagName(\"name\").item(0).getTextContent();\n\t\t String id = materialEl.getElementsByTagName(\"id\").item(0).getTextContent();\n\t\t int ID = Integer.parseInt(id);\n\t\t String isref = materialEl.getElementsByTagName(\"isRef\").item(0).getTextContent();\n\t\t boolean isRef = Boolean.parseBoolean(isref);\n\t\t String avail = materialEl.getElementsByTagName(\"available\").item(0).getTextContent();\n\t\t int available = Integer.parseInt(avail);\n\t\t String totinlib = materialEl.getElementsByTagName(\"totalInLib\").item(0).getTextContent();\n\t\t int totInLib = Integer.parseInt(totinlib);\n\t\t \n\t\t // Deal with it being a book subclass & store new instance in materialList\n\t\t if(type.compareTo(\"Book\") == 0) {\n\t\t \tString author = materialEl.getElementsByTagName(\"author\").item(0).getTextContent();\n\t\t \tBook newBook = new Book(type, name, author, isRef, ID, totInLib, available);\n\t\t \tmaterialList.add(newBook);\n\t\t } else {\n\t\t \tMaterial newMat = new Material(type, name, isRef, ID, totInLib, available);\n\t\t \tmaterialList.add(newMat);\n\t\t }\n\t\t }\n\t\t }\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Something went wrong with the Material.xml parsing\");\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t// Store our array so it is accessible elsewhere\n\t\tManageUsers.setMaterialList(materialList);\n\t}", "public void readCardData(Document d){\r\n \r\n Card[] tempDeck = new Card[40];\r\n int firstOne = 1;\r\n \r\n Element root = d.getDocumentElement();\r\n NodeList deck = root.getElementsByTagName(\"card\");\r\n \r\n for(int i = 0; i < deck.getLength(); i++){\r\n \r\n Card tempCard = new Card();\r\n //reads data from the nodes\r\n Node card = deck.item(i);\r\n //card name\r\n tempCard.name = card.getAttributes().getNamedItem(\"name\").getNodeValue();\r\n //card image\r\n tempCard.image = card.getAttributes().getNamedItem(\"img\").getNodeValue();\r\n //card budget\r\n tempCard.budget = Integer.parseInt(card.getAttributes().getNamedItem(\"budget\").getNodeValue());\r\n \r\n NodeList partCount = card.getChildNodes();\r\n int counter = 0;\r\n for (int p = 0; p < partCount.getLength(); p++){\r\n if(\"part\".equals(partCount.item(p).getNodeName())){\r\n counter++;\r\n }\r\n }\r\n Part[] tempParts = new Part[counter];\r\n int partsIndex = 0;\r\n for(int a = 0; a < counter; a++){\r\n tempParts[a] = new Part();\r\n }\r\n \r\n NodeList children = card.getChildNodes(); \r\n \r\n for(int j = 0; j < children.getLength(); j++){\r\n \r\n Node sub = children.item(j);\r\n \r\n //scenes\r\n if(\"scene\".equals(sub.getNodeName())){\r\n //scene number\r\n tempCard.scene = Integer.parseInt(sub.getAttributes().getNamedItem(\"number\").getNodeValue());\r\n //scene description\r\n tempCard.description = sub.getTextContent();\r\n }\r\n \r\n //parts\r\n else if(\"part\".equals(sub.getNodeName())){\r\n \r\n //part name\r\n tempParts[partsIndex].name = sub.getAttributes().getNamedItem(\"name\").getNodeValue();\r\n //part level\r\n tempParts[partsIndex].level = Integer.parseInt(sub.getAttributes().getNamedItem(\"level\").getNodeValue());\r\n Element n = (Element) children.item(j);\r\n //part line\r\n tempParts[partsIndex].line = n.getElementsByTagName(\"line\").item(0).getTextContent();\r\n \r\n //part area for cards\r\n NodeList partArea = n.getElementsByTagName(\"area\");\r\n Node tempNode = partArea.item(0);\r\n Element partBuilder = (Element) tempNode;\r\n tempParts[partsIndex].x = Integer.parseInt(partBuilder.getAttribute(\"x\"));\r\n tempParts[partsIndex].y = Integer.parseInt(partBuilder.getAttribute(\"y\"));\r\n tempParts[partsIndex].h = Integer.parseInt(partBuilder.getAttribute(\"h\"));\r\n tempParts[partsIndex].w = Integer.parseInt(partBuilder.getAttribute(\"w\"));\r\n \r\n tempParts[partsIndex].onCard = true;\r\n tempParts[partsIndex].isTaken = false;\r\n \r\n tempCard.parts = tempParts;\r\n partsIndex++;\r\n }\r\n }\r\n Board.deck[Board.deckIndex++] = tempCard;\r\n }\r\n }", "public void PopulateRSSData()\n {\n try\n {\n URL Feed = ParseRSSFromFeed();\n ParseRSS(Feed);\n }\n catch(java.net.MalformedURLException exp)\n {\n String message = exp.getMessage();\n System.out.println(message);\n }\n catch(com.rometools.rome.io.FeedException fexp)\n {\n String message = fexp.getMessage();\n System.out.println(message);\n }\n catch(java.io.IOException ioexp)\n {\n String message = ioexp.getMessage();\n System.out.println(message);\n }\n }", "private void openCredits() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.credits);\n builder.setNeutralButton(R.string.dialog_ok, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n AlertDialog dialog_credits = builder.create();\n dialog_credits.setOnDismissListener(new DialogInterface.OnDismissListener() {\n @Override\n public void onDismiss(DialogInterface dialogInterface) {\n isOpenCredits = false;\n }\n });\n dialog_credits.show();\n isOpenCredits = true;\n }", "private void loadTransactions(String transactionFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(transactionFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //read...\n String currentLine = input.nextLine();\n\n //parse on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n int transactionId = Integer.parseInt(splitLine[0]);\n\n String accountTypeChar = splitLine[1];\n TransactionType transactionType = null;\n switch (accountTypeChar)\n {\n case \"D\":\n transactionType = TransactionType.DEBIT;\n break;\n\n case \"C\":\n transactionType = TransactionType.CREDIT;\n break;\n\n case \"T\":\n transactionType = TransactionType.TRANSFER;\n }\n\n String description = splitLine[2];\n Date date = dateFormat.parse(splitLine[3]);\n double amount = Double.parseDouble(splitLine[4]);\n int accountId = Integer.parseInt(splitLine[5]);\n\n Transaction transaction = new Transaction(transactionId,\n transactionType,\n description,\n date,\n amount,\n accountId);\n\n transactionHashMap.putIfAbsent(accountId, new ArrayList<>());\n transactionHashMap.get(accountId).add(transaction);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "private static Patent parseGrantv42(String patentxml) {\n\t\tPatent patent = new PatentGrant();\n \ttry {\n\t\t\tSAXParserFactory spf = SAXParserFactory.newInstance();\n\t\t\tSAXParser sp;\n\t\n\t\t\tsp = spf.newSAXParser();\n\t\n\t\t\tXMLReader xr = sp.getXMLReader();\n \n\t // prase the xml according to its dtd version\n\t JAXBContext jc = JAXBContext.newInstance(\"xml.us.patent.grant.v42\");\n\t Marshaller marshaller = jc.createMarshaller();\t \n\t Unmarshaller unmarshaller = jc.createUnmarshaller();\n\t UnmarshallerHandler unmarshallerHandler = unmarshaller.getUnmarshallerHandler();\n\t xr.setContentHandler((ContentHandler) unmarshallerHandler);\n\t \n\t InputSource xmlSource = new InputSource(new StringReader(patentxml));\n\t xr.parse(xmlSource);\n\t \n\t xml.us.patent.grant.v42.UsPatentGrant grant = (xml.us.patent.grant.v42.UsPatentGrant) unmarshallerHandler.getResult();\n\t \n\t // extract patent data\n\t List<Object> grantLst = grant.getDocPageOrUsBibliographicDataGrantOrAbstractOrDrawingsOrDescriptionOrUsSequenceListDocOrUsMegatableDocOrTableExternalDocOrUsChemistryOrUsMathOrUsClaimStatementOrClaims();\n\t for(int i=0; i<grantLst.size(); i++) {\n\t \tObject grantnode = grantLst.get(i);\n\t \tif(grantnode.getClass()==xml.us.patent.grant.v42.UsBibliographicDataGrant.class) {\n\t \t\txml.us.patent.grant.v42.UsBibliographicDataGrant usBibliographicDataGrant = (xml.us.patent.grant.v42.UsBibliographicDataGrant) grantnode;\n\t \t\t\n\t \t\t// get publication reference\n\t \t\txml.us.patent.grant.v42.PublicationReference publicationReference = usBibliographicDataGrant.getPublicationReference();\n\t \t\t\n\t \t\txml.us.patent.grant.v42.DocumentId docId = publicationReference.getDocumentId();\n\t \t\tpatent.setPubDocNumber(docId.getDocNumber());\n\t \t\tpatent.setPubCountry(docId.getCountry().getvalue());\n\t \t\tpatent.setPubKind(docId.getKind());\n\t \t\tpatent.setPubDate(docId.getDate().getvalue());\n\t \t\t\n\t \t\txml.us.patent.grant.v42.InventionTitle inventionTitle = usBibliographicDataGrant.getInventionTitle();\n\t \t\tpatent.setTitle(inventionTitle.getvalue());\n\t \t\t\n\t \t\t// get application reference\n\t \t\txml.us.patent.grant.v42.ApplicationReference applicationReference = usBibliographicDataGrant.getApplicationReference();\n\t \t\tdocId = applicationReference.getDocumentId();\n\t \t\tpatent.setAppDocNumber(docId.getDocNumber());\n\t \t\tpatent.setAppCountry(docId.getCountry().getvalue());\n\t \t\tpatent.setAppDate(docId.getDate().getvalue());\n\t \t\t\n\t \t\t// get inventors\n\t \t\txml.us.patent.grant.v42.Parties parties = usBibliographicDataGrant.getParties();\n\t \t\tif(parties!=null) {\n\t \t\t\txml.us.patent.grant.v42.Inventors inventors = parties.getInventors();\n\t\t \t\tif(inventors!=null) {\n\t\t \t\t\tList<Object> inventorsLst = inventors.getInventorOrDeceasedInventor();\n\t\t \t\t\tfor(Object inventornode : inventorsLst) {\n\t \t\t\t\t\tif(inventornode.getClass()==xml.us.patent.grant.v42.Inventor.class) {\n\t \t\t\t\t\t\txml.us.patent.grant.v42.Inventor inventor = (xml.us.patent.grant.v42.Inventor) inventornode;\n\t \t\t\t\t\t\tList<xml.us.patent.grant.v42.Addressbook> inventorAddressbook = inventor.getAddressbook();\n\t \t\t\t\t\t\tfor(xml.us.patent.grant.v42.Addressbook inventorAddressbookDet : inventorAddressbook)\n\t \t\t\t\t\t\t{\n\t \t\t\t\t\t\t\tpatent.addInventor(new AddrezzBook(inventorAddressbookDet));\n\t \t\t\t\t\t\t}\t\t\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\t\n\t \t\t// get assignees\n\t \t\txml.us.patent.grant.v42.Assignees assignees = usBibliographicDataGrant.getAssignees();\n\t \t\tif(assignees!=null) {\n\t\t \t\tList<xml.us.patent.grant.v42.Assignee> assigneeLst = assignees.getAssignee();\n\t\t \t\tfor(xml.us.patent.grant.v42.Assignee assigneeDet : assigneeLst) {\n\t\t \t\t\tpatent.addAssignee(new AddrezzBook(assigneeDet));\n\t\t \t\t}\n\t \t\t}\n\t \t\t\n\t \t\t// get US classification\n\t \t\txml.us.patent.grant.v42.ClassificationNational usClassification = usBibliographicDataGrant.getClassificationNational();\n\t \t\tif(usClassification!=null) {\n\t\t \t\tpatent.setMainClassification(usClassification.getMainClassification());\n\t\t \t\t\n\t\t \t\tList<xml.us.patent.grant.v42.FurtherClassification> furtherClassifications = usClassification.getFurtherClassification();\n\t\t \t\tif(furtherClassifications!=null) {\n\t\t \t\t\tfor(xml.us.patent.grant.v42.FurtherClassification furtherClassification : furtherClassifications) {\n\t\t \t\t\t\tpatent.addfurtherClassification(furtherClassification.getvalue());\n\t\t \t\t\t}\n\t\t \t\t}\n\t \t\t}\n\t \t\t\n\t \t\t// get IPC classification\n\t \t\txml.us.patent.grant.v42.ClassificationsIpcr ipcs = usBibliographicDataGrant.getClassificationsIpcr();\n\t \t\tif(ipcs!=null) {\n\t \t\t\tList<xml.us.patent.grant.v42.ClassificationIpcr> ipcLst = ipcs.getClassificationIpcr();\n\t \t\t\tif(ipcLst!=null) {\n\t \t\t\t\tfor(xml.us.patent.grant.v42.ClassificationIpcr ipc : ipcLst) {\n\t \t\t\t\t\txml.us.patent.grant.v42.IpcVersionIndicator versionIndicator = ipc.getIpcVersionIndicator();\n\t \t\t\t\t\tif(versionIndicator!=null) {\n\t \t\t\t\t\t\tpatent.addIpcVersionDate(versionIndicator.getDate().getvalue());\n\t \t\t\t\t\t}\n\t \t\t\t\t\tpatent.addIpcClassificationLevel(ipc.getClassificationLevel());\n\t \t\t\t\t\tpatent.addIpcSection(ipc.getSection());\n\t \t\t\t\t\tpatent.addIpcClass(ipc.getClazz().getvalue());\n\t \t\t\t\t\tpatent.addIpcSubclass(ipc.getSubclass());\n\t \t\t\t\t\tpatent.addIpcMainGroup(ipc.getMainGroup());\n\t \t\t\t\t\tpatent.addIpcSubgroup(ipc.getSubgroup());\n\t \t\t\t\t\tpatent.addIpcSymbolLevel(ipc.getSymbolPosition());\n\t \t\t\t\t\tpatent.addIpcClassificationValue(ipc.getClassificationValue());\n\t \t\t\t\t}\n\t \t\t\t}\t \t\t\n\t \t\t}\n\t \t}\t \t\n\t \telse if(grantnode.getClass()==xml.us.patent.grant.v42.Abstract.class) { // get abstract\n\t \t\txml.us.patent.grant.v42.Abstract abstr = (xml.us.patent.grant.v42.Abstract) grantnode;\n\t \t\tStringWriter sw = new StringWriter();\n\t \t\tmarshaller.marshal(abstr, sw);\n\t \t\tpatent.addAbstractParagraph(sw.toString().replaceAll(\"</.*?>|<[^>]*?/>\", \"\").replaceAll(\"<.*?>\", \"\\n\"));\n\t \t}\n\t \telse if(grantnode.getClass()==xml.us.patent.grant.v42.Description.class) { // get description\n\t \t\txml.us.patent.grant.v42.Description desc = (xml.us.patent.grant.v42.Description) grantnode;\n\t \t\tStringWriter sw = new StringWriter();\n\t \t\tmarshaller.marshal(desc, sw);\n\t \t\tpatent.addDescParagraph(sw.toString().replaceAll(\"</.*?>|<[^>]*?/>\", \"\").replaceAll(\"<.*?>\", \"\\n\")); \t\t\n\t \t}\t\t\t \t\n\t \telse if(grantnode.getClass()==xml.us.patent.grant.v42.Claims.class) { // get claims\n\t \t\txml.us.patent.grant.v42.Claims claims = (xml.us.patent.grant.v42.Claims) grantnode;\n\t \t\tStringWriter sw = new StringWriter();\n\t \t\tmarshaller.marshal(claims, sw);\n\t \t\tpatent.addClaim(sw.toString().replaceAll(\"<claim id.*?>|</.*?>|<[^>]*?/>\", \"\").replaceAll(\"<claim-ref.*?>|</claim-ref.*?>\",\" \").replaceAll(\"</claim-ref.*?>\",\" \").replaceAll(\"<.*?>\", \"\\n\"));\n\t \t}\n\t }\n\t } catch (ParserConfigurationException | SAXException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (JAXBException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn patent;\n\t}", "private void xmlOpen() {\r\n Read.xml(score);\r\n makeBtnsVisible();\r\n }", "public void testXmlReader() throws Exception {\n File file = new File(\"src/test/resources/reader/sample.xml\");\n final URL testdata = file.toURI().toURL();\n reader.parse(testdata, creator);\n assertEquals(\"Did not create expected number of nodes\", 1, creator.size());\n }" ]
[ "0.5862305", "0.5646806", "0.5630251", "0.56225127", "0.55227643", "0.54104125", "0.5352335", "0.52785975", "0.5251359", "0.52119553", "0.5140996", "0.50896555", "0.5070354", "0.50686234", "0.50320446", "0.50306004", "0.5029845", "0.5012687", "0.49525458", "0.49519667", "0.491062", "0.49090058", "0.48646426", "0.483211", "0.48131248", "0.48081693", "0.47996444", "0.47729284", "0.47704163", "0.47501087", "0.4740414", "0.47336608", "0.47205293", "0.47184628", "0.4702687", "0.46906966", "0.46857393", "0.46841982", "0.46733588", "0.46627071", "0.46415734", "0.46415663", "0.4631506", "0.46300223", "0.46134064", "0.4569608", "0.45613325", "0.45520893", "0.45410147", "0.45365357", "0.45327988", "0.45265463", "0.45253313", "0.45240974", "0.45142165", "0.45072272", "0.45048952", "0.44858137", "0.44760802", "0.44676265", "0.44663686", "0.44611236", "0.44598454", "0.44586146", "0.44449812", "0.44420996", "0.44415957", "0.44413885", "0.44268668", "0.44201657", "0.44160694", "0.44152212", "0.44084412", "0.44077507", "0.44070706", "0.43984583", "0.4397235", "0.4392248", "0.4389142", "0.43691927", "0.43651965", "0.43650362", "0.43638596", "0.43615463", "0.43583712", "0.4356161", "0.43458346", "0.43446177", "0.4339593", "0.43360087", "0.43284634", "0.4327543", "0.4326958", "0.43255433", "0.43198583", "0.43128574", "0.43040738", "0.4302849", "0.42998916", "0.42928764" ]
0.616132
0
log at INFO level
public static void info(String message) { logger.info(message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void _logInfo ()\n {\n System.err.println (\"Logging is enabled using \" + log.getClass ().getName ());\n }", "public void logInfo( String msg ) {\r\n\t\tlogger.log( Level.INFO, logPrefix + \" \" + msg );\r\n\t}", "public static void logInfo(String message)\n {\n log(IStatus.INFO, message);\n }", "public void logInfo(boolean logInfo)\r\n {\r\n if (logInfo != infoLevelHandler.getBoolean())\r\n {\r\n infoLevelHandler.setBoolean(logInfo);\r\n fireConfigUpdated();\r\n }\r\n }", "public void info(String msg) {\n log(INFO, msg);\n }", "public static void log4jExample() {\n\t\tnewLogger.warn(\"This is the info level\");\n\t\t\n\t}", "public void log(String message) {\n log(message, MSG_INFO);\n }", "public void info(String msg) {\n log(Level.INFO, msg, null);\n }", "protected void info(String msg) {\n log.log(Level.INFO, msg);\n }", "private void logInfo(String msgText) {\n System.out.println (\"[INFO] \" + msgText);\n \n }", "public void info(String msg) {\n\t\tif (this.logLevel <= BackupLogger.INFO) {\n\t\t\twrite(\"INFO \" + msg);\n\t\t\tSystem.out.println(\"INFO \" + msg);\n\t\t}\n\t}", "public boolean logInfo()\r\n {\r\n return infoLevelHandler.getBoolean();\r\n }", "@Override\n public void info(String message) {\n if (Level.INFO.getPriority() <= level.getPriority()) {\n print(\"INFO: \" + message);\n }\n }", "public void info(String msg) {\n LOGGER_BASE.info(msg);\n }", "public static void info(String msg) {\n\t\tlogger.log(Level.INFO, msg);\n\t}", "public void info(Object message)\n/* */ {\n/* 145 */ if (message != null) {\n/* 146 */ getLogger().info(String.valueOf(message));\n/* */ }\n/* */ }", "public static void logInfo(String info, int level) {\n\t\tif (!m_bDebug && level < 1) return;\n\t\tm_Logger.info(\"[OrbitalStrike] \" + info);\n\t}", "public static void info(String msg) {\n\t\tlog.info(\"[iCart] \" + msg);\n\t}", "public static void info(String message) {\n\n\t\tlog(message);\n\t}", "public static void info(String msg) {\n logger.info(msg);\n }", "public static void info(String msg){\n\t\tconsole(msg);\n\t\tlogger.info(msg);\n\t}", "public void LogIt(ExtentTest logger,String StepInfo){\r\n logger.log(Status.INFO,StepInfo);\r\n }", "public static void info(String message) {\n\t\tif (logger != null) {\n\t\t\tlogger.log(Level.INFO, message);\n\t\t}\n\t}", "public boolean isInfoLoggable() {\n return logger.isLoggable(Level.INFO);\n }", "private void infoLog(String msg) {\n Log.i(\"ActivityTransitions\", TAG + \" --> \" + msg);\n }", "public void logInfo(final String message) {\n\n\t\t\tMSULogger.internalLogger.log(\n\t\t\t\tMSULogger.WRAPPER_FQN,\n\t\t\t\tLevel.INFO,\n\t\t\t\tmessage,\n\t\t\t\tnull);\n\t\t}", "public void info(String message) {\r\n\t\treport(INFO, message, null);\r\n\t}", "@SuppressWarnings(\"unused\")\n protected void info(String msg) {\n if (this.getContainer() != null && this.getContainer().getLogger().isInfoEnabled()) {\n this.getContainer().getLogger().info(msg);\n }\n }", "protected void Info(String message) {\n logger.logMessage(message);\n }", "private void logDeviceInfo() {\n logDeviceLevel();\n }", "private void logDeviceInfo() {\n logDeviceLevel();\n }", "public static void logInfo(Class clz,String message){\n if(logging){\n String tag = clz.getName();\n android.util.Log.i(tag, message);\n }\n }", "public void info(String message) {\n if (mLoggable) {\n try {\n Log.i(mClassName, message);\n } catch (Exception e) {\n Log.e(TAG, e.getMessage());\n }\n }\n }", "public final static void info(String message)\n\t{\n\t\tif (logger != null)\n\t\t\tlogger.info(message);\n\t}", "private static void logInfo(final Logger logger, final String message) {\n System.out.println(message);\n logger.info(message);\n }", "public static void info(String message) {\n LOGGER.info(message);\n }", "public void info(Object message, Throwable t)\n/* */ {\n/* 159 */ if (message != null) {\n/* 160 */ getLogger().info(String.valueOf(message), t);\n/* */ }\n/* */ }", "private static void log(Level level, Object message) {\n logger.info(LogUtil.class.getName(),level, message,null);\n }", "void log();", "@Override\n public void log()\n {\n }", "public void writeLog() {\n\n\t}", "public void writeLog() {\n\n\t}", "public void writeLog() {\n\n\t}", "@Override\n public void info(final Object message) {\n this.logger.info(this.prepareDefaultMessage(message));\n }", "abstract protected void logInternal(int level, String message);", "@Override\n public void logs() {\n \n }", "public static void logInfo(Context context,String message){\n if(logging){\n String tag = context.getClass().getName();\n android.util.Log.i(tag, message);\n }\n }", "public static void writeMessage(String message) {\n writeMessage(Level.INFO, message);\n }", "public void log(String message) {\n\t\tlogger.info(message);\n\t}", "public void enableLogging();", "@Override\n\tpublic void info(Message msg) {\n\n\t}", "public LogStepMonitorHandler ()\r\n {\r\n setFilter(new LogLevelsFilter(Level.INFO));\r\n }", "public void infoLog(String testStep,ExtentReports report,ExtentTest logger)\n\t{\n\t\tcurrentTestStep = testStep;\n\t\tlogger.log(Status.INFO, \"Step: \"+(++i)+\" \"+testStep );\n\t\treport.flush();\n\t}", "public void logMsg(String msg) {\r\n if (this.logger != null) {\r\n logger.info(msg);\r\n }\r\n }", "public void info( String methodName, String message )\n {\n getLogger().info( methodName + \"():\" + message );\n }", "private static void log(IStatus status) {\n\t getDefault().getLog().log(status);\n\t}", "public static void i(String tag, String msg) {\n if (logger != null && isLoggingEnabled(tag, INFO)) {\n logger.i(tag, msg);\n }\n }", "private void loggerEinrichten() {\n\t\tlogger.setLevel(Level.INFO);\n//\t\tHandler handler = new FileHandler(\"/home/programmieren/TestFiles/iCalender/temp.log\");\n\t\tHandler handler = new ConsoleHandler();\n\t\thandler.setLevel(Level.FINEST);\n\t\thandler.setFormatter(new Formatter() {\n\t\t\t@Override\n\t\t\tpublic String format(LogRecord record) {\n\t\t\t\treturn record.getSourceClassName() + \".\" + record.getSourceMethodName() + \": \" + record.getMessage()\n\t\t\t\t\t\t+ \"\\n\";\n\t\t\t}\n\t\t});\n\t\tlogger.addHandler(handler);\n\t\tlogger.setUseParentHandlers(false);\n\t\tlogger.finest(\"begonnen\");\n\t}", "void printHellow() {\n logger.debug(\"hellow world begin....\");\n logger.info(\"it's a info message\");\n logger.warn(\"it's a warning message\");\n loggerTest.warn(\"from test1 :....\");\n loggerTest.info(\"info from test1 :....\");\n\n // print internal state\n LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();\n StatusPrinter.print(lc);\n }", "@Override\n\tpublic void log(Level level, Marker marker, Message msg) {\n\n\t}", "private void doIt() {\n\t\tlogger.debug(\"hellow this is the first time I use Logback\");\n\t\t\n\t}", "protected void simpleLog(Level level, String message) {\n if (getClassLogger().isLoggable(level)) {\n TestBench.out().println(message);\n }\n }", "public static void info(Object arg0) {\n MDC.put(classNameProp, \"\");\n debugLogger.info(MessageCodes.GENERAL_INFO, String.valueOf(arg0));\n }", "public boolean isInfoLoggingOn() {\n return verbose || !quiet;\n }", "@Override\n\tpublic void info(String message, Object... params) {\n\n\t}", "public void setInformationOn(boolean flag)\n {\n this.setProperty(GUILoggerSeverityProperty.INFORMATION, flag);\n }", "@Override\n\tpublic void log(Level level, Object message) {\n\n\t}", "@Override\n\tpublic\n\tvoid info(final Object message) {\n\t\tif (message != null && message instanceof Throwable) {\n\t\t\tlogger.info(\"\", (Throwable) message);\n\t\t} else {\n\t\t\tlogger.info(message);\n\t\t}\n\t}", "@Test\r\n\tpublic void logTest() {\r\n\t\tlogger.info(\"Testando info\");\r\n\t\tlogger.debug(\"nao sera logado\" + \"Nice\");\r\n\t\tlogger.error(\"This is Error message\", new Exception(\"Testing\"));\r\n\t}", "@Override\r\n\tpublic String log(String info) {\n\t\tlong id=Thread.currentThread().getId();\r\n\t\tCalcThread b=ProCalcManage.getInstance().threadIDMap.get(id);\r\n\t\tsynchronized (b.proinfo.info.log) {\r\n\t\t\tb.proinfo.info.log.add(new LogInfo(new Date(), info));\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn info;\r\n\t}", "@Override\n\tpublic void log(Level level, Marker marker, String message) {\n\n\t}", "@Override\n\tpublic void log(Level level, Marker marker, Object message) {\n\n\t}", "void info(String message);", "protected void log(String msg) {\n\t\tif(isLogging) {\n\t\t\tSystem.out.println(\"[TRACKER \" + id() + \"] \" + msg);\n\t\t}\n\t}", "public void info(String msg, Throwable t) {\n log(Level.INFO, msg, t);\n }", "default String info(String... args) {\n String message = create(args);\n getLogger().info(message);\n return message;\n }", "public void info(String message);", "public void info(String message);", "public static void loggingExample() {\n\t\tSystem.out.println(\"This is running with the default logger!\");\n\t\tnewLogger.fatal(\"This is fatal\");\n\t\tnewLogger.warn(\"This is the warn level\");\n\t\tnewLogger.info(\"This is the info level\");\n\t\t\n\t}", "public boolean isInfoEnabled()\n/* */ {\n/* 274 */ return getLogger().isInfoEnabled();\n/* */ }", "final void out (String msg) { if (m_debugMode) { Logger.println (msg); } }", "void initializeLogging();", "@Override\n\tpublic void info(Object message) {\n\n\t}", "@Override\n public void log(String tag, com.microsoft.identity.client.Logger.LogLevel logLevel, String message, boolean containsPII) {\n }", "@Override\n\tpublic void log(Level level, Message msg) {\n\n\t}", "@Override\n\tpublic void log(Level level, Marker marker, String message, Object... params) {\n\n\t}", "public static void i(String str) {\n if (Log.isLoggable(TAG, Log.INFO)) {\n Log.i(TAG, str);\n }\n }", "@Override\n\tpublic void log(Level level, String message) {\n\n\t}", "public static void logStatus(){\r\n\t\tLogger log = Logger.getLogger(LOGGER_NAME);\r\n\t\tStringBuilder logString = new StringBuilder(\"\\n*** PlugIn Status ***\\n\");\r\n\t\t\r\n\t\tList<String> storagePlugins = getPluginsByType(PluginType.STORAGE);\r\n\t\tlogString.append(\"Storage PlugIns: \"+storagePlugins.size()+\"\\n\");\r\n\t\t\r\n\t\tlog.info(logString.toString());\r\n\t\treturn;\r\n\t}", "void info(String tag, String msg);", "protected void info(String msg, Throwable ex) {\n log.log(Level.INFO, msg, ex);\n }", "public static void addInfoToReport(String message) {\n String messageWithStepNumber = addMessageToReport(message);\n ExtentTestManager.getTest().log(Status.INFO, messageWithStepNumber);\n }", "@Override\n\tpublic void log(Level level, Marker marker, String message, Object p0) {\n\n\t}", "public static void log(String line) {\r\n\t\tcitiesLogger.info(line);\r\n\t}", "private static void print(LOG_IDENTIFY mode, String TAG, String info)\n {\n StackTraceElement[] ste = Thread.currentThread().getStackTrace(); \n StringBuffer sb = new StringBuffer();\n sb.append(ste[4].getClassName());\n sb.append(\"$\");\n sb.append(ste[4].getMethodName());\n sb.append(\"()@\");\n sb.append(ste[4].getLineNumber());\n sb.append(\" : \");\n sb.append(info);\n\n switch (mode)\n {\n case INFO: \n Log.i(TAG, sb.toString());\n break;\n case DEBUG:\n \tLog.d(TAG, sb.toString());\n break;\n case WARNING:\n \tLog.w(TAG, sb.toString());\n break;\n case ERROR:\n \tLog.e(TAG, sb.toString());\n break;\n case P:\n \tif(ste.length > 5)\n \t{\n \tsb.setLength(0);\n sb.append(ste[5].getClassName());\n sb.append(\"$\");\n sb.append(ste[5].getMethodName());\n sb.append(\"()@\");\n sb.append(ste[5].getLineNumber());\n sb.append(\" : \");\n sb.append(info);\n \t}\n \tLog.d(TAG, sb.toString());\n \tbreak;\n default:\n break;\n }\n \n }", "public void logData(){\n }", "private void log(String message) {\n\t\tif (isLoggerOn) {\n\t\t\tSystem.out.println(\"JaxbConverter: \" + message);\n\t\t}\n\t}", "public static void i(String message, Object... args) {\n log(INFO, null, null, message, args);\n }", "public static final void info(@org.jetbrains.annotations.NotNull org.jetbrains.anko.AnkoLogger r2, @org.jetbrains.annotations.NotNull kotlin.jvm.functions.Function0<? extends java.lang.Object> r3) {\n /*\n r1 = \"$receiver\";\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r2, r1);\n r1 = \"message\";\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r3, r1);\n r0 = r2.getLoggerTag();\n r1 = 4;\n r1 = android.util.Log.isLoggable(r0, r1);\n if (r1 == 0) goto L_0x0026;\n L_0x0017:\n r1 = r3.invoke();\n if (r1 == 0) goto L_0x0027;\n L_0x001d:\n r1 = r1.toString();\n if (r1 == 0) goto L_0x0027;\n L_0x0023:\n android.util.Log.i(r0, r1);\n L_0x0026:\n return;\n L_0x0027:\n r1 = \"null\";\n goto L_0x0023;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.jetbrains.anko.Logging.info(org.jetbrains.anko.AnkoLogger, kotlin.jvm.functions.Function0):void\");\n }", "protected void log(Object msg) {\n\t\n\t\tSystem.out.println(\"MusicDataAccessor: \" + msg);\n\t}" ]
[ "0.7763359", "0.75206786", "0.74376374", "0.7361721", "0.729904", "0.72948205", "0.7170246", "0.71536547", "0.7149381", "0.71441174", "0.70958215", "0.7069423", "0.70014995", "0.7001433", "0.69597536", "0.6937447", "0.69023407", "0.6895023", "0.6858992", "0.6829916", "0.67979056", "0.66658324", "0.6659046", "0.6647297", "0.66130465", "0.6585989", "0.65677774", "0.6508823", "0.65030795", "0.649893", "0.649893", "0.647981", "0.6473773", "0.6469236", "0.64680964", "0.64670587", "0.64593446", "0.6440356", "0.638466", "0.6382182", "0.6372788", "0.6372788", "0.6372788", "0.63654524", "0.6345656", "0.6331707", "0.6291472", "0.62793577", "0.62721014", "0.6264876", "0.62481976", "0.6225554", "0.6216935", "0.6198337", "0.6172681", "0.61696607", "0.6157861", "0.61508065", "0.61400527", "0.6136149", "0.61287284", "0.61234903", "0.6114521", "0.6109816", "0.61043054", "0.61036205", "0.6097379", "0.6096763", "0.6093513", "0.60909206", "0.6087993", "0.6085402", "0.60853606", "0.6078073", "0.60776955", "0.60733604", "0.60719204", "0.60719204", "0.6070911", "0.6066676", "0.6056675", "0.60549295", "0.6047123", "0.6041007", "0.60335475", "0.6015451", "0.6008251", "0.5991519", "0.5985372", "0.59848356", "0.59829366", "0.59828794", "0.5963269", "0.5959847", "0.595683", "0.5955177", "0.59465414", "0.59415495", "0.5937118", "0.59238875" ]
0.6592077
25
log at ERROR level
public static void error (String message, Throwable throwable, WebDriver driver) { ScreenCapture screenshot = new ScreenCapture(); screenshot.takeScreenShot(driver); logger.error(message, throwable); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void logError(Exception e);", "private void logError(String msg)\n {\n GlobeRedirector.errorLog.write(msg);\n }", "public void error(String msg) {\n boolean doit = level == Level.NONE || level == Level.INFO;\n if (log != System.err || !doit) {\n System.err.println(msg);\n }\n if (!doit) return;\n write(\"ERROR\", msg); \n }", "abstract void logError(String error);", "public void log(ErrorLevel el, String message, Throwable t);", "public void error(Object message, Throwable t)\n/* */ {\n/* 213 */ if (message != null) {\n/* 214 */ getLogger().error(String.valueOf(message), t);\n/* */ }\n/* */ }", "static void logError(Throwable t) {\n }", "public void logErr(String msg) {\r\n if (this.logger != null) {\r\n logger.severe(msg);\r\n }\r\n }", "abstract void errorLogError(String error);", "public void error(Object message)\n/* */ {\n/* 199 */ if (message != null) {\n/* 200 */ getLogger().error(String.valueOf(message));\n/* */ }\n/* */ }", "abstract void errorLogCustom(String tag, String message);", "public static void logError(String message)\n {\n log(IStatus.ERROR, message);\n }", "private static void error(@NotNull final org.slf4j.Logger logger, @NotNull @NotBlank @NotEmpty final String key,\r\n\t\t\tfinal Throwable exp, final Object... args) {\r\n\t\tif (logger.isErrorEnabled()) {\r\n\t\t\tfinal String message = format(key, args);\r\n\t\t\tif (null == exp) {\r\n\t\t\t\tlogger.error(message);\r\n\t\t\t} else {\r\n\t\t\t\t// Distinguish from JVM error and Defined error\r\n\t\t\t\tif (exp instanceof AbstractException) {\r\n\t\t\t\t\tfinal AbstractException error = (AbstractException) exp;\r\n\t\t\t\t\tlogger.error(\"[ *** ERROR\" + error.getErrorCode() + \" *** ] \" + message);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlogger.error(\"[ *** JVM ERROR *** ]: \" + message);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void logError(String msgText) {\n System.out.println (\"[ERROR] \" + msgText);\n \n }", "protected void error(String msg) {\n log.log(Level.SEVERE, msg);\n }", "public void error(String msg) {\n LOGGER_BASE.error(msg);\n }", "abstract void initiateErrorLog();", "private static final void log(Throwable e) {\n\t\tlog.println(e);\n\t}", "protected static void errorLog(float error){\n\n\t\tString logString = error + \"\\n\";\n\t\ttry {\n\t\t\tFiles.write(Paths.get(\"errorLog.txt\"), logString.getBytes(), StandardOpenOption.APPEND);\n\t\t}catch (IOException e) {\n\t\t\t//exception handling left as an exercise for the reader\n\t\t}\n\t}", "public static void error(Object message) {\n\t\tif (logger != null) {\n\t\t\tlogger.log(Level.ERROR, message);\n\t\t}\n\t}", "public static synchronized void logError(Exception e) {\n\t\te.printStackTrace();\r\n\t}", "@Override\r\n\tprotected void logError(String message, Throwable throwable) {\n\t\t\r\n\t}", "public void logError(String message) {\n logger.logError(\"[\" + game.getName() + \"] \" + message);\n }", "@Override\n\tpublic void log(Level level, Message msg, Throwable t) {\n\n\t}", "public boolean logErrors()\r\n {\r\n return errorLevelHandler.getBoolean();\r\n }", "@ExceptionHandler(Exception.class)\n public void logErrors(Exception e) {\n errorLogger.logError(e.getMessage(), e);\n }", "@Override\n\tpublic void log(Level level, Object message, Throwable t) {\n\n\t}", "public static void e(Throwable t) {\n log(ERROR, null, t, \"\");\n }", "@Override\n\tpublic void error(final Object message) {\n\t\tif (message != null && message instanceof Throwable) {\n\t\t\tlogger.error(\"\", (Throwable) message);\n\t\t} else {\n\t\t\tlogger.error(message);\n\t\t}\t\t\t\t\n\t}", "public void logError(String logMsg, Exception e) {\n logger.error(logMsg, e);\n }", "public void error(String loggerFqcn, Object message, Throwable t)\n/* */ {\n/* 71 */ this.logger.error(loggerFqcn, message, t);\n/* */ }", "@Override\n public void error(String message) {\n if (Level.ERROR.getPriority() <= level.getPriority()) {\n print(\"ERROR: \" + message);\n }\n }", "abstract void errorLogMessage(String message);", "private void log(Throwable t) {\r\n StringWriter sw = new StringWriter();\r\n PrintWriter w = new PrintWriter(sw);\r\n t.printStackTrace(w);\r\n w.close();\r\n log(sw.toString(), Project.MSG_ERR);\r\n }", "public void error(Throwable error) {\n\n }", "public void error(Throwable error) {\n\n }", "public static void logError(String message, Throwable e)\n {\n log(IStatus.ERROR, message, e);\n }", "@Override\n\tpublic void log(Level level, String message, Throwable t) {\n\n\t}", "public static void logGenericUserError() {\n\n }", "public void error(String message) {\n if (mLoggable) {\n try {\n Log.e(mClassName, message);\n } catch (Exception e) {\n Log.e(TAG, e.getMessage());\n }\n }\n }", "protected void logException(Exception e) {\r\n if (log.isErrorEnabled()) {\r\n log.logError(LogCodes.WPH2004E, e, e.getClass().getName() + \" processing field \");\r\n }\r\n }", "abstract public void log(int level, String msg, Throwable thrown);", "private void logInvalidMessage(String msg){\n \tif (null != utilLog){\n \t\tutilLog.error(msg);\n \t}\n \telse{\n \t\tSystem.out.println(msg);\n \t}\n }", "public void print_error( String text, int level ) {\n\t\tif ( get_debug_level() >= level ) {\n\t\t\t_platform_io.print_error( text );\n\t\t}\n\t}", "public static void logError(Logger logger, ServerWebExchange exchange, String msg, Object... args) {\n\n if (!logger.isErrorEnabled())\n return;\n\n if (exchange == null) {\n logger.error(msg, args);\n } else {\n String context = exchange.getAttribute(TRACE_ID_CONTEXT_KEY);\n try (MDC.MDCCloseable cMdc = MDC.putCloseable(TRACE_ID_CONTEXT_KEY, context)) {\n logger.error(msg, args);\n }\n }\n }", "@Override\n\tpublic void error(Message msg, Throwable t) {\n\n\t}", "public static void error(String message) {\n LOGGER.error(message);\n }", "public static void logServiceError(AmazonServiceException ase) {\n\t\tlogger.error(\"Caught an AmazonServiceException, which means your request made it \"\n\t\t\t\t+ \"to Amazon , but was rejected with an error response for some reason.\");\n\t\tlogger.error(\"Error Message: \" + ase.getMessage());\n\t\tlogger.error(\"HTTP Status Code: \" + ase.getStatusCode());\n\t\tlogger.error(\"AWS Error Code: \" + ase.getErrorCode());\n\t\tlogger.error(\"Error Type: \" + ase.getErrorType());\n\t\tlogger.error(\"Request ID: \" + ase.getRequestId());\n\t}", "private void logError(String message, Throwable error, boolean alertUser){\n // always log the error\n log.e(TAG, message, error);\n // alert the user to avoid silent errors\n if (alertUser){\n Toast.makeText(getApplicationContext(), message, Toast.LENGTH_LONG).show();\n\n }\n\n }", "protected void error(String msg, Throwable ex) {\n log.log(Level.SEVERE, msg, ex);\n }", "protected void logError(IConfigurationElement element, String text)\r\n {\r\n IExtension extension = element.getDeclaringExtension();\r\n StringBuffer buf = new StringBuffer();\r\n buf.append(\"Plugin \");\r\n buf.append(extension.getNamespaceIdentifier());\r\n buf.append(\", extension \");\r\n buf.append(extension.getExtensionPointUniqueIdentifier());\r\n buf.append(\"\\n\");\r\n buf.append(text);\r\n System.err.println(buf);\r\n }", "void k2h_set_debug_level_error();", "public static LogType ERROR()\n {\n if (g_oError == null)\n {\n try\n {\n g_oError = new LogType(\"ERROR\", 10);\n }\n catch (Goliath.Exceptions.InvalidParameterException ex)\n {}\n }\n return g_oError;\n }", "public static void errorln(Object message) {\n\t\tSystem.out.println(\"! ERROR: \" + message);\n\t}", "public void error(Throwable e);", "public synchronized void log(String msg) {\n\t\tSystem.err.println(msg);\n\t}", "public void error(Exception e);", "@Override\n public void error(final Object message) {\n this.logger.error(this.prepareDefaultMessage(message));\n }", "static void logSQLError(SQLException e) {\n log.log(Level.SEVERE, \"SQL Error\", e);\n }", "public static void e(String tag, String msg) {\n if (logger != null && isLoggingEnabled(tag, ERROR)) {\n logger.e(tag, msg);\n }\n }", "@Override\n public void logError(String message) {\n Log.e(_projectName, message);\n }", "public static void logErrorMessages(ADFLogger logObject, String logMsg) {\r\n if (logObject.isSevere()) {\r\n logObject.severe(logMsg);\r\n }\r\n }", "public void setMinimumLevel(ErrorLevel el);", "private void sendNotificationError(Exception e) {\n logger.error(e.getMessage());\n \n }", "@Test\r\n\tpublic void logTest() {\r\n\t\tlogger.info(\"Testando info\");\r\n\t\tlogger.debug(\"nao sera logado\" + \"Nice\");\r\n\t\tlogger.error(\"This is Error message\", new Exception(\"Testing\"));\r\n\t}", "protected void Error(String message) {\n logger.logError(message);\n }", "public static void e(String tag, String msg, Throwable tr) {\n if (logger != null && isLoggingEnabled(tag, ERROR)) {\n logger.e(tag, msg, tr);\n }\n }", "private ErrorLogger errorLogger() {\n return this.m_mds.errorLogger();\n }", "@Override\n\tpublic void error(Object message, Throwable t) {\n\n\t}", "public void printException(Level l, Throwable e) {\n if (repository.isDisabled(l.getSyslogEquivalent()))\n return;\n\n if (isEnabledFor(l)) {\n forcedLog(FQCN, Level.ERROR, e.toString(), null);\n LoggerPrintStream out = new LoggerPrintStream(this, l);\n e.printStackTrace(out);\n out.flush();\n }\n }", "protected final void logInitializationError() {\n SimpleServerException e = new SimpleServerException(\n SimpleServerException.service_state_exception, new Object[] {});\n getLogger().log(Level.SEVERE, \"\", e);\n }", "@Override\n\tpublic void log(Level level, CharSequence message, Throwable t) {\n\n\t}", "public static void logError(Class clz, Exception e, String message){\n if(logging){\n String tag = clz.getName();\n if(e == null) android.util.Log.e(tag, message);\n else if(message == null) android.util.Log.e(tag, e.getMessage(), e.getCause());\n else android.util.Log.e(tag, message, e.getCause());\n }\n }", "public void logErrorMessage(String message) {\n\t\tgetILog().log(new Status(IStatus.ERROR, PLUGIN_ID, message, null));\n\t}", "private static void err(String msg) {\n System.err.println(PerfCakeAgent.class.getSimpleName() + \" > ERROR: \" + msg);\n }", "default String error(String... args) {\n String message = create(args);\n Reporter.log(message);\n getLogger().error(message);\n return message;\n }", "public void logError(final String format, final Object... args) {\n errorMessages.add(String.format(format, args));\n }", "@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "public static void logClientError(AmazonClientException ace) {\n\t\tlogger.error(\"Caught an AmazonClientException, which means the client encountered \"\n\t\t\t\t+ \"a serious internal problem while trying to communicate with , \"\n\t\t\t\t+ \"such as not being able to access the network.\");\n\t\tlogger.error(\"Error Message: \" + ace.getMessage());\n\t}", "public static void log(Throwable e) {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tsb.append(e.toString());\r\n\t\tfor (StackTraceElement el : e.getStackTrace()) {\r\n\t\t\tsb.append(\"\\n\" + el);\r\n\t\t}\r\n\t\tsb.append(\"\\n-----------------------------------------------------------------\\n\");\r\n\t\tlog(sb.toString(), LoggerLevel.WARNING);\r\n\t}", "@Override\n\tpublic void log(Level level, Marker marker, Message msg, Throwable t) {\n\n\t}", "@Override\n public void onError(Throwable error) {\n Log.e(\"REALM\", \" ERROR .\" + error.toString());\n }", "private void logException(TestStepRunner testStepRunner)\n\t\t\tthrows AFTException {\n\t\tLOGGER.error(errorMessage);\n\n\t\tString onDbErrorValue = setOnDbErrorValue(testStepRunner);\n\n\t\tLOGGER.info(\"User has defined '\"\n\t\t\t\t+ ConfigProperties.ONERROR_DB_CONNECTION\n\t\t\t\t+ \"' to [\"\n\t\t\t\t+ onDbErrorValue\n\t\t\t\t+ \"]. This test case execution will be stopped and test execution will continue as per '\"\n\t\t\t\t+ ConfigProperties.ONERROR_DB_CONNECTION + \"' configuration.\");\n\t\tthrow new AFTException(errorMessage);\n\t}", "public static void error(String tag, String msg, Throwable ex) {\n if (BuildConfig.DEBUG) {\n Log.e(tag, msg, ex);\n }\n }", "public static final void error(@org.jetbrains.annotations.NotNull org.jetbrains.anko.AnkoLogger r2, @org.jetbrains.annotations.NotNull kotlin.jvm.functions.Function0<? extends java.lang.Object> r3) {\n /*\n r1 = \"$receiver\";\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r2, r1);\n r1 = \"message\";\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r3, r1);\n r0 = r2.getLoggerTag();\n r1 = 6;\n r1 = android.util.Log.isLoggable(r0, r1);\n if (r1 == 0) goto L_0x0026;\n L_0x0017:\n r1 = r3.invoke();\n if (r1 == 0) goto L_0x0027;\n L_0x001d:\n r1 = r1.toString();\n if (r1 == 0) goto L_0x0027;\n L_0x0023:\n android.util.Log.e(r0, r1);\n L_0x0026:\n return;\n L_0x0027:\n r1 = \"null\";\n goto L_0x0023;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.jetbrains.anko.Logging.error(org.jetbrains.anko.AnkoLogger, kotlin.jvm.functions.Function0):void\");\n }", "public void error(Context cxt) {\n recordEnhanced(ERROR, cxt);\n }", "public void error(String format, Object... arguments) {\n if (mLoggable) {\n try {\n Log.e(mClassName, String.format(format, arguments));\n } catch (Exception e) {\n Log.e(TAG, e.getMessage());\n }\n }\n }", "@Override\n\tpublic void error(Message msg) {\n\n\t}", "public static void error(String message, Throwable t) {\n LOGGER.error(message, t);\n }", "@Override\n\tpublic void log(Level level, Marker marker, Object message, Throwable t) {\n\n\t}", "private void log() {\n logger.error(\"insert queue (last {}, current {}, change {}/minute)\",\n insertQueueLast, insertQueueCurrent,\n insertQueueDelta);\n logger.error(\"commits (last {}, current {}, change {}/minute)\",\n commitLast, commitCurrent, commitDelta);\n logger.error(\"dropped (last {}, current {}, change {}/minute)\",\n droppedLast, droppedCurrent, droppedDelta);\n logger.error(\"total memory {}; free memory {}\",\n Runtime.getRuntime().totalMemory(),\n Runtime.getRuntime().freeMemory());\n }", "public static void logError(Context context, Exception e, String message){\n if(logging){\n String tag = context.getClass().getName();\n if(e == null) android.util.Log.e(tag, message);\n else if(message == null) android.util.Log.e(tag, e.getMessage(), e.getCause());\n else android.util.Log.e(tag, message, e.getCause());\n }\n }", "public void logException(Throwable t){\n\t\tSpagoBITracer.debug(SpagoBIConstants.NAME_MODULE, this.getClass().getName(), \n\t\t\t\t \"logException\", t.getClass().getName() + \":\" + t.getMessage());\n\t}", "public void logError(String message, Throwable throwable) {\n\t\tlogger.log(Level.SEVERE, message, throwable);\n\t\tif (myNode != null) {\n\t\t\tmyNode.observerNotice(MonitoringEvent.CONNECTOR_ERROR, myNode.getNodeId(), WEB_CONNECTOR + message);\n\t\t}\n\t\tif (logHandler != null) { // StreamHandler don't auto flush\n\t\t\tlogHandler.flush();\n\t\t}\n\t}", "private static void LogError(final String method,\n final ResponseResult result)\n {\n if (result != null && !StringHelper.isNullOrEmpty(result.errorMessage))\n {\n// Crashlytics.log(\"SharecareClient() FAILURE: \"\n// + String.format(ERROR_MESSAGE, method, result.responseCode,\n// result.errorMessage));\n }\n }", "public static void e(String message, Object... args) {\n log(ERROR, null, null, message, args);\n }", "private static void logException(Throwable t\r\n ,String user\r\n ,HttpSession session\r\n ,Hashtable parameters\r\n ,PrintWriter out\r\n ,HttpServletRequest request\r\n ,HttpServletResponse response )\r\n {\n \tAppObjects.error(\"GlobalExceptionHandler\", \"\\n********************\");\r\n \tAppObjects.error(\"GlobalExceptionHandler\", \"Serving URL:%s\",ServletCompatibility.getRequestURL(request));\r\n \tAppObjects.error(\"GlobalExceptionHandler\", \"User is: %s\",user);\r\n \tAppObjects.error(\"GlobalExceptionHandler\", \"Parameters are: %s\",parameters);\r\n \tAppObjects.log(AppObjects.LOG_ERROR,t);\r\n }", "private final void prtlnErr(String s) {\n\n\t\tSystem.err.println(getDateStamp() + \" \" + s);\n\n\t}", "public void setErrorMode(int mode) {}", "public void error();", "protected void logError( HttpServletRequest req, HttpServletResponse resp, Exception ex, String str ) {\r\n\ttry {\r\n\t StringBuffer sb = new StringBuffer();\r\n\t sb.append(\"\\n---------- Gateway error:\\n\");\r\n\t sb.append(\"Error message: \" + str + \"\\n\");\r\n\t sb.append(\"Request method: \" + req.getMethod() + \"\\n\");\r\n\t sb.append(\"Query string: \" + req.getQueryString() + \"\\n\");\r\n\t sb.append(\"Content length: \" + req.getContentLength() + \"\\n\");\r\n\t sb.append(\"Cookies: ( session info )\\n\");\r\n\t Cookie[] cookies = req.getCookies();\r\n\t if (cookies == null || cookies.length == 0)\r\n\t\tsb.append(\"No cookies in the HTTP request\\n\");\r\n\t else {\r\n\t\tfor (int i = 0; i < cookies.length; i++) {\r\n\t\t sb.append(\"\\tName: \" + cookies[i].getName() + \"\\t\" + \"Value: \" + cookies[i].getValue() + \"\\n\");\r\n\t\t}\r\n\t }\r\n\t sb.append(\"\\n\");\r\n\t m_ctx.log( sb.toString(), ex );\r\n\t} catch (Exception e) {\r\n\t System.err.println(\"Error logging a message\");\r\n\t}\r\n }" ]
[ "0.77032447", "0.7344357", "0.72715145", "0.7228225", "0.718162", "0.69804996", "0.69522846", "0.6921547", "0.6898727", "0.6866803", "0.6825687", "0.677214", "0.6745541", "0.6719882", "0.6642769", "0.6640343", "0.6609079", "0.6602303", "0.659228", "0.6583555", "0.6573611", "0.6538278", "0.6500179", "0.6450921", "0.64254737", "0.641593", "0.64068", "0.640292", "0.63758767", "0.63711864", "0.6362104", "0.63590825", "0.6312346", "0.62970704", "0.62939", "0.62939", "0.6286349", "0.62793463", "0.6270685", "0.6237797", "0.62374955", "0.62288624", "0.62210095", "0.6213968", "0.6212917", "0.62087464", "0.6208721", "0.62023103", "0.6190542", "0.6184527", "0.61833113", "0.61783975", "0.61779433", "0.61680704", "0.6156397", "0.61376977", "0.6104632", "0.6103347", "0.60961896", "0.6081998", "0.6064339", "0.6062512", "0.60539633", "0.6053205", "0.6033734", "0.60284495", "0.6026053", "0.59954005", "0.59802043", "0.59618366", "0.5960487", "0.5948772", "0.59476763", "0.59468925", "0.59356153", "0.59280163", "0.5925944", "0.5920102", "0.591315", "0.5913113", "0.5908395", "0.59080637", "0.59077275", "0.5905863", "0.5905629", "0.5893735", "0.5885278", "0.58845335", "0.5879023", "0.587796", "0.58778244", "0.5873387", "0.5870353", "0.586262", "0.5859779", "0.58595717", "0.5858019", "0.5851916", "0.5834352", "0.58152646", "0.5812944" ]
0.0
-1
Default c'tor for a Sprite Object
public ProgressBar(Vector2 position, Vector2 size, Texture containerTexture, Texture barTexture) { super(position, size, containerTexture); _innerSize = new Vector2(0.0f, _size._y); _innerTexture = barTexture; setProgress(0.0f); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Sprite() {}", "Ground(Sprite sprite) {Collect.Hit(\"BoardFactory.java\",\"Ground(Sprite sprite)\");this.background = sprite; Collect.Hit(\"BoardFactory.java\",\"Ground(Sprite sprite)\", \"3015\");}", "protected abstract void chooseSprite();", "@Override\n public void checkCollision( Sprite obj )\n {\n\n }", "@Override\n public void checkCollision( Sprite obj )\n {\n \n }", "@Override\n\tpublic SpriteType getSpriteType() {\n\t\treturn null;\n\t}", "abstract public void loadSprite();", "Wall(Sprite sprite) {Collect.Hit(\"BoardFactory.java\",\"Wall(Sprite sprite)\");this.background = sprite; Collect.Hit(\"BoardFactory.java\",\"Wall(Sprite sprite)\", \"2420\");}", "public Image sprite(){\n\t\treturn (face);\n\t}", "@Override\n public void chooseSprite() {\n switch(direction){\n case 0:\n sprite=Sprite.python_down;\n if(moving)\n sprite=Sprite.movingSprite(Sprite.python_down,Sprite.python_down_1,Sprite.python_down_2,Sprite.python_down_3,animate,40);\n break;\n case 1:\n sprite=Sprite.python_right;\n if(moving)\n sprite=Sprite.movingSprite(Sprite.python_right,Sprite.python_right_1,Sprite.python_right_2,animate,40);\n break;\n case 2:\n sprite=Sprite.python_up;\n if(moving)\n sprite=Sprite.movingSprite(Sprite.python_up,Sprite.python_up_1,Sprite.python_up_2,animate,40);\n break;\n case 3:\n sprite=Sprite.python_left;\n if(moving)\n sprite=Sprite.movingSprite(Sprite.python_left,Sprite.python_left_1,Sprite.python_left_2,animate,40);\n break;\n\n\n }\n\n }", "Sprite(Sprite s) {\n _img = s._img;\n _x = s._x;\n _y = s._y;\n _w = s._w;\n _h = s._h;\n _rotVector = new PVector(s._rotVector.x, s._rotVector.y, 0);\n _front = s._front;\n _hitboxCenter = new PVector(s._hitboxCenter.x, s._hitboxCenter.y);\n _hitbox = new PVector[s._hitbox.length];\n for (int i = 0; i < _hitbox.length; i++) {\n _hitbox[i] = new PVector(s._hitbox[i].x, s._hitbox[i].y);\n }\n _flipped = s._flipped;\n }", "GameObject(int x, int y){\n loadSprite();\n this.x = x;\n this.y = y;\n }", "void turnToSprite(Sprite s) {\n turnToPoint(s._x, s._y);\n }", "@Override\n public boolean visit(CssSprite x, Context ctx) {\n out.printOpt(\"/* CssSprite */\");\n out.newlineOpt();\n addSubstitition(x);\n return false;\n }", "public MovingSprite obstacleToSprite(MovingSprite s) {\n\t\treturn null;\n\t}", "public MyAnimation getSprite();", "public MyAnimation getFrontSprite();", "@Override\n\tpublic void collision(SimpleObject s) {\n\t\t\n\t}", "@Override\n public Sprite createSprite(TSSGame game) {\n return new Sprite();\n }", "@Override\n public void draw(Batch batch, float parentAlpha) {\n\n if(vidas == 0){\n sprite.setBounds(body.getPosition().x-7,body.getPosition().y-12,16,16);\n sprite.draw(batch);\n\n }else{\n sprite.setBounds(body.getPosition().x-7,body.getPosition().y-7,16,16);\n sprite.setPosition(body.getPosition().x - 9f, body.getPosition().y - 9);\n sprite.draw(batch);\n patrullar();\n }\n\n\n }", "public void evaluateSprite(){\n if(this.orientation == Orientation.FACING_NORTH) {\n texture = new Texture(Gdx.files.internal(\"/assets/gameObjects/playerFacingNorth.png\"));\n }\n if(this.orientation == Orientation.FACING_WEST){\n texture = new Texture(Gdx.files.internal(\"/assets/gameObjects/playerFacingWest.png\"));\n }\n if(this.orientation == Orientation.FACING_SOUTH){\n texture = new Texture(Gdx.files.internal(\"/assets/gameObjects/playerFacingSouth.png\"));\n }\n if(this.orientation == Orientation.FACING_EAST){\n texture = new Texture(Gdx.files.internal(\"/assets/gameObjects/playerFacingEast.png\"));\n }\n\n this.sprite = new Sprite(texture);\n }", "public Collision getCollisionType(ISprite sprite);", "public void sprite() {\n\t\tspr.setPosition(sprite.getX(),sprite.getY());\n\t\tsprite = spr;\n\t}", "void moveToSprite(Sprite s) {\n _x = s._x;\n _y = s._y;\n }", "public native Sprite copy(Sprite sprite);", "public T caseTexture(Texture object) {\r\n\t\treturn null;\r\n\t}", "public Sprite getSprite()\n\t{\n\t\treturn sprite;\n\t}", "@Override\r\n protected void chooseSprite() {\r\n switch(_direction) {\r\n case 0:\r\n case 1:\r\n if(_moving)\r\n _sprite = Sprite.movingSprite(Sprite.stupid_right1, Sprite.stupid_right2, Sprite.stupid_right3, _animate, 60);\r\n else\r\n _sprite = Sprite.stupid1;\r\n break;\r\n case 2:\r\n case 3:\r\n if(_moving)\r\n _sprite = Sprite.movingSprite(Sprite.stupid1, Sprite.stupid2, Sprite.stupid3, _animate, 60);\r\n else\r\n _sprite = Sprite.stupid1;\r\n break;\r\n }\r\n }", "BasicObject(){\n posX = -1;\n posY = -1;\n velX = 0;\n velY = 0;\n accX = 0;\n accY = 0;\n classOfObejct = 0;\n }", "public SpriteRenderer() {\n this(1000);\n }", "public interface SpriteInterface {\n\n\n void start();\n\n\n void update(double timeChange);\n\n\n void draw();\n\n void changeLocation(float xPos, float yPos, float rotation, float scaleX, float scaleY);\n\n\n}", "public Sprite(float centerX, float centerY, float z, int width, int height) {\n \t_center = new Coordinates(centerX, centerY, z);\n \t_dimensions = new Coordinates(width, height, 0f);\n }", "@Override\r\n\tpublic void destroy(Sprite collider) {\n\t}", "public native Sprite clone();", "Sprite(float x, float y, float w, float h) {\n _img = createImage(1, 1, RGB);\n _x = x;\n _y = y;\n _w = w;\n _h = h;\n _rotVector = new PVector(1, 0, 0);\n resetRectHitbox();\n }", "@Override\n public Sprite createSprite(MyCumulusGame game) {\n walkingAnimation = createWalkingAnimation(game);\n jumpingAnimation = createJumpingAnimation(game);\n\n return new Sprite(jumpingAnimation);\n }", "public Boat() {\n batch = new SpriteBatch();\n }", "public Sprite(Image img){\n\t\tsuper();\n\t\t_img = img;\n\t\tsetOrigin(_img.getWidth()/2,_img.getHeight()/2);\n\t\ttranslate(0, 0);\n\t}", "@Override\n\tpublic void render(SpriteBatch batch) {\n\t}", "public Stage1()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1200, 900, 1);\n \n GreenfootImage image = getBackground();\n image.setColor(Color.BLACK);\n image.fill();\n star();\n \n \n \n //TurretBase turretBase = new TurretBase();\n playerShip = new PlayerShip();\n scoreDisplay = new ScoreDisplay();\n addObject(scoreDisplay, 100, 50);\n addObject(playerShip, 100, 450);\n \n }", "@Override\n\tpublic final Sprite getSprite() {\n\t\treturn this.sprite;\n\t}", "public Furnace() {\n\t\tsuper(\"Furnace\"); // Name of the furnace\n\t\tcol = Color.get(-1, 000, 222, 333); // Color of the furnace\n\t\tsprite = 3; // Location of the sprite\n\t\txr = 3; // Width of the furnace (in-game, not sprite) \n\t\tyr = 2; // Height of the furnace (in-game, not sprite) \n\t}", "public abstract void gameObjectAwakens();", "public Hero(int x, int y) {\r\n this.centerX = x;\r\n this.centerY = y;\r\n this.currentHealth = 100;\r\n rect1 = new FloatRect (100,630,80,110);\r\n imgTexture = new Texture ();\r\n try {\r\n imgTexture.loadFromFile (Paths.get (ImageFile));\r\n } catch (IOException ex) {\r\n ex.printStackTrace ();\r\n }\r\n imgTexture.setSmooth (true);\r\n\r\n img = new Sprite (imgTexture);\r\n img.setOrigin (Vector2f.div (new Vector2f (imgTexture.getSize ()), 2));\r\n img.setPosition (x, y);\r\n // Store references to object and key methods\r\n obj = img;\r\n setPosition = img::setPosition;\r\n\r\n background = new Sprite (bg.loadTextures ());\r\n background.setOrigin(Vector2f.div(new Vector2f(bg.getTexture1 ()), 1000000));\r\n background.setPosition (0,0);\r\n }", "Sprite getBackground();", "public Sprite getSprite() {\n\t\treturn sprite;\n\t}", "public Sprite getSprite() {\n\t\treturn sprite;\n\t}", "public int getSpriteStandard()\n\t{\n\t\treturn this.spriteStandard;\n\t}", "public Space_Object (){\n groundPosition = 0;\n }", "public Player(){\n this.health = 9;\n this.orientation = Orientation.FACING_NORTH;\n evaluateSprite();\n }", "@Override\n public Sprite createSprite(DeathmatchMania game) {\n Animation = createAnimation(game);\n return new Sprite(Animation.getKeyFrame(0, true));\n }", "public void addSprite(Scene pScene, int x, int y) {\n\t\t\r\n\t}", "public void setSprite(Sprite sprite_)\n\t{\n\t\tsprite=sprite_;\n\t}", "public interface ISprite\r\n{\r\n\t/*\r\n\t * By defining types, we hope to optimise collision detection.\r\n\t */\r\n\tpublic enum Type{OBSTACLE, GOODIE, USER_MOVEABLE, ENEMY, DECORATION, PLATFORM};\r\n\tpublic enum Collision{LEFT, RIGHT, TOP, BOTTOM,NONE};\r\n\t/**\r\n\t * Find out the current Position of this Sprite.\r\n\t * @return Point GWT Point location object.\r\n\t */\r\n\tpublic Vector getLocation();\r\n\t/**\r\n\t * Inform the Sprite of it's new location\r\n\t * @param point\r\n\t */\r\n\tpublic void setLocation(Vector location);\r\n\t\r\n\t/**\r\n\t * A flag to determine a Sprites selection state.\r\n\t * @return\r\n\t */\r\n\tpublic boolean isSelected();\r\n\t\r\n\t/**\r\n\t * Render this Sprite.\r\n\t * We have a back and front context to facilitate double buffering.\r\n\t * \r\n\t * @param context\r\n\t */\r\n\tpublic void draw(Canvas canvas);\r\n\t\r\n\t/**\r\n\t * Update this Sprites model data.\r\n\t */\r\n\tpublic void update(InputEvent event);\r\n\t\r\n\t/*\r\n\t * Every ISprite type will handle obstacles differently.\r\n\t * Examples: <Comments here to help design implementation>\r\n\t * \r\n\t * Obstacle: Prevents colliding sprite from moving in one direction.\r\n\t * Goodie: Increases points, disposes\r\n\t * Enemy: Removes a life or kills user sprite\r\n\t * Decoration: Does nothing\r\n\t * Platform: Sprites falling down wards are stopped. Sprites can jump through (up).\r\n\t */\r\n\tpublic void handleCollision(ISprite collisionSprite, Collision collisionType);\t\r\n\t\r\n\t/**\r\n\t * Checks if the two sprites collide. \r\n\t * The return value describes the direction of\r\n\t * the collision. Collision.NONE means there\r\n\t * was no collision detected.\r\n\t * \r\n\t * @param sprite\r\n\t * @return Collision.LEFT, Collision.RIGHT etc...\r\n\t */\r\n\tpublic Collision getCollisionType(ISprite sprite);\r\n\t\r\n\t/**\r\n\t * A layer dictates a Sprites paint order. Those at the back are painted\r\n\t * first. Those in the from painted last. A Z order in a way.\r\n\t * @return\r\n\t */\r\n\tpublic Layer.Layers getLayer();\r\n\t\r\n\tpublic void dispose();\r\n\t\r\n\tpublic boolean isDisposed();\r\n\t\r\n\tpublic Type getType();\r\n\t\r\n\tpublic Rectangle getBounds();\r\n}", "public Cannon(int x, Space s) {\r\n\t\tthis.x = x;\r\n\t\tthis.y = s.getSize() - 1;\r\n\t\tthis.space = s;\r\n\t}", "public Sprite(String newSpriteLocation){\n\t\timages = new Texture[1];\n\t\timages[0] = new Texture(newSpriteLocation);\n\t}", "Creature()\n {\n super();\n this.glyph = new Glyph('c', TextColor.ANSI.WHITE, TextColor.ANSI.BLACK);\n }", "@Override\n public Sprite getHurtSprite() {\n return Assets.getInstance().getSprite(\"entity/zombie_blood0.png\");\n }", "private void updateSprite(){\n //facing front\n getImage().clear();\n getImage().drawImage(SHEET,-(frame%SHEET_W)*SPRITE_W,0);\n if(!goLeft) getImage().mirrorHorizontally();\n if (iframes>0&&iframes%10<5) setImage(SpriteHelper.makeWhite( getImage()));\n else frame = frame + 1 % (SHEET_H* SHEET_W);\n }", "public SpriteBase getSpriteBase() {\n return spriteBase;\n }", "public JewelSprite(int type, int x, int y) {\n\t this.type = type;\n\t setxPos(x);\n\t setyPos(y);\n\n\t String imagePath = \"/\" + Integer.toString(type) + \".png\";\n\t jewelImage = new Image(Jewel.class.getResourceAsStream(imagePath));\n\t ImageView jewelImageView = new ImageView();\n\t jewelImageView.setImage(jewelImage);\n\t jewelImageView.setStyle(\"-fx-background-color:transparent;\");\n\n\t setNode(jewelImageView);\n\t }", "void impact(GameObject object) {\n\n }", "GameObject getObject();", "public abstract void collide(InteractiveObject obj);", "protected void init(Rectangle2D.Float collider) {\r\n this.collider = collider;\r\n this.width = this.collider.width;\r\n this.height = this.collider.height;\r\n this.sprite = new BufferedImage((int) this.width, (int) this.height, BufferedImage.TYPE_INT_ARGB);\r\n }", "public void handleCollision(ISprite collisionSprite, Collision collisionType);", "public abstract void Draw(SpriteBatch spriteBatch);", "public GameObject(String name, int x, int y) {\n this.image = GameObject.processing.loadImage(\"images\" + File.separator + name + \".png\");\n this.xPosition = x;\n this.yPosition = y;\n this.active = true;\n }", "public Sprite getSprite(String ref) {\n\t\tif (ref.equals(\"boss\")) {\n\t\t\treturn sprite.get(\"bossSprite\");\n\t\t} else if (ref.equals(\"boss_bullet\")) {\n\t\t\treturn sprite.get(\"bossBulletSprite\");\n\t\t} else if (ref.equals(\"boss_explosion\")) {\n\t\t\treturn sprite.get(\"bossExplosionSprite\");\n\t\t} else if (ref.equals(\"boss_hit\")) {\n\t\t\treturn sprite.get(\"bossHitSprite\");\n\t\t} else if (ref.equals(\"bullet\")) {\n\t\t\treturn sprite.get(\"bulletSprite\");\n\t\t} else if (ref.equals(\"enemy_bullet\")) {\n\t\t\treturn sprite.get(\"enemyBulletSprite\");\n\t\t} else if (ref.equals(\"enemy_explosion\")) {\n\t\t\treturn sprite.get(\"enemyExplosionSprite\");\n\t\t} else if (ref.equals(\"enemy_hit\")) {\n\t\t\treturn sprite.get(\"enemyHitSprite\");\n\t\t} else if (ref.equals(\"green_box\")) {\n\t\t\treturn sprite.get(\"greenBoxSprite\");\n\t\t} else if (ref.equals(\"laser\")) {\n\t\t\treturn sprite.get(\"laserSprite\");\n\t\t} else if (ref.equals(\"player\")) {\n\t\t\treturn sprite.get(\"playerSprite\");\n\t\t} else if (ref.equals(\"player_explosion\")) {\n\t\t\treturn sprite.get(\"playerExplosionSprite\");\n\t\t} else if (ref.equals(\"player_hit\")) {\n\t\t\treturn sprite.get(\"playerHitSprite\");\n\t\t} else if (ref.equals(\"powerup_explosion\")) {\n\t\t\treturn sprite.get(\"powerupExplosionSprite\");\n\t\t} else if (ref.equals(\"red_box\")) {\n\t\t\treturn sprite.get(\"redBoxSprite\");\n\t\t} else {\n\t\t\tSystem.out.println(\"fatal error\");\n\t\t\tSystem.out.println(ref);\n\t\t\treturn null;\n\t\t}\n\t}", "public Torpedo(Board mygame, StarShip owner, int attack, StarShip target) {\n super(mygame, owner, attack);\n this.target = target;\n this.setSprite(\"torpedo\");\n }", "public zombie_bg()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1010,900, 1); \n setPaintOrder(ScoreBoard.class, player.class, zomb_gen.class, options.class);\n populate();\n \n }", "protected GameObject() {\r\n\t\tid = \"na\";\r\n\t\tkey = \"_na\";\r\n\t\tname = \"N/A\";\r\n\t\tdrops = false;\r\n\t\tprotection = 0;\r\n\t\tplaysSound = false;\r\n\t\tattackAttempts = 0;\r\n\t\tattackFrequency = 4;\r\n\t\ttakesTwoCells = false;\r\n\t\tmovementFrequency = 10;\r\n\t\tstate = new Basic(this);\r\n\t\tresetAttackAttempts();\r\n\t\tresetMovementAttempts();\r\n\t}", "public Phaser(double x, double y, GameComponents.Canvas acanvas)\r\n {\r\n super(x, y, acanvas);\r\n myImage = null;\r\n isPhasing = false;\r\n }", "public BoardFactory(PacManSprites spriteStore) {Collect.Hit(\"BoardFactory.java\",\"BoardFactory(PacManSprites spriteStore)\");this.sprites = spriteStore; Collect.Hit(\"BoardFactory.java\",\"BoardFactory(PacManSprites spriteStore)\", \"689\");}", "public void addSprite(Sprite s) {\n sprites.addSprite(s);\n }", "public void removeSprite(Sprite s) {\r\n sprites.removeSprite(s);\r\n }", "@Override\n protected Color getflameC ()\n {\n return null;\n }", "PlayableCharacter(int health, int attack, int intelligence, int defence, int speed, String type, String name, String description, Move[] moveset, String ability, StatItem heldItem, StatItem hatItem, StatItem shirtItem, StatItem pantsItem, StatItem shoesItem, BufferedImage[] sprites) {\n super(health, attack, intelligence, defence, speed, type, name, moveset, ability, heldItem, sprites);\n this.description = description;\n this.status = null;\n this.fainted = false;\n this.experience = 0;\n this.level = 1;\n this.hatItem = hatItem;\n this.shirtItem = shirtItem;\n this.pantsItem = pantsItem;\n this.shoesItem = shoesItem;\n }", "@Override\n public Sprite createSprite(SnakeSmash game) {\n Texture texture = game.getAssetManager().get(\"pinkSquare.png\");\n return new Sprite(texture, texture.getWidth(), texture.getHeight());\n }", "public DumbEnemy(){\n setImage(new GreenfootImage(SPRITE_W,SPRITE_H));\n }", "public int getLength () { return spriteLength; }", "@Override\n\tpublic void BeforeDraw(SpriteBatch spriteBatch, Entity owner) {\n\n\t}", "Sprite(String url, float x, float y, float w, float h) {\n _img = loadImage(url);\n _x = x;\n _y = y;\n _w = w;\n _h = h;\n _rotVector = new PVector(1, 0, 0);\n resetRectHitbox();\n }", "public MyAnimation getRearSprite();", "public Ufo(int x, int y, int width, int height, int speed, String sprite) {\r\n\t\tsuper();\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t\tthis.width = width;\r\n\t\tthis.height = height;\r\n\t\tthis.speed = speed;\r\n\t\tthis.sprite = sprite;\r\n\t}", "public Cannon(Space s) {\r\n\t\tthis(0,s);\r\n\t}", "@Override\n public void init() {\n GetSprite(\"/images/bullet.png\");\n MusicUtils.StopASounds(\"/music/Laser_Shoot.wav\");\n Level().play(\"/music/Laser_Shoot.wav\");\n }", "@Override\r\n public Sprite getBackground() {\r\n return new Level3Background();\r\n }", "Object NullMove ();", "@Override\r\n\tpublic void handle(Collidable otherSprite) {\n\t\t\r\n\t}", "BasicObject(int posX,int posY,int velX,int velY, int accX, int accY, int classOfObejct){\n this.posX = posX;\n this.posY = posY;\n this.velX = velX;\n this.velY = velY;\n this.accX = accX;\n this.accY = accY;\n this.classOfObejct = classOfObejct;\n }", "int getSelectedSpriteValue();", "public void removeSprites(){\r\n\r\n\t}", "private void drawSprite(int x, int y, int u, int v)\n {\n GlStateManager.color4f(1.0F, 1.0F, 1.0F, 1.0F);\n this.mc.getTextureManager().bindTexture(STAT_ICONS);\n float f = 0.0078125F;\n float f1 = 0.0078125F;\n int i = 18;\n int j = 18;\n Tessellator tessellator = Tessellator.getInstance();\n BufferBuilder bufferbuilder = tessellator.getBuffer();\n bufferbuilder.begin(7, DefaultVertexFormats.POSITION_TEX);\n bufferbuilder.pos((double)(x + 0), (double)(y + 18), (double)this.zLevel).tex((double)((float)(u + 0) * 0.0078125F), (double)((float)(v + 18) * 0.0078125F)).endVertex();\n bufferbuilder.pos((double)(x + 18), (double)(y + 18), (double)this.zLevel).tex((double)((float)(u + 18) * 0.0078125F), (double)((float)(v + 18) * 0.0078125F)).endVertex();\n bufferbuilder.pos((double)(x + 18), (double)(y + 0), (double)this.zLevel).tex((double)((float)(u + 18) * 0.0078125F), (double)((float)(v + 0) * 0.0078125F)).endVertex();\n bufferbuilder.pos((double)(x + 0), (double)(y + 0), (double)this.zLevel).tex((double)((float)(u + 0) * 0.0078125F), (double)((float)(v + 0) * 0.0078125F)).endVertex();\n tessellator.draw();\n }", "public Player() {\n\t\timg = new ImageIcon(\"rick.jpg\");\n\t\tplayer = img.getImage();\n\t\ttileX = 1;\n\t\ttileY = 1;\n\t\tsetCastraveti(0);\n\t}", "public void addSprite(Sprite s) {\r\n this.sprites.addSprite(s);\r\n }", "@Override\n\tpublic GamePiece getObject() {\n\t\treturn null;\n\t}", "public void act() \n {\n String worldname = getWorld().getClass().getName();\n if (worldname == \"Level0\")\n setImage(new GreenfootImage(\"vibranium.png\"));\n else if (worldname == \"Level1\")\n setImage(rocket.getCurrentImage());\n setLocation(getX()-8, getY()); \n if (getX() == 0) \n {\n getWorld().removeObject(this);\n }\n \n }", "int indexOfSpriteThatCollided(Array<? extends Sprite> sprites, Sprite sprite);", "private Sprite createSprite(Image image)\n\t{\n\t\tSprite sprite = new Sprite(image, image.getWidth(), image.getHeight());\n\t\treturn sprite;\n\t}", "private void ini_Sprites()\r\n\t{\r\n\t\tLogger.DEBUG(\"ini_Sprites\");\r\n\t\tResourceCache.LoadSprites(false);\r\n\t}" ]
[ "0.704458", "0.62670195", "0.6258797", "0.62221587", "0.6177922", "0.61435354", "0.60633814", "0.6047272", "0.60302866", "0.6022411", "0.6016308", "0.59930915", "0.5940031", "0.5935901", "0.5918789", "0.5907389", "0.5884018", "0.58768255", "0.5763059", "0.5731739", "0.57146925", "0.5712091", "0.56995595", "0.5670583", "0.5651684", "0.56344044", "0.5629073", "0.56090957", "0.5607419", "0.56020284", "0.55904645", "0.55788636", "0.55723834", "0.5565402", "0.5565094", "0.5538548", "0.5537014", "0.5536607", "0.55315346", "0.552884", "0.55270743", "0.55075896", "0.5505722", "0.55031705", "0.5489411", "0.54833144", "0.54833144", "0.5466182", "0.5465179", "0.5454968", "0.54541415", "0.5446434", "0.5437654", "0.5433688", "0.54318136", "0.5425743", "0.5413601", "0.541298", "0.5411585", "0.5409404", "0.540596", "0.5401521", "0.5381698", "0.53776276", "0.5375472", "0.53749746", "0.5368339", "0.5364814", "0.5360281", "0.53536284", "0.53460336", "0.5344076", "0.53314245", "0.53305286", "0.5324896", "0.5319866", "0.5312171", "0.53037214", "0.5299771", "0.52983755", "0.52977103", "0.52919775", "0.5285253", "0.5271371", "0.5259933", "0.5251287", "0.5243185", "0.52423596", "0.52263314", "0.5226097", "0.52227414", "0.5210501", "0.520802", "0.5200053", "0.519647", "0.51958895", "0.519183", "0.51912606", "0.51872486", "0.51758647", "0.51742816" ]
0.0
-1
Set the bar's progress level to a given value
public void setProgress(float p) { _progress = Math.max(0.0f, Math.min(1.0f, p)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setProgress(int value);", "void setProgress(float progress);", "void setProgress(@FloatRange(from = 0, to = 1) float progress);", "void setProgress(int progress);", "void setProgress(int progress);", "private void setProgressPercent(Integer integer) {\n\t\t\n\t}", "public void setProgressValue(float value) {\n\t\tprogress_.setValue(value);\n\t}", "public void scanningBlurScoreBarSetProgress(int progress) {\n if (progress > scanningBlurValueBar.getProgress()) {\n scanningBlurValueBar.setProgress(progress);\n scanningBlurScoreBarDecrease();\n }\n }", "public void setProgress(int progressValue) {\n progress.set(defaultToHundred(progressValue));\n indeterminate.set(progressValue < 0);\n }", "public void setPercentage(int i){\n\t\tif(loadBar != null) loadBar.setValue(i);\n\t\tif(i >= 100){\n\t\t\tdispose();\n\t\t}\n\t}", "public void updateProgress(int tier){\n this.progress.add((this.level*tier));\n this.checkProgress();\n }", "public void setProgress(BigValue progress) {\n this.progress = progress;\n this.checkProgress();\n }", "public void increment() { this.progressBar.setValue(++this.progressValue); }", "public void setProgress(int percent) {\n setProgress((float) percent / 100);\n }", "public void setProgress(int progress) {\n\n this.percent = progress;\n percentdraw = 0;\n start = true;\n anim();\n invalidate();\n }", "public void setBar(JProgressBar bar){\n prog = bar;\n }", "public void setOverallProgressPercent(int value) {\n this.overallProgressPercent = value;\n }", "public void setProgressBarValue(Long id, int value) {\r\n if (progressBarMap.containsKey(id)) {\r\n progressBarMap.get(id).setValue(value);\r\n }\r\n }", "public void incLevel(int lvl){this.Level=this.XP/(100);}", "public void setProgressBar(JProgressBar bar) {\n matchProgressBar = bar;\n }", "public void setProgress(int progress) {\n \t\t\tsynchronized (this) {\n \t\t\t\tm_progress = progress;\n \t\t\t\tthis.notify();\n \t\t\t}\n \t\t}", "public ProgressBar setValue(double value) {\n if (value >= 0 && value <= maxValue) {\n this.value = value;\n updateWidth();\n }\n return this;\n }", "@FloatRange(from = 0, to = 1) float getProgress();", "private void updateProgress(final int value) {\n \t\t// update progress bar\n \t\tprogressBar.setValue(value);\n \t\tfinal int previous = 100 * (value - 1) / progressBar.getMaximum();\n \t\tfinal int current = 100 * value / progressBar.getMaximum();\n \t\tif (previous != current) progressBar.setString(\"\" + current + \"%\");\n \n \t\t// redraw calendar graphic\n \t\tprogressFrame.repaint();\n \t}", "public void setLevel(int value) {\n this.level = value;\n }", "public int updateExamProgressBar(int updateValue) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\n ObjectAnimator animation = ObjectAnimator.ofInt(mExamProgressBar, \"progress\", updateValue * 10);\n animation.setDuration(300); // 0.5 second\n animation.setInterpolator(new DecelerateInterpolator());\n animation.start();\n } else {\n mExamProgressBar.setProgress(updateValue);\n }\n return updateValue;\n }", "@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 protected void onProgressUpdate(Integer... values) {\n barratime.setProgress(values[0]);\n }", "public void setProgressBar(JProgressBar bar) {\n\t\tprogressBar = bar;\n\t}", "@Override\n protected void onProgressUpdate(Integer... values) {\n super.onProgressUpdate(values);\n\n progressBar.setProgress(values[0].intValue());\n\n }", "@Override\n public void setLevel(int level) {\n if (level > 1) {\n this.level = level;\n scaleUp();\n percentageScaling();\n }\n }", "public void setProgress(String progress) {\n this.progress = progress;\n }", "public void onProgressUpdate(Integer ... value){\n pb.setVisibility(View.VISIBLE);\n pb.setProgress(value[0]);\n }", "@Override\n\tpublic void progress(int arg0) {\n\t\tm_progress = arg0 / 10;\n\t\t//Main.log(TAG, \"progress : \" + m_progress + \"%\");\n\t}", "private void updateProgressData(int progressBarId, Integer value) {\n\t\tmProgressPercents[progressBarId] = value;\n\t\tif (sActivity != null) {\n\t\t\tAbstractImportUpdateActivity activity = sActivity.get();\n\t\t\tif (activity != null) {\n\t\t\t\tactivity.updateProgressData(progressBarId, value);\n\t\t\t}\n\t\t}\n\t}", "public void setProgress(int progress) {\n\t\tif (progress > mMax || progress < 0) {\n\t\t\tthrow new IllegalArgumentException(String.format(\"Progress (%d) must be between %d and %d\", progress, 0, mMax));\n\t\t}\n\t\tmProgress = progress;\n\t\tinvalidate();\n\t}", "@Override\n\t\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) \n\t\t\t\t{\n\t\t\t\t\tif(progress<=20)\n\t\t\t\t\t{\n\t\t\t\t\t\t//set the brightness to 20\n\t\t\t\t\t\tbrightness=20;\n\t\t\t\t\t}\n\t\t\t\t\telse //brightness is greater than 20\n\t\t\t\t\t{\n\t\t\t\t\t\t//sets brightness variable based on the progress bar \n\t\t\t\t\t\tbrightness = progress;\n\t\t\t\t\t}\n\t\t\t\t}", "private void updateAgentChangeFromSlider(int progress) {\n\t\tplayer.setAgentNumberChange(progress / 10);\n\n\t}", "private void setLevel(int level) {\n setStat(level, currentLevel);\n }", "public Builder setLevel(double value) {\n \n level_ = value;\n onChanged();\n return this;\n }", "public Builder setLevel(double value) {\n \n level_ = value;\n onChanged();\n return this;\n }", "@BindingAdapter(value = {\"app:progressScaled\", \"android:max\"}, requireAll = true)\n public static void setProgress(ProgressBar progressBar,int like,int max){\n if((like * max / 5)>max){\n progressBar.setProgress(max);\n }else{\n progressBar.setProgress(like * max / 5);\n }\n }", "@Override\n\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\tboolean fromUser) {\n\t\t\tcustomPercent = progress / 100.0;\n\t\t\tupdateCustom();\n\t\t\t\n\t\t}", "public Builder setLevelValue(int value) {\n level_ = value;\n onChanged();\n return this;\n }", "public void mo1539b(int progress) {\n this.f4002h.setProgress(progress);\n }", "@Override\n\t\t\t\tpublic void onProgress(int progress) {\n\t\t\t\t\tmProgressBar.setProgress(progress);\n\t\t\t\t}", "public abstract void setProgress (int currentStep, int totalSteps);", "void setPulsePercentage(int percentage);", "@Override protected void onProgressUpdate(Integer... vals) {\n updateProgressBar(vals[0].intValue());\n }", "public Builder setProgress(com.clarifai.grpc.api.Progress value) {\n if (progressBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n progress_ = value;\n onChanged();\n } else {\n progressBuilder_.setMessage(value);\n }\n\n return this;\n }", "public void sendExperienceChange ( float progress , int level ) {\n\t\texecute ( handle -> handle.sendExperienceChange ( progress , level ) );\n\t}", "public Double getProgressPercent();", "public static void changeHealth(int _value){\n healthLabel -= _value;\n healthHUD.setText(String.format(Locale.getDefault(),\"%03d\", healthLabel));\n }", "void onProgress(float progress);", "@Override\n public void setAudioVolumeInsideVolumeSeekBar(int i) {\n float currentVolume = 1.0f;\n if (i < PlayerConstants.MaxProgress) {\n currentVolume = (float)(1.0f - (Math.log(PlayerConstants.MaxProgress - i) / Math.log(PlayerConstants.MaxProgress)));\n }\n setAudioVolume(currentVolume);\n //\n }", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progressValue, boolean fromUser){\n\t\t\t\tprogress = progressValue;\n\t\t\t\ttextView.setText(\"Skill Level: \" + progress + \"/\" + seekBar.getMax());\n\t\t\t}", "public void setProgress(final int percentage, final String user) {\r\n\t\tif (this.statusBar != null) {\r\n\t\t\tif (this.progressBarUser == null || user == null || this.progressBarUser.equals(user)) {\r\n\t\t\t\tif (percentage > 99 | percentage == 0)\r\n\t\t\t\t\tthis.progressBarUser = null;\r\n\t\t\t\telse\r\n\t\t\t\t\tthis.progressBarUser = user;\r\n\r\n\t\t\t\tif (Thread.currentThread().getId() == DataExplorer.application.getThreadId()) {\r\n\t\t\t\t\tthis.statusBar.setProgress(percentage);\r\n\t\t\t\t\tif (this.taskBarItem != null) {\r\n\t\t\t\t\t\tif (user == null)\r\n\t\t\t\t\t\t\tthis.taskBarItem.setProgressState(SWT.DEFAULT);\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tthis.taskBarItem.setProgressState(GDE.IS_MAC ? SWT.PAUSED : SWT.NORMAL);\r\n\r\n\t\t\t\t\t\tthis.taskBarItem.setProgress(percentage);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tGDE.display.asyncExec(new Runnable() {\r\n\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\tDataExplorer.this.statusBar.setProgress(percentage);\r\n\t\t\t\t\t\t\tif (DataExplorer.this.taskBarItem != null) {\r\n\t\t\t\t\t\t\t\tif (user == null)\r\n\t\t\t\t\t\t\t\t\tDataExplorer.this.taskBarItem.setProgressState(SWT.DEFAULT);\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\tDataExplorer.this.taskBarItem.setProgressState(GDE.IS_MAC ? SWT.PAUSED : SWT.NORMAL);\r\n\r\n\t\t\t\t\t\t\t\tDataExplorer.this.taskBarItem.setProgress(percentage);\r\n\t\t\t\t\t\t\t}\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\tthis.progessPercentage = percentage;\r\n\t\t\t\tif (percentage >= 100) DataExplorer.this.resetProgressBar();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@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}", "void setStatusProperty(String property, Double value);", "private void updateProgressBar() {\n\t\tdouble current = model.scannedCounter;\n\t\tdouble total = model.fileCounter;\n\t\tdouble percentage = (double)(current/total);\n\t\t\n\t\t//Update Progress indicators\n\t\ttxtNumCompleted.setText((int) current + \" of \" + (int) total + \" Completed (\" + Math.round(percentage*100) + \"%)\");\n\t\tprogressBar.setProgress(percentage);\n\t}", "public void setLevel(int v)\n {\n m_level = v;\n }", "public Builder addProgress(int value) {\n ensureProgressIsMutable();\n progress_.add(value);\n onChanged();\n return this;\n }", "public Builder addProgress(int value) {\n ensureProgressIsMutable();\n progress_.add(value);\n onChanged();\n return this;\n }", "public Builder addProgress(int value) {\n ensureProgressIsMutable();\n progress_.add(value);\n onChanged();\n return this;\n }", "public void progressTheGame() {\r\n gameProgress = GameState.values()[this.gameProgress.ordinal()+1];\r\n }", "public Builder setProgress(\n int index, int value) {\n ensureProgressIsMutable();\n progress_.set(index, value);\n onChanged();\n return this;\n }", "public Builder setProgress(\n int index, int value) {\n ensureProgressIsMutable();\n progress_.set(index, value);\n onChanged();\n return this;\n }", "public Builder setProgress(\n int index, int value) {\n ensureProgressIsMutable();\n progress_.set(index, value);\n onChanged();\n return this;\n }", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t\tBrightnessManualLevel = seekBar.getProgress();\n\t\t\t\tCAN1Comm.Set_BacklightIlluminationLevel_719_PGN61184_109(BrightnessManualLevel + 1);\n\t\t\t\tCAN1Comm.TxCANToMCU(109);\n\t\t\t\tCAN1Comm.TxCMDToMCU(CAN1Comm.CMD_LCD, BrightnessManualLevel + 1);\n\t\t\t\t\n\t\t\t\tParentActivity.BrihgtnessCurrent = BrightnessManualLevel;\n\t\t\t}", "@Override\n public void update(final Progress progress) {\n SwingUtilities.invokeLater(new Runnable() {\n\n @Override\n public void run() {\n progressBar.setValue(progress.getIntPercentage());\n progressField.setText(roundToSingleDigit(progress.getPercentage()) + \"%\");\n }\n });\n }", "@Override\r\n\t\tprotected void onProgressUpdate(Integer... values) {\n\t\t\tsuper.onProgressUpdate(values);\r\n\t\t\tsetProgress(values[0]);\r\n\t\t\t\r\n\r\n\t\t}", "public void setLevel(int newlevel)\n {\n level = newlevel; \n }", "@Override\n public void onProgressChanged(SeekBar seekBar, int progressValue, boolean fromUser) {\n progress = progressValue;\n }", "private void updateProgressBar(int currentPoints){\n\n progressBar.setProgress(currentPoints);\n\n switch(currentPoints){\n case 1:\n progressBar.getProgressDrawable().setColorFilter(Color.RED, PorterDuff.Mode.SRC_IN);\n\n break;\n case 2:\n progressBar.getProgressDrawable().setColorFilter(Color.parseColor(\"#FF6600\"), PorterDuff.Mode.SRC_IN);\n\n break;\n case 3:\n progressBar.getProgressDrawable().setColorFilter(Color.parseColor(\"#FFFF66\"), PorterDuff.Mode.SRC_IN);\n\n break;\n case 4:\n progressBar.getProgressDrawable().setColorFilter(Color.GREEN, PorterDuff.Mode.SRC_IN);\n\n break;\n case 5:\n progressBar.getProgressDrawable().setColorFilter(Color.parseColor(\"#2C6700\"), PorterDuff.Mode.SRC_IN);\n\n }\n\n\n\n }", "public void setLevelObjectBar(LevelStatsBar bar) {\n\t\tmyLevelObjectBar = bar;\n\t}", "protected void sendProgress() {\n setProgress(getProgress() ^ 1);\n }", "public static void updateProgressBar() {\r\n mHandler.postDelayed(mUpdateTime, 100);\r\n }", "public void setVolumeProgress(Double volumeProgress) {\n this.volumeProgress = volumeProgress;\n }", "private JProgressBar setProgressBar(JProgressBar PB)\r\n\t{\r\n\t\tPB = new JProgressBar(0, 100);\r\n\t\tPB.setMinimum(0);\r\n\t\tPB.setMaximum(100);\r\n\t\tPB.setStringPainted(true);\r\n\t\treturn PB;\r\n\t}", "@Override\n public void batteryStatus(int value) {\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(\"gain bar progress changed to \" + progress);\r\n\t\t\t\t\talterGain(progress);\r\n\t\t\t\t}", "public Builder setLevel(int value) {\n bitField0_ |= 0x00000001;\n level_ = value;\n onChanged();\n return this;\n }", "public void setPercent(float value) {\n this.percent = value;\n }", "public int getProgress();", "public void uploadingProgressBarSet(int processRate) {\n uploadingProgressBar.setProgress(processRate);\n }", "@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\r\n progressValue = progress;\r\n resultsTextView.setText(\"Range: 0-\" + seekBar.getProgress());\r\n //Toast.makeText(MainActivity.this, \"Changing max value!\", Toast.LENGTH_SHORT).show();\r\n }", "public Builder setLevel(int value) {\n bitField0_ |= 0x00000008;\n level_ = value;\n onChanged();\n return this;\n }", "@Override\n protected void onProgressUpdate(Integer... values) {\n super.onProgressUpdate(values);\n\n\n // Do things like update the progress bar\n }", "@Override\n protected void onProgressUpdate(Integer... progress) {\n progressBar.setVisibility(View.VISIBLE);\n\n // updating progress bar value\n progressBar.setProgress(progress[0]);\n\n // updating percentage value\n txtPercentage.setText(String.valueOf(progress[0]) + \"%\");\n }", "public void setFoodLevel ( int value ) {\n\t\texecute ( handle -> handle.setFoodLevel ( value ) );\n\t}", "private void setStat(int value, int index) {\n setStringStat(String.valueOf(value), index);\n }", "@Override\n protected void onProgressUpdate(Integer... progress) {\n pDialog.setProgress(progress[0]);\n\n // updating percentage value\n //txtPercentage.setText(String.valueOf(progress[0]) + \"%\");\n }", "@Override \n\t public void onProgressChanged(SeekBar Bar, int progress, boolean fromUser) {\n\t \n\t \t// Adapt value TextView Rate to the new value of SeekBar Bar\n\t \tif(fromUser) { \n\t \t\tint value = progress; \n\t \t\tRate.setText(String.format(\"%d\", value));\n\t \t} \n\t }", "public Builder setLevel(int value) {\n bitField0_ |= 0x00000001;\n level_ = value;\n \n return this;\n }", "public void setStatusValue(Integer statusValue)\r\n\t{\r\n\t\tstatus = WaterGasMeterStatusEnum.enumForValue(statusValue);\r\n\t}", "@Override\r\n\t\t\tpublic void onProgressChanged(SeekBar seekbar, int progress, boolean arg2) {\n\t\t\t\ttv.setText(String.format(\"%1.2f\", ((float)progress+20)/200));\r\n\t\t\t}", "public Builder setLevel(int value) {\n bitField0_ |= 0x00000002;\n level_ = value;\n \n return this;\n }", "protected void setCurrentTaskNumber( final int value )\r\n {\r\n jProgressBarGlobal.setValue( value );\r\n }", "@Override \r\n\t\t public void onProgressChanged(SeekBar seekBar, int progress,boolean fromUser) {\n\t\t \tint actualValue = Math.round(progress/100)*100;\r\n\t\t \tactualValue += delayMinimum;\t\t \t\r\n\t\t seekValue.setText(\"\"+actualValue);\t\t\r\n\t\t delayTime = actualValue;\r\n\t\t }" ]
[ "0.79224503", "0.77229375", "0.763956", "0.753582", "0.753582", "0.70652145", "0.70462155", "0.6915155", "0.6886361", "0.6777397", "0.67723984", "0.6736272", "0.67344517", "0.6643605", "0.6592525", "0.65898234", "0.6560416", "0.6540402", "0.6512754", "0.64825636", "0.647572", "0.64538974", "0.6449271", "0.6410791", "0.63941664", "0.6356774", "0.63440555", "0.63440555", "0.6344037", "0.6322595", "0.63182557", "0.6302158", "0.6301526", "0.626463", "0.6230168", "0.6204692", "0.6185305", "0.61664224", "0.6163042", "0.61503994", "0.6148897", "0.6148897", "0.61385876", "0.6133516", "0.61152506", "0.6113941", "0.61078185", "0.61077136", "0.6104978", "0.6098934", "0.60985017", "0.6086079", "0.6081735", "0.6069795", "0.60686356", "0.60619086", "0.60610443", "0.6055843", "0.6052476", "0.60300064", "0.6025255", "0.6004303", "0.60040826", "0.60040826", "0.60040826", "0.59846294", "0.5981242", "0.5981242", "0.5981242", "0.5979035", "0.59774876", "0.59727514", "0.59643084", "0.59529865", "0.5951235", "0.5941376", "0.5936648", "0.59315836", "0.5916785", "0.5916764", "0.5916058", "0.5899961", "0.58989614", "0.5893583", "0.58883345", "0.58880454", "0.58852166", "0.5884421", "0.5880552", "0.5871563", "0.58690697", "0.5862626", "0.58608574", "0.5854523", "0.58470845", "0.58468014", "0.5843225", "0.58419883", "0.58403575", "0.582543" ]
0.68161297
9
Set the position of the sprite
@Override public void update(int mouseX, int mouseY, boolean click) { super.update(mouseX, mouseY, click); _innerSize._x = _size._x * _progress; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPosition(float x, float y){\n\t\t\n\t\tsprite.setPosition(x, y);\n\t}", "public void sprite() {\n\t\tspr.setPosition(sprite.getX(),sprite.getY());\n\t\tsprite = spr;\n\t}", "public void setPosition(float x, float y);", "private void setSpritesPosition()\r\n\t{\r\n\t\tfloat w = Gdx.graphics.getWidth();\r\n\t\tfloat h = Gdx.graphics.getHeight();\r\n\t\t\r\n\t\tsetX(camera.position.x-camera.viewportWidth/2 + 0.1f * camera.viewportWidth/2);\r\n\t\tsetY(camera.position.y + camera.viewportHeight/2 - 0.15f*w/h* camera.viewportHeight/2);\r\n\t\theroHealth.setX(getX());\r\n\t\theroHealth.setY(getY());\r\n\t\t\r\n\t\tcover.setX(getX() + 10f/270f * heroHealth.getWidth());\r\n\t\tcover.setY(getY());\r\n\t\t\r\n\t}", "void setPos(float x, float y);", "void setPosition(double xPos, double yPos);", "void moveToSprite(Sprite s) {\n _x = s._x;\n _y = s._y;\n }", "public void setPosition(Point position){\r\n this.position.set(position.x, position.y);\r\n\r\n this.shadow.setPosition(position);\r\n this.surface.setPosition(position);\r\n this.shading.setPosition(position);\r\n\r\n\r\n this.setBounds(new Rect(\r\n this.position.x - this.radius,\r\n this.position.y - this.radius,\r\n this.position.x + this.radius,\r\n this.position.y + this.radius\r\n ));\r\n \r\n }", "@Override\n public void setPosition(float x, float y) {\n }", "public void setPosition(float x, float y) {\n internalGroup.setPosition(x, y);\n dataTrait.x = x;\n dataTrait.y = y;\n resetSprite();\n }", "public void updateSprites() {\n this.model.getSprites().values().forEach(x -> x.setPosition(this.x, this.y));\n }", "public void setPosition(float x, float y)\n {\n if (getMazeSprite() != null)\n {\n this.getMazeSprite().setPosition(x, y);\n }\n }", "public void setPosition(Position pos);", "public void setPosition(int posX, int posY) {\n\t}", "public void setPosition(int x, int y)\n\t{\n\t\tint w = getSize().width;\n\t\tint h = getSize().height;\n\n\t\tpos.x = x;\n\n\t\tpos.y = y;\n\n\t\trect.setLocation(x - w / 2, y - h / 2);\n\t}", "public void setPos(int pos);", "public void setPos(int pos);", "public void setSprite(Sprite sprite_)\n\t{\n\t\tsprite=sprite_;\n\t}", "public void setPosition(Point position);", "void setPosition(Position position);", "void setPosition(Position position);", "@Override\n\tpublic void setPos(int x, int y) {\n\t\txPos = x;\n\t\tyPos = y;\n\t}", "PositionedObject(){\n float x = DrawingHelper.getGameViewWidth()/2;\n float y = DrawingHelper.getGameViewHeight()/2;\n _position.set(x,y);\n }", "void setPos(Vec3 pos);", "void setPosition(Vector3f position);", "public void PositionSet(int position);", "public void setPosition(float x, float y) {\n this.x = x;\n this.y = y;\n }", "public void setMazeSprite(Sprite mazeSprite)\n {\n this.mazeSprite = mazeSprite;\n\n //mazeFrameWidth = frameWidth;\n //mazeFrameHeight = frameHeight;\n }", "public void setPosition(Vector2 position);", "public void setPosition(Vector2 pos) {\n\t\tsetX(pos.x);\n\t\tsetY(pos.y);\n\t}", "public void setPosition(int position);", "void setPosition(Point point);", "@Override\n\tpublic void setPosition(Vector3 pos) {\n\t\t\n\t}", "void setPosition(Tile t);", "public final void setPosition(float x, float y) {\n\t\ttranslate(x - this.x(), y - this.y());\n\t}", "public void setPosition(Position pos) {\n position = new Position(pos);\n }", "public void setPosition(Position pos) {\n \tthis.position = pos;\n \t//setGrade();\n }", "public void setPosition(int x, int y) {\n this.x = x;\n this.y = y;\n }", "void setPosition(int posX, int posY, int width, int height) {\n this.posX = posX;\n this.posY = posY;\n this.width = width;\n this.height = height;\n }", "private void setPosition(float x, float y) {\n this.x = x;\r\n this.y = y;\r\n group();\r\n }", "public void setPosition(final Vector2f position);", "public void setPosition(int x, int y) {\r\n\t\tmyX = x;\r\n\t\tmyY = y;\r\n\t}", "void setPosition(Position p);", "public void SetPosition(Vector2 position)\n\t{\n\t\tTransform transform = parent.transform;\n\t\ttransform.position = position;\n\t\t// Dont loose your dP!\n\t\tpreviousPosition = Vector2.Add(position,velocity.negate());\n\t}", "public void setPosition(float x, float y) {\n\t\tthis.position.set(x, y, 0);\n\t}", "public void setLocation(float x, float y);", "public void setPosition(Point position) {\n this.position = new Point(position);\n update();\n }", "public abstract void setPosition(Position position);", "@Test\r\n\tpublic void testSetPosition(){\n\t\tWinnerTitle title = new WinnerTitle(1, 0, 0);\r\n\t\ttitle.setPosition(10, 40);\r\n\t\t\r\n\t\tassertEquals(10, title.getPositionX());\r\n\t\tassertEquals(40, title.getPositionY());\r\n\t}", "public void setSprite(CommonSprites sprite) {\n this.model.setSprite(this.spriteBaseName + sprite.toString(), this.x, this.y);\n }", "public void setPosition(int x, int y) {\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t}", "public void setPosition(Point position) {\n this.position = position;\n }", "public void setPosition(BlockVector position)\n {\n this.position = position;\n }", "public void setPosition(Point newPosition);", "public void setPosition(Position p);", "public void setPosition(ScreenPoint p) {\n setX(p.x);\n setY(p.y);\n }", "public void setPosition(double x, double y){\r\n this.x = (float)x;\r\n this.y = (float)y;\r\n changed();\r\n }", "public void setPosition(int position) {\r\r\r\r\r\r\n this.position = position;\r\r\r\r\r\r\n }", "public void setPosition(double x, double y) {\r\n this.x = x;\r\n this.y = y;\r\n }", "public void SetPosition(float x, float y) {\n mX = x;\n mY = y;\n for (int i = 0; i < mCardCount; i++) {\n SetCardPosition(i);\n }\n }", "public void setPosition(Vector2fc position){\n glfwSetWindowPos(handle, (int) position.x(), (int) position.y());\n this.position.set(position);\n }", "public void setPosition(Integer position);", "private void updatePosition (Coordinate newPosition) {\n centerX = newPosition.x;\n centerY = newPosition.y;\n\n atomSpriteBoundary.left = centerX - spriteLength/2;\n atomSpriteBoundary.right = centerX + spriteLength/2;\n atomSpriteBoundary.top = centerY - spriteHeight/2;\n atomSpriteBoundary.bottom = centerY + spriteHeight/2;\n }", "public void setPosition(Point pos) {\n this.topLeft = pos.asVector();\n }", "public void setPosition(double x, double y) {\n getMotion().setPosition(x, y);\n }", "private void setPosition(int startPosition) {\n switch (direction) {\n case UP:\n case DOWN:\n this.posX = componentToMove.getX();\n this.posY = componentToMove.getY() + (direction == Direction.UP ? startPosition : -startPosition);\n break;\n default:\n this.posX = componentToMove.getX() + (direction == Direction.LEFT ? startPosition : -startPosition);\n this.posY = componentToMove.getY();\n }\n }", "public void setPosition(Point2D position)\n {\n mPosition = position;\n }", "public void setPosition(int x, int y) {\n this.coordX = x;\n this.coordY = y;\n }", "public void setPosition(Dot position) {\r\n\t\tthis.position = position;\r\n\t}", "public void setPosition(int position)\r\n {\r\n this.position = position;\r\n }", "public void setPosition(float x, float y)\n {\n bounds.offsetTo(\n x - positionAnchor.x,\n y - positionAnchor.y);\n notifyParentOfPositionChange();\n conditionallyRelayout();\n }", "public void move() {\n this.pposX = this.posX;\n this.pposY = this.posY;\n this.posX = newPosX;\n this.posY = newPosY;\n }", "public void setCoordinates(int pos){\n if(this.pIndex<2){\n this.coordinates[0]=TILE_SIZE*15-DICE_SIZE-pos;}\n else{\n this.coordinates[0]=pos;}\n if(this.pIndex%3==0){\n this.coordinates[1]=pos;}\n else{\n this.coordinates[1]=TILE_SIZE*15-DICE_SIZE-pos;}\n }", "public void setPosition(int position) {\r\n if (position > 24) position = 24;\r\n this.position = position;\r\n }", "public void setPosition(double x, double y) {\n this.x = x;\n this.y = y;\n }", "public void setPosition(int x, int y) {\n this.mXPosition = x;\n this.mYPosition = y;\n }", "public void setPosition(Point p) {\r\n\t\tthis.position = p;\r\n\t\tc.setPosition(p);\r\n\t}", "public void setStartPosition() {\n bounds.offsetTo((SanitizorGame.mSurfaceWidth - bounds.width()) / 2,\n SanitizorGame.mSurfaceHeight - (BOTTOM_PADDING + bounds.height()));\n }", "public void setPosition(Vector position) {\n this.posX = position.getX();\n this.posY = position.getY();\n this.posZ = position.getZ();\n this.posSet = true;\n }", "public void setNodePositionXY (Point2D position) { n.setXYPositionMap(position); }", "public void setPosition(int xpos, int ypos) {\r\n this.xpos = xpos;\r\n this.ypos = ypos;\r\n bounds.x = xpos;\r\n bounds.y = ypos;\r\n }", "protected void setPosition(Vector3f position) {\r\n\t\tif (active) {\r\n\t\t\tsource.setPosition(position);\r\n\t\t}\r\n\t}", "public void setCardPos(double x, double y ){\r\n setX(x);\r\n setY(y);\r\n }", "public void setPlayerPosition() throws IOException\r\n\t{\r\n\t\tboolean flag = false;\r\n\t\t\r\n\t\tint X = 0;\r\n\t\tint Y = 0;\r\n\t\t\r\n\t\twhile(flag == false)\r\n\t\t{\r\n\t\t\toStream.writeInt(X);\r\n\t\t\toStream.writeInt(Y);\r\n\t\t\tflag = iStream.readBoolean();\r\n\t\t\tX++;\r\n\t\t\tY++;\r\n\t\t}\r\n\t\tboard.makePlayer(X-1, Y-1);\r\n\t}", "public void setPosY(int posY){\n\t\tthis.posY=posY;\n\t}", "@Override\n\tpublic void setPosition(Vector3d position) {\n\t\t\n\t}", "public void setStartPosition(int y,int z,int x)\r\n\t{\r\n\t\tthis.startPosition = new Position(y,z,x);\r\n\t}", "@Generated\n @Selector(\"setPosition:\")\n public native void setPosition(@ByValue CGPoint value);", "public void setPosition(Point2 position) {\r\n this.position = position;\r\n }", "public void setPos(float x, float y, float z)\n {\n worldMatrix.setPos(x, y, z);\n mPosition = worldMatrix.getPos();\n }", "@Override\n public void setLoc(Point p) {\n this.rect.setLocation(p);\n }", "public void setX(int x){ xPosition = x; }", "public void setPosition(int position) {\r\n this.position = position;\r\n }", "void setPosition (double x, double y, double z);", "public void setPosition(double x, double y, double z) {\n getMotion().setPosition(x, y, z);\n }", "public void setPosition(String id, int x, int y)\n {\n IDNode node=(IDNode)idReferences.get(id);\n node.setPosition(x,y); \n }", "void setLocation(int x, int y);", "public void setXY(int posX, int posY)\r\n\t{\r\n\t\tthis.X = posX;\r\n\t\tthis.Y = posY;\r\n\t}", "void setEnemyPos(Point2D pos);", "public void setPosition(double x, double y) {\n\t\tsetX(x);\n\t\tsetY(y);\n\t}", "public void setPosition(int position) {\r\n\t\tthis.position = position;\r\n\t}" ]
[ "0.7718719", "0.7683338", "0.75985897", "0.7546499", "0.7539525", "0.7427779", "0.7427325", "0.72966015", "0.7233214", "0.71827877", "0.7033207", "0.703287", "0.7013351", "0.7006415", "0.69934183", "0.6971942", "0.6971942", "0.69711494", "0.69653636", "0.69600224", "0.69600224", "0.6945205", "0.6905308", "0.6903443", "0.68858176", "0.6877415", "0.679163", "0.67793787", "0.6770364", "0.6764071", "0.67441607", "0.674245", "0.67409676", "0.6703748", "0.6700956", "0.6686324", "0.6658623", "0.6647228", "0.6637136", "0.66346747", "0.66308266", "0.6625141", "0.66067994", "0.6601262", "0.6598016", "0.6591847", "0.6585618", "0.6577286", "0.6566817", "0.6558096", "0.65537804", "0.65384567", "0.653411", "0.6528263", "0.6515497", "0.65066427", "0.65050286", "0.64898884", "0.6481745", "0.64795387", "0.6477047", "0.6438937", "0.64167213", "0.64117116", "0.6410546", "0.6397414", "0.63821703", "0.63798195", "0.63764757", "0.63563937", "0.6348806", "0.63459134", "0.634534", "0.63442427", "0.6341462", "0.63357884", "0.63330495", "0.6326772", "0.63232017", "0.63204306", "0.6315598", "0.6310139", "0.6305308", "0.6299112", "0.62928206", "0.629209", "0.6291897", "0.628414", "0.6273829", "0.6262261", "0.6260501", "0.62566227", "0.6255473", "0.6247695", "0.62469864", "0.6245024", "0.6243961", "0.6238039", "0.62380177", "0.6236345", "0.62358433" ]
0.0
-1
this will trigger a runtime error in the backend
@GetAction("e500") public static String backendServerError() { return Act.crypto().decrypt("bad-crypted-msg"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "public void inquiryError() {\n\t\t\n\t}", "public void error() {\n throw new RuntimeException(getClass().getName() + \" error\");\n }", "@Override\n\t\tpublic void loadError() {\n\t\t}", "@Override\n public void errorOnUpdate(String buxError) {\n }", "@Override\n public void onMachineBroken()\n {\n \n }", "@Override\n\tpublic void demoRunTimeException() throws RuntimeException {\n\n\t}", "@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}", "@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}", "private void sendInternalError(Exception e) {\n LOG.error(\"Error after vertex manager callback \" + managedVertex.getLogIdentifier(), e);\n appContext.getEventHandler().handle(\n (new DAGEventInternalError(managedVertex.getVertexId().getDAGID(),\n \"Error in VertexManager for vertex: \" + managedVertex.getLogIdentifier()\n + \", error=\" + ExceptionUtils.getStackTrace(e))));\n }", "@Override\n public void onError() {\n\n }", "private void sendOldError(Exception e) {\n }", "@Override\n public void onError(Throwable e) {\n }", "@Override\n public void onError(Exception e) {\n }", "@Override\n\tpublic void netErrorReLoad() {\n\t\t\n\t}", "@Override\n\tpublic void netErrorReLoad() {\n\t\t\n\t}", "@Override\n public void onError(Throwable e) {\n\n }", "@Override\n public void onFailure(Call<ModelBase> call, Throwable e) {\n Log.e(\"onError\", \"yes \");\n e.printStackTrace();\n }", "@Override\n\t\t\tpublic void onError(Request request, Throwable exception) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void errorReceived(Exception ex) {\n }", "@Override\n public void errorReceived(Exception ex) {\n }", "@Override\n\tpublic void setWrongError() {\n\t\t\n\t}", "@Override\n\tpublic String doError() {\n\t\treturn null;\n\t}", "@Override\n public void onError(Exception e) {\n\n }", "@Override\n\t\t\tpublic void onNetworkError() {\n\n\t\t\t}", "@Override\n\tpublic void error(Object message) {\n\n\t}", "@Override\n\t\t\t\t\tpublic void onError(Request request, Throwable exception) {\n\n\t\t\t\t\t}", "protected void onConnectionError() {\n\t}", "@Override\r\n public void onError(Exception e) {\n }", "@Override\n public void onError(Throwable e) {\n }", "public void error(Exception e);", "@Override\n\tpublic void onNetWorkError() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void onError(Throwable e) {\n\r\n\t\t\t}", "public void error();", "public static void logGenericUserError() {\n\n }", "@Override\r\n\tprotected void processError() {\n\t\tsuper.processError();\r\n\t\tshowToast(error_generico_process);\r\n\t}", "public void estiloError() {\r\n /**Bea y Jose**/\r\n\t}", "private void errorProcess(CallbackContext callbackContext, Exception ex) {\n // Convierte el payLoad a JSON.\n Gson gson = new Gson();\n Map<String, String> exc_map = new HashMap<String, String>();\n exc_map.put(\"message\", ex.toString());\n exc_map.put(\"stacktrace\", getStackTrace(ex));\n // Convierte el payLoad a JSON.\n String jsonError = new Gson().toJson(exc_map);\n\n sendResultError(callbackContext, jsonError);\n ex.printStackTrace();\n if (callbackContext != null) {\n callbackContext.error(jsonError);\n }\n }", "@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onRequestFail() {\n\n\t\t\t\t\t\t\t\t\t\t}", "public void onLoadingFailure() {\n AppSession.showDataLoadError(\"post\");\n onLoadingComplete();\n }", "public void crash() {\n\t\tgetPersistenceStrategy().crash();\n\t}", "@Override\n\tpublic void error(Object message, Throwable t) {\n\n\t}", "@Override\n public void onError(Throwable t) {\n t.printStackTrace();\n }", "@Override\n\t\t\t\tpublic void onNetworkError(Request request, IOException e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void onException(Exception e) {\n\t\t\t\t\tLog.d(\"SD_TRACE\", \"load api exception\" + e.toString());\n\t\t\t\t\tmLoadSuccess = false;\n\t\t\t\t}", "public void error(Throwable e);", "@Override\n public void showError() {\n }", "private void throwsError() throws OBException {\n }", "@Override\n public void onError(Throwable t) {\n\n }", "@Override\n public void onError(Throwable t) {\n\n }", "private void fireOnModelErrorEvent(Exception e) {\n \t\tif(!facade.getApplicationStateManager()\r\n \t\t\t\t.getApplicationState().equals(ApplicationState.LOADING)) {\r\n \t\t\treturn;\r\n \t\t}\r\n \t\t\r\n \t\tIterator<ModelDataListener> it = this.modelDataListeners.iterator();\r\n \t\t\r\n \t\twhile(it.hasNext()) {\r\n \t\t\tit.next().onModelError(e);\r\n \t\t}\r\n \t}", "@ExceptionHandler(RuntimeException.class)\n\tpublic ResponseEntity<ErrorResponse> runtimeExceptionHandler(RuntimeException runtimeException) {\n\t\tErrorResponse errorResponse = new ErrorResponse();\n\t\terrorResponse.setStatusCode(HttpStatus.INTERNAL_SERVER_ERROR.value());\n\t\terrorResponse.setErrorCode(GlobalErrorHandlingConstants.UNDEFINED_ERROR_CODE);\n\t\terrorResponse.setErrorMessage(GlobalErrorHandlingConstants.UNDEFINED_ERROR_MESSAGE);\n\t\treturn buildResponseEntity(errorResponse);\n\t}", "@Override\n\tpublic void onRequestDataError(Exception error) {\n\t\tLog.e(\"Jrv Activity jrv\", error.getMessage());\n\t}", "@Override\r\n\t\t\tpublic void onError(Object error) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void onError(Exception ex) {\n\n\t}", "public void Error(){\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n }", "@Override\r\n\t\t\tpublic void onNetworkError(NetworkError networkError) {\n\r\n\t\t\t}", "@Override\n public void onFailure(@NonNull Exception e) {\n }", "@Override\n\tpublic void error(Message msg) {\n\n\t}", "@Override\n public void onError(Status status) {\n }", "@Override\r\n\tpublic void onError(String err) {\n\t\t\r\n\t}", "public void onConnectionError()\n\t\t{\n\t\t}", "@Override\n\tpublic void onStartBlobStoreSessionFail() {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void doFail() {\n\t\t\t\t}", "@Override\n\t\t\tpublic void onError(Object error) {\n\n\t\t\t}", "public void mo1031a(Throwable th) {\n if (th != null && Log.isLoggable(\"GlideExecutor\", 6)) {\n Log.e(\"GlideExecutor\", \"Request threw uncaught throwable\", th);\n }\n }", "void recordExecutionError() {\n hadExecutionError = true;\n }", "@Override\n\t\tpublic void onError(Throwable e) {\n\t\t\tSystem.out.println(\"onError\");\n\t\t}", "@Override\n public void onApiFailure(Throwable mThrowable) {\n\n }", "void handleError(Exception ex);", "protected abstract void handleRealtimeLinkCommitException(Throwable t);", "@Override\n public void onFailure(@NonNull Exception e) {\n\n }", "public void errorWhenCommitting();", "private void correctError()\r\n\t{\r\n\t\t\r\n\t}", "@Override\n\tpublic void error(Message msg, Throwable t) {\n\n\t}", "@Override\n public void onError(int code, String msg) {\n }", "@Override\n\t\t\tpublic void onNetworkError(Request request, IOException e) {\n\n\t\t\t}", "private void handleBuilderException(Throwable t)\r\n {\r\n log.error(\"Error when executing builder script!\", t);\r\n showErrorMessage(RES_ERRMSG_BUILDER);\r\n }", "public void mo1031a(Throwable th) {\n if (th != null) {\n throw new RuntimeException(\"Request threw uncaught throwable\", th);\n }\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n }", "private void sqlException(SQLException e) {\n System.err.println(\"SQLException: \" + e.getMessage());\n System.err.println(\"SQLState: \" + e.getSQLState());\n System.err.println(\"VendorError: \" + e.getErrorCode());\n e.printStackTrace();\n// System.exit(-1);\n }", "public void onFailure(Throwable caught) {\n Window.alert(SERVER_ERROR);\n }", "public void onFailure(Throwable caught) {\n Window.alert(SERVER_ERROR);\n }", "@Override\n\t\t\t\t\tpublic void onAddFail() {\n\t\t\t\t\t\tMZLog.e(\"J\", \"同步到购物车失败\");\n\t\t\t\t\t}", "void innerError(Throwable ex) {\r\n\t\t\t\t\t\terror(ex);\r\n\t\t\t\t\t}", "void innerError(Throwable ex) {\r\n\t\t\t\t\t\terror(ex);\r\n\t\t\t\t\t}", "@Override\n public void onError(Status status) {\n }", "@Override\n public void onFailure(Throwable caught) {\n Window.alert(\"ERROR from SERVER\");\n }", "@Override\n public void onFailure() {\n }", "public void error(Throwable error) {\n\n }" ]
[ "0.6769316", "0.635169", "0.6345645", "0.6306623", "0.62996835", "0.629275", "0.62903833", "0.62272596", "0.62272596", "0.6225783", "0.61740595", "0.6165114", "0.61177486", "0.6067474", "0.6045683", "0.6045683", "0.60324484", "0.6027977", "0.6016153", "0.6009844", "0.6009844", "0.59891665", "0.5982017", "0.59773904", "0.5970902", "0.5961142", "0.5959226", "0.5958168", "0.5954536", "0.5946754", "0.5946473", "0.59373385", "0.59102064", "0.59072345", "0.5907022", "0.5900081", "0.5894605", "0.58900976", "0.58722043", "0.5870647", "0.5870245", "0.5855333", "0.5853527", "0.5852009", "0.5840297", "0.5839557", "0.5829379", "0.5820566", "0.58176565", "0.58176565", "0.5816908", "0.5809335", "0.58078706", "0.5807568", "0.5803512", "0.57953936", "0.57915086", "0.5790806", "0.5790806", "0.5787717", "0.5787717", "0.5787717", "0.5787717", "0.5787717", "0.57731915", "0.57687646", "0.5767679", "0.57670724", "0.57666045", "0.5763306", "0.5762361", "0.5757454", "0.57574123", "0.57495165", "0.5748116", "0.57476234", "0.573912", "0.5735778", "0.5734493", "0.57328504", "0.5729325", "0.5728118", "0.5716315", "0.57018346", "0.57017714", "0.5695986", "0.5694906", "0.56933874", "0.5690282", "0.5690282", "0.568983", "0.56895185", "0.56895185", "0.56894743", "0.56882185", "0.56882185", "0.56703377", "0.5667708", "0.56627023", "0.56598747" ]
0.5703491
83
List accounts = Account.dao.find("select from account");
@GetAction("/list") public void list(String q) { Iterable<Account> accounts = accountDao.findAll(); render(accounts); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Account> findAll();", "List<Account> findAll();", "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "List<AccountModel> findAll();", "List<Account> selectAll();", "@Query(\"select a from Account a\")\n List<Account> getAllAccount();", "@Query(\"select a from Account a\")\n List<Account> getAllAccounts();", "@Query(\"select ad from AccountDetail ad\")\n List<AccountDetail> getAllAccounts();", "Collection<Account> getAll();", "List<BookAccount> findAllForAccount(long idAccount);", "List<TmpUserPayAccount> selectAll();", "List<Account> findAccountByRole(UserRole role);", "@Query(\"select a from Account a where a.role = 'ADMIN'\")\n List<Account> getAllAdminsAccount();", "public List<Account> findByUserDetails(UserDetails userDetails);", "ArrayList<Bet> selectPlayingBetsOfAccount(Account account) throws DAOException;", "ArrayList<Bet> selectAllBetsOfAccount(String login) throws DAOException;", "List<Account> findByUsername(String username);", "public List findall() {\r\n log.debug(\"TwitterAccountHibernateDAO.findall\");\r\n List<T> t = find().list();\r\n \r\n return t;\r\n }", "@Override\npublic Account findById(int accountid) {\n\treturn accountdao.findById(accountid);\n}", "public List<T> findAll() throws NoSQLException;", "@Test\n public void sTest(){\n List<Account> accounts = as.findAllAccount ();\n for (Account account : accounts) {\n System.out.println (account);\n }\n }", "public GenericDao<Account> getAccountDao();", "List<BookAccount> findAllDebtors();", "List<TransactionRec> loadRecordsByAccount(BankAccount account);", "@Query(\"select ad from AccountDetail ad where ad.role = 'USER'\")\n List<AccountDetail> getAllAdminAccounts();", "Account selectByPrimaryKey(String id);", "List<Bill> findAll();", "Account selectByPrimaryKey(Long accountid);", "ArrayList<Bet> selectLostBetsOfAccount(Account account) throws DAOException;", "ArrayList<Bet> selectWonBetsOfAccount(Account account) throws DAOException;", "@Query(\"select a from Account a where a.role = 'Admin'\")\n List<Account> getAllAdmins();", "List<Member> findAll();", "Account findById(int id);", "List<Account> getAccounts(String login);", "ShopAccount selectByPrimaryKey(Integer spAccount);", "List<User> findAll();", "List<User> findAll();", "List<User> findAll();", "List<User> findAll();", "List<User> findAll() throws DataAccessException;", "@Override\n\tpublic List<Account> findAll() {\n\t\treturn accountRepository.findAll();\n\t}", "List<Account> findAllByRole(Roles role);", "@GetMapping()\n public List<Account> accounts(){\n List<Account> accounts = new ArrayList<>();\n //repoAccounts.forEach(accounts::add);\n accountRepository.findAll().forEach(accounts::add);\n return accounts;\n }", "@Override\n\tpublic List<Account> findAllAccounts() {\n\t\treturn m_accountDao.findAll();\n\t}", "List<AccountDetail> findAllByRole(UserRole role);", "Set<AccountModel> findAllByCustomerId(String customerId) throws CustomerException;", "public ResultSet getAllAccounts () throws Exception {\r\n String sql = \"SELECT * FROM `accounts`;\";\r\n return stmt.executeQuery(sql);\r\n }", "public List<Usuario> findAll() throws SQLException;", "public List<Usuario> listarUsuario() {\n \n List<Usuario> lista = usuarioDAO.findAll();\n return lista;\n \n \n\n }", "List<T> findAll() ;", "List<User> findAll() throws UserDaoException;", "@Test\n\tpublic void testFindAll() {\n\n\t\tList<UserInfo> result = this.userinfoDao.findAll();\n\n\t}", "public interface AccountRepo extends JpaRepository<Account,Integer> {\n\n List<Account>findAccountByUser(User user);\n}", "List<Account> getAccountsForCustomerId(int customerId);", "List<T> findAll();", "List<T> findAll();", "List<T> findAll();", "public List<User> findAll();", "public List<User> findAll();", "public interface AccountDao extends IDao<Account> {\n /**\n * @param accNo the account number that should be searched for\n * @return the account object that has been searched for\n */\n Account getByAccountNo(String accNo);\n\n /**\n * @param accountName the account name the searched account has\n * @return the account matching the account name\n */\n Account getByName(String accountName);\n}", "java.util.List<AuditoriaUsuario> findAll();", "List<Employee> findAll();", "public interface AccountDao {\n\t\n\t/**\n\t * Gets the list of Accounts based on the criteria passed as parameter\n\t * @param map a key value pair map used as criteria\n\t * @return List of {@link Account} satisfying the criteria\n\t * @throws DaoException\n\t */\n\tList<Account> getAccountsBasedOnCriteria(Map<String, Object> map) throws DaoException;\n\t\n\t/**\n\t * Get the {@link Account} object based on its accountNumber\n\t * @param accountNumber\n\t * @return\n\t * @throws DaoException\n\t */\n\tAccount getAccountByAccountNumber(Integer accountNumber) throws DaoException;\n\t\n\t/**\n\t * Update {@link Account}\n\t * @param account {@link Account} object needs to be updated\n\t * @throws DaoException\n\t */\n\tvoid update(Account account) throws DaoException;\n}", "public void testFindAccountList(){\n\t\tString begin = \"2013-01-01\" ;\n\t\tString end = \"2014-01-01\" ;\n\t\tAccount account = new Account() ;\n\t\tList<Account> list = this.bean.findAccountList(begin, end, account) ;\n\t\tAssert.assertTrue(list.size()>2) ;\n\t}", "List<Customer> findAllWithFetch();", "List<Usuario> findAll();", "public List<Accounts> getAllAccounts() {\n List<Accounts> accountList = new ArrayList<Accounts>();\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + TABLE_ACCOUNTS;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n Accounts account = new Accounts();\n account.setID(Integer.parseInt(cursor.getString(0)));\n account.setName(cursor.getString(1));\n account.setPassword(cursor.getString(2));\n account.setPhoneNumber(cursor.getString(3));\n account.setEmail(cursor.getString(4));\n // Adding account to list\n accountList.add(account);\n } while (cursor.moveToNext());\n }\n\n // return account list\n return accountList;\n }", "List<Consulta> findAll();", "public interface AccountRoleRepository extends CrudRepository<AccountRole, Long> {\n\n List<AccountRole> findByAccountId(Long accountId);\n\n}", "public static ArrayList<Account> getAccounts() {\n ArrayList<Account> accounts = new ArrayList<>();\n\n try (Statement statement = connection.createStatement()) {\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM LOGIN_ACCOUNTS\");\n while (resultSet.next()) { // as long as the next row is not null\n String username, password, firstName, lastName;\n int age;\n username = resultSet.getString(\"username\");\n password = resultSet.getString(\"password\");\n firstName = resultSet.getString(\"firstname\");\n lastName = resultSet.getString(\"lastname\");\n age = resultSet.getInt(\"age\");\n // place all the new items into a new Account object\n Account newAccount = new Account(username, password, firstName, lastName, age);\n // add the account to the list\n accounts.add(newAccount);\n }\n } catch (SQLException exc) {\n Logger.getLogger(Database.class.getName()).log(Level.SEVERE, null, exc);\n }\n\n return accounts;\n }", "public java.util.List<SitbMoneyCollection> findAll();", "List<E> findAll();", "List<E> findAll();", "List<E> findAll();", "ArrayList<Bet> selectBetsWithResult(Account account, int result) throws DAOException;", "FinanceAccount selectByPrimaryKey(Integer id);", "public List<Account> getAccountByType() throws Exception{\n Session session= sessionFactory.getCurrentSession();\n List<Account> accountList= session.createQuery(\"select account_type, COUNT(account_no) from Account group by account_type\").list();\n return accountList;\n }", "public interface AccountDao {\n int insert(Account account);\n\n Account queryAccountById(Long id);\n\n Account findAccount(Account account);\n\n Account queryAccountByMobile(Long mobile);\n\n Account queryAccountByEmail(String email);\n\n void update(Account account);\n\n void resetPassword(Account account);\n}", "CusBankAccount selectByPrimaryKey(Integer id);", "public List<Account> getAccounts() throws SQLException {\r\n\t\tList<Account> accounts = new ArrayList<>();\r\n\t\tConnection connection = dbAdministration.getConnection();\r\n\t\tStatement statement = connection.createStatement();\r\n\t\t// Alle Datensätze der Account-Tabelle abrufen\r\n\t\tString sql = \"SELECT * FROM account\";\r\n\t\tResultSet resultSet = statement.executeQuery(sql);\r\n\t\tlogger.info(\"SQL-Statement ausgeführt: \" + sql);\r\n\t\twhile (resultSet.next()) {\r\n\t\t\t// Datensätze in Kontoobjekte umwandeln\r\n\t\t\tint id = resultSet.getInt(1);\r\n\t\t\tString owner = resultSet.getString(2);\r\n\t\t\tString number = resultSet.getString(3);\r\n\t\t\tAccount account = new Account();\r\n\t\t\taccount.setId(id);\r\n\t\t\taccount.setOwner(owner);\r\n\t\t\taccount.setNumber(number);\r\n\t\t\taccount.setTransactions(daTransaction.getTransactionHistory(number));\r\n\t\t\taccounts.add(account);\r\n\t\t}\r\n\t\tresultSet.close();\r\n\t\tstatement.close();\r\n\t\tconnection.close();\r\n\t\treturn accounts;\r\n\t}", "List<ShopAccount> selectByExample(ShopAccountExample example);", "Account getAccount(int id);", "List<QnowUser> findAll();", "@GetMapping(\"/accounts\")\n public List<Account> getAccounts() {\n Iterable<Account> accounts = repository.findAll(Sort.by(\"name\"));\n return StreamSupport.stream(accounts.spliterator(), false).collect(Collectors.toList());\n }", "List<UserEntity> findAll();", "@Test\n void getUserBy() {\n List<Role> users = (List<Role>) roleDAO.getEntityBy(\"roleName\", \"o\");\n assertEquals(1, users.size());\n }", "List<Book> findAll();", "public List<Usuario> findAllUsuarios ();", "List<SysUser> selectAll();", "public List<AccountBean> getAllAccounts() {\n\t\tList<AccountBean> accountBeans = null;\n\t\tConnectionSource connectionSource = null;\n\t\tDao<AccountBean, Integer> contactDao = null;\n\n\t\ttry {\n\t\t\tconnectionSource = new AndroidConnectionSource(mDatabase);\n\t\t\tcontactDao = DaoManager.createDao(connectionSource,\n\t\t\t\t\tAccountBean.class);\n\t\t\taccountBeans = contactDao.queryBuilder()\n\t\t\t\t\t.orderBy(IConstants.ORDER_BY_UPDATED_AT, false).query();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn accountBeans;\n\t}", "@Override\n\tpublic List<Account> getAccountsByName(String name) {\n\t\treturn jdbcTemplate.query(\"select * from account where locate(?, name)>0 \", new Object[]{name}, new BeanPropertyRowMapper(Account.class));\n\t}", "List<Administrativo> findAll();", "List<BlogUser> getUsers() throws DAOException;", "List<Client> findAll();", "public List<E> findAll();", "public BankAccount findAccountById(int currentBankID) throws SQLException;", "Account findByUsername(String username);", "@Override\n\tpublic List<Customer> findall() {\n\t\treturn (List<Customer>) h.find(\"from Customer\");\n\t}", "public List<Account> getAllAccounts() {\n List<Account> accounts = new ArrayList<>();\n accountRepository.findAll().forEach(account -> accounts.add(account));\n return accounts;\n }", "public List<E> findAll() ;", "List<User> getAll() throws SQLException;" ]
[ "0.8195117", "0.8195117", "0.7861179", "0.78473014", "0.7691221", "0.76834494", "0.76826566", "0.7503345", "0.73849535", "0.7337493", "0.7112787", "0.7076685", "0.70071864", "0.70002544", "0.69902974", "0.6951084", "0.69454056", "0.6929228", "0.69154036", "0.69131315", "0.69071466", "0.68977296", "0.6878384", "0.686569", "0.68577754", "0.6846789", "0.6841413", "0.683589", "0.68137693", "0.68095493", "0.6807584", "0.68070596", "0.68005", "0.6797002", "0.67920166", "0.678379", "0.678379", "0.678379", "0.678379", "0.6731685", "0.67270875", "0.6714901", "0.6712516", "0.6708834", "0.67073005", "0.6705988", "0.67012626", "0.669414", "0.6674701", "0.6666882", "0.66625494", "0.66500217", "0.66440064", "0.6631984", "0.6622654", "0.6622654", "0.6622654", "0.6603454", "0.6603454", "0.6581498", "0.65768343", "0.6574675", "0.65670234", "0.6565593", "0.65647036", "0.65572685", "0.6548627", "0.6543434", "0.65412205", "0.6522693", "0.651973", "0.6510478", "0.6510478", "0.6510478", "0.65078986", "0.6499197", "0.6489339", "0.64878607", "0.64832425", "0.64758974", "0.6471216", "0.64681405", "0.64519924", "0.64345694", "0.6429012", "0.6428233", "0.6425619", "0.64153254", "0.64066017", "0.6404794", "0.6404058", "0.6393793", "0.6387457", "0.6384161", "0.6380989", "0.6379071", "0.63732547", "0.6369957", "0.6357753", "0.6350589", "0.63396466" ]
0.0
-1
disconnect ReceivingSpace with sku in Goods
public ReceivingSpace planToRemoveGoodsListWithSku(ReceivingSpace receivingSpace, String skuId, Map<String,Object> options)throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void disconnectFromAudio() {\n String json = new Gson().toJson(new TelevisionModel(TelevisionModel.Action.DISCONNECT));\n String a = sendMessage(json);\n TelevisionModel teleM = new Gson().fromJson(a, TelevisionModel.class);\n System.out.println(\"Client Received \" + json);\n\n if (teleM.getAction() == TelevisionModel.Action.DISCONNECT) {\n isDisconnecting = teleM.getValue();\n ui.updateArea(teleM.getMessage());\n };\n }", "public ReceivingSpace planToRemoveGoodsListWithSmartPallet(ReceivingSpace receivingSpace, String smartPalletId, Map<String,Object> options)throws Exception;", "public void disbandChannel()\r\n\t{\r\n\t\tif (_partys != null)\r\n\t\tfor (L2Party party : _partys)\r\n\t\t\tif (party != null)\r\n\t\t\t\tremoveParty(party);\r\n\t\t_partys = null;\r\n\t}", "public void stopSending ();", "public void removeCloseProxDevice() {\n\n // If ScanningService is active\n if (BLEScanningService.isAlive()) {\n\n Iterator it = closeProxBTDevices.entrySet().iterator();\n\n // For each entry in 'Close Proximity List'\n while(it.hasNext()) {\n\n Map.Entry<String, BTDevice> pair = (Map.Entry<String, BTDevice>) it.next();\n System.out.println(\"1. MAC ADDRESS: \" + pair.getKey() + \" \" + \"GET DISTANCE: \" + pair.getValue().getDistance());\n\n // If device has a distance over 2.0 OR putRSSI method was not called in 30 seconds\n if (pair.getValue().getDistance() > 2.0 || ((System.currentTimeMillis() - pair.getValue().getRssiTimeCalled()) > TIME_OUT) ) // 1 minute\n {\n System.out.println(\"2. MAC ADDRESS: \" + pair.getKey() + \" \" + \"GET DISTANCE: \" + pair.getValue().getDistance() + \"TIME BETWEEN CALLS:\" + (System.currentTimeMillis() - pair.getValue().getRssiTimeCalled()));\n\n // End timer, interaction is over\n pair.getValue().getIt().endTimer(System.currentTimeMillis());\n\n System.out.println(\"3. MAC ADDRESS:\" + pair.getKey() + \" \" + \"INTERACTION LENGTH:\" + pair.getValue().getIt().getInteractionLength());\n\n if (pair.getValue().getIt().getInteractionLength() >= MIN_INTERACTION_LENGTH) { // > 1 minutes\n System.out.println(\"4. N MAC ADDRESS:\" + pair.getKey() + \" \" + \"INTERACTION LENGTH:\" + pair.getValue().getIt().getInteractionLength());\n\n Intent mIntent = new Intent();\n mIntent.setClass(this, FeedbackActivity.class);\n mIntent.putExtra(\"second_person_name\", pair.getValue().getName());\n mIntent.putExtra(\"second_person_mac\", pair.getValue().getMACAddress());\n mIntent.putExtra(\"length_interaction\", pair.getValue().getIt().getInteractionLength());\n mIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\n sendNotification(pair.getValue(), mIntent);\n closeProxBTDevices.remove(pair.getKey());\n }\n\n }\n }\n }\n }", "public void deactivateSCOP(){\r\n SCOP = false;\r\n }", "public static void disconnect() {\n if (AppSettings.bluetoothConnection != null) \n \tAppSettings.bluetoothConnection.stop();\n\t}", "public void deleteNetWS() {\r\n/* 142 */ this._has_netWS = false;\r\n/* */ }", "void disconnect(String reason);", "private void destroy(DynamicConnectivity.Splay s) {\n }", "public ReceivingSpace planToRemoveGoodsListWithShippingSpace(ReceivingSpace receivingSpace, String shippingSpaceId, Map<String,Object> options)throws Exception;", "public void onDisconnect(HeaderSet req, HeaderSet resp) {\r\n if(req == null)\r\n return;\r\n try {\r\n //clientBluetoothAddress = req.getHeader(HeaderSet.NAME).toString();\r\n Object reqType = req.getHeader(HeaderSets.REQUEST_TYPE);\r\n if(reqType == null)\r\n return;\r\n if (reqType.toString().equals(Types.REQUEST_DISCONNECT)) {\r\n parent.removeClient(clientBluetoothAddress);\r\n //AlertDisplayer.showAlert(\"Disconnected\", \"btADDR : \" +clientBluetoothAddress,parent.gui.getDisplay(),parent.gui.getList());\r\n }\r\n \r\n } catch (IOException e) {\r\n System.err.println(\"Exception in DataTransaction.onConnect()\");\r\n \r\n }\r\n }", "public void deselect() {\n\t\tmSecureChannel.resetSecurity();\r\n\t}", "public ReceivingSpace planToRemoveGoodsListWithRetailStore(ReceivingSpace receivingSpace, String retailStoreId, Map<String,Object> options)throws Exception;", "public void disconnect() {\n\t\t\n\t}", "public LWTRTPdu disConnectReq() throws IncorrectTransitionException;", "void stopHelloSender();", "public LWTRTPdu disConnectRsp() throws IncorrectTransitionException;", "public void unsubscribeToCovRequest() {\n try {\n DeviceService.localDevice.send(bacnetDevice, new SubscribeCOVRequest(new UnsignedInteger(1), getObjectIdentifier(), null, null)).get();\n LOG.info(\"Unsubscription @: '\" + getObjectIdentifier() + \"' on: \" + bacnetDevice.getObjectIdentifier());\n } catch (BACnetException e) {\n LOG.warn(\"Can't unsubscribe : '\" + getObjectIdentifier() + \"' on: \" + bacnetDevice.getObjectIdentifier());\n }\n\n }", "protected void onDestroy(){\n\t\tsuper.onDestroy();\n\t\tJSONObject msg = new JSONObject();\n\t\t\ttry {\n\t\t\t\tmsg.put(\"type\", \"DISCONNECT_REQUEST\");\n\t\t\t\tmsg.put(\"source\", name);\n\t\t\t\tnew Write(msg).execute(\"\");\n\t\t\t\t\n\t\t\t} catch (JSONException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t}", "public void cancelCard() {}", "public void disconnect() {if(mEnable) mBS.disconnect();}", "protected void processDisconnect() {\n\t\tconnected.set(false);\n\t\tsenderChannel = null;\n\t}", "public void disconnect( ) {\n disconnect( \"\" );\n }", "private void quit() {\n\t\tmSipSdk = myApplication.getPortSIPSDK();\n\n\t\tif (myApplication.isOnline()) {\n\t\t\tLine[] mLines = myApplication.getLines();\n\t\t\tfor (int i = Line.LINE_BASE; i < Line.MAX_LINES; ++i) {\n\t\t\t\tif (mLines[i].getRecvCallState()) {\n\t\t\t\t\tmSipSdk.rejectCall(mLines[i].getSessionId(), 486);\n\t\t\t\t} else if (mLines[i].getSessionState()) {\n\t\t\t\t\tmSipSdk.hangUp(mLines[i].getSessionId());\n\t\t\t\t}\n\t\t\t\tmLines[i].reset();\n\t\t\t}\n\t\t\tmyApplication.setOnlineState(false);\n\t\t\tmSipSdk.unRegisterServer();\n\t\t\tmSipSdk.DeleteCallManager();\n\t\t}\n\t}", "protected void kill() {\n disconnect = true;\n }", "public ReceivingSpace planToRemoveGoodsListWithRetailStoreOrder(ReceivingSpace receivingSpace, String retailStoreOrderId, Map<String,Object> options)throws Exception;", "void dropPkt();", "private void discardPrompt() {\r\n\t\tfor (int i = 0; i < mustDiscard.size(); i++) {\r\n\t\t\tString prompt = \"**[Discard]** a card \";\r\n\t\t\tif (mustDiscard.get(i).contentEquals(\"Sleight of Hand\")) {\r\n\t\t\t\tprompt += \"to draw 2 cards\";\r\n\t\t\t} else if (mustDiscard.get(i).contentEquals(\"Apothecary\")) {\r\n\t\t\t\tprompt += \"to choose one: **3** :crossed_swords: **~OR~** **2** :moneybag: **~OR~** **1** :heart:\";\r\n\t\t\t}\r\n\t\t\tgameChannel.sendMessage(prompt).queue();\r\n\t\t}\r\n\t}", "public Reply\tdisconnect() throws ThingsException, InterruptedException ;", "public ReceivingSpace planToRemoveGoodsListWithBizOrder(ReceivingSpace receivingSpace, String bizOrderId, Map<String,Object> options)throws Exception;", "public void disconnect() {\n \ttry {\n \t\tctx.unbindService(apiConnection);\n } catch(IllegalArgumentException e) {\n \t// Nothing to do\n }\n }", "public final void mo5203SI() {\n AppMethodBeat.m2504i(129935);\n C4996ah.getContext().unregisterReceiver(this);\n this.hjc.clear();\n AppMethodBeat.m2505o(129935);\n }", "public void cancelTradeOffer()\n\t{\n\t\tm_trade.cancelOffer(this);\n\t}", "@Override\r\n\tpublic GlobalResult deleteEquip(String mspno) {\n\t\treturn null;\r\n\t}", "public void disconnect() {}", "@Override\n\tpublic void disconnect() {\n\t\t\n\t}", "@Override\n\tpublic void disconnect() {\n\t\t\n\t}", "public void swigDirectorDisconnect() {\n this.swigCMemOwn = false;\n delete();\n }", "public void sendStop(){\n if (isNetworkGame()){\n sender.println(\"stop\");\n sender.flush();\n }\n }", "void exitCurrentStationCard();", "public void disconnect() {\r\n\t\tsuper.disconnect();\r\n\t}", "void cancelProduction();", "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 }", "@Override\n\tpublic void disconnect() {\n\n\t}", "@Override\n\tpublic void disconnect() {\n\n\t}", "public void sell() {\n for (Company x : _market.getCompanies()) {\n if (x.getRisk() > _confidence || x.numLeft() < 3 || x.getRisk() < _confidence - 15){\n if (_stocks.get(x) == 1) {\n _stocks.remove(x);\n } else {\n _stocks.put(x, _stocks.get(x) - 1);\n }\n _money += x.getPrice();\n x.gain();\n break;\n } else {\n _happy = true;\n }\n }\n }", "protected abstract void disconnect(UUID[] players, String reason, IntConsumer response);", "void connectionHandlerRequestStopScanning();", "ICard deal();", "private void doUnsubscribe(IoSession session, MessageProtocol request) throws Exception {\n \t\n \tdoExit(session);\n }", "public void onPlayerDisconnect(Player player)\r\n \t{\r\n \t\tPlayerData data = plugin.getPlayerDataCache().getData(player);\r\n \r\n \t\tdata.setFrenzyEnabled(false);\r\n \t\tdata.setSuperPickaxeEnabled(false);\r\n \t\tdata.setUnlimitedAmmoEnabled(false);\r\n \t}", "public void itemsSold() {\n quanitySnacks--;\n }", "public void terminateSession(){\n\t\t\t\n\t\t\tsendMessage2Client(\"Session Terminated\");\n\t\t\t\n\t\t\tdb.getRecord(keyname).setClientStatus(\"TERMINATED\");\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tccSocket.close();\n\t\t\t\t\t\t\t\t\n\t\t\t} catch (Exception e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t\tdb.getRecord(keyname).setClientStatus(\"LOST\");\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}", "public final void disconnect() {\n synchronized (this.lock) {\n if (this.zzbur != null) {\n this.zzbur.disconnect();\n this.zzbur = null;\n Binder.flushPendingCommands();\n }\n }\n }", "public LWTRTPdu disConnect() throws IncorrectTransitionException;", "void stopGame() {\n leader.disconnect();\n opponent.disconnect();\n }", "protected void processDisconnection(){}", "@Override\r\n public boolean disconnectWifi() {\r\n nwmDevice.getDevice().Disconnect();\r\n return true;\r\n }", "public static ResponseMessage delete(String serviceName, String region, String ak, String sk, String requestUrl)\n {\n ResponseMessage resMsg = new ResponseMessage();\n AccessServiceShipping accessService = null;\n try\n {\n accessService = new AccessServiceImplShipping(serviceName, region, ak, sk);\n URL url = new URL(requestUrl);\n HttpMethodName httpMethod = HttpMethodName.DELETE;\n\n HttpResponse response = accessService.access(url, httpMethod);\n if (response.getEntity() != null && response.getEntity().getContent() != null)\n {\n resMsg.setBody(convertStreamToString(response.getEntity().getContent()));\n }\n\n int statusCode = response.getStatusLine().getStatusCode();\n resMsg.setStatusCode(statusCode);\n if ((statusCode >= 200 && statusCode < 300))\n {\n resMsg.setSuccess(true);\n }\n\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n finally\n {\n accessService.close();\n }\n return resMsg;\n }", "void unsetCapitalPayed();", "@Override\n protected void disconnect(SelectionKey key) {\n SocketChannel channel = (SocketChannel) key.channel();\n NetworkDestination destination = socketToDestination.get(channel);\n destinationToSocket.remove(destination);\n socketToDestination.remove(channel);\n socketToTracker.remove(channel);\n super.disconnect(key);\n }", "public void disconnected(String reason) {}", "public void disconnect() {\n\t\tdisconnect(true);\n\t}", "public void disconnect(int[] details)throws RemoteException{\n sd.getGames().get(details[0]).setExpired();\n }", "public void stopPropose(int instanceId, int destination);", "public Object dismissTrade() {\n return client.sendRpcAndWait(SERVICE, \"dismissTrade\");\n }", "public void discard(){\n for(int i = 1 ; i <= 110 ; i++) cardDeck.remove(i);\n }", "private void Disconnect() {\n //If the btSocket is busy\n if (btSocket!=null) {\n try {\n btSocket.close(); //close connection\n }\n catch (IOException e) {\n msg(\"Error\");\n }\n }\n finish(); //return to the first layout\n\n }", "public void disconnect(ClientAddress clientAddress);", "public void disconnect() {\n try {\n Socket socket = new Socket(\"127.0.0.1\",33333);\n ObjectOutputStream outputStream = new ObjectOutputStream(socket.getOutputStream());\n clientMain.clientData[1] = \"no\";\n outputStream.writeObject(clientMain.clientData);\n\n clientMain.showConnectionPage();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public LWTRTPdu disConnectAcpt() throws IncorrectTransitionException;", "public void stopNetwork();", "private void removeKeyAndSession(SelectionKey key) {\n\t\t\tSSLClientSession session = ((SSLClientSession)key.attachment());\n\t\t\tString username = session.getUsername();\n\t\t\t\n\t\t\topen_client_channels.remove(key); // remove the open channel\n\t\t\tsession.disconnect(); // shutdown the ssl socket channel\n\t\t\tkey.cancel(); //cancel the key\n\t\t\t\n\t\t\tif(username == null)\n\t\t\t\tSystem.out.println(\"Unknown user has disconnected.\");\n\t\t\telse\n\t\t\t\tSystem.out.println(username+\" has disconnected from the communication server.\");\n\t\t}", "void removeDevice(int networkAddress);", "public void decommission() {\n\t\tlogger.debug(\"Decommission signal received. Shutting down...\");\n\t\tlogger.logServiceStop(servicePID);\n\t\tkeepRunning = false;\n\t}", "public void deactivateCOP(){\r\n COP = false;\r\n }", "private void disconnect() {\n System.out.println(String.format(\"連線中斷,%s\",\n clientSocket.getRemoteSocketAddress()));\n final int delete = thisPlayer.id - 1;\n player[delete] = null;\n empty.push(delete);\n }", "public void disconnect(){ \r\n if (matlabEng!=null){ \r\n matlabEng.engEvalString (id,\"bdclose ('all')\");\r\n matlabEng.engClose(id);\r\n matlabEng=null;\r\n id=-1; \r\n }\r\n }", "public void disconnect ()\n {\n org.omg.CORBA.portable.InputStream $in = null;\n try {\n org.omg.CORBA.portable.OutputStream $out = _request (\"disconnect\", true);\n $in = _invoke ($out);\n return;\n } catch (org.omg.CORBA.portable.ApplicationException $ex) {\n $in = $ex.getInputStream ();\n String _id = $ex.getId ();\n throw new org.omg.CORBA.MARSHAL (_id);\n } catch (org.omg.CORBA.portable.RemarshalException $rm) {\n disconnect ( );\n } finally {\n _releaseReply ($in);\n }\n }", "public void removeFromSilkBag() {\r\n silkBag.remove(0);\r\n }", "public void disconnect() {\n\t\tdisconnect(null);\n\t}", "abstract protected void onDisconnection();", "public void disconnect();", "public void disconnect();", "public void disconnect();", "public void disconnect();", "public void destroy() throws BridgeException, BrokerException;", "public void removeWire(IPWire pres);", "public void sendUnbindRequest(Pdu packet);", "public void stopReceiving() {\n\t\tcallerContext.unregisterReceiver(this);\n\t}", "void disconnectedPlayerMessage(String name);", "private void sellPlayer(int num) {\n\t\tString playerName = playerNameArray[num].getText();\n\t\tgame.removePlayer(playerName);\n\t\tplayerNameArray[num].setText(\"\");\n\t\timageArray[num].setIcon(MainGui.getShirt(\"noTeam\"));\n\t\tbuttonArray[num].setText(\"+\");\n\t\tlblBudgetText.setText(game.getCurrentUser().getBudget() + \"kr\");\n\t}", "void disconnect() throws TransportException;", "@Override\n public void sell() {\n }", "public void disconnect() throws OOBException {\n \t\tsession.disconnect();\n \t}", "public void mBTClose1() {\n if (oBTServer!=null)\n oBTServer.mCloseService2(); //Disconnect a relayed device\n mDisconnect();\n if (oBTadapter != null) {\n if (oBTadapter.isEnabled()) {\n if (isOpenedByMe) //170905 only if this application opened the bluetooth\n oBTadapter.disable();\n }\n }\n if (mReceiver1!=null)\n try { //Protection from crash bugfix 171013\n mContext.unregisterReceiver(mReceiver1);\n }\n catch (final Exception exception) {\n // The receiver was not registered. There is nothing to do in that case. Everything is fine.\n }\n }", "public void endSale() {\r\n receipt.outputReceiptItems();\r\n System.out.println(\"\");\r\n System.out.println(\"Thanks for shopping at Java*Mart\");\r\n System.out.println(\"\");\r\n System.out.println(\"[CashRegister] endSale\");\r\n }", "void wipeSubscriptions(String sessionID);", "public void disconnect() {\n if (this.mIsConnected) {\n disconnectCallAppAbility();\n this.mRemote = null;\n this.mIsConnected = false;\n return;\n }\n HiLog.error(LOG_LABEL, \"Already disconnected, ignoring request.\", new Object[0]);\n }" ]
[ "0.6013936", "0.5815661", "0.5554337", "0.5485952", "0.5475138", "0.5411566", "0.54014385", "0.5382141", "0.53770447", "0.53638697", "0.5356002", "0.53416437", "0.5301742", "0.52716804", "0.52711487", "0.5270289", "0.5259785", "0.52513266", "0.52365273", "0.5222399", "0.5218672", "0.5213191", "0.52131546", "0.52111423", "0.5193699", "0.5191364", "0.5154752", "0.51335615", "0.5125143", "0.51241535", "0.51188314", "0.5108778", "0.5107148", "0.51065695", "0.5096465", "0.5093909", "0.50882494", "0.50882494", "0.5081012", "0.50768757", "0.50761074", "0.507226", "0.5070415", "0.50699705", "0.506994", "0.506994", "0.5069184", "0.50652206", "0.5060127", "0.50576985", "0.5053777", "0.50477695", "0.50443304", "0.50404793", "0.50347644", "0.5029375", "0.5010337", "0.50081164", "0.50051796", "0.5004794", "0.4997577", "0.49974275", "0.4994581", "0.49905342", "0.49904567", "0.4989875", "0.4986149", "0.4982417", "0.49767566", "0.4974638", "0.49739864", "0.4968948", "0.49661005", "0.49617893", "0.49593055", "0.4956133", "0.4954649", "0.4950719", "0.49478868", "0.49424613", "0.49345577", "0.49334264", "0.4930818", "0.49245888", "0.49245888", "0.49245888", "0.49245888", "0.49163678", "0.49130133", "0.49115905", "0.4909463", "0.4903294", "0.48986903", "0.48983538", "0.48976645", "0.4887268", "0.48783356", "0.4875675", "0.4875121", "0.48723558" ]
0.63939977
0
disconnect ReceivingSpace with goods_allocation in Goods
public ReceivingSpace planToRemoveGoodsListWithGoodsAllocation(ReceivingSpace receivingSpace, String goodsAllocationId, Map<String,Object> options)throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ReceivingSpace planToRemoveGoodsListWithSmartPallet(ReceivingSpace receivingSpace, String smartPalletId, Map<String,Object> options)throws Exception;", "public ReceivingSpace planToRemoveGoodsListWithShippingSpace(ReceivingSpace receivingSpace, String shippingSpaceId, Map<String,Object> options)throws Exception;", "public ReceivingSpace planToRemoveGoodsListWithSku(ReceivingSpace receivingSpace, String skuId, Map<String,Object> options)throws Exception;", "public ReceivingSpace planToRemoveGoodsListWithRetailStore(ReceivingSpace receivingSpace, String retailStoreId, Map<String,Object> options)throws Exception;", "public ReceivingSpace planToRemoveGoodsListWithBizOrder(ReceivingSpace receivingSpace, String bizOrderId, Map<String,Object> options)throws Exception;", "private void freeAgent() {\n }", "public ReceivingSpace planToRemoveGoodsListWithTransportTask(ReceivingSpace receivingSpace, String transportTaskId, Map<String,Object> options)throws Exception;", "public ReceivingSpace planToRemoveGoodsListWithRetailStoreOrder(ReceivingSpace receivingSpace, String retailStoreOrderId, Map<String,Object> options)throws Exception;", "void dropPkt();", "public void destroy() throws BridgeException, BrokerException;", "private void deAllocate() {\n if (getC_Order_ID() != 0) {\n setC_Order_ID(0);\n }\n //\tif (getC_Invoice_ID() == 0)\n //\t\treturn;\n //\tDe-Allocate all\n MAllocationHdr[] allocations = MAllocationHdr.getOfPayment(getCtx(),\n getC_Payment_ID(), get_TrxName());\n log.fine(\"#\" + allocations.length);\n for (int i = 0; i < allocations.length; i++) {\n allocations[i].set_TrxName(get_TrxName());\n allocations[i].setDocAction(DocAction.ACTION_Reverse_Correct);\n allocations[i].processIt(DocAction.ACTION_Reverse_Correct);\n allocations[i].save();\n }\n\n // \tUnlink (in case allocation did not get it)\n if (getC_Invoice_ID() != 0) {\n //\tInvoice\n String sql = \"UPDATE C_Invoice \"\n + \"SET C_Payment_ID = NULL, IsPaid='N' \"\n + \"WHERE C_Invoice_ID=\" + getC_Invoice_ID()\n + \" AND C_Payment_ID=\" + getC_Payment_ID();\n int no = DB.executeUpdate(sql, get_TrxName());\n if (no != 0) {\n log.fine(\"Unlink Invoice #\" + no);\n }\n //\tOrder\n sql = \"UPDATE C_Order o \"\n + \"SET C_Payment_ID = NULL \"\n + \"WHERE EXISTS (SELECT * FROM C_Invoice i \"\n + \"WHERE o.C_Order_ID=i.C_Order_ID AND i.C_Invoice_ID=\" + getC_Invoice_ID() + \")\"\n + \" AND C_Payment_ID=\" + getC_Payment_ID();\n no = DB.executeUpdate(sql, get_TrxName());\n if (no != 0) {\n log.fine(\"Unlink Order #\" + no);\n }\n }\n //\n setC_Invoice_ID(0);\n setIsAllocated(false);\n }", "protected void processDisconnection(){}", "public void disbandChannel()\r\n\t{\r\n\t\tif (_partys != null)\r\n\t\tfor (L2Party party : _partys)\r\n\t\t\tif (party != null)\r\n\t\t\t\tremoveParty(party);\r\n\t\t_partys = null;\r\n\t}", "public void removeCloseProxDevice() {\n\n // If ScanningService is active\n if (BLEScanningService.isAlive()) {\n\n Iterator it = closeProxBTDevices.entrySet().iterator();\n\n // For each entry in 'Close Proximity List'\n while(it.hasNext()) {\n\n Map.Entry<String, BTDevice> pair = (Map.Entry<String, BTDevice>) it.next();\n System.out.println(\"1. MAC ADDRESS: \" + pair.getKey() + \" \" + \"GET DISTANCE: \" + pair.getValue().getDistance());\n\n // If device has a distance over 2.0 OR putRSSI method was not called in 30 seconds\n if (pair.getValue().getDistance() > 2.0 || ((System.currentTimeMillis() - pair.getValue().getRssiTimeCalled()) > TIME_OUT) ) // 1 minute\n {\n System.out.println(\"2. MAC ADDRESS: \" + pair.getKey() + \" \" + \"GET DISTANCE: \" + pair.getValue().getDistance() + \"TIME BETWEEN CALLS:\" + (System.currentTimeMillis() - pair.getValue().getRssiTimeCalled()));\n\n // End timer, interaction is over\n pair.getValue().getIt().endTimer(System.currentTimeMillis());\n\n System.out.println(\"3. MAC ADDRESS:\" + pair.getKey() + \" \" + \"INTERACTION LENGTH:\" + pair.getValue().getIt().getInteractionLength());\n\n if (pair.getValue().getIt().getInteractionLength() >= MIN_INTERACTION_LENGTH) { // > 1 minutes\n System.out.println(\"4. N MAC ADDRESS:\" + pair.getKey() + \" \" + \"INTERACTION LENGTH:\" + pair.getValue().getIt().getInteractionLength());\n\n Intent mIntent = new Intent();\n mIntent.setClass(this, FeedbackActivity.class);\n mIntent.putExtra(\"second_person_name\", pair.getValue().getName());\n mIntent.putExtra(\"second_person_mac\", pair.getValue().getMACAddress());\n mIntent.putExtra(\"length_interaction\", pair.getValue().getIt().getInteractionLength());\n mIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\n sendNotification(pair.getValue(), mIntent);\n closeProxBTDevices.remove(pair.getKey());\n }\n\n }\n }\n }\n }", "public void stopSending ();", "public BufferSlot remove();", "public void disconnectedFromHost();", "public void disconnect() {\r\n\t\tsuper.disconnect();\r\n\t}", "public void swigDirectorDisconnect() {\n this.swigCMemOwn = false;\n delete();\n }", "public abstract void free();", "public void leaveTheBus(int pid, int seat);", "abstract protected void onDisconnection();", "public void disconnect() {\n\t\t\n\t}", "public void remove(Good good) {\n cargo.remove(good);\n numOfGoods--;\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:45.509 -0500\", hash_original_method = \"C231E33C68F8FEC3C6EDCF993CA1BD7A\", hash_generated_method = \"60AE8F641AB448C2AE7DFA7C6F9FF823\")\n \npublic void disconnected() {\n mSrcContext = null;\n mSrcHandler = null;\n mSrcMessenger = null;\n mDstMessenger = null;\n mConnection = null;\n }", "public void disconnect() {}", "public void freeSpace(long space)\n {\n _spaceMonitor.freeSpace(space);\n }", "@Override\n\tpublic void hideGuaranteedDeliverySection() {\n\n\t}", "public abstract boolean freeSlot(LocationDto location ,SlotDto slot);", "String reclaim(String request) throws RemoteException;", "void cancelProduction();", "private void destroy(DynamicConnectivity.Splay s) {\n }", "public void doSendOff(final int node) {\n\t\tcheckAddress();\n\n\t\t// send an OSC message to free the node 1000\n\t\tfinal List<Object> args = new ArrayList<Object>(1);\n\t\targs.add(node);\n\t\tfinal OSCMessage msg = new OSCMessage(\"/n_free\", args);\n\n\t\t// try to use the send method of oscPort using the msg in nodeWidget\n\t\t// send an error message if this doesn't happen\n\t\ttry {\n\t\t\toscPort.send(msg);\n\t\t} catch (final Exception ex) {\n\t\t\tshowError(\"Couldn't send\");\n\t\t}\n\t}", "public void disconnect(){ \r\n if (matlabEng!=null){ \r\n matlabEng.engEvalString (id,\"bdclose ('all')\");\r\n matlabEng.engClose(id);\r\n matlabEng=null;\r\n id=-1; \r\n }\r\n }", "ISlot remove(IStrongSlot target);", "protected void kill() {\n disconnect = true;\n }", "public void doRemove() throws VisADException, RemoteException {\n rangeRings = null;\n super.doRemove();\n }", "public void releaseCommunicationChannel()\r\n\t\t\tthrows PersistenceMechanismException {\n\t\t\r\n\t}", "public void disconnected(String reason) {}", "public void releaseAllMessagesOfSlotFromTracking(Slot slot) {\n //remove all actual msgData objects\n if(log.isDebugEnabled()) {\n log.debug(\"Releasing tracking of messages for slot \" + slot.toString());\n }\n ConcurrentHashMap<Long, MsgData> messagesOfSlot = messageBufferingTracker.remove(slot);\n for (Long messageIdOfSlot : messagesOfSlot.keySet()) {\n if(checkIfReadyToRemoveFromTracking(messageIdOfSlot)) {\n if(log.isDebugEnabled()) {\n log.debug(\"removing tracking object from memory id= \" + messageIdOfSlot);\n }\n msgId2MsgData.remove(messageIdOfSlot);\n }\n }\n }", "public void deleteNetWS() {\r\n/* 142 */ this._has_netWS = false;\r\n/* */ }", "public void disconnect() {\n\t\tdisconnect(null);\n\t}", "public void deal() {\n\n\t}", "public void deal() {\n\n\t}", "public void deal() {\n\n\t}", "protected void detachNotification(Txn txn) {\r\n }", "public DamageSpace planToRemoveGoodsShelfListWithSupplierSpace(DamageSpace damageSpace, String supplierSpaceId, Map<String,Object> options)throws Exception{\n\t\t\t\t//SmartList<ThreadLike> toRemoveThreadLikeList = threadLikeList.getToRemoveList();\n\t\t//the list will not be null here, empty, maybe\n\t\t//getThreadLikeDAO().removeThreadLikeList(toRemoveThreadLikeList,options);\n\t\t\n\t\tMultipleAccessKey key = new MultipleAccessKey();\n\t\tkey.put(GoodsShelf.DAMAGE_SPACE_PROPERTY, damageSpace.getId());\n\t\tkey.put(GoodsShelf.SUPPLIER_SPACE_PROPERTY, supplierSpaceId);\n\t\t\n\t\tSmartList<GoodsShelf> externalGoodsShelfList = getGoodsShelfDAO().\n\t\t\t\tfindGoodsShelfWithKey(key, options);\n\t\tif(externalGoodsShelfList == null){\n\t\t\treturn damageSpace;\n\t\t}\n\t\tif(externalGoodsShelfList.isEmpty()){\n\t\t\treturn damageSpace;\n\t\t}\n\t\t\n\t\tfor(GoodsShelf goodsShelfItem: externalGoodsShelfList){\n\t\t\tgoodsShelfItem.clearSupplierSpace();\n\t\t\tgoodsShelfItem.clearDamageSpace();\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tSmartList<GoodsShelf> goodsShelfList = damageSpace.getGoodsShelfList();\t\t\n\t\tgoodsShelfList.addAllToRemoveList(externalGoodsShelfList);\n\t\treturn damageSpace;\n\t}", "public final void disconnect() {\n synchronized (this.lock) {\n if (this.zzbur != null) {\n this.zzbur.disconnect();\n this.zzbur = null;\n Binder.flushPendingCommands();\n }\n }\n }", "void rejectNewOrders();", "public DamageSpace planToRemoveGoodsShelfListWithStorageSpace(DamageSpace damageSpace, String storageSpaceId, Map<String,Object> options)throws Exception{\n\t\t\t\t//SmartList<ThreadLike> toRemoveThreadLikeList = threadLikeList.getToRemoveList();\n\t\t//the list will not be null here, empty, maybe\n\t\t//getThreadLikeDAO().removeThreadLikeList(toRemoveThreadLikeList,options);\n\t\t\n\t\tMultipleAccessKey key = new MultipleAccessKey();\n\t\tkey.put(GoodsShelf.DAMAGE_SPACE_PROPERTY, damageSpace.getId());\n\t\tkey.put(GoodsShelf.STORAGE_SPACE_PROPERTY, storageSpaceId);\n\t\t\n\t\tSmartList<GoodsShelf> externalGoodsShelfList = getGoodsShelfDAO().\n\t\t\t\tfindGoodsShelfWithKey(key, options);\n\t\tif(externalGoodsShelfList == null){\n\t\t\treturn damageSpace;\n\t\t}\n\t\tif(externalGoodsShelfList.isEmpty()){\n\t\t\treturn damageSpace;\n\t\t}\n\t\t\n\t\tfor(GoodsShelf goodsShelfItem: externalGoodsShelfList){\n\t\t\tgoodsShelfItem.clearStorageSpace();\n\t\t\tgoodsShelfItem.clearDamageSpace();\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tSmartList<GoodsShelf> goodsShelfList = damageSpace.getGoodsShelfList();\t\t\n\t\tgoodsShelfList.addAllToRemoveList(externalGoodsShelfList);\n\t\treturn damageSpace;\n\t}", "public void disconnectedFrom(ServerDescriptor desc);", "ICard deal();", "public void disconnect();", "public void disconnect();", "public void disconnect();", "public void disconnect();", "public void free() {\r\n\r\n\t}", "public void release() {\n simConnection.doCommand(\"DynamicsSetGearValue DoneControlling\");\n }", "void disconnect(String reason);", "@Override\n\tpublic void disconnect() {\n\t\t\n\t}", "@Override\n\tpublic void disconnect() {\n\t\t\n\t}", "public String deleteProductionBlock(ProductionBlock pb);", "@Override\r\n\tpublic GlobalResult deleteEquip(String mspno) {\n\t\treturn null;\r\n\t}", "@Override\n protected void disconnect(SelectionKey key) {\n SocketChannel channel = (SocketChannel) key.channel();\n NetworkDestination destination = socketToDestination.get(channel);\n destinationToSocket.remove(destination);\n socketToDestination.remove(channel);\n socketToTracker.remove(channel);\n super.disconnect(key);\n }", "abstract void free();", "void drop();", "void drop();", "public void disconnect(int[] details)throws RemoteException{\n sd.getGames().get(details[0]).setExpired();\n }", "@Override\n\tpublic void disconnect() {\n\n\t}", "@Override\n\tpublic void disconnect() {\n\n\t}", "public void disconnect() {\n\t\tdisconnect(true);\n\t}", "public Reply\tdisconnect() throws ThingsException, InterruptedException ;", "public abstract void drop();", "public void disconnect() {\n \ttry {\n \t\tctx.unbindService(apiConnection);\n } catch(IllegalArgumentException e) {\n \t// Nothing to do\n }\n }", "public void disconnect()\n\t{\n\t\toriginal = null;\n\t\tsource = null;\n\t\tl10n = null;\n\t}", "public void onDisconnect(HeaderSet req, HeaderSet resp) {\r\n if(req == null)\r\n return;\r\n try {\r\n //clientBluetoothAddress = req.getHeader(HeaderSet.NAME).toString();\r\n Object reqType = req.getHeader(HeaderSets.REQUEST_TYPE);\r\n if(reqType == null)\r\n return;\r\n if (reqType.toString().equals(Types.REQUEST_DISCONNECT)) {\r\n parent.removeClient(clientBluetoothAddress);\r\n //AlertDisplayer.showAlert(\"Disconnected\", \"btADDR : \" +clientBluetoothAddress,parent.gui.getDisplay(),parent.gui.getList());\r\n }\r\n \r\n } catch (IOException e) {\r\n System.err.println(\"Exception in DataTransaction.onConnect()\");\r\n \r\n }\r\n }", "private void close() {\n\t\t\tassert this.sendLock.writeLock().isHeldByCurrentThread();\n\t\t\tthis.dead = true;\n\t\t\tStoreRequest s = writesByRows.remove(this.row);\n\t\t\t// This request was THE only request for its row\n\t\t\tassert this == s;\n\t\t\tlogger.fine(this.toString() + \" sent on \" + new Date(System.currentTimeMillis()) + \" and not replanned\");\n\t\t}", "public void discard();", "public void free();", "@Override public void clientDeclineIncomingGame(Rental rental)\r\n throws RemoteException, SQLException {\r\n gameListClientModel.clientDeclineIncomingGame(rental);\r\n }", "public void decommission() {\n\t\tlogger.debug(\"Decommission signal received. Shutting down...\");\n\t\tlogger.logServiceStop(servicePID);\n\t\tkeepRunning = false;\n\t}", "public void deleteSpace(){\n\t\t\t//TODO: need to pop-up a confirmation dialogue\n\t\t/*try {\n\t\t\tthis.muc.destroy(null, null);\n\t\t} catch (XMPPException e) {\n\t\t\tLog.d(TAG, \"Unable to destroy Space!\");\n\t\t}*/\n\t\t\tCollection<User> users = this.space.getAllParticipants().values();\n\t\t\tfor (User u : users) {\n\t\t\t\ttry {\n\t\t\t\t\tif(!u.getUsername().equals(MainApplication.user_primary.getUsername()))\n\t\t\t\t\t\tthis.space.getKickoutController().kickoutUser(u, Network.DEFAULT_KICKOUT);\n\t\t\t\t} catch (XMPPException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.space.getMUC().leave();\n\t\t\t//end experiment \n\t\t\t\n\t\t\tif(space.equals(Space.getMainSpace())){\n\t\t\t\tSpace.setMainSpace(null);\n\t\t\t}\n\t}", "public void delIncomingRelations();", "private void reclaimSpace(int space)\r\n/* 269: */ {\r\n/* 270:295 */ assert (space >= 0);\r\n/* 271:296 */ this.availableSharedCapacity.addAndGet(space);\r\n/* 272: */ }", "protected void onDestroy(){\n\t\tsuper.onDestroy();\n\t\tJSONObject msg = new JSONObject();\n\t\t\ttry {\n\t\t\t\tmsg.put(\"type\", \"DISCONNECT_REQUEST\");\n\t\t\t\tmsg.put(\"source\", name);\n\t\t\t\tnew Write(msg).execute(\"\");\n\t\t\t\t\n\t\t\t} catch (JSONException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t}", "@DISPID(1) //= 0x1. The runtime will prefer the VTID if present\r\n @VTID(7)\r\n int freeBufferSpace();", "public void removeClockFromStock(Clock removedClock);", "public abstract void disconnect() throws OrmException;", "public LWTRTPdu disConnectAcpt() throws IncorrectTransitionException;", "public void release(RemoteJmxConnectionBean old) {\r\n\t\ttry {\r\n\t\t\told.getConnector().close();\r\n\t\t\told.setActiveConnection(null);\r\n\t\t\told.setConnector(null);\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\tlog(e.getMessage(), IStatus.ERROR, e);\r\n\t\t}\r\n\t\t\r\n\t}", "public LWTRTPdu disConnectRsp() throws IncorrectTransitionException;", "public void reject() {\n rejectBus.add(applicantQueue.dequeue());\n }", "public void sendUnbindRequest(Pdu packet);", "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}", "protected void processDisconnect() {\n\t\tconnected.set(false);\n\t\tsenderChannel = null;\n\t}", "void stopGame() {\n leader.disconnect();\n opponent.disconnect();\n }", "public LWTRTPdu disConnectReq() throws IncorrectTransitionException;", "@Override\n\t\tpublic void disconnected() {\n\t\t\tsuper.disconnected();\n\t\t}", "@Override\n\tpublic void freeMe() {\n\n\t}", "private void releaseAndDeauthorize(final boolean deauthorizeNow, final int resultCode, boolean closeSocket)\n {\n synchronized(lock)\n {\n if (currentState == STATE_STOPPED)\n {\n if (log.isInfoEnabled())\n {\n log.info(\"ignoring releaseAndDeauthorize when already stopped\");\n }\n return;\n }\n //don't change state here\n }\n\n if (log.isInfoEnabled()) \n {\n log.info(\"releaseAndDeauthorize - now: \" + deauthorizeNow + \" - id: \" + connectionId + \", url: \" + url);\n }\n HNServerSessionManager.getInstance().release(this, closeSocket);\n if (deauthorizeNow)\n {\n HNServerSessionManager.getInstance().deauthorize(this, resultCode);\n }\n else\n {\n HNServerSessionManager.getInstance().scheduleDeauthorize(this, resultCode);\n }\n }" ]
[ "0.6761377", "0.60363823", "0.60266304", "0.59007233", "0.5891403", "0.5873755", "0.57351524", "0.5681745", "0.56657916", "0.56537867", "0.5605807", "0.5544868", "0.5497466", "0.5446421", "0.544024", "0.5412165", "0.5390541", "0.53673506", "0.535085", "0.53501326", "0.5347508", "0.5336831", "0.5284977", "0.5265069", "0.5251594", "0.52383626", "0.5232462", "0.523096", "0.5223489", "0.5199783", "0.51910967", "0.5181802", "0.5171732", "0.5137233", "0.5134725", "0.51346636", "0.5132519", "0.51280963", "0.5127836", "0.51151866", "0.51117903", "0.51110244", "0.5109333", "0.5109333", "0.5109333", "0.5108666", "0.5108172", "0.50990677", "0.5098158", "0.5093643", "0.5086938", "0.50846803", "0.508343", "0.508343", "0.508343", "0.508343", "0.5081092", "0.5074777", "0.50618833", "0.5051593", "0.5051593", "0.50505346", "0.5047278", "0.5044743", "0.50395614", "0.503932", "0.503932", "0.5039317", "0.5039085", "0.5039085", "0.50388175", "0.5037641", "0.50314", "0.5026375", "0.502537", "0.50250435", "0.50173545", "0.50165915", "0.5012113", "0.501175", "0.5009921", "0.500739", "0.5005278", "0.5002309", "0.49990523", "0.49988773", "0.4995274", "0.49947795", "0.49916923", "0.49877957", "0.49834347", "0.49801797", "0.498005", "0.49798778", "0.49726626", "0.49724784", "0.49716803", "0.4971034", "0.49683562", "0.4964075" ]
0.6733704
1
disconnect ReceivingSpace with smart_pallet in Goods
public ReceivingSpace planToRemoveGoodsListWithSmartPallet(ReceivingSpace receivingSpace, String smartPalletId, Map<String,Object> options)throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void disconnect() {\n\t\t\n\t}", "public void disconnect() {if(mEnable) mBS.disconnect();}", "public void disconnect() {}", "public static void disconnect() {\n if (AppSettings.bluetoothConnection != null) \n \tAppSettings.bluetoothConnection.stop();\n\t}", "public void destroy() throws BridgeException, BrokerException;", "public Reply\tdisconnect() throws ThingsException, InterruptedException ;", "public void disconnectFromAudio() {\n String json = new Gson().toJson(new TelevisionModel(TelevisionModel.Action.DISCONNECT));\n String a = sendMessage(json);\n TelevisionModel teleM = new Gson().fromJson(a, TelevisionModel.class);\n System.out.println(\"Client Received \" + json);\n\n if (teleM.getAction() == TelevisionModel.Action.DISCONNECT) {\n isDisconnecting = teleM.getValue();\n ui.updateArea(teleM.getMessage());\n };\n }", "public void removeCloseProxDevice() {\n\n // If ScanningService is active\n if (BLEScanningService.isAlive()) {\n\n Iterator it = closeProxBTDevices.entrySet().iterator();\n\n // For each entry in 'Close Proximity List'\n while(it.hasNext()) {\n\n Map.Entry<String, BTDevice> pair = (Map.Entry<String, BTDevice>) it.next();\n System.out.println(\"1. MAC ADDRESS: \" + pair.getKey() + \" \" + \"GET DISTANCE: \" + pair.getValue().getDistance());\n\n // If device has a distance over 2.0 OR putRSSI method was not called in 30 seconds\n if (pair.getValue().getDistance() > 2.0 || ((System.currentTimeMillis() - pair.getValue().getRssiTimeCalled()) > TIME_OUT) ) // 1 minute\n {\n System.out.println(\"2. MAC ADDRESS: \" + pair.getKey() + \" \" + \"GET DISTANCE: \" + pair.getValue().getDistance() + \"TIME BETWEEN CALLS:\" + (System.currentTimeMillis() - pair.getValue().getRssiTimeCalled()));\n\n // End timer, interaction is over\n pair.getValue().getIt().endTimer(System.currentTimeMillis());\n\n System.out.println(\"3. MAC ADDRESS:\" + pair.getKey() + \" \" + \"INTERACTION LENGTH:\" + pair.getValue().getIt().getInteractionLength());\n\n if (pair.getValue().getIt().getInteractionLength() >= MIN_INTERACTION_LENGTH) { // > 1 minutes\n System.out.println(\"4. N MAC ADDRESS:\" + pair.getKey() + \" \" + \"INTERACTION LENGTH:\" + pair.getValue().getIt().getInteractionLength());\n\n Intent mIntent = new Intent();\n mIntent.setClass(this, FeedbackActivity.class);\n mIntent.putExtra(\"second_person_name\", pair.getValue().getName());\n mIntent.putExtra(\"second_person_mac\", pair.getValue().getMACAddress());\n mIntent.putExtra(\"length_interaction\", pair.getValue().getIt().getInteractionLength());\n mIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\n sendNotification(pair.getValue(), mIntent);\n closeProxBTDevices.remove(pair.getKey());\n }\n\n }\n }\n }\n }", "public LWTRTPdu disConnectRsp() throws IncorrectTransitionException;", "public void disconnect() {\n\t\tdisconnect(true);\n\t}", "public void disconnect( ) {\n disconnect( \"\" );\n }", "public void disconnect() {\r\n\t\tsuper.disconnect();\r\n\t}", "protected void kill() {\n disconnect = true;\n }", "@Override\n\tpublic void disconnect() {\n\t\t\n\t}", "@Override\n\tpublic void disconnect() {\n\t\t\n\t}", "public void disconnect(){ \r\n if (matlabEng!=null){ \r\n matlabEng.engEvalString (id,\"bdclose ('all')\");\r\n matlabEng.engClose(id);\r\n matlabEng=null;\r\n id=-1; \r\n }\r\n }", "public void stopSending ();", "@Override\n\tpublic void disconnect() {\n\n\t}", "@Override\n\tpublic void disconnect() {\n\n\t}", "public void disconnect();", "public void disconnect();", "public void disconnect();", "public void disconnect();", "public void disconnect() {\n\t\tdisconnect(null);\n\t}", "private void destroy(DynamicConnectivity.Splay s) {\n }", "public LWTRTPdu disConnect() throws IncorrectTransitionException;", "void disconnect(String reason);", "public LWTRTPdu disConnectReq() throws IncorrectTransitionException;", "public void deactivateSCOP(){\r\n SCOP = false;\r\n }", "public void run() {\n active_pair = false;\n onDisconnect();\n }", "public LWTRTPdu disConnectAcpt() throws IncorrectTransitionException;", "protected void processDisconnect() {\n\t\tconnected.set(false);\n\t\tsenderChannel = null;\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}", "public void disconnectedFromHost();", "protected void processDisconnection(){}", "public void disconnect ()\n {\n org.omg.CORBA.portable.InputStream $in = null;\n try {\n org.omg.CORBA.portable.OutputStream $out = _request (\"disconnect\", true);\n $in = _invoke ($out);\n return;\n } catch (org.omg.CORBA.portable.ApplicationException $ex) {\n $in = $ex.getInputStream ();\n String _id = $ex.getId ();\n throw new org.omg.CORBA.MARSHAL (_id);\n } catch (org.omg.CORBA.portable.RemarshalException $rm) {\n disconnect ( );\n } finally {\n _releaseReply ($in);\n }\n }", "public void swigDirectorDisconnect() {\n this.swigCMemOwn = false;\n delete();\n }", "void dropPkt();", "@Override\n public void disconnect() {\n\n }", "public void disconnect()\n {\n isConnected = false;\n }", "public void disconnect() {\n \ttry {\n \t\tctx.unbindService(apiConnection);\n } catch(IllegalArgumentException e) {\n \t// Nothing to do\n }\n }", "public void disbandChannel()\r\n\t{\r\n\t\tif (_partys != null)\r\n\t\tfor (L2Party party : _partys)\r\n\t\t\tif (party != null)\r\n\t\t\t\tremoveParty(party);\r\n\t\t_partys = null;\r\n\t}", "public void stopRinging();", "void stopGame() {\n leader.disconnect();\n opponent.disconnect();\n }", "@Override\r\n\tpublic void disconnect();", "public final void disconnect() {\n synchronized (this.lock) {\n if (this.zzbur != null) {\n this.zzbur.disconnect();\n this.zzbur = null;\n Binder.flushPendingCommands();\n }\n }\n }", "public void disconnect() {\r\n\t\trunning = false;\r\n\t}", "void disconnect() throws CCommException, IllegalStateException;", "void disconnect();", "void disconnect();", "abstract protected void onDisconnection();", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:45.509 -0500\", hash_original_method = \"C231E33C68F8FEC3C6EDCF993CA1BD7A\", hash_generated_method = \"60AE8F641AB448C2AE7DFA7C6F9FF823\")\n \npublic void disconnected() {\n mSrcContext = null;\n mSrcHandler = null;\n mSrcMessenger = null;\n mDstMessenger = null;\n mConnection = null;\n }", "public void disconnected(String reason) {}", "final public void disconnect() {\n \n _input.removeInputConnection();\n _output.removeConnection(this);\n\n \n }", "public int disconnect() {\n Log.d(TAG, \"kill start\");\n \n // TODO: check if conditionals fixes bug\n // disconnecting when bluetooth not enabeled\n for( BluetoothConnectionThread bct: bluetoothConnectionThreads ){\n if (bct != null) {\n bct.kill();\n bct = null;\n }\n }\n \n if (this.router != null) {\n this.router.stop();\n this.router = null;\n }\n \n Log.d(TAG, \"kill success\");\n return Constants.SUCCESS;\n }", "ICard deal();", "public void sendStop(){\n if (isNetworkGame()){\n sender.println(\"stop\");\n sender.flush();\n }\n }", "@Override\n public void Disconnect() {\n bReConnect = true;\n }", "private void Disconnect() {\n //If the btSocket is busy\n if (btSocket!=null) {\n try {\n btSocket.close(); //close connection\n }\n catch (IOException e) {\n msg(\"Error\");\n }\n }\n finish(); //return to the first layout\n\n }", "public void disconnect() {\n try {\n Socket socket = new Socket(\"127.0.0.1\",33333);\n ObjectOutputStream outputStream = new ObjectOutputStream(socket.getOutputStream());\n clientMain.clientData[1] = \"no\";\n outputStream.writeObject(clientMain.clientData);\n\n clientMain.showConnectionPage();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n public void destroyConnectionWithYourTower() {\n }", "public void deleteNetWS() {\r\n/* 142 */ this._has_netWS = false;\r\n/* */ }", "@Override\n\tpublic boolean disconnect() {\n\t\treturn false;\n\t}", "@Override\n public abstract void disconnect();", "public abstract void disconnect() throws OrmException;", "public void disconnectConvo() {\n convo = null;\n setConnStatus(false);\n }", "public void deactivateCOP(){\r\n COP = false;\r\n }", "private void quit() {\n\t\tmSipSdk = myApplication.getPortSIPSDK();\n\n\t\tif (myApplication.isOnline()) {\n\t\t\tLine[] mLines = myApplication.getLines();\n\t\t\tfor (int i = Line.LINE_BASE; i < Line.MAX_LINES; ++i) {\n\t\t\t\tif (mLines[i].getRecvCallState()) {\n\t\t\t\t\tmSipSdk.rejectCall(mLines[i].getSessionId(), 486);\n\t\t\t\t} else if (mLines[i].getSessionState()) {\n\t\t\t\t\tmSipSdk.hangUp(mLines[i].getSessionId());\n\t\t\t\t}\n\t\t\t\tmLines[i].reset();\n\t\t\t}\n\t\t\tmyApplication.setOnlineState(false);\n\t\t\tmSipSdk.unRegisterServer();\n\t\t\tmSipSdk.DeleteCallManager();\n\t\t}\n\t}", "void disconnect() throws Exception;", "public void stopNetwork();", "private void disconnect() {\n System.out.println(String.format(\"連線中斷,%s\",\n clientSocket.getRemoteSocketAddress()));\n final int delete = thisPlayer.id - 1;\n player[delete] = null;\n empty.push(delete);\n }", "void cancelProduction();", "void onPairingDeleted(int errorCode);", "public void disconnect() {\n try {\n theCoorInt.unregisterForCallback(this);\n theCoorInt = null;\n }\n catch (Exception e) {\n simManagerLogger.logp(Level.SEVERE, \"SimulationManagerModel\", \n \"closeSimManager\", \"Exception in unregistering Simulation\" +\n \"Manager from the CAD Simulator.\", e);\n }\n }", "public void onNetDisConnect() {\n\n\t}", "public void disconnect()\n\t{\n\t\toriginal = null;\n\t\tsource = null;\n\t\tl10n = null;\n\t}", "void unbind(boolean shouldPlaceSpacer, boolean switchingStream);", "protected abstract void disconnect(UUID[] players, String reason, IntConsumer response);", "private void closeBrokers() {\n memberBroker.close();\naccountBroker.close();\n }", "public void doSendOff(final int node) {\n\t\tcheckAddress();\n\n\t\t// send an OSC message to free the node 1000\n\t\tfinal List<Object> args = new ArrayList<Object>(1);\n\t\targs.add(node);\n\t\tfinal OSCMessage msg = new OSCMessage(\"/n_free\", args);\n\n\t\t// try to use the send method of oscPort using the msg in nodeWidget\n\t\t// send an error message if this doesn't happen\n\t\ttry {\n\t\t\toscPort.send(msg);\n\t\t} catch (final Exception ex) {\n\t\t\tshowError(\"Couldn't send\");\n\t\t}\n\t}", "public static void triggerDisconnect() {\n sMockCar.disconnect();\n }", "protected void onDestroy(){\n\t\tsuper.onDestroy();\n\t\tJSONObject msg = new JSONObject();\n\t\t\ttry {\n\t\t\t\tmsg.put(\"type\", \"DISCONNECT_REQUEST\");\n\t\t\t\tmsg.put(\"source\", name);\n\t\t\t\tnew Write(msg).execute(\"\");\n\t\t\t\t\n\t\t\t} catch (JSONException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t}", "public void removeWire(IPWire pres);", "public void stop() {\n synchronized (car) {\n LOG.info(\"Invalidating APPLY Record\");\n try {\n cas.destroyChannel(dir);\n cas.destroyChannel(val);\n cas.destroyChannel(mess);\n cas.destroyChannel(omss);\n cas.destroyChannel(clid);\n\n car.stop();\n for (CadRecord cad : cads) {\n cad.stop();\n }\n } catch (Exception e) {\n LOG.warning(\"Exception while shutting down apply record \" + e.getMessage());\n }\n }\n }", "public void destroy(){\n\t\tIterator toolIterator = tools.iterator();\n\t\twhile(toolIterator.hasNext()){\n\t\t\tToolBridge tb = (ToolBridge) toolIterator.next();\n\t\t\ttb.terminate();\n\t\t}\n\n\t\tmultiplexingClientServer.stopRunning();\n\t}", "void disconnect() throws TransportException;", "public void stop() {\n\t\tthis.close(this.btcomm);\n\t}", "public void emergencyStop(){\r\n\t\tif (grblPort.isConnected()){\r\n\t\t\tgrblPort.sendDataLine(\"\\u0018\");\r\n\t\t}\r\n\t}", "public ReceivingSpace planToRemoveGoodsListWithSku(ReceivingSpace receivingSpace, String skuId, Map<String,Object> options)throws Exception;", "public void disconnect() {\n if (this.mIsConnected) {\n disconnectCallAppAbility();\n this.mRemote = null;\n this.mIsConnected = false;\n return;\n }\n HiLog.error(LOG_LABEL, \"Already disconnected, ignoring request.\", new Object[0]);\n }", "public void disconnect()\n\t{\n\t\t_active = false;\n\t\t_leader.setObjectHandler(null);\n\t\t_leader.close();\n\t\ttry\n\t\t{\n\t\t\t_pos.close();\n\t\t}\n\t\tcatch (IOException ioe)\n\t\t{\n\t\t\t// nothing to do here, doesn't matter\n\t\t}\n\t}", "public void decommission() {\n\t\tlogger.debug(\"Decommission signal received. Shutting down...\");\n\t\tlogger.logServiceStop(servicePID);\n\t\tkeepRunning = false;\n\t}", "public void disconnect() throws PersistenceMechanismException {\n\t\t\r\n\t}", "public void disconnect() throws OOBException {\n \t\tsession.disconnect();\n \t}", "public void mBTClose1() {\n if (oBTServer!=null)\n oBTServer.mCloseService2(); //Disconnect a relayed device\n mDisconnect();\n if (oBTadapter != null) {\n if (oBTadapter.isEnabled()) {\n if (isOpenedByMe) //170905 only if this application opened the bluetooth\n oBTadapter.disable();\n }\n }\n if (mReceiver1!=null)\n try { //Protection from crash bugfix 171013\n mContext.unregisterReceiver(mReceiver1);\n }\n catch (final Exception exception) {\n // The receiver was not registered. There is nothing to do in that case. Everything is fine.\n }\n }", "void bluetoothDeactivated();", "default void disconnect() { }", "public ReceivingSpace planToRemoveGoodsListWithRetailStore(ReceivingSpace receivingSpace, String retailStoreId, Map<String,Object> options)throws Exception;", "public void onDisconnect(HeaderSet req, HeaderSet resp) {\r\n if(req == null)\r\n return;\r\n try {\r\n //clientBluetoothAddress = req.getHeader(HeaderSet.NAME).toString();\r\n Object reqType = req.getHeader(HeaderSets.REQUEST_TYPE);\r\n if(reqType == null)\r\n return;\r\n if (reqType.toString().equals(Types.REQUEST_DISCONNECT)) {\r\n parent.removeClient(clientBluetoothAddress);\r\n //AlertDisplayer.showAlert(\"Disconnected\", \"btADDR : \" +clientBluetoothAddress,parent.gui.getDisplay(),parent.gui.getList());\r\n }\r\n \r\n } catch (IOException e) {\r\n System.err.println(\"Exception in DataTransaction.onConnect()\");\r\n \r\n }\r\n }", "private void disconnect() {\n\t\ttry { \n\t\t\tif(sInput != null) sInput.close();\n\t\t}\n\t\tcatch(Exception e) {}\n\t\ttry {\n\t\t\tif(sOutput != null) sOutput.close();\n\t\t}\n\t\tcatch(Exception e) {}\n try{\n\t\t\tif(socket != null) socket.close();\n\t\t}\n\t\tcatch(Exception e) {}\n\t\t\n\t\t// Notify the GUI\n \n\t\tif(cg != null)\n\t\t\tcg.connectionFailed();\n\t\t\t\n\t}" ]
[ "0.5970172", "0.5950782", "0.5916951", "0.5842361", "0.5810777", "0.57994336", "0.5791337", "0.5784836", "0.57726943", "0.5762603", "0.57320976", "0.573054", "0.5715429", "0.57113385", "0.57113385", "0.57013667", "0.5695067", "0.5691407", "0.5691407", "0.56864667", "0.56864667", "0.56864667", "0.56864667", "0.56534564", "0.5645803", "0.56339", "0.5632597", "0.56200933", "0.5602255", "0.55916625", "0.55887866", "0.5562215", "0.5554173", "0.5551022", "0.55288464", "0.5514326", "0.5513106", "0.5508933", "0.5506237", "0.55004746", "0.5491015", "0.54888016", "0.5486271", "0.5475664", "0.54684836", "0.54630625", "0.5454838", "0.5442984", "0.5431079", "0.5431079", "0.5426638", "0.54183465", "0.53940654", "0.5387387", "0.53826547", "0.5372345", "0.534915", "0.53459114", "0.53336906", "0.53316385", "0.532853", "0.5327503", "0.5319166", "0.5309664", "0.53092706", "0.52838224", "0.5283666", "0.52693045", "0.52668256", "0.5255748", "0.5243596", "0.52338666", "0.52329516", "0.5210649", "0.5206143", "0.5203823", "0.5203113", "0.5197912", "0.519729", "0.51913935", "0.5174356", "0.51638085", "0.51603264", "0.51600176", "0.51588833", "0.5158285", "0.5153622", "0.5151951", "0.5149073", "0.5148517", "0.5143368", "0.5141654", "0.5140759", "0.5136186", "0.5127329", "0.512349", "0.5121007", "0.51092833", "0.51062244", "0.5102999" ]
0.6679811
0
disconnect ReceivingSpace with shipping_space in Goods
public ReceivingSpace planToRemoveGoodsListWithShippingSpace(ReceivingSpace receivingSpace, String shippingSpaceId, Map<String,Object> options)throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ReceivingSpace planToRemoveGoodsListWithSmartPallet(ReceivingSpace receivingSpace, String smartPalletId, Map<String,Object> options)throws Exception;", "public ReceivingSpace planToRemoveGoodsListWithSku(ReceivingSpace receivingSpace, String skuId, Map<String,Object> options)throws Exception;", "public void stopSending ();", "public ReceivingSpace planToRemoveGoodsListWithRetailStore(ReceivingSpace receivingSpace, String retailStoreId, Map<String,Object> options)throws Exception;", "public ReceivingSpace planToRemoveGoodsListWithRetailStoreOrder(ReceivingSpace receivingSpace, String retailStoreOrderId, Map<String,Object> options)throws Exception;", "public ReceivingSpace planToRemoveGoodsListWithBizOrder(ReceivingSpace receivingSpace, String bizOrderId, Map<String,Object> options)throws Exception;", "void exitCurrentStationCard();", "public void deleteNetWS() {\r\n/* 142 */ this._has_netWS = false;\r\n/* */ }", "public void deleteSpaceship(Spaceship spaceship) throws SQLException, ExceptionsDatabase {\r\n connection();\r\n String updateRunway = \"update runway set status='FREE' where spaceship='\" + spaceship.getName() + \"'\";\r\n String delete = \"delete from spaceship where name='\" + spaceship.getName() + \"'\";\r\n Statement st = conexion.createStatement();\r\n try {\r\n conexion.setAutoCommit(false);\r\n st.executeUpdate(updateRunway);\r\n st.executeUpdate(delete);\r\n conexion.commit();\r\n } catch (SQLException ex) {\r\n conexion.rollback();\r\n throw new ExceptionsDatabase(ExceptionsDatabase.MULTIPLE_ACCTION_FAILED);\r\n } finally {\r\n st.close();\r\n conexion.setAutoCommit(true);\r\n }\r\n disconnect();\r\n }", "public ReceivingSpace planToRemoveGoodsListWithGoodsAllocation(ReceivingSpace receivingSpace, String goodsAllocationId, Map<String,Object> options)throws Exception;", "protected void processDisconnection(){}", "public void removeCloseProxDevice() {\n\n // If ScanningService is active\n if (BLEScanningService.isAlive()) {\n\n Iterator it = closeProxBTDevices.entrySet().iterator();\n\n // For each entry in 'Close Proximity List'\n while(it.hasNext()) {\n\n Map.Entry<String, BTDevice> pair = (Map.Entry<String, BTDevice>) it.next();\n System.out.println(\"1. MAC ADDRESS: \" + pair.getKey() + \" \" + \"GET DISTANCE: \" + pair.getValue().getDistance());\n\n // If device has a distance over 2.0 OR putRSSI method was not called in 30 seconds\n if (pair.getValue().getDistance() > 2.0 || ((System.currentTimeMillis() - pair.getValue().getRssiTimeCalled()) > TIME_OUT) ) // 1 minute\n {\n System.out.println(\"2. MAC ADDRESS: \" + pair.getKey() + \" \" + \"GET DISTANCE: \" + pair.getValue().getDistance() + \"TIME BETWEEN CALLS:\" + (System.currentTimeMillis() - pair.getValue().getRssiTimeCalled()));\n\n // End timer, interaction is over\n pair.getValue().getIt().endTimer(System.currentTimeMillis());\n\n System.out.println(\"3. MAC ADDRESS:\" + pair.getKey() + \" \" + \"INTERACTION LENGTH:\" + pair.getValue().getIt().getInteractionLength());\n\n if (pair.getValue().getIt().getInteractionLength() >= MIN_INTERACTION_LENGTH) { // > 1 minutes\n System.out.println(\"4. N MAC ADDRESS:\" + pair.getKey() + \" \" + \"INTERACTION LENGTH:\" + pair.getValue().getIt().getInteractionLength());\n\n Intent mIntent = new Intent();\n mIntent.setClass(this, FeedbackActivity.class);\n mIntent.putExtra(\"second_person_name\", pair.getValue().getName());\n mIntent.putExtra(\"second_person_mac\", pair.getValue().getMACAddress());\n mIntent.putExtra(\"length_interaction\", pair.getValue().getIt().getInteractionLength());\n mIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\n sendNotification(pair.getValue(), mIntent);\n closeProxBTDevices.remove(pair.getKey());\n }\n\n }\n }\n }\n }", "public void disbandChannel()\r\n\t{\r\n\t\tif (_partys != null)\r\n\t\tfor (L2Party party : _partys)\r\n\t\t\tif (party != null)\r\n\t\t\t\tremoveParty(party);\r\n\t\t_partys = null;\r\n\t}", "void dropPkt();", "public void removeShipment(){\n String message = \"Choose one of the shipment to remove\";\n if (printData.checkAndPrintShipment(message,data.getBranchEmployee(ID).getBranchID())){\n subChoice = GetChoiceFromUser.getSubChoice(data.numberOfShipment());\n if (subChoice!=0){\n data.getBranch(data.getShipment(subChoice-1).getBranchID()).removeShipment(data.getShipment(subChoice-1));\n data.removeShipment(data.getShipment(subChoice-1),data.getShipment(subChoice-1).getReceiver());\n System.out.println(\"Your Shipment has removed Successfully!\");\n }\n }\n }", "public void deactivateSCOP(){\r\n SCOP = false;\r\n }", "public boolean closeDelivery();", "public ReceivingSpace planToRemoveGoodsListWithTransportTask(ReceivingSpace receivingSpace, String transportTaskId, Map<String,Object> options)throws Exception;", "public void sendStop(){\n if (isNetworkGame()){\n sender.println(\"stop\");\n sender.flush();\n }\n }", "protected void processDisconnect() {\n\t\tconnected.set(false);\n\t\tsenderChannel = null;\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 stopNetwork();", "public void leaveTheBus(int pid, int seat);", "public void stopReceiving() {\n\t\tcallerContext.unregisterReceiver(this);\n\t}", "public void stopInbound();", "abstract protected void onDisconnection();", "public final void disconnect() {\n synchronized (this.lock) {\n if (this.zzbur != null) {\n this.zzbur.disconnect();\n this.zzbur = null;\n Binder.flushPendingCommands();\n }\n }\n }", "public void decommission() {\n\t\tlogger.debug(\"Decommission signal received. Shutting down...\");\n\t\tlogger.logServiceStop(servicePID);\n\t\tkeepRunning = false;\n\t}", "public void moveSpaceShipDown() {\n\t\tSpaceship sp = getTheSpaceship();\n\t\tsp.moveDown();\n\t}", "@Override\n public void onBillingServiceDisconnected() {\n }", "public void doSendOff(final int node) {\n\t\tcheckAddress();\n\n\t\t// send an OSC message to free the node 1000\n\t\tfinal List<Object> args = new ArrayList<Object>(1);\n\t\targs.add(node);\n\t\tfinal OSCMessage msg = new OSCMessage(\"/n_free\", args);\n\n\t\t// try to use the send method of oscPort using the msg in nodeWidget\n\t\t// send an error message if this doesn't happen\n\t\ttry {\n\t\t\toscPort.send(msg);\n\t\t} catch (final Exception ex) {\n\t\t\tshowError(\"Couldn't send\");\n\t\t}\n\t}", "public void onDisconnect(HeaderSet req, HeaderSet resp) {\r\n if(req == null)\r\n return;\r\n try {\r\n //clientBluetoothAddress = req.getHeader(HeaderSet.NAME).toString();\r\n Object reqType = req.getHeader(HeaderSets.REQUEST_TYPE);\r\n if(reqType == null)\r\n return;\r\n if (reqType.toString().equals(Types.REQUEST_DISCONNECT)) {\r\n parent.removeClient(clientBluetoothAddress);\r\n //AlertDisplayer.showAlert(\"Disconnected\", \"btADDR : \" +clientBluetoothAddress,parent.gui.getDisplay(),parent.gui.getList());\r\n }\r\n \r\n } catch (IOException e) {\r\n System.err.println(\"Exception in DataTransaction.onConnect()\");\r\n \r\n }\r\n }", "public void removeShippings( EAIMMCtxtIfc theCtxt, com.dosmil_e.mall.core.ifc.MallShippingIfc theShippings) throws EAIException;", "public static void disconnect() {\n if (AppSettings.bluetoothConnection != null) \n \tAppSettings.bluetoothConnection.stop();\n\t}", "void unsetStation();", "public void disconnect() {if(mEnable) mBS.disconnect();}", "public void disconnect() {\n\t\t\n\t}", "public void disconnectFromAudio() {\n String json = new Gson().toJson(new TelevisionModel(TelevisionModel.Action.DISCONNECT));\n String a = sendMessage(json);\n TelevisionModel teleM = new Gson().fromJson(a, TelevisionModel.class);\n System.out.println(\"Client Received \" + json);\n\n if (teleM.getAction() == TelevisionModel.Action.DISCONNECT) {\n isDisconnecting = teleM.getValue();\n ui.updateArea(teleM.getMessage());\n };\n }", "void cancelProduction();", "private void quit() {\n\t\tmSipSdk = myApplication.getPortSIPSDK();\n\n\t\tif (myApplication.isOnline()) {\n\t\t\tLine[] mLines = myApplication.getLines();\n\t\t\tfor (int i = Line.LINE_BASE; i < Line.MAX_LINES; ++i) {\n\t\t\t\tif (mLines[i].getRecvCallState()) {\n\t\t\t\t\tmSipSdk.rejectCall(mLines[i].getSessionId(), 486);\n\t\t\t\t} else if (mLines[i].getSessionState()) {\n\t\t\t\t\tmSipSdk.hangUp(mLines[i].getSessionId());\n\t\t\t\t}\n\t\t\t\tmLines[i].reset();\n\t\t\t}\n\t\t\tmyApplication.setOnlineState(false);\n\t\t\tmSipSdk.unRegisterServer();\n\t\t\tmSipSdk.DeleteCallManager();\n\t\t}\n\t}", "@Override\n\tpublic void hideGuaranteedDeliverySection() {\n\n\t}", "public void disconnect() {\r\n\t\tsuper.disconnect();\r\n\t}", "private void destroy(DynamicConnectivity.Splay s) {\n }", "@Override\n public void stop() {\n setDebrisPusher(DebrisPusherDirection.Down);\n }", "private void clearS2Rsp() {\n if (rspCase_ == 23) {\n rspCase_ = 0;\n rsp_ = null;\n }\n }", "public void sendUnbindRequest(Pdu packet);", "public void swigDirectorDisconnect() {\n this.swigCMemOwn = false;\n delete();\n }", "public LWTRTPdu disConnectRsp() throws IncorrectTransitionException;", "private void freeAgent() {\n }", "public void disconnect() {}", "protected void kill() {\n disconnect = true;\n }", "public void stopRinging();", "void stopGame() {\n leader.disconnect();\n opponent.disconnect();\n }", "public void disconnect() {\n\t\tdisconnect(null);\n\t}", "public void disconnect( ) {\n disconnect( \"\" );\n }", "public void disconnect(){ \r\n if (matlabEng!=null){ \r\n matlabEng.engEvalString (id,\"bdclose ('all')\");\r\n matlabEng.engClose(id);\r\n matlabEng=null;\r\n id=-1; \r\n }\r\n }", "protected void onDestroy(){\n\t\tsuper.onDestroy();\n\t\tJSONObject msg = new JSONObject();\n\t\t\ttry {\n\t\t\t\tmsg.put(\"type\", \"DISCONNECT_REQUEST\");\n\t\t\t\tmsg.put(\"source\", name);\n\t\t\t\tnew Write(msg).execute(\"\");\n\t\t\t\t\n\t\t\t} catch (JSONException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t}", "public void unbindService(ServiceConnection connection);", "public void disconnect() {\n\t\tdisconnect(true);\n\t}", "private void stopPlaceingShips() {\n\t\tSystem.out.println(\"[DEBUG] Schiffe setzen [ENDE]\");\n\t\tthis.setzeSchiffe = false;\n\t}", "private void Disconnect() {\n //If the btSocket is busy\n if (btSocket!=null) {\n try {\n btSocket.close(); //close connection\n }\n catch (IOException e) {\n msg(\"Error\");\n }\n }\n finish(); //return to the first layout\n\n }", "public abstract boolean freeSlot(LocationDto location ,SlotDto slot);", "@Override\n protected void disconnect(SelectionKey key) {\n SocketChannel channel = (SocketChannel) key.channel();\n NetworkDestination destination = socketToDestination.get(channel);\n destinationToSocket.remove(destination);\n socketToDestination.remove(channel);\n socketToTracker.remove(channel);\n super.disconnect(key);\n }", "@Override\r\n public boolean disconnectWifi() {\r\n nwmDevice.getDevice().Disconnect();\r\n return true;\r\n }", "public LWTRTPdu disConnectReq() throws IncorrectTransitionException;", "public void deleteSpace(){\n\t\t\t//TODO: need to pop-up a confirmation dialogue\n\t\t/*try {\n\t\t\tthis.muc.destroy(null, null);\n\t\t} catch (XMPPException e) {\n\t\t\tLog.d(TAG, \"Unable to destroy Space!\");\n\t\t}*/\n\t\t\tCollection<User> users = this.space.getAllParticipants().values();\n\t\t\tfor (User u : users) {\n\t\t\t\ttry {\n\t\t\t\t\tif(!u.getUsername().equals(MainApplication.user_primary.getUsername()))\n\t\t\t\t\t\tthis.space.getKickoutController().kickoutUser(u, Network.DEFAULT_KICKOUT);\n\t\t\t\t} catch (XMPPException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.space.getMUC().leave();\n\t\t\t//end experiment \n\t\t\t\n\t\t\tif(space.equals(Space.getMainSpace())){\n\t\t\t\tSpace.setMainSpace(null);\n\t\t\t}\n\t}", "private synchronized void stop()\n\t{\n\t\ttry\n\t\t{\n\t\t\tunregisterReceiver( mConnectivityReceiver );\n\t\t}\n\t\tcatch ( IllegalArgumentException e )\n\t\t{\n\t\t\te.printStackTrace();\n\n\t\t} // try/catch\n\n\t}", "void disconnect(String reason);", "void unsetExchange();", "@Override\r\n\tpublic void makeDeliveryFree() {\n\t\t\r\n\t}", "public void removeReceived() {\n\t if (LogWriter.needsLogging(LogWriter.TRACE_DEBUG))\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"removeReceived()\" );\n Via via=(Via)sipHeader;\n via.removeParameter(Via.RECEIVED);\n }", "void unsetCapitalPayed();", "private void stopSnmpAdaptor() {\n if (!agentConfig.isSnmpEnabled()) {\n return;\n }\n\n // stop the SnmpAdaptor...\n try {\n getMBeanServer().invoke(getSnmpAdaptorName(), \"unbind\", new Object[0], new String[0]);\n } catch (Exception e) {\n logger.warn(e.getMessage(), e);\n }\n\n try {\n MBeanUtils.unregisterMBean(getSnmpAdaptorName());\n } catch (MalformedObjectNameException e) {\n logger.warn(e.getMessage(), e);\n }\n }", "public void disconnectedFromHost();", "void unbind(boolean shouldPlaceSpacer, boolean switchingStream);", "public void cancelCard() {}", "public void disconnect();", "public void disconnect();", "public void disconnect();", "public void disconnect();", "public void shutdownNetwork() {\r\n networkPlayer.stop();\r\n }", "@Override\n public void exit() {\n player.steeringBehaviorsManager.removeBehavior(ballPursuit);\n }", "@Override public void clientDeclineIncomingGame(Rental rental)\r\n throws RemoteException, SQLException {\r\n gameListClientModel.clientDeclineIncomingGame(rental);\r\n }", "private void clearS2InfoRsp() {\n if (rspCase_ == 25) {\n rspCase_ = 0;\n rsp_ = null;\n }\n }", "public int disconnect() {\n Log.d(TAG, \"kill start\");\n \n // TODO: check if conditionals fixes bug\n // disconnecting when bluetooth not enabeled\n for( BluetoothConnectionThread bct: bluetoothConnectionThreads ){\n if (bct != null) {\n bct.kill();\n bct = null;\n }\n }\n \n if (this.router != null) {\n this.router.stop();\n this.router = null;\n }\n \n Log.d(TAG, \"kill success\");\n return Constants.SUCCESS;\n }", "@Override\n\tpublic void disconnect() {\n\t\t\n\t}", "@Override\n\tpublic void disconnect() {\n\t\t\n\t}", "@Override\n\tpublic void disconnect() {\n\n\t}", "@Override\n\tpublic void disconnect() {\n\n\t}", "private void clearS2BRelay() {\n if (rspCase_ == 24) {\n rspCase_ = 0;\n rsp_ = null;\n }\n }", "public void disconnect(int[] details)throws RemoteException{\n sd.getGames().get(details[0]).setExpired();\n }", "public void leave() throws InterruptedException {\n inship.clear();\n // your code here\n\n }", "void endNegotiation();", "void rejectNewOrders();", "public void disconnect ()\n {\n org.omg.CORBA.portable.InputStream $in = null;\n try {\n org.omg.CORBA.portable.OutputStream $out = _request (\"disconnect\", true);\n $in = _invoke ($out);\n return;\n } catch (org.omg.CORBA.portable.ApplicationException $ex) {\n $in = $ex.getInputStream ();\n String _id = $ex.getId ();\n throw new org.omg.CORBA.MARSHAL (_id);\n } catch (org.omg.CORBA.portable.RemarshalException $rm) {\n disconnect ( );\n } finally {\n _releaseReply ($in);\n }\n }", "public void stopSending() {\n shouldSend = false;\n connection.getChannel()\n .getApi()\n .getThreadPool()\n .removeAndShutdownSingleThreadExecutorService(threadName);\n }", "public void deactivateCOP(){\r\n COP = false;\r\n }", "ICard deal();", "public void shutdown()\n {\n synchronized( m_state )\n {\n if( !isStoppable() ) return;\n\n setState( STOPPING );\n\n try\n {\n setState( DECOMMISSIONING );\n m_model.decommission();\n }\n catch( Throwable e )\n {\n if( getLogger().isWarnEnabled() )\n {\n final String error =\n \"Ignoring block decommissioning error.\";\n getLogger().warn( error, e );\n }\n }\n\n /*\n try\n {\n setState( DISSASSEMBLY );\n getLogger().info( \"dissassembly phase\" );\n m_model.disassemble();\n }\n catch( Throwable e )\n {\n if( getLogger().isWarnEnabled() )\n {\n final String error =\n \"Ignoring application dissassembly error.\";\n getLogger().warn( error, e );\n }\n }\n */\n setState( STOPPED );\n }\n }", "private void unbindQueue2Exchange(RoutingContext routingContext) {\n LOGGER.debug(\"Info: unbindQueue2Exchange method started;\");\n JsonObject requestJson = routingContext.getBodyAsJson();\n HttpServerRequest request = routingContext.request();\n HttpServerResponse response = routingContext.response();\n String instanceID = request.getHeader(HEADER_HOST);\n JsonObject authenticationInfo = new JsonObject();\n authenticationInfo.put(API_ENDPOINT, \"/management/unbind\");\n requestJson.put(JSON_INSTANCEID, instanceID);\n if (request.headers().contains(HEADER_TOKEN)) {\n authenticationInfo.put(HEADER_TOKEN, request.getHeader(HEADER_TOKEN));\n authenticator.tokenInterospect(requestJson.copy(), authenticationInfo, authHandler -> {\n if (authHandler.succeeded()) {\n Future<JsonObject> brokerResult =\n managementApi.unbindQueue2Exchange(requestJson, databroker);\n brokerResult.onComplete(brokerResultHandler -> {\n if (brokerResultHandler.succeeded()) {\n LOGGER.info(\"Success: Unbinding queue to exchange\");\n handleSuccessResponse(response, ResponseType.Created.getCode(),\n brokerResultHandler.result().toString());\n } else if (brokerResultHandler.failed()) {\n LOGGER.error(\"Fail: Bad request;\" + brokerResultHandler.cause().getMessage());\n processBackendResponse(response, brokerResultHandler.cause().getMessage());\n }\n });\n } else if (authHandler.failed()) {\n LOGGER.error(\"Fail: Unauthorized;\" + authHandler.cause().getMessage());\n handleResponse(response, ResponseType.AuthenticationFailure);\n }\n });\n } else {\n LOGGER.error(\"Fail: Unauthorized\");\n handleResponse(response, ResponseType.AuthenticationFailure);\n }\n }" ]
[ "0.63316184", "0.6115588", "0.6033146", "0.60053235", "0.59036803", "0.5857119", "0.57226944", "0.5687951", "0.5661275", "0.56472474", "0.56469697", "0.56343484", "0.5590241", "0.55540705", "0.55240667", "0.5483832", "0.5465822", "0.5460144", "0.54361165", "0.5435784", "0.5435405", "0.542921", "0.5424484", "0.54241294", "0.5417195", "0.5403342", "0.5395562", "0.5391794", "0.535805", "0.5323021", "0.5320519", "0.53161097", "0.5314577", "0.53129214", "0.530963", "0.53093433", "0.5306543", "0.5298371", "0.5296073", "0.52918357", "0.52810174", "0.52795583", "0.5273533", "0.52701813", "0.52391464", "0.5233136", "0.5229851", "0.5219577", "0.521634", "0.5213644", "0.5209923", "0.5188463", "0.5182907", "0.51821595", "0.5170907", "0.51686895", "0.51567376", "0.5133405", "0.51292825", "0.5118455", "0.5106836", "0.5102044", "0.5102016", "0.5099065", "0.50956964", "0.509415", "0.50872785", "0.5087242", "0.508133", "0.50810736", "0.50799716", "0.5076879", "0.5076072", "0.50739694", "0.5073902", "0.5072709", "0.5067918", "0.5067918", "0.5067918", "0.5067918", "0.50678515", "0.50658274", "0.50643426", "0.50613886", "0.5056172", "0.50545615", "0.50545615", "0.5051039", "0.5051039", "0.5048602", "0.5045231", "0.5043073", "0.50351506", "0.50322074", "0.5029014", "0.50229126", "0.50172114", "0.5013361", "0.5011722", "0.50093377" ]
0.6824888
0
disconnect ReceivingSpace with transport_task in Goods
public ReceivingSpace planToRemoveGoodsListWithTransportTask(ReceivingSpace receivingSpace, String transportTaskId, Map<String,Object> options)throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void disconnect() throws TransportException;", "public void stopSending ();", "protected void processDisconnection(){}", "public void stopNetwork();", "public int disconnect() {\n Log.d(TAG, \"kill start\");\n \n // TODO: check if conditionals fixes bug\n // disconnecting when bluetooth not enabeled\n for( BluetoothConnectionThread bct: bluetoothConnectionThreads ){\n if (bct != null) {\n bct.kill();\n bct = null;\n }\n }\n \n if (this.router != null) {\n this.router.stop();\n this.router = null;\n }\n \n Log.d(TAG, \"kill success\");\n return Constants.SUCCESS;\n }", "public void disconnectedFromHost();", "public void stopSending() {\n shouldSend = false;\n connection.getChannel()\n .getApi()\n .getThreadPool()\n .removeAndShutdownSingleThreadExecutorService(threadName);\n }", "public void disconnect() {}", "public LWTRTPdu disConnectRsp() throws IncorrectTransitionException;", "@Override\n public void disconnected(final OfficeConnectionEvent event) {\n\n // Make the task executor unavailable.\n taskExecutor.setAvailable(false);\n\n // When it comes from an expected behavior (we have put\n // the field to true before calling a function), just reset\n // the disconnectExpected value to false. When we didn't expect\n // the disconnection, we must restart the office process, which\n // will cancel any task that may be running.\n if (!disconnectExpected.compareAndSet(true, false)) {\n\n // Here, we didn't expect this disconnection. We must restart\n // the office process, canceling any task that may be running.\n LOGGER.warn(\"Connection lost unexpectedly; attempting restart\");\n if (currentFuture != null) {\n currentFuture.cancel(true);\n }\n officeProcessManager.restartDueToLostConnection();\n }\n }", "public void disconnect() {\r\n\t\trunning = false;\r\n\t}", "public Reply\tdisconnect() throws ThingsException, InterruptedException ;", "public void stopInbound();", "private TaskResourceRep finishDeactivateTask(BlockConsistencyGroup consistencyGroup, String task) {\n URI id = consistencyGroup.getId();\n Operation op = new Operation();\n op.ready();\n op.setProgress(100);\n op.setResourceType(ResourceOperationTypeEnum.DELETE_CONSISTENCY_GROUP);\n Operation status = _dbClient.createTaskOpStatus(BlockConsistencyGroup.class, id, task, op);\n return toTask(consistencyGroup, task, status);\n }", "public void stop()\n {\n if (task == -1) {\n return;\n }\n\n library.getPlugin().getServer().getScheduler().cancelTask(task);\n task = -1;\n }", "public CompletionStage<Void> disconnect() {\n\t\treturn this.finConnection.sendMessage(\"disconnect-from-channel\", FinBeanUtils.toJsonObject(this.routingInfo)).thenAccept(ack->{\n\t\t\tif (!ack.isSuccess()) {\n\t\t\t\tthrow new RuntimeException(\"error disconnecting channel client, reason: \" + ack.getReason());\n\t\t\t}\n\t\t});\n\t}", "public final void disconnect() {\n synchronized (this.lock) {\n if (this.zzbur != null) {\n this.zzbur.disconnect();\n this.zzbur = null;\n Binder.flushPendingCommands();\n }\n }\n }", "abstract protected void onDisconnection();", "void endTask();", "public void disconnect() {\n\t\t\n\t}", "public LWTRTPdu disConnectReq() throws IncorrectTransitionException;", "private void disconnect() {\n activityRunning = false;\n MRTClient.getInstance().doHangup();\n MRTClient.getInstance().removeClientListener(this);\n\n finish();\n }", "public void disconnect() {\n\t\tdisconnect(null);\n\t}", "protected void kill() {\n disconnect = true;\n }", "void dropPkt();", "public void stopRinging();", "protected void processDisconnect() {\n\t\tconnected.set(false);\n\t\tsenderChannel = null;\n\t}", "public void disconnect() {\r\n\t\tsuper.disconnect();\r\n\t}", "void stopReportingTask();", "public LWTRTPdu disConnect() throws IncorrectTransitionException;", "public void cancelTask(){\n\t\tif(main.teleporting.containsKey(teleporter.getName())){\n\t\t\tmain.teleporting.remove(teleporter.getName());\n\t\t}\n\t\tthis.cancel();\n\t}", "@Override\n\tpublic void stop() {\n\t\tstopTask();\n\t\tmPlaybillPath = null;\n\t\tmResPlaybill = null;\n\t}", "public void disconnect();", "public void disconnect();", "public void disconnect();", "public void disconnect();", "protected void teardownTask(Task task) {\n }", "@Override\n\tpublic void disconnect() {\n\n\t}", "@Override\n\tpublic void disconnect() {\n\n\t}", "void removeSubTask(AuctionTask task);", "public void disconnect() {\n\t\tdisconnect(true);\n\t}", "public static void disconnect() {\n \t\tconnPool.stop();\n \t}", "public void sendStop(){\n if (isNetworkGame()){\n sender.println(\"stop\");\n sender.flush();\n }\n }", "public LWTRTPdu disConnectAcpt() throws IncorrectTransitionException;", "void stopTask( org.openxdata.server.admin.model.TaskDef task, AsyncCallback<java.lang.Boolean> callback );", "protected void stopTimeTask() {\n\t\tif (chatAsyncTask!=null) {\n\t\t\tchatAsyncTask.cancel(true);\n\t\t}\n\t\t\n\t\tif (liveAsyncTask!=null) {\n\t\t\tliveAsyncTask.cancel(true);\n\t\t}\n\t\t\n\t\tif (timerTask!=null) {\n\t\t\ttimerTask.cancel();\n\t\t\ttimerTask = null;\n\t\t}\n\t\t\n\t\tif (timer!=null) {\n\t\t\ttimer.cancel();\n\t\t\ttimer = null;\n\t\t}\n\t\t\n\t\t\n\t}", "@Override\n\tpublic void disconnect() {\n\t\t\n\t}", "@Override\n\tpublic void disconnect() {\n\t\t\n\t}", "void canceledPendingNodeStop();", "@Override\n public void disconnect() {\n\n }", "protected final void disconnect() {\n\t\trunning = false;\n\t\ttry {\n\t\t\tif (out != null)\n\t\t\t\tout.close();\n\t\t\tif (in != null)\n\t\t\t\tin.close();\n\t\t\tsocket.close();\n\t\t} catch (IOException e) {e.printStackTrace();}\n\t}", "public void stopTask() {\r\n\t\tquit = true;\r\n\t}", "@Override\n\tpublic int exec_task (PendingTask task) {\n\t\treturn exec_cleanup_pdl_stop (task);\n\t}", "public void destroy() throws BridgeException, BrokerException;", "@Override\r\n\tpublic void disconnect();", "public void disconnect() {if(mEnable) mBS.disconnect();}", "@Override\n public void stop() {\n Thread t = new Thread(server::stopOrderProcess);\n t.setName(\"Server close task\");\n t.start();\n serverFrame.enableControls(false, false);\n enableControls(false, false);\n }", "public void stop() {\n\t\tthis.close(this.btcomm);\n\t}", "protected void stopWork() {\n mAllowedToBind = false;\n\n }", "public void disconnect() {\n \ttry {\n \t\tctx.unbindService(apiConnection);\n } catch(IllegalArgumentException e) {\n \t// Nothing to do\n }\n }", "public void disconnect() {\n/* 244 */ this.delegate.disconnect();\n/* */ }", "public void disconnect( ) {\n disconnect( \"\" );\n }", "public void decommission() {\n\t\tlogger.debug(\"Decommission signal received. Shutting down...\");\n\t\tlogger.logServiceStop(servicePID);\n\t\tkeepRunning = false;\n\t}", "private void destroy(DynamicConnectivity.Splay s) {\n }", "public abstract void stopMsg();", "void disconnect(String reason);", "public void interruptTask() {\n }", "public void interruptTask() {\n }", "public static void disconnect()\n\t{\n\t\tTASK_LIST.add(ArduinoComms::disconnectInternal);\n\t\tTASK_LIST.add(ArduinoComms::notifyDisconnected);\n\t\t//TODO if waiting at socket.connect from connect() notify the tread\n\t}", "private void Disconnect() {\n //If the btSocket is busy\n if (btSocket!=null) {\n try {\n btSocket.close(); //close connection\n }\n catch (IOException e) {\n msg(\"Error\");\n }\n }\n finish(); //return to the first layout\n\n }", "public void cancel() {\n request.disconnect();\n }", "public ReceivingSpace planToRemoveGoodsListWithSmartPallet(ReceivingSpace receivingSpace, String smartPalletId, Map<String,Object> options)throws Exception;", "void stopHelloSender();", "public void stopTask()\n {\n viewer.stopViewer(); \n }", "final public void disconnect() {\n \n _input.removeInputConnection();\n _output.removeConnection(this);\n\n \n }", "@Override\n public abstract void disconnect();", "void disconnect() throws CCommException, IllegalStateException;", "@Override\n protected void onDestroy() {\n stopRepTask();\n LocalBroadcastManager.getInstance(this).unregisterReceiver(DayStartedMessageRec);\n LocalBroadcastManager.getInstance(this).unregisterReceiver(DayEndedMessageRec);\n LocalBroadcastManager.getInstance(this).unregisterReceiver(TermEndedMessageRec);\n LocalBroadcastManager.getInstance(this).unregisterReceiver(SoundAlteredRec);\n LocalBroadcastManager.getInstance(this).unregisterReceiver(SharesTransactionedRec);\n LocalBroadcastManager.getInstance(this).unregisterReceiver(SpecificElementUpdate);\n super.onDestroy();\n }", "public void seDeconnecter(){\n try {\n\t\ttopicConn.close();\n\t} catch (JMSException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n }", "@Override\n protected void callAfterDataBack(HemaNetTask netTask) {\n cancelProgressDialog();\n }", "public void stopReceiving() {\n\t\tcallerContext.unregisterReceiver(this);\n\t}", "@Override\n protected void disconnect(SelectionKey key) {\n SocketChannel channel = (SocketChannel) key.channel();\n NetworkDestination destination = socketToDestination.get(channel);\n destinationToSocket.remove(destination);\n socketToDestination.remove(channel);\n socketToTracker.remove(channel);\n super.disconnect(key);\n }", "void disconnect();", "void disconnect();", "public void disconnectConvo() {\n convo = null;\n setConnStatus(false);\n }", "public static void disconnect() {\n if (AppSettings.bluetoothConnection != null) \n \tAppSettings.bluetoothConnection.stop();\n\t}", "private synchronized void stop()\n\t{\n\t\ttry\n\t\t{\n\t\t\tunregisterReceiver( mConnectivityReceiver );\n\t\t}\n\t\tcatch ( IllegalArgumentException e )\n\t\t{\n\t\t\te.printStackTrace();\n\n\t\t} // try/catch\n\n\t}", "void cancelProduction();", "@Override\n protected Void doInBackground(Void... v) {\n try {\n repeating = ServerCom.removeTask(mAptID, tempTask.getDescription(), tempTask.getAssignee());\n } catch (Exception e) {\n this.exception = e;\n }\n\n return null;\n }", "private void stopPulling() {\n\n // un register this task\n eventDispatcher.unRegister(this);\n\n // tell the container to send response\n asyncContext.complete();\n\n // cancel data changed listening\n if (pullingTimeoutFuture != null){\n pullingTimeoutFuture.cancel(false);\n }\n }", "private int exec_cleanup_pdl_stop (PendingTask task) {\n\n\t\t//--- Get payload\n\n\t\tOpCleanupPDLStop payload = new OpCleanupPDLStop();\n\n\t\ttry {\n\t\t\tpayload.unmarshal_task (task);\n\t\t}\n\n\t\t// Invalid task\n\n\t\tcatch (Exception e) {\n\n\t\t\t// Display the error and log the task\n\n\t\t\tsg.task_sup.display_invalid_task (task, e);\n\t\t\treturn RESCODE_TASK_CORRUPT;\n\t\t}\n\n\t\t//--- Poll status\n\n\t\t// Disable cleanup\n\n\t\tsg.cleanup_sup.set_cleanup_disabled();\n\n\t\t//--- Final steps\n\n\t\t// Log the task\n\n\t\treturn RESCODE_SUCCESS;\n\t}", "public void stop(){\r\n\t\tmyTask.cancel();\r\n\t\ttimer.cancel();\r\n\t}", "static void disconnect(FlowGraph graph, Outlet outlet) {\n if (!(outlet instanceof OutPort)) {\n throw new IllegalArgumentException(\"Invalid outlet passed to graph\");\n }\n\n OutPort outPort = (OutPort) outlet;\n\n if (!graph.equals(outPort.getGraph())) {\n throw new IllegalArgumentException(\"Outlet or inlet does not belong to graph\");\n }\n\n outPort.cancel(null);\n outPort.complete();\n }", "public void shutdownNetwork() {\r\n networkPlayer.stop();\r\n }", "private void handleLostExecutor(Protos.SchedulerTask task)\n {\n SchedulerNode.State state = this.app.getState(task.getNodeId());\n\n //dont deliver the failure if it was already sent in some form\n if( state.equals(SchedulerNode.State.FAILED)\n || state.equals(SchedulerNode.State.FINISHED)\n || state.equals(SchedulerNode.State.KILLED))\n {\n return;\n }\n\n //this.app.nodeFailed(this, task.getNodeId());\n }", "public void deleteTask(Integer tid);", "public void disconnect()\n {\n isConnected = false;\n }", "void disconnect() throws Exception;", "private void closeAndCancel() {\n try {\n stats.removeKey(key);\n key.cancel();\n channel.close();\n } catch (IOException e) {\n System.err.println(\"Error while trying to close Task channel\");\n }\n }", "void hideTask ()\n\t{\n\t}" ]
[ "0.6460175", "0.64463717", "0.63697463", "0.60518855", "0.6036578", "0.60169363", "0.6016193", "0.60159975", "0.6005869", "0.59687555", "0.59667903", "0.5959288", "0.5940158", "0.5904215", "0.59040636", "0.58996475", "0.58864355", "0.5857218", "0.585058", "0.58493847", "0.58324087", "0.5832338", "0.5817823", "0.58070606", "0.57957953", "0.5789935", "0.5787985", "0.57654786", "0.5763542", "0.5753951", "0.57435066", "0.5732403", "0.57249004", "0.57249004", "0.57249004", "0.57249004", "0.57127035", "0.5701517", "0.5701517", "0.57013285", "0.56952155", "0.56869215", "0.5683966", "0.5682443", "0.5679481", "0.5669434", "0.5658131", "0.5658131", "0.5640819", "0.5637407", "0.5634208", "0.56308043", "0.5629931", "0.5629796", "0.56239843", "0.5621951", "0.5611317", "0.5596882", "0.5591848", "0.5588261", "0.55823964", "0.557247", "0.5569836", "0.5563032", "0.5553683", "0.5549499", "0.55416816", "0.55416816", "0.55412257", "0.553146", "0.55261457", "0.55210817", "0.5505138", "0.5479158", "0.5468801", "0.54611516", "0.5448262", "0.54437435", "0.542663", "0.54214394", "0.540745", "0.5406837", "0.54055816", "0.54055816", "0.5403963", "0.5400487", "0.5397856", "0.5391434", "0.53869444", "0.5386344", "0.53862226", "0.53828686", "0.5372467", "0.5368494", "0.5356985", "0.5356949", "0.53538007", "0.5352599", "0.535014", "0.5347673" ]
0.65732163
0
disconnect ReceivingSpace with retail_store in Goods
public ReceivingSpace planToRemoveGoodsListWithRetailStore(ReceivingSpace receivingSpace, String retailStoreId, Map<String,Object> options)throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ReceivingSpace planToRemoveGoodsListWithSmartPallet(ReceivingSpace receivingSpace, String smartPalletId, Map<String,Object> options)throws Exception;", "public ReceivingSpace planToRemoveGoodsListWithRetailStoreOrder(ReceivingSpace receivingSpace, String retailStoreOrderId, Map<String,Object> options)throws Exception;", "public void stopSending ();", "public void disconnect() {\n\t\t\n\t}", "protected void processDisconnection(){}", "public void disconnect() {\r\n\t\tsuper.disconnect();\r\n\t}", "public void disconnect() {}", "public LWTRTPdu disConnectReq() throws IncorrectTransitionException;", "public LWTRTPdu disConnectRsp() throws IncorrectTransitionException;", "abstract protected void onDisconnection();", "public void disconnect() {\n\t\tdisconnect(true);\n\t}", "public void deleteNetWS() {\r\n/* 142 */ this._has_netWS = false;\r\n/* */ }", "public void disbandChannel()\r\n\t{\r\n\t\tif (_partys != null)\r\n\t\tfor (L2Party party : _partys)\r\n\t\t\tif (party != null)\r\n\t\t\t\tremoveParty(party);\r\n\t\t_partys = null;\r\n\t}", "public LWTRTPdu disConnect() throws IncorrectTransitionException;", "public void disconnect() {\n\t\tdisconnect(null);\n\t}", "public void disconnect(int[] details)throws RemoteException{\n sd.getGames().get(details[0]).setExpired();\n }", "public void disconnect( ) {\n disconnect( \"\" );\n }", "public void swigDirectorDisconnect() {\n this.swigCMemOwn = false;\n delete();\n }", "public void disconnect(){ \r\n if (matlabEng!=null){ \r\n matlabEng.engEvalString (id,\"bdclose ('all')\");\r\n matlabEng.engClose(id);\r\n matlabEng=null;\r\n id=-1; \r\n }\r\n }", "protected void kill() {\n disconnect = true;\n }", "public LWTRTPdu disConnectAcpt() throws IncorrectTransitionException;", "protected void processDisconnect() {\n\t\tconnected.set(false);\n\t\tsenderChannel = null;\n\t}", "void stopGame() {\n leader.disconnect();\n opponent.disconnect();\n }", "public void disconnectFromAudio() {\n String json = new Gson().toJson(new TelevisionModel(TelevisionModel.Action.DISCONNECT));\n String a = sendMessage(json);\n TelevisionModel teleM = new Gson().fromJson(a, TelevisionModel.class);\n System.out.println(\"Client Received \" + json);\n\n if (teleM.getAction() == TelevisionModel.Action.DISCONNECT) {\n isDisconnecting = teleM.getValue();\n ui.updateArea(teleM.getMessage());\n };\n }", "private void destroy(DynamicConnectivity.Splay s) {\n }", "public void destroy() throws BridgeException, BrokerException;", "private void quit() {\n\t\tmSipSdk = myApplication.getPortSIPSDK();\n\n\t\tif (myApplication.isOnline()) {\n\t\t\tLine[] mLines = myApplication.getLines();\n\t\t\tfor (int i = Line.LINE_BASE; i < Line.MAX_LINES; ++i) {\n\t\t\t\tif (mLines[i].getRecvCallState()) {\n\t\t\t\t\tmSipSdk.rejectCall(mLines[i].getSessionId(), 486);\n\t\t\t\t} else if (mLines[i].getSessionState()) {\n\t\t\t\t\tmSipSdk.hangUp(mLines[i].getSessionId());\n\t\t\t\t}\n\t\t\t\tmLines[i].reset();\n\t\t\t}\n\t\t\tmyApplication.setOnlineState(false);\n\t\t\tmSipSdk.unRegisterServer();\n\t\t\tmSipSdk.DeleteCallManager();\n\t\t}\n\t}", "@Override\n\tpublic void disconnect() {\n\n\t}", "@Override\n\tpublic void disconnect() {\n\n\t}", "public void disconnect();", "public void disconnect();", "public void disconnect();", "public void disconnect();", "public void disconnect()\n\t{\n\t\toriginal = null;\n\t\tsource = null;\n\t\tl10n = null;\n\t}", "@Override\n\tpublic void disconnect() {\n\t\t\n\t}", "@Override\n\tpublic void disconnect() {\n\t\t\n\t}", "public void disconnectedFromHost();", "public void removeCloseProxDevice() {\n\n // If ScanningService is active\n if (BLEScanningService.isAlive()) {\n\n Iterator it = closeProxBTDevices.entrySet().iterator();\n\n // For each entry in 'Close Proximity List'\n while(it.hasNext()) {\n\n Map.Entry<String, BTDevice> pair = (Map.Entry<String, BTDevice>) it.next();\n System.out.println(\"1. MAC ADDRESS: \" + pair.getKey() + \" \" + \"GET DISTANCE: \" + pair.getValue().getDistance());\n\n // If device has a distance over 2.0 OR putRSSI method was not called in 30 seconds\n if (pair.getValue().getDistance() > 2.0 || ((System.currentTimeMillis() - pair.getValue().getRssiTimeCalled()) > TIME_OUT) ) // 1 minute\n {\n System.out.println(\"2. MAC ADDRESS: \" + pair.getKey() + \" \" + \"GET DISTANCE: \" + pair.getValue().getDistance() + \"TIME BETWEEN CALLS:\" + (System.currentTimeMillis() - pair.getValue().getRssiTimeCalled()));\n\n // End timer, interaction is over\n pair.getValue().getIt().endTimer(System.currentTimeMillis());\n\n System.out.println(\"3. MAC ADDRESS:\" + pair.getKey() + \" \" + \"INTERACTION LENGTH:\" + pair.getValue().getIt().getInteractionLength());\n\n if (pair.getValue().getIt().getInteractionLength() >= MIN_INTERACTION_LENGTH) { // > 1 minutes\n System.out.println(\"4. N MAC ADDRESS:\" + pair.getKey() + \" \" + \"INTERACTION LENGTH:\" + pair.getValue().getIt().getInteractionLength());\n\n Intent mIntent = new Intent();\n mIntent.setClass(this, FeedbackActivity.class);\n mIntent.putExtra(\"second_person_name\", pair.getValue().getName());\n mIntent.putExtra(\"second_person_mac\", pair.getValue().getMACAddress());\n mIntent.putExtra(\"length_interaction\", pair.getValue().getIt().getInteractionLength());\n mIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\n sendNotification(pair.getValue(), mIntent);\n closeProxBTDevices.remove(pair.getKey());\n }\n\n }\n }\n }\n }", "public static void disconnect() {\n if (AppSettings.bluetoothConnection != null) \n \tAppSettings.bluetoothConnection.stop();\n\t}", "public void stopNetwork();", "public void disconnect() {\n \ttry {\n \t\tctx.unbindService(apiConnection);\n } catch(IllegalArgumentException e) {\n \t// Nothing to do\n }\n }", "public ReceivingSpace planToRemoveGoodsListWithSku(ReceivingSpace receivingSpace, String skuId, Map<String,Object> options)throws Exception;", "public void sendStop(){\n if (isNetworkGame()){\n sender.println(\"stop\");\n sender.flush();\n }\n }", "public ReceivingSpace planToRemoveGoodsListWithShippingSpace(ReceivingSpace receivingSpace, String shippingSpaceId, Map<String,Object> options)throws Exception;", "public void disconnect() {if(mEnable) mBS.disconnect();}", "public Reply\tdisconnect() throws ThingsException, InterruptedException ;", "void cancelProduction();", "public void disconnectConvo() {\n convo = null;\n setConnStatus(false);\n }", "@Override public void clientDeclineIncomingGame(Rental rental)\r\n throws RemoteException, SQLException {\r\n gameListClientModel.clientDeclineIncomingGame(rental);\r\n }", "public abstract void disconnect() throws OrmException;", "void disconnect(String reason);", "public void disconnect ()\n {\n org.omg.CORBA.portable.InputStream $in = null;\n try {\n org.omg.CORBA.portable.OutputStream $out = _request (\"disconnect\", true);\n $in = _invoke ($out);\n return;\n } catch (org.omg.CORBA.portable.ApplicationException $ex) {\n $in = $ex.getInputStream ();\n String _id = $ex.getId ();\n throw new org.omg.CORBA.MARSHAL (_id);\n } catch (org.omg.CORBA.portable.RemarshalException $rm) {\n disconnect ( );\n } finally {\n _releaseReply ($in);\n }\n }", "public void stop() {\n synchronized (car) {\n LOG.info(\"Invalidating APPLY Record\");\n try {\n cas.destroyChannel(dir);\n cas.destroyChannel(val);\n cas.destroyChannel(mess);\n cas.destroyChannel(omss);\n cas.destroyChannel(clid);\n\n car.stop();\n for (CadRecord cad : cads) {\n cad.stop();\n }\n } catch (Exception e) {\n LOG.warning(\"Exception while shutting down apply record \" + e.getMessage());\n }\n }\n }", "void dropPkt();", "public void disconnect() {\r\n\t\trunning = false;\r\n\t}", "@Override\r\n\tpublic void disconnect();", "@Override\n public void disconnect() {\n\n }", "public void stopReceiving() {\n\t\tcallerContext.unregisterReceiver(this);\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}", "ICard deal();", "public void leaveTheBus(int pid, int seat);", "public void disconnect() throws PersistenceMechanismException {\n\t\t\r\n\t}", "public void stop() {\n\t\tconnection.stop();\n\t\tdata.disconnectAll();\n\t\tsaveData();\n\t}", "public final void disconnect() {\n synchronized (this.lock) {\n if (this.zzbur != null) {\n this.zzbur.disconnect();\n this.zzbur = null;\n Binder.flushPendingCommands();\n }\n }\n }", "void disconnect();", "void disconnect();", "@Override\n\tpublic boolean disconnect() {\n\t\treturn false;\n\t}", "public void disconnected(String reason) {}", "private void freeAgent() {\n }", "public void disconnect()\n {\n isConnected = false;\n }", "public void disconnect() {\n try {\n Socket socket = new Socket(\"127.0.0.1\",33333);\n ObjectOutputStream outputStream = new ObjectOutputStream(socket.getOutputStream());\n clientMain.clientData[1] = \"no\";\n outputStream.writeObject(clientMain.clientData);\n\n clientMain.showConnectionPage();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n public void Disconnect() {\n bReConnect = true;\n }", "@Override\n public void destroyConnectionWithYourTower() {\n }", "public boolean closeDelivery();", "public void onNetDisConnect() {\n\n\t}", "@Override\n\tprotected void onNetworkDisConnected() {\n\n\t}", "public void onDisconnect(HeaderSet req, HeaderSet resp) {\r\n if(req == null)\r\n return;\r\n try {\r\n //clientBluetoothAddress = req.getHeader(HeaderSet.NAME).toString();\r\n Object reqType = req.getHeader(HeaderSets.REQUEST_TYPE);\r\n if(reqType == null)\r\n return;\r\n if (reqType.toString().equals(Types.REQUEST_DISCONNECT)) {\r\n parent.removeClient(clientBluetoothAddress);\r\n //AlertDisplayer.showAlert(\"Disconnected\", \"btADDR : \" +clientBluetoothAddress,parent.gui.getDisplay(),parent.gui.getList());\r\n }\r\n \r\n } catch (IOException e) {\r\n System.err.println(\"Exception in DataTransaction.onConnect()\");\r\n \r\n }\r\n }", "public void disconnect() {\n DatabaseGlobalAccess.getInstance().getEm().close();\n DatabaseGlobalAccess.getInstance().getEmf().close();\n }", "void closeNetwork();", "void disconnect() throws TransportException;", "public void decommission() {\n\t\tlogger.debug(\"Decommission signal received. Shutting down...\");\n\t\tlogger.logServiceStop(servicePID);\n\t\tkeepRunning = false;\n\t}", "private synchronized void stop()\n\t{\n\t\ttry\n\t\t{\n\t\t\tunregisterReceiver( mConnectivityReceiver );\n\t\t}\n\t\tcatch ( IllegalArgumentException e )\n\t\t{\n\t\t\te.printStackTrace();\n\n\t\t} // try/catch\n\n\t}", "@Override\n protected void disconnect(SelectionKey key) {\n SocketChannel channel = (SocketChannel) key.channel();\n NetworkDestination destination = socketToDestination.get(channel);\n destinationToSocket.remove(destination);\n socketToDestination.remove(channel);\n socketToTracker.remove(channel);\n super.disconnect(key);\n }", "@Override\n\t\tpublic void disconnected() {\n\t\t\tsuper.disconnected();\n\t\t}", "public void stopInbound();", "@Override\r\n public boolean disconnectWifi() {\r\n nwmDevice.getDevice().Disconnect();\r\n return true;\r\n }", "void exitCurrentStationCard();", "public void deactivateSCOP(){\r\n SCOP = false;\r\n }", "private void closeBrokers() {\n memberBroker.close();\naccountBroker.close();\n }", "public void closeConnection() {\r\n\t\ttry {\r\n\t\t\tthis.store.close();\r\n\t\t} catch (MessagingException e) {\r\n\t\t\tLog.error(e.getStackTrace().toString());\r\n\t\t}\r\n\t}", "private void releaseAndDeauthorize(final boolean deauthorizeNow, final int resultCode, boolean closeSocket)\n {\n synchronized(lock)\n {\n if (currentState == STATE_STOPPED)\n {\n if (log.isInfoEnabled())\n {\n log.info(\"ignoring releaseAndDeauthorize when already stopped\");\n }\n return;\n }\n //don't change state here\n }\n\n if (log.isInfoEnabled()) \n {\n log.info(\"releaseAndDeauthorize - now: \" + deauthorizeNow + \" - id: \" + connectionId + \", url: \" + url);\n }\n HNServerSessionManager.getInstance().release(this, closeSocket);\n if (deauthorizeNow)\n {\n HNServerSessionManager.getInstance().deauthorize(this, resultCode);\n }\n else\n {\n HNServerSessionManager.getInstance().scheduleDeauthorize(this, resultCode);\n }\n }", "public void disconnect(){\n\n\t\tserverConnection.disconnect();\n\t}", "public void disconnect() {\n if (this.mIsConnected) {\n disconnectCallAppAbility();\n this.mRemote = null;\n this.mIsConnected = false;\n return;\n }\n HiLog.error(LOG_LABEL, \"Already disconnected, ignoring request.\", new Object[0]);\n }", "protected void onDestroy(){\n\t\tsuper.onDestroy();\n\t\tJSONObject msg = new JSONObject();\n\t\t\ttry {\n\t\t\t\tmsg.put(\"type\", \"DISCONNECT_REQUEST\");\n\t\t\t\tmsg.put(\"source\", name);\n\t\t\t\tnew Write(msg).execute(\"\");\n\t\t\t\t\n\t\t\t} catch (JSONException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t}", "public void removeWire(IPWire pres);", "void xsiChannelClosed();", "void endNegotiation();", "public void AllianceRemoved(Alliance alliance)\n {\n for(LaunchServerSession session : Sessions.values())\n {\n if(session.CanReceiveUpdates())\n {\n session.RemoveAlliance(alliance);\n }\n }\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:45.509 -0500\", hash_original_method = \"C231E33C68F8FEC3C6EDCF993CA1BD7A\", hash_generated_method = \"60AE8F641AB448C2AE7DFA7C6F9FF823\")\n \npublic void disconnected() {\n mSrcContext = null;\n mSrcHandler = null;\n mSrcMessenger = null;\n mDstMessenger = null;\n mConnection = null;\n }", "default void disconnect() { }" ]
[ "0.6103983", "0.60137445", "0.59380907", "0.5830638", "0.57804793", "0.5764126", "0.57522774", "0.5739728", "0.57311517", "0.5719677", "0.5686255", "0.5685714", "0.56854725", "0.56792367", "0.56703806", "0.5661568", "0.5651229", "0.56386894", "0.5637208", "0.5628338", "0.5621564", "0.5604678", "0.5601114", "0.55920243", "0.55882263", "0.55820084", "0.55704767", "0.5565732", "0.5565732", "0.5563602", "0.5563602", "0.5563602", "0.5563602", "0.5560321", "0.5559964", "0.5559964", "0.554822", "0.55390686", "0.55349207", "0.55104", "0.54997057", "0.5490205", "0.54822344", "0.54743373", "0.5473747", "0.5451154", "0.5443945", "0.5441448", "0.5439119", "0.5417579", "0.540676", "0.5397573", "0.53968537", "0.5396214", "0.5392512", "0.5378909", "0.53782743", "0.537147", "0.5358208", "0.5340187", "0.5335912", "0.53349674", "0.53343725", "0.53175354", "0.5315757", "0.5315757", "0.53139234", "0.5307699", "0.530662", "0.5296494", "0.52875155", "0.528619", "0.52734673", "0.52578944", "0.5252051", "0.52501094", "0.52483946", "0.5246463", "0.5245596", "0.5240284", "0.5231652", "0.5223542", "0.5220452", "0.5219682", "0.52161926", "0.5214429", "0.52140796", "0.52075815", "0.5199902", "0.51988864", "0.5196725", "0.5190896", "0.5184404", "0.5173581", "0.5170175", "0.5169541", "0.51607186", "0.51598996", "0.5154369", "0.51538634" ]
0.6407763
0
disconnect ReceivingSpace with biz_order in Goods
public ReceivingSpace planToRemoveGoodsListWithBizOrder(ReceivingSpace receivingSpace, String bizOrderId, Map<String,Object> options)throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ReceivingSpace planToRemoveGoodsListWithSmartPallet(ReceivingSpace receivingSpace, String smartPalletId, Map<String,Object> options)throws Exception;", "public void stopSending ();", "public void disconnect(){ \r\n if (matlabEng!=null){ \r\n matlabEng.engEvalString (id,\"bdclose ('all')\");\r\n matlabEng.engClose(id);\r\n matlabEng=null;\r\n id=-1; \r\n }\r\n }", "public void disconnect() {if(mEnable) mBS.disconnect();}", "public void sendStop(){\n if (isNetworkGame()){\n sender.println(\"stop\");\n sender.flush();\n }\n }", "public void disbandChannel()\r\n\t{\r\n\t\tif (_partys != null)\r\n\t\tfor (L2Party party : _partys)\r\n\t\t\tif (party != null)\r\n\t\t\t\tremoveParty(party);\r\n\t\t_partys = null;\r\n\t}", "public final void disconnect() {\n synchronized (this.lock) {\n if (this.zzbur != null) {\n this.zzbur.disconnect();\n this.zzbur = null;\n Binder.flushPendingCommands();\n }\n }\n }", "void dropPkt();", "ICard deal();", "protected void processDisconnection(){}", "public void disconnect() {\n\t\t\n\t}", "public void disconnectFromAudio() {\n String json = new Gson().toJson(new TelevisionModel(TelevisionModel.Action.DISCONNECT));\n String a = sendMessage(json);\n TelevisionModel teleM = new Gson().fromJson(a, TelevisionModel.class);\n System.out.println(\"Client Received \" + json);\n\n if (teleM.getAction() == TelevisionModel.Action.DISCONNECT) {\n isDisconnecting = teleM.getValue();\n ui.updateArea(teleM.getMessage());\n };\n }", "private void Disconnect() {\n //If the btSocket is busy\n if (btSocket!=null) {\n try {\n btSocket.close(); //close connection\n }\n catch (IOException e) {\n msg(\"Error\");\n }\n }\n finish(); //return to the first layout\n\n }", "void disconnect(String reason);", "public void haltMarket(OrderManagementContext orderManagementContext_);", "public void disconnect() {}", "private void bid() {\n\t\t\t\n\t\t}", "void endNegotiation(String reason);", "void endNegotiation();", "public void stop() {\n\t\tthis.close(this.btcomm);\n\t}", "protected void processDisconnect() {\n\t\tconnected.set(false);\n\t\tsenderChannel = null;\n\t}", "public void disconnect() {\r\n\t\tsuper.disconnect();\r\n\t}", "private void quit() {\n\t\tmSipSdk = myApplication.getPortSIPSDK();\n\n\t\tif (myApplication.isOnline()) {\n\t\t\tLine[] mLines = myApplication.getLines();\n\t\t\tfor (int i = Line.LINE_BASE; i < Line.MAX_LINES; ++i) {\n\t\t\t\tif (mLines[i].getRecvCallState()) {\n\t\t\t\t\tmSipSdk.rejectCall(mLines[i].getSessionId(), 486);\n\t\t\t\t} else if (mLines[i].getSessionState()) {\n\t\t\t\t\tmSipSdk.hangUp(mLines[i].getSessionId());\n\t\t\t\t}\n\t\t\t\tmLines[i].reset();\n\t\t\t}\n\t\t\tmyApplication.setOnlineState(false);\n\t\t\tmSipSdk.unRegisterServer();\n\t\t\tmSipSdk.DeleteCallManager();\n\t\t}\n\t}", "void disconnect() throws CCommException, IllegalStateException;", "public void onDisconnect(HeaderSet req, HeaderSet resp) {\r\n if(req == null)\r\n return;\r\n try {\r\n //clientBluetoothAddress = req.getHeader(HeaderSet.NAME).toString();\r\n Object reqType = req.getHeader(HeaderSets.REQUEST_TYPE);\r\n if(reqType == null)\r\n return;\r\n if (reqType.toString().equals(Types.REQUEST_DISCONNECT)) {\r\n parent.removeClient(clientBluetoothAddress);\r\n //AlertDisplayer.showAlert(\"Disconnected\", \"btADDR : \" +clientBluetoothAddress,parent.gui.getDisplay(),parent.gui.getList());\r\n }\r\n \r\n } catch (IOException e) {\r\n System.err.println(\"Exception in DataTransaction.onConnect()\");\r\n \r\n }\r\n }", "public void youWinByAbandonment() {\n try {\n if (getClientInterface() != null)\n getClientInterface().gameEndedByAbandonment(\"YOU WON BECAUSE YOUR OPPONENTS HAVE ABANDONED!!\");\n }\n catch (RemoteException e) {\n System.out.println(\"remote sending ended by abandonment error\");\n }\n }", "public void disconnected(String reason) {}", "void cancelOrder(String orderKey);", "public void mBTClose1() {\n if (oBTServer!=null)\n oBTServer.mCloseService2(); //Disconnect a relayed device\n mDisconnect();\n if (oBTadapter != null) {\n if (oBTadapter.isEnabled()) {\n if (isOpenedByMe) //170905 only if this application opened the bluetooth\n oBTadapter.disable();\n }\n }\n if (mReceiver1!=null)\n try { //Protection from crash bugfix 171013\n mContext.unregisterReceiver(mReceiver1);\n }\n catch (final Exception exception) {\n // The receiver was not registered. There is nothing to do in that case. Everything is fine.\n }\n }", "public void destroy() throws BridgeException, BrokerException;", "protected void kill() {\n disconnect = true;\n }", "@Override\n\tpublic void disconnect() {\n\n\t}", "@Override\n\tpublic void disconnect() {\n\n\t}", "@Override\n\tpublic void disconnect() {\n\t\t\n\t}", "@Override\n\tpublic void disconnect() {\n\t\t\n\t}", "public LWTRTPdu disConnectRsp() throws IncorrectTransitionException;", "private void closeBrokers() {\n memberBroker.close();\naccountBroker.close();\n }", "abstract protected void onDisconnection();", "@Override\n\tpublic void hideGuaranteedDeliverySection() {\n\n\t}", "public void deactivateCOP(){\r\n COP = false;\r\n }", "public ReceivingSpace planToRemoveGoodsListWithShippingSpace(ReceivingSpace receivingSpace, String shippingSpaceId, Map<String,Object> options)throws Exception;", "void rejectNewOrders();", "public Reply\tdisconnect() throws ThingsException, InterruptedException ;", "public void disconnect( ) {\n disconnect( \"\" );\n }", "public void kill() {\n\t\tif (combox == null){\n\t\t\treturn;\n\t\t}\n\t\tPOPBuffer popBuffer = combox.getBufferFactory().createBuffer();\n\t\tMessageHeader messageHeader = new MessageHeader(0,\n\t\t\t\tMessageHeader.KILL_ALL, Semantic.SYNCHRONOUS);\n\t\tmessageHeader.setRequestID(requestID.incrementAndGet());\n\t\tpopBuffer.setHeader(messageHeader);\n\n\t\tpopDispatch(popBuffer);\n\t\ttry {\n\t\t\tPOPBuffer responseBuffer = combox.getBufferFactory().createBuffer();\n\t\t\tpopResponse(responseBuffer, messageHeader.getRequestID());\n\t\t} catch (POPException e) {\n\t\t\treturn;\n\t\t}\n\t}", "public ReceivingSpace planToRemoveGoodsListWithSku(ReceivingSpace receivingSpace, String skuId, Map<String,Object> options)throws Exception;", "private void disconnect() {\n System.out.println(String.format(\"連線中斷,%s\",\n clientSocket.getRemoteSocketAddress()));\n final int delete = thisPlayer.id - 1;\n player[delete] = null;\n empty.push(delete);\n }", "public void disconnect();", "public void disconnect();", "public void disconnect();", "public void disconnect();", "private void closeSuperMarketSimulation()\r\n\t{\n\t\t\r\n\t\tSystem.out.println(\"CLOSED THE MARKET\");\r\n\t\tSystem.out.println(\" \");\r\n\t\tdataManager.reporter(\"---------------------------THE SUPER MARKET CLOSED---------------------------\");\r\n\t\tdataManager.printResults(this.queueManager.getLongestQueueSize(),this.queueManager.getLongestCustomer(),this.queueManager.getLongestQueueSizeTime());\r\n\t\tdataManager.printReport();\r\n\t\tqueueManager.dequeueEveryone();\r\n\t}", "void cancelProduction();", "public LWTRTPdu disConnectAcpt() throws IncorrectTransitionException;", "public static void disconnect() {\n if (AppSettings.bluetoothConnection != null) \n \tAppSettings.bluetoothConnection.stop();\n\t}", "public void disconnect() {\n try {\n Socket socket = new Socket(\"127.0.0.1\",33333);\n ObjectOutputStream outputStream = new ObjectOutputStream(socket.getOutputStream());\n clientMain.clientData[1] = \"no\";\n outputStream.writeObject(clientMain.clientData);\n\n clientMain.showConnectionPage();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void disconnectedFromHost();", "public void deactivateSCOP(){\r\n SCOP = false;\r\n }", "private void sendBackToTermux(TermuxSessionBridgeEnd bridgeEnd, String command) {\n bridgeEnd.sendBackCommand(command);\n }", "private void discardPrompt() {\r\n\t\tfor (int i = 0; i < mustDiscard.size(); i++) {\r\n\t\t\tString prompt = \"**[Discard]** a card \";\r\n\t\t\tif (mustDiscard.get(i).contentEquals(\"Sleight of Hand\")) {\r\n\t\t\t\tprompt += \"to draw 2 cards\";\r\n\t\t\t} else if (mustDiscard.get(i).contentEquals(\"Apothecary\")) {\r\n\t\t\t\tprompt += \"to choose one: **3** :crossed_swords: **~OR~** **2** :moneybag: **~OR~** **1** :heart:\";\r\n\t\t\t}\r\n\t\t\tgameChannel.sendMessage(prompt).queue();\r\n\t\t}\r\n\t}", "public LWTRTPdu disConnectReq() throws IncorrectTransitionException;", "void rejectOrder(String orderId);", "@Override\n public String getDescription() {\n return \"Bid order cancellation\";\n }", "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 }", "public void disconnect() {\n\t\tdisconnect(true);\n\t}", "public void serveOrder ()\n\t\t{\n\t\t\ticeCreamLine.dequeue();\n\t\t\tconeList.remove(0);\n\t\t}", "public String deleteProductionBlock(ProductionBlock pb);", "public void endTurn() {\r\n\t\tint num = this.hand.size();\r\n\t\tfor (int i = 0; i < num; i++) {\r\n\t\t\tthis.discard.add(this.hand.remove(0));\r\n\t\t}\r\n\t\tint gemHeight = (int) this.totalGemValue() / 3;\r\n\t\tthis.drawFromBag(5 + gemHeight);\r\n\t}", "public void disconnect ()\n {\n org.omg.CORBA.portable.InputStream $in = null;\n try {\n org.omg.CORBA.portable.OutputStream $out = _request (\"disconnect\", true);\n $in = _invoke ($out);\n return;\n } catch (org.omg.CORBA.portable.ApplicationException $ex) {\n $in = $ex.getInputStream ();\n String _id = $ex.getId ();\n throw new org.omg.CORBA.MARSHAL (_id);\n } catch (org.omg.CORBA.portable.RemarshalException $rm) {\n disconnect ( );\n } finally {\n _releaseReply ($in);\n }\n }", "public void cancelCard() {}", "public void disconnect() throws OOBException {\n \t\tsession.disconnect();\n \t}", "@Override\n public void disconnect() {\n\n }", "void makeStopBuyOrder(AuthInfo authInfo, String pair, String price, String amount, String stop_price,HibtcApiCallback<Object> callback);", "public void removeCloseProxDevice() {\n\n // If ScanningService is active\n if (BLEScanningService.isAlive()) {\n\n Iterator it = closeProxBTDevices.entrySet().iterator();\n\n // For each entry in 'Close Proximity List'\n while(it.hasNext()) {\n\n Map.Entry<String, BTDevice> pair = (Map.Entry<String, BTDevice>) it.next();\n System.out.println(\"1. MAC ADDRESS: \" + pair.getKey() + \" \" + \"GET DISTANCE: \" + pair.getValue().getDistance());\n\n // If device has a distance over 2.0 OR putRSSI method was not called in 30 seconds\n if (pair.getValue().getDistance() > 2.0 || ((System.currentTimeMillis() - pair.getValue().getRssiTimeCalled()) > TIME_OUT) ) // 1 minute\n {\n System.out.println(\"2. MAC ADDRESS: \" + pair.getKey() + \" \" + \"GET DISTANCE: \" + pair.getValue().getDistance() + \"TIME BETWEEN CALLS:\" + (System.currentTimeMillis() - pair.getValue().getRssiTimeCalled()));\n\n // End timer, interaction is over\n pair.getValue().getIt().endTimer(System.currentTimeMillis());\n\n System.out.println(\"3. MAC ADDRESS:\" + pair.getKey() + \" \" + \"INTERACTION LENGTH:\" + pair.getValue().getIt().getInteractionLength());\n\n if (pair.getValue().getIt().getInteractionLength() >= MIN_INTERACTION_LENGTH) { // > 1 minutes\n System.out.println(\"4. N MAC ADDRESS:\" + pair.getKey() + \" \" + \"INTERACTION LENGTH:\" + pair.getValue().getIt().getInteractionLength());\n\n Intent mIntent = new Intent();\n mIntent.setClass(this, FeedbackActivity.class);\n mIntent.putExtra(\"second_person_name\", pair.getValue().getName());\n mIntent.putExtra(\"second_person_mac\", pair.getValue().getMACAddress());\n mIntent.putExtra(\"length_interaction\", pair.getValue().getIt().getInteractionLength());\n mIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\n sendNotification(pair.getValue(), mIntent);\n closeProxBTDevices.remove(pair.getKey());\n }\n\n }\n }\n }\n }", "private void EndTalk() {\n this.mDeleteF = true;\n this.mReadingF = false;\n }", "private static void checkArrivedOrderRemainder_RemoveArrivedOrder(\n StockDataBase dataBase, Order arrivedOrder) {\n if (arrivedOrder.getOrderDirection() == OrderDirection.BUY) {\n if (dataBase.getAwaitingBuyOrders().getCollection()\n .remove(arrivedOrder)) {\n MessagePrint.println(MessagePrint.Stream.OUT,\n Message.Out.StockDataBase\n .printOrderPerformedInItsEntirety());\n // FxDialogs.showInformation(\"INFO\", Message.Out.StockDataBase\n // .printOrderPerformedInItsEntirety());\n } else {\n MessagePrint.println(MessagePrint.Stream.ERR,\n new BuildError().getMessage() +\n Message.Err.Order.removeFail());\n FxDialogs.showError(\"ERROR\", new BuildError().getMessage() +\n Message.Err.Order.removeFail());\n }\n } else if (arrivedOrder.getOrderDirection() == OrderDirection.SELL) {\n\n if (dataBase.getAwaitingSellOrders().getCollection()\n .remove(arrivedOrder)) {\n MessagePrint.println(MessagePrint.Stream.OUT,\n Message.Out.StockDataBase\n .printOrderPerformedInItsEntirety());\n // FxDialogs.showInformation(\"INFO\", Message.Out.StockDataBase\n // .printOrderPerformedInItsEntirety());\n } else {\n MessagePrint.println(MessagePrint.Stream.ERR,\n new BuildError().getMessage() +\n Message.Err.Order.removeFail());\n FxDialogs.showError(\"ERROR\", new BuildError().getMessage() +\n Message.Err.Order.removeFail());\n }\n }\n }", "public void disconnect(int[] details)throws RemoteException{\n sd.getGames().get(details[0]).setExpired();\n }", "public void declineTransaction(CommandOfService c) throws Exception {\n // We give back the points to the user\n Service s = c.getService();\n User u = c.getOwner();\n if(s.getTypeService() == 0){\n userDAO.addPoints(s.getCost(),u);\n }\n DAO.declineTransaction(c);\n FacadeNotification facadeNotification = FacadeNotification.getInstance();\n String title = \"Transaction declined!\";\n String desc = \"Your command for: \"+s.getTitle()+\" has been declined.\\n\";\n try {\n facadeNotification.createNotification(u.getIdUser(),title,desc);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void disconnect() {\n\t\tdisconnect(null);\n\t}", "public void discard();", "private void clearDeleteFriendServerToB() {\n if (rspCase_ == 18) {\n rspCase_ = 0;\n rsp_ = null;\n }\n }", "public abstract void disconnect() throws OrmException;", "public void disconnectConvo() {\n convo = null;\n setConnStatus(false);\n }", "@Override\n\t\tpublic void disconnected() {\n\t\t\tsuper.disconnected();\n\t\t}", "@Override\n\tpublic void debit() {\n\t\tSystem.out.println(\"hsbc debit\");\n\t}", "void makeStopSellOrder(AuthInfo authInfo, String pair, String price, String amount, String stop_price,HibtcApiCallback<Object> callback);", "public void disconnect() throws IOException {\n numberOfCommands++;\n LOG.log(Level.INFO, \"client has request to be disconnect.\");\n if(isConnected()) {\n sendToServer(RouletteV2Protocol.CMD_BYE);\n ByeCommandResponse byeCmdResp = JsonObjectMapper.parseJson(in.readLine(), ByeCommandResponse.class);\n\n LOG.log(Level.INFO, \"Status: \" + byeCmdResp.getStatus());\n LOG.log(Level.INFO, \"Number of commands on the server \" + String.valueOf(byeCmdResp.getNumberOfCommands()));\n\n connected = false;\n\n cleanup();\n } else {\n LOG.log(Level.INFO, \"The client is already disconencted\");\n }\n }", "public void leaveTheBus(int pid, int seat);", "public void shutdown()\n {\n synchronized( m_state )\n {\n if( !isStoppable() ) return;\n\n setState( STOPPING );\n\n try\n {\n setState( DECOMMISSIONING );\n m_model.decommission();\n }\n catch( Throwable e )\n {\n if( getLogger().isWarnEnabled() )\n {\n final String error =\n \"Ignoring block decommissioning error.\";\n getLogger().warn( error, e );\n }\n }\n\n /*\n try\n {\n setState( DISSASSEMBLY );\n getLogger().info( \"dissassembly phase\" );\n m_model.disassemble();\n }\n catch( Throwable e )\n {\n if( getLogger().isWarnEnabled() )\n {\n final String error =\n \"Ignoring application dissassembly error.\";\n getLogger().warn( error, e );\n }\n }\n */\n setState( STOPPED );\n }\n }", "public void disconnect() {\r\n\t\trunning = false;\r\n\t}", "void discard();", "void discard();", "public void decommission() {\n\t\tlogger.debug(\"Decommission signal received. Shutting down...\");\n\t\tlogger.logServiceStop(servicePID);\n\t\tkeepRunning = false;\n\t}", "void close(Order order);", "public void stopNetwork();", "public void discard() {\n }", "public void cancelOrder() {\n order.clear();\n }", "public ReceivingSpace planToRemoveGoodsListWithRetailStoreOrder(ReceivingSpace receivingSpace, String retailStoreOrderId, Map<String,Object> options)throws Exception;", "void bluetoothDeactivated();", "public void close()\r\n {\r\n OrderManager manager = myOrderManagerRegistry.getOrderManager(ourKey);\r\n manager.deactivateParticipant(ourKey);\r\n }" ]
[ "0.60251933", "0.5815192", "0.5795322", "0.5783399", "0.5766957", "0.5756672", "0.5739042", "0.5690493", "0.5681917", "0.5681594", "0.5663451", "0.56563145", "0.559208", "0.55701363", "0.55458605", "0.5536874", "0.5517924", "0.5511992", "0.55112195", "0.550978", "0.5505761", "0.54902", "0.54809713", "0.54786026", "0.5474674", "0.5465618", "0.54638004", "0.5453113", "0.54333335", "0.54325664", "0.54306453", "0.5426447", "0.5426447", "0.54252464", "0.54252464", "0.5413596", "0.53972256", "0.5380897", "0.53788924", "0.53748405", "0.53731525", "0.53699654", "0.5360865", "0.5353639", "0.53476095", "0.5347422", "0.5345122", "0.5337358", "0.5337358", "0.5337358", "0.5337358", "0.53297913", "0.5327147", "0.53229684", "0.53183246", "0.5315556", "0.53136826", "0.5311719", "0.53030044", "0.53013", "0.52965856", "0.5293969", "0.527958", "0.52725667", "0.5272239", "0.52691984", "0.526233", "0.52613246", "0.52577543", "0.52455944", "0.52412814", "0.5237037", "0.52350295", "0.52347445", "0.5232344", "0.52322483", "0.5229256", "0.5226578", "0.5222965", "0.5222069", "0.5220532", "0.5210505", "0.521033", "0.5210301", "0.5198376", "0.51964873", "0.5195748", "0.519441", "0.5186479", "0.5185021", "0.5184787", "0.5184787", "0.51825947", "0.5179234", "0.51745933", "0.5172538", "0.5170062", "0.5169738", "0.51550204", "0.51539093" ]
0.63984776
0
disconnect ReceivingSpace with retail_store_order in Goods
public ReceivingSpace planToRemoveGoodsListWithRetailStoreOrder(ReceivingSpace receivingSpace, String retailStoreOrderId, Map<String,Object> options)throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ReceivingSpace planToRemoveGoodsListWithRetailStore(ReceivingSpace receivingSpace, String retailStoreId, Map<String,Object> options)throws Exception;", "public ReceivingSpace planToRemoveGoodsListWithSmartPallet(ReceivingSpace receivingSpace, String smartPalletId, Map<String,Object> options)throws Exception;", "public void stopSending ();", "public ReceivingSpace planToRemoveGoodsListWithShippingSpace(ReceivingSpace receivingSpace, String shippingSpaceId, Map<String,Object> options)throws Exception;", "public LWTRTPdu disConnectRsp() throws IncorrectTransitionException;", "public LWTRTPdu disConnectReq() throws IncorrectTransitionException;", "public ReceivingSpace planToRemoveGoodsListWithBizOrder(ReceivingSpace receivingSpace, String bizOrderId, Map<String,Object> options)throws Exception;", "public ReceivingSpace planToRemoveGoodsListWithSku(ReceivingSpace receivingSpace, String skuId, Map<String,Object> options)throws Exception;", "public void sendStop(){\n if (isNetworkGame()){\n sender.println(\"stop\");\n sender.flush();\n }\n }", "public LWTRTPdu disConnectAcpt() throws IncorrectTransitionException;", "public void disbandChannel()\r\n\t{\r\n\t\tif (_partys != null)\r\n\t\tfor (L2Party party : _partys)\r\n\t\t\tif (party != null)\r\n\t\t\t\tremoveParty(party);\r\n\t\t_partys = null;\r\n\t}", "protected void processDisconnection(){}", "public void haltMarket(OrderManagementContext orderManagementContext_);", "@Override public void clientDeclineIncomingGame(Rental rental)\r\n throws RemoteException, SQLException {\r\n gameListClientModel.clientDeclineIncomingGame(rental);\r\n }", "public boolean closeDelivery();", "public void deleteNetWS() {\r\n/* 142 */ this._has_netWS = false;\r\n/* */ }", "public void disconnect(int[] details)throws RemoteException{\n sd.getGames().get(details[0]).setExpired();\n }", "public LWTRTPdu disConnect() throws IncorrectTransitionException;", "public void removeCloseProxDevice() {\n\n // If ScanningService is active\n if (BLEScanningService.isAlive()) {\n\n Iterator it = closeProxBTDevices.entrySet().iterator();\n\n // For each entry in 'Close Proximity List'\n while(it.hasNext()) {\n\n Map.Entry<String, BTDevice> pair = (Map.Entry<String, BTDevice>) it.next();\n System.out.println(\"1. MAC ADDRESS: \" + pair.getKey() + \" \" + \"GET DISTANCE: \" + pair.getValue().getDistance());\n\n // If device has a distance over 2.0 OR putRSSI method was not called in 30 seconds\n if (pair.getValue().getDistance() > 2.0 || ((System.currentTimeMillis() - pair.getValue().getRssiTimeCalled()) > TIME_OUT) ) // 1 minute\n {\n System.out.println(\"2. MAC ADDRESS: \" + pair.getKey() + \" \" + \"GET DISTANCE: \" + pair.getValue().getDistance() + \"TIME BETWEEN CALLS:\" + (System.currentTimeMillis() - pair.getValue().getRssiTimeCalled()));\n\n // End timer, interaction is over\n pair.getValue().getIt().endTimer(System.currentTimeMillis());\n\n System.out.println(\"3. MAC ADDRESS:\" + pair.getKey() + \" \" + \"INTERACTION LENGTH:\" + pair.getValue().getIt().getInteractionLength());\n\n if (pair.getValue().getIt().getInteractionLength() >= MIN_INTERACTION_LENGTH) { // > 1 minutes\n System.out.println(\"4. N MAC ADDRESS:\" + pair.getKey() + \" \" + \"INTERACTION LENGTH:\" + pair.getValue().getIt().getInteractionLength());\n\n Intent mIntent = new Intent();\n mIntent.setClass(this, FeedbackActivity.class);\n mIntent.putExtra(\"second_person_name\", pair.getValue().getName());\n mIntent.putExtra(\"second_person_mac\", pair.getValue().getMACAddress());\n mIntent.putExtra(\"length_interaction\", pair.getValue().getIt().getInteractionLength());\n mIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\n sendNotification(pair.getValue(), mIntent);\n closeProxBTDevices.remove(pair.getKey());\n }\n\n }\n }\n }\n }", "protected void processDisconnect() {\n\t\tconnected.set(false);\n\t\tsenderChannel = null;\n\t}", "ICard deal();", "void cancelProduction();", "public void disconnect() {\n\t\t\n\t}", "void delete(String receiptHandle);", "void cancelOrder(String orderKey);", "abstract protected void onDisconnection();", "void dropPkt();", "public void decommission() {\n\t\tlogger.debug(\"Decommission signal received. Shutting down...\");\n\t\tlogger.logServiceStop(servicePID);\n\t\tkeepRunning = false;\n\t}", "void rejectNewOrders();", "public void destroy() throws BridgeException, BrokerException;", "public void disconnect() {\r\n\t\tsuper.disconnect();\r\n\t}", "@Override\n\tpublic void hideGuaranteedDeliverySection() {\n\n\t}", "public void onDisconnect(HeaderSet req, HeaderSet resp) {\r\n if(req == null)\r\n return;\r\n try {\r\n //clientBluetoothAddress = req.getHeader(HeaderSet.NAME).toString();\r\n Object reqType = req.getHeader(HeaderSets.REQUEST_TYPE);\r\n if(reqType == null)\r\n return;\r\n if (reqType.toString().equals(Types.REQUEST_DISCONNECT)) {\r\n parent.removeClient(clientBluetoothAddress);\r\n //AlertDisplayer.showAlert(\"Disconnected\", \"btADDR : \" +clientBluetoothAddress,parent.gui.getDisplay(),parent.gui.getList());\r\n }\r\n \r\n } catch (IOException e) {\r\n System.err.println(\"Exception in DataTransaction.onConnect()\");\r\n \r\n }\r\n }", "public ReceivingSpace planToRemoveGoodsListWithTransportTask(ReceivingSpace receivingSpace, String transportTaskId, Map<String,Object> options)throws Exception;", "public void close()\r\n {\r\n OrderManager manager = myOrderManagerRegistry.getOrderManager(ourKey);\r\n manager.deactivateParticipant(ourKey);\r\n }", "public void disconnectFromAudio() {\n String json = new Gson().toJson(new TelevisionModel(TelevisionModel.Action.DISCONNECT));\n String a = sendMessage(json);\n TelevisionModel teleM = new Gson().fromJson(a, TelevisionModel.class);\n System.out.println(\"Client Received \" + json);\n\n if (teleM.getAction() == TelevisionModel.Action.DISCONNECT) {\n isDisconnecting = teleM.getValue();\n ui.updateArea(teleM.getMessage());\n };\n }", "public void disconnect(){ \r\n if (matlabEng!=null){ \r\n matlabEng.engEvalString (id,\"bdclose ('all')\");\r\n matlabEng.engClose(id);\r\n matlabEng=null;\r\n id=-1; \r\n }\r\n }", "public void disconnect() {\n\t\tdisconnect(null);\n\t}", "public void disconnect() {}", "public void swigDirectorDisconnect() {\n this.swigCMemOwn = false;\n delete();\n }", "public void disconnect() {\n\t\tdisconnect(true);\n\t}", "public Object dismissTrade() {\n return client.sendRpcAndWait(SERVICE, \"dismissTrade\");\n }", "protected void kill() {\n disconnect = true;\n }", "private void closeSuperMarketSimulation()\r\n\t{\n\t\t\r\n\t\tSystem.out.println(\"CLOSED THE MARKET\");\r\n\t\tSystem.out.println(\" \");\r\n\t\tdataManager.reporter(\"---------------------------THE SUPER MARKET CLOSED---------------------------\");\r\n\t\tdataManager.printResults(this.queueManager.getLongestQueueSize(),this.queueManager.getLongestCustomer(),this.queueManager.getLongestQueueSizeTime());\r\n\t\tdataManager.printReport();\r\n\t\tqueueManager.dequeueEveryone();\r\n\t}", "public void stopNetwork();", "void stopGame() {\n leader.disconnect();\n opponent.disconnect();\n }", "void unsetExchange();", "private void quit() {\n\t\tmSipSdk = myApplication.getPortSIPSDK();\n\n\t\tif (myApplication.isOnline()) {\n\t\t\tLine[] mLines = myApplication.getLines();\n\t\t\tfor (int i = Line.LINE_BASE; i < Line.MAX_LINES; ++i) {\n\t\t\t\tif (mLines[i].getRecvCallState()) {\n\t\t\t\t\tmSipSdk.rejectCall(mLines[i].getSessionId(), 486);\n\t\t\t\t} else if (mLines[i].getSessionState()) {\n\t\t\t\t\tmSipSdk.hangUp(mLines[i].getSessionId());\n\t\t\t\t}\n\t\t\t\tmLines[i].reset();\n\t\t\t}\n\t\t\tmyApplication.setOnlineState(false);\n\t\t\tmSipSdk.unRegisterServer();\n\t\t\tmSipSdk.DeleteCallManager();\n\t\t}\n\t}", "public void stopReceiving() {\n\t\tcallerContext.unregisterReceiver(this);\n\t}", "public void disconnect() {if(mEnable) mBS.disconnect();}", "@Override\n public void stop() {\n setDebrisPusher(DebrisPusherDirection.Down);\n }", "void unsetCapitalPayed();", "public void endSale() {\r\n receipt.outputReceiptItems();\r\n System.out.println(\"\");\r\n System.out.println(\"Thanks for shopping at Java*Mart\");\r\n System.out.println(\"\");\r\n System.out.println(\"[CashRegister] endSale\");\r\n }", "void rejectOrder(String orderId);", "@Override\n\tpublic void disconnect() {\n\n\t}", "@Override\n\tpublic void disconnect() {\n\n\t}", "public void disconnect( ) {\n disconnect( \"\" );\n }", "public void stop() {\n synchronized (car) {\n LOG.info(\"Invalidating APPLY Record\");\n try {\n cas.destroyChannel(dir);\n cas.destroyChannel(val);\n cas.destroyChannel(mess);\n cas.destroyChannel(omss);\n cas.destroyChannel(clid);\n\n car.stop();\n for (CadRecord cad : cads) {\n cad.stop();\n }\n } catch (Exception e) {\n LOG.warning(\"Exception while shutting down apply record \" + e.getMessage());\n }\n }\n }", "public static void disconnect() {\n if (AppSettings.bluetoothConnection != null) \n \tAppSettings.bluetoothConnection.stop();\n\t}", "@Override\n\tpublic void disconnect() {\n\t\t\n\t}", "@Override\n\tpublic void disconnect() {\n\t\t\n\t}", "public void stop() {\n\t\tthis.close(this.btcomm);\n\t}", "public abstract void disconnect() throws OrmException;", "private void closeBrokers() {\n memberBroker.close();\naccountBroker.close();\n }", "public void mBTClose1() {\n if (oBTServer!=null)\n oBTServer.mCloseService2(); //Disconnect a relayed device\n mDisconnect();\n if (oBTadapter != null) {\n if (oBTadapter.isEnabled()) {\n if (isOpenedByMe) //170905 only if this application opened the bluetooth\n oBTadapter.disable();\n }\n }\n if (mReceiver1!=null)\n try { //Protection from crash bugfix 171013\n mContext.unregisterReceiver(mReceiver1);\n }\n catch (final Exception exception) {\n // The receiver was not registered. There is nothing to do in that case. Everything is fine.\n }\n }", "public void disconnect() throws PersistenceMechanismException {\n\t\t\r\n\t}", "public final void disconnect() {\n synchronized (this.lock) {\n if (this.zzbur != null) {\n this.zzbur.disconnect();\n this.zzbur = null;\n Binder.flushPendingCommands();\n }\n }\n }", "public void declineTransaction(CommandOfService c) throws Exception {\n // We give back the points to the user\n Service s = c.getService();\n User u = c.getOwner();\n if(s.getTypeService() == 0){\n userDAO.addPoints(s.getCost(),u);\n }\n DAO.declineTransaction(c);\n FacadeNotification facadeNotification = FacadeNotification.getInstance();\n String title = \"Transaction declined!\";\n String desc = \"Your command for: \"+s.getTitle()+\" has been declined.\\n\";\n try {\n facadeNotification.createNotification(u.getIdUser(),title,desc);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void leaveTheBus(int pid, int seat);", "void makeStopSellOrder(AuthInfo authInfo, String pair, String price, String amount, String stop_price,HibtcApiCallback<Object> callback);", "public void cancelCard() {}", "void endNegotiation();", "@Override\r\n\tpublic void makeDeliveryFree() {\n\t\t\r\n\t}", "public ReceivingSpace planToRemoveGoodsListWithGoodsAllocation(ReceivingSpace receivingSpace, String goodsAllocationId, Map<String,Object> options)throws Exception;", "public void deactivateSCOP(){\r\n SCOP = false;\r\n }", "void exitCurrentStationCard();", "private void freeAgent() {\n }", "public Reply\tdisconnect() throws ThingsException, InterruptedException ;", "public void disconnect()\n\t{\n\t\toriginal = null;\n\t\tsource = null;\n\t\tl10n = null;\n\t}", "public void stop() {\n\t\tconnection.stop();\n\t\tdata.disconnectAll();\n\t\tsaveData();\n\t}", "private void destroy(DynamicConnectivity.Splay s) {\n }", "public void deleteUniversalDeal() {\r\n/* 149 */ this._has_universalDeal = false;\r\n/* */ }", "public void kill() {\n\t\tif (combox == null){\n\t\t\treturn;\n\t\t}\n\t\tPOPBuffer popBuffer = combox.getBufferFactory().createBuffer();\n\t\tMessageHeader messageHeader = new MessageHeader(0,\n\t\t\t\tMessageHeader.KILL_ALL, Semantic.SYNCHRONOUS);\n\t\tmessageHeader.setRequestID(requestID.incrementAndGet());\n\t\tpopBuffer.setHeader(messageHeader);\n\n\t\tpopDispatch(popBuffer);\n\t\ttry {\n\t\t\tPOPBuffer responseBuffer = combox.getBufferFactory().createBuffer();\n\t\t\tpopResponse(responseBuffer, messageHeader.getRequestID());\n\t\t} catch (POPException e) {\n\t\t\treturn;\n\t\t}\n\t}", "void close(Order order);", "void disconnect() throws TransportException;", "public void removeWire(IPWire pres);", "void disconnect(String reason);", "void declineNotification(NotificationDTO selectedNotification);", "private void close() {\n\t\t\tassert this.sendLock.writeLock().isHeldByCurrentThread();\n\t\t\tthis.dead = true;\n\t\t\tStoreRequest s = writesByRows.remove(this.row);\n\t\t\t// This request was THE only request for its row\n\t\t\tassert this == s;\n\t\t\tlogger.fine(this.toString() + \" sent on \" + new Date(System.currentTimeMillis()) + \" and not replanned\");\n\t\t}", "int delWaybillByIdStore(Long id_store);", "public void cancelOrder() {\n order.clear();\n }", "public void disconnectedFromHost();", "public void disconnectConvo() {\n convo = null;\n setConnStatus(false);\n }", "void makeStopBuyOrder(AuthInfo authInfo, String pair, String price, String amount, String stop_price,HibtcApiCallback<Object> callback);", "public void disconnect();", "public void disconnect();", "public void disconnect();", "public void disconnect();", "public void disconnect ()\n {\n org.omg.CORBA.portable.InputStream $in = null;\n try {\n org.omg.CORBA.portable.OutputStream $out = _request (\"disconnect\", true);\n $in = _invoke ($out);\n return;\n } catch (org.omg.CORBA.portable.ApplicationException $ex) {\n $in = $ex.getInputStream ();\n String _id = $ex.getId ();\n throw new org.omg.CORBA.MARSHAL (_id);\n } catch (org.omg.CORBA.portable.RemarshalException $rm) {\n disconnect ( );\n } finally {\n _releaseReply ($in);\n }\n }", "public void doSendOff(final int node) {\n\t\tcheckAddress();\n\n\t\t// send an OSC message to free the node 1000\n\t\tfinal List<Object> args = new ArrayList<Object>(1);\n\t\targs.add(node);\n\t\tfinal OSCMessage msg = new OSCMessage(\"/n_free\", args);\n\n\t\t// try to use the send method of oscPort using the msg in nodeWidget\n\t\t// send an error message if this doesn't happen\n\t\ttry {\n\t\t\toscPort.send(msg);\n\t\t} catch (final Exception ex) {\n\t\t\tshowError(\"Couldn't send\");\n\t\t}\n\t}" ]
[ "0.638151", "0.63052005", "0.59618014", "0.5783772", "0.5748717", "0.57377255", "0.5734346", "0.5682718", "0.5672992", "0.5644491", "0.56405324", "0.5631738", "0.56255794", "0.5617399", "0.5614172", "0.5604468", "0.5597417", "0.55467963", "0.55369884", "0.54989606", "0.5475916", "0.5450546", "0.54466397", "0.5446045", "0.5442639", "0.5439807", "0.5434575", "0.54241794", "0.5420825", "0.54153717", "0.5405987", "0.53901684", "0.53673387", "0.53638333", "0.53562117", "0.53557366", "0.53131425", "0.5312852", "0.5305705", "0.5301073", "0.5296511", "0.52944565", "0.52902967", "0.5278127", "0.5275416", "0.5271346", "0.52692115", "0.52666175", "0.5261959", "0.52581066", "0.5246783", "0.524444", "0.5241064", "0.52327585", "0.52284867", "0.52284867", "0.5224602", "0.52238345", "0.5219262", "0.52172774", "0.52172774", "0.5216474", "0.5209029", "0.520695", "0.5206416", "0.51941186", "0.51881284", "0.5184749", "0.5179392", "0.51777184", "0.5174227", "0.51740736", "0.5173995", "0.5172373", "0.51714015", "0.5168466", "0.5159033", "0.515859", "0.5153823", "0.51498294", "0.51454216", "0.51425254", "0.51411", "0.5136615", "0.5136428", "0.5131461", "0.5129957", "0.5128119", "0.512609", "0.51161087", "0.51123005", "0.5109778", "0.5105922", "0.51042545", "0.51033056", "0.51033056", "0.51033056", "0.51033056", "0.5099554", "0.5095114" ]
0.6359183
1
Ordena as ligacoes, primeiro por custo e depois por estada vs aeroporto
public void sort(){ Collections.sort(_ligacoes, (new Comparator<Ligacao>() { @Override public int compare(Ligacao l1, Ligacao l2){ int resultado = Integer.compare(l1.getCusto(), l2.getCusto()); if (resultado == 0) resultado = Boolean.compare(l1.isAerea(), l2.isAerea()); return resultado; } })); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void jouerOrdinateur() {\n Random rdmPropoOrdi = new Random();\n\n for (int i = 0; i < nbrPosition; i++) {\n int min = 0;\n int max = propositionHaute[i];\n if (propositionBasse[i] != 0) {\n min = propositionBasse[i] + 1;\n }\n\n if (propositionOrdinateur[i] != combinaisonJoueur[i]) {\n int propoOrdi = min + rdmPropoOrdi.nextInt(max - min);\n propositionOrdinateur[i] = (byte) (propoOrdi);\n\n if (propositionOrdinateur[i] < combinaisonJoueur[i]) {\n propositionBasse[i] = propositionOrdinateur[i];\n } else {\n propositionHaute[i] = propositionOrdinateur[i];\n }\n }\n }\n }", "private void cerca(int livello, List<Condiment> parziale, Condiment prescelto) {\n\t\tboolean trovato = false;\n\t\t\n\t\t//Prendiamo l'ultimo coindimento aggiunto\n\t\tCondiment ultimo = parziale.get(livello-1);\n\t\t\n\t\t//Cicliamo la lista dei vertici e aggiungiamo un condimento non adiacente ad ultimo\n\t\tfor (Condiment prossimo : grafo.vertexSet()) {\n\t\t\tif (!Graphs.neighborSetOf(grafo, ultimo).contains(prossimo) && !parziale.contains(prossimo)) {\n\t\t\t\tparziale.add(prossimo);\n\t\t\t\ttrovato = true;\n\t\t\t\tcerca(livello+1, parziale, prescelto);\n\t\t\t\tparziale.remove(livello);\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t//Caso terminale \n\t\tif (!trovato) {\n\t\t\tdouble somma = 0.0;\n\t\t\tfor (Condiment c2 : parziale) {\n\t\t\t\tsomma += c2.getCondiment_calories();\n\t\t\t}\n\t\t\tif (somma > somma_best && parziale.contains(prescelto)) {\n\t\t\t\tsomma_best = somma;\n\t\t\t\tbest = new ArrayList<Condiment>(parziale);\n\t\t\t}\n\t\t\n\t\t}\n\t}", "private Punto getPuntoPriorizado(Punto puntoini, List<Punto> puntos ){\n\t\t\n\t\tPunto puntopriorizado = null;\n\t\t// calculamos la heuristica de distancias a los demas puntos\n\t\tfor (Punto punto : puntos) {\n\t\t\tif( (puntoini!=null && punto!=null) && !puntoini.equals(punto) ){\n\t\t\t\tdouble d = Geometria.distanciaDeCoordenadas(puntoini, punto);\n\t\t\t\tpunto.getDatos().put(\"distanci\", d);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// ordenamos por las heuristicas definidad en la clase comparator\n\t\t// hora atencion, prioridad, urgencia, distancia\n\t\tCollections.sort(puntos, new PuntoHeuristicaComparator1());\n\t\tSystem.out.println(\"### mostrando las heuristicas #####\");\n\t\tmostratPuntosHeuristica(puntos);\n\t\n\t\tif( puntos!=null && puntos.size()>0){\n\t\t\tpuntopriorizado = puntos.get(0);\n\t\t}\n\t\t\n\t\t/*Punto pa = null ;\n\t\tfor (Punto p : puntos) {\n\t\t\tif(pa!=null){\n\t\t\t\tString key = p.getDatos().toString();\n\t\t\t\tString keya = pa.getDatos().toString();\n\t\t\t\tif(!key.equals(keya)){\n\t\t\t\t\tpuntopriorizado = p;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tpa = p ;\n\t\t}*/\n\n\t\treturn puntopriorizado;\n\t}", "private void priorizar() {\r\n if (ini == fin) {\r\n return;\r\n }\r\n\r\n int t1 = fin, t2 = fin - 1;\r\n TDAPrioridad aux = new TDAPrioridad(0, '0');\r\n while (t1 != ini) {\r\n if (datos[t1].getPrioridad() > datos[t2].getPrioridad()) {\r\n aux.setObjeto(datos[t1]);\r\n datos[t1].setObjeto(datos[t2]);\r\n datos[t2].setObjeto(aux);\r\n t2--;\r\n t1--;\r\n } else {\r\n break;\r\n }\r\n }\r\n }", "public void naplnVrcholy() {\r\n System.out.println(\"Zadajte pocet vrcholov: \");\r\n pocetVrcholov = skener.nextInt();\r\n for (int i=0; i < pocetVrcholov; i++) {\r\n nekonecno = (int)(Double.POSITIVE_INFINITY);\r\n if(i==0) { //pre prvy vrchol potrebujeme nastavit vzdialenost 0 \r\n String menoVrcholu = Character.toString((char)(i+65)); //pretipovanie int na String, z i=0 dostanem A\r\n Vrchol vrchol = new Vrchol(menoVrcholu, 0, \"\"); //vrcholu nastavim vzdialenost a vrcholPrichodu \r\n vrcholy.add(vrchol);\r\n } else { //ostatne budu mat nekonecno alebo v tomto pripade 9999 (lebo tuto hodnotu v mensich grafoch nepresiahnem)\r\n String menoVrcholu = Character.toString((char)(i+65)); //pretipovanie int na String, z i=0 dostanem A\r\n Vrchol vrchol = new Vrchol(menoVrcholu,nekonecno, \"\"); //vrcholu nastavim vzdialenost a vrcholPrichodu \r\n vrcholy.add(vrchol);\r\n }\r\n }\r\n }", "public void ordenaPontos(){\r\n\t\tloja.ordenaPontos();\r\n\t}", "private Map<String, List<PreDocumentoEntrata>> raggruppaPrimoLivelloConStatoCompleto(List<PreDocumentoEntrata> preDocumentiEntrata) {\n\t\tString methodName = \"raggruppaPrimoLivelloConStatoCompleto\";\n\t\t\n\t\tMap<String, List<PreDocumentoEntrata>> result = new HashMap<String, List<PreDocumentoEntrata>>();\n\t\t\n\t\tfor(PreDocumentoEntrata preDoc : preDocumentiEntrata) {\n\t\t\t\n\t\t\tpreDoc = getDettaglioPreDocumentoEntrata(preDoc);\n\t\t\t\n\t\t\tString key = getDocumentoKey(preDoc);\n\t\t\t\t\t\t\n\t\t\tif(!isCompleto(preDoc)) {\t\n\t\t\t\tlog.info(methodName, \"Saltato perche' non completo: \"+key);\n\t\t\t\tinserisciDettaglioOperazioneAsinc(\"SALTATO\", \" predocumento: \" + preDoc.getNumero() + \" [\"+preDoc.getUid()+\"] - \" + preDoc.getDescrizione(), Esito.FALLIMENTO, \"Non completo\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tinserisciDettaglioOperazioneAsinc(\"AGGIORNATO\", \" predocumento: \" + preDoc.getNumero() + \" [\"+preDoc.getUid()+\"] - \" + preDoc.getDescrizione(), Esito.SUCCESSO);\n\t\t\t\n\t\t\t\n\t\t\tif(!result.containsKey(key)) {\n\t\t\t\tresult.put(key, new ArrayList<PreDocumentoEntrata>());\t\t\t\t\n\t\t\t\tlog.debug(methodName, \"Nuovo gruppo di primo livello: \"+key);\n\t\t\t}\n\t\t\t\n\t\t\tList<PreDocumentoEntrata> list = result.get(key);\t\t\t\n\t\t\tlist.add(preDoc);\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\treturn result;\n\t}", "public void carroPulando() {\n\t\tpulos++;\n\t\tpulo = (int) (PULO_MAXIMO/10);\n\t\tdistanciaCorrida += pulo;\n\t\tif (distanciaCorrida > distanciaTotalCorrida) {\n\t\t\tdistanciaCorrida = distanciaTotalCorrida;\n\t\t}\n\t}", "public ArrayList<Producto> getProductosOrdenados(ArrayList<Producto> productosEncontrados,Cliente comprador) {\n \n //Comparador para ordenar los productos por su urgencia y proximidad\n\n ArrayList <Producto> productosOrdenados=new ArrayList<>();\n ArrayList <Producto> muyCerca = new ArrayList<>();\n ArrayList <Producto> cerca = new ArrayList<>();\n ArrayList <Producto> lejos = new ArrayList<>();\n String codigoPostalComprador = comprador.getUbicacion().getCodigoPostal();\n String codigoPostalProducto;\n Comparator porUrgencia = new Comparator() { \n public int compare(Object o1, Object o2) {\n\n\n Producto p1 = (Producto)o1;\n Producto p2 = (Producto)o2;\n\n String bool1;\n String bool2;\n if(p1.getUrgente()){\n bool1=\"0\";\n }else{\n bool1=\"1\";\n }\n if(p2.getUrgente()){\n bool2=\"0\";\n }else{\n bool2=\"1\";\n }\n\n String b1 = bool1;\n String b2 = bool2; \n return b1.compareTo(b2);\n }\n };\n\n for(Producto cadaProducto : productosEncontrados){\n codigoPostalProducto=cadaProducto.getUbicacionCliente().getCodigoPostal();\n if(codigoPostalComprador.substring(0, 3).equalsIgnoreCase(codigoPostalProducto.substring(0, 3))){\n muyCerca.add(cadaProducto);\n }else{\n if(codigoPostalComprador.substring(0, 2).equalsIgnoreCase(codigoPostalProducto.substring(0, 2))){\n cerca.add(cadaProducto);\n }else{\n lejos.add(cadaProducto);\n }\n }\n\n }\n if(muyCerca.size()>0){ \n Collections.sort(muyCerca,porUrgencia);\n productosOrdenados.addAll(muyCerca);\n }\n if(cerca.size()>0){\n Collections.sort(cerca,porUrgencia);\n productosOrdenados.addAll(cerca);\n } \n if(lejos.size()>0){\n Collections.sort(lejos,porUrgencia);\n productosOrdenados.addAll(lejos);\n }\n return productosOrdenados;\n \n \n }", "public static void llenarSoriana(){\r\n Producto naranja1 = new Producto (\"naranja\", \"el huertito\", 25, 0);\r\n Nodo<Producto> nTemp1 = new Nodo(naranja1);\r\n listaSoriana.agregarNodo(nTemp1);\r\n \r\n Producto naranja2 = new Producto (\"naranja\", \"el ranchito\", 34, 0);\r\n Nodo<Producto> nTemp2 = new Nodo (naranja2);\r\n listaSoriana.agregarNodo(nTemp2);\r\n \r\n Producto manzana3 = new Producto (\"manzana\", \"el rancho de don chuy\", 24, 0);\r\n Nodo<Producto> nTemp3 = new Nodo (manzana3);\r\n listaSoriana.agregarNodo(nTemp3);\r\n \r\n Producto manzana4 = new Producto (\"manzana\", \"la costeña\", 15, 0);\r\n Nodo<Producto> nTemp4 = new Nodo(manzana4);\r\n listaSoriana.agregarNodo(nTemp4);\r\n \r\n Producto platano5 = new Producto (\"platano\", \"el Huertito\", 26, 0);\r\n Nodo<Producto> nTemp5 = new Nodo (platano5);\r\n listaSoriana.agregarNodo(nTemp5);\r\n \r\n Producto platano6 = new Producto (\"platano\", \"granjita dorada\", 36, 0);\r\n Nodo<Producto> nTemp6 = new Nodo (platano6);\r\n listaSoriana.agregarNodo (nTemp6);\r\n \r\n Producto pera7 = new Producto (\"pera\", \"el rancho de don chuy\", 38, 0);\r\n Nodo<Producto> nTemp7 = new Nodo (pera7);\r\n listaSoriana.agregarNodo(nTemp7);\r\n \r\n Producto pera8 = new Producto (\"pera\", \"la costeña\", 8,0);\r\n Nodo<Producto> nTemp8 = new Nodo (pera8);\r\n listaSoriana.agregarNodo(nTemp8);\r\n \r\n Producto durazno9 = new Producto (\"durazno\", \"el huertito\", 12.50, 0);\r\n Nodo<Producto> nTemp9 = new Nodo (durazno9);\r\n listaSoriana.agregarNodo(nTemp9);\r\n \r\n Producto fresa10 = new Producto (\"fresa\", \"el rancho de don chuy\", 35.99,0);\r\n Nodo<Producto> nTemp10 = new Nodo (fresa10);\r\n listaSoriana.agregarNodo(nTemp10);\r\n \r\n Producto fresa11 = new Producto (\"fresa\", \"grajita dorada\", 29.99,0);\r\n Nodo<Producto> nTemp11 = new Nodo (fresa11);\r\n listaSoriana.agregarNodo(nTemp11);\r\n \r\n Producto melon12 = new Producto (\"melon\", \"la costeña\", 18.50, 0);\r\n Nodo<Producto> nTemp12 = new Nodo (melon12);\r\n listaSoriana.agregarNodo(nTemp12);\r\n \r\n Producto melon13 = new Producto (\"melon\", \"el huertito\", 8.50, 0);\r\n Nodo<Producto> nTemp13 = new Nodo (melon13);\r\n listaSoriana.agregarNodo(nTemp13);\r\n \r\n Producto elote14 = new Producto (\"elote\", \"el ranchito\", 6, 0);\r\n Nodo<Producto> nTemp14 = new Nodo (elote14);\r\n listaSoriana.agregarNodo(nTemp14);\r\n \r\n Producto elote15 = new Producto (\"elote\", \"moctezuma\", 12, 0);\r\n Nodo<Producto> nTemp15 = new Nodo (elote15);\r\n listaSoriana.agregarNodo(nTemp15);\r\n \r\n Producto aguacate16 = new Producto (\"aguacate\", \"la costeña\", 35, 0);\r\n Nodo<Producto> nTemp16 = new Nodo (aguacate16);\r\n listaSoriana.agregarNodo(nTemp16);\r\n \r\n Producto cebolla17 = new Producto (\"cebolla\", \"granjita dorada\", 8.99, 0);\r\n Nodo<Producto> nTemp17 = new Nodo (cebolla17);\r\n listaSoriana.agregarNodo(nTemp17);\r\n \r\n Producto tomate18 = new Producto (\"tomate\", \"el costeñito feliz\", 10.50, 0);\r\n Nodo<Producto> nTemp18 = new Nodo (tomate18);\r\n listaSoriana.agregarNodo(nTemp18);\r\n \r\n Producto tomate19 = new Producto (\"tomate\", \"el ranchito\", 8.99, 0);\r\n Nodo<Producto> nTemp19 = new Nodo (tomate19);\r\n listaSoriana.agregarNodo(nTemp19);\r\n \r\n Producto limon20 = new Producto (\"limon\", \"la costeña\", 3.50, 0);\r\n Nodo<Producto> nTemp20 = new Nodo (limon20);\r\n listaSoriana.agregarNodo(nTemp20);\r\n \r\n Producto limon21 = new Producto (\"limon\", \"el ranchito\", 10.99, 0);\r\n Nodo<Producto> nTemp21 = new Nodo (limon21);\r\n listaSoriana.agregarNodo(nTemp21);\r\n \r\n Producto papas22 = new Producto (\"papas\", \"la costeña\", 11, 0);\r\n Nodo<Producto> nTemp22 = new Nodo(papas22);\r\n listaSoriana.agregarNodo(nTemp22);\r\n \r\n Producto papas23 = new Producto (\"papas\", \"granjita dorada\", 4.99, 0);\r\n Nodo<Producto> nTemp23 = new Nodo(papas23);\r\n listaSoriana.agregarNodo(nTemp23);\r\n \r\n Producto chile24 = new Producto (\"chile\", \"el rancho de don chuy\", 2.99, 0);\r\n Nodo<Producto> nTemp24 = new Nodo (chile24);\r\n listaSoriana.agregarNodo(nTemp24);\r\n \r\n Producto chile25 = new Producto (\"chile\",\"la costeña\", 12, 0);\r\n Nodo<Producto> nTemp25 = new Nodo (chile25);\r\n listaSoriana.agregarNodo(nTemp25);\r\n \r\n Producto jamon26 = new Producto (\"jamon\",\"fud\", 25, 1);\r\n Nodo<Producto> nTemp26 = new Nodo(jamon26);\r\n listaSoriana.agregarNodo(nTemp26);\r\n \r\n Producto jamon27 = new Producto(\"jamon\", \"kir\", 13.99, 1);\r\n Nodo<Producto> nTemp27 = new Nodo(jamon27);\r\n listaSoriana.agregarNodo(nTemp27);\r\n \r\n Producto peperoni28 = new Producto (\"peperoni28\", \"fud\", 32, 1);\r\n Nodo<Producto> nTemp28 = new Nodo (peperoni28);\r\n listaSoriana.agregarNodo(nTemp28);\r\n \r\n Producto salchicha29 = new Producto (\"salchicha\", \" san rafael\", 23.99, 1);\r\n Nodo<Producto> nTemp29 = new Nodo (salchicha29);\r\n listaSoriana.agregarNodo(nTemp29); \r\n \r\n Producto huevos30 = new Producto (\"huevos\", \"san rafael\", 30.99, 1);\r\n Nodo<Producto> nTemp30 = new Nodo (huevos30);\r\n listaSoriana.agregarNodo(nTemp30);\r\n \r\n Producto chuletas31 = new Producto (\"chuletas\", \"la res dorada\", 55, 1);\r\n Nodo<Producto> nTemp31 = new Nodo (chuletas31);\r\n listaSoriana.agregarNodo(nTemp31);\r\n \r\n Producto carnemolida32 = new Producto (\"carne molida\", \"san rafael\", 34, 1);\r\n Nodo<Producto> nTemp32 = new Nodo (carnemolida32);\r\n listaSoriana.agregarNodo(nTemp32);\r\n \r\n Producto carnemolida33 = new Producto (\"carne molida\", \"la res dorada\", 32.99, 1);\r\n Nodo<Producto> nTemp33 = new Nodo (carnemolida33);\r\n listaSoriana.agregarNodo(nTemp33);\r\n \r\n Producto pollo34 = new Producto (\"pollo\", \"pollito feliz\", 38, 1);\r\n Nodo<Producto> nTemp34 = new Nodo (pollo34);\r\n listaSoriana.agregarNodo(nTemp34);\r\n \r\n Producto pescado35 = new Producto (\"pescado\", \"pescadito\", 32.99, 1);\r\n Nodo<Producto> nTemp35 = new Nodo (pescado35);\r\n listaSoriana.agregarNodo(nTemp35);\r\n \r\n Producto quesolaurel36 = new Producto (\"queso\", \"laurel\", 23.50, 1);\r\n Nodo<Producto> nTemp36 = new Nodo (quesolaurel36);\r\n listaSoriana.agregarNodo(nTemp36);\r\n \r\n Producto leche37 = new Producto (\"leche\", \"nutrileche\", 12.99, 1);\r\n Nodo<Producto> nTemp37 = new Nodo (leche37);\r\n listaSoriana.agregarNodo(nTemp37);\r\n \r\n Producto lechedeslactosada38 = new Producto (\"leche deslactosada\", \"lala\", 17.50, 1);\r\n Nodo<Producto> nTemp38 = new Nodo (lechedeslactosada38);\r\n listaSoriana.agregarNodo(nTemp38);\r\n \r\n Producto panblanco39 = new Producto (\"pan blanco\", \"bombo\", 23.99, 2);\r\n Nodo<Producto> nTemp39 = new Nodo (panblanco39);\r\n listaSoriana.agregarNodo(nTemp39);\r\n \r\n Producto atun40 = new Producto (\"atun\", \"la aleta feliz\", 12, 2);\r\n Nodo<Producto> nTemp40 = new Nodo (atun40);\r\n listaSoriana.agregarNodo(nTemp40);\r\n \r\n Producto atun41 = new Producto (\"atun\", \"el barco\", 10.99, 2);\r\n Nodo<Producto> nTemp41 = new Nodo (atun41);\r\n listaSoriana.agregarNodo(nTemp41);\r\n \r\n Producto arroz42 = new Producto (\"arroz\", \"mi marca\", 12.50, 2);\r\n Nodo<Producto> nTemp42 = new Nodo (arroz42);\r\n listaSoriana.agregarNodo(nTemp42);\r\n \r\n Producto arroz43 = new Producto (\"arroz\", \"soriana\", 9.99, 2);\r\n Nodo<Producto> nTemp43 = new Nodo (arroz43);\r\n listaSoriana.agregarNodo(nTemp43);\r\n \r\n Producto frijol44 = new Producto (\"frijol\", \"mi marca\", 10.99, 2);\r\n Nodo<Producto> nTemp44 = new Nodo (frijol44);\r\n listaSoriana.agregarNodo(nTemp44);\r\n \r\n Producto frijol45 = new Producto (\"frijol\", \"soriana\", 15.99, 2);\r\n Nodo<Producto> nTemp45 = new Nodo (frijol45);\r\n listaSoriana.agregarNodo(nTemp45);\r\n \r\n Producto azucar46 = new Producto (\"azucar\", \"mi marca\", 12.50, 2);\r\n Nodo<Producto> nTemp46 = new Nodo (azucar46);\r\n listaSoriana.agregarNodo(nTemp46);\r\n \r\n Producto azucar47 = new Producto (\"azucar\", \"zulka\", 15.99, 2);\r\n Nodo<Producto> nTemp47 = new Nodo (azucar47);\r\n listaSoriana.agregarNodo(nTemp47);\r\n \r\n Producto servilletas48 = new Producto (\"servilletas\", \"esponjosas\",10.50, 2);\r\n Nodo<Producto> nTemp48 = new Nodo (servilletas48);\r\n listaSoriana.agregarNodo(nTemp48);\r\n \r\n Producto sal49 = new Producto (\"sal\", \"mar azul\", 3.99, 2);\r\n Nodo<Producto> nTemp49 = new Nodo (sal49);\r\n listaSoriana.agregarNodo(nTemp49);\r\n \r\n Producto aceitedecocina50 = new Producto (\"aceite de cocina\", \"123\", 15.99, 2);\r\n Nodo<Producto> nTemp50 = new Nodo (aceitedecocina50);\r\n listaSoriana.agregarNodo(nTemp50);\r\n \r\n Producto caffe51 = new Producto (\"caffe\", \"nescafe\", 23, 2);\r\n Nodo<Producto> nTemp51 = new Nodo (caffe51);\r\n listaSoriana.agregarNodo(nTemp51);\r\n \r\n Producto puredetomate52 = new Producto (\"pure de tomate\", \" la costeña\", 12.99, 2);\r\n Nodo<Producto> nTemp52 = new Nodo (puredetomate52);\r\n listaSoriana.agregarNodo(nTemp52);\r\n \r\n Producto lentejas53 = new Producto (\"lentejas\", \"la granjita\", 8.99, 2);\r\n Nodo<Producto> nTemp53 = new Nodo (lentejas53);\r\n listaSoriana.agregarNodo(nTemp53);\r\n \r\n Producto zuko54 = new Producto (\"zuko\", \"zuko\", 2.99, 2);\r\n Nodo<Producto> nTemp54 = new Nodo (zuko54);\r\n listaSoriana.agregarNodo(nTemp54);\r\n \r\n Producto champu55 = new Producto (\"champu\", \"loreal\", 32, 3);\r\n Nodo<Producto> nTemp55 = new Nodo (champu55);\r\n listaSoriana.agregarNodo(nTemp55);\r\n \r\n Producto champu56 = new Producto (\"champu\", \"el risueño\", 29.99, 3);\r\n Nodo<Producto> nTemp56 = new Nodo (champu56);\r\n listaSoriana.agregarNodo(nTemp56);\r\n \r\n Producto desodorante57 = new Producto (\"desodorante\", \"nivea\", 23.50, 3);\r\n Nodo<Producto> nTemp57 = new Nodo (desodorante57);\r\n listaSoriana.agregarNodo(nTemp57);\r\n \r\n Producto pastadedientes58 = new Producto(\"pasta de dientes\", \"colgate\", 17.50, 3);\r\n Nodo<Producto> nTemp58 = new Nodo (pastadedientes58);\r\n listaSoriana.agregarNodo(nTemp58);\r\n \r\n Producto pastadedientes59 = new Producto (\"pasta de dientes\", \"el diente blanco\", 29, 3);\r\n Nodo<Producto> nTemp59 = new Nodo (pastadedientes59);\r\n listaSoriana.agregarNodo(nTemp59);\r\n \r\n Producto rastrillos60 = new Producto (\"rastrillos\", \"el filosito\", 33.99, 3);\r\n Nodo<Producto> nTemp60 = new Nodo (rastrillos60);\r\n listaSoriana.agregarNodo(nTemp60);\r\n \r\n Producto rastrillos61 = new Producto (\"rastrillos\", \"barba de oro\", 23.99, 3);\r\n Nodo<Producto> nTemp61 = new Nodo (rastrillos61);\r\n listaSoriana.agregarNodo(nTemp61);\r\n \r\n Producto hilodental62 = new Producto (\"hilo dental\", \"el diente blanco\", 32.99, 3);\r\n Nodo<Producto> nTemp62 = new Nodo (hilodental62);\r\n listaSoriana.agregarNodo(nTemp62);\r\n \r\n Producto cepillodedientes63 = new Producto (\"cepillo de dientes\", \"OBBM\", 17.99, 3);\r\n Nodo<Producto> nTemp63 = new Nodo (cepillodedientes63);\r\n listaSoriana.agregarNodo(nTemp63);\r\n \r\n Producto cloro64 = new Producto (\"cloro\", \"cloralex\", 23.50, 3);\r\n Nodo<Producto> nTemp64 = new Nodo (cloro64);\r\n listaSoriana.agregarNodo(nTemp64);\r\n \r\n Producto acondicionador65 = new Producto (\"acondicionador\", \"sedal\", 28.99, 3);\r\n Nodo<Producto> nTemp65 = new Nodo (acondicionador65);\r\n listaSoriana.agregarNodo(nTemp65);\r\n \r\n Producto acondicionador66 = new Producto (\"acondicionador\", \"pantene\", 23.99, 3);\r\n Nodo<Producto> nTemp66 = new Nodo (acondicionador66);\r\n listaSoriana.agregarNodo(nTemp66);\r\n \r\n Producto pinol67 = new Producto(\"pinol\", \"mi piso limpio\", 15, 3);\r\n Nodo<Producto> nTemp67 = new Nodo (pinol67);\r\n listaSoriana.agregarNodo(nTemp67);\r\n \r\n Producto pinol68 = new Producto (\"pinol\", \"eficaz\", 18.99, 3);\r\n Nodo<Producto> nTemp68 = new Nodo (pinol68);\r\n listaSoriana.agregarNodo(nTemp68);\r\n \r\n Producto tortillas69 = new Producto (\"tortillas\", \"maizena\", 8.99, 2);\r\n Nodo<Producto> nTemp69 = new Nodo (tortillas69);\r\n listaSoriana.agregarNodo(nTemp69);\r\n \r\n Producto cremaparacuerpo70 = new Producto (\"crema para cuerpo\", \"dove\", 13.50, 3);\r\n Nodo<Producto> nTemp70 = new Nodo (cremaparacuerpo70);\r\n listaSoriana.agregarNodo(nTemp70);\r\n \r\n Producto maizoro71 = new Producto (\"maizoro\", \"special k\", 35.99, 2);\r\n Nodo<Producto> nTemp71 = new Nodo (maizoro71);\r\n listaSoriana.agregarNodo(nTemp71);\r\n \r\n Producto maizoro72 = new Producto (\"maizoro\",\"azucaradas\", 43, 2);\r\n Nodo<Producto> nTemp72 = new Nodo (maizoro72);\r\n listaSoriana.agregarNodo(nTemp72);\r\n \r\n Producto zanahoria73 = new Producto (\"zanahoria\", \"el huertito\", 12.99, 0);\r\n Nodo<Producto> nTemp73 = new Nodo (zanahoria73);\r\n listaSoriana.agregarNodo(nTemp73);\r\n \r\n Producto maizoro74 = new Producto (\"maizoro\", \"cherrios\", 45, 2);\r\n Nodo<Producto> nTemp74 = new Nodo (maizoro74);\r\n listaSoriana.agregarNodo(nTemp74);\r\n \r\n Producto mayonesa75 = new Producto (\"mayonesa\", \"helmans\", 23, 2);\r\n Nodo<Producto> nTemp75 = new Nodo (mayonesa75);\r\n listaSoriana.agregarNodo(nTemp75);\r\n }", "ArrayList<Float> pierwszaPredykcja()\n\t{\n\t\tif (Stale.scenariusz<100)\n\t\t{\n\t\t\treturn pierwszaPredykcjaNormal();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//dla scenariusza testowego cnea predykcji jest ustawiana na 0.30\n\t\t\tArrayList<Float> L1 = new ArrayList<>();\n\t\t\tL1.add(0.30f);\n\t\t\treturn L1;\n\t\t}\n\t}", "private void caricaLivelloDiLegge() {\n\t\ttry {\n\t\t\t//TODO riutilizzo il piano dei conti caricato in precedenza ma associato al padre (per evitare un nuovo accesso a db)! verificare se va bene!\n\t\t\tlivelloDiLegge = conto.getContoPadre().getPianoDeiConti().getClassePiano().getLivelloDiLegge();\n\t\t} catch(NullPointerException npe) {\n\t\t\tthrow new BusinessException(\"Impossibile determinare il livello di legge associato al conto. Verificare sulla base dati il legame con il piano dei conti e la classe piano.\");\n\t\t}\n\t}", "public void regolaOrdineInMenu(int codRiga) {\n\n /** variabili e costanti locali di lavoro */\n Modulo moduloPiatto = null;\n Modulo moduloRighe = null;\n\n Campo campoOrdineRiga = null;\n\n int codPiatto = 0;\n int codiceMenu = 0;\n int codiceCategoria = 0;\n\n Filtro filtro = null;\n\n int ordineMassimo = 0;\n Integer nuovoOrdine = null;\n int valoreOrdine = 0;\n Integer valoreNuovo = null;\n\n Object valore = null;\n int[] chiavi = null;\n int chiave = 0;\n\n try { // prova ad eseguire il codice\n\n /* regolazione variabili di lavoro */\n moduloRighe = this.getModulo();\n moduloPiatto = this.getModuloPiatto();\n campoOrdineRiga = this.getModulo().getCampoOrdine();\n\n /* recupera il codice del piatto dalla riga */\n valore = moduloRighe.query().valoreCampo(RMP.CAMPO_PIATTO, codRiga);\n codPiatto = Libreria.objToInt(valore);\n\n /* recupera il codice del menu dalla riga */\n valore = moduloRighe.query().valoreCampo(RMP.CAMPO_MENU, codRiga);\n codiceMenu = Libreria.objToInt(valore);\n\n /* recupera il codice categoria dal piatto */\n valore = moduloPiatto.query().valoreCampo(Piatto.CAMPO_CATEGORIA, codPiatto);\n codiceCategoria = Libreria.objToInt(valore);\n\n /* crea un filtro per ottenere tutte le righe comandabili di\n * questa categoria esistenti nel menu */\n filtro = this.filtroRigheCategoriaComandabili(codiceMenu, codiceCategoria);\n\n /* aggiunge un filtro per escludere la riga corrente */\n filtro.add(this.filtroEscludiRiga(codRiga));\n\n /* determina il massimo numero d'ordine tra le righe selezionate dal filtro */\n ordineMassimo = this.getModulo().query().valoreMassimo(campoOrdineRiga, filtro);\n\n /* determina il nuovo numero d'ordine da assegnare alla riga */\n if (ordineMassimo != 0) {\n nuovoOrdine = new Integer(ordineMassimo + 1);\n } else {\n nuovoOrdine = new Integer(1);\n } /* fine del blocco if-else */\n\n /* apre un \"buco\" nella categoria spostando verso il basso di una\n * posizione tutte le righe di questa categoria che hanno un numero\n * d'ordine uguale o superiore al numero d'ordine della nuova riga\n * (sono le righe non comandabili) */\n\n /* crea un filtro per selezionare le righe non comandabili della categoria */\n filtro = filtroRigheCategoriaNonComandabili(codiceMenu, codiceCategoria);\n\n /* aggiunge un filtro per escludere la riga corrente */\n filtro.add(this.filtroEscludiRiga(codRiga));\n\n /* recupera le chiavi dei record selezionati dal filtro */\n chiavi = this.getModulo().query().valoriChiave(filtro);\n\n /* spazzola le chiavi */\n for (int k = 0; k < chiavi.length; k++) {\n chiave = chiavi[k];\n valore = this.getModulo().query().valoreCampo(campoOrdineRiga, chiave);\n valoreOrdine = Libreria.objToInt(valore);\n valoreNuovo = new Integer(valoreOrdine + 1);\n this.getModulo().query().registraRecordValore(chiave, campoOrdineRiga, valoreNuovo);\n } // fine del ciclo for\n\n /* assegna il nuovo ordine alla riga mettendola nel buco */\n this.getModulo().query().registraRecordValore(codRiga, campoOrdineRiga, nuovoOrdine);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public void hallarPerimetroIsosceles() {\r\n this.perimetro = 2*(this.ladoA+this.ladoB);\r\n }", "public static void trazenjeVozila(Iznajmljivac o) {\n\t\tLocalDate pocetniDatum = UtillMethod.unosDatum(\"pocetni\");\n\t\tLocalDate krajnjiDatum = UtillMethod.unosDatum(\"krajnji\");\n\t\tSystem.out.println(\"------------------------------------\");\n\t\tSystem.out.println(\"Provera dostupnosti vozila u toku...\\n\");\n\t\tArrayList<Vozilo> dostupnaVoz = new ArrayList<Vozilo>();\n\t\tint i = 0;\n\t\tfor (Vozilo v : Main.getVozilaAll()) {\n\t\t\tif (!postojiLiRezervacija(v, pocetniDatum, krajnjiDatum) && !v.isVozObrisano()) {\n\t\t\t\tSystem.out.println(i + \"-\" + v.getVrstaVozila() + \"-\" + \"Registarski broj\" + \"-\" + v.getRegBR()\n\t\t\t\t\t\t+ \"-Potrosnja na 100km-\" + v.getPotrosnja100() + \"litara\");\n\t\t\t\ti++;\n\t\t\t\tdostupnaVoz.add(v);\n\t\t\t}\n\t\t}\n\t\tif (i > 0) {\n\t\t\tSystem.out.println(\"------------------------------------------------\");\n\t\t\tSystem.out.println(\"Ukucajte kilometrazu koju planirate da predjete:\");\n\t\t\tdouble km = UtillMethod.unesiteBroj();\n\t\t\tint km1 = (int) km;\n\t\t\tporedjenjeVozila d1 = new poredjenjeVozila(km1);\n\t\t\tCollections.sort(dostupnaVoz,d1);\n\t\t\tint e = 0;\n\t\t\tfor(Vozilo v : dostupnaVoz) {\n\t\t\t\tdouble temp = cenaTroskaVoz(v, km, v.getGorivaVozila().get(0));\n\t\t\t\tSystem.out.println(e + \" - \" + v.getVrstaVozila()+ \"-Registarski broj: \"+ v.getRegBR()+\" | \"+ \"Cena na dan:\"+v.getCenaDan() +\" | Broj sedista:\"+ v.getBrSedist()+ \" | Broj vrata:\"+ v.getBrVrata() + \"| Cena troskova puta:\" + temp + \" Dinara\");\n\t\t\t\te++;\n\t\t\t}\n\t\t\tSystem.out.println(\"---------------------------------------\");\n\t\t\tSystem.out.println(\"Unesite redni broj vozila kojeg zelite:\");\n\t\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\t\tif (redniBroj < dostupnaVoz.size()) {\n\t\t\t\tDateTimeFormatter formatters = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n\t\t\t\tString pocetni = pocetniDatum.format(formatters);\n\t\t\t\tString krajnji = krajnjiDatum.format(formatters);\n\t\t\t\tdouble cena = UtillMethod.cenaIznaj(pocetniDatum, krajnjiDatum, dostupnaVoz.get(redniBroj));\n\t\t\t\tRezervacija novaRez = new Rezervacija(dostupnaVoz.get(redniBroj), o, cena, false, pocetni, krajnji);\n\t\t\t\tMain.getRezervacijeAll().add(novaRez);\n\t\t\t\tSystem.out.println(\"Uspesno ste napravili rezervaciju!\");\n\t\t\t\tSystem.out.println(\"---------------------------------\");\n\t\t\t\tSystem.out.println(novaRez);\n\t\t\t\tSystem.out.println(\"---------------------------------\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Uneli ste pogresan redni broj!\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Nema dostupnih vozila za rezervaaciju.\");\n\t\t}\n\t}", "public int orientaceGrafu(){\n\t\tint poc = 0;\n\t\tfor(int i = 0 ; i < hrana.length ; i++){\n\t\t\tif(!oriNeboNeoriHrana(hrana[i].zacatek,hrana[i].konec))\n\t\t\t poc++;\n\t\t}\n\t\tif(poc == 0 )\n\t\t\treturn 0;\n\t\t\n\t\tif(poc == pocetHr)\n\t\t\treturn 1;\n\t\t\n\t\t\n\t\t\treturn 2;\n\t\t \n\t\t\n\t\t\t\t\t\n\t}", "public void solucioInicial2() {\n int grupsRecollits = 0;\n for (int i=0; i<numCentres*helisPerCentre; ++i) {\n Helicopter hel = new Helicopter();\n helicopters.add(hel);\n }\n int indexHelic = 0;\n int indexGrup = 0;\n int places = 15;\n while (indexGrup < numGrups) {\n int trajecte[] = {-1,-1,-1};\n for (int i=0; i < 3 && indexGrup<numGrups; ++i) {\n Grupo grup = grups.get( indexGrup );\n if (places - grup.getNPersonas() >= 0) {\n places -= grup.getNPersonas();\n trajecte[i] = indexGrup;\n indexGrup++;\n\n }\n else i = 3;\n }\n Helicopter helicopter = helicopters.get( indexHelic );\n helicopter.addTrajecte( trajecte, indexHelic/helisPerCentre );\n places = 15;\n indexHelic++;\n if (indexHelic == numCentres*helisPerCentre) indexHelic = 0;\n }\n }", "@Test\n\tpublic void deveEntenderLancesEmOrdemCrescente() {\n\t\tLeilao leilao = new LeilaoDataBuilder().leilao(\"Playstation 3 Novo\")\n\t\t\t\t.lance(maria, 250.0)\n\t\t\t\t.lance(joao, 300.0)\n\t\t\t\t.lance(jose, 400.0).constroi();\n\n\t\t// Parte 2: executando a acao\n\t\t// Avaliador leiloeiro = new Avaliador(); // invocado no método auxiliar @Before\n\t\tleiloeiro.avalia(leilao);\n\n\t\t// Parte 3: comparando a saida com o esperado\n//\t\tdouble maiorEsperado = 400;\n//\t\tdouble menorEsperado = 250;\n\t\t// afirmar iqualdade do maior esperado com o que o leiloeiro retorna\n//\t\tassertEquals(maiorEsperado, leiloeiro.getMaiorLance(), 0.0001);\n//\t\tassertEquals(menorEsperado, leiloeiro.getMenorLance(), 0.0001);\n\n\t\t//com Hamcrest - mais legível\n\t\t// afirmar que o retorno de leiloeiro é igual a 400.0\n\t\tassertThat(leiloeiro.getMaiorLance(), equalTo(400.0));\n\t\tassertThat(leiloeiro.getMenorLance(), equalTo(250.0));\n\n\t}", "public void ganarDineroPorAutomoviles() {\n for (Persona p : super.getMundo().getListaDoctores()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaAlbaniles()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaHerreros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n }", "private void moverJogadorAPosicao(int jogador, int valorDados, boolean iguais) {\n int tentativasDeSairDaPrisao = this.listaJogadores.get(jogadorAtual()).getTentativasSairDaPrisao();\n //Analisando se o cara esta preso, se a prisao ta ativada e se o cara tentou um numero de vezes menos que tres\n //ou se a funcao prisao esta falsa\n //ou se o jogador nao esta preso\n if ((JogadorEstaPreso(this.listaJogadores.get(jogadorAtual()).getNome()) && iguais && this.prisao == true && tentativasDeSairDaPrisao <= 2) || this.prisao == false || (!JogadorEstaPreso(this.listaJogadores.get(jogadorAtual()).getNome()) && this.prisao == true)) {\n if (JogadorEstaPreso(this.listaJogadores.get(jogadorAtual()).getNome()) && iguais && this.prisao == true && tentativasDeSairDaPrisao < 2);\n {\n this.sairdaPrisao(this.listaJogadores.get(jogadorAtual()));\n this.listaJogadores.get(jogadorAtual()).setTentativasSairDaPrisao(0);\n }\n this.posicoes[jogador] = (this.posicoes[jogador] + valorDados);\n if (posicoes[jogador] > 40) {\n posicoes[jogador] = posicoes[jogador] - 40;\n }\n }\n\n //analisando se o jogador esta preso e lanca numeros diferentes nos dados\n if (JogadorEstaPreso(this.listaJogadores.get(jogadorAtual()).getNome()) && !iguais && this.prisao == true) {\n //analisa se estourou as tentativas\n //se estourou\n if (this.listaJogadores.get(jogadorAtual()).getTentativasSairDaPrisao() == 2) {\n this.sairdaPrisao(this.listaJogadores.get(jogadorAtual()));\n this.listaJogadores.get(jogadorAtual()).retirarDinheiro(50);\n this.listaJogadores.get(jogadorAtual()).setTentativasSairDaPrisao(0);\n this.posicoes[jogador] = (this.posicoes[jogador] + valorDados);\n if (posicoes[jogador] > 40) {\n posicoes[jogador] = posicoes[jogador] - 40;\n }\n\n } //se nao estourou\n else if (this.listaJogadores.get(jogadorAtual()).getTentativasSairDaPrisao() < 2) {\n this.listaJogadores.get(jogadorAtual()).addTentativasSairDaPrisao();\n }\n\n\n }\n\n\n }", "private void atualizarPalitos() {\n Jogador jogador = servidor.getJogador(nomeJogador);\n LugarModelo lugarModelo = listaLugares.get(jogador.lugar - 1);\n lugarModelo.getMao().setText(jogador.quantidadePalitosApostados + \" Palitos\");\n lugarModelo.getQuantidadePalitosRestantes().setText(\"Palitos Restante: \" + jogador.quantidadePalitosRestantes + \"\");\n }", "@Override\n\tpublic void crearNuevaPoblacion() {\n\t\t/* Nos quedamos con los mejores individuos. Del resto, cruzamos la mitad, los mejores,\n\t\t * y el resto los borramos.*/\n\t\tList<IIndividuo> poblacion2 = new ArrayList<>();\n\t\tint numFijos = (int) (poblacion.size()/2);\n\t\t/* Incluimos el 50%, los mejores */\n\t\tpoblacion2.addAll(this.poblacion.subList(0, numFijos));\n\t\t\n\t\t/* De los mejores, mezclamos la primera mitad \n\t\t * con todos, juntandolos de forma aleatoria */\n\t\tList<IIndividuo> temp = poblacion.subList(0, numFijos+1);\n\t\tfor(int i = 0; i < temp.size()/2; i++) {\n\t\t\tint j;\n\t\t\tdo {\n\t\t\t\tj = Individuo.aleatNum(0, temp.size()-1);\n\t\t\t}while(j != i);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tpoblacion2.addAll(cruce(temp.get(i), temp.get(j)));\n\t\t\t} catch (CruceNuloException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t//this.poblacion.clear();\n\t\tthis.poblacion = poblacion2;\n\t}", "public ListaBrojeva izdvojElmenteNaParnimPozicijama() {\n if (prvi != null) {\n ListaBrojeva parni = new ListaBrojeva();\n \n Element tek = prvi;\n Element preth = null;\n Element parniKraj = null;\n int br = 0;\n \n while (tek.veza != null) {\n preth = tek;\n tek = tek.veza;\n \n if (br % 2 != 0) {\n preth.veza = tek.veza;\n if (parni.prvi == null) {\n parni.prvi = tek;\n parniKraj = tek;\n tek.veza = null; \n } else {\n parniKraj.veza = tek;\n tek.veza = null;\n parniKraj = parniKraj.veza;\n }\n tek = preth;\n }\n br++;\n }\n /*prvi element iz liste je paran, ali je preskocen, \n tako da ga sad izbacujemo iz liste i dodajemo u novu*/\n Element pom = prvi;\n prvi = prvi.veza;\n pom.veza = parni.prvi;\n parni.prvi = pom;\n return parni;\n }\n return null;\n }", "private String creaElenco() {\n String testoTabella ;\n String riga = CostBio.VUOTO;\n ArrayList listaPagine = new ArrayList();\n ArrayList listaRiga;\n HashMap mappaTavola = new HashMap();\n String cognomeText;\n int num;\n int taglioPagine = Pref.getInt(CostBio.TAGLIO_COGNOMI_PAGINA);\n String tag = \"Persone di cognome \";\n ArrayList titoli = new ArrayList();\n titoli.add(LibWiki.setBold(\"Cognome\"));\n titoli.add(LibWiki.setBold(\"Voci\"));\n\n for (Map.Entry<String, Integer> mappa: mappaCognomi.entrySet()) {\n\n cognomeText = mappa.getKey();\n num = mappa.getValue();\n if (num >= taglioPagine) {\n cognomeText = tag + cognomeText + CostBio.PIPE + cognomeText;\n cognomeText = LibWiki.setQuadre(cognomeText);\n cognomeText = LibWiki.setBold(cognomeText);\n }// end of if cycle\n\n listaRiga = new ArrayList();\n listaRiga.add(cognomeText);\n listaRiga.add(num);\n listaPagine.add(listaRiga);\n\n }// end of for cycle\n mappaTavola.put(Cost.KEY_MAPPA_SORTABLE_BOOLEAN, true);\n mappaTavola.put(Cost.KEY_MAPPA_TITOLI, titoli);\n mappaTavola.put(Cost.KEY_MAPPA_RIGHE_LISTA, listaPagine);\n testoTabella = LibWiki.creaTable(mappaTavola);\n\n return testoTabella;\n }", "private int obstaculos() {\n\t\treturn this.quadricula.length * this.quadricula[0].length - \n\t\t\t\tthis.ardiveis();\n\t}", "public void ordenaCatalogoJogos(TiposOrdenacao tipoOrdenacao) {\r\n\r\n\t\tif (tipoOrdenacao.equals(TiposOrdenacao.DEFAULT)) {\r\n\t\t\tCollections.sort(listaDeJogosComprados);\r\n\t\t}\r\n\t\tif (tipoOrdenacao.equals(TiposOrdenacao.DESEMPENHO)) {\r\n\t\t\tOrdenaPorDesempenho comparator = new OrdenaPorDesempenho();\r\n\t\t\tCollections.sort(listaDeJogosComprados, comparator);\r\n\t\t}\r\n\t\tif (tipoOrdenacao.equals(TiposOrdenacao.EXPERIENCIA)) {\r\n\t\t\tOrdenaPorExperiencia comparator = new OrdenaPorExperiencia();\r\n\t\t\tCollections.sort(listaDeJogosComprados, comparator);\r\n\t\t}\r\n\t\tif (tipoOrdenacao.equals(TiposOrdenacao.VICIO)) {\r\n\t\t\tOrdenaPorVicio comparator = new OrdenaPorVicio();\r\n\t\t\tCollections.sort(listaDeJogosComprados, comparator);\r\n\t\t}\r\n\t}", "private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}", "public static void horoscopo() {\n\n ArrayList<String> frases = new ArrayList<>();\n\n frases.add(\"Todo lo que seas capaz de creer, eres capaz de conseguir.\");\n frases.add(\"Serás más poderoso cuando tengas control total sobre ti mismo.\");\n frases.add(\"La sabiduría y la casualidad no van unidas de la mano.\");\n frases.add(\"Lo que hay en el ayer o en el mañana no es nada comparado con lo que hay en nuestro interior.\");\n frases.add(\"Cáete siete veces y levántate ocho.\");\n frases.add(\"Nunca es tarde para comenzar un nuevo proyecto, para ser quien siempre has deseado ser.\");\n frases.add(\"Con pensamientos positivos y perseverancia, solo es cuestión de tiempo que superes las adversidades y te propongas nuevos retos.\");\n frases.add(\"La vida es un 10% lo que nos ocurre, y un 90% cómo reaccionamos a ello.\");\n frases.add(\"No es más rico quien más tiene, sino quien menos necesita.\");\n frases.add(\"Intenta y falla, pero nunca falles en intentarlo.\");\n frases.add(\"Solo los hombres más sabios son capaces de saborear los momentos más simples.\");\n frases.add(\"cada segundo que goces, será segundo aprovechado.\");\n\n double numero = Math.round(Math.random() * 11);\n int numeroAleatorio = (int) numero;\n\n //Random r = new Random(); \n // int randomNumber = r.nextInt(frases.size());\n System.out.println(\"Frase horóscopo: \" + frases.get(numeroAleatorio));\n\n }", "public static void precioMenor(ArrayList<Equipo> equi) {\n int menorEqui = 0;\n double precioMenorEqui = 2000;\n\n for (int i = 0; i < equi.size(); i++) {\n if (equi.get(i).getPrecio() < precioMenorEqui) {\n precioMenorEqui = equi.get(i).getPrecio();\n menorEqui = equi.indexOf(equi.get(i));\n\n }\n\n }\n System.out.println(\"Equipo con menor precio: \" + equi.get(menorEqui).getNombre() + \" \" + equi.get(menorEqui).getPrecio() + \"€\");\n }", "@Override\n public double calculaTributos() {\n // TODO Auto-generated method stub\n return 10;\n }", "public static Pot oceni_moder(Igra igra) {\n\t\tTocka[][] plosca = igra.getPlosca();\n\t\tint N = Igra.N;\n\n\t\t\n\t\tSet<Vrednost> modra_pot = new HashSet<Vrednost>();\n\t\tVrednost[][] tabela_dolzin_modri = new Vrednost[N][N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tfor (int j = 0; j < N; j++) {\n\t\t\t\ttabela_dolzin_modri[i][j] = new Vrednost(new Koordinati(j, i));\n\t\t\t}\n\t\t}\n\t\t\n\t\t// 1. vrstica\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tif (plosca[i][0].polje == Polje.Moder) tabela_dolzin_modri[i][0].vrednost = 0;\n\t\t\tif (plosca[i][0].polje == Polje.PRAZNO) tabela_dolzin_modri[i][0].vrednost = 1;\n\t\t}\n\t\t\n\t\t// ostalo\n\t\tfor (int j = 1; j < N; j++) {\n\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\n\t\t\t\tint gor_gor_lev;\n\t\t\t\tint gor_lev;\n\t\t\t\tint dol_lev;\n\t\t\t\tint dol_dol_lev;\n\t\t\t\tint levo;\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tif (plosca[i - 1][j].polje == Polje.PRAZNO && plosca[i][j - 1].polje == Polje.PRAZNO) {\n\t\t\t\t\t\tgor_gor_lev = tabela_dolzin_modri[i - 1][j - 1].vrednost;\n\t\t\t\t\t}\n\t\t\t\t\telse gor_gor_lev = POLNO;\n\t\t\t\t} catch (ArrayIndexOutOfBoundsException e) { gor_gor_lev = POLNO; }\n\t\t\t\t\n\t\t\t\ttry { gor_lev = tabela_dolzin_modri[i][j - 1].vrednost; } \n\t\t\t\tcatch (ArrayIndexOutOfBoundsException e) { gor_lev = POLNO; }\n\t\t\t\ttry { dol_lev = tabela_dolzin_modri[i + 1][j - 1].vrednost; } \n\t\t\t\tcatch (ArrayIndexOutOfBoundsException e) { dol_lev = POLNO; }\n\t\t\t\ttry {\n\t\t\t\t\tif (plosca[i + 1][j - 1].polje == Polje.PRAZNO && plosca[i + 1][j].polje == Polje.PRAZNO) {\n\t\t\t\t\t\tdol_dol_lev = tabela_dolzin_modri[i + 2][j - 1].vrednost;\n\t\t\t\t\t}\n\t\t\t\t\telse dol_dol_lev = POLNO;\n\t\t\t\t} catch (ArrayIndexOutOfBoundsException e) { dol_dol_lev = POLNO; }\n\t\t\t\ttry {\n\t\t\t\t\tif (plosca[i + 1][j - 1].polje == Polje.PRAZNO && plosca[i][j - 1].polje == Polje.PRAZNO) {\n\t\t\t\t\t\tlevo = tabela_dolzin_modri[i + 1][j - 2].vrednost;\n\t\t\t\t\t}\n\t\t\t\t\telse levo = POLNO;\n\t\t\t\t} catch (ArrayIndexOutOfBoundsException e) { levo = POLNO; }\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tVrednost pointer = null;\n\t\t\t\tSkok skok = null;\n\t\t\t\tint vrednost_polja;\n\t\t\t\tvrednost_polja = Math.min(gor_gor_lev, Math.min(gor_lev, Math.min(dol_lev, Math.min(dol_dol_lev, levo))));\n\t\t\t\t\n\t\t\t\tif (vrednost_polja != POLNO) {\n\t\t\t\t\tif (vrednost_polja == gor_gor_lev) {\n\t\t\t\t\t\tpointer = tabela_dolzin_modri[i - 1][j - 1];\n\t\t\t\t\t\tskok = Skok.Skok1;\n\t\t\t\t\t}\n\t\t\t\t\tif (vrednost_polja == gor_lev) pointer = tabela_dolzin_modri[i][j - 1];\n\t\t\t\t\tif (vrednost_polja == dol_lev) pointer = tabela_dolzin_modri[i + 1][j - 1];\n\t\t\t\t\tif (vrednost_polja == dol_dol_lev) {\n\t\t\t\t\t\tpointer = tabela_dolzin_modri[i + 2][j - 1];\n\t\t\t\t\t\tskok = Skok.Skok3;\n\t\t\t\t\t}\n\t\t\t\t\tif (vrednost_polja == levo) {\n\t\t\t\t\t\tpointer = tabela_dolzin_modri[i + 1][j - 2];\n\t\t\t\t\t\tskok = Skok.Skok2;\n\t\t\t\t\t}\n\t\t\t\t\tif (plosca[i][j].polje == Polje.PRAZNO) vrednost_polja += 1;\n\t\t\t\t\tif (plosca[i][j].polje == Polje.Rdec) vrednost_polja = POLNO;\n\t\t\t\t}\n\t\t\t\ttabela_dolzin_modri[i][j].vrednost = vrednost_polja;\n\t\t\t\ttabela_dolzin_modri[i][j].pointer = pointer;\n\t\t\t\ttabela_dolzin_modri[i][j].skok = skok;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t// Ponovni pregled\n\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\tint gor;\n\t\t\t\tint dol;\n\t\t\t\tint vrednost_polja = tabela_dolzin_modri[i][j].vrednost;\n\t\t\t\tVrednost pointer = tabela_dolzin_modri[i][j].pointer;\n\t\t\t\tSkok skok = tabela_dolzin_modri[i][j].skok;\n\t\t\t\tVrednost nov_pointer = pointer;\n\t\t\t\t\n\t\t\t\ttry { gor = tabela_dolzin_modri[i - 1][j].vrednost; } \n\t\t\t\tcatch (ArrayIndexOutOfBoundsException e) { gor = POLNO; }\n\t\t\t\ttry { dol = tabela_dolzin_modri[i + 1][j].vrednost; } \n\t\t\t\tcatch (ArrayIndexOutOfBoundsException e) { dol = POLNO; }\n\t\t\t\t\n\t\t\t\tif (dol != POLNO && dol < vrednost_polja) {\n\t\t\t\t\tif (plosca[i][j].polje == Polje.Moder) vrednost_polja = dol;\n\t\t\t\t\tif (plosca[i][j].polje == Polje.PRAZNO) vrednost_polja = dol + 1;\n\t\t\t\t\tnov_pointer = tabela_dolzin_modri[i + 1][j];\n\t\t\t\t\tskok = null;\n\t\t\t\t}\n\t\t\t\tif (gor != POLNO && gor < vrednost_polja) {\n\t\t\t\t\tif (plosca[i][j].polje == Polje.Moder) vrednost_polja = gor;\n\t\t\t\t\tif (plosca[i][j].polje == Polje.PRAZNO) vrednost_polja = gor + 1;\n\t\t\t\t\tnov_pointer = tabela_dolzin_modri[i - 1][j];\n\t\t\t\t\tskok = null;\n\t\t\t\t}\n\t\t\t\ttabela_dolzin_modri[i][j].vrednost = vrednost_polja;\n\t\t\t\ttabela_dolzin_modri[i][j].pointer = nov_pointer;\n\t\t\t\ttabela_dolzin_modri[i][j].skok = skok;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Koncna vrednost\n\t\tint najmanjsa_modra = POLNO;\n\t\tVrednost pointer_modra = null;\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tint vrednost = tabela_dolzin_modri[i][N - 1].vrednost;\n\t\t\tif (najmanjsa_modra > vrednost) {\n\t\t\t\tnajmanjsa_modra = vrednost;\n\t\t\t\tpointer_modra = tabela_dolzin_modri[i][N - 1];\n\t\t\t}\t\n\t\t}\n\t\t\n\t\n\t\t// Izracun poti\n\t\tVrednost spremenljivka = pointer_modra;\n\t\twhile (spremenljivka != null) {\n\t\t\tmodra_pot.add(spremenljivka);\n\t\t\tspremenljivka = spremenljivka.pointer;\n\t\t}\n\t\t\n\t\treturn new Pot(najmanjsa_modra, modra_pot);\n\t}", "private void llenarVacios(int inicial){\n\t\tint[] vecinos = obtenerVecinos(inicial);\n\t\t\n\t\t//Saber cuales vecinos no tienen bombas\n\t\tvacios.clear();\n\t\tvacios.add(inicial);\n\t\tfor(int b = 0; b<Constantes.FILAS*Constantes.COLUMNAS; b++){\n\t\t\tvecinos = obtenerVecinos(vacios.get(b));\n\t\t\tfor(int i =0; i<vecinos.length;i++){\n\t\t\t\tif(vecinos[i] != -1 && LayerBotones.botones[vecinos[i]].getCantBombas() == 0){\n\t\t\t\t\tvacios.add(vecinos[i]);\n\t\t\t\t\tLayerBotones.botones[vecinos[i]].setDescubierto(true);\n\t\t\t\t}else if (vecinos[i] != -1){\n\t\t\t\t\taDespejar.add(vecinos[i]);\n\t\t\t\t\tLayerBotones.botones[vecinos[i]].setDescubierto(true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i =0; i<vacios.size();i++){\n\t\t\tLayerBotones.botones[vacios.get(i)].setIcon(numeros[0]);\n\t\t\t//LayerBotones.botones[8].ponerIcono();\n\t\t\t\n\t\t}\n\t\tfor(int i =0; i<aDespejar.size();i++){\n\t\t\tLayerBotones.botones[aDespejar.get(i)].ponerIcono();\n\t\t\t//LayerBotones.botones[8].ponerIcono();\n\t\t\t\n\t\t}\n\t\t\n\t}", "public int lancia() {\r\n\t\tlancio = dado.tiraDado();\r\n\t\tthis.numLanci++;\r\n\t\treturn lancio;\r\n\t}", "public void testFilaSuperiorLlena( )\n {\n setupEscenario2( );\n triqui.limpiarTablero( );\n triqui.marcarCasilla( 1, marcaJugador1 );\n triqui.marcarCasilla( 2, marcaJugador1 );\n triqui.marcarCasilla( 3, marcaJugador1 );\n assertTrue( triqui.filaSuperiorLlena( marcaJugador1 ) );\n assertTrue( triqui.ganoJuego( marcaJugador1 ) );\n }", "public static void llenarAlsuper(){\r\n Producto huevos = new Producto(\"huevos\", \"bachoco\", 56.90, 1);\r\n Nodo<Producto> ATemp = new Nodo(huevos);\r\n listaAlsuper.agregarNodo(ATemp);\r\n \r\n Producto chuletas = new Producto(\"chuletas\", \"Del Cero\", 84.90, 1);\r\n Nodo<Producto> ATemp2 = new Nodo(chuletas);\r\n listaAlsuper.agregarNodo(ATemp2);\r\n \r\n Producto carnemolida = new Producto(\"carne molida\", \"premium\", 79.90, 1);\r\n Nodo<Producto> ATemp3 = new Nodo(carnemolida);\r\n listaAlsuper.agregarNodo(ATemp3);\r\n \r\n Producto pollo = new Producto(\"pollo\", \"super pollo\", 59.90, 1);\r\n Nodo<Producto> ATemp4 = new Nodo(pollo);\r\n listaAlsuper.agregarNodo(ATemp4);\r\n \r\n Producto pescado = new Producto(\"pescado\", \"el pecesito\", 63.90, 1);\r\n Nodo<Producto> ATemp5 = new Nodo(pescado);\r\n listaAlsuper.agregarNodo(ATemp5);\r\n \r\n Producto atunagua = new Producto(\"atun en agua\", \"en agua\", 9.90, 1);\r\n Nodo<Producto> ATemp6 = new Nodo(atunagua);\r\n listaAlsuper.agregarNodo(ATemp6);\r\n \r\n Producto atunaceite = new Producto(\"atun en aceite\", \"en aceite\", 9.90, 1);\r\n Nodo<Producto> ATemp7 = new Nodo(atunaceite);\r\n listaAlsuper.agregarNodo(ATemp7);\r\n \r\n Producto leche = new Producto(\"leche\", \"nutri leche\", 14.90, 1);\r\n Nodo<Producto> ATemp8 = new Nodo(leche);\r\n listaAlsuper.agregarNodo(ATemp8);\r\n \r\n Producto arroz = new Producto(\"arroz\", \"mimarca\", 13.90, 1);\r\n Nodo<Producto> ATemp9 = new Nodo(arroz);\r\n listaAlsuper.agregarNodo(ATemp9);\r\n \r\n Producto frijol= new Producto(\"frijol\", \"pinto\", 16.90, 1);\r\n Nodo<Producto> ATemp10 = new Nodo(frijol);\r\n listaAlsuper.agregarNodo(ATemp10);\r\n \r\n Producto azucar = new Producto(\"azucar\", \"mimarca\", 17.90, 1);\r\n Nodo<Producto> ATemp11 = new Nodo(azucar);\r\n listaAlsuper.agregarNodo(ATemp11);\r\n \r\n Producto sal = new Producto(\"sal\", \"salada\", 10.90, 1);\r\n Nodo<Producto> ATemp12 = new Nodo(sal);\r\n listaAlsuper.agregarNodo(ATemp12);\r\n \r\n Producto pimienta = new Producto(\"pimienta\", \"pimi\", 3.90, 2);\r\n Nodo<Producto> ATemp13 = new Nodo(pimienta);\r\n listaAlsuper.agregarNodo(ATemp13);\r\n \r\n Producto limon = new Producto(\"limon\", \"verde\", 5.90, 0);\r\n Nodo<Producto> ATemp14 = new Nodo(limon);\r\n listaAlsuper.agregarNodo(ATemp14);\r\n \r\n Producto tomate = new Producto(\"tomate\", \"rojo\", 13.90, 0);\r\n Nodo<Producto> ATemp15 = new Nodo(tomate);\r\n listaAlsuper.agregarNodo(ATemp15);\r\n \r\n Producto zanahoria = new Producto(\"zanahoria\", \"goku\", 8.90, 0);\r\n Nodo<Producto> ATemp16 = new Nodo(zanahoria);\r\n listaAlsuper.agregarNodo(ATemp16);\r\n \r\n Producto papas = new Producto(\"papas\", \"ochoa\", 8.90, 0);\r\n Nodo<Producto> ATemp17 = new Nodo(papas);\r\n listaAlsuper.agregarNodo(ATemp17);\r\n \r\n Producto cebolla = new Producto(\"cebolla\", \"blanca\", 17.90, 1);\r\n Nodo<Producto> ATemp18 = new Nodo(cebolla);\r\n listaAlsuper.agregarNodo(ATemp18);\r\n \r\n Producto aceitecocina = new Producto(\"aceite de cocina\", \"123\", 29.90, 1);\r\n Nodo<Producto> ATemp19 = new Nodo(aceitecocina);\r\n listaAlsuper.agregarNodo(ATemp19);\r\n \r\n Producto panblanco = new Producto(\"pan blanco\", \"blanco\", 2.90, 1);\r\n Nodo<Producto> ATemp20 = new Nodo(panblanco);\r\n listaAlsuper.agregarNodo(ATemp20);\r\n \r\n Producto pan = new Producto(\"pan\", \"bimbo\", 39.90, 1);\r\n Nodo<Producto> ATemp21 = new Nodo(pan);\r\n listaAlsuper.agregarNodo(ATemp21);\r\n \r\n Producto zuko = new Producto(\"zuko\", \"zuko\", 4.90, 1);\r\n Nodo<Producto> ATemp22 = new Nodo(zuko);\r\n listaAlsuper.agregarNodo(ATemp22);\r\n \r\n Producto consome = new Producto(\"consome\", \"panchi\", 10.90, 2);\r\n Nodo<Producto> ATemp23 = new Nodo(consome);\r\n listaAlsuper.agregarNodo(ATemp23);\r\n \r\n Producto cereal = new Producto(\"cereal\", \"nesquik\", 40.90, 2);\r\n Nodo<Producto> ATemp24 = new Nodo(cereal);\r\n listaAlsuper.agregarNodo(ATemp24);\r\n \r\n Producto cereal2 = new Producto(\"cereal\", \"zucaritas\", 50.90, 2);\r\n Nodo<Producto> ATemp25 = new Nodo(cereal2);\r\n listaAlsuper.agregarNodo(ATemp25);\r\n \r\n Producto cereal3 = new Producto(\"cereal\", \"kellogs\", 35.90, 2);\r\n Nodo<Producto> ATemp26 = new Nodo(cereal3);\r\n listaAlsuper.agregarNodo(ATemp26);\r\n \r\n Producto chocomilk = new Producto(\"chocomilk\", \"pancho pantera\", 60.90, 2);\r\n Nodo<Producto> ATemp27 = new Nodo(chocomilk);\r\n listaAlsuper.agregarNodo(ATemp27);\r\n \r\n Producto apio = new Producto(\"apio\", \"pa el clamato\", 1.90, 0);\r\n Nodo<Producto> ATemp28 = new Nodo(cereal);\r\n listaAlsuper.agregarNodo(ATemp28);\r\n \r\n Producto chocomilk2 = new Producto(\"chocomilk\", \"el dinosaurio\", 15.90, 2);\r\n Nodo<Producto> ATemp29 = new Nodo(chocomilk2);\r\n listaAlsuper.agregarNodo(ATemp29);\r\n \r\n Producto chile = new Producto(\"chile\", \"amor\", 7.90, 0);\r\n Nodo<Producto> ATemp30 = new Nodo(chile);\r\n listaAlsuper.agregarNodo(ATemp30);\r\n \r\n Producto chilaca = new Producto(\"chilaca\", \"chihuahua\", 8.80, 0);\r\n Nodo<Producto> ATemp31 = new Nodo(chilaca);\r\n listaAlsuper.agregarNodo(ATemp30);\r\n \r\n Producto cafe= new Producto(\"cafe\", \"nescafe\",.90, 2);\r\n Nodo<Producto> ATemp32 = new Nodo(cafe);\r\n listaAlsuper.agregarNodo(ATemp32);\r\n \r\n Producto sopa = new Producto(\"sopa\", \"de coditos\", 4.90, 2);\r\n Nodo<Producto> ATemp33 = new Nodo(sopa);\r\n listaAlsuper.agregarNodo(ATemp33);\r\n \r\n Producto sopa2 = new Producto(\"sopa\", \"estrellas\", 3.90, 2);\r\n Nodo<Producto> ATemp34 = new Nodo(sopa2);\r\n listaAlsuper.agregarNodo(ATemp34);\r\n \r\n Producto sopa3 = new Producto(\"sopa\", \"moñitos\", 3.90, 2);\r\n Nodo<Producto> ATemp35 = new Nodo(sopa3);\r\n listaAlsuper.agregarNodo(ATemp35);\r\n \r\n Producto sopa4 = new Producto(\"sopa\", \"letras\", 3.90, 2);\r\n Nodo<Producto> ATemp36 = new Nodo(sopa4);\r\n listaAlsuper.agregarNodo(ATemp36);\r\n \r\n Producto pasta = new Producto(\"pasta\", \"spaguetti\", 15.90, 2);\r\n Nodo<Producto> ATemp37 = new Nodo(pasta);\r\n listaAlsuper.agregarNodo(ATemp37);\r\n \r\n Producto shampoo = new Producto(\"champu\", \"palmolive\", 36.90, 3);\r\n Nodo<Producto> ATemp38 = new Nodo(shampoo);\r\n listaAlsuper.agregarNodo(ATemp38);\r\n \r\n Producto desodorante = new Producto(\"desodorante\", \"old spice\", 50.90, 3);\r\n Nodo<Producto> ATemp39 = new Nodo(desodorante);\r\n listaAlsuper.agregarNodo(ATemp39);\r\n \r\n Producto jabontrastes = new Producto(\"jabon para los trastes\", \"salvo\", 40.90, 3);\r\n Nodo<Producto> ATemp40 = new Nodo(jabontrastes);\r\n listaAlsuper.agregarNodo(ATemp40);\r\n \r\n Producto jaboncuerpo = new Producto(\"jabon para el cuerpo\", \"jabonzote\", 6.90, 3);\r\n Nodo<Producto> ATemp41 = new Nodo(jaboncuerpo);\r\n listaAlsuper.agregarNodo(ATemp41);\r\n \r\n Producto rastrillo = new Producto(\"rastrillo\", \"gillette\", 60.90, 3);\r\n Nodo<Producto> ATemp42 = new Nodo(rastrillo);\r\n listaAlsuper.agregarNodo(ATemp42);\r\n \r\n Producto detergente = new Producto(\"detergente\", \"downy\", 38.90, 3);\r\n Nodo<Producto> ATemp43 = new Nodo(detergente);\r\n listaAlsuper.agregarNodo(ATemp43);\r\n \r\n Producto puredetomate = new Producto(\"pure de tomate\", \"tomax\", 9.90, 3);\r\n Nodo<Producto> ATemp44 = new Nodo(puredetomate);\r\n listaAlsuper.agregarNodo(ATemp44);\r\n \r\n Producto mole = new Producto(\"mole\", \"doña maria\", 25.90, 3);\r\n Nodo<Producto> ATemp45 = new Nodo(mole);\r\n listaAlsuper.agregarNodo(ATemp45);\r\n \r\n Producto papel = new Producto(\"papel\", \"petalo\", 6.90, 3);\r\n Nodo<Producto> ATemp46 = new Nodo(papel);\r\n listaAlsuper.agregarNodo(ATemp46);\r\n \r\n Producto servilletas = new Producto(\"servilletas\", \"mimarca\", 12.90, 3);\r\n Nodo<Producto> ATemp47 = new Nodo(servilletas);\r\n listaAlsuper.agregarNodo(ATemp47);\r\n \r\n Producto manzana = new Producto(\"manzanas\", \"roja\", 20.90, 0);\r\n Nodo<Producto> ATemp48 = new Nodo(manzana);\r\n listaAlsuper.agregarNodo(ATemp48);\r\n \r\n Producto platano = new Producto(\"platano\", \"meagarras\", 19.90, 0);\r\n Nodo<Producto> ATemp50 = new Nodo(platano);\r\n listaAlsuper.agregarNodo(ATemp50);\r\n \r\n Producto papaya = new Producto(\"papaya\", \"naranja\", 0.90, 0);\r\n Nodo<Producto> ATemp51 = new Nodo(papaya);\r\n listaAlsuper.agregarNodo(ATemp51);\r\n \r\n Producto pastadedientes = new Producto(\"pasta de dientes\", \"colgate\", 30.90, 0);\r\n Nodo<Producto> ATemp52 = new Nodo(pastadedientes);\r\n listaAlsuper.agregarNodo(ATemp52);\r\n \r\n Producto desodorante2 = new Producto(\"desodorante\", \"axe\", 50.90, 3);\r\n Nodo<Producto> ATemp53 = new Nodo(desodorante2);\r\n listaAlsuper.agregarNodo(ATemp53);\r\n \r\n Producto cremacuerpo = new Producto(\"crema\", \"real\", 30.90, 3);\r\n Nodo<Producto> ATemp54 = new Nodo(cremacuerpo);\r\n listaAlsuper.agregarNodo(ATemp54);\r\n \r\n Producto cremacomer = new Producto(\"crema\", \"lala\", 29.90, 2);\r\n Nodo<Producto> ATemp55 = new Nodo(cremacomer);\r\n listaAlsuper.agregarNodo(ATemp55);\r\n \r\n Producto cloro = new Producto(\"cloro\", \"cloralex\", 9.90, 3);\r\n Nodo<Producto> ATemp56 = new Nodo(cloro);\r\n listaAlsuper.agregarNodo(ATemp56);\r\n \r\n Producto pinol = new Producto(\"pinol\", \"pinol\", 28.90, 0);\r\n Nodo<Producto> ATemp57 = new Nodo(pinol);\r\n listaAlsuper.agregarNodo(ATemp57);\r\n \r\n Producto amonia = new Producto(\"amonia\", \"amonio\", 666.66, 3);\r\n Nodo<Producto> ATemp58 = new Nodo(amonia);\r\n listaAlsuper.agregarNodo(ATemp58);\r\n \r\n Producto tortillas = new Producto(\"tortillas\", \"caseras\", 18.90, 2);\r\n Nodo<Producto> ATemp59 = new Nodo(tortillas);\r\n listaAlsuper.agregarNodo(ATemp59);\r\n \r\n Producto winni = new Producto(\"winni\", \"chimex\", 30.90, 1);\r\n Nodo<Producto> ATemp60 = new Nodo(winni);\r\n listaAlsuper.agregarNodo(ATemp60);\r\n \r\n Producto salchicha = new Producto(\"salchicha\", \"chimex\", 60.90, 1);\r\n Nodo<Producto> ATemp61 = new Nodo(salchicha);\r\n listaAlsuper.agregarNodo(ATemp61);\r\n \r\n Producto jamon = new Producto(\"jamon\", \"chimex\", 70.90, 1);\r\n Nodo<Producto> ATemp63 = new Nodo(jamon);\r\n listaAlsuper.agregarNodo(ATemp63);\r\n \r\n Producto queso = new Producto(\"queso\", \"camargo\", 90.90, 1);\r\n Nodo<Producto> ATemp64 = new Nodo(queso);\r\n listaAlsuper.agregarNodo(ATemp64);\r\n \r\n Producto saladas = new Producto(\"saladas\", \"saladitas\", 15.90, 2);\r\n Nodo<Producto> ATemp65 = new Nodo(saladas);\r\n listaAlsuper.agregarNodo(ATemp65);\r\n \r\n Producto galletas = new Producto(\"galletas\", \"emperador\", 18.90, 2);\r\n Nodo<Producto> ATemp66 = new Nodo(galletas);\r\n listaAlsuper.agregarNodo(ATemp66);\r\n \r\n Producto lentejas = new Producto(\"lentejas\", \"mimarca\", 10.90, 2);\r\n Nodo<Producto> ATemp67 = new Nodo(lentejas);\r\n listaAlsuper.agregarNodo(ATemp67);\r\n \r\n Producto puredepapa = new Producto(\"pure de papa\", \"mi marca\", 20.90, 2);\r\n Nodo<Producto> ATemp68 = new Nodo(puredepapa);\r\n listaAlsuper.agregarNodo(ATemp68);\r\n \r\n Producto trapos = new Producto(\"trapos\", \"trapitos\", 15.90, 3);\r\n Nodo<Producto> ATemp69 = new Nodo(trapos);\r\n listaAlsuper.agregarNodo(ATemp69);\r\n \r\n Producto soda = new Producto(\"soda\", \"cocacola\", 31.90, 2);\r\n Nodo<Producto> ATemp70 = new Nodo(soda);\r\n listaAlsuper.agregarNodo(ATemp70);\r\n \r\n Producto jugo = new Producto(\"jugo\", \"jumex\",19.90, 2);\r\n Nodo<Producto> ATemp71 = new Nodo(jugo);\r\n listaAlsuper.agregarNodo(ATemp71);\r\n \r\n Producto cerbeza = new Producto(\"cerbeza\", \"indio\", 11.90, 2);\r\n Nodo<Producto> ATemp72 = new Nodo(cerbeza);\r\n listaAlsuper.agregarNodo(ATemp72);\r\n \r\n Producto hielo = new Producto(\"hielo\", \"pinguino\", 10.90, 2);\r\n Nodo<Producto> ATemp73 = new Nodo(hielo);\r\n listaAlsuper.agregarNodo(ATemp73);\r\n \r\n Producto salsa = new Producto(\"salsa\", \"maggi\", 60.90, 2);\r\n Nodo<Producto> ATemp74 = new Nodo(salsa);\r\n listaAlsuper.agregarNodo(ATemp74);\r\n \r\n Producto desechables = new Producto(\"desechables\", \"mimarca\", 10.90, 2);\r\n Nodo<Producto> ATemp75 = new Nodo(desechables);\r\n listaAlsuper.agregarNodo(ATemp75);\r\n \r\n Producto chicharo = new Producto(\"chicharo\", \"chicharo\", 10.90, 2);\r\n Nodo<Producto> ATemp76 = new Nodo(chicharo);\r\n listaAlsuper.agregarNodo(ATemp76);\r\n \r\n Producto elotes = new Producto(\"elotes\", \"elotin\", 2.90, 2);\r\n Nodo<Producto> ATemp77 = new Nodo(elotes);\r\n listaAlsuper.agregarNodo(ATemp77);\r\n \r\n Producto champiñones = new Producto(\"champiñones\", \"toat\", 14.90, 2);\r\n Nodo<Producto> ATemp78 = new Nodo(champiñones);\r\n listaAlsuper.agregarNodo(ATemp78);\r\n \r\n Producto sardina = new Producto(\"sardina\", \"sardinota\", 31.90, 2);\r\n Nodo<Producto> ATemp79 = new Nodo(sardina);\r\n listaAlsuper.agregarNodo(ATemp79);\r\n \r\n Producto hilodental = new Producto(\"hilo dental\", \"colgate\", 40.90, 3);\r\n Nodo<Producto> ATemp80 = new Nodo(hilodental);\r\n listaAlsuper.agregarNodo(ATemp80);\r\n \r\n Producto cepillodedientes = new Producto(\"cepillo de dientes\", \"colgate\", 25.90, 3);\r\n Nodo<Producto> ATemp81 = new Nodo(cepillodedientes);\r\n listaAlsuper.agregarNodo(ATemp81);\r\n \r\n Producto gel = new Producto(\"gel para el cabello\", \"ego\", 16.90, 3);\r\n Nodo<Producto> ATemp82 = new Nodo(gel);\r\n listaAlsuper.agregarNodo(ATemp82);\r\n \r\n Producto cera = new Producto(\"cera\", \"ego\", 47.90, 3);\r\n Nodo<Producto> ATemp83 = new Nodo(cera);\r\n listaAlsuper.agregarNodo(ATemp83);\r\n \r\n Producto aerosol = new Producto(\"aerosol\", \"paris\", 75.90, 3);\r\n Nodo<Producto> ATemp84 = new Nodo(aerosol);\r\n listaAlsuper.agregarNodo(ATemp84);\r\n \r\n Producto acondicionador = new Producto(\"acondicionador\", \"loreal paris\", 70.90, 3);\r\n Nodo<Producto> ATemp85 = new Nodo(acondicionador);\r\n listaAlsuper.agregarNodo(ATemp85);\r\n \r\n Producto cremaafeitar = new Producto(\"crema para afeitar\", \"yilet\", 40.90, 3);\r\n Nodo<Producto> ATemp86 = new Nodo(cremaafeitar);\r\n listaAlsuper.agregarNodo(ATemp86);\r\n }", "public void testTableroLleno( )\n {\n setupEscenario2( );\n for( int i = 1; i <= 9; i++ )\n {\n triqui.marcarCasilla( i, marcaJugador1 );\n }\n assertTrue( triqui.tableroLleno( ) );\n }", "public void pagarAluguel(int credor, int devedor, int valor, String NomePopriedade) {\n\n Jogador JogadorDevedor = listaJogadores.get(devedor);\n Jogador JogadorCredor = listaJogadores.get(credor);\n\n\n if (listaJogadores.get(devedor).getDinheiro() >= valor) {\n JogadorDevedor.retirarDinheiro(valor);\n JogadorCredor.addDinheiro(valor);\n\n } else {\n \n\n\n if(bankruptcy){\n\n }else{\n int DinheiroRestante = listaJogadores.get(devedor).getDinheiro();\n JogadorDevedor.retirarDinheiro(DinheiroRestante);\n JogadorCredor.addDinheiro(DinheiroRestante);\n }\n this.removePlayer(devedor);\n\n }\n\n\n }", "public void testColumnaIzquierdaLlena( )\n {\n setupEscenario2( );\n triqui.limpiarTablero( );\n triqui.marcarCasilla( 1, marcaJugador1 );\n triqui.marcarCasilla( 4, marcaJugador1 );\n triqui.marcarCasilla( 7, marcaJugador1 );\n assertTrue( triqui.columnaIzquierdaLlena( marcaJugador1 ) );\n assertTrue( triqui.ganoJuego( marcaJugador1 ) );\n }", "public void sumaPuntos() {\r\n int rojo = 0;\r\n int azul = 0;\r\n for (int i = 1; i < 10; i++) {\r\n\r\n if (tablero[1][i].getTipo().equals(\"Rojo\")) {\r\n rojo += tablero[1][i].getValor();\r\n }\r\n\r\n if (tablero[8][i].getTipo().equals(\"Azul\")) {\r\n azul += tablero[8][i].getValor();\r\n }\r\n\r\n }\r\n if (rojo > azul) {\r\n this.setResultado(\"Rojo\");\r\n this.agregarVictoria(jugadorRojo);\r\n }\r\n if (azul > rojo) {\r\n this.setResultado(\"Azul\");\r\n this.agregarVictoria(jugadorAzul);\r\n }\r\n \r\n this.setReplay(true);\r\n }", "public Ligacao(TipoLigacao tipo, String nomeLigacao, int distancia, int custo) {\r\n this.tipo = tipo;\r\n this.nomeLigacao = nomeLigacao;\r\n this.distancia = distancia;\r\n this.custo = custo;\r\n }", "@Override\n\tpublic void sortir() {\n\t\tif (!estVide()) {\n\t\t\tTC next = getProchain();\t\t\t\t//On recupere le prochain\n\t\t\tsalle.get(next.getPrio()).remove(next);\t//Antinomie de entrer\n\t\t}\n\t}", "@Override\n public Combinacion comprobarColores(Combinacion filaIntroducida) {\n Combinacion respuesta;\n\n\n ArrayList<Ficha> combinacionRespuesta = new ArrayList<>();\n ArrayList<Integer> fichasNegrasUtilizadas = new ArrayList<>();\n ArrayList<Integer> fichasTotalesUtilizadas = new ArrayList<>();\n boolean comprobado = false;\n Colores color = Colores.SC;\n\n // COMPROBAMOS LAS NEGRAS\n for (int i = 0; i < filaIntroducida.getCodigo().length; i++) {\n if (filaIntroducida.getCodigo()[i].equals(tablero.getCombinacionOculta().getCodigo()[i])) {\n combinacionRespuesta.add(new Ficha(Colores.NEGRO));\n fichasNegrasUtilizadas.add(i);\n }\n }\n\n fichasTotalesUtilizadas.addAll(fichasNegrasUtilizadas);\n // SEPARAMOS NEGRAS DE BLANCAS\n\n for (int i = 0; i < filaIntroducida.getCodigo().length; i++) {\n if (!fichasNegrasUtilizadas.contains(i)) {\n for (int j = 0; j < filaIntroducida.getCodigo().length && !comprobado; j++) {\n if (!fichasTotalesUtilizadas.contains(j)) {\n if (filaIntroducida.getCodigo()[i].equals(tablero.getCombinacionOculta().getCodigo()[j])) {\n color = Colores.BLANCO;\n fichasTotalesUtilizadas.add(j);\n comprobado = true;\n } else {\n color = Colores.SC;\n }\n }\n }\n combinacionRespuesta.add(new Ficha(color));\n comprobado = false;\n }\n }\n\n combinacionRespuesta.sort(new Comparator<Ficha>() {\n @Override\n public int compare(Ficha o1, Ficha o2) {\n return o1.getColor().compareTo(o2.getColor());\n }\n });\n\n respuesta = new Combinacion(combinacionRespuesta.toArray(new Ficha[combinacionRespuesta.size()]));\n\n // MODO MEDIO Y FACIL\n\n return respuesta;\n }", "public void calcularIndicePlasticidad(){\r\n\t\tindicePlasticidad = limiteLiquido - limitePlastico;\r\n\t}", "public static void main(String[] args) {\n\t\t\tScanner tastiera=new Scanner(System.in);\r\n\t\t\tint k=0, j=0;\r\n\t\t\tint conta=0;\r\n\t\t\tString risposta=\"\";\r\n\t\t\tRandom r=new Random();\r\n\t\t\tArrayList<Giocatore> partecipantiOrdinati=new ArrayList<Giocatore>();\r\n\t\t\tArrayList<Giocatore> partecipantiMescolati=new ArrayList<Giocatore>();\r\n\t\t\tArrayList<Giocatore> perdenti=new ArrayList<Giocatore>();\r\n\t\t\tfor(int i=0;i<GIOCATORI.length;i++) {\r\n\t\t\t\tpartecipantiOrdinati.add(new Giocatore(GIOCATORI[i]));\r\n\t\t\t}\r\n\t\t\tfor(int i=0;i<GIOCATORI.length;i++) {\r\n\t\t\t\tint indice=Math.abs(r.nextInt()%partecipantiOrdinati.size());\r\n\t\t\t\tpartecipantiMescolati.add(partecipantiOrdinati.get(indice));\r\n\t\t\t\tpartecipantiOrdinati.remove(indice);\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"INIZIA IL TORNEO DI BRISCOLA!\");\r\n\t\t\twhile(partecipantiMescolati.size()!=1) {\r\n\t\t\t\tSystem.out.println(\"Fase \"+(j+1));\r\n\t\t\twhile(conta<partecipantiMescolati.size()) {\r\n\t\t\t\tMazzo m=new Mazzo();\r\n\t\t\t\tm.ordinaMazzo();\r\n\t\t\t\tm.mescolaMazzo();\r\n\t\t\t\tGiocatore g1=partecipantiMescolati.get(conta);\r\n\t\t\t\tGiocatore g2=partecipantiMescolati.get(conta+1);\r\n\t\t\t\tPartita p=new Partita(g1,g2,m);\r\n\t\t\t\tSystem.out.println(\"Inizia la partita tra \"+g1.getNickName()+\" e \"+g2.getNickName());\r\n\t\t\t\tSystem.out.println(\"La briscola è: \"+p.getBriscola().getCarta());\r\n\t\t\t\tSystem.out.println(\"Vuoi skippare la partita? \"); risposta=tastiera.next();\r\n\t\t\t\tif(risposta.equalsIgnoreCase(\"si\")) {\r\n\t\t\t\t\tg1.setPunteggio(p.skippa());\r\n\t\t\t\t\tg2.setPunteggio(PUNTI_MASSIMI-g1.getPunteggio());\r\n\t\t\t\t\tif(p.vittoria()) {\r\n\t\t\t\t\t\tSystem.out.println(\"Ha vinto \"+g1.getNickName());//vince g1\r\n\t\t\t\t\t\tSystem.out.println(\"Con un punteggio di \"+g1.getPunteggio());\r\n\t\t\t\t\t\tp.aggiungiPerdente(g2);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tSystem.out.println(\"Ha vinto \"+g2.getNickName());// vince g2\r\n\t\t\t\t\t\tSystem.out.println(\"Con un punteggio di \"+g2.getPunteggio());\r\n\t\t\t\t\t\tp.aggiungiPerdente(g1);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tp.daiLePrimeCarte();\r\n\t\t\t\t\tCarta c1=new Carta(g1.gioca().getCarta());\r\n\t\t\t\t\tCarta c2=new Carta(g2.gioca().getCarta());\r\n\t\t\t\t\tg1.eliminaDaMano(c1); g2.eliminaDaMano(c2);\r\n\t\t\t\t\tint tracciatore=1; //parte dal giocatore 1\r\n\t\t\t\t\twhile(!m.mazzoMescolato.isEmpty())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(c1.getCarta()+\" \"+c2.getCarta());\r\n\t\t\t\t\t\tif(p.chiPrende(c1, c2) && tracciatore==1){\r\n\t\t\t\t\t\t\tSystem.out.println(\"Prende \"+g1.getNickName());\r\n\t\t\t\t\t\t\tg1.setPunteggio(g1.aumentaPunteggio(c1.valoreCarta()+c2.valoreCarta()));\r\n\t\t\t\t\t\t\tp.pesca(g1); p.pesca(g2);\r\n\t\t\t\t\t\t\tc1=g1.gioca(); c2=g2.gioca();\r\n\t\t\t\t\t\t\tg1.eliminaDaMano(c1);\r\n\t\t\t\t\t\t\tg2.eliminaDaMano(c2);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(p.chiPrende(c2, c1)) {\r\n\t\t\t\t\t\t\ttracciatore=2;\r\n\t\t\t\t\t\t\tSystem.out.println(\"Prende \"+g2.getNickName());\r\n\t\t\t\t\t\t\tg2.setPunteggio(g2.aumentaPunteggio(c1.valoreCarta()+c2.valoreCarta()));\r\n\t\t\t\t\t\t\tp.pesca(g2); p.pesca(g1);\r\n\t\t\t\t\t\t\tc2=g2.gioca(); c1=g1.gioca();\r\n\t\t\t\t\t\t\tg2.eliminaDaMano(c2); \r\n\t\t\t\t\t\t\tg1.eliminaDaMano(c1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t{tracciatore = 1; k--;}\r\n\t\t\t\t\t\tSystem.out.println(g1.getPunteggio()+\" \"+g2.getPunteggio());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tSystem.out.println(\"Manche Finale\");\r\n\t\t\t\t\twhile(!g1.carteInMano.isEmpty() || !g2.carteInMano.isEmpty()) {\r\n\t\t\t\t\t\tSystem.out.println(c1.getCarta()+\" \"+c2.getCarta());\r\n\t\t\t\t\t\tif(p.chiPrende(c1, c2) && tracciatore==1){\r\n\t\t\t\t\t\t\tSystem.out.println(\"Prende \"+g1.getNickName());\r\n\t\t\t\t\t\t\tg1.setPunteggio(g1.aumentaPunteggio(c1.valoreCarta()+c2.valoreCarta()));\r\n\t\t\t\t\t\t\tc1=g1.gioca(); c2=g2.gioca();\r\n\t\t\t\t\t\t\tg1.eliminaDaMano(c1);\r\n\t\t\t\t\t\t\tg2.eliminaDaMano(c2);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(p.chiPrende(c2, c1)) {\r\n\t\t\t\t\t\t\ttracciatore=2;\r\n\t\t\t\t\t\t\tSystem.out.println(\"Prende \"+g2.getNickName());\r\n\t\t\t\t\t\t\tg2.setPunteggio(g2.aumentaPunteggio(c1.valoreCarta()+c2.valoreCarta()));\r\n\t\t\t\t\t\t\tc2=g2.gioca(); c1=g1.gioca();\r\n\t\t\t\t\t\t\tg2.eliminaDaMano(c2);\r\n\t\t\t\t\t\t\tg1.eliminaDaMano(c1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\ttracciatore = 1;\r\n\t\t\t\t\t\tSystem.out.println(g1.getPunteggio()+\" \"+g2.getPunteggio());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(p.chiPrende(c1, c2) && tracciatore==1) {\r\n\t\t\t\t\t\tSystem.out.println(\"Prende \"+g1.getNickName());\r\n\t\t\t\t\t\tg1.setPunteggio(g1.aumentaPunteggio(c1.valoreCarta()+c2.valoreCarta()));\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tSystem.out.println(\"Prende \"+g2.getNickName());\r\n\t\t\t\t\t\tg2.setPunteggio(g2.aumentaPunteggio(c1.valoreCarta()+c2.valoreCarta()));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tSystem.out.println(\"Situazione: \"+g1.getNickName()+\": \"+g1.getPunteggio());\r\n\t\t\t\t\tSystem.out.println(g2.getNickName()+\": \"+g2.getPunteggio());\r\n\t\t\t\t\tif(p.vittoria()) {\r\n\t\t\t\t\t\tSystem.out.println(\"Ha vinto il giocatore \"+g1.getNickName());\r\n\t\t\t\t\t\tSystem.out.println(\"Con un punteggio di \"+g1.getPunteggio());\r\n\t\t\t\t\t\tperdenti.add(g2);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tSystem.out.println(\"Ha vinto il giocatore \"+g2.getNickName());\r\n\t\t\t\t\t\tSystem.out.println(\"Con un punteggio di \"+g2.getPunteggio());\r\n\t\t\t\t\t\tperdenti.add(g1);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tconta+=2;\r\n\t\t\t\tSystem.out.println(\"Premi una lettera per continuare: \"); risposta=tastiera.next();\r\n\t\t\t}\r\n\t\t\tj++;\r\n\t\t\tconta=0;\r\n\t\t\tfor(int i=0;i<perdenti.size();i++)\r\n\t\t\t\tpartecipantiMescolati.remove(perdenti.get(i));\r\n\t\t\tSystem.out.println(\"Restano i seguenti partecipanti: \");\r\n\t\t\tfor(int i=0;i<partecipantiMescolati.size();i++) {\r\n\t\t\t\tSystem.out.println(partecipantiMescolati.get(i).getNickName());\r\n\t\t\t\tpartecipantiMescolati.get(i).setPunteggio(0);\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Il vincitore del torneo è: \"+partecipantiMescolati.get(0).getNickName());\r\n\t\t\t\t\r\n\t}", "public void pagarFerrovia(int credor, int devedor, int valor, String NomePopriedade) {\n\n Jogador JogadorDevedor = listaJogadores.get(devedor);\n Jogador JogadorCredor = listaJogadores.get(credor);\n if ((NomePopriedade.equals(\"Reading Railroad\")) ||\n (NomePopriedade.equals(\"Pennsylvania Railroad\")) ||\n (NomePopriedade.equals(\"B & O Railroad\")) ||\n (NomePopriedade.equals(\"Short Line Railroad\"))) {\n int quantidadeFerrovias = DonosFerrovias[credor];\n int divida = quantidadeFerrovias * valor;\n this.print(\"Credor tem \" + quantidadeFerrovias);\n this.print(\"Divida eh \" + divida);\n\n if (listaJogadores.get(devedor).getDinheiro() >= divida) {\n JogadorDevedor.retirarDinheiro(divida);\n JogadorCredor.addDinheiro(divida);\n this.print(\"aqui\");\n\n } else {\n int DinheiroRestante = listaJogadores.get(devedor).getDinheiro();\n JogadorDevedor.retirarDinheiro(DinheiroRestante);\n\n if(bankruptcy);\n\n else\n JogadorCredor.addDinheiro(DinheiroRestante);\n this.removePlayer(devedor);\n\n }\n\n }\n }", "public DatosIteracion mejorIteracionOptimizada(\r\n\t\t\tArrayList<DatosIteracion> datos) {\r\n\t\tDatosIteracion d = new DatosIteracion(\"auxiliar\");\r\n\t\tLectura l = new Lectura(999999, 0, 0);\r\n\t\td.getValoresLecturas().add(l);\r\n\r\n\t\tfor (int i = 0; i < datos.size(); i++) {\r\n\r\n\t\t\tif ((d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados() / (d.getValoresLecturas(\r\n\t\t\t\t\td.getValoresLecturas().size() - 1).getTiempo() + 1)) < (datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados() / (datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getTiempo() + 1))) {\r\n\r\n\t\t\t\td = datos.get(i);\r\n\t\t\t}\r\n\r\n\t\t\tif ((d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados() / (d.getValoresLecturas(\r\n\t\t\t\t\td.getValoresLecturas().size() - 1).getTiempo() + 1)) == (datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados() / (datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getTiempo() + 1))) {\r\n\r\n\t\t\t\tif (d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t\t.getTiempo() > datos\r\n\t\t\t\t\t\t.get(i)\r\n\t\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t\t.getTiempo()) {\r\n\r\n\t\t\t\t\td = datos.get(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn d;\r\n\t}", "public static void main(String[] args) {\n ArrayList<Integer> taszkok = new ArrayList<>();\r\n String text = null;\r\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\r\n try {\r\n text = reader.readLine();\r\n\r\n String[] taszkfeltolt = text.split(\",\");\r\n for(int i = 0; i<taszkfeltolt.length ;i++){\r\n taszkok.add(Integer.parseInt(taszkfeltolt[i])) ;\r\n }\r\n\r\n }\r\n catch(Exception e){\r\n\r\n }\r\n\r\n int laphibak=0;\r\n ArrayList<String> abc = new ArrayList<>();\r\n ArrayList<Integer> fagyi = new ArrayList<>();\r\n ArrayList<Integer> szam = new ArrayList<>();\r\n for(int i = 0; i<taszkok.size();i++){\r\n boolean csillag=false;\r\n boolean nemvoltlaphiba=false;\r\n int fagyilesz=-1;\r\n //System.out.print(taszkok.get(i));\r\n\r\n if(0>taszkok.get(i)){\r\n //valami történik\r\n taszkok.set(i, taszkok.get(i)*(-1));\r\n fagyilesz=0;\r\n }\r\n if(abc.size()<3){\r\n\r\n int vanilyen = vanilyen(taszkok.get(i),szam);\r\n if(vanilyen==-1){\r\n if (abc.size()==2){\r\n abc.add(\"C\");\r\n System.out.print(\"C\");\r\n }\r\n else if (abc.size()==1){\r\n abc.add(\"B\");\r\n System.out.print(\"B\");\r\n }\r\n else if (abc.size()==0){\r\n abc.add(\"A\");\r\n System.out.print(\"A\");\r\n }\r\n szam.add(taszkok.get(i));\r\n if(fagyilesz!=0){\r\n fagyi.add(4); // a kör végén ugy is csökkentem 1el elsőre is\r\n }\r\n else{\r\n fagyi.add(0);\r\n }\r\n }\r\n else{\r\n String temp=abc.get(vanilyen);\r\n abc.remove(vanilyen); //a tömb végére rakom és 0 ra allitom a fagyasztast\r\n abc.add(temp);\r\n //System.out.print(abc);\r\n int tempfagyi=fagyi.get(vanilyen);\r\n fagyi.remove(vanilyen);\r\n if(fagyilesz!=0){\r\n fagyi.add(tempfagyi);\r\n }\r\n else{\r\n fagyi.add(0);\r\n }\r\n szam.remove(vanilyen);\r\n szam.add(taszkok.get(i));\r\n //System.out.print(temp+\"e,\");\r\n nemvoltlaphiba=true;\r\n }\r\n\r\n }\r\n else if(abc.size()==3){\r\n int vanilyen = vanilyen(taszkok.get(i),szam);\r\n if(vanilyen==-1){ //ha ez egy uj szam\r\n int hanyadikbet=vanszabad(fagyi);\r\n if(hanyadikbet!=-1){\r\n String temp=abc.get(hanyadikbet);\r\n szam.remove(hanyadikbet);\r\n szam.add(taszkok.get(i));\r\n abc.remove(hanyadikbet); //a tömb végére rakom és 4 ra allitom a fagyasztast\r\n abc.add(temp);\r\n\r\n fagyi.remove(hanyadikbet);\r\n if(fagyilesz!=0){\r\n fagyi.add(4);\r\n }\r\n else{\r\n fagyi.add(0);\r\n }\r\n\r\n System.out.print(temp);\r\n }\r\n else{\r\n csillag=true;\r\n }\r\n }\r\n else{\r\n String temp=abc.get(vanilyen);\r\n abc.remove(vanilyen); //a tömb végére rakom és 0 ra allitom a fagyasztast\r\n abc.add(temp);\r\n szam.remove(vanilyen);\r\n szam.add(taszkok.get(i));\r\n int fagyitemp=fagyi.get(vanilyen);\r\n fagyi.remove(vanilyen);\r\n fagyi.add(fagyitemp);\r\n nemvoltlaphiba=true;\r\n }\r\n\r\n\r\n }\r\n\r\n if (csillag==true){\r\n System.out.print(\"*\");\r\n }\r\n if(nemvoltlaphiba==true){\r\n System.out.print(\"-\");\r\n }\r\n else{\r\n laphibak++;\r\n }\r\n for(int j = 0; j<fagyi.size();j++){\r\n if(fagyi.get(j)!=0){\r\n fagyi.set(j,fagyi.get(j)-1); //csokkentem a fagyasztast\r\n }\r\n }\r\n }\r\n\r\n\r\n System.out.println();\r\n System.out.print(laphibak);\r\n }", "private void gerarLaudosProcedimentosEspeciaisDiversos(\r\n\t\t\tMpmPrescricaoMedica prescricao, List<MpmLaudo> laudoList)\r\n\t\t\tthrows BaseException {\r\n\r\n\t\tMap<MpmPrescricaoProcedimento, FatProcedHospInternos> procedimentosMap = this\r\n\t\t\t\t.getConfirmarPrescricaoMedicaRN()\r\n\t\t\t\t.listarProcedimentosDiversosGeracaoLaudos(prescricao);\r\n\r\n\t\tMpmLaudo laudo = null;\r\n\r\n\t\tIParametroFacade parametroFacade = this.getParametroFacade();\r\n\r\n\t\tint codigoHemodialise = parametroFacade\r\n\t\t\t\t.buscarAghParametro(\r\n\t\t\t\t\t\tAghuParametrosEnum.P_AGHU_PROCEDIMENTO_HOSPITALAR_INTERNO_HEMODIALISE)\r\n\t\t\t\t.getVlrNumerico().intValue();\r\n\t\tint codigoDialise = parametroFacade\r\n\t\t\t\t.buscarAghParametro(\r\n\t\t\t\t\t\tAghuParametrosEnum.P_AGHU_PROCEDIMENTO_HOSPITALAR_INTERNO_DIALISE)\r\n\t\t\t\t.getVlrNumerico().intValue();\r\n\r\n\t\tfor (MpmPrescricaoProcedimento procedimento : procedimentosMap.keySet()) {\r\n\r\n\t\t\tInteger codigoProcedimentoInterno = procedimentosMap.get(\r\n\t\t\t\t\tprocedimento).getSeq();\r\n\t\t\tboolean gerarLaudo = true;\r\n\r\n\t\t\tif (codigoProcedimentoInterno == codigoHemodialise\r\n\t\t\t\t\t|| codigoProcedimentoInterno == codigoDialise) {\r\n\t\t\t\tgerarLaudo = !this.getConfirmarPrescricaoMedicaRN()\r\n\t\t\t\t\t\t.verificarPacienteContaApac();\r\n\r\n\t\t\t}\r\n\r\n\t\t\tif (gerarLaudo) {\r\n\r\n\t\t\t\tlaudo = new MpmLaudo();\r\n\t\t\t\tlaudo.setDthrInicioValidade(prescricao.getDthrInicio());\r\n\r\n\t\t\t\tDate dataFimValidade = prescricao.getDthrInicio();\r\n\t\t\t\tif (procedimento.getDuracaoTratamentoSolicitado() != null) {\r\n\t\t\t\t\tdataFimValidade = DateUtil.adicionaDias(dataFimValidade,\r\n\t\t\t\t\t\t\tprocedimento.getDuracaoTratamentoSolicitado()\r\n\t\t\t\t\t\t\t\t\t.intValue() - 1);\r\n\t\t\t\t}\r\n\t\t\t\tlaudo.setDthrFimValidade(dataFimValidade);\r\n\t\t\t\tlaudo.setDthrFimPrevisao(dataFimValidade);\r\n\r\n\t\t\t\tlaudo.setJustificativa(procedimento.getJustificativa());\r\n\t\t\t\tlaudo.setContaDesdobrada(false);\r\n\t\t\t\tlaudo.setImpresso(false);\r\n\t\t\t\t// #51803\r\n\t\t\t\tif (procedimento.getDuracaoTratamentoSolicitado() == null\r\n\t\t\t\t\t\t|| procedimento.getDuracaoTratamentoSolicitado() == 0) {\r\n\t\t\t\t\tlaudo.setDuracaoTratSolicitado((short) 1);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tlaudo.setDuracaoTratSolicitado(procedimento\r\n\t\t\t\t\t\t\t.getDuracaoTratamentoSolicitado());\r\n\t\t\t\t}\r\n\t\t\t\tlaudo.setLaudoManual(false);\r\n\t\t\t\tlaudo.setAtendimento(prescricao.getAtendimento());\r\n\t\t\t\tlaudo.setPrescricaoProcedimento(procedimento);\r\n\t\t\t\tlaudo.setProcedimentoHospitalarInterno(procedimentosMap\r\n\t\t\t\t\t\t.get(procedimento));\r\n\r\n\t\t\t\tthis.adicionarLaudoLista(laudoList, laudo);\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}", "public void provocarEvolucion(Tribu tribuJugador, Tribu tribuDerrotada){\r\n System.out.println(\"\\n\");\r\n System.out.println(\"-------------------Fase de evolución ----------------------\");\r\n int indiceAtributo;\r\n int indiceAtributo2;\r\n double golpeViejo = determinarGolpe(tribuJugador);\r\n for(int i = 1; i <= 10 ; i++){\r\n System.out.println(\"Iteración número: \" + i);\r\n indiceAtributo = (int)(Math.random() * 8);\r\n indiceAtributo2 = (int)(Math.random() * 8);\r\n String nombreAtributo1 = determinarNombrePosicion(indiceAtributo);\r\n String nombreAtributo2 = determinarNombrePosicion(indiceAtributo2);\r\n if((tribuJugador.getArray()[indiceAtributo] < tribuDerrotada.getArray()[indiceAtributo] \r\n && (tribuJugador.getArray()[indiceAtributo2] < tribuDerrotada.getArray()[indiceAtributo2]))){\r\n System.out.println(\"Se cambió el atributo \" + nombreAtributo1 + \" de la tribu del jugador porque\"\r\n + \" el valor era \" + tribuJugador.getArray()[indiceAtributo] + \" y el de la tribu enemeiga era de \"\r\n + tribuDerrotada.getArray()[indiceAtributo] + \" esto permite hacer más fuerte la tribu del jugador.\");\r\n \r\n tribuJugador.getArray()[indiceAtributo] = tribuDerrotada.getArray()[indiceAtributo];\r\n \r\n System.out.println(\"Se cambió el atributo \" + nombreAtributo2 + \" de la tribu del jugador porque\"\r\n + \" el valor era \" + tribuJugador.getArray()[indiceAtributo2] + \" y el de la tribu enemeiga era de \"\r\n + tribuDerrotada.getArray()[indiceAtributo2] + \" esto permite hacer más fuerte la tribu del jugador.\");\r\n \r\n tribuJugador.getArray()[indiceAtributo2] = tribuDerrotada.getArray()[indiceAtributo2];\r\n }\r\n }\r\n double golpeNuevo = determinarGolpe(tribuJugador);\r\n if(golpeNuevo > golpeViejo){\r\n tribus.replace(tribuJugador.getNombre(), determinarGolpe(tribuJugador));\r\n System.out.println(\"\\nTribu evolucionada\");\r\n imprimirAtributos(tribuJugador);\r\n System.out.println(\"\\n\");\r\n System.out.println(tribus);\r\n }\r\n else{\r\n System.out.println(\"\\nTribu sin evolucionar\");\r\n System.out.println(\"La tribu no evolucionó porque no se encontraron atributos\"\r\n + \" que permitiesen crecer su golpe\");\r\n imprimirAtributos(tribuJugador);\r\n System.out.println(\"\\n\");\r\n System.out.println(tribus);\r\n }\r\n }", "private void limpa() {\n\t\t// limpa Alfabeto\n\t\tsimbolos.limpar();\n\t\t// limpa conjunto de estados\n\t\testados.limpar();\n\t\t// limpa Funcao Programa\n\t\tfuncaoPrograma.limpar();\n\t\t// Limpa estados finais\n\t\testadosFinais.limpar();\n\t}", "public double calculoCuotaEspecialOrdinario() {\n\tdouble resultado =0;\n\tresultado = (getMontoCredito()+(getMontoCredito()*getInteres()/100))/getPlazo(); \n\treturn resultado;\n}", "public static void atacar(){\n int aleatorio; //variables locales a utilizar\n Random numeroAleatorio = new Random(); //declarando variables tipo random para aleatoriedad\n int ataqueJugador;\n //acciones de la funcion atacar sobre vida del enemigo\n aleatorio = (numeroAleatorio.nextInt(20-10+1)+10);\n ataqueJugador= ((nivel+1)*10)+aleatorio;\n puntosDeVidaEnemigo= puntosDeVidaEnemigo-ataqueJugador;\n \n }", "protected void ucitajSortiranoPoBrojRez() {\n\t\tObject[]redovi=new Object[9];\r\n\t\tdtm.setRowCount(0);\r\n\t\t\r\n\t\tfor(Rezervacije r:alSort) {\r\n\t\t\t\r\n\t\t\tredovi[0]=r.getID_Rez();\r\n\t\t\tredovi[1]=r.getImePrezime();\r\n\t\t\tredovi[2]=r.getImePozorista();\r\n\t\t\tredovi[3]=r.getNazivPredstave();\r\n\t\t\tredovi[4]=r.getDatumIzvodjenja();\r\n\t\t\tredovi[5]=r.getVremeIzvodjenja();\r\n\t\t\tredovi[6]=r.getScenaIzvodjenja();\r\n\t\t\tredovi[7]=r.getBrRezUl();\r\n\t\t\tredovi[8]=r.getCenaUlaznica();\r\n\t\t\tdtm.addRow(redovi);\r\n\t\t}\r\n\t}", "public double getCustoAluguel(){\n return 2 * cilindradas;\n }", "public void faiLavoro(){\n System.out.println(\"Scrivere 1 per Consegna lunga\\nSeleziona 2 per Consegna corta\\nSeleziona 3 per Consegna normale\");\n\n switch (creaturaIn.nextInt()) {\n case 1 -> {\n soldiTam += 500;\n puntiVita -= 40;\n puntiFame -= 40;\n puntiFelicita -= 40;\n }\n case 2 -> {\n soldiTam += 300;\n puntiVita -= 20;\n puntiFame -= 20;\n puntiFelicita -= 20;\n }\n case 3 -> {\n soldiTam += 100;\n puntiVita -= 10;\n puntiFame -= 10;\n puntiFelicita -= 10;\n }\n }\n checkStato();\n }", "public void distribuirAportes2(){\n\n if(comprobanteSeleccionado.getAporteorganismo().floatValue() > 0f){\n comprobanteSeleccionado.setAportecomitente(comprobanteSeleccionado.getMontoaprobado().subtract(comprobanteSeleccionado.getAporteuniversidad().add(comprobanteSeleccionado.getAporteorganismo())));\n }\n }", "public Jogo jogoComMaisJogadas() {\r\n\t\tJogo jogoComMaisJogadas = listaDeJogosComprados.get(0);\r\n\t\t\r\n\t\tfor (Jogo jogo : listaDeJogosComprados) {\r\n\t\t\tif (jogo.getVezesJogadas() >= jogoComMaisJogadas.getVezesJogadas()) {\r\n\t\t\t\tjogoComMaisJogadas = jogo;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn jogoComMaisJogadas;\r\n\t}", "private void ucitajTestPodatke() {\n\t\tList<Integer> l1 = new ArrayList<Integer>();\n\n\t\tRestoran r1 = new Restoran(\"Palazzo Bianco\", \"Bulevar Cara Dušana 21\", KategorijeRestorana.PICERIJA, l1, l1);\n\t\tRestoran r2 = new Restoran(\"Ananda\", \"Petra Drapšina 51\", KategorijeRestorana.DOMACA, l1, l1);\n\t\tRestoran r3 = new Restoran(\"Dizni\", \"Bulevar cara Lazara 92\", KategorijeRestorana.POSLASTICARNICA, l1, l1);\n\n\t\tdodajRestoran(r1);\n\t\tdodajRestoran(r2);\n\t\tdodajRestoran(r3);\n\t}", "public static void CrearListaDeOleadasPorNivel(LinkedList<LinkedList<Enemigo>> Enemigos, int NumeroDeNivel, LinkedList<LinkedList<Posicion>> ListaDeEstelas, double Velocidad) {\n\t\tRandom aleatorio = new Random();\n\t\tint oleada = 1;\n\n\t\t// Genera un numero Random de enemigos para cada nivel de 12 a 17\n\t\tInteger numeroDeEnemigosPorNivel = (12 + aleatorio.nextInt(6));\n\n\t\t// Adentro de este loop se agregan todos los enemigos a la lista Enemigos\n\t\twhile (numeroDeEnemigosPorNivel > 0) {\n\t\t\toleada++;\n\t\t\t// oleadaEnemigos es una oleada\n\t\t\tLinkedList<Enemigo> oleadaEnemigos = new LinkedList<Enemigo>();\n\n\t\t\t// Genera Un numero Random de enemigos para cada oleada de 0 a 4\n\t\t\tint numeroDeEnemigosPorOleada = (aleatorio.nextInt(5));\n\t\t\tfor (int i = numeroDeEnemigosPorOleada; i != 0; i--) {\n\n\t\t\t\t/* Genera Un numero Random de enemigos para cada oleada de 0 a 4 */\n\t\t\t\tMisilBalistico MB = new MisilBalistico(Velocidad);\n\t\t\t\tMB.determinarDesplazamiento(Velocidad);\n\t\t\t\tListaDeEstelas.add(MB.getEstela().getListaDeEstelas());\n\t\t\t\toleadaEnemigos.add(MB);\n\t\t\t\tnumeroDeEnemigosPorNivel--;\n\t\t\t}\n\n\t\t\t// En todos los niveles se van a agregar los Misil Cruceros Inteligentes y los\n\t\t\t// Misil cruceros apartir de la oleada 4\n\t\t\tif ((oleada == 4)){\n\t\t\t\tif (VectorDeMisilesCrucerosPorNivel[NumeroDeNivel]) {\n\t\t\t\t\tMisilCruceroInteligente MCI = new MisilCruceroInteligente(Velocidad);\n\t\t\t\t\toleadaEnemigos.add(MCI);\n\t\t\t\t} else {\n\t\t\t\t\tMisilCrucero MC = new MisilCrucero(Velocidad);\n\t\t\t\t\toleadaEnemigos.add(MC);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * Se agregan a la oleada de enemigos 2 bombarderos por nivel, siendo\n\t\t\t * aleatoriamente seleccionado si es un Satelite o un Avion utilizando un random\n\t\t\t * que devuelva 0 o 1 para determinar que bombardero sera el que se agregue a la\n\t\t\t * oleada\n\t\t\t */\n\n\t\t\tif ((oleada == 3) || (oleada == 7)) {\n\t\t\t\tint numeroDeBombarderosPorOleada = (aleatorio.nextInt(2));\n\t\t\t\tif (numeroDeBombarderosPorOleada == 1) {\n\t\t\t\t\tAvion A = new Avion();\n\t\t\t\t\toleadaEnemigos.add(A);\n\t\t\t\t} else {\n\t\t\t\t\tSatelite S = new Satelite();\n\t\t\t\t\toleadaEnemigos.add(S);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Agrego la oleada a la lista de oleadas\n\t\t\tEnemigos.add(oleadaEnemigos);\n\t\t}\n\n\t}", "public void realizacjap34() {\n System.out.println(\"REALIZACJA PUNKTU 3\\n\");\n\n System.out.println(\"\\nWyszukiwanie osob po imieniu (Piotr) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzOsobyPoImieniu(Listy.osoby, \"Piotr\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po nazwisku (Oleszczuk) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzOsobyPoNazwisku(Listy.osoby, \"Oleszczuk\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy mniejszym niz 10============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyMniejszymNiz(Listy.osoby, 10).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy większym niz 10============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyWiekszymNiz(Listy.osoby, 10).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy równym 5============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyRownym(Listy.osoby, 5).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin mniejszej niz 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachMniejszychNiz(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin wiekszej niz 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachWiekszychNiz(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin równej 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachRownych(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji wiekszej niz 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiWiekszejNiz(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji mniejszej niz 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiMniejszejNiz(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji rownej 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiRownej(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stanowisku (Adiunkt) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStanowisku(Listy.osoby, \"Adiunkt\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie studenta po numerze indeksu (123456) ============================================================================\\n\");\n System.out.println(NarzedziaWyszukiwania.znajdzStudentaPoIndeksie(Listy.osoby, \"123456\"));\n\n System.out.println(\"\\nWyszukiwanie studentów po roku studiów (1) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzStudentowPoRokuStudiow(Listy.osoby, 1).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie studentów po kierunku (Informatyka Stosowana) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzStudentowPoKierunku(Listy.osoby, \"Informatyka Stosowana\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie kursu po nazwie (Analiza Matematyczna 1) ============================================================================\\n\");\n System.out.println(NarzedziaWyszukiwania.znajdzKursPoNazwie(Listy.kursy, \"Analiza Matematyczna 1\"));\n\n System.out.println(\"\\nWyszukiwanie kursów po liczbie ects (5) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzKursyPoECTS(Listy.kursy, 5).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie kursów po prowadzacym+\"+Listy.osoby.get(0).getImie()+\" \"+Listy.osoby.get(0).getNazwisko()+\" ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzKursyPoProwadzacym(Listy.kursy, Listy.osoby.get(0)).forEach(System.out::println);\n\n\n //REALIZACJA PUNKTU 4\n System.out.println(\"=====================================================================================================================\");\n System.out.println(\"REALIZACJA PUNKTU 4\");\n System.out.println(\"=====================================================================================================================\\n\");\n System.out.println(\"Kursy:\\n\");\n for (Kurs kurs : Listy.kursy) {\n System.out.println(kurs.toString());\n }\n\n System.out.println(\"\\nOsoby:\\n\");\n for (Osoba osoba : Listy.osoby) {\n System.out.println(\"OSOBA====================================================================================================\");\n System.out.println(osoba.toString());\n System.out.println();\n }\n }", "public void aggiungiPiatto(String nome_piatto, double prezzo_piatto, int porzioni) {\n\t\tPiatto nuovo_piatto= new Piatto(nome_piatto,prezzo_piatto, porzioni);\n\t\tquantita.add(nuovo_piatto);\n\t\tquantita.sort();\n\t}", "public static void main(String[] args) {\n\t\tComplejo v[] = new Complejo[5];\r\n\t\tv[0] = new Complejo(1,5);\r\n\t\tv[1] = new Complejo(10,-3);\r\n\t\tv[2] = new Complejo(-1,4);\r\n\t\tv[3] = new Complejo(8,0);\r\n\t\tv[4] = new Complejo(9,3);\r\n\t\t\r\n\t\tfor (Complejo c : v) {\r\n\t\t\tSystem.out.println(c.modulo());\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println(\"\");\r\n\t\tArrays.sort(v);\r\n\t\tfor (Complejo c : v) {\r\n\t\t\tSystem.out.println(c.modulo());\t\t\t\r\n\t\t}\r\n\t}", "public void ordina(int[] valori) {\n\t\t\n\t}", "@Override\n public int compareTo(AnimalExtinto libritos) {\n\n int res = this.age - libritos.age; //aqui compara con una resta cuales son menores a mayores si queremos de mayor a menor es libritos.age - this.age \n //example si this.age = libritos.age retorna 0, si this.age > libritos.age es mayor y asi viceversa TA POTENTE\n\n // this.name.compareTo(libritos.name); // aqui ordena los nombres\n\n if (res == 0) { \n return this.name.compareTo(libritos.name); //aqui ordena de menor a mayor y si hay dos edades iguales ordena por orden alfabetico\n }\n return res;\n }", "@Override\n public void imprimir() {\n System.out.println(\"Vehiculos ordenados por precio mayor a menor:\");\n if(a1.precio>a2.precio && a1.precio >m1.precio && a1.precio >m2.precio){\n System.out.println(a1.marca+\"\"+a1.modelo);\n if(a2.precio >m1.precio && a2.precio >m2.precio){\n System.out.println(a2.marca+\"\"+a2.modelo);\n if(m1.precio >m2.precio){\n System.out.println(m1.marca+\"\"+m1.modelo);\n System.out.println(m2.marca+\"\"+m2.modelo);\n }else{\n System.out.println(m2.marca+\"\"+m1.modelo);\n System.out.println(m1.marca+\"\"+m1.modelo);\n \n }\n }else{\n if(m1.precio >a2.precio && m1.precio >m2.precio){\n System.out.println(m1.marca+\"\"+m1.modelo);\n if(a2.precio >m2.precio){\n System.out.println(a2.marca+\"\"+a2.modelo);\n System.out.println(m2.marca+\"\"+m2.modelo);\n }else{\n System.out.println(m2.marca+\"\"+m2.modelo);\n System.out.println(a2.marca+\"\"+a2.modelo);\n \n }\n }else{\n if(m2.precio >a2.precio && m2.precio >m1.precio){\n System.out.println(m2.marca+\"\"+m2.modelo);\n if(m1.precio >a2.precio){\n System.out.println(m1.marca+\"\"+m1.modelo);\n System.out.println(a2.marca+\"\"+a2.modelo);\n }else{\n System.out.println(a2.marca+\"\"+a2.modelo);\n System.out.println(m1.marca+\"\"+m1.modelo);\n }\n }\n }\n }\n }else{\n if(a2.precio>a1.precio && a2.precio >m1.precio && a2.precio >m2.precio){\n System.out.println(a2.marca+\" \"+a2.modelo);\n if(a1.precio >m1.precio && a1.precio >m2.precio){\n System.out.println(a1.marca+\" \"+a1.modelo);\n if(m1.precio >m2.precio){\n System.out.println(m1.marca+\" \"+m1.modelo);\n System.out.println(m2.marca+\" \"+m2.modelo);\n }else{\n System.out.println(m2.marca+\" \"+m2.modelo);\n System.out.println(m1.marca+\" \"+m1.modelo);\n \n }\n }else{\n if(m1.precio >a1.precio && m1.precio >m2.precio){\n System.out.println(m1.marca+\" \"+m1.modelo);\n if(a1.precio >m2.precio){\n System.out.println(a1.marca+\" \"+a1.modelo);\n System.out.println(m2.marca+\" \"+m2.modelo);\n }else{\n System.out.println(m2.marca+\" \"+m2.modelo);\n System.out.println(a1.marca+\" \"+a1.modelo);\n \n }\n }else{\n if(m2.precio >a1.precio && m2.precio >m1.precio){\n System.out.println(m2.marca+\" \"+m2.modelo);\n if(m1.precio >a1.precio){\n System.out.println(m1.marca+\" \"+m1.modelo);\n System.out.println(a1.marca+\" \"+a1.modelo);\n }else{\n System.out.println(a1.marca+\" \"+a1.modelo);\n System.out.println(m1.marca+\" \"+m1.modelo);\n }\n }\n }\n }\n }else{\n if(m1.precio>a2.precio && m1.precio >a1.precio && m1.precio >m2.precio){\n System.out.println(m1.marca+\" \"+m1.modelo);\n if(a2.precio >a1.precio && a2.precio >m2.precio){\n System.out.println(a2.marca+\" \"+a2.modelo);\n if(a1.precio >m2.precio){\n System.out.println(a1.marca+\" \"+a1.modelo);\n System.out.println(m2.marca+\" \"+m2.modelo);\n }else{\n System.out.println(m2.marca+\" \"+m2.modelo);\n System.out.println(a1.marca+\" \"+a1.modelo);\n \n }\n }else{\n if(a1.precio >a2.precio && a1.precio >m2.precio){\n System.out.println(a1.marca+\"\"+a1.modelo);\n if(a2.precio >m2.precio){\n System.out.println(a2.marca+\" \"+a2.modelo);\n System.out.println(m2.marca+\" \"+m2.modelo);\n }else{\n System.out.println(m2.marca+\" \"+m2.modelo);\n System.out.println(a2.marca+\" \"+a2.modelo);\n \n }\n }else{\n if(m2.precio >a2.precio && m2.precio >a1.precio){\n System.out.println(m2.marca+\" \"+m2.modelo);\n if(a1.precio >a2.precio){\n System.out.println(a1.marca+\" \"+a1.modelo);\n System.out.println(a2.marca+\" \"+a2.modelo);\n }else{\n System.out.println(a2.marca+\" \"+a2.modelo);\n System.out.println(a1.marca+\" \"+a1.modelo);\n }\n }\n }\n }\n }else{ \n if(m2.precio>a2.precio && m2.precio >a1.precio && m2.precio >m1.precio){\n System.out.println(m2.marca+\" \"+m2.modelo);\n if(a2.precio >a1.precio && a2.precio >m1.precio){\n System.out.println(a2.marca+\" \"+a2.modelo);\n if(a1.precio >m1.precio){\n System.out.println(a1.marca+\" \"+a1.modelo);\n System.out.println(m1.marca+\" \"+m1.modelo);\n }else{\n System.out.println(m1.marca+\" \"+m1.modelo);\n System.out.println(a1.marca+\" \"+a1.modelo);\n \n }\n }else{\n if(a1.precio >a2.precio && a1.precio >m1.precio){\n System.out.println(a1.marca+\"\"+a1.modelo);\n if(a2.precio >m1.precio){\n System.out.println(a2.marca+\" \"+a2.modelo);\n System.out.println(m1.marca+\" \"+m1.modelo);\n }else{\n System.out.println(m1.marca+\" \"+m1.modelo);\n System.out.println(a2.marca+\" \"+a2.modelo);\n \n }\n }else{\n if(m1.precio >a2.precio && m1.precio >a1.precio){\n System.out.println(m1.marca+\" \"+m1.modelo);\n if(a1.precio >a2.precio){\n System.out.println(a1.marca+\" \"+a1.modelo);\n System.out.println(a2.marca+\" \"+a2.modelo);\n }else{\n System.out.println(a2.marca+\" \"+a2.modelo);\n System.out.println(a1.marca+\" \"+a1.modelo);\n }\n }\n }\n }\n } \n \n }\n\n }\n }\n }", "public GrapheIndicateursProjet (Projet p) {\n seuils = p.getSeuilFixes() ;\n \n // pour l'echelle, on determine les mesures max de toutes les iterations\n \n \n iterations = p.getListeIt() ; \n nbIt = iterations.size() ;\n \n // calcul des maximums\n Iteration tempIt = null ;\n IndicateursIteration tempIndIt = null ;\n for (int i = 0 ; i < nbIt ; i++)\n {\n if (iterations.get(i) instanceof Iteration)\n {\n tempIt = (Iteration)iterations.get(i) ;\n tempIndIt = tempIt.getIndicateursIteration() ;\n // charges\n if (tempIndIt.getTotalCharges() > chargesMax) { chargesMax = tempIndIt.getTotalCharges() ; }\n\t\tif (tempIndIt.getChargeMoyenneParticipants() > moyenneChargesMax) { moyenneChargesMax = tempIndIt.getChargeMoyenneParticipants() ; }\n\t\tif (tempIndIt.getNombreParticipants() > participantsMax) { participantsMax = tempIndIt.getNombreParticipants() ; }\n\t\tif (tempIndIt.getNombreTachesTerminees() > tachesTermineesMax) { tachesTermineesMax = tempIndIt.getNombreTachesTerminees() ; }\n\t\tif (tempIndIt.getNombreMoyenTachesParticipants() > tachesParticipantsMax) { tachesParticipantsMax = tempIndIt.getNombreMoyenTachesParticipants() ; }\n\t\tif (tempIndIt.getDureeMoyenneTaches() > dureeMoyenneTacheMax) { dureeMoyenneTacheMax = tempIndIt.getDureeMoyenneTaches() ; }\n }\n }\n setPreferredSize(new Dimension(ITERATION_WIDTH * nbIt,440));\n\t//setBorder(new TitledBorder(new EtchedBorder(), \"toto\", 5, TitledBorder.ABOVE_TOP)) ;\n }", "public static void main(String[] args) {\n int numeros[] = {2, 3, 4, 2, 4, 5, 6, 2, 1, 2};\n //Creamos segundo arreglo con iguall tamaño que el arreglo nùmeros\n int cuadrados[] = new int[numeros.length];\n //Arreglo para almacenar el proceso de la operación\n String procesos[] = new String[numeros.length];\n //Creamos ciclo de repeticiòn para recorrer arreglo \n for (int indice = 0; indice < numeros.length; indice++) {\n int cuadrado = numeros[indice] * numeros[indice];\n //Almacenamos el proceso de la opreaciòn en el arreglo cuadrados\n cuadrados[indice] = cuadrado;\n \n //Almacenar resultado en el arreglo procesos\n procesos[indice] = numeros[indice] + \"x\" + numeros[indice];\n }\n //Ciclo de repetición para mostrar arreglos\n String print_numeros = \"numeros - \";\n String print_cuadrados = \"cuadrados - \";\n String print_procesos = \"procesoss - \";\n for (int indice = 0; indice < numeros.length; indice++) {\n print_numeros = print_numeros + numeros[indice] + \", \";\n print_cuadrados = print_cuadrados + cuadrados[indice] + \", \";\n print_procesos = print_procesos + procesos[indice] + \", \";\n\n }\n System.out.println(print_numeros);\n System.out.println(print_cuadrados);\n System.out.println(print_procesos);\n \n //suma solo numeros pares\n int acumulador_pares=0;\n for (int indice = 0; indice < 10; indice++) {\n boolean par= detectar_par(numeros[indice]);\n if (par == true) {\n acumulador_pares = acumulador_pares + numeros[indice];\n \n }\n }\n System.out.println(\"La suma de los nùmeros pares es: \"+acumulador_pares);\n \n }", "public void liste()\n {\n Collections.sort(listOrder, new Comparator<Order>() {\n @Override\n public int compare(Order o1, Order o2) {\n return o1.getStart() - o2.getStart(); // use your logic, Luke\n }\n });\n System.out.println(\"LISTE DES ORDRES\\n\");\n System.out.format(\"%8s %8s %5s %13s\", \"ID\", \"DEBUT\", \"DUREE\", \"PRIX\\n\");\n System.out.format(\"%8s %8s %5s %13s\", \"--------\", \"-------\", \"-----\", \"----------\\n\");\n for(int i = 0; i< listOrder.size(); i++) {\n Order order = listOrder.get(i);\n afficherOrdre(order);\n }\n System.out.format(\"%8s %8s %5s %13s\", \"--------\", \"-------\", \"-----\", \"----------\\n\");\n }", "public void dividirDineroGobierno() {\n\n double dineroDividible = super.getMundo().getGobierno().getCapitalEconomico() / 2;\n double dineroPorPersona = super.getMundo().contarPersonas();\n\n if (dineroDividible > 0) {\n\n super.getMundo().gobiernoDarDinero(dineroDividible);\n\n for (Persona p : super.getMundo().getListaDoctores())\n p.ganarDinero(dineroPorPersona);\n for (Persona p : super.getMundo().getListaCocineros())\n p.ganarDinero(dineroPorPersona);\n for (Persona p : super.getMundo().getListaAlbaniles())\n p.ganarDinero(dineroPorPersona);\n for (Persona p : super.getMundo().getListaHerreros())\n p.ganarDinero(dineroPorPersona);\n for (Persona p : super.getMundo().getListaCocineros())\n p.ganarDinero(dineroPorPersona);\n for (Persona p : super.getMundo().getListaDoctores())\n p.ganarDinero(dineroPorPersona);\n for (Persona p : super.getMundo().getListaCocineros())\n p.ganarDinero(dineroPorPersona);\n for (Persona p : super.getMundo().getListaAlbaniles())\n p.ganarDinero(dineroPorPersona);\n for (Persona p : super.getMundo().getListaHerreros())\n p.ganarDinero(dineroPorPersona);\n for (Persona p : super.getMundo().getListaCocineros())\n p.ganarDinero(dineroPorPersona);\n }\n }", "private int generujViacZvierat(int pocet){\r\n int poc = 0;\r\n for (int i = 0; i < pocet; i++) {\r\n if (zoo.pridajZivocicha(vytvorZivocicha())) poc++;\r\n }\r\n return poc;\r\n }", "public void genererchemin() {\r\n\t\tRandom hauteur1 = new Random();\r\n\t\tRandom longueur2 = new Random();\r\n\t\tRandom choix = new Random();\r\n\t\tArrayList chemin = new ArrayList();\r\n\t\tSystem.out.println(this.getHauteur());\r\n\t\tSystem.out.println(this.getLargeur());\r\n\t\tint milieu = getLargeur() / 2;\r\n\t\t//System.out.println(milieu);\r\n\t\tCoordonnees c = new Coordonnees(milieu, hauteur1.nextInt(\r\n\t\t\t\tgetLargeur()));\r\n\t\tchemin.add(c);\r\n\t\tchemin.add(new Coordonnees(0, 0));\r\n\t\tchemin.add(new Coordonnees(getLargeur() - 1, getHauteur() - 1));\r\n\t\tCoordonnees droite = new Coordonnees(milieu + 1, c.getHauteur());\r\n\t\tchemin.add(droite);\r\n\t\tCoordonnees gauche = new Coordonnees(milieu - 1, c.getHauteur());\r\n\t\tchemin.add(gauche);\r\n\t\tCoordonnees base1 = new Coordonnees(0, 0);\r\n\t\tCoordonnees base2 =new Coordonnees(getLargeur() - 1, getHauteur() - 1);\r\n\r\n\t\twhile (!gauche.equals(base1)) {\r\n\t\t\tif (gauche.getLargeur() == 0) {\r\n\t\t\t\tgauche = new Coordonnees(0, gauche.getHauteur() - 1);\r\n\t\t\t\tchemin.add(gauche);\r\n\t\t\t} else if (gauche.getHauteur() == 0) {\r\n\t\t\t\tgauche = new Coordonnees(gauche.getLargeur() - 1, 0);\r\n\t\t\t\tchemin.add(gauche);\r\n\t\t\t}\r\n\t\t\telse if (choix.nextInt(2) == 0) {\r\n\t\t\t\tgauche = new Coordonnees(gauche.getLargeur() - 1, \r\n\t\t\t\t\t\tgauche.getHauteur());\r\n\t\t\t\tchemin.add(gauche);\r\n\t\t\t} else {\r\n\t\t\t\tgauche = new Coordonnees(gauche.getLargeur(), \r\n\t\t\t\t\t\tgauche.getHauteur() - 1);\r\n\t\t\t\tchemin.add(gauche);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\twhile (!droite.equals(base2)) {\r\n\t\t\tif (droite.getLargeur() == (this.largeur -1)) {\r\n\t\t\t\tdroite = new Coordonnees(droite.getLargeur(), \r\n\t\t\t\t\t\tdroite.getHauteur() + 1);\r\n\t\t\t\tchemin.add(droite);\r\n\r\n\t\t\t} else if (droite.getHauteur() == (this.hauteur -1)) {\r\n\t\t\t\tdroite = new Coordonnees(droite.getLargeur() + 1, \r\n\t\t\t\t\t\tdroite.getHauteur());\r\n\t\t\t\tchemin.add(droite);\r\n\t\t\t\t//System.out.println(\"fais chier\");\r\n\t\t\t}\r\n\t\t\telse if (choix.nextInt(2) == 0) {\r\n\t\t\t\tdroite = new Coordonnees(droite.getLargeur() + 1, \r\n\t\t\t\t\t\tdroite.getHauteur());\r\n\t\t\t\tchemin.add(droite);\r\n\t\t\t} else {\r\n\t\t\t\tdroite = new Coordonnees(droite.getLargeur(), \r\n\t\t\t\t\t\tdroite.getHauteur() + 1);\r\n\t\t\t\tchemin.add(droite);\r\n\t\t\t}\r\n\t\t}\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Quel est le pourcentage d'obstacle souhaite :\");\r\n\t\tint pourcentage = sc.nextInt();\r\n\t\tint ctp = getHauteur() * getLargeur() * pourcentage / 100;\r\n\t\twhile(ctp >0){\r\n\t\t\tCoordonnees obstacle = new Coordonnees(longueur2.nextInt(getLargeur()), \r\n\t\t\t\t\thauteur1.nextInt(getHauteur()));\r\n\t\t\t//System.out.println(!chemin.contains(obstacle));\r\n\t\t\tif (!chemin.contains(obstacle)) {\r\n\t\t\t\tthis.plateau[obstacle.getHauteur()][obstacle.getLargeur()] = new Obstacle(\r\n\t\t\t\t\t\tobstacle.getHauteur(), obstacle.getLargeur());\r\n\t\t\t\tctp--;\r\n\t\t\t} else {\r\n\t\t\t\t//System.out.println(obstacle + \"est sur le chemin\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static List<Integer> czytanieMotorniczego(){\r\n int numerMotorniczego;\r\n int wiek=0;\r\n int doswiadczenie = 0;\r\n String line;\r\n OdczytZPliku plik = new OdczytZPliku();\r\n InputStream zawartosc = plik.pobierzZPliku(\"bazamotorniczych.txt\");\r\n String numerWStringu = String.valueOf( numerMotorniczego = (int) (Math.random() * 4));\r\n try (InputStreamReader odczyt = new InputStreamReader(zawartosc, StandardCharsets.UTF_8);\r\n BufferedReader czytaj = new BufferedReader(odczyt)) {\r\n while ((line = czytaj.readLine()) != null) {\r\n if (line.equals(numerWStringu)) {\r\n wiek = Integer.parseInt(czytaj.readLine());\r\n doswiadczenie = Integer.parseInt(czytaj.readLine());\r\n break;\r\n }\r\n else{\r\n for (int i = 0; i < 2; i++) {\r\n line = czytaj.readLine();\r\n }\r\n }\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n return List.of(numerMotorniczego, wiek, doswiadczenie);\r\n }", "public static void bestFit(PCB processo, PCB novoprocesso) {\n\n int endereco_pai = processo.getEnderecoInicial();\n int endereco = -1;\n int melhor_espaco = processo.getMemoriaOcupada();\n for (int i = 0; i < tamanho_processos_acabados.size(); i++) {\n if (melhor_espaco <= tamanho_processos_acabados.get(i)) {\n melhor_espaco = tamanho_processos_acabados.get(i);\n endereco = enderecos_processos_acabados.get(i);\n }\n }\n novoprocesso.setEnderecoInicial(endereco);\n for (Pagina pagina : Paginas) {\n if (pagina.getEndereco_inicial() == endereco) {\n pagina.setDados(StageRun.procura_processo_pagina(endereco_pai));\n pagina.setPagina_pid(novoprocesso.getPid());\n pagina.setAlocado(true);\n pagina.setEspacoVazio(pagina.getTamanho() - pagina.getDados().length);\n novoprocesso.setMemoriaOcupada(novoprocesso.getMemoriaOcupada() + tamanho_pagina);\n endereco_pai = endereco_pai + tamanho_pagina;\n } else if (pagina.getEndereco_inicial() > endereco && pagina.getEndereco_inicial() < endereco + processo.getMemoriaOcupada()) {\n pagina.setDados(StageRun.procura_processo_pagina(endereco_pai));\n pagina.setPagina_pid(novoprocesso.getPid());\n pagina.setAlocado(true);\n pagina.setEspacoVazio(pagina.getTamanho() - pagina.getDados().length);\n novoprocesso.setMemoriaOcupada(novoprocesso.getMemoriaOcupada() + tamanho_pagina);\n endereco_pai = endereco_pai + tamanho_pagina;\n } else {\n\n }\n }\n\n }", "@Test\n public void test_distanceLinaireSurX_distanceLinaireSurX_ParcourOptimum_Pour_4villes() {\n\n Pays pays = new Pays(4);\n\n int positionY = (int) (Math.random() * 50);\n\n pays.setPositionVille(0, new Point(2, positionY));\n pays.setPositionVille(1, new Point(3, positionY));\n pays.setPositionVille(2, new Point(4, positionY));\n pays.setPositionVille(3, new Point(5, positionY));\n\n brutForceV3.recherche(pays, 0);\n\n assertEquals(\"0>1>2>3>0\", brutForceV3.getParcours().getVillesEmprunté());\n assertEquals(brutForceV3.getParcours().getDistance(),\n parcoursVilles(pays, brutForceV3.getParcours().getVillesEmprunté(),\">\"));\n\n }", "private void atualizaNumeracaoLote(long numOrdem, long numItem,String caixasDoItem[]) throws Exception\n\t{\n\t\tString valPrimLinha[] = getValoresLinhaItem(GPPTransferenciaVoucher.FLAG_PRIMEIRA_LINHA,caixasDoItem[0]);\n\t\tString valUltLinha[] = getValoresLinhaItem(GPPTransferenciaVoucher.FLAG_ULTIMA_LINHA ,caixasDoItem[caixasDoItem.length-1]);\n\t\t\n\t\t// O numero do item no sistema GPP comeca a partir do numero zero (0)\n\t\t// portanto como na Tecnomen e criado com item 1 o valor e decrescido de um\n\t\tprocBatchPOA.atualizaNumLotePedido(numOrdem,(int)numItem-1,Long.parseLong(valPrimLinha[0]),Long.parseLong(valUltLinha[0]));\n\t}", "private void setPrio(){\n if (opPrio==null){\n opPrio=new HashMap();\n //from low to high\n Integer prio;\n prio=new Integer(1);\n opPrio.put(new Integer(LexAnn.TT_LOR),prio);\n prio=new Integer(2);\n opPrio.put(new Integer(LexAnn.TT_LAND),prio);\n prio=new Integer(5);\n opPrio.put(new Integer(LexAnn.TT_LEQ),prio);\n opPrio.put(new Integer(LexAnn.TT_LNEQ),prio);\n opPrio.put(new Integer(LexAnn.TT_LGR),prio);\n opPrio.put(new Integer(LexAnn.TT_LGRE),prio);\n opPrio.put(new Integer(LexAnn.TT_LLS),prio);\n opPrio.put(new Integer(LexAnn.TT_LLSE),prio);\n prio=new Integer(10);\n opPrio.put(new Integer(LexAnn.TT_PLUS),prio);\n opPrio.put(new Integer(LexAnn.TT_MINUS),prio);\n prio=new Integer(20);\n opPrio.put(new Integer(LexAnn.TT_MULT),prio);\n opPrio.put(new Integer(LexAnn.TT_DIV),prio);\n opPrio.put(new Integer(LexAnn.TT_MOD),prio);\n }\n }", "public void afegirABultoSortida(Number iddoc, Number idlin, String idart, Number cantot, Number pes, boolean absolut)\n {\n Object [] obj = {getIdexped(), getIdbulto(), iddoc, idlin};\n Key key = new Key(obj);\n Row [] rows = getSgaexpedlbulto().findByKey(key, 1);\n if (rows != null && rows.length > 0)\n {\n SgaexpedlbultoImpl lbulto = (SgaexpedlbultoImpl)((ViewRowImpl)rows[0]).getEntity(0); \n if (!absolut)\n {\n // cantidades parciales\n lbulto.setCantot(lbulto.getCantot().add(cantot)); \n lbulto.setPeso(lbulto.getPeso().add(pes));\n }\n else\n {\n // cantidades totales\n lbulto.setCantot(cantot); \n lbulto.setPeso(pes);\n\n }\n // Retrieve cantot, may be needed below\n cantot = lbulto.getCantot();\n\n }\n else\n {\n SgaexpedlbultoImpl noulbulto = (SgaexpedlbultoImpl)getSgaexpedlbulto().createRow();\n noulbulto.setIdexped(getIdexped());\n noulbulto.setIddoc(iddoc);\n noulbulto.setIdlin(idlin);\n noulbulto.setCantot(cantot);\n noulbulto.setPeso(pes);\n \n \n getSgaexpedlbulto().insertRow(noulbulto);\n \n // Michael: Ja no correspond amb el bulto original\n setIdbultoOri(null);\n \n \n }\n // Veure si podem trobar tipus d'embalum, dimensions, i pes per comanda d'export,\n// SgacdocImpl cdoc = getSgacdoc();\n// if (cdoc.isExport()) \n// {\n// AppModuleImpl appModule = (AppModuleImpl)getDBTransaction().getRootApplicationModule();\n// \n// SgatipobultoParamViewRowImpl row = appModule.getSgatipobultoRow(idart, cantot);\n// if (row != null) \n// {\n// setAlto(row.getAlto());\n// setAncho(row.getAncho());\n// setLargo(row.getLargo());\n// setPesocont(row.getPeso());\n// setIdtipobulto(row.getIdtip());\n// }\n// \n// }\n\n }", "private static void ordenamientoMezclaNatural(Comparable[] a, int primero, int ultimo) {\r\n\t\tint i = primero;\r\n\t\tint j = 0;\r\n\t\tint medio = 0;\r\n\t\tint az = 0;\r\n\t\twhile(true) {\r\n\t\t\ti = 0;\r\n\t\t\twhile(i < a.length) {\r\n\t\t\t\tif( i == a.length - 1) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}else if(a[i].compareTo(a[i + 1]) > 0) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tj ++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//medio = primero + ( j - primero) / 2;\r\n\t\t\t\r\n\t\t\tMezcla(a, primero, i, j);\r\n\t\t\tprimero = 0;\r\n\t\t\t\r\n\t\t\tif(estaOrdenado(a)) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Test\n public void test_distanceLinaireSurY_ParcourOptimum_Pour_4villes() {\n\n Pays pays = new Pays(4);\n\n int positionX = (int) (Math.random() * 50);\n\n pays.setPositionVille(0, new Point(positionX, 2));\n pays.setPositionVille(1, new Point(positionX, 3));\n pays.setPositionVille(2, new Point(positionX, 4));\n pays.setPositionVille(3, new Point(positionX, 5));\n\n brutForceV3.recherche(pays, 0);\n\n assertEquals(\"0>1>2>3>0\", brutForceV3.getParcours().getVillesEmprunté());\n assertEquals(brutForceV3.getParcours().getDistance(),\n parcoursVilles(pays, brutForceV3.getParcours().getVillesEmprunté(),\">\"));\n\n }", "private void lisaaMiinaOikealle(int i, int j) {\n ArrayList<Ruutu> lista;\n if (i + 1 < x) {\n lista = this.ruudukko[i + 1];\n lista.get(j).setViereisetMiinat(1);\n if (j - 1 >= 0) {\n lista.get(j - 1).setViereisetMiinat(1);\n }\n if (j + 1 < x) {\n lista.get(j + 1).setViereisetMiinat(1);\n }\n }\n }", "private void dodajEpsilonPrijelaz(int pocetno, int sljedece) {\n String key = pocetno + \",$$\";\n if (!prijelazi.containsKey(key)) {\n prijelazi.put(key, new Integer(sljedece).toString());\n } else {\n String value = prijelazi.get(key) + \",\" + new Integer(sljedece).toString();\n prijelazi.put(key, value);\n }\n }", "public void inicialAleatorio() {\n //aqui adiciona naquele vetor que de auxilio\n alocacao.add(Estados.ELETRICISTAS);\n alocacao.add(Estados.ELETRICISTAS2);\n alocacao.add(Estados.QUALIDADE);\n alocacao.add(Estados.QUALIDADE2);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL2);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL3);\n alocacao.add(Estados.PLANEJAMENTO);\n\n //biblioteca que sorteia aleatoriamente os departamentos\n Collections.shuffle(alocacao);\n\n for (int i = 0; i < 4; i++) {\n matrix[1][i] = alocacao.get(i);\n\n }\n\n for (int i = 0; i < 4; i++) {\n matrix[3][i] = alocacao.get(i + 4);\n }\n\n }", "private Pozycja losujPole(Plansza oPlanszaPrzeciwnika)\n\t\t{\n\t\ttry\n\t\t\t{\n\t\t\tPozycja oWylosowanePole = new Pozycja(2);\n\t\t\tint iWylosowanePole = oRand.nextInt( oPlanszaPrzeciwnika.getIloscNieznanych() ) + 1;\n\t\t\t//obliczenie x i y dla wylosowanego pola\n\t\t\tint iX = 0;\n\t\t\tint iY = 0;\n\t\t\twhile (iWylosowanePole > 0)\n\t\t\t\t{\n\t\t\t\tif (oPlanszaPrzeciwnika.getPole(iX, iY) == PlanszaTypPola.PLANSZA_POLE_PUSTE || oPlanszaPrzeciwnika.getPole(iX, iY) == PlanszaTypPola.PLANSZA_STATEK)\n\t\t\t\t\t--iWylosowanePole;\n\t\t\t\tif (iWylosowanePole > 0)\n\t\t\t\t\t{\n\t\t\t\t\t++iX;\n\t\t\t\t\tif (iX == oPlanszaPrzeciwnika.getSzerokosc())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t++iY;\n\t\t\t\t\t\tiX = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\toWylosowanePole.setX(iX);\n\t\t\toWylosowanePole.setY(iY);\n\t\t\treturn oWylosowanePole;\n\t\t\t}\n\t\tcatch (ParametrException e)\n\t\t\t{\n\t\t\tthrow new ProgramistaException(e);\n\t\t\t}\n\t\t}", "private static void kapazitaetPruefen(){\n\t\tList<OeffentlichesVerkehrsmittel> loev = new ArrayList<OeffentlichesVerkehrsmittel>();\n\t\t\n\t\tLinienBus b1 = new LinienBus();\n\t\tFaehrschiff f1 = new Faehrschiff();\n\t\tLinienBus b2 = new LinienBus();\t\n\t\t\n\t\tloev.add(b1);\n\t\tloev.add(b2);\n\t\tloev.add(f1);\n\t\t\n\t\tint zaehlung = 500;\n\t\tboolean ausreichend = kapazitaetPruefen(loev,500);\n\t\tp(\"Kapazitaet ausreichend? \" + ausreichend);\n\t\t\n\t}", "public ArrayList<ArrayList<Float>> predykcjaCenNaRynkuLokalnym()\n\t{\n\t\tfloat cenaMinimalnaNaRynkuLokalnym= Stale.cenaMinimalnaNaRynkuLokalnym;\n\t\tfloat cenaMaksymalnaNaRynkuLokalnym = Stale.cenaDystrybutoraZewnetrznego;\n\t\t\n\t\t//tu siedzi to rozroznienie czy z generatora czy predykcja z poprzendiej symualcji\n\t\tArrayList<Float> normalnaPredykcja = pierwszaPredykcja();\n\t\tpriceVectorsList.add(normalnaPredykcja);\n\t\t\n\t\tArrayList<ArrayList<Float>> listaPredykcjiCen= new ArrayList<ArrayList<Float>>();\n\t\t\n\t\t\n\t\t//nizsza \n\t\tArrayList<Float> predykcjaZNizszaCena=new ArrayList<Float>(normalnaPredykcja);\t\t\n\t\tArrayList<Float> predykcjaZWyzszaCena=new ArrayList<Float>(normalnaPredykcja);\n\t\t\n\t\tfloat nizszaCena =(normalnaPredykcja.get(0)+cenaMinimalnaNaRynkuLokalnym)/2 ;\n\t\tfloat wyzszaCena=(normalnaPredykcja.get(0)+cenaMaksymalnaNaRynkuLokalnym)/2;\n\t\t\n\t\tpredykcjaZNizszaCena.set(0, nizszaCena);\n\t\tpredykcjaZWyzszaCena.set(0, wyzszaCena);\n\t\t\n\t\tlistaPredykcjiCen.add(predykcjaZNizszaCena);\n\t\tlistaPredykcjiCen.add(normalnaPredykcja);\n\t\tlistaPredykcjiCen.add(predykcjaZWyzszaCena);\n\t\t\n\t\t//reporting - zapisz zadeklarowan cene\n\t\trynekHistory.dodajZadeklarowanaCene(normalnaPredykcja.get(0));\n\t\t\n\t\t\n\t\treturn listaPredykcjiCen;\t\n\t}", "public LinkedList<Chromosone> Croisement (Chromosone marie)\n { LinkedList<Chromosone> l =new LinkedList<>();\n Random rand = new Random();\n int pivot = rand.nextInt(Val.size());\n int pivot2 = rand.nextInt(Val.size());\n\n while (pivot==pivot2)\n {\n pivot2 = rand.nextInt(Val.size());\n }\n if (pivot>pivot2)\n {\n int val =pivot2;\n pivot2 = pivot;\n pivot =val;\n }\n\n Chromosone child1 =new Chromosone();\n child1.setVal(new ArrayList<Integer>(Val.subList(0,pivot)) );\n child1.Val.addAll(marie.Val.subList(pivot,pivot2));\n child1.Val.addAll(Val.subList(pivot2,Val.size()));\n\n Chromosone child2 =new Chromosone();\n child2.setVal(new ArrayList<Integer>( marie.Val.subList(0,pivot)));\n child2.Val.addAll(Val.subList(pivot,pivot2));\n child2.Val.addAll(marie.Val.subList(pivot2,Val.size()));\n\n Chromosone child3 =new Chromosone();\n child3.setVal(new ArrayList<Integer>(Val.subList(0,pivot)) );\n child3.Val.addAll(marie.Val.subList(pivot,marie.Val.size()));\n\n Chromosone child4 =new Chromosone();\n child4.setVal(new ArrayList<Integer>( marie.Val.subList(0,pivot2)));\n child4.Val.addAll(Val.subList(pivot2,Val.size()));\n l.add(child1);\n l.add(child2);\n l.add(child3);\n l.add(child4);\n return l;\n }", "@Override\n public int compareTo(MensagemEleicao o) {\n int i = relogio.compareTo(o.relogio);\n if(i==0){ //se a comparação do relogio for igual\n if(id<o.getId()){ //usa o id maior como criterio de decisão;\n return -1;\n }\n return 1;\n }\n return i;\n }", "private static int aleatorio(int minimo, int maximo) {\n int aleatorio = (int) Math.floor(Math.random() * (maximo - minimo + 1) + minimo);\n return aleatorio;\n }", "public void precio4e(){\n precioHabitaciones = precioHabitaciones + (cantidadHabitaciones * numeroCamas);\n\n //Restaurante\n if(capacidadRestaurant < 30){\n precioHabitaciones = precioHabitaciones + 10;\n } else if (capacidadRestaurant > 29 && capacidadRestaurant < 51){\n precioHabitaciones = precioHabitaciones + 30;\n } else if (capacidadRestaurant > 50){\n precioHabitaciones = precioHabitaciones + 50;\n }\n\n //Gimnasio\n switch (gimnasio){\n case \"A\":\n precioHabitaciones = precioHabitaciones + 50;\n break;\n case \"B\":\n precioHabitaciones = precioHabitaciones + 30;\n break;\n }\n\n }", "public static void llenarWalmart(){\r\n \r\n \r\n Producto café = new Producto(\"cafe\", \"nescafe\", 77, 2);\r\n Nodo<Producto> nTemp = new Nodo(café);\r\n listaWalmart.agregarNodo(nTemp);\r\n \r\n Producto panblancobimbo = new Producto(\"pan blanco bimbo\", \"bimbo\", 30, 2);\r\n Nodo<Producto> nTemp2 = new Nodo(panblancobimbo);\r\n listaWalmart.agregarNodo(nTemp2);\r\n \r\n Producto lecheentera = new Producto(\"leche\", \"Lala\", 17, 2);\r\n Nodo<Producto> nTemp3 = new Nodo(lecheentera);\r\n listaWalmart.agregarNodo(nTemp3);\r\n \r\n Producto mantequilla = new Producto(\"mantequilla\", \"sin sal lala\", 11.50, 2);\r\n Nodo<Producto> nTemp4 = new Nodo(mantequilla);\r\n listaWalmart.agregarNodo(nTemp4);\r\n \r\n Producto huevoblanco= new Producto(\"huevo\", \"san juan\",50.50, 2);\r\n Nodo<Producto> nTemp5 = new Nodo(huevoblanco);\r\n listaWalmart.agregarNodo(nTemp5);\r\n \r\n Producto crema= new Producto(\"crema\", \"lala\", 46, 2);\r\n Nodo<Producto> nTemp6 = new Nodo(crema);\r\n listaWalmart.agregarNodo(nTemp6);\r\n \r\n Producto naranja= new Producto(\"naranja\", \"valencia\", 15.90, 0);\r\n Nodo<Producto> nTemp7 = new Nodo(naranja);\r\n listaWalmart.agregarNodo(nTemp7);\r\n \r\n Producto limon= new Producto(\"limon\", \"limon agrio\", 25.90, 0);\r\n Nodo<Producto> nTemp8 = new Nodo(limon);\r\n listaWalmart.agregarNodo(nTemp8);\r\n \r\n Producto manzana= new Producto(\"manzana\", \"red delicious\", 39.90, 0);\r\n Nodo<Producto> nTemp9 = new Nodo(manzana);\r\n listaWalmart.agregarNodo(nTemp9);\r\n \r\n Producto plátano = new Producto(\"platano\", \"chiapas\", 13.90, 0);\r\n Nodo<Producto> nTemp10 = new Nodo(plátano);\r\n listaWalmart.agregarNodo(nTemp10);\r\n \r\n Producto papaya= new Producto(\"papaya\", \"maradol\",27.90, 0);\r\n Nodo<Producto> nTemp11 = new Nodo(papaya);\r\n listaWalmart.agregarNodo(nTemp11);\r\n \r\n Producto uva= new Producto(\"uva\", \"roja sin semilla\", 59, 0);\r\n Nodo<Producto> nTemp12 = new Nodo(uva);\r\n listaWalmart.agregarNodo(nTemp12);\r\n \r\n Producto chiledelarbol= new Producto(\"chile del arbol\", \"verde valle\", 20, 2);\r\n Nodo<Producto> nTemp13 = new Nodo(chiledelarbol);\r\n listaWalmart.agregarNodo(nTemp13);\r\n \r\n Producto piernaymuslodepollo = new Producto(\"pierna y muslo de pollo\", \"bachoco\", 34, 1);\r\n Nodo<Producto> nTemp14 = new Nodo(piernaymuslodepollo);\r\n listaWalmart.agregarNodo(nTemp14);\r\n \r\n Producto pechugadepollo= new Producto(\"pechuga de pollo\", \"bachoco\", 114, 1);\r\n Nodo<Producto> nTemp15 = new Nodo(pechugadepollo);\r\n listaWalmart.agregarNodo(nTemp15);\r\n \r\n Producto costilladecerdo= new Producto(\"costilla de cerdo\", \"pork loin\", 114, 1);\r\n Nodo<Producto> nTemp16 = new Nodo(costilladecerdo);\r\n listaWalmart.agregarNodo(nTemp16);\r\n \r\n Producto carnemolida= new Producto(\"carne molida\", \"premium\", 152, 1);\r\n Nodo<Producto> nTemp17 = new Nodo(carnemolida);\r\n listaWalmart.agregarNodo(nTemp17);\r\n \r\n Producto chuletadecostilla= new Producto(\"chuleta de costilla\", \"premium\", 219, 1);\r\n Nodo<Producto> nTemp18 = new Nodo(chuletadecostilla);\r\n listaWalmart.agregarNodo(nTemp18);\r\n \r\n Producto pescado= new Producto(\"pescado\", \"sierra del golfo\", 89, 1);\r\n Nodo<Producto> nTemp19 = new Nodo(pescado);\r\n listaWalmart.agregarNodo(nTemp19);\r\n \r\n Producto atun= new Producto(\"atun\", \"herdez\", 18.50, 2);\r\n Nodo<Producto> nTemp20 = new Nodo(atun);\r\n listaWalmart.agregarNodo(nTemp20);\r\n \r\n Producto arroz = new Producto(\"arroz\", \"verde valle super extra\", 22.50, 2);\r\n Nodo<Producto> nTemp21 = new Nodo(arroz);\r\n listaWalmart.agregarNodo(nTemp21);\r\n \r\n Producto frijol= new Producto(\"frijol\", \"verde valle\", 30, 2);\r\n Nodo<Producto> nTemp22 = new Nodo(frijol);\r\n listaWalmart.agregarNodo(nTemp22);\r\n \r\n \r\n Producto azucar= new Producto(\"azucar\", \"zulka\", 54, 2);\r\n Nodo<Producto> nTemp23 = new Nodo(azucar);\r\n listaWalmart.agregarNodo(nTemp23);\r\n \r\n Producto consome= new Producto(\"consome\", \"knorr\", 7, 2);\r\n Nodo<Producto> nTemp24 = new Nodo(consome);\r\n listaWalmart.agregarNodo(nTemp24);\r\n \r\n Producto galletassaladas= new Producto(\"galletas saladas\", \"saladitas\", 40, 2);\r\n Nodo<Producto> nTemp25 = new Nodo(galletassaladas);\r\n listaWalmart.agregarNodo(nTemp25);\r\n \r\n Producto sal= new Producto(\"sal\", \"la fina\", 8.90, 2);\r\n Nodo<Producto> nTemp26 = new Nodo(sal);\r\n listaWalmart.agregarNodo(nTemp26);\r\n \r\n Producto pimienta= new Producto(\"pimienta\", \"mccormick\", 47.50, 2);\r\n Nodo<Producto> nTemp27= new Nodo(pimienta);\r\n listaWalmart.agregarNodo(nTemp27);\r\n \r\n Producto comino= new Producto(\"comino\", \"mccormick\", 30, 2);\r\n Nodo<Producto> nTemp28 = new Nodo(comino);\r\n listaWalmart.agregarNodo(nTemp28);\r\n \r\n Producto canela= new Producto(\"canela\", \"el cuernito\", 4.50, 2);\r\n Nodo<Producto> nTemp29 = new Nodo(canela);\r\n listaWalmart.agregarNodo(nTemp29);\r\n \r\n Producto cebolla= new Producto(\"cebolla\", \"blanca\", 31.90, 2);\r\n Nodo<Producto> nTemp30 = new Nodo(cebolla);\r\n listaWalmart.agregarNodo(nTemp30);\r\n \r\n Producto zanahoria= new Producto(\"zanahoria\", \"simple\", 19.50, 2);\r\n Nodo<Producto> nTemp31 = new Nodo(zanahoria);\r\n listaWalmart.agregarNodo(nTemp31);\r\n \r\n Producto polvoparaprepararbebida= new Producto(\"polvo para preparar bebida\", \"zuko\", 3.80, 2);\r\n Nodo<Producto> nTemp32 = new Nodo(polvoparaprepararbebida);\r\n listaWalmart.agregarNodo(nTemp32);\r\n \r\n Producto cereal= new Producto(\"cereal\", \"nestle\", 39.90, 2);\r\n Nodo<Producto> nTemp33 = new Nodo(cereal);\r\n listaWalmart.agregarNodo(nTemp33);\r\n \r\n Producto sopa= new Producto(\"sopa\", \"aurrera \", 3.10, 2);\r\n Nodo<Producto> nTemp34 = new Nodo(sopa);\r\n listaWalmart.agregarNodo(nTemp34);\r\n \r\n \r\n Producto espagueti= new Producto(\"espagueti\", \"moderna\", 5.20, 2);\r\n Nodo<Producto> nTem35 = new Nodo(espagueti);\r\n listaWalmart.agregarNodo(nTem35);\r\n \r\n Producto maquinaparaafeitar= new Producto(\"maquina para afeitar\", \"gillette prestobarba\", 20, 3);\r\n Nodo<Producto> nTemp35 = new Nodo(maquinaparaafeitar);\r\n listaWalmart.agregarNodo(nTemp35);\r\n \r\n Producto shampoo= new Producto(\"shampoo\", \"ego black\", 63.50, 3);\r\n Nodo<Producto> nTemp36 = new Nodo(shampoo);\r\n listaWalmart.agregarNodo(nTemp36);\r\n \r\n \r\n Producto pastadental= new Producto(\"pasta dental\", \"colgate\", 43.50, 3);\r\n Nodo<Producto> nTemp37 = new Nodo(pastadental);\r\n listaWalmart.agregarNodo(nTemp37);\r\n \r\n Producto papelhigienico= new Producto(\"papel higienico\", \"elite\", 17.50, 3);\r\n Nodo<Producto> nTemp38 = new Nodo(papelhigienico);\r\n listaWalmart.agregarNodo(nTemp38);\r\n \r\n Producto pañuelos = new Producto(\"pañuelos\", \"kleenex\", 14.50, 3);\r\n Nodo<Producto> nTemp39 = new Nodo(pañuelos);\r\n listaWalmart.agregarNodo(nTemp39);\r\n \r\n Producto cremad = new Producto(\"crema\", \"pond´s\", 56, 2);\r\n Nodo<Producto> nTemp40 = new Nodo(cremad);\r\n listaWalmart.agregarNodo(nTemp40);\r\n \r\n Producto desodorantemasculino= new Producto(\"desodorante masculino\", \"stefano\", 41.50, 3);\r\n Nodo<Producto> nTemp41 = new Nodo(desodorantemasculino);\r\n listaWalmart.agregarNodo(nTemp41);\r\n \r\n Producto desodorantefemenino= new Producto(\"desodorante femenino\", \"lady speed stick\", 23, 3);\r\n Nodo<Producto> nTemp42 = new Nodo(desodorantefemenino);\r\n listaWalmart.agregarNodo(nTemp42);\r\n \r\n Producto cloro= new Producto(\"cloro\", \"cloralex\", 21, 3);\r\n Nodo<Producto> nTemp43 = new Nodo(cloro);\r\n listaWalmart.agregarNodo(nTemp43);\r\n \r\n Producto pinol= new Producto(\"pinol\", \"pinol\", 29.90, 3);\r\n Nodo<Producto> nTemp44 = new Nodo(pinol);\r\n listaWalmart.agregarNodo(nTemp44);\r\n \r\n Producto lavatrastes= new Producto(\"lavatrastes\", \"axion\", 36.90, 3);\r\n Nodo<Producto> nTemp45 = new Nodo(lavatrastes);\r\n listaWalmart.agregarNodo(nTemp45);\r\n \r\n Producto deterjente= new Producto(\"deterjente\", \"finish\", 99, 3);\r\n Nodo<Producto> nTemp46 = new Nodo(deterjente);\r\n listaWalmart.agregarNodo(nTemp46);\r\n \r\n Producto queso= new Producto(\"queso\", \"chichuahua\", 125, 1);\r\n Nodo<Producto> nTemp47 = new Nodo(queso);\r\n listaWalmart.agregarNodo(nTemp47);\r\n \r\n Producto lentejas= new Producto(\"lentejas\", \"verde valle\", 25.50, 2);\r\n Nodo<Producto> nTemp48 = new Nodo(lentejas);\r\n listaWalmart.agregarNodo(nTemp48);\r\n \r\n Producto papitas= new Producto(\"papitas\", \"sabritas\", 36, 2);\r\n Nodo<Producto> nTemp49 = new Nodo(papitas);\r\n listaWalmart.agregarNodo(nTemp49);\r\n \r\n Producto mole= new Producto(\"mole\", \"doña maria \", 33, 2);\r\n Nodo<Producto> nTemp50 = new Nodo(mole);\r\n listaWalmart.agregarNodo(nTemp50);\r\n }", "public void stworzWrogow() {\n\t\tfor(; aktualnaLiczbaWrogow < MAX_LICZBA_WROGOW; aktualnaLiczbaWrogow++) {\n\t\t\tdouble x = (generatorWspolrzednych.nextInt(550)) + 20 ;\n\t\t\tdouble y = ((generatorWspolrzednych.nextInt(750)) + 20);\n\t\t\tx = x < 0 ? -x : x; \n\t\t\ty = y < 0 ? y : -y;\n\t\t\tStatekWroga statekWroga = new StatekWroga(new Wspolrzedne(x, y));\n\t\t\t\n\t\t\tstatekWroga.setDol(DLUGOSC_RUCHU);\n\t\t\t\n\t\t\tstatkiWroga.add(statekWroga);\n\t\t}\n\t}", "public static int ruolette(ArrayList<Integer> fitvalores, ArrayList<int[]> poblacion, int semilla){ \n int totalfitnes = 0;\n int totalfitnesnuevo = 0;\n int indtablero = 0;\n int semi=semilla;\n int tpoblacion=poblacion.size();\n int []nuevofitness = new int [fitvalores.size()];\n double []nproporcion = new double [fitvalores.size()];\n ArrayList <Double> proporcion = new ArrayList<>();//proporcion j la ruleta\n ArrayList <Double> ruleta = new ArrayList<>();\n //obtener el max fitnes\n for(int i=0;i<fitvalores.size();i++){ //total de fitnes\n totalfitnes=totalfitnes+fitvalores.get(i);\n }\n \n for(int i=0;i<fitvalores.size();i++){ //poner datos en el nuevo fittnes inverso\n double pro=(tpoblacion*tpoblacion-tpoblacion)-fitvalores.get(i);\n nuevofitness[i]= (int) pro;\n // System.out.println(\"nuevo fitnes\"+nuevofitness[i]);\n } \n for(int i=0;i<fitvalores.size();i++){ //total de fitnes nuevo o inverso\n totalfitnesnuevo=(totalfitnesnuevo+nuevofitness[i]);//para que los mejores casos usen mas espacio\n }\n \n for(int i=0;i<fitvalores.size();i++){ //poner datos en el array proporcion\n double var1=nuevofitness[i];\n double var2=totalfitnesnuevo;\n double pro=var1/var2;\n nproporcion[i]=pro;\n //System.out.println(\"nueva proporcion \"+nproporcion[i]);\n } \n ruleta.add(nproporcion[0]);\n // System.out.println(\"primera propporniaso \"+nproporcion[0]);\n for(int i=1;i<fitvalores.size();i++){ //poner datos en la ruleta\n double var1=ruleta.get(i-1);\n double var2=nproporcion[i];\n ruleta.add(var1+var2);\n //System.out.println(\"ruleta \"+ruleta.get(i));\n }\n double num=randomadec(0,1,semi);\n // System.out.println(\"numero random dec \"+num); \n for(int i=0;i<fitvalores.size();i++){ //poner datos en el array proporcion\n // System.out.println(ruleta.get(i));\n if(num<ruleta.get(i)){\n indtablero=i;\n //System.out.println(\"se guardo el tablero \"+indtablero);\n break;\n }\n }\n return indtablero;//esto devuelve el indice del tablero ganador en la ruleta\n }", "protected ArrayList<Integer> bepaalTrioSpelers(Groep groep) {\r\n ArrayList<Integer> trio = new ArrayList<>();\r\n if (groep.getSpelers().size() == 3) {\r\n \t// 3 spelers, dus maak gelijk trio\r\n trio.add(groep.getSpelers().get(0).getId());\r\n trio.add(groep.getSpelers().get(1).getId());\r\n trio.add(groep.getSpelers().get(2).getId());\r\n return trio;\r\n }\r\n int spelerID = 0;\r\n try {\r\n spelerID = IJCController.c().getBeginpuntTrio(groep.getSpelers().size());\r\n }\r\n catch (Exception e) {\r\n \tlogger.log(Level.WARNING, \"Problem with spelersID. No int.\");\r\n }\r\n int minDelta = 1;\r\n int plusDelta = 1;\r\n int ignore = 0;\r\n boolean doorzoeken = true;\r\n while (doorzoeken) {\r\n Speler s1 = groep.getSpelerByID(spelerID);\r\n Speler s2 = groep.getSpelerByID(spelerID - minDelta);\r\n Speler s3 = groep.getSpelerByID(spelerID + plusDelta);\r\n if (isGoedTrio(s1, s2, s3, ignore)) {\r\n trio.add(s1.getId());\r\n trio.add(s2.getId());\r\n trio.add(s3.getId());\r\n return trio;\r\n } else {\r\n if ((s2 == null) || (s3 == null)) {\r\n if (ignore > 4) {\r\n doorzoeken = false;\r\n }\r\n ignore += 1;\r\n minDelta = 1;\r\n plusDelta = 1;\r\n } else {\r\n if (minDelta > plusDelta) {\r\n plusDelta++;\r\n } else {\r\n minDelta++;\r\n }\r\n }\r\n }\r\n }\r\n return trio;\r\n }", "public static int oceniPozicijo(Igra igra, Igralec jaz, int globina) {\n\t\tint N = Igra.N;\n\t\tint vrednost_rdeci;\n\t\tint vrednost_modri;\n\n\t\t// Vrednost za redecega in modrega lahko doloci s pomocjo ene izmed dveh funkcij za oceno pozicije.\n\t\tif (Inteligenca.nacinLokalno == true) {\n\t\t\tvrednost_rdeci = oceni_rdec(igra).vrednost - 1;\n\t\t\tvrednost_modri = oceni_moder(igra).vrednost - 1;\t\n\t\t}\n\t\telse {\n\t\t\tvrednost_rdeci = BfsIskanje.BfsIskanjePotiRdec(igra).size() - 1;\n\t\t\tvrednost_modri = BfsIskanje.BfsIskanjePotiModer(igra).size() - 1;\n\t\t}\n\n\t\t// Tu sta implementirani dve razlicni funkciji, odlocila sva se za prvo, drugo pa pustila,\n\t\t// saj je malo naprednejsa in bi se lahko izkazala za boljso, a tudi prva deluje odlicno.\n\t\tint a = POLNO / (N * N);\n\t\tint b = -a;\n\t\t\n// --- (druga funkcija) ---\n//\t\tdouble alpha = (double) a;\n//\t\tdouble n = (double) N;\n// ---\n\t\t\n\t\t// Ce je zmagovalec znan.\n\t\tif (jaz == Igralec.Rdec) {\n\t\t\tif (vrednost_modri == POLNO || vrednost_rdeci == 0) return POLNO;\n\t\t\tif (vrednost_rdeci == POLNO || vrednost_modri == 0) return -POLNO;\n\t\t\t\n// ---\n//\t\t\tif (vrednost_modri > vrednost_rdeci) {\n//\t\t\t\tdouble z = (2/(n * n - 2) * 1 - 1 / (n * n - 2) * 2 + 1 - 2/(n * n - 2) * vrednost_rdeci + 1 / (n * n - 2) * vrednost_modri) / (2 / (n * n * alpha));\n//\t\t\t\n//\t\t\t\treturn (int) z;\n//\t\t\t} else if (vrednost_modri < vrednost_rdeci) {\n//\t\t\t\tdouble z = ((2/3) * 2 - (1/3) * 1 - (2/3) * vrednost_rdeci + (1/3) * vrednost_modri ) / \n//\t\t\t\t\t\t(2 * (n * n - 2)/(3 * n * n * alpha));\n//\t\t\t\t\t\t\n//\t\t\t\treturn (int) z;\n//\t\t\t} else return 0;\n// ---\t\n\t\t\t\n\t\t\t// Ocena z ravnino in dodatkom. V bistvu gre za funkcijo f:NxN->N, ki mora ustrezati nekaterim\n\t\t\t// pogojem: npr. ce ima rdeci manj do konca kot modri mora vrniti nekaj pozitivnega in obratno\n\t\t\t// dodatek zadaj pa nam se izboljsa funkcijo, kadar smo na diagonali na ravnini.\n\t\t\treturn -(a * vrednost_rdeci + b * vrednost_modri ) + 10 * vrednost_rdeci;\n\t\t\t\n\t\t}\n\t\t// Analogno, a za modrega.\n\t\telse {\n\t\t\tif (vrednost_modri == POLNO || vrednost_rdeci == 0) return -POLNO;\n\t\t\tif (vrednost_rdeci == POLNO || vrednost_modri == 0) return POLNO;\n\t\t\t\n// ---\t\t\t\n//\t\t\tif (vrednost_modri > vrednost_rdeci) {\n//\t\t\t\tdouble z = -(2/(n * n - 2) * 1 - 1 / (n * n - 2) * 2 + 1 - 2/(n * n - 2) * vrednost_rdeci + 1 / (n * n - 2) * vrednost_modri) / (2 / (n * n * alpha));\n//\t\t\t\n//\t\t\t\treturn (int) z;\n//\t\t\t} else if (vrednost_modri < vrednost_rdeci) {\n//\t\t\t\tdouble z = -((2/3) * 2 - (1/3) * 1 - (2/3) * vrednost_rdeci + (1/3) * vrednost_modri ) / \n//\t\t\t\t\t\t(2 * (n * n - 2)/(3 * n * n * alpha));\n//\t\t\t\t\t\t\n//\t\t\t\treturn (int) z;\n//\t\t\t} else return 0;\n// ---\n\t\t\t\n\t\t\treturn (a * vrednost_rdeci + b * vrednost_modri ) + 10 * vrednost_modri;\n\t\t}\n\t}", "int funkcjaRynkuGetIndex(float cena)\n\t{\n\t\tArrayList<Point> L1 =listaFunkcjiUzytecznosci.get(0);\n\n\t\tint a=0;\n\t\twhile (cena>L1.get(a).getPrice())\n\t\t{\n\t\t\ta++;\n\t\t}\n\t\t\n\t\tif(a>0)\n\t\t{\n\t\t\ta--;\n\t\t}\n\t\t\n\t\tif (a==L1.size())\n\t\t{\n\t\t\ta--;\t\n\t\t}\n\t\t\n\t\t\n\t\t//getInput(\"funkcjaRynkuGetIndex \"+a+\" cena \"+ cena);\n\t\t\t\n\t\treturn a;\n\t}", "public Roleta()\r\n {\r\n contadorJogadas = new LinkedHashMap<>(); \r\n //adiciona os valores ao mapa de resultados.\r\n valores = new ArrayList<>();\r\n valores.add(EnumResultados.PASSA_VEZ);\r\n valores.add(EnumResultados.PASSA_VEZ);\r\n valores.add(EnumResultados.PERDE_TUDO);\r\n valores.add(EnumResultados.PERDE_TUDO);\r\n valores.add(EnumResultados.PONTOS_100);\r\n valores.add(EnumResultados.PONTOS_100);\r\n valores.add(EnumResultados.PONTOS_100);\r\n valores.add(EnumResultados.PONTOS_100);\r\n valores.add(EnumResultados.PONTOS_200);\r\n valores.add(EnumResultados.PONTOS_200);\r\n valores.add(EnumResultados.PONTOS_200);\r\n valores.add(EnumResultados.PONTOS_200);\r\n valores.add(EnumResultados.PONTOS_400);\r\n valores.add(EnumResultados.PONTOS_400);\r\n valores.add(EnumResultados.PONTOS_400);\r\n valores.add(EnumResultados.PONTOS_400);\r\n valores.add(EnumResultados.PONTOS_500);\r\n valores.add(EnumResultados.PONTOS_500);\r\n valores.add(EnumResultados.PONTOS_1000);\r\n valores.add(EnumResultados.PONTOS_1000); \r\n \r\n }", "public void sueldo(){\n if(horas <= 40){\n sueldo = horas * cuota;\n }else {\n if (horas <= 50) {\n sueldo = (40 * cuota) + ((horas - 40) * (cuota * 2));\n } else {\n sueldo = ((40 * cuota) + (10 * cuota * 2)) + ((horas - 50) + (cuota * 3));\n }\n }\n\n }", "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 Tirage getTirage(List<ObjetArchiver> listeTirages) {\n\tTirage tirageCorrespondant = new Tirage();\n\t/*\n\t * On calcule l'occurence de chaque numéro et chaque étoile depuis listeTirage\n\t */\n\t// On créer une liste d'occurance pour les étoiles et numéros\n\tList<StatNombre> listeOcNumeros = OccuranceData.getListeStatNumerosEnum();\n\tList<StatNombre> listeOcEtoiles = OccuranceData.getListeStatEtoilesEnum();\n\n\t// On met à jour les occurances de la liste de tirages\n\tfor (ObjetArchiver objetArchiver : listeTirages) {\n\t for (Numero numero : objetArchiver.getNumeros()) {\n\t\tfor (StatNombre statNumero : listeOcNumeros) {\n\t\t if (numero.getNumero() == statNumero.getNombre()) {\n\t\t\tstatNumero.setOccurence(statNumero.getOccurence() + 1);\n\t\t }\n\t\t}\n\t }\n\t for (Etoile etoile : objetArchiver.getEtoiles()) {\n\t\tfor (StatNombre statEtoile : listeOcEtoiles) {\n\t\t if (etoile.getEtoile() == statEtoile.getNombre()) {\n\t\t\tstatEtoile.setOccurence(statEtoile.getOccurence() + 1);\n\t\t }\n\t\t}\n\t }\n\t}\n\n\t// On range dans l'ordre croissant les occurences\n\tCollections.sort(listeOcNumeros, (o1, o2) -> o1.getOccurence().compareTo(o2.getOccurence()));\n\tCollections.sort(listeOcEtoiles, (o1, o2) -> o1.getOccurence().compareTo(o2.getOccurence()));\n\n\t// On prend les 15 dernières occurences de listeOcNumeros\n\tList<Numero> combinaisonNumeros = new ArrayList<>();\n\tList<Etoile> combinaisonEtoiles = new ArrayList<>();\n\tFloat precision = 0F;\n\tFloat precisionNumeros = 0F;\n\tFloat precisionEtoiles = 0F;\n\tInteger listeTiragesSize = listeTirages.size();\n\t// On prend les 5 deniers occurences de listeOcNumros\n\tfor (int i = 1; i <= 15; i++) {\n\t Numero numero = new Numero((listeOcNumeros.get(listeOcNumeros.size() - i)).getNombre());\n\t combinaisonNumeros.add(numero);\n\t // On recupère l'occurence de i\n\t Integer ocCourante = listeOcNumeros.get(listeOcNumeros.size() - i).getOccurence();\n\t /*\n\t * On ajoute le rapport (occurence courante/au nombre de tirage) à la précision\n\t * précédente ce qui revient à faire la moyenne des ratios d'occurence\n\t * (occurence/nb de tirage)\n\t */\n\t precisionNumeros += Float.valueOf((float) ocCourante / (float) listeTiragesSize);\n\t precisionNumeros = precisionNumeros / 2;\n\t}\n\t// On prend les 4 denières occurences de listeOcEtoiles\n\tfor (int i = 1; i <= 4; i++) {\n\t Etoile etoile = new Etoile((listeOcEtoiles.get(listeOcEtoiles.size() - i)).getNombre());\n\t combinaisonEtoiles.add(etoile);\n\t // On recupère l'occurence de i\n\t Integer ocCourante = listeOcEtoiles.get(listeOcEtoiles.size() - i).getOccurence();\n\t /*\n\t * On ajoute le rapport (occurence courante/au nombre de tirage) à la précision\n\t * précédente ce qui revient à faire la moyenne des ratios d'occurence\n\t * (occurence/nb de tirage)\n\t */\n\t precisionEtoiles += Float.valueOf((float) ocCourante / (float) listeTiragesSize);\n\t precisionEtoiles = precisionEtoiles / 2;\n\t}\n\n\t// On recupère la precision du tirage (moyenne des deux precision)\n\tprecision = 100 * (precisionNumeros + precisionEtoiles) / 2;\n\n\ttirageCorrespondant.setPrecision(precision);\n\ttirageCorrespondant.setNumeros(combinaisonNumeros);\n\ttirageCorrespondant.setEtoiles(combinaisonEtoiles);\n\n\treturn tirageCorrespondant;\n }", "public void sortCompetitors(){\n\t\t}" ]
[ "0.64452046", "0.6135452", "0.61310595", "0.61258173", "0.6106105", "0.60966057", "0.60918146", "0.6048213", "0.60472685", "0.5997689", "0.59631574", "0.5917341", "0.5868757", "0.58643115", "0.5858152", "0.58493394", "0.5801677", "0.57840425", "0.57808614", "0.57695633", "0.57459736", "0.5731944", "0.57286716", "0.5715989", "0.5680418", "0.5670547", "0.5667264", "0.5664992", "0.5649249", "0.5627405", "0.5626055", "0.56136614", "0.56060976", "0.56051123", "0.5601898", "0.55973727", "0.55845886", "0.55789834", "0.557739", "0.55759627", "0.557167", "0.55522144", "0.5551462", "0.5543782", "0.5543447", "0.5540984", "0.55222005", "0.5519393", "0.55147445", "0.5506914", "0.5505414", "0.55007064", "0.5497141", "0.54918146", "0.5491", "0.5486842", "0.54858744", "0.5485433", "0.5485213", "0.5480859", "0.5471581", "0.5471094", "0.54702497", "0.54688233", "0.54686576", "0.54679036", "0.5460876", "0.5458038", "0.5457994", "0.54496473", "0.5448853", "0.5448255", "0.5447449", "0.5441202", "0.5441128", "0.54367155", "0.54346585", "0.5431667", "0.5427232", "0.5422591", "0.5419158", "0.5414279", "0.54110986", "0.5410944", "0.54102916", "0.54079616", "0.53989935", "0.53986233", "0.53969836", "0.53863806", "0.5384634", "0.5380317", "0.53789365", "0.5375975", "0.537575", "0.53754014", "0.5370989", "0.5368796", "0.53682286", "0.53671443" ]
0.5502065
51
TODO Autogenerated method stub
public List<String> getAllCompareStrs(String tableName, String columnName) { conn=Tool.getDBCon(); List<String> strs=new ArrayList<String>(); String sql="select "+columnName+" from "+tableName; PreparedStatement ps = null ; ResultSet rs = null ; try { ps = conn.prepareStatement(sql) ; rs = ps.executeQuery() ; while(rs.next()){ String col=rs.getString(1); strs.add(col); } rs.close(); ps.close() ; conn.close() ; } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } return strs; }
{ "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}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\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\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
supplier() should return any kind of mutable storage object such as a collection or array
@Override public Supplier<List<Integer>> supplier() { // constructor method reference // for an Object array use: Object[]::new return ArrayList::new; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void getSupplier(Supplier supplier) {\n\t\r\n}", "public interface Storage {\n\n public Collection<Developers> values();\n\n public int add(final Developers developer);\n\n public void edit(final Developers developer);\n\n public void delete(final int id);\n\n public Developers get(final int id);\n\n public Developers findByName(String name);\n\n public void close();\n}", "@Override\n public Interface_SupplierReadOnly getSupplier() {\n return supplier;\n }", "public Remote.Supplier<SortedSet<E>> getSupplier()\n {\n return m_supplier == null ? DEFAULT_SUPPLIER : m_supplier;\n }", "OStorage getStorage();", "public List<Supplier> getSuppliers(){ \n\t List<Supplier> list=new ArrayList<Supplier>(); \n\t list=template.loadAll(Supplier.class); \n\t return list; \n\t}", "public jkt.hms.masters.business.MasStoreSupplier getSupplier () {\n\t\treturn supplier;\n\t}", "public HashMap<String, T> getStorage();", "public DataStorage getDataStorage();", "public void setSupplier(Supplier supplier) {\n this.supplier = supplier;\n }", "protected Collection getNewBucket()\n {\n return new ArrayList();\n }", "public String getSupplier() {\n return supplier;\n }", "public interface StorageFactory {\n\n\t<T> List<T> createList();\n\t\n\t<T> Set<T> createSet();\n\t\n\t<V> Map<Character, V> createMap();\n\t\n}", "List<T> getStoredData() { return null; }", "public interface SalaryStorage {\n\n /**\n *\n * @return List of SalaryEmployee\n */\n List<SalaryEmployee> getSalaryEmployee();\n}", "public interface NamedStorage extends Iterable<String>, AutoCloseable {\n\n /**\n * Gets data stored by specified key and puts it to the provided stream.\n * Does not close given stream.\n * @param key data key\n * @param stream stream to process data\n * @return true if data was found, false otherwise\n */\n boolean getInto(String key, OutputStream stream);\n\n /**\n * Saves data from stream using provided key. If there was data for this key it will be overwritten with new data.\n * Does not close given stream.\n * @param key data key\n * @param stream stream to get data from\n */\n void saveFrom(String key, InputStream stream);\n\n /**\n * Checks that there is data stored for provided key\n * @param key data key\n * @return true if there is data for this key, false otherwise\n */\n boolean contains(String key);\n\n /**\n * Deletes key and associated data from storage. Does nothing if there is no such key in storage\n * @param key\n */\n void delete(String key);\n\n /**\n *\n * @return iterator for all keys. Order of keys is unknown.\n */\n Iterator<String> iterator();\n\n /**\n * Closes storage and flushes all changes on disk.\n */\n void close();\n\n /**\n * Copies all data to the specified storage\n * @param storage\n */\n void cloneTo(NamedStorage storage);\n}", "public interface SnippetStorage {\n\n /**\n * Get the latest added set.\n * @return The last added snippet set.\n */\n SnippetSet getLatestSet();\n\n boolean addSet(SnippetSet snippetSet);\n\n boolean addSet(String userName, SnippetSet snippetSet);\n\n boolean removeSet(String snippetSetName);\n\n boolean removeSet(String userName, String snippetSetName);\n\n SnippetSet renameSet(String oldSetName, String newSetName);\n\n SnippetSet renameSet(String userName, String oldSetName, String newSetName);\n\n List<String> getWorkingSetNames();\n\n List<String> getWorkingSetNames(String userName);\n\n String[] storedContextIds();\n\n SnippetSet getSet(String id);\n\n SnippetSet getSet(String userName, String id);\n\n Set<String> getAllSetNames();\n\n void deleteSavedSets(List<String> savedSetNames );\n\n void deleteSavedSets(String userName, List<String> savedSetNames );\n\n boolean restoreContext(String id);\n\n boolean storeContext(String id);\n\n void setLogNote(String log, SnippetSet snippetSet);\n}", "int getItemStorage();", "protected abstract RegistryStorage storage();", "public void setSupplier (jkt.hms.masters.business.MasStoreSupplier supplier) {\n\t\tthis.supplier = supplier;\n\t}", "public String supplierList(SupplierDetails s);", "public Set<IS> getFreItemSet();", "public <T> T sync(Supplier<? extends T> supplier) {\n lock.lock();\n try {\n return supplier.get();\n } finally {\n lock.unlock();\n } \n }", "@Override\n\tpublic List<Supplier> getAllSupplier() {\n\t\tString sql=\"SELECT * FROM supplier\";\n\t\tRowMapper<Supplier> rowmapper=new BeanPropertyRowMapper<Supplier> (Supplier.class);\n\t\treturn this.getJdbcTemplate().query(sql, rowmapper);\n\t}", "Object getProduct();", "public interface IStorageService {\n List<Storage> findStorageList();\n}", "public interface IStore<T> {\t\n\t\n\tpublic final static int default_capacity = 999;\t\n\t\n\tpublic int getSize(); //Return the number of objects stored\n\t//public void setSizer(IStoreSizer storeSizer); //Allows for size to be determined by an external party. \n\tpublic T get(int index); // Return the object stored at the corresponding index value\n\tpublic int getCapacity(); //Return the maximum number of IRegisteredParcel objects that can be stored by this Store\n\tpublic T put(int index, T t); //Place input Object at the specified index and return existing object\n\tpublic void clear(); //return oldStore and set new . used for Clearing the store.\n\tpublic IStore<T> clone(); //Return a clone of the current store that is an image frozen at invocation time.\n}", "public Supplier addSupplier(Supplier supplier) {\n\t\treturn supplierRepository.save(supplier);\n\t}", "public Storage(int capacity) {\n this.foods = new Food[capacity];\n buffer = new StringBuffer();\n }", "public RecipeStorage getRecipeStorage() {\n return RecipeStorage.getInstance();\n }", "public PortableSortedSet(Remote.Supplier<SortedSet<E>> supplier)\n {\n m_supplier = supplier;\n }", "public List<SupplierEntity> getSuppliersExclType(String typeName) {\n\n List<SupplierEntity> suppliers = new ArrayList<>();\n\n Session session = SessionFactoryProvider.getSessionFactory().openSession();\n\n Criteria criteria = session.createCriteria(SupplierEntity.class);\n criteria.createCriteria(\"supplierType\").add(Restrictions.ne(\"name\", typeName));\n\n // Language lang = (Language)super.findByCriteria(criteria).get(0);\n\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n suppliers = criteria.list();\n\n } catch (HibernateException e) {\n\n if (tx != null) {\n tx.rollback();\n }\n\n log.error(e.getStackTrace());\n\n } finally {\n session.close();\n }\n\n return suppliers;\n\n }", "Supplier findSupplierById(Integer id)throws SQLException;", "public interface IStorageManager {\n public IStorageBook getValue(String key);\n\n public void addStorageBook(String key, IStorageBook book);\n\n public void clear();\n\n public boolean isEmpty();\n\n public void remove(String key);\n}", "private Set<T> getMemory() { return null; }", "@Override\n public List<KitchenSupplier> getKitchenSupplier(String supplierName) {\n Query query = em.createQuery(\"SELECT k FROM KitchenSupplier k WHERE k.ksupplierName = :inSupplierName\");\n query.setParameter(\"inSupplierName\", supplierName);\n List<KitchenSupplier> s = null;\n try {\n s = query.getResultList();\n } catch (NoResultException ex) {\n System.out.println(\"caught no result exception\");\n }\n return s;\n }", "DataStore getDataStore ();", "public SupplyDemand() {\r\n\t\t//begin\r\n\t\tproducerList = new ArrayList<>();\r\n\t\tretailerList = new ArrayList<>();\r\n\t\t//end\r\n\t}", "public IData getStoreddata();", "public int capacity() { return store.length; }", "public interface Storage {\n\n String getId();\n}", "public interface Storage {\r\n\r\n\tpublic void createSeat(int number, int situation, int musicalEvent,int iCategory);\r\n\tpublic int updateSeat(int number, int situation, int idMusicalEvent);\r\n\tpublic int deleteSeat(int number, int idMusicalEvent);\r\n\tpublic int getSeatNumber(int number, int idMusicalEvent);\r\n\tpublic Seat getSeat(int number, int idMusicalEvent);\r\n\tpublic Seat getSeatById(int id, int idMusicalEvent);\r\n\tpublic void createMusicalEvent(String eventName, Date date, String description);\r\n\tpublic String loadMusicalEvent();\r\n\tpublic MusicalEvent getMusicalEvent(int id);\r\n\tpublic void createClient(String firstname, String surname, String mobilePhone, String firstPhone, String secondPhone, String email,String passport,\r\n\t\t\tString rg, String address, String city, String cpf, Date bornDate);\r\n\tpublic Client getClient(String passport);\r\n\tpublic Client getClient(int id);\r\n\tpublic void updateClient(String firstname, String surname, String mobilePhone, String firstPhone, String secondPhone, String email,String passport,\r\n\t\t\tString rg, String address, String city, String cpf, Date bornDate);\r\n\tpublic String deleteClient(String idPassport);\r\n\tpublic String getSeats(String musicalEvent);\r\n\tpublic String getClients();\r\n\tpublic int createTicket(int musicalEvent,int seat, int price, Date saleDate, int client, String paidForm);\r\n\tpublic void createCategory(String name, int tax);\r\n\tpublic int updateCategory(String name, int tax);\r\n\tpublic int deleteCategory(String name);\r\n\tpublic SeatCategory findCategory (String name);\r\n\tpublic SeatCategory findCategory (int id);\r\n\tpublic String getCategories();\r\n\tpublic TicketSale getTicketSale(Client c, Seat s, Date date);\r\n\tpublic TicketSale getTicketSale(int id);\r\n\tpublic int getTaxFromCategory(Seat seat);\r\n\tpublic int deleteTicket(int idTicket);\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n}", "interface SupplierInterfaceDemo<T> {\n public T get();\n }", "public Supplier() {\r\n\t\tsuper();\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "public interface Gallery {\n\n /**\n * Add the specified art piece to the gallery, replacing an equivalent in the gallery if existing.\n *\n * @param art the art piece to add to the gallery\n */\n void addArt(Art art);\n\n /**\n * Remove the specified art piece from the gallery if found.\n *\n * @param art he art piece to remove from the gallery\n */\n void deleteArt(Art art);\n\n /**\n * Return the collection of art pieces in the gallery, is cannot be modified.\n *\n * @return all the art pieces in the gallery\n */\n Set<Art> getAllArt();\n\n /**\n * Return list of unique artists with art represented in the gallery, in alphabetical order.\n *\n * @return list of artists\n */\n List<String> getArtists();\n\n /**\n * Return all art for the specified artist\n *\n * @param artist the artist for which to retrieve all art pieces\n *\n * @return all the art pieces for the artist\n */\n Set<Art> getArtByArtist(String artist);\n\n /**\n * Return all art pieces created in the gallery within the past year\n *\n * @return all art pieces created in the gallery within the past year\n */\n Set<Art> getRecentArt();\n\n /**\n * Return all art pieces with an asking price in between the specified upper and lower bands.\n *\n * @param upper the upper price band\n * @param lower the lower price band\n *\n * @return all art pieces with an asking price in between the specified upper and lower bands.\n */\n Set<Art> getArtByPrice(Double upper, Double lower);\n}", "public List<SupplierEntity> getSuppliersByType(String typeName) {\n\n List<SupplierEntity> suppliers = new ArrayList<>();\n\n Session session = SessionFactoryProvider.getSessionFactory().openSession();\n\n Criteria criteria = session.createCriteria(SupplierEntity.class);\n criteria.createCriteria(\"supplierType\").add(Restrictions.eq(\"name\", typeName));\n\n // Language lang = (Language)super.findByCriteria(criteria).get(0);\n\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n suppliers = criteria.list();\n\n } catch (HibernateException e) {\n\n if (tx != null) {\n tx.rollback();\n }\n\n log.error(e.getStackTrace());\n\n } finally {\n session.close();\n }\n\n return suppliers;\n\n }", "public static Items[] retrieveItemsList(final int argSupplier) {\r\n List<Items> items = dao().listSupplierItems(argSupplier);\r\n return items.toArray(new Items[items.size()]);\r\n }", "public com.hps.july.persistence.StoragePlaceAccessBean getStorage() {\n\treturn storage;\n}", "public List getEpSupplier() {\n\t\treturn getHibernateTemplate().find(\" from JSupplierNh \");\n\t}", "public interface DistributeStorage<T> {\n public void store(String path, T t, boolean create) throws StorageException;\n\n public T get(String path, Class<T> tClass) throws StorageException;\n\n public void del(String path) throws StorageException;\n\n public boolean exist(String path) throws StorageException;\n}", "public interface StorageService {\n\t\n\t/**\n\t * Storage.\n\t *\n\t * @param storage the storage\n\t * @return the storage state\n\t */\n\tpublic StorageState storage(ArrayList<StorageVO> storage);\n\t\n}", "interface Storage {\n String getStorageSize() ;\n}", "@Transactional\n\tpublic List<Supplier> list() {\n\t\tString hql=\"from Supplier\";\n\t\tQuery query=sessionFactory.getCurrentSession().createQuery(hql);\n\t\t\n\t\treturn query.list();\n\t}", "Collection getData();", "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}", "public void updateSupplierDetail(Supplier obj) {\n\t\t\r\n\t}", "public interface Store {\n\n void addPeople(List<Person> people);\n\n void addEvents(List<Event> events);\n\n List<Person> getNewPeople();\n\n Map<String, Event> getEvents();\n\n Map<Person,String[]> getPreferences();\n\n void addPreference(String personId, String[] split);\n\n void save();\n\n}", "private AbstractStorageOfFoods reallocateFood(Food food, Date currentDate) {\n AbstractStorageOfFoods result = null;\n for (AbstractStorageOfFoods storage : storages) {\n if (storage != null && storage.isAppropriate(food, currentDate)) {\n storage.add(food);\n result = storage;\n break;\n }\n }\n return result;\n }", "PersistentDataHolder getDataHolder();", "@Override\n public List<Object> getGroupMember(String name, int supplierId) {\n return null;\n }", "public interface IStorage extends Serializable {\n\n /**\n * Removes all stored values.\n */\n void clear();\n\n /**\n * Removes the value stored under the given key (if one exists).\n *\n * @return {@code true} if a successful.\n */\n StoragePrimitive remove(String key);\n\n /**\n * Adds all mappings in {@code val} to this storage object, overwriting any existing values.\n *\n * @see #addAll(String, IStorage)\n */\n void addAll(IStorage val);\n\n /**\n * Adds all mappings in {@code val} to this storage object, where all keys are prefixed with\n * {@code prefix}. Any existing values are overwritten.\n */\n void addAll(String prefix, IStorage val);\n\n /**\n * @return All stored keys.\n * @see #getKeys(String)\n */\n Collection<String> getKeys();\n\n /**\n * @return A collection of all stored keys matching the given prefix, or all stored keys if the prefix is\n * {@code null}.\n */\n Collection<String> getKeys(@Nullable String prefix);\n\n /**\n * @return {@code true} if this storage object contains a mapping for the given key.\n */\n boolean contains(String key);\n\n /**\n * Returns raw value stored under the given key.\n */\n StoragePrimitive get(String key);\n\n /**\n * Returns value stored under the given key converted to a boolean.\n *\n * @param defaultValue This value is returned instead if no value was stored under the given key, or if\n * the value couldn't be converted to the desired return type.\n * @see #getString(String, String)\n */\n boolean getBoolean(String key, boolean defaultValue);\n\n /**\n * Convenience method for retrieving a 32-bit signed integer. This is equivalent to calling\n * {@link IStorage#getDouble(String, double)} and casting the result to int.\n *\n * @see #getDouble(String, double)\n */\n int getInt(String key, int defaultValue);\n\n /**\n * Convenience method for retrieving a 64-bit signed integer. This is equivalent to calling\n * {@link IStorage#getDouble(String, double)} and casting the result to long.\n *\n * @see #getDouble(String, double)\n */\n long getLong(String keyTotal, long defaultValue);\n\n /**\n * Returns value stored under the given key converted to a double.\n *\n * @param defaultValue This value is returned instead if no value was stored under the given key, or if\n * the value couldn't be converted to the desired return type.\n * @see #getString(String, String)\n */\n double getDouble(String key, double defaultValue);\n\n /**\n * Returns value stored under the given key converted to a string.\n *\n * @param defaultValue This value is returned instead if no value was stored under the given key.\n */\n String getString(String key, String defaultValue);\n\n /**\n * Stores a value under the given key. If {@code null}, removes any existing mapping for the given key\n * instead.\n */\n void set(String key, @Nullable StoragePrimitive val);\n\n /**\n * Stores a boolean value under the given key.\n *\n * @see #setString(String, String)\n */\n void setBoolean(String key, boolean val);\n\n /**\n * Convenience method for storing an integer. All values are stored as double-precision floating point\n * internally.\n *\n * @see #setDouble(String, double)\n */\n void setInt(String key, int val);\n\n /**\n * Convenience method for storing a long. All values are stored as double-precision floating point\n * internally.\n *\n * @see #setDouble(String, double)\n */\n void setLong(String key, long val);\n\n /**\n * Stores a double-precision floating point value under the given key.\n *\n * @see #setString(String, String)\n */\n void setDouble(String key, double val);\n\n /**\n * Stores a string value under the given key.\n *\n * @param val The value to store. If {@code null}, removes any existing mapping for the given key instead.\n */\n void setString(String key, String val);\n\n}", "public SupplierCard find_Supplier(Integer supplier_id) {\n return supplier_dao.find(supplier_id);\n }", "public List<SupplierEntity> getAllSuppliers() {\n\n List<SupplierEntity> suppliers = new ArrayList<SupplierEntity>();\n Session session = SessionFactoryProvider.getSessionFactory().openSession();\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n suppliers = session.createQuery(\"FROM SupplierEntity ORDER BY supplierId\").list();\n tx.commit();\n\n } catch (HibernateException e) {\n\n if (tx != null) {\n tx.rollback();\n }\n\n e.printStackTrace();\n\n } finally {\n\n session.close();\n\n }\n\n return suppliers;\n\n }", "protected abstract Collection createCollection();", "public List<StockItem> getStockList();", "Collection<? extends Equipment> getUses();", "ProductPurchaseItem getSupplierProductPurchaseItemPerCatalogNo(long suppId, String catalogNo);", "public interface DataLocator<E> {\n\n E getData(int readLocation);\n\n void setData(int writeLocation1, E value);\n\n void writeAll(E[] newData, int length);\n\n int getCapacity();\n}", "@Override\n\tpublic List<SupplierView> getSupplierByName(String supplierName) {\n\t\tString sql=\"SELECT s.supplier_id, s.supplier_name, s.supplier_type,s.image,s.permanent_address, s.temporary_address,h.quantity,h.cost,h.buy_date,h.supplier_unique_id,h.username,i.product_id, i.product_name FROM supplier s INNER JOIN supplier_product h on s.supplier_id=h.supplier_supplier_id INNER JOIN product i on h.product_product_id=i.product_id WHERE supplier_name=?\";\n\t\tList<Map<String, Object>> row=getJdbcTemplate().queryForList(sql, supplierName);\n\t\tList<SupplierView> supplier_view=new ArrayList<SupplierView>();\n\t\tfor(Map<String, Object> rows:row)\n\t\t{\n\t\t\tSupplierView obj=new SupplierView();\n\t\t\tobj.setSupplierId((int)rows.get(\"supplier_id\"));\n\t\t\tobj.setSupplierName((String)rows.get(\"supplier_name\"));\n\t\t\tobj.setSupplierType((String)rows.get(\"supplier_type\"));\n\t\t\tobj.setImage((String)rows.get(\"image\"));\n\t\t\tobj.setPermanentAddress((String)rows.get(\"permanent_address\"));\n\t\t\tobj.setTemporaryAddress((String)rows.get(\"temporary_address\"));\n\t\t\tobj.setQuantity((int)rows.get(\"quantity\"));\n obj.setCost((double)rows.get(\"cost\"));\n obj.setSupplierUniqueId((int)rows.get(\"supplier_unique_id\"));\n obj.setBuyDate((Date)rows.get(\"buy_date\"));\n obj.setProductId((long)rows.get(\"product_id\"));\n obj.setProductName((String)rows.get(\"product_name\"));\n obj.setUsername((String) rows.get(\"username\"));\n supplier_view.add(obj);\n\t\t}\n\t\treturn supplier_view;\n\t}", "public ArrayList<Customer> inStore()\r\n\t{\r\n\t\treturn inStore;\r\n\t}", "@Override\n\tpublic Datastore getDatastore() {\n\t\treturn SKBeanUtils.getDatastore();\n\t}", "@Override\r\n\tpublic List<SenderdataMaster> fetchDataBasedonSupplier(List<String> incomingRefNbr, String supplier) {\n\t\treturn senderDataRepository.fetchDataBasedonSupplier(incomingRefNbr, supplier);\r\n\t}", "public long getStorage() {\n\t\t// List<Storage> listSim = new ArrayList<Storage>();\n\t\t//\n\t\t// Storage storage;\n\t\t//\n\t\t// for (int i = 0; i < 3; i++) {\n\t\t// storage = new Storage();\n\t\t//\n\t\t// storage.setDeviceName(\"/dev/sda1\");\n\t\t// storage.setFreeSpaceKB(3 * 100 * 12 * 5 * i);\n\t\t// storage.setTotalSizeKB(288237920);\n\t\t// storage.setMountPoint(\"/\");\n\t\t// storage.setOsSpecificFSType(\"ext4\");\n\t\t//\n\t\t// listSim.add(storage);\n\t\t// }\n\t\t// return listSim;\n\n\t\treturn new Random().nextInt(19700621);\n\t}", "@Override\n\tpublic List<Article> getStock() {\n\t\treturn null;\n\t}", "Collect getColl();", "@Override\n\tpublic List<SupplierView> getAllSupplierInfo() {\n\t\tString sql=\"SELECT s.supplier_id, s.supplier_name, s.supplier_type, s.permanent_address, s.temporary_address,h.quantity,h.supplier_unique_id ,h.cost,h.buy_date,h.username,i.product_id, i.product_name FROM supplier s INNER JOIN supplier_product h on s.supplier_id=h.supplier_supplier_id INNER JOIN product i on h.product_product_id=i.product_id\";\n\t\tRowMapper<SupplierView> rowmapper=new BeanPropertyRowMapper<SupplierView> (SupplierView.class);\n\t\treturn this.getJdbcTemplate().query(sql,rowmapper);\n\t}", "public ArrayList<PersonStocks> getStock(){\n return myStocks;\n }", "OsType getObjectStore();", "public interface QuestionStore {\n\n /** Lists questions. */\n List<Question> get();\n\n /** Gets number of questions. */\n int getNumberOfQuestions();\n\n /** Gets number of wrong answers. */\n int getWrongAnswers();\n\n /** Adds a new question. */\n void add(String question, long time, boolean correct);\n\n /** Cleans up the list. */\n void cleanUp();\n}", "public Storage getStorage() {\n return this.storage;\n }", "public Object getDataObject()\r\n {\r\n return stockData;\r\n }", "public Supplier findSupplier(int suppliernum, boolean retrieveAssociation);", "protected void doStore(String description, Object item, String supplier) {\n items.put(description, item);\n suppliers.put(supplier, description);\n }", "void setSupplier(Supplier<Number> supplier);", "Collection<S> getStories ();", "public interface SCStorage\r\n{\r\n\t/**\r\n\t * The server will register a driver before making any method calls\r\n\t *\r\n\t * @param driver the driver\r\n\t */\r\n\tpublic void setStorageServerDriver(SCStorageServerDriver driver);\r\n\r\n\t/**\r\n\t * Open the storage at the given path\r\n\t *\r\n\t * @param path path to the storage\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic void\topen(File path) throws IOException;\r\n\r\n\t/**\r\n\t * Return the object associated with the given key\r\n\t *\r\n\t * @param key the key\r\n\t * @return the object or null if not found\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic SCDataSpec get(String key) throws IOException;\r\n\r\n\t/**\r\n\t * Add an object to the storage\r\n\t *\r\n\t * @param key key\r\n\t * @param data object\r\n\t * @param groups associated groups or null\r\n\t */\r\n\tpublic void put(String key, SCDataSpec data, SCGroupSpec groups);\r\n\r\n\t/**\r\n\t * Close the storage. The storage instance will be unusable afterwards.\r\n\t *\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic void close() throws IOException;\r\n\r\n\t/**\r\n\t * Return the keys that match the given regular expression\r\n\t *\r\n\t * @param regex expression\r\n\t * @return matching keys\r\n\t */\r\n\tpublic Set<String> regexFindKeys(String regex);\r\n\r\n\t/**\r\n\t * Remove the given object\r\n\t *\r\n\t * @param key key of the object\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic void remove(String key) throws IOException;\r\n\r\n\t/**\r\n\t * sccache supports associative keys via {@link SCGroup}. This method deletes all objects\r\n\t * associated with the given group.\r\n\t *\r\n\t * @param group the group to delete\r\n\t * @return list of keys deleted.\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic List<String> removeGroup(SCGroup group) throws IOException;\r\n\r\n\t/**\r\n\t * sccache supports associative keys via {@link SCGroup}. This method lists all keys\r\n\t * associated with the given group.\r\n\t *\r\n\t * @param group the group to list\r\n\t * @return list of keys\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic List<String> listGroup(SCGroup group) throws IOException;\r\n\r\n\t/**\r\n\t * Returns storage statistics\r\n\t *\r\n\t * @param verbose if true, verbose stats are returned\r\n\t * @return list of stats\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic List<String> dumpStats(boolean verbose) throws IOException;\r\n\r\n\t/**\r\n\t * Write a tab delimited file with information about the key index\r\n\t *\r\n\t * @param f the file to write to\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic void writeKeyData(File f) throws IOException;\r\n}", "private void readFromInternalStorage() {\n ArrayList<GeofenceObjects> returnlist = new ArrayList<>();\n if (!isExternalStorageReadable()) {\n System.out.println(\"not readable\");\n } else {\n returnlist = new ArrayList<>();\n try {\n FileInputStream fis = openFileInput(\"GeoFences\");\n ObjectInputStream ois = new ObjectInputStream(fis);\n returnlist = (ArrayList<GeofenceObjects>) ois.readObject();\n ois.close();\n System.out.println(returnlist);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n currentList = returnlist;\n }", "public ArrayList<GroupSupplier> getGroupSupplierList(){\n\t\tSession session = HibernateUtils.getSessionFactory().openSession();\n\t\tArrayList<GroupSupplier> list = new ArrayList<GroupSupplier>();\n\t\ttry{\n\t\t\tCriteria cr = session.createCriteria(TblGroupSupplier.class);\n\t\t\tList<TblGroupSupplier> groupsuppliers = cr.list();\n\t\t\tif (groupsuppliers.size() > 0){\n\t\t\t\tfor (Iterator<TblGroupSupplier> iterator = groupsuppliers.iterator(); iterator.hasNext();){\n\t\t\t\t\tTblGroupSupplier tblgroupsupplier = iterator.next();\n\t\t\t\t\tGroupSupplier groupsupplier = new GroupSupplier();\n\t\t\t\t\tgroupsupplier.convertFromTable(tblgroupsupplier);\n\t\t\t\t\tlist.add(groupsupplier);\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(HibernateException e){\n\t\t\tSystem.err.println(\"ERROR IN LIST!!!!!!\");\n\t\t\te.printStackTrace();\n\t\t\tthrow new ExceptionInInitializerError(e);\n\t\t}finally{\n\t\t\tsession.close();\n\t\t}\n\t\treturn list;\n\t}", "protected Set<E> ensureSet()\n {\n Set<E> set = m_set;\n if (set == null)\n {\n set = m_set = new LiteSet<>();\n }\n return set;\n }", "public V getAndUpdate(final Supplier<V> supplier) {\n\t\tsynchronized (this.monitor) {\n\t\t\tfinal V prev = this.value;\n\t\t\tthis.value = supplier.get();\n\t\t\treturn prev;\n\t\t}\n\t}", "@Override\n\tpublic List<Supplier> gets(int id) {\n\t\treturn null;\n\t}", "public Integer getSupplierId() {\n return supplierId;\n }", "protected Supplier<Set<Entity>> getSeedSupplier() {\n return defaultSeedSupplier;\n }", "public interface IDataStorage<TKey extends ISizable, TValue extends ISizable> {\n WrappedKeyValue<TKey, TValue> Get(TKey key) throws IOException;\n\n //TODO: replace with iterator\n List<WrappedKeyValue<TKey, TValue>> GetElements() throws IOException;\n\n void AddOrUpdate(TKey key, TValue value) throws IOException;\n\n void AddOrUpdate(List<WrappedKeyValue<TKey, TValue>> values) throws IOException;\n\n void Delete(TKey key) throws IOException;\n\n void Clear();\n\n void Close() throws IOException;\n}", "List<E> read();", "public void saveSupplier(Supplier supplier) throws DataAccessException {\r\n getHibernateTemplate().saveOrUpdate(supplier);\r\n }", "public StorageUnit beStorageUnit();", "public static void addNewSupplier() {\r\n\t\tSystem.out.println(\"Please enter the following supplier details:\");\r\n\r\n\t\tSystem.out.println(\"Supplier Name:\");\r\n\r\n\t\tString supName = Validation.stringNoIntsValidation();\r\n\r\n\t\tSystem.out.println(\"---Supplier Address details---\");\r\n\r\n\r\n\t\tAddress supAddress = addAddress();\r\n\r\n\t\tint numOfEnums = EnumSet.allOf(SupRegion.class).size();\r\n\r\n\t\tPrintMethods.printEnumList(numOfEnums);\r\n\r\n\t\tSystem.out.println(\"\\nPlease choose the region of your supplier:\");\r\n\r\n\t\tint regionChoice = Validation.listValidation(numOfEnums);\r\n\r\n\t\tSupRegion supRegion = SupRegion.values()[regionChoice-1];\r\n\r\n\r\n\t\tArrayList<Product> supProducts = addProduct();\r\n\t\t\r\n\t\tFeedback tempFeedback = new Feedback(null, null, null);\r\n\t\tArrayList<Feedback> supFeedback = new ArrayList<Feedback>();\r\n\t\tsupFeedback.add(tempFeedback);\r\n\r\n\t\tRandom supCodeRandom = new Random(100);\r\n\t\tint supCode = supCodeRandom.nextInt();\r\n\r\n\t\tSupplier tempSupplier = new Supplier(supCode, supName, supAddress, supRegion, supProducts, supFeedback);\r\n\r\n\t\tPart02Tester.supArray.add(tempSupplier);\r\n\t}", "public Supplier getById(int id){ \n\t Supplier e=(Supplier)template.get(Supplier.class,id); \n\t return e; \n\t}", "public Producer(Store storage){\n\t\tthis.storage=storage;\n\t}" ]
[ "0.64232075", "0.63285184", "0.5885236", "0.5842432", "0.57946324", "0.57927257", "0.5777331", "0.57620054", "0.56786346", "0.5656465", "0.5636024", "0.55677885", "0.5539301", "0.55150837", "0.54973453", "0.54627013", "0.5405025", "0.54049337", "0.538376", "0.53685474", "0.5367596", "0.53538173", "0.531416", "0.52621084", "0.52179116", "0.5213123", "0.5205915", "0.52038527", "0.5198011", "0.51915884", "0.5190878", "0.5185939", "0.51821864", "0.51766884", "0.5139813", "0.51382464", "0.5131658", "0.51241094", "0.5123271", "0.51230466", "0.51208454", "0.51167095", "0.5109793", "0.50978124", "0.50968856", "0.5089034", "0.5087303", "0.5086905", "0.507012", "0.50481266", "0.5044012", "0.50398606", "0.5039609", "0.50359696", "0.5031681", "0.50265217", "0.5021378", "0.5020595", "0.5019999", "0.5018508", "0.50032276", "0.49927902", "0.4991634", "0.499037", "0.4989419", "0.49845076", "0.49817255", "0.49799514", "0.49796", "0.49784884", "0.49741533", "0.49736118", "0.49665082", "0.49562284", "0.49414808", "0.49394822", "0.49382117", "0.49374035", "0.4937363", "0.49259463", "0.49249187", "0.4922413", "0.4921646", "0.49178436", "0.4917031", "0.49130163", "0.48998284", "0.48947173", "0.4892695", "0.48926008", "0.4891388", "0.48866227", "0.48859203", "0.48853302", "0.48742843", "0.48696536", "0.48535308", "0.48484936", "0.48425293", "0.48288077" ]
0.5804152
4
A BiConsumer represents an operation that takes two inputs, does something with them and returns nothing.
@Override public BiConsumer<List<Integer>, Employee> accumulator() { return (resultList, employee) -> { if (resultList.isEmpty()) resultList.add(employee.getSalary()); else { Integer currentTotal = resultList.get(0); currentTotal += employee.getSalary(); resultList.set(0, currentTotal); } }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.FunctionalInterface()\r\n @jsweet.lang.Erased\r\n public interface CallbackBiConsumer<T1,T2> {\r\n public void $apply(T1 p1, T2 p2);\r\n }", "@FunctionalInterface\npublic interface Consumer<T> {\n\n /**\n * Performs operation on argument.\n *\n * @param value the input argument\n */\n void accept(T value);\n\n class Util {\n\n private Util() { }\n\n /**\n * Composes {@code Consumer} calls.\n *\n * <p>{@code c1.accept(value); c2.accept(value); }\n *\n * @param <T> the type of the input to the operation\n * @param c1 the first {@code Consumer}\n * @param c2 the second {@code Consumer}\n * @return a composed {@code Consumer}\n * @throws NullPointerException if {@code c1} or {@code c2} is null\n */\n public static <T> Consumer<T> andThen(final Consumer<? super T> c1, final Consumer<? super T> c2) {\n return new Consumer<T>() {\n @Override\n public void accept(T value) {\n c1.accept(value);\n c2.accept(value);\n }\n };\n }\n }\n}", "public interface BiConsumerWithException<T1, T2> {\n\tvoid apply(T1 t1, T2 t2) throws Throwable;\n}", "@FunctionalInterface\npublic interface LongBiConsumer {\n void accept(long l, long r);\n\n default LongBiConsumer andThen(LongBiConsumer after) {\n Objects.requireNonNull(after);\n\n return (l, r) -> {\n accept(l, r);\n after.accept(l,r);\n };\n }\n\n LongBiConsumer DUMMY = (l, r) -> {};\n}", "public BiConsumer<String, String> _2parameterNoReturn() {\n\t\treturn (s, t) -> System.out.println(s + t); // we have to use brackets for more than 1 parameters\n\t}", "@java.lang.FunctionalInterface()\r\n @jsweet.lang.Erased\r\n public interface CallbackThenableBiConsumer<T1,T2> {\r\n public void $apply(T1 p1, T2 p2);\r\n }", "@FunctionalInterface\npublic interface BiFunction<I1,I2,O,E extends Exception> {\n\n\tpublic O apply(I1 first, I2 second) throws E;\n\n}", "Consumer<VoidMessage> outgoingConsumer();", "public static <T1, T2> void applyFor(\n Optional<T1> t1Optional, Optional<T2> t2Optional, BiConsumer<T1, T2> biConsumer\n ) {\n if (t1Optional.isPresent() && t2Optional.isPresent()) {\n biConsumer.accept(t1Optional.get(), t2Optional.get());\n }\n }", "public static void main(String[] args) {\n BiPredicate<Integer,String> biPredicate = (number,str)->{\n return number<10 && str.length()>5;\n };\n System.out.println(biPredicate.test(3,\"Renga\"));\n\n //Takes 2 input and returns an output of any type.\n BiFunction<Integer,String,Boolean> biFunction = (number,str)->{\n return number<10 && str.length()>5;\n };\n System.out.println(biFunction.apply(2,\"kkk\"));\n\n //Takes 2 input and returns nothing.\n BiConsumer<Integer,String> biConsumer = (s1,s2)->{\n System.out.println(s1);\n System.out.println(s2);\n };\n biConsumer.accept(12,\"10\");\n }", "public static void print(BiConsumer<String, String> biConsumer, String str, String str1) {\r\n\t\tstr = str.toUpperCase();\r\n\t\tstr1 = str1.toUpperCase();\r\n\t\t//If You accept then behaviour executes,Otherwise not\r\n\t\tbiConsumer.accept(str, str1);\r\n\t}", "@FunctionalInterface\npublic interface BiIntFunction {\n int apply(int var1, int var2);\n}", "public static <T, U> Consumer<T> acceptRight(BiConsumer<T, U> consumer, U u) {\n\t\treturn t -> consumer.accept(t, u);\n\t}", "static void consumerDemo() {\n Consumer<Integer> printAgeConsumer = new Consumer<Integer>() {\n @Override\n public void accept(Integer integer) {\n System.out.println(\"Age is \" + integer);\n }\n };\n // call the method\n printAgeConsumer.andThen(age -> System.out.println(\"Again age is \" + age)).accept(25);\n\n // using lambda\n Consumer<Integer> printAgeWithLambda = (age) -> System.out.println(\"Age with lambda is \" + age);\n printAgeWithLambda.andThen(age -> System.out.println(\"Again age with lambda us \" + age))\n .accept(23); // this value will be given to each consumer\n }", "public static void main(String[] args) {\n Consumer<Customer> greetCostumerConsumer = customer -> System.out.println(\"Hello \" + customer.getName());\n greetCostumerConsumer.accept(new Customer(\"Maria\", 131234));\n\n //BICONSUMER -> get two arguments and return no result\n BiConsumer<Customer, Boolean> greetCostumerBiConsumer = (customer, showPhone) -> {\n System.out.println(\"Hello \" + customer.getName() + \"we are updating your phone \" + (showPhone ? customer.getNumber() : \"\"));\n };\n greetCostumerBiConsumer.accept(new Customer(\"Maria\", 131234), true);\n greetCostumerBiConsumer.accept(new Customer(\"Maria\", 131234), false);\n }", "public interface Consumer<K,V>\t{\n\t/**\n\t * accept the key and value\n\t * @param k\n\t * @param v\n\t */\n\tvoid accept(K k, V v);\n\n}", "public interface Battle {\n\n void battleBetween(Tank tank1, Tank tank2, Consumer<Integer> consumer);\n\n}", "static <T, U> BiFunction<T,U,SibillaValue> apply(BinaryOperator<SibillaValue> op, BiFunction<T, U, SibillaValue> f1, BiFunction<T, U, SibillaValue> f2) {\n return (t,u) -> op.apply(f1.apply(t, u), f2.apply(t, u));\n }", "@FunctionalInterface\npublic interface SilentBiFunction<A, B, R> extends BiFunction<A, B, R> {\n @Override\n default R apply(A a, B b) { try { return actualApply(a, b); } catch (Exception ignored) { return null; } }\n\n R actualApply(A a, B b) throws Exception;\n}", "@FunctionalInterface\n public interface BiIterationReceiver {\n\n BiIterateResult onChar(int index, char c, int of, int remaining);\n }", "@FunctionalInterface\n interface NonnullBiFunction<T, U, R> {\n\n /**\n * Applies this function to the given arguments.\n *\n * @param t the first function argument\n * @param u the second function argument\n * @return the function result\n */\n @Nonnull\n R apply(@Nonnull T t, @Nonnull U u);\n }", "static <T> Function<T,SibillaValue> apply(BinaryOperator<SibillaValue> op, Function<T,SibillaValue> f1, Function<T, SibillaValue> f2) {\n return arg -> op.apply(f1.apply(arg), f2.apply(arg));\n }", "Consumer getConsumer();", "void removeConsumer(Consumer consumer);", "void foo(java.util.function.Consumer<T> c) {}", "static <T1> Consumer1<T1> asConsumer1(Consumer<T1> consumer) {\n Objects.requireNonNull(consumer, \"consumer\");\n return consumer::accept;\n }", "public static void main(String[] args) {\n Consumer<String> c1 = System.out::println;\n Consumer<String> c2 = x -> System.out.println(x);\n\n c1.accept(\"Annie\");\n c2.accept(\"Annie\");\n }", "void forEach(BiConsumer<? super String, ? super String> consumer);", "public interface Consumer<E> {\n void consume(E e);\n}", "public Consumer<String> _1parameterNoReturn() {\n\t\treturn s -> { System.out.println(s); };\n\t\t\t\t// OR\n\t\t// return s -> System.out.println(s); \n\t}", "public void chainConsumer(Consumer<String> downstream) {\n this.downstream = downstream::accept;\n }", "public static void main(String[] args) {\n System.out.println(getInt());\n// Function<Integer, Integer> increment = num -> ++num;\n// System.out.println(increment.apply(2));\n// Function<Integer, Integer> incrementTwoTimes = increment.andThen(increment);\n// System.out.println(incrementTwoTimes.apply(2));\n//\n// BiFunction <Integer, Integer, Integer> biIncrement = (number1, number) -> number1 + number ;\n// System.out.println(biIncrement.apply(increment.apply(2), increment.apply(2)));\n }", "public interface JustDocumentDiffConsumer {\n \n /**\n * Called when the stream has begun.\n * @param docLeft the left document being compared\n * @param docRight the right document being compared\n * @param options the comparison options that will be used\n * @return the {@link DocumentDiffConsumer} to consume the document sub-stream\n */\n public DocumentDiffConsumer begin(Document docLeft, Document docRight, Options options);\n \n /**\n * Called when the stream has ended.\n */\n public void end();\n}", "@FunctionalInterface\n private interface Consumer<T> {\n void accept(T t);\n }", "@FunctionalInterface\n private interface TwoParameterFunction<T, U, R> {\n R apply(T t, U u);\n }", "void addCallback(BiConsumer<Boolean, Boolean> callback);", "@NonNull\n static <T1> Consumer1<T1> of(@NonNull Consumer1<T1> reference) {\n Objects.requireNonNull(reference, \"reference\");\n return reference;\n }", "@Override\n public j$.util.function.Consumer<T> andThen(j$.util.function.Consumer<? super T> after) {\n throw new UnsupportedOperationException(\"Not supported on wrapped consumers\");\n }", "static <A, B, R> Supplier<R> bind(BiFunction<A, B, R> f, A firstParam, B secondParam) {\n return () -> f.apply(firstParam, secondParam);\n }", "@Test\n public void testSummingUpTwoAsyncStreamsOfIntegers() throws Exception {\n FunctionalReactives<Integer> fr1 =\n FunctionalReactives.createAsync(\n aSubscribableWillAsyncFireIntegerOneToFive() //one async stream of Integers\n );\n FunctionalReactives<Integer> fr2 =\n fr1.fromAnother(\n aSubscribableWillAsyncFireIntegerOneToFive() //another async stream of Integers\n );\n\n FunctionalReactives<Void> fr =\n fr1.zipStrict(fr2, new Function2<Integer, Integer, Integer>() {\n @Override\n public Optional<Integer> apply(Integer input1, Integer input2) {\n return Optional.of(input1 + input2);\n }\n })\n .forEach(println()); //print out reaction results each in a line\n\n fr.start(); //will trigger Subscribable.doSubscribe()\n fr.shutdown(); //will trigger Subscribable.unsubscribe() which in above case will await for all the integers scheduled\n\n //Reaction walk through:\n // Source1: 1 -> 2 -> 3 -> 4 -> 5 -> |\n // Source2: 1 -> 2 -> 3 -> 4 -> 5 -> |\n // Print sum of two sources: 2 -> 4 -> 6 -> 8 -> 10 ->|\n\n }", "public interface ConsumerProducer<T> extends Consumer<T>, Producer<T> {\n\n /**\n * Consumes the next item in a sequence, for subsequent production. \n * This method may block if necessary until {@link #get}() is called.\n * \n * @param The next item in a sequence.\n */\n @Override\n void accept(/*@Nullable*/ T item);\n\n /**\n * Produces the next item in a sequence. This method may block if \n * necessary until {@link #accept}() is called.\n *\n * @return The next item in a sequence.\n * @throws NoSuchElementException if the sequence has finished.\n */\n @Override\n /*@Nullable*/ T get();\n\n}", "default void success(ConsumerRecord<K, V> record, Consumer<K, V> consumer) {\n\t}", "private void consumeNonCrossingPairs(final S nonTerminal, final Consumer<GPairRecord<S, S>> consumer, final Predicate<Pair<S, S>> predicate) {\n P production = slp.getProduction(nonTerminal);\n W right = production.getRight();\n\n right.nodeStream()\n .filter(node -> wordProperties.isNonCrossingPair(node))\n .map(node -> new GPairRecord<>(new Pair<>(node.getElement(), node.getNext().getElement()), node, false, appearances.get(nonTerminal)))\n .filter(record -> predicate.test(record.pair))\n .forEach(record -> consumer.accept(record));\n }", "public void toConsumer(Consumer<Integer> consumer) {\n Node current = this.head;\n while (current != null) {\n consumer.accept(current.data);\n current = current.next;\n }\n }", "public interface Operator<Downstream, Upstream> extends Function<Subscriber<? super Downstream>, Subscriber<? super Upstream>> {\n\n }", "private void consumeCrossingPairs(final S nonTerminal, final Consumer<GPairRecord<S, S>> consumer, final Pair<S, S>[] pairs, final Predicate<Pair<S, S>> predicate) {\n P production = slp.getProduction(nonTerminal);\n W right = production.getRight();\n\n right.nodeStream()\n .map(node -> getCrossingPair(node, pairs))\n .filter(optPair -> optPair.isPresent())\n .map(optPair -> optPair.get())\n .filter(pair -> predicate.test(pair))\n .map(pair -> new GPairRecord<>(pair, null, true, appearances.get(nonTerminal)))\n .forEach(record -> consumer.accept(record));\n }", "void accept(A a, B b, C c);", "@SuppressWarnings(\"unchecked\")\n public static <T> Consumer<T> nop() {\n return (Consumer<T>) NO_OP;\n }", "public static void main(String[] args) {\n // Predicates\n Predicate<ClassA> isNull = Objects::isNull;\n ClassA aObj = null;\n System.out.println(isNull.test(aObj));\n System.out.println(\"----------------------\");\n\n Function<Integer, String> toString = String::valueOf;\n System.out.println(toString.apply(10));\n System.out.println(\"------------------------\");\n\n Supplier<String> supplier = () -> \"hello\";\n System.out.println(supplier.get());\n System.out.println(\"------------------------\");\n\n\n Consumer<String> consumer = (a) -> System.out.println(a);\n consumer.accept(\"Hello from Consumer interface method accept\");\n System.out.println(\"------------------------\");\n\n\n }", "private void goConsumer() {\n\t\t\n\t\tSurinamBananas sb = new SurinamBananas();\n\t\t\n\t\tCardboardBox<Musa,Integer> cb = sb.boxSupplier.get();\t\t\n\t\t\n\t\t// 3 bananas\n\t\tcb.add(new Basjoo()); cb.add(new Basjoo()); cb.add(new Basjoo()); cb.add(new Acuminata());\n\t\t\n\t\t//System.out.println(cb); // CardboardBox with 1 items of type: plants.Basjoo\n\t\t\n\t\t//Consumer <CardboardBox<Musa,Integer>> consuBoxInspector = CardboardBox::toString;\n\t\t\n\t\tConsumer <CardboardBox<Musa,Integer>> consuBoxTerminator = CardboardBox::clear;\n\t\n\t\tConsumer <CardboardBox<Musa,Integer>> consuBoxPrinter = System.out::println;\n\t\t\n\t\tConsumer <CardboardBox<Musa,Integer>> consuBoxFinalizer = consuBoxPrinter.andThen(consuBoxTerminator).andThen(consuBoxPrinter);\n\t\t\n\t\t\n\t\t//consuBoxInspector.accept(cb);\n\t\tconsuBoxFinalizer.accept(cb);\n\t\t\n\t}", "@Test\n public void test2() {\n Consumer<String> consumer = System.out::println;\n consumer.accept(\"lambda V5!\");\n }", "public interface Sink<I>\n extends Consumer<I>\n{\n /**\n * {@inheritDoc}\n */\n @Override\n public default void accept (I message)\n {\n dataIn().send(message);\n }\n\n /**\n * Input Connection.\n *\n * @return the data-input that provides the messages to the pipeline.\n */\n public Input<I> dataIn ();\n}", "static <A, B, R> BiFunction<B, A, R> flip(BiFunction<A, B, R> f) {\n return (a, b) -> f.apply(b, a);\n }", "public abstract T accept(Context context, Optional<Field> left, Optional<Field> right);", "public static void main(String[] arg) {\n\r\n System.out.println(incrementByOneFunction.apply(2));\r\n\r\n System.out.println(multipleByTen.apply(12));\r\n\r\n System.out.println(addByOneThenMulByTen.apply(19));\r\n\r\n // BiFunction takes two argument and produce one result\r\n\r\n System.out.println(incrementByOneAndMultiplyBiFunction.apply(4,100));\r\n }", "public static void main(String[] args) {\r\n\t\t\r\n\t\t//Calling normal method with 2 arguments\r\n\t\tint a = incBy1AndMul(5, 100);\r\n\t\tSystem.out.println(a);\r\n \r\n\t\t//Calling BiFunction i.e. passing 2 arguments\r\n\t\tint b = biIncBy1andMulByY.apply(5, 100);\r\n\t\tSystem.out.println(b);\r\n\t}", "@FunctionalInterface\npublic interface BytecodeConsumer {\n\n\t/** Performs this operation on the given argument.\n\t * @param opcode the opcode of the instruction at the specified location\n\t * @param code the array of code instructions\n\t * @param location the location in the array at which the current instruction is location\n\t */\n\tvoid accept(Opcodes opcode, byte[] code, int location);\n\n}", "@Override\n public Function<List<? extends A>, B> apply(final Function2<? super A, ? super B, B> arg1, final B arg2) {\n return new Function<List<? extends A>, B>() {\n @Override\n public B apply(List<? extends A> arg) {\n B acc = arg2;\n Collections.reverse(arg);\n for (A element : arg) {\n acc = arg1.apply(element, acc);\n }\n return acc;\n }\n };\n }", "public static Function<Integer, Integer> compose(Function<Integer, Integer> f1, Function<Integer, Integer> f2) {\n return arg -> f1.apply(f2.apply(arg));\n }", "public interface BinaryFunction<T1, T2, R> {\n\n\t/**\n\t * Invoke the function.\n\t * @param arg1 The first argument.\n\t * @param arg2 The second argument.\n\t * @return The result of the function.\n\t */\n\tpublic R invoke(T1 arg1, T2 arg2);\n\t\n}", "public interface Function2<T, U, K> {\n\n /**\n * This method is a composition of two functions:\n * it acts as g(f(x, y))) where f is the Function2 class object\n * and g is a Function1 class object.\n * @param g one-argument function,\n * the outer function of the composition\n * @param <V> outer function range type parameter\n * @return function of one argument that represents g(f(x, y))\n */\n default <V> Function2<T, U, V> compose(@NotNull final Function1<? super K, ? extends V> g) {\n return (t, u) -> g.apply(Function2.this.apply(t, u));\n }\n\n /**\n * This method binds the first argument with a provided value.\n * @param newFirstArgument argument to be bound\n * @return new function object with a bound first argument\n */\n default Function1<U, K> bind1(T newFirstArgument) {\n return u -> Function2.this.apply(newFirstArgument, u);\n }\n\n /**\n * This method binds the second argument with a provided value.\n * @param newSecondArgument argument to be bound\n * @return new function object with a bound second argument\n */\n default Function1<T, K> bind2(U newSecondArgument) {\n return t -> Function2.this.apply(t, newSecondArgument);\n }\n\n /**\n * This method implements currying:\n * instead of a two-argument function we get\n * two one-argument functions.\n * @return function g such that g(x)(y) == f.apply(x, y)\n */\n default Function1<T, Function1<U, K>> curry() {\n return this::bind1;\n }\n\n /**\n * This method applies the function to provided arguments.\n * @param arg1 first argument\n * @param arg2 second argument\n * @return result of function application\n */\n K apply(T arg1, U arg2);\n}", "private static <R, I, T> SerializableFunction<R, T> compose(\n SerializableFunction<R, I> f1, SerializableFunction<I, T> f2) {\n return r -> f2.apply(f1.apply(r));\n }", "public ConsumerSubscriber(final Consumer<T> consumer) {\n this.consumer = consumer;\n }", "@Override\n public BinaryOperator<List<Integer>> combiner() {\n return (resultList1, resultList2) -> {\n Integer currentTotal1 = resultList1.get(0);\n Integer currentTotal2 = resultList2.get(0);\n currentTotal1 += currentTotal2;\n resultList1.set(0, currentTotal1);\n return resultList1;\n };\n }", "static <T, U, R> BiFunction<T, U, R> biFunction(BiFunction<T, U, R> biFunction) {\n return biFunction;\n }", "public static <A, B, C> Function<A, C> combine(Function<A, B> functionOne, Function<B, C> functionTwo) {\n// return functionTwo.compose(functionOne);\n return (A a) -> functionTwo.apply(functionOne.apply(a));\n }", "public static void main(String[] args) {\n\t\t// | Functional Interfaces | #Parameters | Return Type | Single Abstract Method |\n\t\t// +----------------------------------------------------------------------------+\n\t\t// | Consumer<T> | 1 (T) | void | accept |\n\t\t// +----------------------------------------------------------------------------+\n\t\t\n\t\t\n\t\tConsumer<String> print1 = System.out::println;\n\t\tConsumer<String> print2 = x -> System.out.println(x);\n\t\t\n\t\tprint1.accept(\"Amer\");\n\t\tprint2.accept(\"Java\");\n\t}", "@Override\n public ConsumerNode getConsumer(){\n return super.getConsumer();\n }", "public interface PartialApplication {\n\n /**\n * Binds the provided argument to the function, and returns a Supplier with that argument applied.\n *\n * bind(f, a) is equivalent to () -> f.apply(a)\n */\n static <I, O> Supplier<O> bind(Function<I, O> f, I input) {\n return () -> f.apply(input);\n }\n\n /**\n * Binds the provided argument to the function, and returns a new Function with that argument already applied.\n *\n * bind(f, a) is equivalent to b -> f.apply(a, b)\n */\n static <A, B, R> Function<B, R> bind(BiFunction<A, B, R> f, A firstParam) {\n return secondParam -> f.apply(firstParam, secondParam);\n }\n\n /**\n * Binds the provided arguments to the function, and returns a new Supplier with those arguments already applied.\n *\n * bind(f, a, b) is equivalent to () -> f.apply(a, b)\n */\n static <A, B, R> Supplier<R> bind(BiFunction<A, B, R> f, A firstParam, B secondParam) {\n return () -> f.apply(firstParam, secondParam);\n }\n\n /**\n * Binds the provided argument to the function, and returns a new BiFunction with that argument already applied.\n *\n * bind(f, a) is equivalent to (b, c) -> f.apply(a, b, c)\n */\n static <A, B, C, R> BiFunction<B, C, R> bind(TriFunction<A, B, C, R> f, A firstParam) {\n return (secondParam, thirdParam) -> f.apply(firstParam, secondParam, thirdParam);\n }\n\n /**\n * Binds the provided arguments to the function, and returns a new Function with those arguments already applied.\n *\n * bind(f, a, b) is equivalent to c -> f.apply(a, b, c)\n */\n static <A, B, C, R> Function<C, R> bind(TriFunction<A, B, C, R> f, A firstParam, B secondParam) {\n return thirdParam -> f.apply(firstParam, secondParam, thirdParam);\n }\n}", "@Override\r\n\tpublic void updateConsumer(Consumer con) {\n\r\n\t}", "public static <R, A, B> CompletionStage<R> combine(\n CompletionStage<A> a, CompletionStage<B> b,\n BiFunction<A, B, R> function) {\n return a.thenCombine(b, function);\n }", "@io.reactivex.annotations.CheckReturnValue\n @io.reactivex.annotations.BackpressureSupport(io.reactivex.annotations.BackpressureKind.FULL)\n @org.jetbrains.annotations.NotNull\n @io.reactivex.annotations.SchedulerSupport(\"none\")\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public static final <T, R> io.reactivex.Flowable<kotlin.Pair<T, R>> combineLatest(@org.jetbrains.annotations.NotNull io.reactivex.Flowable<T> r2, @org.jetbrains.annotations.NotNull io.reactivex.Flowable<R> r3) {\n /*\n java.lang.String r0 = \"$receiver\"\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r2, r0)\n java.lang.String r0 = \"flowable\"\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r3, r0)\n org.a.b r2 = (org.a.b) r2\n org.a.b r3 = (org.a.b) r3\n io.reactivex.rxkotlin.FlowableKt$combineLatest$2 r0 = io.reactivex.rxkotlin.FlowableKt$combineLatest$2.INSTANCE\n kotlin.jvm.functions.Function2 r0 = (kotlin.jvm.functions.Function2) r0\n if (r0 == 0) goto L_0x001a\n io.reactivex.rxkotlin.FlowableKt$sam$io_reactivex_functions_BiFunction$0 r1 = new io.reactivex.rxkotlin.FlowableKt$sam$io_reactivex_functions_BiFunction$0\n r1.<init>(r0)\n r0 = r1\n L_0x001a:\n io.reactivex.functions.BiFunction r0 = (io.reactivex.functions.BiFunction) r0\n io.reactivex.Flowable r2 = io.reactivex.Flowable.combineLatest((org.a.b<? extends T1>) r2, (org.a.b<? extends T2>) r3, (io.reactivex.functions.BiFunction<? super T1, ? super T2, ? extends R>) r0)\n java.lang.String r3 = \"Flowable.combineLatest(t…able, BiFunction(::Pair))\"\n kotlin.jvm.internal.Intrinsics.checkExpressionValueIsNotNull(r2, r3)\n return r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: io.reactivex.rxkotlin.FlowableKt.combineLatest(io.reactivex.Flowable, io.reactivex.Flowable):io.reactivex.Flowable\");\n }", "@BackpressureSupport(BackpressureKind.UNBOUNDED_IN)\n @SchedulerSupport(SchedulerKind.NONE)\n public final <R> Observable<R> reduceWith(Supplier<R> seedSupplier, BiFunction<R, ? super T, R> reducer) {\n return scanWith(seedSupplier, reducer).last();\n }", "public void implementFunctionalInterface2() {\n\t\tSystem.out.println(\"\\n\\n************Implement Functional Interfaces - 2**********\");\n\t\t// Functional Interface Implementations:\n\t\tMathOperation addition = (int a, int b) -> a + b;\n\t\t// without type declaration - Type is optional in lambda expression\n\t\tMathOperation subtraction = (a, b) -> a - b;\n\t\t// Curly braces are mandatory when you use the return statement\n\t\tMathOperation multiplication = (int a, int b) -> {\n\t\t\treturn a * b;\n\t\t};\n\t\tMathOperation division = (a, b) -> a / b;\n\n\t\t// Method Calls:\n\t\tSystem.out.println(\"10 + 5 = \" + addition.operation(10, 5));\n\t\tSystem.out.println(\"10 - 5 = \" + subtraction.operation(10, 5));\n\t\tSystem.out.println(\"10 x 5 = \" + multiplication.operation(10, 5));\n\t\tSystem.out.println(\"10 / 5 = \" + division.operation(10, 5));\n\t}", "public interface Function2<T, U, R> {\n R apply(T t, U u);\n\n /**\n * Method to create composition: after(this(x, y)).\n *\n * @param after function to apply after.\n * @param <V> return type of after.\n * @return composition of functions.\n */\n default <V> Function2<T, U, V> compose(Function1<? super R, ? extends V> after) {\n return (t, u) -> after.apply(this.apply(t, u));\n }\n\n /**\n * Method to bind 1st parameter of function.\n *\n * @param firstParameter value of 1st argument to bind.\n * @return function from 1 arguments that waits for the second argument.\n */\n default Function1<U, R> bind1(T firstParameter) {\n return (u) -> apply(firstParameter, u);\n }\n\n /**\n * Method to bind 2nd parameter of function.\n *\n * @param secondParameter value of 2nd argument to bind.\n * @return function from 1 arguments that waits for the first argument.\n */\n default Function1<T, R> bind2(U secondParameter) {\n return (t) -> apply(t, secondParameter);\n }\n\n /**\n * Method to curry function, second parameter will be bind.\n *\n * @param parameter parameter to set.\n * @return function from 1 argument(1st argument of Function2).\n */\n default Function1<T, R> curry(U parameter) {\n return bind2(parameter);\n }\n}", "static <S, F> ConsumableFunction<Result<S, F>> onSuccessDo(Consumer<S> consumer) {\n return r -> r.then(onSuccess(peek(consumer)));\n }", "public a0(ReceiveChannel receiveChannel, Function2 function2, Continuation continuation) {\n super(2, continuation);\n this.n = receiveChannel;\n this.o = function2;\n }", "@FunctionalInterface\npublic interface ProgressLogger extends Consumer<Supplier<String>> {\n\n @Override\n void accept(Supplier<String> info);\n\n /**\n * @param info Something that happened\n */\n default void println(Supplier<String> info) {\n accept(info);\n }\n}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Supplier test\");\n\t\tSupplier<String> stringSupp = () -> \"test\"; \n\t\tSystem.out.println(stringSupp.get());\n\t\t\t\t\n\t\t// used as a factory\n\t\tSupplier<Integer> intSupp5 = () -> {return new Integer(5);};\t\t\t\t\n\t\tSupplier<Map> hashMapSupp = () -> new HashMap<>();\n\t\t// using a Method Reference\n\t\tSupplier<Map> hashMapSuppMF = HashMap::new;\n\t\t\t\t\t\t\t\t\n\t\t// *** consumer --> Consumer<T> cons = t -> {};\n\t\tSystem.out.println(\"\\nConsumer test\");\n\t\tConsumer cons = t -> {};\n\t\tConsumer<String> commaStringOut = s -> System.out.print(s + \", \");\n\t\tcommaStringOut.accept(\"This is a test\");\n\t\tSystem.out.println(\"\");\n\t\t\n\t\t// andThen - returns a composed Consumer\n\t\tConsumer<String> suffixStringOut = s -> System.out.println(\"of lambdas\");\t\t\n\t\tcommaStringOut.andThen(suffixStringOut).accept(\"This is a test\");\t\n\t\t\n//\t\tConsumer<String> fullStringOut = commaStringOut.andThen(suffixStringOut);\n//\t\tfullStringOut.accept(\"This is a test\");\n\n\t\t// *** function --> Function(T,T) func = t -> t;\n\t\tSystem.out.println(\"\\nFunction test\");\n\t\tFunction func = t -> t;\n\t\t\t\t\n\t\tFunction<String, Integer> stringLength = (s) -> s.length();\n\t\tSystem.out.println(stringLength.apply(\"Hello world\"));\n\t\t\n\t\t// andThen\n\t\tSystem.out.println(\"andThen test\");\n\t\tFunction<Integer, Boolean> lowerThanTen = (i) -> i < 10;\t\t\t\t\n\t\tFunction<String, Boolean> function = stringLength.andThen(lowerThanTen);\n\t\t// Will print false\n\t\tSystem.out.println(function.apply(\"Hello world\"));\n\n\t\t// compose \n\t\tSystem.out.println(\"compose test\");\n\t\tFunction<Integer, Integer> times2 = e -> e * 2;\n\t\tFunction<Integer, Integer> squared = e -> e * e;\n\t\t\n\t\t// returns 64\n\t\tSystem.out.println(times2.andThen(squared).apply(4));\t\n\t\t\n\t\t// returns 32\n\t\tSystem.out.println(times2.compose(squared).apply(4));\t\n\t\t\n\t\t// identity \n\t\tFunction<String,String> strIdenityFunc = Function.identity();\n\t\tSystem.out.println(strIdenityFunc.apply(\"Identity Test\"));\t\n\t\t\n\t\t// *** predicate --> Predicate<T> pred = t -> 1 == 1;\n\t\tSystem.out.println(\"\\nPredicate test\");\n\t\tPredicate<String> lengthTest5 = (s)-> s.length() > 5;\n\t\tSystem.out.println(lengthTest5.test(\"longer than 5 test \"));\n\t\t\n\t\t// and\n\t\tSystem.out.println(\"and test\");\n\t\tPredicate<String> startsWith = (s)-> s.startsWith(\"t\");\n\t\tSystem.out.println(lengthTest5.and(startsWith).test(\"longer than 5 test \"));\n\n\t\t// or\n\t\tSystem.out.println(\"or test\");\n\t\tSystem.out.println(lengthTest5.or(startsWith).test(\"longer than 5 test \"));\n\t\t\n\t\t// negate\n\t\tSystem.out.println(\"negate test\");\n\t\tSystem.out.println(startsWith.negate().test(\"longer than 5 test \"));\n\t\t\n\t\t// isEqual\n\t\tSystem.out.println(\"isEquale test\");\n\t Predicate<String> strEqual = Predicate.isEqual(\"asdf\");\n\t \n\t System.out.println(strEqual.test(\"basddfs\"));\n\t System.out.println(strEqual.test(\"asdf\"));\n\t}", "public void forEachRemaining(IntConsumer param1IntConsumer) {\n/* 1028 */ if (param1IntConsumer == null)\n/* 1029 */ throw new NullPointerException(); int[] arrayOfInt; int i; int j;\n/* 1030 */ if ((arrayOfInt = this.array).length >= (j = this.fence) && (i = this.index) >= 0 && i < (this.index = j)) {\n/* */ \n/* 1032 */ do { param1IntConsumer.accept(arrayOfInt[i]); } while (++i < j);\n/* */ }\n/* */ }", "public interface Mailbox<Msg>\n/* */ extends AutoCloseable\n/* */ {\n/* */ default void close() {}\n/* */ \n/* */ default <Source> CompletableFuture<Source> b(Function<? super Mailbox<Source>, ? extends Msg> var0) {\n/* 19 */ CompletableFuture<Source> var1 = new CompletableFuture<>();\n/* 20 */ Msg var2 = var0.apply(a(\"ask future procesor handle\", var1::complete));\n/* 21 */ a(var2);\n/* 22 */ return var1;\n/* */ }\n/* */ \n/* */ default <Source> CompletableFuture<Source> c(Function<? super Mailbox<Either<Source, Exception>>, ? extends Msg> var0) {\n/* 26 */ CompletableFuture<Source> var1 = new CompletableFuture<>();\n/* 27 */ Msg var2 = var0.apply(a(\"ask future procesor handle\", var1 -> {\n/* */ var1.ifLeft(var0::complete);\n/* */ var1.ifRight(var0::completeExceptionally);\n/* */ }));\n/* 31 */ a(var2);\n/* 32 */ return var1;\n/* */ }\n/* */ \n/* */ static <Msg> Mailbox<Msg> a(String var0, Consumer<Msg> var1) {\n/* 36 */ return new Mailbox<Msg>(var0, var1)\n/* */ {\n/* */ public String bi() {\n/* 39 */ return this.a;\n/* */ }\n/* */ \n/* */ \n/* */ public void a(Msg var0) {\n/* 44 */ this.b.accept(var0);\n/* */ }\n/* */ \n/* */ \n/* */ public String toString() {\n/* 49 */ return this.a;\n/* */ }\n/* */ };\n/* */ }\n/* */ \n/* */ String bi();\n/* */ \n/* */ void a(Msg paramMsg);\n/* */ }", "RequestSender otherwise(Consumer<Message> consumer);", "public static <T, R> BiFunction<T, T, R> apply22(BiFunction<T, T, R> function) {\n return (arg1, arg2) -> function.apply(arg2, arg2);\n }", "public static void main(String[] args) {\n Consumer<Integer> consumer = x ->{\n System.out.println(\"Number is :\"+x);\n };\n consumer.accept(55);\n //Supplier\n Supplier<String> str = () -> \"Implementation of Supplier \";\n System.out.println(str.get());\n //Predicate\n int a=37;\n Predicate<Integer> isOddPredicate = x -> x%2 != 0;\n System.out.println(\"Is \"+a+\" Odd Number :\"+isOddPredicate.test(a));\n //Function\n int b=7;\n Function<Integer,Integer> squareFunction = x -> x*x;\n System.out.println(\"Square of \"+b+\" is \"+squareFunction.apply(b));\n\n //Example\n List<Integer> list = List.of(12,9,13,4,6,2,4);\n Consumer<Integer> con = System.out::println;\n System.out.println(\"Example(Square of odd no.) : \");\n list.stream()\n .filter(isOddPredicate)\n .map(squareFunction)\n .forEach(con);\n\n\n\n }", "interface Container2Operation {\r\n \r\n /**\r\n * Evaluates the specific function on two container values possibly modifying <code>result</code>.\r\n * \r\n * @param c1 the first container (must not be modified)\r\n * @param c2 the second container (must not be modified)\r\n * @param result the result (to be modified as a side effect)\r\n */\r\n public void evaluate(ContainerValue c1, ContainerValue c2, List<Value> result);\r\n }", "public static void main(String args[]) \n {\n Consumer<List<Integer> > modify = list -> \n { \n for (int i = 0; i < list.size(); i++) \n list.set(i, 5 * list.get(i));\n };\n \n Consumer<List<Integer> > square = list ->\n { \n for (int i = 0; i < list.size(); i++)\n \tlist\n .set(i,(int) Math.pow(list.get(i), 2));\n };\n \n // Consumer to display a list of integers \n Consumer<List<Integer> > \n dispList = list ->\n list.stream().\n forEach(a -> System.out.print(a + \" \"));\n \n List<Integer> list = new ArrayList<Integer>(); \n list.add(2); \n list.add(1); \n list.add(3); \n \n // using addThen() \n modify\n .andThen(square)\n .andThen(dispList)\n .accept(list);\n }", "public interface MessageHandler {\n\n /**\n * handle message\n * @param result\n */\n public void handleMessage(ConsumerResult result);\n\n}", "@Override // java.util.function.Consumer\n public /* bridge */ /* synthetic */ void accept(List<? extends Control> list2) {\n accept((List<Control>) list2);\n }", "public interface Consumer {\n\n public void createKafkaConsumer() throws Exception;\n\n public void subscribe(String... topic) throws Exception;\n\n\n public Object poll(long timeout);\n\n public void commitSync();\n\n public void close();\n\n}", "void addCallback(Executor executor, BiConsumer<Boolean, Boolean> callback);", "interface MyFirstVoidFunctionalInterface {\n\n public void methodOne();\n\n}", "default Function1<T, R> bind2(U secondParameter) {\n return (t) -> apply(t, secondParameter);\n }", "public interface Function2<X1,X2,Y> {\n\tY apply(X1 x1, X2 x2);\n}", "@Override\n public BinaryOperator<TradeAccumulator> combiner() {\n return (accum1, accum2) -> {return accum1.addAll(accum2);};\n }", "public static <T1, T2, U> Optional<U> yieldFor(\n Optional<T1> t1Optional, Optional<T2> t2Optional, BiFunction<T1, T2, U> biFunction\n ) {\n final Optional<U> uOptional;\n if (t1Optional.isPresent() && t2Optional.isPresent()) {\n uOptional = Optional.ofNullable(biFunction.apply(t1Optional.get(), t2Optional.get()));\n } else {\n uOptional = Optional.empty();\n }\n return uOptional;\n }", "K apply(T arg1, U arg2);", "@BackpressureSupport(BackpressureKind.FULL)\n @SchedulerSupport(SchedulerKind.NONE)\n public final <R> Observable<R> scanWith(Supplier<R> seedSupplier, BiFunction<R, ? super T, R> accumulator) {\n Objects.requireNonNull(seedSupplier, \"seedSupplier is null\");\n Objects.requireNonNull(accumulator, \"accumulator is null\");\n return lift(new OperatorScanSeed<T, R>(seedSupplier, accumulator));\n }", "static <T, U> BiFunction<T, U, SibillaValue> apply(DoubleBinaryOperator op, BiFunction<T, U, SibillaValue> f1, BiFunction<T, U, SibillaValue> f2) {\n return (t, u) -> SibillaValue.of(op.applyAsDouble(f1.apply(t, u).doubleOf(), f2.apply(t, u).doubleOf()));\n }", "@Override\r\n\tpublic String pipeTwoCommands(String... args) {\r\n\t\treturn pipeCaller(args);\r\n\t}", "public static <U1, U2, R> BiFunction<MonoT<U1>, MonoT<U2>, MonoT<R>> lift2(\n BiFunction<? super U1, ? super U2, ? extends R> fn) {\n return (optTu1, optTu2) -> optTu1.bind(input1 -> optTu2.map(input2 -> fn.apply(input1, input2)));\n }", "public interface Function1<A,B> {\n\tB apply(A a);\n}" ]
[ "0.73588836", "0.6924798", "0.6744038", "0.673764", "0.6644182", "0.6403123", "0.6116984", "0.60074306", "0.59788156", "0.59331965", "0.59324116", "0.5921319", "0.5915585", "0.58730495", "0.58680797", "0.5824648", "0.5791068", "0.5761645", "0.5709302", "0.56513613", "0.56492156", "0.5471784", "0.5408431", "0.53924483", "0.5349128", "0.5339263", "0.5339009", "0.5328481", "0.52959406", "0.5286727", "0.5263216", "0.52609295", "0.52466947", "0.5225205", "0.52149403", "0.51832426", "0.51780486", "0.5137789", "0.511814", "0.5099679", "0.50943893", "0.5057615", "0.5045304", "0.5042205", "0.50388014", "0.50387967", "0.49984092", "0.49723926", "0.49719575", "0.49714938", "0.49682444", "0.49573752", "0.49465853", "0.49385798", "0.49351305", "0.4929667", "0.4918139", "0.4880066", "0.4877365", "0.4870296", "0.4869122", "0.48629066", "0.48495364", "0.48476398", "0.48348325", "0.4833465", "0.4823877", "0.4820764", "0.48198813", "0.48186618", "0.48082066", "0.4805628", "0.4803301", "0.4793921", "0.47919813", "0.47879863", "0.4784011", "0.47826245", "0.47824505", "0.47765648", "0.47751555", "0.47740382", "0.47728783", "0.47585344", "0.47390163", "0.4735219", "0.4732652", "0.4732032", "0.47222173", "0.47184202", "0.47157642", "0.47122303", "0.471027", "0.47094715", "0.47023922", "0.47022185", "0.46999446", "0.46999356", "0.46968204", "0.4695168", "0.46926922" ]
0.0
-1
When parallel processing streams, combiner() knows how to combine the parallel objects represented by the supplier.
@Override public BinaryOperator<List<Integer>> combiner() { return (resultList1, resultList2) -> { Integer currentTotal1 = resultList1.get(0); Integer currentTotal2 = resultList2.get(0); currentTotal1 += currentTotal2; resultList1.set(0, currentTotal1); return resultList1; }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(final String[] args)\n {\n final Supplier<ArrayList<String>> proveedor = ArrayList::new;\n\n // Aqui tenemos el acumulador, el que añadira cada elemento del stream al proveedor definido\n // arriba\n // BiConsumer<ArrayList<String>, String> acumulador = (list, str) -> list.add(str);\n final BiConsumer<ArrayList<String>, String> acumulador = ArrayList::add;\n\n // Aquí tenemos el combinador, ya que por ejemplo al usar parallelStream, cada hijo generara\n // su propio proveedor, y al final deberan combinarse\n final BiConsumer<ArrayList<String>, ArrayList<String>> combinador = ArrayList::addAll;\n\n final List<Empleado> empleados = Empleado.empleados();\n final List<String> listNom = empleados.stream()\n .map(Empleado::getNombre)\n .collect(ArrayList::new, ArrayList::add, ArrayList::addAll);\n System.out.println(listNom);\n\n // Usando Collectors\n final List<String> listNom2 = empleados.stream()\n .map(Empleado::getNombre)\n .collect(Collectors.toList());\n System.out.println(listNom2);\n\n final Set<String> listNom3 = empleados.stream()\n .map(Empleado::getNombre)\n .collect(Collectors.toSet());\n System.out.println(listNom3);\n\n final Collection<String> listNom4 = empleados.stream()\n .map(Empleado::getNombre)\n .collect(Collectors.toCollection(TreeSet::new));\n System.out.println(listNom4);\n\n // Ahora con mapas\n final Map<Long, String> map = empleados.stream()\n .collect(Collectors.toMap(Empleado::getId, Empleado::getNombre));\n System.out.println(map);\n\n final Map<Genero, String> map2 = empleados.stream()\n .collect(Collectors.toMap(Empleado::getGenero, Empleado::getNombre,\n (nom1,\n nom2) -> String.join(\", \", nom1, nom2)));\n System.out.println(map2);\n }", "public final <R> ParallelFolyam<R> concatMap(CheckedFunction<? super T, ? extends Flow.Publisher<? extends R>> mapper) {\n return concatMap(mapper, FolyamPlugins.defaultBufferSize());\n }", "default Stream<E> parallelStream() {\n return StreamSupport.stream(spliterator(), true);\n }", "<R> Streamlet<R> newSource(SerializableSupplier<R> supplier);", "public IntStream parallelStream() {\n\treturn StreamSupport.intStream(spliterator(), true);\n }", "protected static void usingACollector() {\n String string = Stream.of(\"this\", \"is\", \"a\", \"list\")\n .collect(() -> new StringBuilder(), // result Supplier\n (sb, str) -> sb.append(str), // add a single value to the result\n (sb1, sb2) -> sb1.append(sb2)) // combine two results\n .toString();\n\n // Using method reference\n string = Stream.of(\"this\", \"is\", \"a\", \"list\")\n .collect(StringBuilder::new, // result Supplier\n StringBuilder::append, // add a single value to the result\n StringBuilder::append) // combine two results\n .toString();\n\n // Using joining method\n string = Stream.of(\"this\", \"is\", \"a\", \"list\").collect(Collectors.joining());\n }", "default <R> EagerFutureStream<Tuple2<U,R>> zipFutures(Stream<R> other) {\n\t\treturn (EagerFutureStream<Tuple2<U,R>>)FutureStream.super.zipFutures(other);\n\n\t}", "@Override\n public BinaryOperator<TradeAccumulator> combiner() {\n return (accum1, accum2) -> {return accum1.addAll(accum2);};\n }", "public static void main(String[] args) {\n\t\tForkJoinPool core = ForkJoinPool.commonPool() ;\n\t\tSystem.out.println(core.getParallelism());\n\t\t\n\t\t// Paralle() on a stream\n\t\tStream stream =Stream.of(\"Shobhit\",\"Mahesh\",\"Suresh\",\"Anand\",\"Andrew\");\n\t\tStream.of(\"Shobhit\",\"Mahesh\",\"Suresh\",\"Anand\",\"Andrew\").forEach(System.out::println);\n\t\tSystem.out.println(\"------\");\n\t\tStream.of(\"Shobhit\",\"Mahesh\",\"Suresh\",\"Anand\",\"Andrew\").parallel().forEach(System.out::println);\n\t\tSystem.out.println(\"------\");\n\t\t//2 .Use ParallelStream method at a collector \n\t\tArrays.asList(\"Shobhit\",\"Mahesh\",\"Suresh\",\"Anand\",\"Andrew\").parallelStream().forEach(System.out::println);\n\t\tSystem.out.println(\"------\");\n\t\t//3.Range method\n\t\tIntStream.rangeClosed(0, 10).forEach(System.out::println);\n\t\tSystem.out.println(\"------\");\n\t\tIntStream.rangeClosed(0, 10).parallel().forEach(System.out::println);\n\t\t//Print in Alaphabetical order\n\t\t//System.out.println(getArrayList());\n\t\tgetArrayList().stream().forEach(System.out::println);\n\t\tgetArrayList().parallelStream().forEach(System.out::println);\n\t\t//Check stream is running in Parallel Mode :-isParallel() Method is there\n\t\tIntStream s1=IntStream.rangeClosed(1,10);\n\t\tSystem.out.println(s1.isParallel()); // to check whether stream is running paralllel or not\n\t\tIntStream s2=IntStream.rangeClosed(1,10);s2.parallel();\n\t\tSystem.out.println(s2.isParallel());\n\t}", "default <R> EagerFutureStream<Tuple2<U,R>> zipFutures(FutureStream<R> other) {\n\t\treturn (EagerFutureStream<Tuple2<U,R>>)FutureStream.super.zipFutures(other);\n\n\t}", "public default <ANOTHER, TARGET> StreamPlus<TARGET> zipWith(Stream<ANOTHER> anotherStream, BiFunction<DATA, ANOTHER, TARGET> combinator) {\n return zipWith(anotherStream, RequireBoth, combinator);\n }", "public void getSupplier(Supplier supplier) {\n\t\r\n}", "public abstract Stream<E> streamBlockwise();", "@Override\n public BinaryOperator<ObjectNode> combiner() {\n return (l, r) -> {\n Iterator<Map.Entry<String, JsonNode>> it = r.fields();\n while (it.hasNext()) {\n Map.Entry<String, JsonNode> entry = it.next();\n l.set(entry.getKey(), entry.getValue());\n }\n return l;\n };\n }", "@Test\n public void streamsExample() {\n List<Integer> list = asList(1, 2, 3, 4, 5);\n \n list.stream().forEach(out::println);\n \n out.println();\n \n list.stream().parallel().forEachOrdered(out::println);\n \n \n }", "static <T> EagerFutureStream<T> react(Supplier<T> value) {\n\t\treturn new EagerReact(ThreadPools.getSequential(),new AsyncRetryExecutor(ThreadPools.getSequentialRetry()),false).react(value);\n\t}", "private SBomCombiner()\n\t{}", "@Test\n public void onlyWithMap(){\n Observable<Observable<PhoneNumber>> usersPhonesNumbers = costService\n .findUserInDepartment(DEPARTMENT_ID)\n .map(costService::findPhoneNumber);//<-- returns observable\n\n //Strange type here :o\n Observable<Observable<BigDecimal>> priceStream = usersPhonesNumbers\n .map(phones -> phones.map(costService::getPricePerSmsForNumber));\n\n Observable<BigDecimal> costPerPerson = priceStream.map(userPhones -> userPhones.reduce(ZERO, BigDecimal::add).blockingGet());//blockingGet<---only one difference in comparison to streams\n\n BigDecimal totalCost = costPerPerson.reduce(ZERO, BigDecimal::add).blockingGet(); //blockingGet<---only one difference in comparison to streams\n log.info(\"Total cost of sending SMSes to all users all phones {}\", totalCost);\n }", "static <A , B, C> Stream<C> zip(Stream<A> a, Stream<B> b, BiFunction<A, B, C> zipper) {\n Objects.requireNonNull(zipper);\n Spliterator<? extends A> aSpliterator = Objects.requireNonNull(a).spliterator();\n Spliterator<? extends B> bSpliterator = Objects.requireNonNull(b).spliterator();\n\n // Zipping looses DISTINCT and SORTED characteristics\n int characteristics = aSpliterator.characteristics() & bSpliterator.characteristics() &\n ~(Spliterator.DISTINCT | Spliterator.SORTED);\n\n long zipSize = ((characteristics & Spliterator.SIZED) != 0)\n ? Math.min(aSpliterator.getExactSizeIfKnown(), bSpliterator.getExactSizeIfKnown())\n : -1;\n\n Iterator<A> aIterator = Spliterators.iterator(aSpliterator);\n Iterator<B> bIterator = Spliterators.iterator(bSpliterator);\n Iterator<C> cIterator = new Iterator<C>() {\n @Override\n public boolean hasNext() {\n return aIterator.hasNext() && bIterator.hasNext();\n }\n\n @Override\n public C next() {\n return zipper.apply(aIterator.next(), bIterator.next());\n }\n };\n\n Spliterator<C> split = Spliterators.spliterator(cIterator, zipSize, characteristics);\n return (a.isParallel() || b.isParallel())\n ? StreamSupport.stream(split, true)\n : StreamSupport.stream(split, false);\n }", "@Override\n public Supplier<List<Integer>> supplier() {\n // constructor method reference\n // for an Object array use: Object[]::new\n return ArrayList::new;\n }", "@SafeVarargs\n\tstatic <T> EagerFutureStream<T> react(Supplier<T>... values) {\n\t\treturn new EagerReact(ThreadPools.getSequential(),new AsyncRetryExecutor(ThreadPools.getSequentialRetry()),false).react(values);\n\t}", "@Override\n public Interface_SupplierReadOnly getSupplier() {\n return supplier;\n }", "@Nonnull \r\n\tpublic static <T> Observable<List<T>> combine(\r\n\t\t\t@Nonnull final Func0<? extends T> supplier, \r\n\t\t\t@Nonnull Observable<? extends T> src) {\r\n\t\treturn select(src, new Func1<T, List<T>>() {\r\n\t\t\t@Override\r\n\t\t\tpublic List<T> invoke(T param1) {\r\n\t\t\t\tList<T> result = new ArrayList<T>();\r\n\t\t\t\tresult.add(supplier.invoke());\r\n\t\t\t\tresult.add(param1);\r\n\t\t\t\treturn result;\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public static void compose() {\n Observable.fromIterable(Utils.getData())\n .compose((source) -> {\n source.subscribe(new MyObserver<>());\n return source;\n });\n\n System.out.println(\"# 2\");\n\n Observable.fromIterable(Utils.getData())\n .compose((source) -> {\n Observable<String> observable = Observable.just(\"composed\");\n observable.subscribe(new MyObserver<>());\n return observable;\n });\n }", "private void collectorOperationInStream() {\n List<Person> persons =\n Arrays.asList(\n new Person(\"Max\", 18),\n new Person(\"Vicky\", 23),\n new Person(\"Ron\", 23),\n new Person(\"Harry\", 12));\n\n Map<Integer, List<Person>> personsByAge = persons\n .stream()\n .collect(Collectors.groupingBy(p -> p.age));\n\n personsByAge.forEach((age, p) -> System.out.format(\"age %s: %s\\n\", age, p));\n\n Double averageAge = persons\n .stream()\n .collect(Collectors.averagingInt(p -> p.age));\n\n System.out.println(\"Average-Age: \" + averageAge);\n\n IntSummaryStatistics ageSummary = persons.stream()\n .collect(Collectors.summarizingInt(p -> p.age));\n\n System.out.println(\"Summarizing Age: \" + ageSummary);\n\n String phrase = persons\n .stream()\n .filter(p -> p.age >= 18)\n .map(p -> p.name)\n .collect(Collectors.joining(\" and \", \"In Germany \", \" are of legal age.\"));\n\n System.out.println(\"Collectors Joining: \" + phrase);\n\n Map<Integer, String> map = persons\n .stream()\n .collect(Collectors.toMap(\n p -> p.age,\n p -> p.name,\n (name1, name2) -> name1 + \";\" + name2));\n\n System.out.println(\"Collectors Mapping: \" + map);\n\n\n Collector<Person, StringJoiner, String> personNameCollector =\n Collector.of(\n () -> new StringJoiner(\" | \"), // supplier\n (j, p) -> j.add(p.name.toUpperCase()), // accumulator\n StringJoiner::merge, // combiner\n StringJoiner::toString); // finisher\n\n String names = persons\n .stream()\n .collect(personNameCollector);\n\n System.out.println(\"Collectors Collect: \" + names);\n\n\n List<Integer> IntegerRange = IntStream.range(51, 54).boxed().collect(Collectors.toList());\n List<Integer> IntegerRange1 = IntStream.range(51, 54).mapToObj(i-> i).collect(Collectors.toList());\n System.out.println(\"InStream to List : \"+IntegerRange);\n System.out.println(\"InStream to List : \"+IntegerRange1);\n }", "public void testConsumer ()\n {\n\n List<String> list = new ArrayList<>();\n list.add(\"ccc\");\n list.add(\"bbb\");\n list.add(\"ddd\");\n list.add(\"DDDD\");\n list.add(\"ccc\");\n list.add(\"aaa\");\n list.add(\"eee\");\n\n// Collections.sort(list);\n// Collections.sort(list, (s, s2) -> s.toLowerCase().compareTo(s2.toLowerCase()));\n\n// list.sort((s, s2) -> s.compareTo(s2));\n// list.sort((s, s2) -> s.toLowerCase().compareTo(s2.toLowerCase()));\n\n// list.forEach(s -> System.out.println(s));\n// list.forEach(s -> System.out.println(s));\n\n\n// Predicate<String> predicate2 = s -> s.length()>3;\n// System.out.println(\"predicate2.test(\\\"DDDD\\\") = \" + predicate2.test(\"DDDD\"));\n\n// Stream<String> stringStream = list.stream();\n// stringStream.forEach(s -> System.out.println(s));\n// stringStream.forEach(s -> System.out.println(s));//会报错\n\n// list.stream().forEach(s -> System.out.println(s));\n// list.stream().forEach(s -> System.out.println(s));\n\n //并行流是无序的\n// list.parallelStream().forEach(s -> System.out.println(s));\n// list.parallelStream().forEach(s -> System.out.println(s));\n\n// list.stream().skip(3).forEach(s -> System.out.println(s));\n// list.stream().distinct().forEach(s -> System.out.println(s));\n// System.out.println(\"list.stream().count() = \" + list.stream().count());\n// list.stream().limit(2).forEach(s -> System.out.println(s));\n\n// list.stream().filter(s -> s.length()<4).forEach(s -> System.out.println(s));\n\n// BiFunction<Integer, String, Person> bf = Person::new;\n// BiFunction<Integer, String, Person> bf = (n, s) -> new Person(s);\n\n// Person aaa = bf.apply();\n\n// System.out.println(\"aaa = \" + bf.apply(0, \"aaa\"));\n \n }", "@Test\n public void testSummingUpTwoAsyncStreamsOfIntegers() throws Exception {\n FunctionalReactives<Integer> fr1 =\n FunctionalReactives.createAsync(\n aSubscribableWillAsyncFireIntegerOneToFive() //one async stream of Integers\n );\n FunctionalReactives<Integer> fr2 =\n fr1.fromAnother(\n aSubscribableWillAsyncFireIntegerOneToFive() //another async stream of Integers\n );\n\n FunctionalReactives<Void> fr =\n fr1.zipStrict(fr2, new Function2<Integer, Integer, Integer>() {\n @Override\n public Optional<Integer> apply(Integer input1, Integer input2) {\n return Optional.of(input1 + input2);\n }\n })\n .forEach(println()); //print out reaction results each in a line\n\n fr.start(); //will trigger Subscribable.doSubscribe()\n fr.shutdown(); //will trigger Subscribable.unsubscribe() which in above case will await for all the integers scheduled\n\n //Reaction walk through:\n // Source1: 1 -> 2 -> 3 -> 4 -> 5 -> |\n // Source2: 1 -> 2 -> 3 -> 4 -> 5 -> |\n // Print sum of two sources: 2 -> 4 -> 6 -> 8 -> 10 ->|\n\n }", "public String getSupplier() {\n return supplier;\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Supplier test\");\n\t\tSupplier<String> stringSupp = () -> \"test\"; \n\t\tSystem.out.println(stringSupp.get());\n\t\t\t\t\n\t\t// used as a factory\n\t\tSupplier<Integer> intSupp5 = () -> {return new Integer(5);};\t\t\t\t\n\t\tSupplier<Map> hashMapSupp = () -> new HashMap<>();\n\t\t// using a Method Reference\n\t\tSupplier<Map> hashMapSuppMF = HashMap::new;\n\t\t\t\t\t\t\t\t\n\t\t// *** consumer --> Consumer<T> cons = t -> {};\n\t\tSystem.out.println(\"\\nConsumer test\");\n\t\tConsumer cons = t -> {};\n\t\tConsumer<String> commaStringOut = s -> System.out.print(s + \", \");\n\t\tcommaStringOut.accept(\"This is a test\");\n\t\tSystem.out.println(\"\");\n\t\t\n\t\t// andThen - returns a composed Consumer\n\t\tConsumer<String> suffixStringOut = s -> System.out.println(\"of lambdas\");\t\t\n\t\tcommaStringOut.andThen(suffixStringOut).accept(\"This is a test\");\t\n\t\t\n//\t\tConsumer<String> fullStringOut = commaStringOut.andThen(suffixStringOut);\n//\t\tfullStringOut.accept(\"This is a test\");\n\n\t\t// *** function --> Function(T,T) func = t -> t;\n\t\tSystem.out.println(\"\\nFunction test\");\n\t\tFunction func = t -> t;\n\t\t\t\t\n\t\tFunction<String, Integer> stringLength = (s) -> s.length();\n\t\tSystem.out.println(stringLength.apply(\"Hello world\"));\n\t\t\n\t\t// andThen\n\t\tSystem.out.println(\"andThen test\");\n\t\tFunction<Integer, Boolean> lowerThanTen = (i) -> i < 10;\t\t\t\t\n\t\tFunction<String, Boolean> function = stringLength.andThen(lowerThanTen);\n\t\t// Will print false\n\t\tSystem.out.println(function.apply(\"Hello world\"));\n\n\t\t// compose \n\t\tSystem.out.println(\"compose test\");\n\t\tFunction<Integer, Integer> times2 = e -> e * 2;\n\t\tFunction<Integer, Integer> squared = e -> e * e;\n\t\t\n\t\t// returns 64\n\t\tSystem.out.println(times2.andThen(squared).apply(4));\t\n\t\t\n\t\t// returns 32\n\t\tSystem.out.println(times2.compose(squared).apply(4));\t\n\t\t\n\t\t// identity \n\t\tFunction<String,String> strIdenityFunc = Function.identity();\n\t\tSystem.out.println(strIdenityFunc.apply(\"Identity Test\"));\t\n\t\t\n\t\t// *** predicate --> Predicate<T> pred = t -> 1 == 1;\n\t\tSystem.out.println(\"\\nPredicate test\");\n\t\tPredicate<String> lengthTest5 = (s)-> s.length() > 5;\n\t\tSystem.out.println(lengthTest5.test(\"longer than 5 test \"));\n\t\t\n\t\t// and\n\t\tSystem.out.println(\"and test\");\n\t\tPredicate<String> startsWith = (s)-> s.startsWith(\"t\");\n\t\tSystem.out.println(lengthTest5.and(startsWith).test(\"longer than 5 test \"));\n\n\t\t// or\n\t\tSystem.out.println(\"or test\");\n\t\tSystem.out.println(lengthTest5.or(startsWith).test(\"longer than 5 test \"));\n\t\t\n\t\t// negate\n\t\tSystem.out.println(\"negate test\");\n\t\tSystem.out.println(startsWith.negate().test(\"longer than 5 test \"));\n\t\t\n\t\t// isEqual\n\t\tSystem.out.println(\"isEquale test\");\n\t Predicate<String> strEqual = Predicate.isEqual(\"asdf\");\n\t \n\t System.out.println(strEqual.test(\"basddfs\"));\n\t System.out.println(strEqual.test(\"asdf\"));\n\t}", "default EagerFutureStream<U> self(Consumer<FutureStream<U>> consumer) {\n\t\treturn (com.aol.simple.react.stream.traits.EagerFutureStream<U>)FutureStream.super.self(consumer);\n\t}", "public <T> T sync(Supplier<? extends T> supplier) {\n lock.lock();\n try {\n return supplier.get();\n } finally {\n lock.unlock();\n } \n }", "@Nonnull\r\n\tpublic static <T> Observable<List<T>> forkJoin(\r\n\t\t\t@Nonnull final Iterable<? extends Observable<? extends T>> sources) {\r\n\t\treturn new Observable<List<T>>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super List<T>> observer) {\r\n\t\t\t\tfinal CompositeCloseable closeables = new CompositeCloseable();\r\n\t\t\t\tfinal List<AtomicReference<T>> lastValues = new ArrayList<AtomicReference<T>>();\r\n\t\t\t\tfinal List<Observable<? extends T>> observableList = new ArrayList<Observable<? extends T>>();\r\n\t\t\t\tfinal List<Observer<T>> observers = new ArrayList<Observer<T>>();\r\n\t\t\t\tfinal AtomicInteger wip = new AtomicInteger(observableList.size() + 1);\r\n\r\n\t\t\t\tint i = 0;\r\n\t\t\t\tfor (Observable<? extends T> o : sources) {\r\n\t\t\t\t\tfinal int j = i;\r\n\t\t\t\t\tobservableList.add(o);\r\n\t\t\t\t\tlastValues.add(new AtomicReference<T>());\r\n\t\t\t\t\tobservers.add(new Observer<T>() {\r\n\t\t\t\t\t\t/** The last value. */\r\n\t\t\t\t\t\tT last;\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void error(@Nonnull Throwable ex) {\r\n\t\t\t\t\t\t\tobserver.error(ex);\r\n\t\t\t\t\t\t\tcloseables.closeSilently();\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void finish() {\r\n\t\t\t\t\t\t\tlastValues.get(j).set(last);\r\n\t\t\t\t\t\t\trunIfComplete(observer, lastValues, wip);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void next(T value) {\r\n\t\t\t\t\t\t\tlast = value;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\ti = 0;\r\n\t\t\t\tfor (Observable<? extends T> o : observableList) {\r\n\t\t\t\t\tcloseables.add(Observers.registerSafe(o, observers.get(i)));\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t\trunIfComplete(observer, lastValues, wip);\r\n\t\t\t\treturn closeables;\r\n\t\t\t}\r\n\t\t\t/**\r\n\t\t\t * Runs the completion sequence once the WIP drops to zero.\r\n\t\t\t * @param observer the observer who will receive the values\r\n\t\t\t * @param lastValues the array of last values\r\n\t\t\t * @param wip the work in progress counter\r\n\t\t\t */\r\n\t\t\tpublic void runIfComplete(\r\n\t\t\t\t\tfinal Observer<? super List<T>> observer,\r\n\t\t\t\t\tfinal List<AtomicReference<T>> lastValues,\r\n\t\t\t\t\tfinal AtomicInteger wip) {\r\n\t\t\t\tif (wip.decrementAndGet() == 0) {\r\n\t\t\t\t\tList<T> values = new ArrayList<T>();\r\n\t\t\t\t\tfor (AtomicReference<T> r : lastValues) {\r\n\t\t\t\t\t\tvalues.add(r.get());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tobserver.next(values);\r\n\t\t\t\t\tobserver.finish();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t}", "public default <ANOTHER, TARGET> StreamPlus<TARGET> zipWith(Stream<ANOTHER> anotherStream, ZipWithOption option, BiFunction<DATA, ANOTHER, TARGET> combinator) {\n val iteratorA = streamPlus().iterator();\n val iteratorB = IteratorPlus.from(anotherStream.iterator());\n return StreamPlusHelper.doZipWith(option, combinator, iteratorA, iteratorB);\n }", "public default StreamPlus<DATA> mergeWith(Stream<DATA> anotherStream) {\n val streamPlus = streamPlus();\n val iteratorA = streamPlus.iterator();\n val iteratorB = StreamPlus.from(anotherStream).iterator();\n val resultStream = StreamPlusHelper.doMerge(iteratorA, iteratorB);\n resultStream.onClose(() -> {\n funcUnit0(() -> streamPlus.close()).runCarelessly();\n funcUnit0(() -> anotherStream.close()).runCarelessly();\n });\n return resultStream;\n }", "@Override\n protected Collection<Stream> calculateEmittedStreams(\n final Collection<Stream> providedStreams) {\n return null;\n }", "@Override\n public Supplier<ObjectNode> supplier() {\n return JsonNodeFactory.instance::objectNode;\n }", "private static <R, I, T> SerializableFunction<R, T> compose(\n SerializableFunction<R, I> f1, SerializableFunction<I, T> f2) {\n return r -> f2.apply(f1.apply(r));\n }", "@Override\n\tpublic void extractAggFn(List<Expr> collector) {\n\n\t}", "public interface EagerFutureStream<U> extends FutureStream<U>, EagerToQueue<U> {\n\t/* \n\t * Convert this stream into an async / sync stream\n\t * \n\t *\t@param async true if aysnc stream\n\t *\t@return\n\t * @see com.aol.simple.react.stream.traits.ConfigurableStream#withAsync(boolean)\n\t */\n\tEagerFutureStream<U> withAsync(boolean async);\n\t/* \n\t * Change task executor for the next stage of the Stream\n\t * \n\t * <pre>\n\t * {@code\n\t * EagerFutureStream.of(1,2,3,4)\n\t * \t\t\t\t\t.map(this::loadFromDb)\n\t * \t\t\t\t\t.withTaskExecutor(parallelBuilder().getExecutor())\n\t * \t\t\t\t\t.map(this::processOnDifferentExecutor)\n\t * \t\t\t\t\t.toList();\n\t * }\n\t * </pre>\n\t * \n\t *\t@param e New executor to use\n\t *\t@return Stream ready for next stage definition\n\t * @see com.aol.simple.react.stream.traits.ConfigurableStream#withTaskExecutor(java.util.concurrent.Executor)\n\t */\n\tEagerFutureStream<U> withTaskExecutor(Executor e);\n\n\t/* \n\t * Change the Retry Executor used in this stream for subsequent stages\n\t * <pre>\n\t * {@code\n\t * List<String> result = new EagerReact().react(() -> 1)\n\t\t\t\t.withRetrier(executor)\n\t\t\t\t.capture(e -> error = e)\n\t\t\t\t.retry(serviceMock).block();\n\t * \n\t * }\n\t * </pre>\n\t * \n\t * \n\t *\t@param retry Retry executor to use\n\t *\t@return Stream \n\t * @see com.aol.simple.react.stream.traits.ConfigurableStream#withRetrier(com.nurkiewicz.asyncretry.RetryExecutor)\n\t */\n\tEagerFutureStream<U> withRetrier(RetryExecutor retry);\n\n\t\n\tEagerFutureStream<U> withWaitStrategy(Consumer<CompletableFuture> c);\n\n\t\n\n\tEagerFutureStream<U> withLazyCollector(LazyResultConsumer<U> lazy);\n\n\t/* \n\t * Change the QueueFactory type for the next phase of the Stream.\n\t * Default for EagerFutureStream is an unbounded blocking queue, but other types \n\t * will work fine for a subset of the tasks (e.g. an unbonunded non-blocking queue).\n\t * \n\t * <pre>\n\t * {@code\n\t * List<Collection<String>> collected = EagerFutureStream\n\t\t\t\t.react(data)\n\t\t\t\t.withQueueFactory(QueueFactories.boundedQueue(1))\n\t\t\t\t.onePer(1, TimeUnit.SECONDS)\n\t\t\t\t.batchByTime(10, TimeUnit.SECONDS)\n\t\t\t\t.limit(15)\n\t\t\t\t.toList();\n\t * }\n\t * </pre>\n\t *\t@param queue Queue factory to use for subsequent stages\n\t *\t@return Stream\n\t * @see com.aol.simple.react.stream.traits.ConfigurableStream#withQueueFactory(com.aol.simple.react.async.QueueFactory)\n\t */\n\tEagerFutureStream<U> withQueueFactory(QueueFactory<U> queue);\n\n\tEagerFutureStream<U> withErrorHandler(\n\t\t\tOptional<Consumer<Throwable>> errorHandler);\n\n\tEagerFutureStream<U> withSubscription(Continueable sub);\n\n\t/*\n\t * Synchronous version of then (executed on completing thread, without involving an Executor)\n\t * \n\t * React to new events with the supplied function on the supplied\n\t * Executor\n\t * \n\t * @param fn Apply to incoming events\n\t * \n\t * @param service Service to execute function on\n\t * \n\t * @return next stage in the Stream\n\t */\n\tdefault <R> EagerFutureStream<R> thenSync(final Function<U, R> fn){\n\t\t return (EagerFutureStream<R>)FutureStream.super.thenSync(fn);\n\t }\n\t/* \n\t * Execute subsequent stages on the completing thread (until async called)\n\t * 10X faster than async execution.\n\t * Use async for blocking IO or distributing work across threads or cores.\n\t * Switch to sync for non-blocking tasks when desired thread utlisation reached\n\t * \n\t *\t@return Version of FutureStream that will use sync CompletableFuture methods\n\t * @see com.aol.simple.react.stream.traits.SimpleReactStream#sync()\n\t */\n\tdefault EagerFutureStream<U> sync(){\n\t\treturn (EagerFutureStream<U>)FutureStream.super.sync();\n\t}\n\t/* \n\t * Execute subsequent stages by submission to an Executor for async execution\n\t * 10X slower than sync execution.\n\t * Use async for blocking IO or distributing work across threads or cores.\n\t * Switch to sync for non-blocking tasks when desired thread utlisation reached\n\t *\n\t * \n\t *\t@return Version of FutureStream that will use async CompletableFuture methods\n\t * @see com.aol.simple.react.stream.traits.SimpleReactStream#async()\n\t */\n\tdefault EagerFutureStream<U> async(){\n\t\treturn (EagerFutureStream<U>)FutureStream.super.async();\n\t}\n\n\t\n\t/**\n\t * Convert between an Eager and Lazy future stream,\n\t * can be used to take advantages of each approach during a single Stream\n\t * \n\t * @return A LazyFutureStream from this EagerFutureStream\n\t */\n\tdefault LazyFutureStream<U> convertToLazyStream(){\n\t\treturn new LazyReact(getTaskExecutor()).withRetrier(getRetrier()).fromStream((Stream)getLastActive().stream());\n\t}\n\t/* \n\t * Apply a function to all items in the stream.\n\t * <pre>\n\t * {@code\n\t * EagerFutureStream.sequentialBuilder().react(()->1,()->2,()->3)\n\t\t \t\t\t\t\t\t\t\t\t .map(it->it+100) //add 100\n\t\t \t\t\t\t\t\t\t\t\t .toList();\n\n\t * }\n\t * //results in [100,200,300]\n\t * </pre>\n\t *\t@param mapper Function to be applied to all items in the Stream\n\t *\t@return\n\t * @see com.aol.simple.react.stream.traits.FutureStream#map(java.util.function.Function)\n\t */\n\tdefault <R> EagerFutureStream<R> map(Function<? super U, ? extends R> mapper) {\n\t\treturn (EagerFutureStream<R>)FutureStream.super.map(mapper);\n\t}\n\t\n\t/**\n\t * @return a Stream that batches all completed elements from this stream\n\t * since last read attempt into a collection\n\t */\n\tdefault EagerFutureStream<Collection<U>> chunkSinceLastRead() {\n\t\treturn (EagerFutureStream<Collection<U>>) FutureStream.super\n\t\t\t\t.chunkSinceLastRead();\n\t}\n\n\t/**\n\t * Break a stream into multiple Streams based of some characteristic of the\n\t * elements of the Stream\n\t * \n\t * e.g.\n\t * <pre>\n\t * {@code \n\t * Queue<Integer> evenQueue = QueueFactories.unboundedQueue().build();\n\t * Queue<Integer> oddQueue = QueueFactories.unboundedQueue().build()\n\t * EagerFutureStream.of(10,20,25,30,41,43)\n\t * \t\t\t\t\t .shard(ImmutableMap.of(\"even\",evenQueue,\"odd\",oddQueue),element-> element==0? \"even\" : \"odd\");\n\t * \n\t * \n\t * Stream<Integer> evenStream = evenQueue.stream();\n\t * }\n\t * </pre>\n\t * \n\t * \n\t * results in 2 Streams \"even\": 10,20,30 \"odd\" : 25,41,43\n\t * \n\t * @param shards\n\t * Map of Queue's keyed by shard identifier\n\t * @param sharder\n\t * Function to split split incoming elements into shards\n\t * @return Map of new sharded Streams\n\t */\n\tdefault <K> Map<K, EagerFutureStream<U>> shard(Map<K, Queue<U>> shards,\n\t\t\tFunction<U, K> sharder) {\n\t\tMap map = FutureStream.super.shard(shards, sharder);\n\t\treturn (Map<K, EagerFutureStream<U>>) map;\n\t}\n\n\t/**\n\t * Cancel the CompletableFutures in this stage of the stream and the initial\n\t * phase\n\t */\n\tdefault void cancel() {\n\t\tcancelOriginal();\n\t\tFutureStream.super.cancel();\n\n\t}\n\n\t/**\n\t * Cancel the original tasks that populated the EagerFuturestream\n\t */\n\tvoid cancelOriginal();\n\n\t/**\n\t * Can be used to debounce (accept a single data point from a unit of time)\n\t * data. This drops data. For a method that slows emissions and keeps data\n\t * @see LazyFutureStream#onePer(long, TimeUnit)\n\t * \n\t * <pre>\n\t * {@code \n\t * \n\t * \t\t\tEagerFutureStream.of(1,2,3,4,5,6)\n\t * \t\t\t\t\t\t\t.debounce(1000,TimeUnit.SECONDS)\n\t * \t\t\t\t\t\t\t.toList();\n\t * //[1] - as all events will be passed through in < 1000 seconds, only 1 will be allowed\n\t * }\n\t * \n\t * \n\t * </pre>\n\t * \n\t * @param time\n\t * Time from which to accept only one element\n\t * @param unit\n\t * Time unit for specified time\n\t * @return Next stage of stream, with only 1 element per specified time\n\t * windows\n\t */\n\tdefault EagerFutureStream<U> debounce(long time, TimeUnit unit) {\n\t\tlong[] last = {0l};\n\t\treturn this.filter(next-> {synchronized(last){\n\t\t\t\t\tif(System.nanoTime()-last[0]>unit.toNanos(time)){ \n\t\t\t\t\t\tlast[0]= System.nanoTime(); \n\t\t\t\t\treturn true;\n\t\t\t\t\t} \n\t\t\t\t\treturn false;}\n\t\t});\n\t\t\n\t\t\n\t}\n\t\n\t/**\n\t * Return a Stream with the same values as this Stream, but with all values\n\t * omitted until the provided stream starts emitting values. Provided Stream\n\t * ends the stream of values from this stream.\n\t <pre>\n\t {@code \n\t * \t\t\tEagerFutureStream.react(()->loadNext(1),()->loadNext(2),()->3,()->4,()->loadNext(4))\n\t * \t\t\t\t\t\t\t .skipUntil(EagerFutureStream.react(()->loadFromDb()))\n\t * \t\t\t\t\t\t\t .toList();\n\t * }\n\t * </pre>\n\t * @param s\n\t * Stream that will start the emission of values from this stream\n\t * @return Next stage in the Stream but with all values skipped until the\n\t * provided Stream starts emitting\n\t */\n\tdefault <T> EagerFutureStream<U> skipUntil(FutureStream<T> s) {\n\t\treturn (EagerFutureStream<U>) FutureStream.super.skipUntil(s);\n\t}\n\n\t/**\n\t * Return a Stream with the same values, but will stop emitting values once\n\t * the provided Stream starts to emit values. e.g. if the provided Stream is\n\t * asynchronously refreshing state from some remote store, this stream can\n\t * proceed until the provided Stream succeeds in retrieving data.\n\t * \n\t * <pre>\n\t * {@code \n\t * \t\t\tEagerFutureStream.react(()->loadNext(1),()->loadNext(2),()->3,()->4,()->loadNext(4))\n\t * \t\t\t\t\t\t\t .takeUntil(EagerFutureStream.react(()->loadFromDb()))\n\t * \t\t\t\t\t\t\t .toList();\n\t * }\n\t * \n\t * </pre>\n\t * \n\t * @param s\n\t * Stream that will stop the emission of values from this stream\n\t * @return Next stage in the Stream but will only emit values until provided\n\t * Stream starts emitting values\n\t */\n\tdefault <T> EagerFutureStream<U> takeUntil(FutureStream<T> s) {\n\t\treturn (EagerFutureStream<U>) FutureStream.super.takeUntil(s);\n\t}\n\n\t/**\n\t * Allows clients to control the emission of data for the next phase of the\n\t * Stream. The user specified function can delay, drop, or change elements\n\t * \n\t * @param fn\n\t * Function takes a supplier, which can be used repeatedly to get\n\t * the next value from the Stream. If there are no more values, a\n\t * ClosedQueueException will be thrown. This function should\n\t * return a Supplier which returns the desired result for the\n\t * next element (or just the next element).\n\t * @return Next stage in Stream\n\t */\n\tdefault EagerFutureStream<U> control(Function<Supplier<U>, Supplier<U>> fn) {\n\t\treturn (EagerFutureStream<U>) FutureStream.super.control(fn);\n\t}\n\t/* \n\t * Batch the elements in the Stream by a combination of Size and Time\n\t * If batch exceeds max size it will be split\n\t * If batch exceeds max time it will be split\n\t * Excludes Null values (neccessary for timeout handling)\n\t * \n\t * <pre>\n\t * {@code\n\t * assertThat(react(()->1,()->2,()->3,()->4,()->5,()->{sleep(100);return 6;})\n\t\t\t\t\t\t.batchBySizeAndTime(30,60,TimeUnit.MILLISECONDS)\n\t\t\t\t\t\t.toList()\n\t\t\t\t\t\t.get(0)\n\t\t\t\t\t\t,not(hasItem(6)));\n\t\t}\n\t * </pre>\n\t * \n\t * <pre>\n\t * {@code\n\t * \t\n\t\tassertThat(of(1,2,3,4,5,6).batchBySizeAndTime(3,10,TimeUnit.SECONDS).toList().get(0).size(),is(3));\n\n\t * }</pre>\n\t * \n\t *\t@param size Max batch size\n\t *\t@param time Max time length\n\t *\t@param unit time unit\n\t *\t@return batched stream\n\t * @see com.aol.simple.react.stream.traits.FutureStream#batchBySizeAndTime(int, long, java.util.concurrent.TimeUnit)\n\t */\n\t@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\tdefault EagerFutureStream<List<U>> batchBySizeAndTime(int batchSize,long time, TimeUnit unit) { \n\t\tint size = this.getLastActive().list().size();\n\t\tList[] list = {new ArrayList<U>()};\n\t\tint[] count = {0};\n\t\tSimpleTimer[] timer = {new SimpleTimer()};\n\t\treturn (EagerFutureStream)this.map(next-> { \n\t\t\t\tsynchronized(timer){\n\t\t\t\t\tcount[0]++;\n\t\t\t\t\tif(unit.toNanos(time)-timer[0].getElapsedNanoseconds()>0 && list[0].size()+1<batchSize){\n\t\t\t\t\t\t\n\t\t\t\t\t\tlist[0].add(next);\n\t\t\t\t\t\t\n\t\t\t\t\t} else{\n\t\t\t\t\t\tlist[0].add(next);\n\t\t\t\t\t\t\n\t\t\t\t\t\tList<U> result = list[0];\n\t\t\t\t\t\tlist[0] = new ArrayList<U>();\n\t\t\t\t\t\t timer[0] = new SimpleTimer();\n\t\t\t\t\t\treturn result;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tif(count[0]==size){\n\t\t\t\t\t\tlist[0].add(next);\n\t\t\t\t\t\t\n\t\t\t\t\t\tList<U> result = list[0];\n\t\t\t\t\t\tlist[0] = new ArrayList<U>();\n\t\t\t\t\t\treturn result;\n\t\t\t\t\t}\n\t\t\t\t\treturn new ArrayList();\n\t\t\t\t}\n\t\t\t}\t).filter(l->l.size()>0);\n\t}\n\t/**\n\t * Organise elements in a Stream into a Collections based on the time period they pass through this stage\n\t * This version uses locks - for a lock free implementation choose \n\t * @see LazyFutureStream#batchByTime(long, TimeUnit)\n\t * \n\t * Will always include the next value over the batch time in current batch (again @see LazyFutureStream#batchByTime(long, TimeUnit)\n\t * for a more powerful alternative that does not).\n\t * \n\t * @param time Time period during which all elements should be collected\n\t * @param unit Time unit during which all elements should be collected\n\t * @return Stream of Lists\n\t */\n\t@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\tdefault EagerFutureStream<Collection<U>> batchByTime(long time, TimeUnit unit) {\n\t\n\t\tint size = this.getLastActive().list().size();\n\t\tList[] list = {new ArrayList<U>()};\n\t\tint[] count = {0};\n\t\tSimpleTimer[] timer = {new SimpleTimer()};\n\t\treturn (EagerFutureStream)this.map(next-> { \n\t\t\t\tsynchronized(timer){\n\t\t\t\t\tcount[0]++;\n\t\t\t\t\tif(unit.toNanos(time)-timer[0].getElapsedNanoseconds()>0){\n\t\t\t\t\t\t\n\t\t\t\t\t\tlist[0].add(next);\n\t\t\t\t\t} else{\n\t\t\t\t\t\tlist[0].add(next);\n\t\t\t\t\t\tList<U> result = list[0];\n\t\t\t\t\t\tlist[0] = new ArrayList<U>();\n\t\t\t\t\t\t timer[0] = new SimpleTimer();\n\t\t\t\t\t\treturn result;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tif(count[0]==size){\n\t\t\t\t\t\tlist[0].add(next);\n\t\t\t\t\t\t\n\t\t\t\t\t\tList<U> result = list[0];\n\t\t\t\t\t\tlist[0] = new ArrayList<U>();\n\t\t\t\t\t\treturn result;\n\t\t\t\t\t}\n\t\t\t\t\treturn new ArrayList();\n\t\t\t\t}\n\t\t\t}\t).filter(l->l.size()>0);\n\t\t\n\t}\n\t\n\t/**\n\t * Batch elements into a Stream of collections with user defined function\n\t * \n\t * @param fn\n\t * Function takes a supplier, which can be used repeatedly to get\n\t * the next value from the Stream. If there are no more values, a\n\t * ClosedQueueException will be thrown. This function should\n\t * return a Supplier which creates a collection of the batched\n\t * values\n\t * @return Stream of batched values\n\t */\n\tdefault <C extends Collection<U>> EagerFutureStream<C> batch(\n\t\t\tFunction<Supplier<U>, Supplier<C>> fn) {\n\t\treturn (EagerFutureStream<C>) FutureStream.super.batch(fn);\n\t}\n\n\t/**\n\t * \n\t * Batch the elements in this stream into Lists of specified size\n\t * <pre>\n\t * {@code\n\t * EagerFutureStream.of(1,2,3,4,5,6)\n\t * \t\t\t\t\t.batchBySize(3)\n\t * \t\t\t\t\t.toList();\n\t *\n\t * // [[1,2,3],[4,5,6]]\n\t * }\n\t *\n\t * </pre>\n\t * @param size\n\t * Size of lists elements should be batched into\n\t * @return Stream of Lists\n\t */\n\tdefault EagerFutureStream<List<U>> batchBySize(int size) {\n\t\treturn batchBySize(size,()->new ArrayList<>());\n\n\t}\n\t\n\n\t/**\n\t * Batch the elements in this stream into Collections of specified size The\n\t * type of Collection is determined by the specified supplier\n\t * \n\t * <pre>\n\t * {@code \n\t * \t\tEagerFutureStream.of(1,1,1,1,1,1)\n\t * \t\t\t\t\t\t.batchBySize(3,()->new TreeSet<>())\n\t * \t\t\t\t\t\t.toList()\n\t * \n\t * //[[1],[1]]\n\t * }\n\t * \n\t * </pre>\n\t * @param size\n\t * Size of batch\n\t * @param supplier\n\t * Create the batch holding collection\n\t * @return Stream of Collections\n\t */\n\tdefault <C extends Collection<U>> EagerFutureStream<C> batchBySize(int size,\n\t\t\tSupplier<C> supplier) {\n\t\tQueue<U> queue = toQueue();\n\t\tFunction<Supplier<U>, Supplier<Optional<C>>> fn = new BatchBySize<U,C>(size,this.getSubscription(),queue, supplier)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.liftOptional();\n\t\t \n\t\tEagerFutureStream<C> stream = this.async() \n\t\t\t\t\t\t\t\t\t\t\t.map(u-> {synchronized(queue){return fn.apply(()-> queue.poll(1,TimeUnit.MICROSECONDS)).get();}})\n\t\t\t\t\t\t\t\t\t\t\t.filter(Optional::isPresent)\n\t\t\t\t\t\t\t\t\t\t\t.map(Optional::get);\n\t\t if(this.isAsync())\n\t\t\t\treturn stream.async();\n\t\t\treturn stream;\n\n\t}\n\n\t/**\n\t * Introduce a random delay between events in a stream Can be used to\n\t * prevent behaviour synchronizing within a system\n\t * EagerFutureStreams will batch results before jittering\n\t * \n\t * For a better implementation see @see LazyFutureStream#jitter(long)\n\t * \n\t * <pre>\n\t * {@code\n\t * \n\t * EagerFutureStream.parallelCommonBuilder()\n\t\t\t\t\t\t.of(IntStream.range(0, 100))\n\t\t\t\t\t\t.map(it -> it*100)\n\t\t\t\t\t\t.jitter(10l)\n\t\t\t\t\t\t.peek(System.out::println)\n\t\t\t\t\t\t.block();\n\t * \n\t * }\n\t\n\t * </pre>\n\t * @param jitterInNanos\n\t * Max number of nanos for jitter (random number less than this\n\t * will be selected)/\n\t * @return Next stage in Stream with jitter applied\n\t */\n\tdefault EagerFutureStream<U> jitter(long jitterInNanos) {\n\t\treturn (EagerFutureStream<U>) FutureStream.super.jitter(jitterInNanos);\n\t}\n\n\t/**\n\t * Apply a fixed delay before emitting elements to the next phase of the\n\t * Stream. Note this doesn't neccessarily imply a fixed delay between\n\t * element creation (although it may do). e.g.\n\t * \n\t * <pre>\n\t * {@code\n\t \tEagerFutureStream.of(1,2,3,4)\n\t \t\t\t\t\t.fixedDelay(1,TimeUnit.hours);\n\t \t}\n\t * </pre>\n\t * Will emit 1 on start, then 2 after an hour, 3 after 2 hours and so on.\n\t * \n\t * However all 4 numbers will be populated in the Stream immediately.\n\t \n\t <pre>\n\t {@code \n\t \tLazyFutureStream.of(1,2,3,4)\n\t \t\t\t\t\t.withQueueFactories(QueueFactories.boundedQueue(1))\n\t \t\t\t\t\t.fixedDelay(1,TimeUnit.hours);\n\t \t}\n\t \t</pre>\n\t \n\t * Will populate each number in the Stream an hour apart.\n\t * \n\t * @param time\n\t * amount of time between emissions\n\t * @param unit\n\t * TimeUnit for emissions\n\t * @return Next Stage of the Stream\n\t */\n\tdefault EagerFutureStream<U> fixedDelay(long time, TimeUnit unit) {\n\t\treturn (EagerFutureStream<U>) FutureStream.super.fixedDelay(time, unit);\n\t}\n\n\t/**\n\t * Slow emissions down, emiting one element per specified time period\n\t * \n\t * <pre>\n\t * {@code \n\t * \t\tEagerFutureStream.of(1,2,3,4,5,6)\n\t * \t\t\t\t\t\t .onePer(1000,TimeUnit.NANOSECONDS)\n\t * \t\t\t\t\t\t .toList();\n\t * \n\t * }\n\t * \n\t * </pre>\n\t * @param time\n\t * Frequency period of element emission\n\t * @param unit\n\t * Time unit for frequency period\n\t * @return Stream with emissions slowed down by specified emission frequency\n\t */\n\tdefault EagerFutureStream<U> onePer(long time, TimeUnit unit) {\n\t\treturn (EagerFutureStream<U>) FutureStream.super.onePer(time, unit);\n\n\t}\n\n\t/**\n\t * Allows x (specified number of) emissions with a time period before\n\t * stopping emmissions until specified time has elapsed since last emission\n\t * \n\t * <pre>\n\t * {@code \n\t * EagerFutureStream.of(1,2,3,4,5,6)\n\t * \t\t\t\t .xPer(6,100000000,TimeUnit.NANOSECONDS)\n\t * \t\t\t\t .toList();\n\t * \n\t * }\n\t * \n\t * </pre>\n\t * \n\t * @param x\n\t * Number of allowable emissions per time period\n\t * @param time\n\t * Frequency time period\n\t * @param unit\n\t * Frequency time unit\n\t * @return Stream with emissions slowed down by specified emission frequency\n\t */\n\tdefault FutureStream<U> xPer(int x, long time, TimeUnit unit) {\n\t\treturn (EagerFutureStream<U>) FutureStream.super.xPer(x, time, unit);\n\t}\n\n\t\n\n\t/**\n\t * Similar to zip and withLatest, except will always take the latest from\n\t * either Stream (merged with last available from the other). By contrast\n\t * zip takes new / latest values from both Streams and withLatest will\n\t * always take the latest from this Stream while taking the last available\n\t * value from the provided stream.\n\t * \n\t * <pre>\n\t * {@code\n\t * EagerFutureStream.of(1,2,3,4,5,6)\n\t * \t\t\t\t .combineLatest(react(()->3,()->value()))\n\t * \t\t\t\t .toList();\n\t * }\n\t * </pre>\n\t * @param s\n\t * Stream to merge with\n\t * @return Stream of Tuples with the latest values from either stream\n\t */\n\tdefault <T> EagerFutureStream<Tuple2<U, T>> combineLatest(FutureStream<T> s) {\n\t\treturn (EagerFutureStream<Tuple2<U, T>>) FutureStream.super\n\t\t\t\t.combineLatest(s);\n\t}\n\n\t/**\n\t * \n\t * Similar to zip and combineLatest, except will always take the latest from\n\t * this Stream while taking the last available value from the provided\n\t * stream. By contrast zip takes new / latest values from both Streams and\n\t * combineLatest takes the latest from either Stream (merged with last\n\t * available from the other).\n\t * \n\t * <pre>\n\t * {@code\n\t * EagerFutureStream.of(1,2,3,4,5,6)\n\t * \t\t\t\t\t.withLatest(of(30,40,50,60,70,80,90,100,110,120,140))\n\t\t\t\t\t\t.toList();\n\t * \n\t * }\n\t * \n\t * </pre>\n\t * \n\t * @param s\n\t * Stream to merge with\n\t * @return Stream of Tuples with the latest values from this stream\n\t */\n\tdefault <T> EagerFutureStream<Tuple2<U, T>> withLatest(FutureStream<T> s) {\n\t\treturn (EagerFutureStream<Tuple2<U, T>>) FutureStream.super\n\t\t\t\t.withLatest(s);\n\t}\n\n\t/**\n\t * Return first Stream out of provided Streams that starts emitted results \n\t * \n\t * <pre>\n\t * {@code \n\t * \t EagerFutureStream.firstOf(stream1, stream2, stream3)\n\t\t\t\t\t\t.peek(System.out::println)\n\t\t\t\t\t\t.map(this::saveData)\n\t\t\t\t\t\t.block();\n\t * \n\t * }\n\t * \n\t * </pre>\n\t * \n\t * @param futureStreams Streams to race\n\t * @return First Stream to start emitting values\n\t */\n\tstatic <U> EagerFutureStream<U> firstOf(\n\t\t\tEagerFutureStream<U>... futureStreams) {\n\t\treturn (EagerFutureStream<U>) FutureStream.firstOf(futureStreams);\n\t}\n\n\t/*\n\t * React to new events with the supplied function on the supplied\n\t * Executor\n\t * \n\t * @param fn Apply to incoming events\n\t * \n\t * @param service Service to execute function on\n\t * \n\t * @return next stage in the Stream\n\t */\n\tdefault <R> EagerFutureStream<R> then(final Function<U, R> fn,\n\t\t\tExecutor service) {\n\t\treturn (EagerFutureStream<R>) FutureStream.super.then(fn, service);\n\t}\n\n\t/**\n\t * Can only be used on Eager Streams\n\t * \n\t * Applies a function to this phase independent on the main flow.\n\t * Convenience over taking a reference to this phase and splitting it.\n\t * \n\t * \n\t * @param fn\n\t * Function to be applied to each completablefuture on completion\n\t * @return This phase in Stream\n\t */\n\tdefault EagerFutureStream<U> doOnEach(final Function<U, U> fn) {\n\t\treturn (EagerFutureStream) FutureStream.super.doOnEach(fn);\n\t}\n\n\t/*\n\t * Non-blocking asyncrhonous application of the supplied function.\n\t * Equivalent to map from Streams / Seq apis.\n\t * \n\t * @param fn Function to be applied asynchronously\n\t * \n\t * @return Next stage in stream\n\t * \n\t * @see\n\t * com.aol.simple.react.stream.traits.FutureStream#then(java.util.function\n\t * .Function)\n\t */\n\tdefault <R> EagerFutureStream<R> then(final Function<U, R> fn) {\n\t\treturn (EagerFutureStream) FutureStream.super.then(fn);\n\t}\n\tdefault List<EagerFutureStream<U>> copy(final int times){\n\t\treturn (List)FutureStream.super.copySimpleReactStream(times);\n\t\t\n\t}\n\t/*\n\t * Merge two simple-react Streams, by merging the Stream of underlying\n\t * futures - not suitable for merging infinite Streams - use \n\t * see LazyFutureStream#switchOnNext for infinite Streams\n\t * \n\t * <pre>\n\t * {@code \n\t * List<String> result = \tEagerFutureStream.of(1,2,3)\n\t * \t\t\t\t\t\t\t\t\t\t\t .merge(LazyFutureStream.of(100,200,300))\n\t\t\t\t\t\t\t\t\t\t\t\t .map(it ->it+\"!!\")\n\t\t\t\t\t\t\t\t\t\t\t\t .toList();\n\n\t\tassertThat(result,equalTo(Arrays.asList(\"1!!\",\"2!!\",\"3!!\",\"100!!\",\"200!!\",\"300!!\")));\n\t * \n\t * }\n\t * </pre>\n\t * \n\t * @param s Stream to merge\n\t * \n\t * @return Next stage in stream\n\t * \n\t * @see\n\t * com.aol.simple.react.stream.traits.FutureStream#merge(com.aol.simple.\n\t * react.stream.traits.SimpleReactStream)\n\t */\n\t@Override\n\tdefault FutureStream<U> merge(SimpleReactStream<U>... streams) {\n\t\treturn (FutureStream)FutureStream.super.merge(streams);\t\t\n\t}\n\t/**\n\t * Merges this stream and the supplied Streams into a single Stream where the next value\n\t * is the next returned across any of the involved Streams\n\t * \n\t * <pre>\n\t * {@code\n\t * \tLazyFutureStream<Integer> fast = ... // [1,2,3,4,5,6,7..]\n\t * \tEagerFutureStream<Integer> slow = ... // [100,200,300,400,500,600..]\n\t * \n\t * LazyFutureStream<Integer> merged = fast.switchOnNext(slow); //[1,2,3,4,5,6,7,8,100,9,10,11,12,13,14,15,16,200..] \n\t * }</pre>\n\t * \n\t * \n\t * @param streams\n\t * @return\n\t */\n\tdefault <R> EagerFutureStream<R> switchOnNext(FutureStream<?>... streams){\n\t\treturn (EagerFutureStream)merge((SimpleReactStream[])streams);\n\t}\n\t/*\n\t * Define failure handling for this stage in a stream. Recovery function\n\t * will be called after an excption Will be passed a\n\t * SimpleReactFailedStageException which contains both the cause, and the\n\t * input value.\n\t * \n\t * <pre>\n\t * {@code \n\t * EagerFutureStream.of(1, \"a\", 2, \"b\", 3)\n\t \t\t\t.cast(Integer.class)\n\t \t\t\t.onFail(e -> -1)\n\t \t\t\t.toList();\n\t * \n\t * }\n\t * </pre>\n\t * \n\t * \n\t * @param fn Recovery function\n\t * \n\t * @return Next stage in stream\n\t * \n\t * @see\n\t * com.aol.simple.react.stream.traits.FutureStream#onFail(java.util.function\n\t * .Function)\n\t */\n\t@Override\n\tdefault EagerFutureStream<U> onFail(\n\t\t\tfinal Function<? extends SimpleReactFailedStageException, U> fn) {\n\t\treturn (EagerFutureStream) FutureStream.super.onFail(fn);\n\t}\n\n\t/*\n\t * Handle failure for a particular class of exceptions only\n\t * \n\t * \n\t * <pre>\n\t * {@code \n\t * new EagerReact().react(()->1,()->2)\n\t\t\t.then(this::throwException)\n\t\t\t.onFail(IOException.class, this::recoverIO)\n\t\t\t.onFail(RuntimeException.class, this::recoverGeneral)\n\t\t\t.toList();\n\t * }\n\t * </pre>\n\t * @param exceptionClass Class of exceptions to handle\n\t * \n\t * @param fn recovery function\n\t * \n\t * @return recovered value\n\t * \n\t * @see\n\t * com.aol.simple.react.stream.traits.FutureStream#onFail(java.lang.Class,\n\t * java.util.function.Function)\n\t */\n\t@Override\n\tdefault EagerFutureStream<U> onFail(\n\t\t\tClass<? extends Throwable> exceptionClass,\n\t\t\tfinal Function<? extends SimpleReactFailedStageException, U> fn) {\n\t\treturn (EagerFutureStream) FutureStream.super\n\t\t\t\t.onFail(exceptionClass, fn);\n\t}\n\n\t/*\n\t * Capture non-recoverable exception\n\t * \n\t * <pre>\n\t * {@code \n\t * EagerFutureStream.of(1, \"a\", 2, \"b\", 3, null)\n\t * \t\t\t\t .capture(e -> logger.error(e))\n\t\t\t\t\t\t .cast(Serializable.class)\n\t\t\t\t\t\t .toList()\n\t * \n\t * }\n\t * \n\t * </pre>\n\t * @param errorHandler Consumer that captures the exception\n\t * \n\t * @return Next stage in stream\n\t * \n\t * @see\n\t * com.aol.simple.react.stream.traits.FutureStream#capture(java.util.function\n\t * .Consumer)\n\t */\n\t@Override\n\tdefault EagerFutureStream<U> capture(\n\t\t\tfinal Consumer<? extends Throwable> errorHandler) {\n\t\treturn (EagerFutureStream) FutureStream.super.capture(errorHandler);\n\t}\n\n\t/*\n\t * \n\t * <pre>\n\t * {@code\n\t * EagerFutureStream.sequentialCommonBuilder().react(()->1,()->2,()->3)\n\t\t \t\t\t\t\t\t\t\t\t .map(it->it+100)\n\t\t \t\t\t\t\t\t\t\t\t .allOf(c-> HashTreePMap.singleton(\"numbers\",c))\n\t\t \t\t\t\t\t\t\t\t\t .block();\n\t * \n\t * }\n\t * </pre>\n\t * \n\t * @see\n\t * com.aol.simple.react.stream.traits.FutureStream#allOf(java.util.function\n\t * .Function)\n\t */\n\t@Override\n\tdefault <T, R> EagerFutureStream<R> allOf(final Function<List<T>, R> fn) {\n\t\treturn (EagerFutureStream) FutureStream.super.allOf(fn);\n\t}\n\n\t/*\n\t * @see\n\t * com.aol.simple.react.stream.traits.FutureStream#peek(java.util.function\n\t * .Consumer)\n\t */\n\t@Override\n\tdefault EagerFutureStream<U> peek(final Consumer<? super U> consumer) {\n\t\treturn (EagerFutureStream) FutureStream.super.peek(consumer);\n\t}\n\n\t/*\n\t * <pre>\n\t * {@code \n\t * List<String> result = new EagerReact()\n\t\t\t\t\t\t\t\t.<Integer> react(() -> 1, () -> 2, () -> 3)\n\t\t\t\t\t\t\t\t.then(it -> \"*\" + it)\n\t\t\t\t\t\t\t\t.filter(it -> it.startsWith(\"*\"))\n\t\t\t\t\t\t\t\t.block();\n\t * \n\t * }\n\t * \n\t * </pre>\n\t * \n\t * @see\n\t * com.aol.simple.react.stream.traits.FutureStream#filter(java.util.function\n\t * .Predicate)\n\t */\n\tdefault EagerFutureStream<U> filter(final Predicate<? super U> p) {\n\t\treturn (EagerFutureStream) FutureStream.super.filter(p);\n\t}\n\n\t/*\n\t * <pre>\n\t * {@code\n\t * \n\t * List<String> titles = new EagerReact().fromStream(Stream.of(query(\"Hello, world!\")))\n\t\t\t\t\n\t\t\t\t\t\t\t\t.flatMap(Collection::stream)\n\t\t\t\t\t\t\t\t.peek(System.out::println)\n\t\t\t\t\t\t\t\t.<String>then(url -> getTitle(url))\n\t\t\t\t\t\t\t\t.filter(Objects::nonNull)\n\t\t\t\t\t\t\t\t.filter(Predicates.take(5))\n\t\t\t\t\t\t\t\t.peek(title -> saveTitle(title) )\n\t\t\t\t\t\t\t\t.peek(System.out::println)\n\t\t\t\t\t\t\t\t.block();\n\t * }\n\t * </pre>\n\t * \n\t * (non-Javadoc)\n\t * \n\t * @see\n\t * com.aol.simple.react.stream.FutureStreamImpl#flatMap(java.util.function\n\t * .Function)\n\t */\n\t@Override\n\tdefault <R> EagerFutureStream<R> flatMap(\n\t\t\tFunction<? super U, ? extends Stream<? extends R>> flatFn) {\n\n\t\treturn (EagerFutureStream) FutureStream.super.flatMap(flatFn);\n\t}\n\t/**\n\t * Perform a flatMap operation where the CompletableFuture type returned is flattened from the resulting Stream\n\t * If in async mode this operation is performed asyncrhonously\n\t * If in sync mode this operation is performed synchronously\n\t * \n\t * <pre>\n\t * {@code \n\t * assertThat( new EagerReact()\n\t\t\t\t\t\t\t\t\t\t.of(1,2,3)\n\t\t\t\t\t\t\t\t\t\t.flatMapCompletableFuture(i->CompletableFuture.completedFuture(i))\n\t\t\t\t\t\t\t\t\t\t.block(),equalTo(Arrays.asList(1,2,3)));\n\t * }\n\t * </pre>\n\t * In this example the result of the flatMapCompletableFuture is 'flattened' to the raw integer values\n\t * \n\t * \n\t * @param flatFn flatMap function\n\t * @return Flatten Stream with flatFn applied\n\t */\n\tdefault <R> EagerFutureStream<R> flatMapCompletableFuture(\n\t\t\tFunction<U, CompletableFuture<R>> flatFn) {\n\t\treturn (EagerFutureStream) FutureStream.super.flatMapCompletableFuture(flatFn);\n\t}\n\t/**\n\t * Perform a flatMap operation where the CompletableFuture type returned is flattened from the resulting Stream\n\t * This operation is performed synchronously\n\t * \n\t * <pre>\n\t * {@code \n\t * assertThat( new EagerReact()\n\t\t\t\t\t\t\t\t\t\t.of(1,2,3)\n\t\t\t\t\t\t\t\t\t\t.flatMapCompletableFutureSync(i->CompletableFuture.completedFuture(i))\n\t\t\t\t\t\t\t\t\t\t.block(),equalTo(Arrays.asList(1,2,3)));\n\t * }\n\t * </pre>\n\t * In this example the result of the flatMapCompletableFuture is 'flattened' to the raw integer values\n\t * \n\t * \n\t * @param flatFn flatMap function\n\t * @return Flatten Stream with flatFn applied\n\t */\n\tdefault <R> EagerFutureStream<R> flatMapCompletableFutureSync(\n\t\t\tFunction<U, CompletableFuture<R>> flatFn) {\n\t\t\n\t\treturn (EagerFutureStream) FutureStream.super.flatMapCompletableFutureSync(flatFn);\n\t}\n\n\n\t/*\n\t * <pre>\n\t * {@code\n\t * \t\tList<String> results = LazyFutureStream.sequentialCommonBuilder()\n\t\t\t\t\t\t\t\t\t\t\t\t .withRetrier(retrier)\n\t\t\t\t\t\t\t\t\t\t\t\t\t.react(() -> \"new event1\", () -> \"new event2\")\n\t\t\t\t\t\t\t\t\t\t\t\t\t.retry(this::unreliable)\n\t\t\t\t\t\t\t\t\t\t\t\t\t.onFail(e -> \"default\")\n\t\t\t\t\t\t\t\t\t\t\t\t\t.peek(System.out::println)\n\t\t\t\t\t\t\t\t\t\t\t\t\t.capture(Throwable::printStackTrace)\n\t\t\t\t\t\t\t\t\t\t\t\t\t.block();\n\t * \n\t * }\n\t * </pre>\n\t * \n\t * (non-Javadoc)\n\t * \n\t * @see\n\t * com.aol.simple.react.stream.FutureStreamImpl#retry(java.util.function\n\t * .Function)\n\t */\n\t@Override\n\tdefault <R> EagerFutureStream<R> retry(Function<U, R> fn) {\n\n\t\treturn (EagerFutureStream) FutureStream.super.retry(fn);\n\t}\n\n\t/*\n\t * <pre>\n\t * {@code \n\t * Set<Integer> result = new EagerReact()\n\t\t\t\t\t\t\t\t.<Integer> react(() -> 1, () -> 2, () -> 3, () -> 5)\n\t\t\t\t\t\t\t\t.then( it -> it*100)\n\t\t\t\t\t\t\t\t.allOf(Collectors.toSet(), it -> it.size())\n\t\t\t\t\t\t\t\t.first();\n\t\t\t\n\t * \n\t * }\n\t * \n\t * </pre>\n\t * \n\t * (non-Javadoc)\n\t * \n\t * @see\n\t * com.aol.simple.react.stream.FutureStreamImpl#allOf(java.util.stream.Collector\n\t * , java.util.function.Function)\n\t */\n\t@Override\n\tdefault <T, R> EagerFutureStream<R> allOf(Collector collector,\n\t\t\tFunction<T, R> fn) {\n\n\t\treturn (EagerFutureStream) FutureStream.super.allOf(collector, fn);\n\t}\n\n\t/* \n\t * <pre>\n\t * {@code \n\t * \t\t\t\tnew EagerReact().react(() -> 1)\n\t * \t\t\t\t\t\t\t\t.then(this::load)\n\t\t\t\t\t\t\t\t\t.anyOf(this::process)\n\t\t\t\t\t\t\t\t\t.first();\n\t * \n\t * }\n\t * \n\t * </pre>\n\t * \n\t *\t\n\t * @see com.aol.simple.react.stream.traits.FutureStream#anyOf(java.util.function.Function)\n\t */\n\tdefault <R> EagerFutureStream<R> anyOf(Function<U, R> fn) {\n\n\t\treturn (EagerFutureStream) FutureStream.super.anyOf(fn);\n\t}\n\n\tEagerFutureStream<U> withLastActive(StreamWrapper streamWrapper);\n\n\t/*\n\t * (non-Javadoc)\n\t * \n\t * @see\n\t * com.aol.simple.react.stream.FutureStreamImpl#fromStream(java.util.stream\n\t * .Stream)\n\t */\n\t@Override\n\tdefault <R> EagerFutureStream<R> fromStream(Stream<R> stream) {\n\t\treturn (EagerFutureStream) FutureStream.super.fromStream(stream);\n\t}\n\n\t/*\n\t * (non-Javadoc)\n\t * \n\t * @see\n\t * com.aol.simple.react.stream.FutureStreamImpl#fromStreamCompletableFuture\n\t * (java.util.stream.Stream)\n\t */\n\t@Override\n\tdefault <R> EagerFutureStream<R> fromStreamOfFutures(\n\t\t\tStream<CompletableFuture<R>> stream) {\n\n\t\treturn (EagerFutureStream) FutureStream.super\n\t\t\t\t.fromStreamOfFutures(stream);\n\t}\n\n\t/*\n\t * Take the first (maxSize) completed results from this stage of the Stream\n\t * as input to the next stage. e.g.\n\t * \n\t * <pre>\n\t * {@code \n\t * EagerFutureStream.of(()>loadSlow(),()>loadMedium(),()>loadFast())\n\t * \t\t\t\t.limit(2)\n\t * }\n\t * //[loadFast, loadMedium]\n\t * </pre>\n\t * will take the results from loadMedium and loadFast()\n\t * \n\t * \n\t * @param maxSize The size of the subsequent Stream\n\t * \n\t * @return EagerFutureStream\n\t * \n\t * @see org.jooq.lambda.Seq#limit(long)\n\t */\n\t@Override\n\tdefault EagerFutureStream<U> limit(long maxSize) {\n\t\treturn fromStream(toQueue().stream().limit(maxSize));\n\t}\n\n\t/**\n\t * Perform a limit operation on the underlying Stream of Futures\n\t * In contrast to EagerFutureStream#limit this removes entries basaed on their\n\t * start position\n\t * \n\t * <pre>\n\t * {@code \n\t * EagerFutureStream.of(()>loadSlow(),()>loadMedium(),()>loadFast())\n\t * \t\t\t\t.limitFutures(2)\n\t * }\n\t * \n\t * //[loadSlow, loadMedium]\n\t * </pre>\n\t * \n\t * \n\t * \n\t * @param maxSize The size of the subsequent Stream\n\t * @return limited Stream\n\t */\n\tdefault EagerFutureStream<U> limitFutures(long maxSize) {\n\n\t\tStreamWrapper lastActive = getLastActive();\n\t\tStreamWrapper limited = lastActive.withList(lastActive.stream()\n\t\t\t\t.limit(maxSize).collect(Collectors.toList()));\n\t\treturn this.withLastActive(limited);\n\n\t}\n\t/*\n\t * Skip the first (n) completed results from this stage of the Stream\n\t * \n\t * e.g.\n\t * <pre>\n\t * {@code \n\t * EagerFutureStream.of(()>loadSlow(),()>loadMedium(),()>loadFast())\n\t * \t\t\t\t.skip(2)\n\t * }\n\t * \n\t * //[loadSlow]\n\t * </pre>\n\t * \n\t * will take the results from loadSlow()\n\t * \n\t * @param n number of Elements to skip\n\t * \n\t * @return EagerFutureStream\n\t * \n\t * @see org.jooq.lambda.Seq#skip(long)\n\t */\n\t@Override\n\tdefault EagerFutureStream<U> skip(long n) {\n\t\treturn fromStream(toQueue().stream().skip(n));\n\t}\n\n\t/**\n\t * In contast to EagerFutureStream#skip skipFutures will skip the first n entries\n\t * of the underlying Stream of Futures.\n * <pre>\n\t * {@code \n\t * EagerFutureStream.of(()>loadSlow(),()>loadMedium(),()>loadFast())\n\t * \t\t\t\t.skip(2)\n\t * }\n\t * \n\t * //[loadFast]\n\t * </pre>\t \n\n\n\t * \n\t * @param n\n\t * @return\n\t */\n\tdefault EagerFutureStream<U> skipFutures(long n) {\n\t\tStreamWrapper lastActive = getLastActive();\n\t\tStreamWrapper limited = lastActive.withList(lastActive.stream().skip(n)\n\t\t\t\t.collect(Collectors.toList()));\n\t\treturn this.withLastActive(limited);\n\t}\n\n\t/*\n\t * Cast all elements in this stream to specified type. May throw {@link\n\t * ClassCastException}.\n\t * \n\t * <pre>\n\t * EagerFutureStream.of(1, \"a\", 2, \"b\", 3).cast(Integer.class)\n\t * </pre>\n\t * will throw a ClassCastException\n\t * \n\t * @param type Type to cast to\n\t * \n\t * @return LazyFutureStream\n\t * \n\t * @see\n\t * com.aol.simple.react.stream.traits.FutureStream#cast(java.lang.Class)\n\t */\n\t@Override\n\tdefault <U> EagerFutureStream<U> cast(Class<U> type) {\n\t\treturn (EagerFutureStream<U>) FutureStream.super.cast(type);\n\t}\n\n\t/**\n\t * Keep only those elements in a stream that are of a given type.\n\t * \n\t * \n\t * <pre>\n\t * EagerFutureStream.of(1, \"a\", 2, \"b\", 3).ofType(Integer.class)\n\t * \n\t * gives a Stream of (1,2,3)\n\t * \n\t * EagerFutureStream.of(1, \"a\", 2, \"b\", 3).ofType(String.class)\n\t * \n\t * gives a Stream of (\"a\",\"b\")\n\t * </pre>\n\t * @see com.aol.simple.react.stream.traits.FutureStream#ofType(java.lang.Class)\n\t */\n\t@Override\n\tdefault <U> EagerFutureStream<U> ofType(Class<U> type) {\n\t\treturn (EagerFutureStream<U>) FutureStream.super.ofType(type);\n\t}\n\n\t\n\n\t/**\n\t * Concatenate two streams.\n\t * \n\t * <pre>\n\t * {@code \n\t * // (1, 2, 3, 4, 5, 6) \n\t * EagerFutureStream.of(1, 2,3).concat(Stream.of(4, 5, 6))\n\t * \n\t * \n\t * }\n\t * </pre>\n\t *\n\t * @see #concat(Stream[])\n\t */\n\t@SuppressWarnings({ \"unchecked\" })\n\t@Override\n\tdefault EagerFutureStream<U> concat(Stream<U> other) {\n\t\tif (other instanceof SimpleReactStream)\n\t\t\treturn (EagerFutureStream) merge((SimpleReactStream) other);\n\t\treturn fromStream(FutureStream.super.concat(other));\n\t}\n\n\n\t/**\n\t * Concatenate two streams.\n\t * \n\t * <pre> {@code \n\t * // (1, 2, 3, 4) EagerFutureStream.of(1, 2, 3).concat(4)\n\t * }\n\t *</pre>\n\t * @see #concat(Stream[])\n\t */\n\tdefault EagerFutureStream<U> concat(U other) {\n\t\treturn fromStream(FutureStream.super.concat(other));\n\t}\n\n\t/**\n\t * Concatenate two streams.\n\t * \n\t * <pre>\n\t * {@code \n\t * // (1, 2, 3, 4, 5, 6) EagerFutureStream.of(1, 2, 3).concat(4, 5, 6)\n\t * }\n\t *</pre>\n\t * @see #concat(Stream[])\n\t */\n\t@SuppressWarnings({ \"unchecked\" })\n\tdefault EagerFutureStream<U> concat(U... other) {\n\t\treturn (EagerFutureStream<U>) concat( EagerFutureStream\n\t\t\t\t.of(other));\n\t}\n\n\t\n\t \n\t/**\n\t * Returns a limited interval from a given Stream.\n\t * \n\t * <pre>\n\t * {@code \n\t * // (4, 5) EagerFutureStream.of(1, 2, 3, 4, 5, 6).sliceFutures(3, 5)\n\t * }\n\t *</pre>\n\t * @see #slice(long, long)\n\t */\n\n\tdefault EagerFutureStream<U> sliceFutures(long from, long to) {\n\t\tList noType = Seq.seq(getLastActive().stream()).slice(from, to)\n\t\t\t\t.collect(Collectors.toList());\n\t\treturn fromListCompletableFuture(noType);\n\t}\n\n\t/**\n\t * Returns a limited interval from a given Stream.\n\t * \n\t * <pre>\n\t * {@code \n\t * // (4, 5) EagerFutureStream.of(1, 2, 3, 4, 5, 6).slice(3, 5)\n\t * \n\t * }</pre>\n\t *\n\t * @see #slice(Stream, long, long)\n\t */\n\n\t@Override\n\tdefault EagerFutureStream<U> slice(long from, long to) {\n\n\t\treturn fromStream(FutureStream.super.slice(from, to));\n\t}\n\n\t/**\n\t * Zip two streams into one.\n\t * <pre>\n\t * {@code \n\t * \n\t * // (tuple(1, \"a\"), tuple(2, \"b\"), tuple(3, \"c\")) EagerFutureStream.of(1,\n\t * 2, 3).zip(EagerFutureStream.of(\"a\", \"b\", \"c\"))\n\t * \n\t *}</pre>\n\t * @see #zip(Stream, Stream)\n\t */\n\t@Override\n\tdefault <R> EagerFutureStream<Tuple2<U, R>> zip(Seq<R> other) {\n\t\treturn fromStream(FutureStream.super.zip(other));\n\t}\n\n\t/**\n\t * Zip two streams into one using a {@link BiFunction} to produce resulting\n\t * values.\n\t * <pre>\n\t * <code>\n\t * (\"1:a\", \"2:b\", \"3:c\") \n\t * \n\t * EagerFutureStream.of(1, 2,3).zip(EagerFutureStream.of(\"a\", \"b\", \"c\"), (i, s) &gt; i + \":\" + s)\n\t * </code>\n\t * </pre>\n\t *\n\t * @see #zip(Seq, BiFunction)\n\t */\n\tdefault <T, R> EagerFutureStream<R> zip(Seq<T> other,\n\t\t\tBiFunction<U, T, R> zipper) {\n\t\t// non-blocking via Queue\n\t\treturn fromStream(FutureStream.super.zip(other, zipper));\n\t}\n\n\t/**\n\t * Zip two Streams, zipping against the underlying futures of this stream\n\t * \n\t * @param other\n\t * @return\n\t */\n\tdefault <R> EagerFutureStream<Tuple2<U,R>> zipFutures(Stream<R> other) {\n\t\treturn (EagerFutureStream<Tuple2<U,R>>)FutureStream.super.zipFutures(other);\n\n\t}\n\t/**\n\t * Zip two Streams, zipping against the underlying futures of both Streams\n\t * Placeholders (Futures) will be populated immediately in the new zipped Stream and results\n\t * will be populated asyncrhonously\n\t * \n\t * @param other Another FutureStream to zip Futures with\n\t * @return New Sequence of CompletableFutures\n\t */\n\tdefault <R> EagerFutureStream<Tuple2<U,R>> zipFutures(FutureStream<R> other) {\n\t\treturn (EagerFutureStream<Tuple2<U,R>>)FutureStream.super.zipFutures(other);\n\n\t}\n\n\t/**\n\t * Zip this Stream with an index, but Zip based on the underlying tasks, not completed results.\n\t * \n\t * e.g.\n\t * two functions that return method name, but take varying lengths of time.\n\t * <pre>\n\t * <code>\n\t * EagerFutureStream.react(()-&gt;takesALotOfTime(),()-&gt;veryQuick()).zipWithIndex();\n\t * \n\t * [[\"takesALotOfTime\",0],[\"veryQuick\",1]]\n\t * \n\t * Where as with standard zipWithIndex you would get a new Stream ordered by completion\n\t * \n\t * [[\"veryQuick\",0],[\"takesALotOfTime\",1]]\n\t * </code>\n\t * </pre>\n\t * @see #zipWithIndex(Stream)\n\t */\n\tdefault EagerFutureStream<Tuple2<U,Long>> zipFuturesWithIndex() {\n\n\t\tSeq seq = Seq.seq(getLastActive().stream().iterator()).zipWithIndex();\n\t\tSeq<Tuple2<CompletableFuture<U>,Long>> withType = (Seq<Tuple2<CompletableFuture<U>,Long>>)seq;\n\t\tStream futureStream = fromStreamOfFutures((Stream)withType.map(t -> t.v1.thenApply(v -> \n\t\t\t\t\t\t\tTuple.tuple(t.v1.join(),t.v2))));\n\t\treturn (EagerFutureStream<Tuple2<U,Long>>)futureStream;\n\t\t\n\t}\n\n\t/**\n\t * Zip a Stream with a corresponding Stream of indexes.\n\t * \n\t * <pre>\n\t * {@code \n\t * // (tuple(\"a\", 0), tuple(\"b\", 1), tuple(\"c\", 2))\n\t * EagerFutureStream.of(\"a\", \"b\", \"c\").zipWithIndex()\n\t * \n\t *}</pre>\n\t * @see #zipWithIndex(Stream)\n\t */\n\tdefault EagerFutureStream<Tuple2<U, Long>> zipWithIndex() {\n\t\treturn fromStream(FutureStream.super.zipWithIndex());\n\t}\n\n\t/**\n\t * Scan a stream to the left.\n\t * <pre>\n\t * {@code \n\t * \n\t * // (\"\", \"a\", \"ab\", \"abc\") EagerFutureStream.of(\"a\", \"b\",\n\t * \"c\").scanLeft(\"\", (u, t) &gt; u + t)\n\t * }</pre>\n\t * \n\t */\n\t@Override\n\tdefault <T> EagerFutureStream<T> scanLeft(T seed,\n\t\t\tBiFunction<T, ? super U, T> function) {\n\t\treturn fromStream(FutureStream.super.scanLeft(seed, function));\n\t}\n\n\t/**\n\t * Scan a stream to the right.\n\t * \n\t * <pre>\n\t * {@code \n\t * // (\"\", \"c\", \"cb\", \"cba\") EagerFutureStream.of(\"a\", \"b\",\n\t * \"c\").scanRight(\"\", (t, u) &gt; u + t)\n\t * }</pre>\n\t */\n\t@Override\n\tdefault <R> EagerFutureStream<R> scanRight(R seed,\n\t\t\tBiFunction<? super U, R, R> function) {\n\t\t Seq<R> stream = FutureStream.super.scanRight(seed, function);\n\t\t if(stream instanceof FutureStream)\n\t\t\t return (EagerFutureStream<R>)stream;\n\t\treturn fromStream(stream);\n\t}\n\n\t/**\n\t * Reverse a stream.\n\t * <pre>\n\t * {@code \n\t * \n\t * // (3, 2, 1) EagerFutureStream.of(1, 2, 3).reverse()\n\t * }</pre>\n\t */\n\t@Override\n\tdefault EagerFutureStream<U> reverse() {\n\t\treturn fromStream(FutureStream.super.reverse());\n\t}\n\t/**\n\t * Reversed, operating on the underlying futures.\n\t * <pre>\n\t * {@code \n\t * \n\t * // (3, 2, 1) EagerFutureStream.of(1, 2, 3).reverse()\n\t * }</pre>\n\t * \n\t * @return\n\t */\n\tdefault EagerFutureStream<U> reverseFutures() {\n\t\tStreamWrapper lastActive = getLastActive();\n\t\tListIterator<CompletableFuture> it = lastActive.list().listIterator();\n\t\tList<CompletableFuture> result = new ArrayList<>();\n\t\twhile(it.hasPrevious())\n\t\t\tresult.add(it.previous());\n\t\t\n\t\tStreamWrapper limited = lastActive.withList( result);\n\t\treturn this.withLastActive(limited);\n\t\t\n\t}\n\n\t\n\t\n\t/**\n\t * Shuffle a stream\n\t * <pre>\n\t * {@code \n\t * \n\t * // e.g. (2, 3, 1) EagerFutureStream.of(1, 2, 3).shuffle()\n\t * \n\t * }</pre>\n\t * \n\t */\n\t@Override\n\tdefault EagerFutureStream<U> shuffle() {\n\t\treturn fromStream(FutureStream.super.shuffle());\n\t}\n\n\t/**\n\t * Shuffle a stream using specified source of randomness\n\t * <pre>\n\t * {@code \n\t * \n\t * // e.g. (2, 3, 1) EagerFutureStream.of(1, 2, 3).shuffle(new Random())\n\t * \n\t * }</pre>\n\t */\n\t@Override\n\tdefault EagerFutureStream<U> shuffle(Random random) {\n\t\treturn fromStream(FutureStream.super.shuffle(random));\n\t}\n\n\t/**\n\t * Returns a stream with all elements skipped for which a predicate\n\t * evaluates to true.\n\t * <pre>\n\t * {@code \n\t * \n\t * // (3, 4, 5) EagerFutureStream.of(1, 2, 3, 4, 5).skipWhile(i &gt; i &lt;\n\t * 3)\n\t * \n\t *}</pre>\n\t * @see #skipWhile(Stream, Predicate)\n\t */\n\t@Override\n\tdefault EagerFutureStream<U> skipWhile(Predicate<? super U> predicate) {\n\t\treturn fromStream(FutureStream.super.skipWhile(predicate));\n\t}\n\n\t/**\n\t * Returns a stream with all elements skipped for which a predicate\n\t * evaluates to false.\n\t * <pre>\n\t * {@code \n\t * \n\t * // (3, 4, 5) EagerFutureStream.of(1, 2, 3, 4, 5).skipUntil(i &gt; i == 3)\n\t * \n\t *}</pre>\n\t * @see #skipUntil(Stream, Predicate)\n\t */\n\t@Override\n\tdefault EagerFutureStream<U> skipUntil(Predicate<? super U> predicate) {\n\t\treturn fromStream(FutureStream.super.skipUntil(predicate));\n\t}\n\n\t/**\n\t * Returns a stream limited to all elements for which a predicate evaluates\n\t * to true.\n\t * <pre>\n\t * {@code \n\t * \n\t * // (1, 2) EagerFutureStream.of(1, 2, 3, 4, 5).limitWhile(i -&gt; i &lt;\n\t * 3)\n\t * \n\t * }</pre>\n\t * @see #limitWhile(Stream, Predicate)\n\t */\n\t@Override\n\tdefault EagerFutureStream<U> limitWhile(Predicate<? super U> predicate) {\n\t\treturn fromStream(FutureStream.super.limitWhile(predicate));\n\t}\n\n\t/**\n\t * Returns a stream limited to all elements for which a predicate evaluates\n\t * to false.\n\t * <pre>\n\t * {@code \n\t * \n\t * // (1, 2) EagerFutureStream.of(1, 2, 3, 4, 5).limitUntil(i &gt; i == 3)\n\t * \n\t *}</pre>\n\t * @see #limitUntil(Stream, Predicate)\n\t */\n\t@Override\n\tdefault EagerFutureStream<U> limitUntil(Predicate<? super U> predicate) {\n\t\treturn fromStream(FutureStream.super.limitUntil(predicate));\n\t}\n\n\t/**\n * Cross join 2 streams into one.\n * <p>\n * <pre>{@code \n * // (tuple(1, \"a\"), tuple(1, \"b\"), tuple(2, \"a\"), tuple(2, \"b\"))\n * LazyFutureStream.of(1, 2).crossJoin(LazyFutureStream.of(\"a\", \"b\"))\n * }</pre>\n */\n\tdefault <T> EagerFutureStream<Tuple2<U, T>> crossJoin(Stream<T> other) {\n\t return (EagerFutureStream)FutureStream.super.crossJoin(other);\n\t}\n\t\n\t/**\n * Produce this stream, or an alternative stream from the\n * {@code value}, in case this stream is empty.\n */\n\tdefault EagerFutureStream<U> onEmpty(U value){\n\t\t\n\t\treturn (EagerFutureStream)FutureStream.super.onEmpty(value);\n\t}\n\t/**\n * Produce this stream, or an alternative stream from the\n * {@code supplier}, in case this stream is empty.\n */\n\tdefault EagerFutureStream<U> onEmptyGet(Supplier<U> supplier){\n\t\treturn (EagerFutureStream)FutureStream.super.onEmptyGet(supplier);\n\t}\n\t/**\n * Produce this stream, or an alternative stream from the\n * {@code supplier}, in case this stream is empty.\n */\n\tdefault <X extends Throwable> EagerFutureStream<U> onEmptyThrow(Supplier<X> supplier) {\n\t\t\treturn (EagerFutureStream)FutureStream.super.onEmptyThrow(supplier);\n\t}\n /**\n * Inner join 2 streams into one.\n * <p>\n * <pre>{@code \n * // (tuple(1, 1), tuple(2, 2))\n * EagerFutureStream.of(1, 2, 3).innerJoin(Seq.of(1, 2), t -> Objects.equals(t.v1, t.v2))\n * }</pre>\n */\n default <T> EagerFutureStream<Tuple2<U, T>> innerJoin(Stream<T> other, BiPredicate<U, T> predicate) {\n \treturn (EagerFutureStream)FutureStream.super.innerJoin(other,predicate);\n \n }\n\n /**\n * Left outer join 2 streams into one.\n * <p>\n * <pre>{@code\n * // (tuple(1, 1), tuple(2, 2), tuple(3, null))\n * EagerFutureStream.of(1, 2, 3).leftOuterJoin(Seq.of(1, 2), t -> Objects.equals(t.v1, t.v2))\n * }</pre>\n */\n default <T> EagerFutureStream<Tuple2<U, T>> leftOuterJoin(Stream<T> other, BiPredicate<U, T> predicate) {\n\n \treturn (EagerFutureStream)FutureStream.super.leftOuterJoin(other,predicate);\n }\n\n /**\n * Right outer join 2 streams into one.\n * <p>\n * <pre> {@code \n * // (tuple(1, 1), tuple(2, 2), tuple(null, 3))\n * EagerFutureStream.of(1, 2).rightOuterJoin(Seq.of(1, 2, 3), t -> Objects.equals(t.v1, t.v2))\n * }</pre>\n */\n default <T> EagerFutureStream<Tuple2<U, T>> rightOuterJoin(Stream<T> other, BiPredicate<U, T> predicate) {\n return (EagerFutureStream)FutureStream.super.rightOuterJoin(other,predicate);\n }\n \n\t\n\t\n\t/**\n\t * Returns a stream with a given value interspersed between any two values\n\t * of this stream.\n\t * <pre>\n\t * {@code \n\t * \n\t * // (1, 0, 2, 0, 3, 0, 4) EagerFutureStream.of(1, 2, 3, 4).intersperse(0)\n\t * \n\t *}</pre>\n\t * @see #intersperse(Stream, Object)\n\t */\n\t@Override\n\tdefault EagerFutureStream<U> intersperse(U value) {\n\t\treturn fromStream(FutureStream.super.intersperse(value));\n\t}\n\n\t\n\t/*\n\t * (non-Javadoc)\n\t * \n\t * @see org.jooq.lambda.Seq#distinct()\n\t */\n\t@Override\n\tdefault EagerFutureStream<U> distinct() {\n\t\treturn fromStream(toQueue().stream().distinct());\n\t}\n\t/**\n\t * Create a sliding view over this Stream\n\t * \n\t * <pre>\n\t * {@code \n\t * //futureStream of [1,2,3,4,5,6]\n\t *\t\t \n\t * List<List<Integer>> list = futureStream.sliding(2)\n\t\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\t\t\n\t\n\t\tassertThat(list.get(0),hasItems(1,2));\n\t\tassertThat(list.get(1),hasItems(2,3));\n\t * }\n\t * </pre>\n\t * @param size\n\t * Size of sliding window\n\t * @return Stream with sliding view over data in this stream\n\t */\n\t@Override\n\tdefault EagerFutureStream<List<U>> sliding(int size){\n\t\treturn (EagerFutureStream)FutureStream.super.sliding(size);\n\t}\n\t/**\n\t * Create a sliding view over this Stream\n\t * \n\t * <pre>\n\t * {@code \n\t * //futureStream of [1,2,3,4,5,6,7,8]\n\t *\t\t \n\t * List<List<Integer>> list = futureStream.sliding(3,2)\n\t\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\t\t\n\t\n\t\tassertThat(list.get(0),hasItems(1,2,3));\n\t\tassertThat(list.get(1),hasItems(3,4,5));\n\t * }\n\t * </pre>\n\t * @param size\n\t * Size of sliding window\n\t * @return Stream with sliding view over data in this stream\n\t */\n\t@Override\n\tdefault EagerFutureStream<List<U>> sliding(int size, int increment){\n\t\treturn (EagerFutureStream)FutureStream.super.sliding(size,increment);\n\t}\n\t/**\n\t * Duplicate a Stream into two equivalent LazyFutureStreams, underlying\n\t * Stream of Futures is duplicated\n\t * <pre>\n\t * {@code \n\t * EagerFutureStream.of(1, 2, 3).duplicate()\n\t * \n\t * results in\n\t * \n\t * tuple((1,2,3),(1,2,3))\n\t * }</pre>\n\t * Care should be taken not to use this method with infinite streams!\n\t * \n\t * @return Two equivalent Streams\n\t * \n\t * @see #duplicate()\n\t */\n\n\tdefault Tuple2<EagerFutureStream<U>, EagerFutureStream<U>> duplicateFutures() {\n\t\t// unblocking impl\n\t\tStream stream = getLastActive().stream();\n\t\tTuple2<Seq<CompletableFuture<U>>, Seq<CompletableFuture<U>>> duplicated = Seq\n\t\t\t\t.seq((Stream<CompletableFuture<U>>) stream).duplicate();\n\t\tTuple2 dup =new Tuple2(fromStreamOfFutures(duplicated.v1),\n\t\t\t\tfromStreamOfFutures(duplicated.v2));\n\t\n\t\treturn (Tuple2<EagerFutureStream<U>,EagerFutureStream<U>>) dup;\n\t}\n\t/**\n\t * Duplicate a Stream into two equivalent LazyFutureStreams, Streams are duplicated as results\n\t * of Futures are populated\n\t * <pre>\n\t * {@code \n\t * EagerFutureStream.of(1, 2, 3).duplicate()\n\t * \n\t * results in\n\t * \n\t * tuple((1,2,3),(1,2,3))\n\t * }</pre>\n\t * Care should be taken not to use this method with infinite streams!\n\t * \n\t * @return Two equivalent Streams\n\t * \n\t * @see #duplicate()\n\t */\n\t@Override\n\tdefault Tuple2<Seq<U>, Seq<U>> duplicate() {\n\n\t\tList<EagerFutureStream<U>> duplicated = this.copy(2);\n\t\treturn new Tuple2(fromStream(duplicated.get(0)), fromStream(duplicated.get(1)));\n\t}\n\t/**\n\t * UnsupportedOperation for EagerFutureStreams\n\t * Requires ability to support infinite Streams\n\t * \n\t * \n\t * @return throws UnsupportedOperationException\n\t */\n\t@Override\n\tdefault EagerFutureStream<U> cycle(){\n\t\tthrow new UnsupportedOperationException(\"cycle not supported for EagerFutureStreams\");\n\t}\n\t\n\n\t/**\n\t * Partition a stream into two given a predicate. (Operates on results, not\n\t * futures)\n\t * Can't change the return type in Seq to incorporate EagerFutureStream - see partitionFutureStream instead.\n\t * \n\t * <pre>\n\t * {@code \n\t * // tuple((1, 3, 5), (2, 4, 6)) \n\t * EagerFutureStream.of(1, 2, 3, 4, 5,6).partition(i -> i % 2 != 0)\n\t * }</pre>\n\t *\n\t * @see #partition(Stream, Predicate)\n\t */\n\t@Override\n\tdefault Tuple2<Seq<U>, Seq<U>> partition(Predicate<? super U> predicate) {\n\t\tTuple2<Seq<U>, Seq<U>> partitioned = FutureStream.super\n\t\t\t\t.partition(predicate);\n\t\treturn new Tuple2(fromStream(partitioned.v1),\n\t\t\t\tfromStream(partitioned.v2));\n\t}\n\n\t/**\n\t * Partition an EagerFutureStream into two EagerFutureStreams given a\n\t * predicate.\n\t * <pre>\n\t * {@code \n\t * EagerFutureStream.of(1, 2, 3, 4, 5, 6).partition(i -> i % 2 != 0)\n\t * \n\t * results in\n\t * \n\t * tuple((1, 3, 5), (2, 4, 6))\n\t * }</pre>\n\t * @param predicate\n\t * Predicate to split Stream\n\t * @return EagerFutureStream\n\t * @see #partition(Predicate)\n\t */\n\tdefault Tuple2<EagerFutureStream<U>, EagerFutureStream<U>> partitionFutureStream(\n\t\t\tPredicate<? super U> predicate) {\n\t\tTuple2 partition = partition(predicate);\n\t\treturn (Tuple2<EagerFutureStream<U>, EagerFutureStream<U>>) partition;\n\t}\n\n\t/**\n\t * Split a stream at a given position. (Operates on futures)\n\t * <pre>\n\t * {@code \n\t * // tuple((1, 2, 3), (4, 5, 6))\n\t * EagerFutureStream.of(1, 2, 3, 4, 5,6).splitAt(3)\n\t * \n\t * }</pre>\n\t * @return \n\t * \n\t *\n\t * @see #splitAt(Stream, long)\n\t */\n\tdefault Tuple2<EagerFutureStream<U>, EagerFutureStream<U>> splitAtFutures(\n\t\t\tlong position) {\n\t\tStream stream = getLastActive().stream();\n\t\tTuple2<Seq<CompletableFuture<U>>, Seq<CompletableFuture<U>>> split = Seq\n\t\t\t\t.seq((Stream<CompletableFuture<U>>) stream).splitAt(position);\n\n\t\treturn new Tuple2(\n\t\t\t\tfromListCompletableFuture(split.v1.collect(Collectors.toList())),\n\t\t\t\tfromListCompletableFuture(split.v2.collect(Collectors.toList())));\n\t}\n\n\t/**\n\t * Split a EagerFutureStream at a given position.\n\t * <pre>\n\t * {@code \n\t * EagerFutureStream.of(1, 2, 3, 4, 5, 6).splitAt(3)\n\t * \n\t * results in tuple((1, 2, 3), (4, 5, 6))\n\t * }</pre>\n\t * \n\t * @see #splitAt(long)\n\t */\n\tdefault Tuple2<Seq<U>, Seq<U>> splitAt(long position) {\n\t\t// blocking impl\n\n\t\tTuple2<Seq<U>, Seq<U>> split = FutureStream.super.splitAt(position);\n\t\treturn new Tuple2(fromStream(split.v1), fromStream(split.v2));\n\t}\n\t\n\t/**\n\t * Split a EagerFutureStream at a given position. Return type is an EagerFutureStream\n\t * <pre>\n\t * {@code \n\t * EagerFutureStream.of(1, 2, 3, 4, 5, 6).splitAtFutureStream(3)\n\t * \n\t * results in tuple((1, 2, 3), (4, 5, 6))\n\t * }</pre>\n\t * \n\t * @see #splitAt(long)\n\t */\n\tdefault Tuple2<EagerFutureStream<U>, EagerFutureStream<U>> splitAtFutureStream(\n\t\t\tlong position) {\n\t\tTuple2 split = splitAt(position);\n\t\treturn (Tuple2<EagerFutureStream<U>, EagerFutureStream<U>>) split;\n\t}\n\n\t/* \n\t * Convert a List of CompletableFutures into an EagerFutureStream\n\t * \n\t *\t@param list List of CompletableFutures\n\t *\t@return EagerFutureStream\n\t * @see com.aol.simple.react.stream.traits.SimpleReactStream#fromListCompletableFuture(java.util.List)\n\t */\n\tdefault <R> EagerFutureStream<R> fromListCompletableFuture(\n\t\t\tList<CompletableFuture<R>> list) {\n\n\t\treturn (EagerFutureStream) FutureStream.super\n\t\t\t\t.fromListCompletableFuture(list);\n\t}\n\n\t/**\n\t * Split a stream at the head.\n\t * \n\t * <pre>\n\t * {@code \n\t * // tuple(1, (2, 3, 4, 5, 6)) \n\t * EagerFutureStream.of(1, 2, 3, 4, 5, 6).splitHead(3)\n\t * }</pre>\n\t *\n\t * @see #splitAt(Stream, long)\n\t */\n\t@Override\n\tdefault Tuple2<Optional<U>, Seq<U>> splitAtHead() {\n\t\t// blocking\n\t\tTuple2<Optional<U>, Seq<U>> split = FutureStream.super.splitAtHead();\n\t\treturn new Tuple2(split.v1, fromStream(split.v2));\n\t}\n\n\t/**\n\t * SplitAtHead but return type is EagerFutureStream\n\t * \n\t * @return\n\t * @see #splitAtHead()\n\t */\n\tdefault Tuple2<Optional<U>, EagerFutureStream<U>> splitAtHeadFutureStream() {\n\t\tTuple2 split = splitAtHead();\n\t\treturn split;\n\t}\n\n\n\n\n\t/* \n\t *\t@return Convert to standard JDK 8 Stream\n\t * @see com.aol.simple.react.stream.traits.FutureStream#stream()\n\t */\n\t@Override\n\tdefault Stream<U> stream() {\n\t\treturn FutureStream.super.stream();\n\t}\n\t/* \n\t *\t@return New version of this stream converted to execute asynchronously and in parallel\n\t * @see com.aol.simple.react.stream.traits.FutureStream#parallel()\n\t */\n\t@Override\n\tdefault EagerFutureStream<U> parallel(){\n\t\treturn this.withAsync(true).withTaskExecutor(EagerReact.parallelBuilder().getExecutor());\n\t}\n\t/* \n\t *\t@return New version of this stream converted to execute synchronously and sequentially\n\t * @see com.aol.simple.react.stream.traits.FutureStream#sequential()\n\t */\n\t@Override\n\tdefault EagerFutureStream<U> sequential(){\n\t\treturn this.withAsync(false).withTaskExecutor(EagerReact.sequentialBuilder().getExecutor());\n\t}\n\n\n\n\n\t\n\t/*\n\t * (non-Javadoc)\n\t * \n\t * @see org.jooq.lambda.Seq#unordered()\n\t */\n\t@Override\n\tdefault EagerFutureStream<U> unordered() {\n\t\treturn this;\n\t}\n\n\t/*\n\t * (non-Javadoc)\n\t * \n\t * @see org.jooq.lambda.Seq#onClose(java.lang.Runnable)\n\t */\n\t@Override\n\tdefault EagerFutureStream<U> onClose(Runnable closeHandler) {\n\n\t\treturn (EagerFutureStream)FutureStream.super.onClose(closeHandler);\n\t}\n\n\t/*\n\t * (non-Javadoc)\n\t * \n\t * @see org.jooq.lambda.Seq#sorted()\n\t */\n\t@Override\n\tdefault EagerFutureStream<U> sorted() {\n\t\treturn (EagerFutureStream<U>)fromStream(FutureStream.super.sorted());\n\t}\n\n\t/*\n\t * (non-Javadoc)\n\t * \n\t * @see org.jooq.lambda.Seq#sorted(java.util.Comparator)\n\t */\n\t@Override\n\tdefault EagerFutureStream<U> sorted(Comparator<? super U> comparator) {\n\t\treturn (EagerFutureStream<U>)fromStream(FutureStream.super.sorted(comparator));\n\t}\n\n\t/**\n\t * Give a function access to the current stage of a SimpleReact Stream\n\t * \n\t * @param consumer\n\t * Consumer that will recieve current stage\n\t * @return Self (current stage)\n\t */\n\tdefault EagerFutureStream<U> self(Consumer<FutureStream<U>> consumer) {\n\t\treturn (com.aol.simple.react.stream.traits.EagerFutureStream<U>)FutureStream.super.self(consumer);\n\t}\n\t\n\t/**\n\t * Merge two reactive dataflows with one and another.\n\t * \n\t * @param s1\n\t * Reactive stage builder to merge\n\t * @param s2\n\t * Reactive stage builder to merge\n\t * @return Merged dataflow\n\t */\n\t@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\tpublic static <R> FutureStream<R> merge(EagerFutureStream s1, EagerFutureStream s2) {\n\t\tList merged = Stream\n\t\t\t\t.of(s1.getLastActive().list(), s2.getLastActive().list())\n\t\t\t\t.flatMap(Collection::stream).collect(Collectors.toList());\n\t\treturn (FutureStream<R>) s1.withLastActive(new StreamWrapper(merged));\n\t}\n\n\n\t/**\n\t * Construct an EagerFutureStream Stream from specified array, that will run in parallel\n\t * on the common Parallel executor service (by default the Common ForkJoinPool) see ThreadPools#setUseCommon \n\t * to change to a different pool\n\t * \n\t * @param array\n\t * Values to react to\n\t * @return Next SimpleReact stage\n\t */\n\tpublic static <U> EagerFutureStream<U> parallel(U... array) {\n\t\treturn EagerReact.parallelCommonBuilder().from(Arrays.asList(array));\n\t}\n\n\t\n\t/**\n\t * Create a 'free threaded' asynchronous stream that runs on the supplied CompletableFutures executor service (unless async operator invoked\n\t * , in which it will switch to the common 'free' thread executor)\n\t * Subsequent tasks will be executed synchronously unless the async() operator is invoked.\n\t * \n\t * @see Stream#of(Object)\n\t */\n\tstatic <T> EagerFutureStream<T> eagerFutureStreamFrom(Stream<CompletableFuture<T>> stream) {\n\t\treturn new EagerReact(ThreadPools.getSequential(),new AsyncRetryExecutor(ThreadPools.getSequentialRetry()),false)\n\t\t\t\t\t\t\t\t\t.fromStream(stream);\n\t}\n\t/**\n\t * Create a 'free threaded' asynchronous stream that runs on the supplied CompletableFutures executor service (unless async operator invoked\n\t * , in which it will switch to the common 'free' thread executor)\n\t * Subsequent tasks will be executed synchronously unless the async() operator is invoked.\n\t * \n\t * @see Stream#of(Object)\n\t */\n\tstatic <T> EagerFutureStream<T> eagerFutureStream(CompletableFuture<T> value) {\n\t\treturn new EagerReact(ThreadPools.getSequential(),new AsyncRetryExecutor(ThreadPools.getSequentialRetry()),false)\n\t\t\t\t\t\t\t\t\t.fromStream(Stream.of(value));\n\t}\n\t/**\n\t * Create a 'free threaded' asynchronous stream that runs on a single thread (not current)\n\t * The supplier will be executed asyncrhonously, subsequent tasks will be executed synchronously unless the async() operator\n\t * is invoked.\n\t * \n\t * @see Stream#of(Object)\n\t */\n\tstatic <T> EagerFutureStream<T> eagerFutureStream(CompletableFuture<T>... values) {\n\t\treturn new EagerReact(ThreadPools.getSequential(),new AsyncRetryExecutor(ThreadPools.getSequentialRetry()),false)\n\t\t\t\t\t\t\t\t\t.fromStream(Stream.of(values));\n\t}\n\n\t\n\t/**\n\t * Create a 'free threaded' asynchronous stream that runs on a single thread (not current)\n\t * The supplier will be executed asyncrhonously, subsequent tasks will be executed synchronously unless the async() operator\n\t * is invoked.\n\t * \n\t * @see Stream#of(Object)\n\t */\n\tstatic <T> EagerFutureStream<T> react(Supplier<T> value) {\n\t\treturn new EagerReact(ThreadPools.getSequential(),new AsyncRetryExecutor(ThreadPools.getSequentialRetry()),false).react(value);\n\t}\n\n\t/**\n\t * Create a 'free threaded' asynchronous stream that runs on a single thread (not current)\n\t * The supplier will be executed asyncrhonously, subsequent tasks will be executed synchronously unless the async() operator is invoked.\n\t * @see Stream#of(Object[])\n\t */\n\t@SafeVarargs\n\tstatic <T> EagerFutureStream<T> react(Supplier<T>... values) {\n\t\treturn new EagerReact(ThreadPools.getSequential(),new AsyncRetryExecutor(ThreadPools.getSequentialRetry()),false).react(values);\n\t}\n\t/**\n\t * Create a sequential synchronous stream that runs on the current thread\n\t * @see Stream#of(Object)\n\t * \n\t */\n\tstatic <T> EagerFutureStream<T> of(T value) {\n\t\treturn eagerFutureStream((Stream) Stream.of(value));\n\t}\n\n\t/**\n\t * Create a sequential synchronous stream that runs on the current thread\n\t * @see Stream#of(Object[])\n\t * \n\t */\n\t@SafeVarargs\n\tstatic <T> EagerFutureStream<T> of(T... values) {\n\t\treturn eagerFutureStream((Stream) Stream.of(values));\n\t}\n\t/**\n\t * Create a sequential synchronous stream that runs on the current thread\n\t * @see Stream#of(Object)\n\t * \n\t */\n\tstatic <T> EagerFutureStream<T> ofThread(T value) {\n\t\treturn new EagerReact(ThreadPools.getSequential(),new AsyncRetryExecutor(ThreadPools.getSequentialRetry()),false).of(value);\n\t}\n\n\t/**\n\t * Create a sequential synchronous stream that runs on the current thread\n\t * @see Stream#of(Object[])\n\t * \n\t */\n\t@SafeVarargs\n\tstatic <T> EagerFutureStream<T> ofThread(T... values) {\n\t\treturn new EagerReact(ThreadPools.getSequential(),new AsyncRetryExecutor(ThreadPools.getSequentialRetry()),false).of(values);\n\t}\n\n\t/**\n\t * @see Stream#empty()\n\t */\n\tstatic <T> EagerFutureStream<T> empty() {\n\t\treturn eagerFutureStream((Stream) Seq.empty());\n\t}\n\n\t/**\n\t * Wrap a Stream into a Sequential synchronous FutureStream that runs on the current thread \n\t */\n\tstatic <T> EagerFutureStream<T> eagerFutureStream(Stream<T> stream) {\n\t\tif (stream instanceof FutureStream)\n\t\t\treturn (EagerFutureStream<T>) stream;\n\t\tEagerReact er = new EagerReact(\n\t\tThreadPools.getCurrentThreadExecutor(), RetryBuilder.getDefaultInstance()\n\t\t.withScheduler(ThreadPools.getSequentialRetry()),false);\n\t\t\n\t\treturn new EagerFutureStreamImpl<T>(er,\n\t\t\t\tstream.map(CompletableFuture::completedFuture)).sync();\n\t}\n\n\t/**\n\t * Wrap an Iterable into a FutureStream that runs on the current thread\n\t * \n\t * \n\t */\n\tstatic <T> EagerFutureStream<T> eagerFutureStreamFromIterable(Iterable<T> iterable) {\n\t\treturn eagerFutureStream(iterable.iterator());\n\t}\n\n\t/**\n\t * Wrap an Iterator into a FutureStream that runs on the current thread\n\t * \n\t */\n\tstatic <T> EagerFutureStream<T> eagerFutureStream(Iterator<T> iterator) {\n\t\treturn eagerFutureStream(StreamSupport.stream(\n\t\t\t\tspliteratorUnknownSize(iterator, ORDERED), false));\n\t}\n\n\n\t\n\n}", "default EagerFutureStream<U> doOnEach(final Function<U, U> fn) {\n\t\treturn (EagerFutureStream) FutureStream.super.doOnEach(fn);\n\t}", "default <R> EagerFutureStream<R> thenSync(final Function<U, R> fn){\n\t\t return (EagerFutureStream<R>)FutureStream.super.thenSync(fn);\n\t }", "@BackpressureSupport(BackpressureKind.UNBOUNDED_IN)\n @SchedulerSupport(SchedulerKind.NONE)\n public final <R> Observable<R> reduceWith(Supplier<R> seedSupplier, BiFunction<R, ? super T, R> reducer) {\n return scanWith(seedSupplier, reducer).last();\n }", "static <T> Function<T, T> compose(Stream<Function<T, T>> functions) {\n return functions.reduce(identity(), Function::andThen);\n }", "public static void main(String[] args) {\n\t\tStream<Integer> numStream = numbers.stream();\n\t\t\n\t\t// numStream.forEach(System.out::println); // here stream is closed\n\t\t// numStream.forEach(System.out::println); // this line with throw java.lang.IllegalStateException: stream has already been operated upon or closed\n\t\t\n\t\t// Flux has the similary concepts cannot use the same flux steam multiple times.\n\t\t// Flux<Integer> fluxStream = Flux.fromStream(numStream);\n\t\t\n//\t\tfluxStream.subscribe(\n//\t\t\t\tLamdaUtil.onNext(),\n//\t\t\t\tLamdaUtil.onError(),\n//\t\t\t\tLamdaUtil.onComplete()\n//\t\t\t\t);\n\t\t\n//\t\tfluxStream.subscribe(\n//\t\t\t\tLamdaUtil.onNext(),\n//\t\t\t\tLamdaUtil.onError(),\n//\t\t\t\tLamdaUtil.onComplete()\n//\t\t\t\t);// this line with throw ERROR :stream has already been operated upon or closed\n\t\t\n\t\t// to reuse the same data several times we need to use supplier with every time new stream\n\t\t\n\t\tFlux<Integer> numSupplierStream = Flux.fromStream(() -> numbers.stream());\n\t\tnumSupplierStream.subscribe(\n\t\t\t\tLamdaUtil.onNext(),\n\t\t\t\tLamdaUtil.onError(),\n\t\t\t\tLamdaUtil.onComplete()\n\t\t\t\t);\n\t\tnumSupplierStream.subscribe(\n\t\t\t\tLamdaUtil.onNext(),\n\t\t\t\tLamdaUtil.onError(),\n\t\t\t\tLamdaUtil.onComplete()\n\t\t\t\t);\n\t\t\n\t}", "public static void main(String[] args) {\n\t\n\t\tm(\"Iterate\", () -> {\t\t\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tSupplier<IntStream>[] sArr = (Supplier<IntStream>[])new Supplier[] {\n\t\t\t\t() -> IntStream.iterate(2, i -> 2 * i),\n\t\t\t\t() -> IntStream.iterate(10, i -> i - 1),\n\t\t\t\t() -> IntStream.iterate(10, i -> i),\n\t\t\t\t() -> IntStream.iterate(10, i -> 2),\n\t\t\t\t() -> IntStream.iterate(42, IntUnaryOperator.identity()),\n\t\t\t\t() -> IntStream.iterate(42, IntUnaryOperator.identity().andThen(IntUnaryOperator.identity())),\n\t\t\t};\n\t\t\tStream.of(sArr).forEach(supplier -> supplier.get().limit(10).forEach(System.out::println));\n\t\t});\n\t\t\n\t\t\n\t\t//Various IntStream generations. generate produces elements without input => it uses an IntSupplier.\n\t\t\n\t\tSystem.out.println(\"---------------------------------------------\");\n\t\t\n\t\tm(\"Generate\", () -> {\t\t\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tSupplier<IntStream>[] sArr = (Supplier<IntStream>[])new Supplier[] {\n\t\t\t\t() -> IntStream.generate(() -> new Random().nextInt()),\n\t\t\t\t() -> IntStream.generate(() -> new Random().nextInt()).filter(n -> n >= 0),\n\t\t\t\t() -> IntStream.generate(() -> 10),\n\t\t\t\t() -> IntStream.generate(() -> new Random().nextInt() % 20).filter(n -> n >= 0)\n\t\t\t};\n\t\t\tStream.of(sArr).forEach(supplier -> {supplier.get().limit(10).forEach(System.out::println); System.out.println(\"--------------------------------\");});\n\t\t});\n\t\t\n\t\t\n\t\t//Iterate and generate for DoubleStream, LongStream and Stream<T>\n\t\t\n\t\t\n\t\tm(\"DoubleStream iterate and generate\", () -> {\t\t\n\t\t\tDoubleStream.iterate(1, d -> d + d / 2).limit(20).forEach(System.out::println); //Uses DoubleUnaryOperator\n\t\t\tSystem.out.println(\"-------------------------\");\n\t\t\tDoubleStream.generate(() -> new Random().nextDouble()).limit(5).forEach(System.out::println); //Uses DoubleSupplier\n\t\t});\n\t\t\n\t\tm(\"LongStream iterate and generate\", () -> {\t\t\n\t\t\tLongStream.iterate(2, n -> n * n).limit(4).forEach(System.out::println); //Uses LongUnaryOperator\n\t\t\tSystem.out.println(\"-------------------------\");\n\t\t\tDoubleStream.generate(() -> new Random().nextLong()).limit(5).forEach(System.out::println); //Uses LongSupplier\n\t\t});\n\t\t\n\t\tm(\"Stream iterate and generate\", () -> {\t\t\n\t\t\tStream.<List<Object>>iterate(new ArrayList<Object>(), l -> {l.add(1); return l;}).limit(4).forEach(System.out::println); //Uses UnaryOperator\n\t\t\tSystem.out.println(\"-------------------------\");\n\t\t\tStream.<List<Object>>generate(() -> new ArrayList<Object>()).limit(4).forEach(System.out::println); //Uses Supplier\n\t\t});\n\t\t\n\t\tm(\"noneMatch\", () -> {\t\t\n\t\t\tStream<String> stream = Stream.<String>iterate(\"-\", s -> s + s);\n\t\t\tPredicate<String> predicate = s -> s.length() > 3;\n\t\t\tSystem.out.println(stream.noneMatch(predicate)); //Note: this is not infinite. None match will fail as soon as one element is found\n\t\t});\n\t\t\n\t\tm(\"allMatch\", () -> {\t\t\n\t\t\tStream<String> stream = Stream.<String>iterate(\"-\", s -> s + s);\n\t\t\tPredicate<String> predicate = s -> s.length() > 0;\n\t\t\tPredicate<String> predicate2 = s -> s.length() > 3;\n\t\t\t//System.out.println(stream.allMatch(predicate)); //Note: This is infinite and will fail with OOM error\n\t\t\tSystem.out.println(stream.allMatch(predicate2)); //Note how this will return as the first element does not match so false can be returned\n\t\t});\n\t\t\n\t}", "default <K, V> Stream<Pair<K, V>> integratePerKey(\n @ClosureParams(value = FromString.class, options = \"T\") Closure<K> keyExtractor,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<V> valueExtractor,\n @ClosureParams(value = FromString.class, options = \"K\") Closure<V> initialValue,\n @ClosureParams(value = FromString.class, options = \"V,V\") Closure<V> combiner) {\n\n return integratePerKey(null, keyExtractor, valueExtractor, initialValue, combiner);\n }", "default <T> EagerFutureStream<T> sync(Function<EagerReact,EagerFutureStream<T>> react){\n\t\t EagerReact r =SequentialElasticPools.eagerReact.nextReactor().withAsync(false);\n\t\t return react.apply( r)\n\t\t\t\t \t.onFail(e->{ SequentialElasticPools.eagerReact.populate(r); throw e;})\n\t\t\t\t \t.peek(i->SequentialElasticPools.eagerReact.populate(r));\n\t\t \t\t\t\t \t\n\t}", "@Override\n public void chain(@Nonnull final IMapReduce source) {\n performSourceMapReduce(((SparkMapReduce) source).output);\n }", "public java.util.Iterator iteratorSupplier()\n // -end- 335C0D7A02E4 get_all_head327A646F00E6 \"Dependency::iteratorSupplier\"\n ;", "public void setSupplier(Supplier supplier) {\n this.supplier = supplier;\n }", "default <R> EagerFutureStream<R> then(final Function<U, R> fn) {\n\t\treturn (EagerFutureStream) FutureStream.super.then(fn);\n\t}", "private static <T> FluxProcessor<T, T> toSendingProcessor(Consumer<? super Flux<T>> sender) {\n FluxProcessor<T, T> processor = EmitterProcessor.create(1);\n sender.accept(processor);\n return processor;\n }", "@Override\n @SuppressWarnings(\"unchecked\")\n protected void customSync() {\n Exchanger<Void>[] exchangers = (Exchanger<Void>[]) new Exchanger<?>[PRODUCERS_COUNT];\n\n for (int i = 0; i < PRODUCERS_COUNT; i++) {\n exchangers[i] = new Exchanger<>();\n new Producer(params.dataResults, params.postResult, exchangers[i]).start();\n }\n\n new Consumer(params.postFinish, exchangers).start();\n }", "@CompileStatic\npublic interface Stream<T> {\n\n /**\n * Remap the stream.\n *\n * @param <X> type parameter\n * @param mapper mapper returning iterable of values to be flattened into output\n * @return the remapped stream\n */\n default <X> Stream<X> flatMap(\n @ClosureParams(value = FromString.class, options = \"T\") Closure<Iterable<X>> mapper) {\n\n return flatMap(null, mapper);\n }\n\n /**\n * Remap the stream.\n *\n * @param <X> type parameter\n * @param name name of the operation\n * @param mapper mapper returning iterable of values to be flattened into output\n * @return the remapped stream\n */\n <X> Stream<X> flatMap(\n @Nullable String name,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<Iterable<X>> mapper);\n\n /**\n * Remap the stream.\n *\n * @param <X> type parameter\n * @param mapper the mapping closure\n * @return remapped stream\n */\n default <X> Stream<X> map(\n @ClosureParams(value = FromString.class, options = \"T\") Closure<X> mapper) {\n\n return map(null, mapper);\n }\n\n /**\n * Remap the stream.\n *\n * @param <X> type parameter\n * @param name stable name of the mapping operator\n * @param mapper the mapping closure\n * @return remapped stream\n */\n <X> Stream<X> map(\n @Nullable String name,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<X> mapper);\n\n /**\n * Filter stream based on predicate\n *\n * @param predicate the predicate to filter on\n * @return filtered stream\n */\n default Stream<T> filter(\n @ClosureParams(value = FromString.class, options = \"T\") Closure<Boolean> predicate) {\n\n return filter(null, predicate);\n }\n\n /**\n * Filter stream based on predicate\n *\n * @param name name of the filter operator\n * @param predicate the predicate to filter on\n * @return filtered stream\n */\n Stream<T> filter(\n @Nullable String name,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<Boolean> predicate);\n\n /**\n * Assign event time to elements.\n *\n * @param assigner assigner of event time\n * @return stream with elements assigned event time\n */\n default Stream<T> assignEventTime(\n @ClosureParams(value = FromString.class, options = \"T\") Closure<Long> assigner) {\n\n return assignEventTime(null, assigner);\n }\n\n /**\n * Assign event time to elements.\n *\n * @param name name of the assign event time operator\n * @param assigner assigner of event time\n * @return stream with elements assigned event time\n */\n Stream<T> assignEventTime(\n @Nullable String name,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<Long> assigner);\n\n /**\n * Add window to each element in the stream.\n *\n * @return stream of pairs with window\n */\n default Stream<Pair<Object, T>> withWindow() {\n return withWindow(null);\n }\n\n /**\n * Add window to each element in the stream.\n *\n * @param name stable name of the mapping operator\n * @return stream of pairs with window\n */\n Stream<Pair<Object, T>> withWindow(@Nullable String name);\n\n /**\n * Add timestamp to each element in the stream.\n *\n * @return stream of pairs with timestamp\n */\n default Stream<Pair<T, Long>> withTimestamp() {\n return withTimestamp(null);\n }\n\n /**\n * Add timestamp to each element in the stream.\n *\n * @param name stable name of mapping operator\n * @return stream of pairs with timestamp\n */\n Stream<Pair<T, Long>> withTimestamp(@Nullable String name);\n\n /** Print all elements to console. */\n void print();\n\n /**\n * Collect stream as list. Note that this will result on OOME if this is unbounded stream.\n *\n * @return the stream collected as list.\n */\n List<T> collect();\n\n /**\n * Test if this is bounded stream.\n *\n * @return {@code true} if this is bounded stream, {@code false} otherwise\n */\n boolean isBounded();\n\n /**\n * Process this stream as it was unbounded stream.\n *\n * <p>This is a no-op if {@link #isBounded} returns {@code false}, otherwise it turns the stream\n * into being processed as unbounded, although being bounded.\n *\n * <p>This is an optional operation and might be ignored if not supported by underlying\n * implementation.\n *\n * @return Stream viewed as unbounded stream, if supported\n */\n default Stream<T> asUnbounded() {\n return this;\n }\n\n /**\n * Convert elements to {@link StreamElement}s.\n *\n * @param <V> type of value\n * @param repoProvider provider of {@link Repository}\n * @param entity the entity of elements\n * @param keyExtractor extractor of keys\n * @param attributeExtractor extractor of attributes\n * @param valueExtractor extractor of values\n * @param timeExtractor extractor of time\n * @return stream with {@link StreamElement}s inside\n */\n <V> Stream<StreamElement> asStreamElements(\n RepositoryProvider repoProvider,\n EntityDescriptor entity,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<CharSequence> keyExtractor,\n @ClosureParams(value = FromString.class, options = \"T\")\n Closure<CharSequence> attributeExtractor,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<V> valueExtractor,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<Long> timeExtractor);\n\n /**\n * Persist this stream to replication.\n *\n * @param repoProvider provider of {@link Repository}.\n * @param replicationName name of replication to persist stream to\n * @param target target of the replication\n */\n void persistIntoTargetReplica(\n RepositoryProvider repoProvider, String replicationName, String target);\n\n /**\n * Persist this stream to specific family.\n *\n * <p>Note that the type of the stream has to be already {@link StreamElement StreamElements} to\n * be persisted to the specified family. The family has to accept given {@link\n * AttributeDescriptor} of the {@link StreamElement}.\n *\n * @param repoProvider provider of {@link Repository}.\n * @param targetFamilyname name of target family to persist the stream into\n */\n default void persistIntoTargetFamily(RepositoryProvider repoProvider, String targetFamilyname) {\n persistIntoTargetFamily(repoProvider, targetFamilyname, 10);\n }\n\n /**\n * Persist this stream to specific family.\n *\n * <p>Note that the type of the stream has to be already {@link StreamElement StreamElements} to\n * be persisted to the specified family. The family has to accept given {@link\n * AttributeDescriptor} of the {@link StreamElement}.\n *\n * @param repoProvider provider of {@link Repository}.\n * @param targetFamilyname name of target family to persist the stream into\n * @param parallelism parallelism to use when target family is bulk attribute family\n */\n void persistIntoTargetFamily(\n RepositoryProvider repoProvider, String targetFamilyname, int parallelism);\n\n /**\n * Persist this stream as attribute of entity\n *\n * @param <V> type of value extracted\n * @param repoProvider provider of repository\n * @param entity the entity to store the stream to\n * @param keyExtractor extractor of key for elements\n * @param attributeExtractor extractor for attribute for elements\n * @param valueExtractor extractor of values for elements\n * @param timeExtractor extractor of event time\n */\n <V> void persist(\n RepositoryProvider repoProvider,\n EntityDescriptor entity,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<CharSequence> keyExtractor,\n @ClosureParams(value = FromString.class, options = \"T\")\n Closure<CharSequence> attributeExtractor,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<V> valueExtractor,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<Long> timeExtractor);\n\n /**\n * Directly write this stream to repository. Note that the stream has to contain {@link\n * StreamElement}s (e.g. created by {@link #asStreamElements}.\n *\n * @param repoProvider provider of repository\n */\n void write(RepositoryProvider repoProvider);\n\n /**\n * Create time windowed stream.\n *\n * @param millis duration of tumbling window\n * @return time windowed stream\n */\n WindowedStream<T> timeWindow(long millis);\n\n /**\n * Create sliding time windowed stream.\n *\n * @param millis duration of the window\n * @param slide duration of the slide\n * @return sliding time windowed stream\n */\n WindowedStream<T> timeSlidingWindow(long millis, long slide);\n\n /**\n * Create session windowed stream.\n *\n * @param <K> type of key\n * @param keyExtractor extractor of key\n * @param gapDuration duration of the gap between elements per key\n * @return session windowed stream\n */\n <K> WindowedStream<Pair<K, T>> sessionWindow(\n @ClosureParams(value = FromString.class, options = \"T\") Closure<K> keyExtractor,\n long gapDuration);\n\n /**\n * Create calendar-based windowed stream.\n *\n * @param window the resolution of the calendar window (\"days\", \"weeks\", \"months\", \"years\")\n * @param count number of days, weeks, months, years\n * @param timeZone time zone of the calculation\n * @return calendar windowed stream\n */\n WindowedStream<T> calendarWindow(String window, int count, TimeZone timeZone);\n\n /**\n * Group all elements into single window.\n *\n * @return globally windowed stream.\n */\n WindowedStream<T> windowAll();\n\n /**\n * Merge two streams together.\n *\n * @param other the other stream(s)\n * @return merged stream\n */\n default Stream<T> union(Stream<T> other) {\n return union(Arrays.asList(other));\n }\n\n /**\n * Merge two streams together.\n *\n * @param name name of the union operator\n * @param other the other stream(s)\n * @return merged stream\n */\n default Stream<T> union(@Nullable String name, Stream<T> other) {\n return union(name, Arrays.asList(other));\n }\n\n /**\n * Merge multiple streams together.\n *\n * @param streams other streams\n * @return merged stream\n */\n default Stream<T> union(List<Stream<T>> streams) {\n return union(null, streams);\n }\n\n /**\n * Merge multiple streams together.\n *\n * @param name name of the union operator\n * @param streams other streams\n * @return merged stream\n */\n Stream<T> union(@Nullable String name, List<Stream<T>> streams);\n\n /**\n * Transform this stream using stateful processing.\n *\n * @param <K> type of key\n * @param <S> type of value state\n * @param <V> type of intermediate value\n * @param <O> type of output value\n * @param keyExtractor extractor of key\n * @param valueExtractor extractor of value\n * @param initialState closure providing initial state value for key\n * @param outputFn function for outputting values (when function returns {@code null} the output\n * is discarded\n * @param stateUpdate update (accumulation) function for the state the output is discarded\n * @return the statefully reduced stream\n */\n default <K, S, V, O> Stream<Pair<K, O>> reduceValueStateByKey(\n @ClosureParams(value = FromString.class, options = \"T\") Closure<K> keyExtractor,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<V> valueExtractor,\n @ClosureParams(value = FromString.class, options = \"K\") Closure<S> initialState,\n @ClosureParams(value = FromString.class, options = \"S, V\") Closure<O> outputFn,\n @ClosureParams(value = FromString.class, options = \"S, V\") Closure<S> stateUpdate) {\n\n return reduceValueStateByKey(\n null, keyExtractor, valueExtractor, initialState, outputFn, stateUpdate);\n }\n\n /**\n * Transform this stream using stateful processing without time-sorting.\n *\n * @param <K> type of key\n * @param <S> type of value state\n * @param <V> type of intermediate value\n * @param <O> type of output value\n * @param keyExtractor extractor of key\n * @param valueExtractor extractor of value\n * @param initialState closure providing initial state value for key\n * @param outputFn function for outputting values (when function returns {@code null} the output\n * is discarded\n * @param stateUpdate update (accumulation) function for the state the output is discarded\n * @return the statefully reduced stream\n */\n default <K, S, V, O> Stream<Pair<K, O>> reduceValueStateByKeyUnsorted(\n @ClosureParams(value = FromString.class, options = \"T\") Closure<K> keyExtractor,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<V> valueExtractor,\n @ClosureParams(value = FromString.class, options = \"K\") Closure<S> initialState,\n @ClosureParams(value = FromString.class, options = \"S, V\") Closure<O> outputFn,\n @ClosureParams(value = FromString.class, options = \"S, V\") Closure<S> stateUpdate) {\n\n return reduceValueStateByKeyUnsorted(\n null, keyExtractor, valueExtractor, initialState, outputFn, stateUpdate);\n }\n\n /**\n * Transform this stream using stateful processing.\n *\n * @param <K> type of key\n * @param <S> type of value state\n * @param <V> type of intermediate value\n * @param <O> type of output value\n * @param name optional name of the stateful operation\n * @param keyExtractor extractor of key\n * @param valueExtractor extractor of value\n * @param initialState closure providing initial state value for key\n * @param stateUpdate update (accumulation) function for the state\n * @param outputFn function for outputting values (when function returns {@code null} the output\n * is discarded\n * @return the statefully reduced stream\n */\n default <K, S, V, O> Stream<Pair<K, O>> reduceValueStateByKey(\n @Nullable String name,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<K> keyExtractor,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<V> valueExtractor,\n @ClosureParams(value = FromString.class, options = \"K\") Closure<S> initialState,\n @ClosureParams(value = FromString.class, options = \"S, V\") Closure<O> outputFn,\n @ClosureParams(value = FromString.class, options = \"S, V\") Closure<S> stateUpdate) {\n\n return reduceValueStateByKey(\n name, keyExtractor, valueExtractor, initialState, outputFn, stateUpdate, true);\n }\n\n /**\n * Transform this stream using stateful processing without time-sorting.\n *\n * @param <K> type of key\n * @param <S> type of value state\n * @param <V> type of intermediate value\n * @param <O> type of output value\n * @param name optional name of the stateful operation\n * @param keyExtractor extractor of key\n * @param valueExtractor extractor of value\n * @param initialState closure providing initial state value for key\n * @param stateUpdate update (accumulation) function for the state\n * @param outputFn function for outputting values (when function returns {@code null} the output\n * is discarded\n * @return the statefully reduced stream\n */\n default <K, S, V, O> Stream<Pair<K, O>> reduceValueStateByKeyUnsorted(\n @Nullable String name,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<K> keyExtractor,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<V> valueExtractor,\n @ClosureParams(value = FromString.class, options = \"K\") Closure<S> initialState,\n @ClosureParams(value = FromString.class, options = \"S, V\") Closure<O> outputFn,\n @ClosureParams(value = FromString.class, options = \"S, V\") Closure<S> stateUpdate) {\n\n return reduceValueStateByKey(\n name, keyExtractor, valueExtractor, initialState, outputFn, stateUpdate, false);\n }\n\n /**\n * Transform this stream using stateful processing.\n *\n * @param <K> type of key\n * @param <S> type of value state\n * @param <V> type of intermediate value\n * @param <O> type of output value\n * @param name optional name of the stateful operation\n * @param keyExtractor extractor of key\n * @param valueExtractor extractor of value\n * @param initialState closure providing initial state value for key\n * @param stateUpdate update (accumulation) function for the state\n * @param outputFn function for outputting values (when function returns {@code null} the output\n * is discarded\n * @param sorted {@code true} if the input to the state update function should be time-sorted\n * @return the statefully reduced stream\n */\n <K, S, V, O> Stream<Pair<K, O>> reduceValueStateByKey(\n @Nullable String name,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<K> keyExtractor,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<V> valueExtractor,\n @ClosureParams(value = FromString.class, options = \"K\") Closure<S> initialState,\n @ClosureParams(value = FromString.class, options = \"S, V\") Closure<O> outputFn,\n @ClosureParams(value = FromString.class, options = \"S, V\") Closure<S> stateUpdate,\n boolean sorted);\n\n /**\n * Transform this stream to another stream by applying combining transform in global window\n * emitting results after each element added. That means that the following holds: * the new\n * stream will have exactly the same number of elements as the original stream minus late elements\n * dropped * streaming semantics need to define allowed lateness, which will incur real time\n * processing delay * batch semantics use sort per key\n *\n * @param <K> key type\n * @param <V> value type\n * @param keyExtractor extractor of key\n * @param valueExtractor extractor of value\n * @param initialValue closure providing initial value of state for key\n * @param combiner combiner of values to final value\n * @return the integrated stream\n */\n default <K, V> Stream<Pair<K, V>> integratePerKey(\n @ClosureParams(value = FromString.class, options = \"T\") Closure<K> keyExtractor,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<V> valueExtractor,\n @ClosureParams(value = FromString.class, options = \"K\") Closure<V> initialValue,\n @ClosureParams(value = FromString.class, options = \"V,V\") Closure<V> combiner) {\n\n return integratePerKey(null, keyExtractor, valueExtractor, initialValue, combiner);\n }\n\n /**\n * Transform this stream to another stream by applying combining transform in global window\n * emitting results after each element added. That means that the following holds: * the new\n * stream will have exactly the same number of elements as the original stream minus late elements\n * dropped * streaming semantics need to define allowed lateness, which will incur real time\n * processing delay * batch semantics use sort per key\n *\n * @param <K> key type\n * @param <V> value type\n * @param name optional name of the transform\n * @param keyExtractor extractor of key\n * @param valueExtractor extractor of value\n * @param initialValue closure providing initial value of state for key\n * @param combiner combiner of values to final value\n * @return the integrated stream\n */\n <K, V> Stream<Pair<K, V>> integratePerKey(\n @Nullable String name,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<K> keyExtractor,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<V> valueExtractor,\n @ClosureParams(value = FromString.class, options = \"K\") Closure<V> initialValue,\n @ClosureParams(value = FromString.class, options = \"V,V\") Closure<V> combiner);\n\n /** Reshuffle the stream via random key. */\n default Stream<T> reshuffle() {\n return reshuffle(null);\n }\n\n /**\n * Reshuffle the stream via random key.\n *\n * @param name name of the transform\n */\n @SuppressWarnings(\"unchecked\")\n Stream<T> reshuffle(@Nullable String name);\n}", "public ParallelApply() {\n super.setParallel(true);\n }", "Supplier<Number> getSupplier();", "public static <T, R> Supplier<R> map(Supplier<T> supplier, Function<T, R> function) {\n\t\treturn () -> function.apply(supplier.get());\n\t}", "public static void main(String[] args) {\r\n\t\t\r\n\t\tSystem.out.println(\"-------1. Stream filter() example---------\");\r\n\t\t//We can use filter() method to test stream elements for a condition and generate filtered list.\r\n\t\t\r\n\t\tList<Integer> myList = new ArrayList<>();\r\n\t\tfor(int i=0; i<100; i++) myList.add(i);\r\n\t\tStream<Integer> sequentialStream = myList.stream();\r\n\r\n\t\tStream<Integer> highNums = sequentialStream.filter(p -> p > 90); //filter numbers greater than 90\r\n\t\tSystem.out.print(\"High Nums greater than 90=\");\r\n\t\thighNums.forEach(p -> System.out.print(p+\" \"));\r\n\t\t//prints \"High Nums greater than 90=91 92 93 94 95 96 97 98 99 \"\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"-------2. Stream map() example---------\");\r\n\t\t//We can use map() to apply functions to an stream\r\n\t\tStream<String> names = Stream.of(\"aBc\", \"d\", \"ef\");\r\n\t\tSystem.out.println(names.map(s -> {\r\n\t\t\t\treturn s.toUpperCase();\r\n\t\t\t}).collect(Collectors.toList()));\r\n\t\t//prints [ABC, D, EF]\r\n\t\t\r\n\t\tSystem.out.println(\"-------3. Stream sorted() example---------\");\r\n\t\t//We can use sorted() to sort the stream elements by passing Comparator argument.\r\n\t\tStream<String> names2 = Stream.of(\"aBc\", \"d\", \"ef\", \"123456\");\r\n\t\tList<String> reverseSorted = names2.sorted(Comparator.reverseOrder()).collect(Collectors.toList());\r\n\t\tSystem.out.println(reverseSorted); // [ef, d, aBc, 123456]\r\n\r\n\t\tStream<String> names3 = Stream.of(\"aBc\", \"d\", \"ef\", \"123456\");\r\n\t\tList<String> naturalSorted = names3.sorted().collect(Collectors.toList());\r\n\t\tSystem.out.println(naturalSorted); //[123456, aBc, d, ef]\r\n\t\t\r\n\t\tSystem.out.println(\"-------4. Stream flatMap() example---------\");\r\n\t\t//We can use flatMap() to create a stream from the stream of list.\r\n\t\tStream<List<String>> namesOriginalList = Stream.of(\r\n\t\t\t\tArrays.asList(\"Pankaj\"), \r\n\t\t\t\tArrays.asList(\"David\", \"Lisa\"),\r\n\t\t\t\tArrays.asList(\"Amit\"));\r\n\t\t\t//flat the stream from List<String> to String stream\r\n\t\t\tStream<String> flatStream = namesOriginalList\r\n\t\t\t\t.flatMap(strList -> strList.stream());\r\n\r\n\t\t\tflatStream.forEach(System.out::println);\r\n\r\n\t}", "@FunctionalInterface\npublic interface CommonSupplier<T> {\n\n T get() throws InternalSystemException;\n}", "@Test\n public void collectAndReduce() {\n List<Book> collectedWithReduce = TestData.getBooks().stream()\n .reduce(new ArrayList<Book>(),\n (list, book) -> {\n // Separate list created to avoid mutating elements in the list\n // -> works also with parallel streams\n ArrayList<Book> result = new ArrayList<Book>(list);\n result.add(book);\n return result;\n }, (list1, list2) -> {\n ArrayList<Book> result = new ArrayList<Book>(list1);\n result.addAll(list2);\n return result;\n });\n assertEquals(4, collectedWithReduce.size());\n\n // Collect to list \"manually\" with collect\n // R collect(Supplier<R> supplier, BiConsumer<R, ? super T> accumulator,\n // BiConsumer<R, R> combiner)\n List<Book> books = TestData.getBooks().stream()\n .collect(ArrayList::new, ArrayList::add, ArrayList::addAll);\n assertEquals(4, books.size());\n\n // And the typical way using utilities from java.util.stream.Collectors\n assertEquals(4,\n TestData.getBooks().stream().collect(Collectors.toList()).size());\n }", "private static void runKafkaStreams() {\n final KStream<SolarModuleKey, SolarModuleData> source = BUILDER\n .stream(IN_TOPIC, Consumed.with(STRING_SERDE, SOLAR_MODULE_DATA_SERDE))\n .map((k, v) -> KeyValue.pair(new SolarModuleKey(v.getPanel(), v.getName()), v));\n\n source.foreach((k, v) -> {\n log.info(\"NEW DATA: [{}|{}]: {}\", k.getPanelName(), k.getModuleName(), v.getPower());\n });\n\n // calculating sum power and average power for modules\n final KStream<Windowed<SolarModuleKey>, SolarModuleAggregator> aggPowerPerSolarModuleStream = source\n .groupByKey(Grouped.with(SOLAR_MODULE_KEY_SERDE, SOLAR_MODULE_DATA_SERDE))\n .windowedBy(TIME_WINDOWS)\n .aggregate(SolarModuleAggregator::new,\n (modelKey, value, aggregation) -> aggregation.updateFrom(value),\n Materialized.with(SOLAR_MODULE_KEY_SERDE,\n SOLAR_MODULE_AGGREGATOR_SERDE))\n .suppress(Suppressed.untilTimeLimit(DURATION, Suppressed.BufferConfig.unbounded()))\n .toStream();\n\n aggPowerPerSolarModuleStream.foreach((k, v) -> log.info(\"PerSolarModule: [{}|{}|{}]: {}:{}\",\n k.window().endTime().getEpochSecond(), k.key().getPanelName(), k.key().getModuleName(),\n v.getSumPower(), v.getCount()));\n\n // calculating sum power and average power for panels\n final KStream<Windowed<String>, SolarPanelAggregator> aggPowerPerSolarPanelStream = aggPowerPerSolarModuleStream\n .map((k, v) -> KeyValue.pair(new Windowed<>(k.key().getPanelName(), k.window()), v))\n .groupByKey(Grouped.with(WINDOWED_STRING_SERDE, SOLAR_MODULE_AGGREGATOR_SERDE))\n .aggregate(SolarPanelAggregator::new,\n (panelKey, value, aggregation) -> aggregation.updateFrom(value),\n Materialized.with(WINDOWED_STRING_SERDE, SOLAR_PANEL_AGGREGATOR_SERDE))\n .suppress(Suppressed.untilTimeLimit(DURATION, Suppressed.BufferConfig.unbounded()))\n .toStream();\n aggPowerPerSolarPanelStream.foreach((k, v) -> log.info(\"PerSolarPanel: [{}|{}]: {}:{}\",\n k.window().endTime().getEpochSecond(), k.key(), v.getSumPower(), v.getCount()));\n\n // if used for join more than once, the exception \"TopologyException: Invalid\n // topology:\" will be thrown\n final KStream<Windowed<String>, SolarModuleAggregator> aggPowerPerSolarModuleForJoinStream = aggPowerPerSolarModuleStream\n .map((k, v) -> KeyValue.pair(new Windowed<>(k.key().getPanelName(), k.window()), v));\n\n // joining aggregated panels with aggregated modules\n // need for calculating sumSquare and deviance\n final KStream<Windowed<String>, SolarPanelAggregatorJoiner> joinedAggPanelWithAggModule = aggPowerPerSolarPanelStream\n .join(aggPowerPerSolarModuleForJoinStream, SolarPanelAggregatorJoiner::new,\n JOIN_WINDOWS,\n Joined.with(WINDOWED_STRING_SERDE, SOLAR_PANEL_AGGREGATOR_SERDE,\n SOLAR_MODULE_AGGREGATOR_SERDE));\n\n // calculating sumSquare and deviance\n final KStream<Windowed<String>, SolarPanelAggregator> aggPowerPerSolarPanelFinalStream = joinedAggPanelWithAggModule\n .groupByKey(Grouped.with(WINDOWED_STRING_SERDE, SOLAR_PANEL_AGGREGATOR_JOINER_SERDE))\n .aggregate(SolarPanelAggregator::new,\n (key, value, aggregation) -> aggregation.updateFrom(value),\n Materialized.with(WINDOWED_STRING_SERDE, SOLAR_PANEL_AGGREGATOR_SERDE))\n .suppress(Suppressed.untilTimeLimit(DURATION, Suppressed.BufferConfig.unbounded()))\n .toStream();\n\n aggPowerPerSolarPanelFinalStream.foreach((k, v) -> log.info(\n \"PerSolarPanelFinal: [{}|{}]: power:{} count:{} squareSum:{} variance:{} deviance:{}\",\n k.window().endTime().getEpochSecond(), k.key(), v.getSumPower(), v.getCount(),\n v.getSquaresSum(), v.getVariance(), v.getDeviance()));\n\n // joining aggregated modules with aggregated panels in which calculated\n // sumSquare and deviance\n // need for check modules with anomaly power value\n final KStream<Windowed<String>, SolarModuleAggregatorJoiner> joinedAggModuleWithAggPanel = aggPowerPerSolarModuleStream\n .map((k, v) -> KeyValue.pair(new Windowed<>(k.key().getPanelName(), k.window()), v))\n .join(aggPowerPerSolarPanelFinalStream, SolarModuleAggregatorJoiner::new, JOIN_WINDOWS,\n Joined.with(WINDOWED_STRING_SERDE, SOLAR_MODULE_AGGREGATOR_SERDE,\n SOLAR_PANEL_AGGREGATOR_SERDE));\n\n joinedAggModuleWithAggPanel.foreach((k, v) -> {\n if (isAnomalyModule(v)) {\n log.info(\"ANOMALY module: [{}|{}|{}]: sumPower:{} panelAvg:{} deviance:{}\",\n k.window().endTime().getEpochSecond(), k.key(), v.getModuleName(),\n v.getSumPower(), v.getSolarPanelAggregator().getAvgPower(),\n v.getSolarPanelAggregator().getDeviance());\n }\n });\n\n // streaming result data (modules with anomaly power value)\n joinedAggModuleWithAggPanel.filter((k, v) -> isAnomalyModule(v))\n .map((k, v) -> KeyValue.pair(k.key(), v))\n .to(OUT_TOPIC, Produced.valueSerde(SOLAR_MODULE_AGGREGATOR_JOINER_SERDE));\n\n log.info(\"STARTING\");\n final KafkaStreams streams = new KafkaStreams(BUILDER.build(), getProperties());\n streams.cleanUp();\n streams.start();\n log.info(\"STARTED\");\n Runtime.getRuntime().addShutdownHook(new Thread(streams::close));\n }", "public static void main(String[] args) {\n\t\t Supplier<Personne> supplier = Personne::new;\n\t\t System.out.println(supplier.get());\n\t\t \n\t\t //constructeur avec plusieur parametre \n\t\t PersonneSupplier supplierP = Personne::new;\n\t\t Personne personne = supplierP.creerInstance(\"nom1\", \"prenom1\");\n\t\t System.out.println(personne);\n\t\t \n\t\t PersonneSupplier supplierP1 = (nom, prenom) -> new Personne(nom, prenom);\n\t\t Personne personneP1 = supplierP1.creerInstance(\"nom1\", \"prenom1\");\n\t\t System.out.println(personneP1);\n\t\t \n\t\t \n\t\t Supplier<Personne> supplier0 = () -> new Personne();\n\t\t Supplier<Personne> supplier1 = () -> new Personne(\"\",\"\");\n\t\t \n\t\t //Supplier<Integer> I0 = Integer::new;\n\t\t Supplier<Integer> I1 = () -> new Integer(0);\n\t\t //Supplier<String> I2 =(String s) -> new Integer(s);\n\t\t \n\t\t Supplier<ArrayList<Personne>> supplier5 = ArrayList<Personne>::new;\n\t\t Supplier<ArrayList<Personne>> supplier6 = () -> new ArrayList<Personne>(); \n\t\t \n\t\t //Supplier<String[]> supplier7 = String[]::new;\n\t\t //Supplier<> supplier8 = (int size) -> new String[size];\n\t\t \n\t\t \n\t\t //generic\n\t\t //MaFabrique<Integer[]> fabrique = Integer[]::new; \n\t\t //Integer[] entiers = fabrique.creerInstance(10);\n\t\t //System.out.println(\"taille = \"+entiers.length);\n\t\t \n\t\t \n\t\t \n\t\t }", "private List<SparkCollectorProvider> getCollectorsToRun() {\n if (externalCollectors == null) {\n if (userCollectors.size() == 0) { // run them all\n return Arrays.asList(SparkCollectors.values());\n }\n else { // run the user specified collectors\n List<SparkCollectorProvider> collectorsToRun = new ArrayList<>();\n collectorsToRun.addAll(userCollectors);\n return collectorsToRun;\n }\n }\n else { // run the external collectors\n return externalCollectors;\n }\n }", "@Test\n public void multipleProducerAndMultipleConsumerScenarioTest() throws InterruptedException, ExecutionException {\n List<Chunk> chunkList1 = new ArrayList<>();\n //generate chunks for producer 1\n int numOfChunksToUpload = 1000;\n while (numOfChunksToUpload > 0) {\n chunkList1.add(generateChunk(10));\n numOfChunksToUpload--;\n }\n\n //Calculate the cached price list for producer 1\n Map<String, Record> expectedPriceList = new HashMap<>();\n String expectedPrice;\n chunkList1.forEach((chunk) -> {\n Map<String, List<Record>> groupedRecords = chunk.getData().stream().collect(Collectors.groupingBy(Record::getId));\n groupedRecords.forEach((s, l) -> {\n l.sort(recordComparator);\n Record latestRecord = l.get(0);\n expectedPriceList.put(latestRecord.getId(), latestRecord);\n\n });\n\n });\n\n\n List<Chunk> chunkList2 = new ArrayList<>();\n //generate chunks for producer 2\n numOfChunksToUpload = 1000;\n while (numOfChunksToUpload > 0) {\n chunkList2.add(generateChunk(10));\n numOfChunksToUpload--;\n }\n\n //Calculate cached price list for producer 2\n Map<String, Record> cachedPriceList = new HashMap<>();\n chunkList2.forEach((chunk) -> {\n Map<String, List<Record>> groupedRecords = chunk.getData().stream().collect(Collectors.groupingBy(Record::getId));\n groupedRecords.forEach((s, l) -> {\n l.sort(recordComparator);\n Record latestRecord = l.get(0);\n cachedPriceList.put(latestRecord.getId(), latestRecord);\n\n });\n\n });\n\n //calculating expected price with both the producer's cached price list\n cachedPriceList.forEach((k, v) -> {\n Record originalRecord = expectedPriceList.get(k);\n if (originalRecord != null) {\n if (v.getAsOf().compareTo(originalRecord.getAsOf()) >= 0) {\n expectedPriceList.put(k, v);\n }\n } else {\n expectedPriceList.put(k, v);\n }\n });\n\n expectedPrice = String.valueOf(expectedPriceList.get(\"5\").getPayload().get(\"Price\"));\n log.info(\"Expected latest price: \" + expectedPrice);\n //Start the producer 1 thread\n ExecutorService executorService = Executors.newFixedThreadPool(4);\n ProducerThread producerThread1 = new ProducerThread(\"Producer1\", chunkList1, 100, new ApplicationService());\n Future<String> producerResult1 = executorService.submit(producerThread1);\n\n //Start the producer 2 thread\n ProducerThread producerThread2 = new ProducerThread(\"Producer2\", chunkList2, 100, new ApplicationService());\n Future<String> producerResult2 = executorService.submit(producerThread2);\n\n //Wait for both the batch run to start\n Thread.sleep(20);\n //Start a consumer thread to access the price while the batch is running\n Future<String> consumer1Result = executorService.submit(new ConsumerThread(\"Consumer1\", 1, new ApplicationService()));\n assertNull(consumer1Result.get());\n\n //Wait for all the batch runs to be completed\n if (ProducerConstants.BATCH_COMPLETION_MESSAGE.equals(producerResult1.get()) && ProducerConstants.BATCH_COMPLETION_MESSAGE.equals(producerResult2.get())) {\n //Start a consumer thread to access the price and then apply assertion to the expected and actual price\n Future<String> consumer2Result = executorService.submit(new ConsumerThread(\"Consumer2\", 5, new ApplicationService()));\n assertEquals(expectedPrice, consumer2Result.get());\n }\n executorService.shutdown();\n\n }", "int getCombine();", "static public void callForeachRDD (org.apache.spark.streaming.api.java.JavaDStream<byte[]> jdstream, org.apache.spark.streaming.api.python.PythonTransformFunction pfunc) { throw new RuntimeException(); }", "default EagerFutureStream<U> control(Function<Supplier<U>, Supplier<U>> fn) {\n\t\treturn (EagerFutureStream<U>) FutureStream.super.control(fn);\n\t}", "default <C extends Collection<U>> EagerFutureStream<C> batch(\n\t\t\tFunction<Supplier<U>, Supplier<C>> fn) {\n\t\treturn (EagerFutureStream<C>) FutureStream.super.batch(fn);\n\t}", "public static void main(String[] args) {\n Consumer<Integer> consumer = x ->{\n System.out.println(\"Number is :\"+x);\n };\n consumer.accept(55);\n //Supplier\n Supplier<String> str = () -> \"Implementation of Supplier \";\n System.out.println(str.get());\n //Predicate\n int a=37;\n Predicate<Integer> isOddPredicate = x -> x%2 != 0;\n System.out.println(\"Is \"+a+\" Odd Number :\"+isOddPredicate.test(a));\n //Function\n int b=7;\n Function<Integer,Integer> squareFunction = x -> x*x;\n System.out.println(\"Square of \"+b+\" is \"+squareFunction.apply(b));\n\n //Example\n List<Integer> list = List.of(12,9,13,4,6,2,4);\n Consumer<Integer> con = System.out::println;\n System.out.println(\"Example(Square of odd no.) : \");\n list.stream()\n .filter(isOddPredicate)\n .map(squareFunction)\n .forEach(con);\n\n\n\n }", "@BackpressureSupport(BackpressureKind.FULL)\n @SchedulerSupport(SchedulerKind.NONE)\n public final <R> Observable<R> scanWith(Supplier<R> seedSupplier, BiFunction<R, ? super T, R> accumulator) {\n Objects.requireNonNull(seedSupplier, \"seedSupplier is null\");\n Objects.requireNonNull(accumulator, \"accumulator is null\");\n return lift(new OperatorScanSeed<T, R>(seedSupplier, accumulator));\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic static <CollectedFact> Stream<CollectedFact> addToStream(\n\t\t\tStream<CollectedFact> stream, Stream<CollectedFact> stream2) {\n\t\tList<CollectedFact> result = stream.collect(Collectors.toList()); // error\n\t\tresult.addAll(stream2.collect(Collectors.toList()));\n//\t\tresult.forEach(System.out::println);\n\t\t\n\t\t\n\t\t//code to save to an Output File\n\t\t List<String> strList = result.stream().distinct().map(Object::toString)\n\t\t\t\t.collect(Collectors.toList());\n\n\t\ttry {\n\t\t\tFiles.write(Paths.get(outputFileName),\n\t\t\t\t\t(Iterable<String>) strList.stream()::iterator);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn result.stream();\n\t}", "@Test\n public void supplierCompletableFutureTest3() throws ExecutionException, InterruptedException {\n CompletableFuture<Void> cf1 = CompletableFuture.supplyAsync(() -> PiCalculator.computePi(400).toString()).thenAccept(s -> {\n this.result = s;\n });\n CompletableFuture<Void> cf2 = CompletableFuture.supplyAsync(() -> PiCalculator.computePi(40).toString()).thenAccept(s -> {\n this.result = s;\n });\n\n CompletableFuture<Void> cfAll = CompletableFuture.allOf(cf1, cf2);\n\n // Wacht tot taak klaar is\n cfAll.get();\n\n Assert.assertThat(result, Matchers.is(\"3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094\"));\n }", "default Tuple2<Optional<U>, EagerFutureStream<U>> splitAtHeadFutureStream() {\n\t\tTuple2 split = splitAtHead();\n\t\treturn split;\n\t}", "default <T> EagerFutureStream<T> switchToCPU(EagerFutureStream<T> stream){\n\t\tEagerReact react = EagerReactors.cpuReact;\n\t\treturn stream.withTaskExecutor(react.getExecutor()).withRetrier(react.getRetrier());\n\t}", "public interface EagerReactive {\n\t/**\n\t * Add a value to an simple-react Async.Adapter (Queue / Topic /Signal) if present\n\t * Returns the Adapter wrapped in an Optional\n\t * \n\t * @see Pipes#register(Object, com.aol.simple.react.async.Adapter)\n\t * \n\t * @param key : identifier for registered Queue\n\t * @param value : value to add to Queue\n\t */\n\tdefault <K,V> Optional<Adapter<V>> enqueue(K key,V value){\n\t\tOptional<Adapter<V>> queue = Pipes.get(key);\n\t\tqueue.map(adapter -> adapter.offer(value));\n\t\n\t\treturn queue;\n\t\t\n\t\t\n\t}\n\t\n\t\n\t/**\n\t * \n\t * Generate a sequentially executing single-threaded a EagerFutureStream that executes all tasks directly without involving\n\t * a task executor between each stage (unless async operator invoked). A preconfigured EagerReact builder that will be supplied as\n\t * input to the function supplied. The user Function should create a EagerFutureStream with any\n\t * business logic stages predefined. This method will handle elastic scaling and pooling of Executor\n\t * services. User code should call a terminal op on the returned EagerFutureStream\n\t * \n\t * \n\t * @param react Function that generates a EagerFutureStream from a EagerReact builder\n\t * @return Generated EagerFutureStream\n\t */\n\tdefault <T> EagerFutureStream<T> sync(Function<EagerReact,EagerFutureStream<T>> react){\n\t\t EagerReact r =SequentialElasticPools.eagerReact.nextReactor().withAsync(false);\n\t\t return react.apply( r)\n\t\t\t\t \t.onFail(e->{ SequentialElasticPools.eagerReact.populate(r); throw e;})\n\t\t\t\t \t.peek(i->SequentialElasticPools.eagerReact.populate(r));\n\t\t \t\t\t\t \t\n\t}\n\t\n\t/**\n\t * Switch EagerFutureStream into execution mode suitable for IO (reuse ioReactors task executor)\n\t * \n\t * @param stream to convert to IO mode\n\t * @return EagerFutureStream in IO mode\n\t */\n\tdefault <T> EagerFutureStream<T> switchToIO(EagerFutureStream<T> stream){\n\t\tEagerReact react = EagerReactors.ioReact;\n\t\treturn stream.withTaskExecutor(react.getExecutor()).withRetrier(react.getRetrier());\n\t}\n\t/**\n\t * Switch EagerFutureStream into execution mode suitable for CPU bound execution (reuse cpuReactors task executor)\n\t * \n\t * @param stream to convert to CPU bound mode\n\t * @return EagerFutureStream in CPU bound mode\n\t */\n\tdefault <T> EagerFutureStream<T> switchToCPU(EagerFutureStream<T> stream){\n\t\tEagerReact react = EagerReactors.cpuReact;\n\t\treturn stream.withTaskExecutor(react.getExecutor()).withRetrier(react.getRetrier());\n\t}\n\t/**\n\t * @return Stream builder for IO Bound Streams\n\t */\n\tdefault OptimizedEagerReact ioStream(){\n\t\treturn new OptimizedEagerReact(EagerReactors.ioReact);\n\t}\n\t/**\n\t * @return Stream builder for CPU Bound Streams\n\t */\n\tdefault OptimizedEagerReact cpuStream(){\n\t\treturn new OptimizedEagerReact(EagerReactors.cpuReact);\n\t}\n\t/**\n\t * Generate a multi-threaded EagerFutureStream that executes all tasks via \n\t * a task executor between each stage (unless sync operator invoked). \n\t * A preconfigured EagerReact builder that will be supplied as\n\t * input to the function supplied. The user Function should create a EagerFutureStream with any\n\t * business logic stages predefined. This method will handle elastic scaling and pooling of Executor\n\t * services. User code should call a terminal op on the returned EagerFutureStream\n\t * \n\t * \n\t * @param react Function that generates a EagerFutureStream from a EagerReact builder\n\t * @return Generated EagerFutureStream\n\t */\n\tdefault <T> EagerFutureStream<T> async(Function<EagerReact,EagerFutureStream<T>> react){\n\t\t EagerReact r =ParallelElasticPools.eagerReact.nextReactor().withAsync(true);\n\t\treturn react.apply( r)\n\t\t\t\t\t.onFail(e->{ SequentialElasticPools.eagerReact.populate(r); throw e;})\n\t\t\t\t\t.peek(i->SequentialElasticPools.eagerReact.populate(r));\n\t\t \t\n\t}\n\t\n\t\n\t\n}", "public static void main(String[] args) {\n ArrayList<Double> myList = new ArrayList<>();\n\n myList.add(7.0);\n myList.add(18.0);\n myList.add(10.0);\n myList.add(24.0);\n myList.add(17.0);\n myList.add(5.0);\n\n double productOfSqrRoots = myList.parallelStream().reduce(\n 1.0,\n (a, b) -> a * Math.sqrt(b),\n (a, b) -> a * b\n );\n\n System.out.println(\"Product of square roots: \" + productOfSqrRoots);\n\n\n // This won't work. !! VERY HARD TO UNDERSTAND !!\n // In this version of reduce(), ACCUMULATOR and COMBINER function are one and the same.\n // This results in an error because when TWO PARTIAL RESULTS ARE COMBINED, THEIR SQUARE\n // ROOTS ARE MULTIPLIED TOGETHER RATHER THAN THE PARTIAL RESULTS, themselves.\n double productOfSqrRoots2 = myList.parallelStream().reduce(\n 1.0,\n (a, b) -> a * Math.sqrt(b)\n );\n\n System.out.println(productOfSqrRoots2);\n }", "default <T> EagerFutureStream<T> async(Function<EagerReact,EagerFutureStream<T>> react){\n\t\t EagerReact r =ParallelElasticPools.eagerReact.nextReactor().withAsync(true);\n\t\treturn react.apply( r)\n\t\t\t\t\t.onFail(e->{ SequentialElasticPools.eagerReact.populate(r); throw e;})\n\t\t\t\t\t.peek(i->SequentialElasticPools.eagerReact.populate(r));\n\t\t \t\n\t}", "interface Processor <T> {\n\n /**\n * Generates a feature for a source and its relevant method.\n *\n * @param source source to be processed.\n * @return a new feature.\n */\n T from(Source source);\n\n /**\n * Pre-computes a list of features to be fed into the processor.\n *\n * @param sources a set of source objects implementing a similar functionality.\n * @return a new list of features for a set of source objects and its relevant method names.\n */\n default Set<T> from(Set<Source> sources){\n return sources.stream()\n .map(this::from)\n .collect(Collectors.toSet());\n }\n\n /**\n * Process a typicality query. A typicality query finds the top k most typical\n * implementation of some functionality in a set of implementations with similar\n * functionality.\n *\n * @param topK k most typical/representative source objects, where k cannot\n * be greater than the size of the sources set.\n * @param sources a set of source objects implementing a similar functionality.\n * @return a list of relevant source objects, ranked by some given score. Different\n * scores will be implemented by the implementors of this type.\n * @throws IllegalArgumentException if topK > Size(sources)\n */\n List<Source> process(int topK, Set<Source> sources);\n }", "@io.reactivex.annotations.CheckReturnValue\n @io.reactivex.annotations.BackpressureSupport(io.reactivex.annotations.BackpressureKind.FULL)\n @org.jetbrains.annotations.NotNull\n @io.reactivex.annotations.SchedulerSupport(\"none\")\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public static final <T, R> io.reactivex.Flowable<kotlin.Pair<T, R>> combineLatest(@org.jetbrains.annotations.NotNull io.reactivex.Flowable<T> r2, @org.jetbrains.annotations.NotNull io.reactivex.Flowable<R> r3) {\n /*\n java.lang.String r0 = \"$receiver\"\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r2, r0)\n java.lang.String r0 = \"flowable\"\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r3, r0)\n org.a.b r2 = (org.a.b) r2\n org.a.b r3 = (org.a.b) r3\n io.reactivex.rxkotlin.FlowableKt$combineLatest$2 r0 = io.reactivex.rxkotlin.FlowableKt$combineLatest$2.INSTANCE\n kotlin.jvm.functions.Function2 r0 = (kotlin.jvm.functions.Function2) r0\n if (r0 == 0) goto L_0x001a\n io.reactivex.rxkotlin.FlowableKt$sam$io_reactivex_functions_BiFunction$0 r1 = new io.reactivex.rxkotlin.FlowableKt$sam$io_reactivex_functions_BiFunction$0\n r1.<init>(r0)\n r0 = r1\n L_0x001a:\n io.reactivex.functions.BiFunction r0 = (io.reactivex.functions.BiFunction) r0\n io.reactivex.Flowable r2 = io.reactivex.Flowable.combineLatest((org.a.b<? extends T1>) r2, (org.a.b<? extends T2>) r3, (io.reactivex.functions.BiFunction<? super T1, ? super T2, ? extends R>) r0)\n java.lang.String r3 = \"Flowable.combineLatest(t…able, BiFunction(::Pair))\"\n kotlin.jvm.internal.Intrinsics.checkExpressionValueIsNotNull(r2, r3)\n return r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: io.reactivex.rxkotlin.FlowableKt.combineLatest(io.reactivex.Flowable, io.reactivex.Flowable):io.reactivex.Flowable\");\n }", "default Stream<Sketch> components() {\n return StreamExt.iterate(1, size(), 1).mapToObj(this::component).map(Optional::get);\n }", "public void rc(){\n List<Integer> numbers = new ArrayList<>();\n var result = List.of(1,2,3,4,5,6,7,8,9,10);\n result\n .parallelStream()\n .forEach(number->addToList(numbers,number));\n print.accept(numbers);\n }", "public default <ANOTHER> StreamPlus<Tuple2<DATA, ANOTHER>> zipWith(Stream<ANOTHER> anotherStream) {\n return zipWith(anotherStream, RequireBoth, Tuple2::of);\n }", "@Test\r\n\tvoid mapMethod() {\r\n\t\tStream<TransactionBean> transactionBeanStream = transactions.stream();\r\n\t\tStream<Integer> streamInteger = transactionBeanStream.peek(System.out::println).map(TransactionBean::getId);\r\n\t\tList<Integer> afterStreamList = streamInteger.peek(System.out::println).collect(Collectors.toCollection(ArrayList::new));\r\n\t\tassertSame(\"wrong value\", 1, afterStreamList.get(0).intValue());\r\n\t\tassertSame(\"wrong value\", 2, afterStreamList.get(1).intValue());\r\n\t\tassertSame(\"wrong value\", 3, afterStreamList.get(2).intValue());\r\n\t}", "boolean supportsParallelExtract();", "@Test\n public void intermediateAndTerminalOperations() throws Exception {\n System.out.println(\n MockData.getCars()\n // Here we go to \"abstraction\" of strams\n .stream()\n // This is an intermediate op because we stay in the abstraction\n .filter(car -> {\n System.out.println(\"filter car \" + car);\n return car.getPrice() < 10000;\n })\n // This is intermediate too, we still working with streams \"abstraction\"\n .map(car -> {\n System.out.println(\"mapping car \" + car);\n return car.getPrice();\n })\n // same as before, still intermediate, still in streams abstraction\n .map(price -> {\n System.out.println(\"mapping price \" + price);\n return price + (price * .14);\n })\n // ok, this is a terminal operation and give you back the \"concrete type\" result of the operations\n .collect(Collectors.toList())\n );\n\n // Q: If you comment this line, no result is printed, you got only stram reference, why?\n // A: STREAMS are LAZY initialized\n\n // Q: What's the order of execution in the above code?\n // A: See the console print to understand order of execution:\n // The mappings are executed as soon as the first car passes the filter\n // so to get some results, stream don't need to filter ALL the list before\n\n }", "public Remote.Supplier<SortedSet<E>> getSupplier()\n {\n return m_supplier == null ? DEFAULT_SUPPLIER : m_supplier;\n }", "static <S, F> ConsumableFunction<Result<S, F>> onSuccessDo(Consumer<S> consumer) {\n return r -> r.then(onSuccess(peek(consumer)));\n }", "public Supplier() {\r\n\t\tsuper();\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "public static <A, B, C> Function<A, C> combine(Function<A, B> functionOne, Function<B, C> functionTwo) {\n// return functionTwo.compose(functionOne);\n return (A a) -> functionTwo.apply(functionOne.apply(a));\n }", "@Test\n public void testGetNextCulturalObjectByStreamMethod() {\n Multimap<Long, CulturalObject> multimap = ArrayListMultimap.create();\n IntStream.range(0, NUMBER_OF_EXECUTIONS).parallel().forEach(i -> {{\n CulturalObject co = cardService.getNextCulturalObject(null);\n if (co != null) {\n multimap.put(co.getId(), co);\n }\n }});\n\n double[] sizes = multimap.keySet().stream().mapToDouble(aLong -> (double) multimap.get(aLong).size()).toArray();\n StandardDeviation std = new StandardDeviation();\n assertThat(std.evaluate(sizes), is(closeTo(0.0, 0.5)));\n\n }", "default LazyFutureStream<U> convertToLazyStream(){\n\t\treturn new LazyReact(getTaskExecutor()).withRetrier(getRetrier()).fromStream((Stream)getLastActive().stream());\n\t}", "protected abstract List<List<SearchResults>> processStream();", "default EagerFutureStream<Tuple2<U,Long>> zipFuturesWithIndex() {\n\n\t\tSeq seq = Seq.seq(getLastActive().stream().iterator()).zipWithIndex();\n\t\tSeq<Tuple2<CompletableFuture<U>,Long>> withType = (Seq<Tuple2<CompletableFuture<U>,Long>>)seq;\n\t\tStream futureStream = fromStreamOfFutures((Stream)withType.map(t -> t.v1.thenApply(v -> \n\t\t\t\t\t\t\tTuple.tuple(t.v1.join(),t.v2))));\n\t\treturn (EagerFutureStream<Tuple2<U,Long>>)futureStream;\n\t\t\n\t}", "private static <T> Supplier<T> memoize(Supplier<T> supplier) {\n return null;\n }", "private static void doParallelStream() {\n ArrayList<Person> personCopy = new ArrayList<>(person);\n long l = System.currentTimeMillis();\n long ans = personCopy.parallelStream().filter(p -> p.getHeight() > 180).count();\n System.out.println(\"doParallelStream(): \" + ans);\n long e = System.currentTimeMillis();\n System.out.println(\"Cost time: \" + (e - l) + \"ms\");\n System.out.println(\"----------------------------\");\n }", "void setSupplier(Supplier<Number> supplier);", "@Test\n public void flatMapExample() {\n final Book book1 = new Book(\"Java EE 7 Essentials\", 2013, Arrays.asList(\"Arun Gupta\"));\n final Book book2 = new Book(\"Algorithms\", 2011, Arrays.asList(\"Robert Sedgewick\", \"Kevin Wayne\"));\n final Book book3 = new Book(\"Clean code\", 2014, Arrays.asList(\"Robert Martin\"));\n final List<String> expectedAuthors =\n Arrays.asList(\"Arun Gupta\", \"Robert Sedgewick\", \"Kevin Wayne\", \"Robert Martin\");\n\n final List<Book> javaBooks = Stream.of(book1, book2, book3).collect(Collectors.toList());\n\n final List<String> actualAuthors = javaBooks.stream()\n .flatMap(book -> book.getAuthors().stream())\n .distinct()\n .collect(Collectors.toList());\n\n Assert.assertEquals(actualAuthors.size(), expectedAuthors.size());\n actualAuthors.forEach(book -> Assert.assertTrue(expectedAuthors.contains(book)));\n }", "@Override\r\n protected void compute() {\r\n //if count != 0 || splitA.length == 1 then go, else for loop to make splitA.length subtasks to run splitArrayB and then they all call mergeAB\r\n if(global_count == 0){\r\n splitArrayB();\r\n }\r\n if(global_count != 0 || splitA.length == 1){\r\n mergeAB();\r\n }\r\n else{\r\n List<ConcurrentMerge> subtasks = new ArrayList<>();\r\n ConcurrentMerge temp;\r\n for(int i = 0; i < splitA.length; i++){\r\n global_count++;\r\n temp = new ConcurrentMerge(A, B, splitA, splitB, C, global_count);\r\n subtasks.add(temp);\r\n }\r\n invokeAll(subtasks);\r\n }\r\n }", "@Test (dependsOnMethods = \"consumerWithForEach\")\n public void consumerChaining(){\n Consumer <String> dbConsumer = s -> System.out.println(\"Logging to db :: \" + s);\n Consumer <String> consoleConsumer = s -> System.out.println(\"Logging to console :: \" + s);\n Consumer <String> dbConsoleConsumer = dbConsumer.andThen(consoleConsumer);\n allDrivers.forEach(dbConsoleConsumer);\n allDrivers.forEach(dbConsumer.andThen(consoleConsumer));\n\n Map<String, Consumer<String> > consumerMap = new HashMap<>();\n consumerMap.put(\"db\",dbConsumer);\n consumerMap.put(\"console\",consoleConsumer);\n consumerMap.put(\"dbConsole\", dbConsoleConsumer);\n\n allDrivers.forEach(consumerMap.get(System.getProperty(\"consumer-type\")));\n\n\n }", "@FunctionalInterface\npublic interface BufferedReaderProcessor {\n String process(BufferedReader b) throws IOException;\n \n}" ]
[ "0.5659964", "0.5656613", "0.5644442", "0.53442085", "0.5344207", "0.5243108", "0.51189727", "0.506132", "0.50355875", "0.50310963", "0.5027017", "0.50235957", "0.5001776", "0.49321023", "0.49257058", "0.49249107", "0.49100238", "0.4891923", "0.48881358", "0.48396015", "0.4828181", "0.48061484", "0.4776012", "0.47111017", "0.47091305", "0.4703259", "0.47023213", "0.46858045", "0.46820006", "0.46786952", "0.466816", "0.46568504", "0.46390742", "0.46305844", "0.46179563", "0.4613483", "0.4569262", "0.45690623", "0.4561944", "0.4551861", "0.4544876", "0.45428464", "0.45371383", "0.4534585", "0.45232198", "0.45216635", "0.45057908", "0.44990388", "0.4496709", "0.44881707", "0.44855848", "0.4481009", "0.44741914", "0.4471595", "0.44693917", "0.4469258", "0.4455137", "0.4444754", "0.4443033", "0.44427627", "0.44314942", "0.44202924", "0.44121927", "0.44053078", "0.43993974", "0.439849", "0.4398282", "0.43956384", "0.43927634", "0.4375689", "0.43695366", "0.4359538", "0.43500894", "0.43472946", "0.4342856", "0.43300992", "0.43204048", "0.43203178", "0.43187365", "0.43186378", "0.4315381", "0.4308337", "0.43075016", "0.4303006", "0.4299389", "0.42873126", "0.42871508", "0.42709982", "0.4268423", "0.4266941", "0.4262207", "0.42615646", "0.4258508", "0.42545483", "0.42474294", "0.42409787", "0.4238808", "0.4236128", "0.42254823", "0.42227888" ]
0.4866761
19
finisher() performs a final transformation from the supplier type to the final reduced type.
@Override public Function<List<Integer>, Integer> finisher() { return resultList -> resultList.get(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Function<TradeAccumulator, Set<Trade>> finisher() {\n return (accum) -> {return accum.toSet();};\n }", "@Override\n public Function<ObjectNode, ObjectNode> finisher() {\n return Function.identity();\n }", "public <IntermediateType> ConditionalEnd<In, CurrentType, IntermediateType, MutableConstructionStep<In, IntermediateType, Out>> given(\n Predicate<? super CurrentType> predicate,\n Supplier<? extends IntermediateType> supplier\n ) {\n return given(predicate, (in, v) -> supplier.get());\n }", "public void getSupplier(Supplier supplier) {\n\t\r\n}", "public void clearSupplier()\n // -end- 335C0D7A02E4 remove_all_head327A646F00E6 \"Dependency::clearSupplier\"\n ;", "public ModelElement removeSupplier(ModelElement supplier1)\n // -end- 335C0D7A02E4 remove_head327A646F00E6 \"Dependency::removeSupplier\"\n ;", "@FunctionalInterface\n public interface Demolisher {\n void demolish(BuildingModel building);\n }", "public Supplier() {\r\n\t\tsuper();\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "@BackpressureSupport(BackpressureKind.UNBOUNDED_IN)\n @SchedulerSupport(SchedulerKind.NONE)\n public final <R> Observable<R> reduceWith(Supplier<R> seedSupplier, BiFunction<R, ? super T, R> reducer) {\n return scanWith(seedSupplier, reducer).last();\n }", "private static <T> Supplier<T> memoize(Supplier<T> supplier) {\n return null;\n }", "public void setSupplier(Supplier supplier) {\n this.supplier = supplier;\n }", "@Override\n\t\tpublic void complete(SupplierCompletionContext context) throws Exception {\n\t\t\tthrow new IllegalStateException(\"Mock \" + SupplierCompileCompletion.class.getSimpleName() + \" for \"\n\t\t\t\t\t+ SupplierTypeBuilder.class.getSimpleName() + \" can not be used\");\n\t\t}", "@Override\n public Interface_SupplierReadOnly getSupplier() {\n return supplier;\n }", "public void deleteSupplier(Supplier e){ \n\t template.delete(e); \n\t}", "public static void main(String[] args) {\n Consumer<Integer> consumer = x ->{\n System.out.println(\"Number is :\"+x);\n };\n consumer.accept(55);\n //Supplier\n Supplier<String> str = () -> \"Implementation of Supplier \";\n System.out.println(str.get());\n //Predicate\n int a=37;\n Predicate<Integer> isOddPredicate = x -> x%2 != 0;\n System.out.println(\"Is \"+a+\" Odd Number :\"+isOddPredicate.test(a));\n //Function\n int b=7;\n Function<Integer,Integer> squareFunction = x -> x*x;\n System.out.println(\"Square of \"+b+\" is \"+squareFunction.apply(b));\n\n //Example\n List<Integer> list = List.of(12,9,13,4,6,2,4);\n Consumer<Integer> con = System.out::println;\n System.out.println(\"Example(Square of odd no.) : \");\n list.stream()\n .filter(isOddPredicate)\n .map(squareFunction)\n .forEach(con);\n\n\n\n }", "public static void main(String[] args) {\n // Predicates\n Predicate<ClassA> isNull = Objects::isNull;\n ClassA aObj = null;\n System.out.println(isNull.test(aObj));\n System.out.println(\"----------------------\");\n\n Function<Integer, String> toString = String::valueOf;\n System.out.println(toString.apply(10));\n System.out.println(\"------------------------\");\n\n Supplier<String> supplier = () -> \"hello\";\n System.out.println(supplier.get());\n System.out.println(\"------------------------\");\n\n\n Consumer<String> consumer = (a) -> System.out.println(a);\n consumer.accept(\"Hello from Consumer interface method accept\");\n System.out.println(\"------------------------\");\n\n\n }", "public interface Reducer<T, U> {\n U reduce(U collector, T item);\n}", "public interface FunctionalFilterCustomer<T> {\n boolean verify(T t);\n}", "public synchronized void fulfill(Supplier<T> operation) {\n try {\n T value = operation.get();\n resolve(value);\n } catch (Exception e) {\n reject(e);\n }\n }", "interface SupplierInterfaceDemo<T> {\n public T get();\n }", "public Remote.Supplier<SortedSet<E>> getSupplier()\n {\n return m_supplier == null ? DEFAULT_SUPPLIER : m_supplier;\n }", "public static <E, F> ClosableIterator<F> apply(ClosableIterator<? extends E> iter, Function<? super E, ? extends F> f) {\r\n \treturn apply(f, iter);\n }", "public void done(Class<?> cls) {\n inProcess.remove(cls);\n }", "@Override\n public void deriveSmartValues(String type, Object payload, BiConsumer<String, Object> derivedSmartValueCollector) {\n }", "public String getSupplier() {\n return supplier;\n }", "Supplier<Number> getSupplier();", "public static <T> Flux<T> narrow(final Higher<flux, T> completableFlux) {\n \n return ((FluxKind<T>)completableFlux).narrow();\n \n \n\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Supplier test\");\n\t\tSupplier<String> stringSupp = () -> \"test\"; \n\t\tSystem.out.println(stringSupp.get());\n\t\t\t\t\n\t\t// used as a factory\n\t\tSupplier<Integer> intSupp5 = () -> {return new Integer(5);};\t\t\t\t\n\t\tSupplier<Map> hashMapSupp = () -> new HashMap<>();\n\t\t// using a Method Reference\n\t\tSupplier<Map> hashMapSuppMF = HashMap::new;\n\t\t\t\t\t\t\t\t\n\t\t// *** consumer --> Consumer<T> cons = t -> {};\n\t\tSystem.out.println(\"\\nConsumer test\");\n\t\tConsumer cons = t -> {};\n\t\tConsumer<String> commaStringOut = s -> System.out.print(s + \", \");\n\t\tcommaStringOut.accept(\"This is a test\");\n\t\tSystem.out.println(\"\");\n\t\t\n\t\t// andThen - returns a composed Consumer\n\t\tConsumer<String> suffixStringOut = s -> System.out.println(\"of lambdas\");\t\t\n\t\tcommaStringOut.andThen(suffixStringOut).accept(\"This is a test\");\t\n\t\t\n//\t\tConsumer<String> fullStringOut = commaStringOut.andThen(suffixStringOut);\n//\t\tfullStringOut.accept(\"This is a test\");\n\n\t\t// *** function --> Function(T,T) func = t -> t;\n\t\tSystem.out.println(\"\\nFunction test\");\n\t\tFunction func = t -> t;\n\t\t\t\t\n\t\tFunction<String, Integer> stringLength = (s) -> s.length();\n\t\tSystem.out.println(stringLength.apply(\"Hello world\"));\n\t\t\n\t\t// andThen\n\t\tSystem.out.println(\"andThen test\");\n\t\tFunction<Integer, Boolean> lowerThanTen = (i) -> i < 10;\t\t\t\t\n\t\tFunction<String, Boolean> function = stringLength.andThen(lowerThanTen);\n\t\t// Will print false\n\t\tSystem.out.println(function.apply(\"Hello world\"));\n\n\t\t// compose \n\t\tSystem.out.println(\"compose test\");\n\t\tFunction<Integer, Integer> times2 = e -> e * 2;\n\t\tFunction<Integer, Integer> squared = e -> e * e;\n\t\t\n\t\t// returns 64\n\t\tSystem.out.println(times2.andThen(squared).apply(4));\t\n\t\t\n\t\t// returns 32\n\t\tSystem.out.println(times2.compose(squared).apply(4));\t\n\t\t\n\t\t// identity \n\t\tFunction<String,String> strIdenityFunc = Function.identity();\n\t\tSystem.out.println(strIdenityFunc.apply(\"Identity Test\"));\t\n\t\t\n\t\t// *** predicate --> Predicate<T> pred = t -> 1 == 1;\n\t\tSystem.out.println(\"\\nPredicate test\");\n\t\tPredicate<String> lengthTest5 = (s)-> s.length() > 5;\n\t\tSystem.out.println(lengthTest5.test(\"longer than 5 test \"));\n\t\t\n\t\t// and\n\t\tSystem.out.println(\"and test\");\n\t\tPredicate<String> startsWith = (s)-> s.startsWith(\"t\");\n\t\tSystem.out.println(lengthTest5.and(startsWith).test(\"longer than 5 test \"));\n\n\t\t// or\n\t\tSystem.out.println(\"or test\");\n\t\tSystem.out.println(lengthTest5.or(startsWith).test(\"longer than 5 test \"));\n\t\t\n\t\t// negate\n\t\tSystem.out.println(\"negate test\");\n\t\tSystem.out.println(startsWith.negate().test(\"longer than 5 test \"));\n\t\t\n\t\t// isEqual\n\t\tSystem.out.println(\"isEquale test\");\n\t Predicate<String> strEqual = Predicate.isEqual(\"asdf\");\n\t \n\t System.out.println(strEqual.test(\"basddfs\"));\n\t System.out.println(strEqual.test(\"asdf\"));\n\t}", "public jkt.hms.masters.business.MasStoreSupplier getSupplier () {\n\t\treturn supplier;\n\t}", "public static <F> F fieldSetFromByteStream(Supplier<F> supplier, Map<String,Field<?>> fieldByPrefixedName,\n\t\t\tInputStream is) throws IOException{\n\t\tint databeanLength = VarInt.fromInputStream(is).getValue();\n\t\treturn fieldSetFromByteStreamKnownLength(supplier, fieldByPrefixedName, is, databeanLength);\n\t}", "public void updateSupplier(Supplier e){ \n\t template.update(e); \n\t}", "@Override\n\tprotected ProducedData performs() {\n\t\treturn null;\n\t}", "@Override\n\tprotected ElderMood transformOne(ElderFrequency in) {\n\t\treturn null;\n\t}", "void setSupplier(Supplier<Number> supplier);", "public void deliver() {\n try {\n Interest pending = null;\n ArrayList<Interest> pendingExtra = null;\n CCNFilterListener listener = null;\n synchronized (this) {\n if (null != this.interest && null != this.listener) {\n pending = interest;\n interest = null;\n if (null != this.extra) {\n pendingExtra = extra;\n extra = null;\n }\n }\n listener = (CCNFilterListener) this.listener;\n }\n if (null != pending) {\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.FINER)) Log.finer(Log.FAC_NETMANAGER, \"Filter callback for: {0}\", prefix);\n listener.handleInterest(pending);\n if (null != pendingExtra) {\n int countExtra = 0;\n for (Interest pi : pendingExtra) {\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.FINER)) {\n countExtra++;\n Log.finer(Log.FAC_NETMANAGER, \"Filter callback (extra {0} of {1}) for: {2}\", countExtra, pendingExtra.size(), prefix);\n }\n listener.handleInterest(pi);\n }\n }\n } else {\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.FINER)) Log.finer(Log.FAC_NETMANAGER, \"Filter callback skipped (no interests) for: {0}\", prefix);\n }\n } catch (RuntimeException ex) {\n _stats.increment(StatsEnum.DeliverInterestFailed);\n Log.warning(Log.FAC_NETMANAGER, \"failed to deliver interest: {0}\", ex);\n Log.warningStackTrace(ex);\n }\n }", "private static void useSupplier(Supplier<Integer> expression){}", "public static <E, F> ClosableIterator<F> apply(Function<? super E, ? extends F> f, ClosableIterator<? extends E> iter) {\r\n \treturn new MappedClosableIterator<E, F>(iter, f);\n }", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic Generator<T> transform(Generator<T> generator)\n\t{\n\t\tCollection<T> elements = generator.toCollection();\n\t\tif (elements.isEmpty())\n\t\t{\n\t\t\treturn Generator.emptyGenerator();\n\t\t}\n\t\tfinal T best = Collections.max(elements, cmp);\n\t\t// return the best and ties for the best\n\t\treturn EachElement.from(elements).select(new UnaryPredicate<T>()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic boolean test(T next)\n\t\t\t{\n\t\t\t\treturn cmp.compare(best, next) == 0;\n\t\t\t}\n\t\t});\n\t}", "public DeclaredType getClassFromAnnotationMethod(Supplier<Class<?>> supplier) {\n\t\ttry {\n\t\t\treturn (DeclaredType) of(supplier.get());\n\t\t} catch (MirroredTypeException e) {\n\t\t\t// types WILL be declared\n\t\t\treturn (DeclaredType) e.getTypeMirror();\n\t\t}\n\t}", "public List<UserSupplier> completeSupplier(String query) {\n List<UserSupplier> userSuppliers = user.getUserSuppliers();\n\n List<UserSupplier> suppliers = new ArrayList<>();\n for (UserSupplier userSupplier : userSuppliers) {\n if (userSupplier.getSupplier().getLabel().startsWith(query)) {\n suppliers.add(userSupplier);\n }\n }\n return suppliers;\n }", "public static <E, F> Iterator<F> apply(Iterator<? extends E> iter, Function<? super E, ? extends F> f) {\r\n \treturn apply(f, iter);\n }", "void apply(FnIntFloatToFloat lambda);", "public void setSupplier (jkt.hms.masters.business.MasStoreSupplier supplier) {\n\t\tthis.supplier = supplier;\n\t}", "public maestro.payloads.FlyerFeaturedItem.Builder clearType() {\n type = null;\n fieldSetFlags()[0] = false;\n return this;\n }", "@FunctionalInterface\npublic interface SupplierInterrupted<T>\n\t{\n\t\n\t/**\n\t * Gets a result.\n\t *\n\t * @return a result\n\t *\n\t * @throws InterruptedException\n\t * \tthe interrupted exception\n\t * @throws ExecutionException\n\t * \tthe execution exception\n\t * @throws TimeoutException\n\t * \tthe timeout exception\n\t */\n\tT get()\n\tthrows InterruptedException, ExecutionException, TimeoutException;\n\t}", "public interface Decomposable{\n\t\n\t\n\tdefault <T> T unwrap(){\n\t\treturn (T)this;\n\t}\n\t/**\n\t * @return Values of the fields of this Decomposable instance\n\t */\n\t@SuppressWarnings(\"unchecked\")\n\tdefault <I extends Iterable<?>> I unapply(){\n\t\t\n\t\tif(unwrap() instanceof Iterable)\n\t\t\treturn (I)unwrap();\n\t\ttry {\n\t\t\t\n\t\t\treturn (I)ReflectionCache.getFields(unwrap().getClass()).stream().map(f ->{\n\t\t\t\ttry {\n\t\t\t\t\n\t\t\t\t\treturn f.get(unwrap());\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tthrow ExceptionSoftener.throwSoftenedException(e);\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t}\n\t\t\t}).collect(Collectors.toList());\n\t\t} catch (Exception e) {\n\t\t\tthrow ExceptionSoftener.throwSoftenedException(e);\n\t\t\t\n\t\t}\n\t\t\n\t}\n\t\n\t\n}", "ReduceType reduceInit();", "void doFinal(InputProcessorChain inputProcessorChain) throws XMLStreamException, XMLSecurityException;", "<R> Streamlet<R> newSource(SerializableSupplier<R> supplier);", "public void forFilter(Consumer<Ytelse> consumer) {\n getAlleYtelser().forEach(consumer);\n }", "@SafeVarargs\n public final <T> T of(Supplier<T>... suppliers) {\n return suppliers[random.nextInt(0, suppliers.length - 1)].get();\n }", "public ProvideAndRegisterDocumentSetType extract() throws MetadataExtractionException {\t\t\n\t\t// load package (EMF)\n\t\tif(logger.isDebugEnabled()){\n\t\t\tlogger.debug(\"Loading MetadataPackage.\");\n\t\t}\n\t\tMetadataPackage metadataPackage = MetadataPackage.eINSTANCE;\n\t\t\n\t\t// load resources\n\t\tif(logger.isDebugEnabled()){\n\t\t\tlogger.debug(\"Loading Resources.\");\n\t\t}\n\t\tResource resource = new MetadataResourceFactoryImpl().createResource(URI.createURI(MetadataPackage.eNS_URI));\n\t\ttry {\n\t\t\tresource.load(this.provideAndRegisterInputStream, null);\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"IOException while loading Resources from InputStream.\", e);\n\t\t\tthrow new MetadataExtractionException(\"IOException while loading Resources from InputStream.\",e);\n\t\t}\n\t\t\n\t\tif(logger.isDebugEnabled()){\n\t\t\tlogger.debug(\"Creating ProvideAndRegisterDocumentSet metadata with object from InputStream \" + this.provideAndRegisterInputStream);\n\t\t}\n\t\tEList list = resource.getContents();\n\t\tDocumentRoot root = (DocumentRoot) list.get(0);\n\t\tProvideAndRegisterDocumentSetType provideAndRegister = root.getProvideAndRegisterDocumentSet();\n\t\t\n\t\t// unload resources\n\t\t// FIXME - unloading resources will create and eProxy to the returned value, ie. NO DATA.\n/*\t\tif(logger.isDebugEnabled()){\n\t\t\tlogger.debug(\"Unloading Resources.\");\n\t\t}\n\t\t//resource.unload();\n*/\n\t\treturn provideAndRegister;\n\t}", "public void exit(SimpleRestrictionElement node) {\n exit((CommonTypeDerivation)node);\n }", "void apply(T input);", "public static void main(String[] args) {\n\t\tSupplier<Double> randomValue=()-> Math.random();\r\n\t\tSystem.out.println(\"Value given by supplier interface :\"+randomValue.get());\r\n\t\t\r\n\t\t//functional interface Consumer\r\n\t\t//contains only accept(T t) method\r\n\t\tConsumer<Integer> display=a -> System.out.println(a);\r\n\t\tdisplay.accept(100);\r\n\t\t\r\n\t\t//functional interface Predicate\r\n\t\t//test(T t)\r\n\t\tPredicate<Integer> compare=i -> (i<15);\r\n\t\tSystem.out.println(\"compares number is less than 15 :\" + compare.test(10));\r\n\t\t\r\n\t\t//Functional interface Function\r\n\t\t//R apply(T t)\r\n\t\t//andThen()\r\n\t\tFunction<Integer, Double> half= a -> a/2.0;\r\n\t\thalf=half.andThen(a->a*3.0);\r\n\t\tSystem.out.println(half.apply(10));\r\n\r\n\t}", "default <R> EagerFutureStream<R> then(final Function<U, R> fn) {\n\t\treturn (EagerFutureStream) FutureStream.super.then(fn);\n\t}", "public final Collector perform(Iterator<?> iterator, Collector result) {\n prePerform();\n try {\n while (iterator.hasNext()) {\n Object candidate = iterator.next();\n if (isMatch(candidate))\n if (!result.accept(candidate))\n break;\n }\n } finally {\n postPerform();\n }\n return result;\n }", "FeatureHolder filter(FeatureFilter filter);", "@Override\n public Supplier<List<Integer>> supplier() {\n // constructor method reference\n // for an Object array use: Object[]::new\n return ArrayList::new;\n }", "@Test\r\n void filterMethod() {\r\n\t\tStream<TransactionBean> transactionBeanStream = transactions.stream().filter(t -> t.getType() == Transaction.GROCERY);\r\n\t\tList<TransactionBean> afterStreamList = transactionBeanStream.peek(System.out::println).collect(Collectors.toCollection(ArrayList::new));\r\n\t\tassertSame(\"wrong type\", Transaction.GROCERY, afterStreamList.get(0).getType());\r\n\t\tassertSame(\"wrong type\", Transaction.GROCERY, afterStreamList.get(1).getType());\r\n }", "public abstract Filter<T> filter();", "public static void m1(Supplier<Double> supplier) {\n\t\tSystem.out.println(Math.sqrt(supplier.get()));\n\t}", "public V updateAndGet(final Supplier<V> supplier) {\n\t\tsynchronized (this.monitor) {\n\t\t\tthis.value = supplier.get();\n\t\t\treturn this.value;\n\t\t}\n\t}", "public List<Supplier> getSuppliers(){ \n\t List<Supplier> list=new ArrayList<Supplier>(); \n\t list=template.loadAll(Supplier.class); \n\t return list; \n\t}", "public static <E,F> F fold_with_map(\n Stream<E> stream,\n Function<? super E,F> folding_adapter\n ) {\n if (stream == null) return null;\n Stream<F> folding_stream = stream.map(folding_adapter);\n return Streams.last(folding_stream);\n }", "@Override\n\tpublic void Decompress() {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t Supplier<Personne> supplier = Personne::new;\n\t\t System.out.println(supplier.get());\n\t\t \n\t\t //constructeur avec plusieur parametre \n\t\t PersonneSupplier supplierP = Personne::new;\n\t\t Personne personne = supplierP.creerInstance(\"nom1\", \"prenom1\");\n\t\t System.out.println(personne);\n\t\t \n\t\t PersonneSupplier supplierP1 = (nom, prenom) -> new Personne(nom, prenom);\n\t\t Personne personneP1 = supplierP1.creerInstance(\"nom1\", \"prenom1\");\n\t\t System.out.println(personneP1);\n\t\t \n\t\t \n\t\t Supplier<Personne> supplier0 = () -> new Personne();\n\t\t Supplier<Personne> supplier1 = () -> new Personne(\"\",\"\");\n\t\t \n\t\t //Supplier<Integer> I0 = Integer::new;\n\t\t Supplier<Integer> I1 = () -> new Integer(0);\n\t\t //Supplier<String> I2 =(String s) -> new Integer(s);\n\t\t \n\t\t Supplier<ArrayList<Personne>> supplier5 = ArrayList<Personne>::new;\n\t\t Supplier<ArrayList<Personne>> supplier6 = () -> new ArrayList<Personne>(); \n\t\t \n\t\t //Supplier<String[]> supplier7 = String[]::new;\n\t\t //Supplier<> supplier8 = (int size) -> new String[size];\n\t\t \n\t\t \n\t\t //generic\n\t\t //MaFabrique<Integer[]> fabrique = Integer[]::new; \n\t\t //Integer[] entiers = fabrique.creerInstance(10);\n\t\t //System.out.println(\"taille = \"+entiers.length);\n\t\t \n\t\t \n\t\t \n\t\t }", "public static void main(String[] args) {\n\t\t\r\n\t\tSupplier<Double> rand= Math::random;\r\n\t\t\r\n\t\tSupplier<Double> rand1=()->Math.random();\r\n\t\t\r\n\t\tSystem.out.println(\"using method refernce :\"+rand.get());\r\n\t\tSystem.out.println(\"using Lambda :\"+rand1.get() );\r\n\t\t\r\n\t\tMySupplier s1=new MethodRefernceTest().new MySupplier();\r\n\t\tSystem.out.println(\"using inner class :\"+s1.get() );\r\n\r\n\t}", "public void forEachFlatMap(TriConsumer<Biome, NamespacedKey, Optional<Config>> consumer) {\n cache.forEach((biome, part) -> part.forEach((featureKey, config) -> consumer.accept(biome, featureKey, config)));\n }", "default <V> Fn<T, V> andThen(Fn<U, V> after){\n Objects.requireNonNull(after);\n return (T t)-> after.apply(apply(t));\n }", "default <V> Parser<S, T, V> reduce(Supplier<V> start,BiFunction<V, U, V> f) {\n return s-> {\n return reduceBase(s, start.get(),f);\n };\n }", "@FunctionalInterface\n private interface Consumer<T> {\n void accept(T t);\n }", "protected Supplier<Set<Entity>> getSeedSupplier() {\n return defaultSeedSupplier;\n }", "public void changeSupplier(ModelElement oldSupplier, ModelElement newSupplier)\n // -end- 3E423DCA0134 head327A646F00E6 \"changeSupplier\"\n // declare any checked exceptions\n // please fill in/modify the following section\n // -beg- preserve=no 3E423DCA0134 throws327A646F00E6 \"changeSupplier\"\n\n // -end- 3E423DCA0134 throws327A646F00E6 \"changeSupplier\"\n ;", "public <T,R> TempCollectionStepExtension<R,X> thenExtract(Extractor<T,R> extractor);", "@FunctionalInterface\npublic interface ITierConverter<TIER> {\n TIER convert(Block block, int meta);\n}", "interface Processor <T> {\n\n /**\n * Generates a feature for a source and its relevant method.\n *\n * @param source source to be processed.\n * @return a new feature.\n */\n T from(Source source);\n\n /**\n * Pre-computes a list of features to be fed into the processor.\n *\n * @param sources a set of source objects implementing a similar functionality.\n * @return a new list of features for a set of source objects and its relevant method names.\n */\n default Set<T> from(Set<Source> sources){\n return sources.stream()\n .map(this::from)\n .collect(Collectors.toSet());\n }\n\n /**\n * Process a typicality query. A typicality query finds the top k most typical\n * implementation of some functionality in a set of implementations with similar\n * functionality.\n *\n * @param topK k most typical/representative source objects, where k cannot\n * be greater than the size of the sources set.\n * @param sources a set of source objects implementing a similar functionality.\n * @return a list of relevant source objects, ranked by some given score. Different\n * scores will be implemented by the implementors of this type.\n * @throws IllegalArgumentException if topK > Size(sources)\n */\n List<Source> process(int topK, Set<Source> sources);\n }", "public static <E, F> Iterable<F> apply(Iterable<? extends E> iter, Function<? super E, ? extends F> f) {\r\n \treturn apply(f, iter);\n }", "public void _unlinkSupplier(ModelElement supplier1);", "public static void removeByGDFTendersByUserId(long supplierId) {\n\t\tgetPersistence().removeByGDFTendersByUserId(supplierId);\n\t}", "@FunctionalInterface\npublic interface DwcDataFileSupplier {\n DwcDataFile get() throws IOException, UnsupportedDataFileException;\n}", "protected void transform()\n\t{\n\t\tFileSummary summary = getFileSummary();\n\t\tFileCloser.close(summary.getFile());\n\n\t\tsuper.transform();\n\t}", "public void finer(String msg) {\n log(Level.FINER, msg, null);\n }", "@Nonnull\n S deiconify();", "private void goConsumer() {\n\t\t\n\t\tSurinamBananas sb = new SurinamBananas();\n\t\t\n\t\tCardboardBox<Musa,Integer> cb = sb.boxSupplier.get();\t\t\n\t\t\n\t\t// 3 bananas\n\t\tcb.add(new Basjoo()); cb.add(new Basjoo()); cb.add(new Basjoo()); cb.add(new Acuminata());\n\t\t\n\t\t//System.out.println(cb); // CardboardBox with 1 items of type: plants.Basjoo\n\t\t\n\t\t//Consumer <CardboardBox<Musa,Integer>> consuBoxInspector = CardboardBox::toString;\n\t\t\n\t\tConsumer <CardboardBox<Musa,Integer>> consuBoxTerminator = CardboardBox::clear;\n\t\n\t\tConsumer <CardboardBox<Musa,Integer>> consuBoxPrinter = System.out::println;\n\t\t\n\t\tConsumer <CardboardBox<Musa,Integer>> consuBoxFinalizer = consuBoxPrinter.andThen(consuBoxTerminator).andThen(consuBoxPrinter);\n\t\t\n\t\t\n\t\t//consuBoxInspector.accept(cb);\n\t\tconsuBoxFinalizer.accept(cb);\n\t\t\n\t}", "public void saveSupplier(Supplier e){ \n\t template.save(e); \n\t}", "void clear(@NonNull Predicate<? super Node> test);", "@FunctionalInterface\npublic interface IFindSupplier {\n \n /**\n * Find a supplier to supplier value\n * \n * @param <TYPE> the data type.\n * @param <THROWABLE> the exception.\n * @param theGivenClass the data class.\n * @param objectProvider the object provider.\n * @return the supplier for the value.\n */\n public <TYPE, THROWABLE extends Throwable> Supplier<TYPE, THROWABLE> find(\n Class<TYPE> theGivenClass,\n IProvideObject objectProvider);\n \n}", "public V getAndUpdate(final Supplier<V> supplier) {\n\t\tsynchronized (this.monitor) {\n\t\t\tfinal V prev = this.value;\n\t\t\tthis.value = supplier.get();\n\t\t\treturn prev;\n\t\t}\n\t}", "Try<T> filter(Predicate<? super T> p);", "public void getName(Supplier supplier) {\n\t\r\n}", "@AfterClass\n\tpublic static void tearDown() {\n\t\tif (RapidBeansTypeLoader.getInstance().lookupType(\"TestBean\") != null) {\n\t\t\tRapidBeansTypeLoader.getInstance().unregisterType(\"TestBean\");\n\t\t}\n\t}", "default Stream<T> filter(\n @ClosureParams(value = FromString.class, options = \"T\") Closure<Boolean> predicate) {\n\n return filter(null, predicate);\n }", "public void retractAll(ObjectFilter filter) {\n LOGGER.info(\"Retracting all facts matching filter...\");\n for (FactHandle handle : getFactHandles(filter)) {\n retract(handle);\n }\n }", "public Stream<List<Player>> deal( Stream<String> dealerCardsStream, List<Player> players ) {\n return dealerCardsStream.map( card -> {\n System.out.printf( \"Card dealt: %s \", card );\n try {\n return determinator.define(Card.valueOf(card), players);\n }catch (Exception ex){\n System.out.printf(\" <<SKIPPED>> : %s \", ex.getMessage());\n }\n return Collections.emptyList();\n });\n }", "public PortableSortedSet(Remote.Supplier<SortedSet<E>> supplier)\n {\n m_supplier = supplier;\n }", "public interface Filter<T> {\n boolean filter(T item);\n}", "public T casePredicate(Predicate object)\n {\n return null;\n }", "public void exit(CommonComplexModification node) {\n exit((CommonTypeDerivation)node);\n }", "public interface Consumer<E> {\n void consume(E e);\n}" ]
[ "0.52798843", "0.5268148", "0.50987947", "0.49407396", "0.47056326", "0.45072567", "0.44828478", "0.43660885", "0.43605626", "0.42652372", "0.4247034", "0.42433256", "0.4212516", "0.41867036", "0.41627094", "0.41304553", "0.41246304", "0.41243804", "0.41233554", "0.4122927", "0.410893", "0.40865633", "0.40686467", "0.40348148", "0.40309027", "0.40263042", "0.40260294", "0.4025806", "0.40202168", "0.4014042", "0.4003095", "0.39972398", "0.39889473", "0.39849603", "0.39800882", "0.39420524", "0.39274248", "0.3926884", "0.39106888", "0.38964432", "0.38951263", "0.38797528", "0.38734916", "0.38634065", "0.38612372", "0.3857386", "0.3856638", "0.38445675", "0.38394105", "0.38186997", "0.38074687", "0.3805926", "0.3800016", "0.3798336", "0.37969184", "0.37948036", "0.37874165", "0.3783068", "0.37775198", "0.37762368", "0.37678236", "0.37567088", "0.37536877", "0.37515733", "0.374816", "0.37467372", "0.37464923", "0.37446815", "0.37376183", "0.37279546", "0.37271962", "0.37184644", "0.37156186", "0.3713129", "0.37061155", "0.3702626", "0.36995026", "0.36991295", "0.369063", "0.3687285", "0.36862737", "0.367765", "0.36717936", "0.36690372", "0.3665348", "0.36652476", "0.36641535", "0.3660433", "0.36551496", "0.36546648", "0.36542046", "0.36421916", "0.36408502", "0.36386272", "0.36346117", "0.36169693", "0.3614227", "0.36111945", "0.3608333", "0.36060935" ]
0.49537486
3
Used for internal optimizations. CONCURRENT: indicates that the accumulator function can support being called concurrently from other threads IDENTITY_FINISH: indicates that the finisher() function is the identity function and can be omitted (i.e. the supplier type and the return type are the same type). UNORDERED: inidicates that the operations do not need to commit to preserving the order of elements as they are discovered whilst processing.
@Override public Set<Collector.Characteristics> characteristics() { return Set.of( Collector.Characteristics.UNORDERED); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected List<WriteStatus> computeNext() {\n BoundedInMemoryExecutor<HoodieRecord<T>, HoodieInsertValueGenResult<HoodieRecord>, List<WriteStatus>> bufferedIteratorExecutor =\n null;\n try {\n final Schema schema = new Schema.Parser().parse(hoodieConfig.getSchema());\n bufferedIteratorExecutor =\n new SparkBoundedInMemoryExecutor<>(hoodieConfig, inputItr, getInsertHandler(), getTransformFunction(schema));\n final List<WriteStatus> result = bufferedIteratorExecutor.execute();\n assert result != null && !result.isEmpty() && !bufferedIteratorExecutor.isRemaining();\n return result;\n } catch (Exception e) {\n throw new HoodieException(e);\n } finally {\n if (null != bufferedIteratorExecutor) {\n bufferedIteratorExecutor.shutdownNow();\n }\n }\n }", "@Override // com.google.common.collect.AbstractIterator\n public C computeNext() {\n while (!this.elemItr.hasNext()) {\n if (!this.rangeItr.hasNext()) {\n return (C) ((Comparable) endOfData());\n }\n this.elemItr = ContiguousSet.create(this.rangeItr.next(), AsSet.this.domain).iterator();\n }\n return this.elemItr.next();\n }", "@Override // com.google.common.collect.AbstractIterator\n public C computeNext() {\n while (!this.elemItr.hasNext()) {\n if (!this.rangeItr.hasNext()) {\n return (C) ((Comparable) endOfData());\n }\n this.elemItr = ContiguousSet.create(this.rangeItr.next(), AsSet.this.domain).descendingIterator();\n }\n return this.elemItr.next();\n }", "@Override\n public int characteristics() { return CONCURRENT | NONNULL | ORDERED; }", "@Override\n public Function<List<Integer>, Integer> finisher() {\n return resultList -> resultList.get(0);\n }", "@Override\n public Function<TradeAccumulator, Set<Trade>> finisher() {\n return (accum) -> {return accum.toSet();};\n }", "@Test\r\n public void sequentialHasNextInvocationDoesntAffectRetrievalOrder() {\r\n assertThat(it.hasNext(), is(true));\r\n assertThat(it.hasNext(), is(true));\r\n assertThat(it.next(), is(2));\r\n assertThat(it.next(), is(4));\r\n assertThat(it.next(), is(6));\r\n }", "@Override\n public Set<Characteristics> characteristics() {\n return EnumSet.of(Characteristics.IDENTITY_FINISH, Characteristics.UNORDERED);\n }", "@Override\n\tprotected ProducedData performs() {\n\t\treturn null;\n\t}", "@Test\n public void enumerateAccumulatorTest() throws Exception\n {\n Enumerate enumerate = new Enumerate();\n\n Tuple tuple1 = TupleFactory.getInstance().newTuple(1);\n tuple1.set(0, 10);\n\n Tuple tuple2 = TupleFactory.getInstance().newTuple(1);\n tuple2.set(0, 20);\n\n Tuple tuple3 = TupleFactory.getInstance().newTuple(1);\n tuple3.set(0, 30);\n\n Tuple tuple4 = TupleFactory.getInstance().newTuple(1);\n tuple4.set(0, 40);\n\n Tuple tuple5 = TupleFactory.getInstance().newTuple(1);\n tuple5.set(0, 50);\n\n DataBag bag1 = BagFactory.getInstance().newDefaultBag();\n bag1.add(tuple1);\n bag1.add(tuple2);\n bag1.add(tuple3);\n\n DataBag bag2 = BagFactory.getInstance().newDefaultBag();\n bag2.add(tuple4);\n bag2.add(tuple5);\n\n Tuple inputTuple1 = TupleFactory.getInstance().newTuple(1);\n inputTuple1.set(0,bag1);\n\n Tuple inputTuple2 = TupleFactory.getInstance().newTuple(1);\n inputTuple2.set(0,bag2);\n\n enumerate.accumulate(inputTuple1);\n enumerate.accumulate(inputTuple2);\n assertEquals(enumerate.getValue().toString(), \"{(10,0),(20,1),(30,2),(40,3),(50,4)}\");\n\n // Testing that cleanup code is correct by calling cleanup() and passing inputs back to Enumerate instance\n enumerate.cleanup();\n enumerate.accumulate(inputTuple1);\n enumerate.accumulate(inputTuple2);\n assertEquals(enumerate.getValue().toString(), \"{(10,0),(20,1),(30,2),(40,3),(50,4)}\");\n }", "public interface Aggregate {\n public abstract Iterator iterator();\n}", "public interface Aggregate {\n public abstract Iterator iterator();\n}", "public interface Aggregate {\n public abstract Iterator iterator();\n}", "public void computeNext() {\n while (this.source.hasNext()) {\n Object next = this.source.next();\n if (this.observed.add(this.keySelector.invoke(next))) {\n setNext(next);\n return;\n }\n }\n done();\n }", "public interface Aggregate {\n\n public abstract Iterator iterator();\n}", "public interface TrackingQueue {\n /**\n * Adds element to the queue.\n *\n * @param element to add\n * @return future of the consuming result. It will be set when consuming is successfully reported to be completed\n */\n ListenableFuture<String> add(Element element);\n\n /**\n * Take next available element from the queue act on it.\n * <p>\n * After element is taken it is no longer available for others to take unless it is not placed back to queue.\n * Element can be placed back in the following cases:\n * <ul>\n * <li>\n * By invoking {@link #add(Element)} method. In this case element will\n * be considered a new element never seen before.\n * Element will not be removed from list of \"in-progress\" elements list automatically.\n * </li>\n * <li>\n * By reporting {@link ConsumingStatus#FAILED} status via\n * {@link #recordProgress(String, String, ConsumingStatus, String)}.\n * Element will be rescheduled automatically and removed from the \"in-progress\" list.\n * </li>\n * <li>\n * Element can be rescheduled automatically based on the implementation logic of subclasses.\n * </li>\n * </ul>\n * </p>\n *\n * @param consumerId element consumer\n * @return next available element, or null if no element is available\n */\n Element take(String consumerId);\n\n /**\n * Records progress of consuming the element. If element no longer belongs to this consumer this will be noted in\n * returned possession state as {@link PossessionState#NOT_POSSESSES}. This may happen e.g. if {@link TrackingQueue}\n * implementation decided that this consumer is dead and put it back to queue.\n * <p>\n * If {@link ConsumingStatus#FAILED} status is reported,\n * element will be placed back to queue automatically\n * </p>\n * <p>\n * If {@link ConsumingStatus#FINISHED_SUCCESSFULLY} status is reported\n * the queue no longer tracks the element consuming status.\n * </p>\n *\n * @param consumerId consumer that is processing the element and reporting the progress\n * @param elementId element to report progress on\n * @param status status of the consuming.\n * @param result current value of the result of consuming.\n * @return true if this consumer still possesses the element and can continue processing it.\n */\n PossessionState recordProgress(String consumerId, String elementId, ConsumingStatus status, String result);\n\n /**\n * Removes element from the queue by element id. If element was being consumed,\n * @param elementId id of the element to remove\n * @return true if removed successfully or element was not present in the queue, false otherwise\n */\n boolean remove(String elementId);\n\n /**\n * Removes all elements from the queue. See {@link #remove(String)} for more details.\n * @return true if all removed successfully, false otherwise\n */\n boolean removeAll();\n\n /**\n * Promotes element to the top of the queue.\n * @param elementId id of the element to promote\n * @return true if promoted successfully\n */\n boolean toHighestPriority(String elementId);\n\n /**\n * Get all {@link QueuedElement} in the queue that are not being consumed.\n *\n * @return an iterator over the queued (but not being consumed) elements in this queue. The iterator returns elements\n * ordered in the way they are offered to be consumed starting with the top of the queue.\n */\n Iterator<QueuedElement> getQueued();\n\n /**\n * Get all {@link QueuedElement} that are being consumed.\n *\n * @return an iterator over the queue elements that are being consumed.\n */\n Iterator<QueuedElement> getBeingConsumed();\n\n /**\n * Get the size of the queue (both queued and being consumed).\n *\n * @return size of queue (both queued and being consumed).\n */\n int size();\n\n /**\n * Defines Tracking Queue Consuming Status.\n */\n static enum ConsumingStatus {\n IN_PROGRESS,\n FINISHED_SUCCESSFULLY,\n FAILED\n }\n\n /**\n * Defines PossessionState.\n */\n static enum PossessionState {\n POSSESSES,\n NOT_POSSESSES\n }\n}", "@Override\n public Function<ObjectNode, ObjectNode> finisher() {\n return Function.identity();\n }", "public final Collector perform(Iterator<?> iterator, Collector result) {\n prePerform();\n try {\n while (iterator.hasNext()) {\n Object candidate = iterator.next();\n if (isMatch(candidate))\n if (!result.accept(candidate))\n break;\n }\n } finally {\n postPerform();\n }\n return result;\n }", "@Override\n\tpublic Iterator<T> iteratorPostOrder() {\n\t\treturn null;\n\t}", "public java.util.Iterator iteratorSupplier()\n // -end- 335C0D7A02E4 get_all_head327A646F00E6 \"Dependency::iteratorSupplier\"\n ;", "@Override\n public BiConsumer<List<Integer>, Employee> accumulator() {\n return (resultList, employee) -> {\n if (resultList.isEmpty()) resultList.add(employee.getSalary());\n else {\n Integer currentTotal = resultList.get(0);\n currentTotal += employee.getSalary();\n resultList.set(0, currentTotal);\n }\n };\n }", "private static UnaryPredicate bepred() {\n return new UnaryPredicate() {\n public boolean execute(Object o) {\n\tif (o instanceof BulkEstimate) {\n\t return ((BulkEstimate)o).isComplete();\n }\n\treturn false;\n }\n };\n }", "public abstract void completeIteration();", "private void execute0()\n {\n if (logger.isDebugEnabled())\n {\n debugLogCompactingMessage(taskId);\n }\n\n long lastCheckObsoletion = startNanos;\n double compressionRatio = scanners.getCompressionRatio();\n if (compressionRatio == MetadataCollector.NO_COMPRESSION_RATIO)\n compressionRatio = 1.0;\n\n long lastBytesScanned = 0;\n\n if (!controller.cfs.getCompactionStrategyContainer().isActive())\n throw new CompactionInterruptedException(op.getProgress());\n\n estimatedKeys = writer.estimatedKeys();\n while (compactionIterator.hasNext())\n {\n if (op.isStopRequested())\n throw new CompactionInterruptedException(op.getProgress());\n\n UnfilteredRowIterator partition = compactionIterator.next();\n if (writer.append(partition))\n totalKeysWritten++;\n\n long bytesScanned = scanners.getTotalBytesScanned();\n\n // Rate limit the scanners, and account for compression\n if (compactionRateLimiterAcquire(limiter, bytesScanned, lastBytesScanned, compressionRatio))\n lastBytesScanned = bytesScanned;\n\n long now = System.nanoTime();\n if (now - lastCheckObsoletion > TimeUnit.MINUTES.toNanos(1L))\n {\n controller.maybeRefreshOverlaps();\n lastCheckObsoletion = now;\n }\n }\n\n // point of no return\n newSStables = writer.finish();\n\n\n completed = true;\n }", "@Test\n public void concurrencyTest() throws Exception {\n ArrayList<Long> objIds = instrSetup(new Callable<ArrayList<Long>>() {\n\n /**\n * An internal class that defines a task for creating multiple\n * objects of instrumented types and returning their identifiers as\n * a {@link Long}{@code []}.\n *\n * @author Nikolay Pulev <[email protected]>\n */\n class GeneratorOfUninstrumentedObjects implements Callable<List<Long>> {\n\n private int nrItems = 0;\n\n public GeneratorOfUninstrumentedObjects(int nrItems) {\n this.nrItems = nrItems;\n }\n\n @Override\n public List<Long> call() {\n List<Long> objIds = new ArrayList<Long>(nrItems); /* Stores generated ids. */\n Object obj = null; /* a reusable reference */\n\n /* Create many objects & store their obj ids into an array. */\n for (int i = 0; i < nrItems; i++) {\n switch (i % 4) {\n case 0:\n obj = new Object();\n break;\n case 1:\n obj = new String(\"A string\");\n break;\n case 2:\n obj = new Integer(1);\n break;\n case 3:\n obj = new ConcurrentHashMap<Integer, String>();\n break;\n default:\n break;\n }\n objIds.add(new Long(InstanceIdentifier.INSTANCE.getId(obj)));\n }\n\n return objIds;\n }\n }\n\n /**\n * An internal class that defines a task for creating multiple\n * objects of uninstrumented types and returning their identifiers\n * as a {@link Long}{@code []}.\n *\n * @author Nikolay Pulev <[email protected]>\n */\n class GeneratorOfInstrumentedObjects implements Callable<List<Long>> {\n\n private int nrItems = 0;\n\n public GeneratorOfInstrumentedObjects(int nrItems) {\n this.nrItems = nrItems;\n }\n\n @Override\n public List<Long> call() {\n List<Long> objIds = new ArrayList<Long>(nrItems); /* Stores generated ids. */\n Object obj = null; /* a reusable reference */\n\n /* Create many objects & store their obj ids into an array. */\n for (int i = 0; i < nrItems; i++) {\n obj = new MickeyMaus(5);\n objIds.add(Long.valueOf(InstanceIdentifier.INSTANCE.getId(obj)));\n }\n\n return objIds;\n }\n }\n\n @Override\n public ArrayList<Long> call() {\n ExecutorService pool = Executors.newFixedThreadPool(100);\n ArrayList<Future<List<Long>>> futures = new ArrayList<Future<List<Long>>>();\n for (int i = 0; i < 100; i++) {\n futures.add(pool.submit(new GeneratorOfUninstrumentedObjects(100)));\n futures.add(pool.submit(new GeneratorOfInstrumentedObjects(100)));\n }\n\n ArrayList<Long> result = new ArrayList<Long>();\n for (Future<List<Long>> future : futures) {\n try {\n result.addAll(future.get());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n\n return result;\n }\n });\n\n /* Check if all assigned identifiers are non-negative & unique. */\n for (int i = 0; i < objIds.size(); i++) {\n Assert.assertEquals(\"ID greater than 0: \", true, objIds.get(i) > (long) 0);\n for (int j = i + 1; j < i; j++) {\n Assert.assertEquals(\"IDs different: \", true, objIds.get(i) != objIds.get(j));\n }\n }\n }", "default EagerFutureStream<Tuple2<U,Long>> zipFuturesWithIndex() {\n\n\t\tSeq seq = Seq.seq(getLastActive().stream().iterator()).zipWithIndex();\n\t\tSeq<Tuple2<CompletableFuture<U>,Long>> withType = (Seq<Tuple2<CompletableFuture<U>,Long>>)seq;\n\t\tStream futureStream = fromStreamOfFutures((Stream)withType.map(t -> t.v1.thenApply(v -> \n\t\t\t\t\t\t\tTuple.tuple(t.v1.join(),t.v2))));\n\t\treturn (EagerFutureStream<Tuple2<U,Long>>)futureStream;\n\t\t\n\t}", "private static <T> T identity(Iterator<T> iterator) {\n if( iterator.hasNext() ) {\n T item = iterator.next(); // identity, only if it's the only one\n if( iterator.hasNext() ) {\n throw new IllegalStateException(\"Multiple plugins match\");\n }\n return item;\n }\n return null; // no items in iterator\n }", "public interface Aggregate<T> {\n \n void add(T t);\n\n void remove(T t);\n \n Iterator<T> createIterator();\n\n int length();\n\n T get(int index);\n}", "public interface IAutonomousRunner {\n <T> void runSingleAutonomousTx(\n RequestContext ctx,\n int expectedTotal, // expected total number of records (Collections.size())\n Iterable<T> iterable, // provider of loop variables\n Function<T, RequestParameters> requestProvider, // converts a loop variable to a request\n Consumer<StatisticsDTO> logEnhancer, // optional (may be null): enhances the statistics output (set info1...)\n String processId // processId of the statistics log\n );\n}", "@Override\n public int compute(int data) {\n if (getImmediate() == 0) {\n setString(Integer.toString(getId()), Integer.toString(getImmediate()));\n return 0;\n } else {\n setString(Integer.toString(getId()), Integer.toString(getImmediate()));\n return (int) (data % getImmediate());\n }\n }", "@Override\n public void forEachRemaining(Consumer<? super InternalCacheEntry<K, V>> action) {\n long now = timeService.wallClockTime();\n\n while (spliterator.tryAdvance(consumer)) {\n InternalCacheEntry<K, V> currentEntry = current;\n if (currentEntry.canExpire() && currentEntry.isExpired(now) &&\n expirationManager.entryExpiredInMemoryFromIteration(currentEntry, now).join() == Boolean.TRUE) {\n continue;\n }\n action.accept(currentEntry);\n }\n }", "@Override\n public int characteristics() {\n return baseSpliterator.characteristics();\n }", "public void intermediateProcessing() {\n //empty\n }", "@Override\n\tprotected void reduce(IntWritable mainItemID, Iterable<IntWritable> coocItems, Context context)\n\t\t\tthrows IOException, InterruptedException {\n\t\tVector coocVector = new RandomAccessSparseVector(Integer.MAX_VALUE, 100);\n\t\tfor (IntWritable coocItem : coocItems){\n\t\t\tint itemID = coocItem.get();\n\t\t\tcoocVector.set(itemID, coocVector.get(itemID) + 1.0);\n\t\t}\n\t\t//logger.info(mainItemID + \" \" + new VectorOrPrefWritable(coocVector));\n\t\tcontext.write(mainItemID, new VectorOrPrefWritable(coocVector));\n\t}", "protected abstract boolean computeHasNext();", "OIterator<V> after();", "void continued(Consumer<First> continuationFirst);", "@Override\n protected Integer compute() {\n\n\n return null;\n }", "public interface Reducer<T, U> {\n U reduce(U collector, T item);\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 }", "@Override\n\tpublic void run() {\n\t\tresult =\n\t\t\tStream.iterate(new int[]{0, 1}, s -> new int[]{s[1], s[0] + s[1]})\n\t\t\t\t.limit(limit)\n\t\t\t\t.map(n -> n[0])\n\t\t\t\t.collect(toList());\n\n\t}", "public interface Incrementor {\n\t\tpublic void incrementTransition (TransitionIterator ti, double count);\n\t\tpublic void incrementInitialState (State s, double count);\n\t\tpublic void incrementFinalState (State s, double count);\n\t}", "@Override\r\n\tpublic void compute() {\n\t\t\r\n\t}", "public void forEachRemaining(IntConsumer param1IntConsumer) {\n/* 1028 */ if (param1IntConsumer == null)\n/* 1029 */ throw new NullPointerException(); int[] arrayOfInt; int i; int j;\n/* 1030 */ if ((arrayOfInt = this.array).length >= (j = this.fence) && (i = this.index) >= 0 && i < (this.index = j)) {\n/* */ \n/* 1032 */ do { param1IntConsumer.accept(arrayOfInt[i]); } while (++i < j);\n/* */ }\n/* */ }", "@Test\n public void testParallelOnce() {\n final int count = 100000;\n final int threads = 4;\n final int perThread = count / threads;\n Cache<Integer, Integer> c =\n builder()\n .entryCapacity(-1)\n .weigher((key, value) -> value)\n .maximumWeight(MAX_VALUE)\n .build();\n AtomicInteger offset = new AtomicInteger();\n Runnable inserter = () -> {\n int start = offset.getAndAdd(perThread);\n int end = start + perThread;\n for (int i = start; i < end; i++) {\n c.put(i, i);\n }\n for (int i = start; i < end; i++) {\n c.remove(i);\n }\n };\n ThreadingStressTester tst = new ThreadingStressTester();\n tst.setOneShotMode(true);\n tst.setOneShotTimeoutMillis(MAX_FINISH_WAIT_MILLIS);\n tst.addTask(threads, inserter);\n tst.run();\n assertThat(getInfo().getTotalWeight())\n .as(\"total weight is 0\")\n .isEqualTo(0);\n }", "public void f() {\n if (getAndIncrement() == 0) {\n SpscLinkedArrayQueue<Object> spscLinkedArrayQueue = this.c;\n Subscriber<?> subscriber = this.a;\n boolean z = true;\n int i2 = 1;\n while (!this.n) {\n if (this.g.get() != null) {\n spscLinkedArrayQueue.clear();\n this.d.dispose();\n h(subscriber);\n return;\n }\n boolean z2 = this.k.get() == 0;\n Integer num = (Integer) spscLinkedArrayQueue.poll();\n boolean z3 = num == null;\n if (z2 && z3) {\n this.e.clear();\n this.f.clear();\n this.d.dispose();\n subscriber.onComplete();\n return;\n } else if (z3) {\n i2 = addAndGet(-i2);\n if (i2 == 0) {\n return;\n }\n } else {\n Object poll = spscLinkedArrayQueue.poll();\n if (num == o) {\n int i3 = this.l;\n this.l = i3 + 1;\n this.e.put(Integer.valueOf(i3), poll);\n try {\n Object apply = this.h.apply(poll);\n Objects.requireNonNull(apply, \"The leftEnd returned a null Publisher\");\n Publisher publisher = (Publisher) apply;\n FlowableGroupJoin.c cVar = new FlowableGroupJoin.c(this, z, i3);\n this.d.add(cVar);\n publisher.subscribe(cVar);\n if (this.g.get() != null) {\n spscLinkedArrayQueue.clear();\n this.d.dispose();\n h(subscriber);\n return;\n }\n long j2 = this.b.get();\n long j3 = 0;\n for (TRight tright : this.f.values()) {\n try {\n Object obj = (Object) this.j.apply(poll, tright);\n Objects.requireNonNull(obj, \"The resultSelector returned a null value\");\n if (j3 != j2) {\n subscriber.onNext(obj);\n j3++;\n } else {\n ExceptionHelper.addThrowable(this.g, new MissingBackpressureException(\"Could not emit value due to lack of requests\"));\n spscLinkedArrayQueue.clear();\n this.d.dispose();\n h(subscriber);\n return;\n }\n } catch (Throwable th) {\n i(th, subscriber, spscLinkedArrayQueue);\n return;\n }\n }\n if (j3 != 0) {\n BackpressureHelper.produced(this.b, j3);\n }\n } catch (Throwable th2) {\n i(th2, subscriber, spscLinkedArrayQueue);\n return;\n }\n } else if (num == p) {\n int i4 = this.m;\n this.m = i4 + 1;\n this.f.put(Integer.valueOf(i4), poll);\n try {\n Object apply2 = this.i.apply(poll);\n Objects.requireNonNull(apply2, \"The rightEnd returned a null Publisher\");\n Publisher publisher2 = (Publisher) apply2;\n FlowableGroupJoin.c cVar2 = new FlowableGroupJoin.c(this, false, i4);\n this.d.add(cVar2);\n publisher2.subscribe(cVar2);\n if (this.g.get() != null) {\n spscLinkedArrayQueue.clear();\n this.d.dispose();\n h(subscriber);\n return;\n }\n long j4 = this.b.get();\n long j5 = 0;\n for (TLeft tleft : this.e.values()) {\n try {\n Object obj2 = (Object) this.j.apply(tleft, poll);\n Objects.requireNonNull(obj2, \"The resultSelector returned a null value\");\n if (j5 != j4) {\n subscriber.onNext(obj2);\n j5++;\n } else {\n ExceptionHelper.addThrowable(this.g, new MissingBackpressureException(\"Could not emit value due to lack of requests\"));\n spscLinkedArrayQueue.clear();\n this.d.dispose();\n h(subscriber);\n return;\n }\n } catch (Throwable th3) {\n i(th3, subscriber, spscLinkedArrayQueue);\n return;\n }\n }\n if (j5 != 0) {\n BackpressureHelper.produced(this.b, j5);\n }\n } catch (Throwable th4) {\n i(th4, subscriber, spscLinkedArrayQueue);\n return;\n }\n } else if (num == q) {\n FlowableGroupJoin.c cVar3 = (FlowableGroupJoin.c) poll;\n this.e.remove(Integer.valueOf(cVar3.c));\n this.d.remove(cVar3);\n } else {\n FlowableGroupJoin.c cVar4 = (FlowableGroupJoin.c) poll;\n this.f.remove(Integer.valueOf(cVar4.c));\n this.d.remove(cVar4);\n }\n z = true;\n }\n }\n spscLinkedArrayQueue.clear();\n }\n }", "protected final int nextIndex() {\n\t\t\tif ( _expectedSize != TOrderedHashMap.this.size() ) { throw new ConcurrentModificationException(); }\n\n\t\t\tObject[] set = TOrderedHashMap.this._set;\n\t\t\tint i = _index + 1;\n\t\t\twhile (i <= _lastInsertOrderIndex &&\n\t\t\t\t(_indicesByInsertOrder[i] == EMPTY || set[_indicesByInsertOrder[i]] == TObjectHash.FREE || set[_indicesByInsertOrder[i]] == TObjectHash.REMOVED)) {\n\t\t\t\ti++;\n\t\t\t}\n\t\t\treturn i <= _lastInsertOrderIndex ? i : -1;\n\t\t}", "boolean scavengeSome()\r\n/* 472: */ {\r\n/* 473:505 */ Recycler.WeakOrderQueue cursor = this.cursor;\r\n/* 474: */ Recycler.WeakOrderQueue prev;\r\n/* 475:506 */ if (cursor == null)\r\n/* 476: */ {\r\n/* 477:507 */ Recycler.WeakOrderQueue prev = null;\r\n/* 478:508 */ cursor = this.head;\r\n/* 479:509 */ if (cursor == null) {\r\n/* 480:510 */ return false;\r\n/* 481: */ }\r\n/* 482: */ }\r\n/* 483: */ else\r\n/* 484: */ {\r\n/* 485:513 */ prev = this.prev;\r\n/* 486: */ }\r\n/* 487:516 */ boolean success = false;\r\n/* 488: */ do\r\n/* 489: */ {\r\n/* 490:518 */ if (cursor.transfer(this))\r\n/* 491: */ {\r\n/* 492:519 */ success = true;\r\n/* 493:520 */ break;\r\n/* 494: */ }\r\n/* 495:522 */ Recycler.WeakOrderQueue next = Recycler.WeakOrderQueue.access$1800(cursor);\r\n/* 496:523 */ if (Recycler.WeakOrderQueue.access$1900(cursor).get() == null)\r\n/* 497: */ {\r\n/* 498:527 */ if (cursor.hasFinalData()) {\r\n/* 499:529 */ while (cursor.transfer(this)) {\r\n/* 500:530 */ success = true;\r\n/* 501: */ }\r\n/* 502: */ }\r\n/* 503:537 */ if (prev != null) {\r\n/* 504:538 */ Recycler.WeakOrderQueue.access$1700(prev, next);\r\n/* 505: */ }\r\n/* 506: */ }\r\n/* 507: */ else\r\n/* 508: */ {\r\n/* 509:541 */ prev = cursor;\r\n/* 510: */ }\r\n/* 511:544 */ cursor = next;\r\n/* 512:546 */ } while ((cursor != null) && (!success));\r\n/* 513:548 */ this.prev = prev;\r\n/* 514:549 */ this.cursor = cursor;\r\n/* 515:550 */ return success;\r\n/* 516: */ }", "@Override\n\tpublic Iterator<T> iteratorPreOrder() {\n\t\treturn null;\n\t}", "@Override\n public Integer next() {\n return query.poll();\n }", "final Iterator<T> iterateAndClear() {\n\t\t// Iteration is atomically destructive.\n\t\tObject iteratedValue = value.getAndSet(null);\n\t\treturn new IteratorImpl<>(iteratedValue);\n\t}", "@Test\n public void testGetNextCulturalObjectByStreamMethod() {\n Multimap<Long, CulturalObject> multimap = ArrayListMultimap.create();\n IntStream.range(0, NUMBER_OF_EXECUTIONS).parallel().forEach(i -> {{\n CulturalObject co = cardService.getNextCulturalObject(null);\n if (co != null) {\n multimap.put(co.getId(), co);\n }\n }});\n\n double[] sizes = multimap.keySet().stream().mapToDouble(aLong -> (double) multimap.get(aLong).size()).toArray();\n StandardDeviation std = new StandardDeviation();\n assertThat(std.evaluate(sizes), is(closeTo(0.0, 0.5)));\n\n }", "@Test\n public void testCurrentOperationCountedInNextSample() throws IOException {\n NameContext step = createStep(\"A\");\n tracker.enter(step);\n tracker.takeSample(20); // Journal: IDLE A1\n tracker.takeSample(10); // Journal: A1\n tracker.exit();\n tracker.takeSample(20); // Journal: A1 IDLE\n\n assertThat(getCounterValue(step), equalTo(distribution(30)));\n }", "public interface ILazy {\n\n\tint size();\n\tboolean isInitialized();\n\tvoid setInitialized(boolean b);\n\tvoid setDescription(String description);\n\tvoid setOriginalSize(int originalSize);\n\n\tstatic final Iterator EMPTY_IT = new Iterator() {\n\t\t@Override\n\t\tpublic boolean hasNext() {\n\t\t\treturn false;\n\t\t}\n\t\t@Override\n\t\tpublic Object next() {\n\t\t\treturn null;\n\t\t}\n\t\t@Override\n\t\tpublic void remove() {\n\t\t}};\n\n\n}", "public interface IntFloatMap extends Iterable<IntFloatEntry>, Serializable {\n\n /** Gets the value at the specified index and returns an implementation specific default it's missing. */\n float get(int idx);\n\n /** Gets the value at the specified index and returns the given default if it's missing. */\n float getWithDefault(int idx, float defaultVal);\n\n /** Returns true iff the map contains the given index. */\n // TODO: rename to containsKey.\n boolean contains(int idx);\n \n /** Puts the value with the specified index in the map, replacing the current value if it exists, and returning the previous value. */\n float put(int idx, float val);\n\n /** Removes the entry with the given index. */\n void remove(int idx);\n\n /** Removes all entries. */\n void clear();\n \n /** Increments the entry with the given index by the specified increment. */\n // TODO: maybe rename to increment?\n void add(int idx, float incr);\n\n /** Applies the function to each entry in the map. */\n void apply(FnIntFloatToFloat lambda);\n\n /** Calls the function on each entry in the map. */\n void iterate(FnIntFloatToVoid function);\n \n /**\n * Returns an iterator over the entries in the map. CAUTION: This tends to\n * be slower than using the equivalent apply().\n */\n Iterator<IntFloatEntry> iterator();\n\n /** Returns the number of entries in the map. */\n int size();\n\n /**\n * Returns the indices.\n */\n int[] getIndices();\n\n /**\n * Returns the values.\n */\n float[] getValues();\n\n}", "@Override\n public Scope elementScope() {\n long hasherCount = hasher.getCount();\n return () -> {\n if (hasher.getCount() > hasherCount) {\n elementCount++;\n }\n };\n }", "@Override\n protected int nextIndex() {\n if (_expectedSize != _hash.size()) {\n throw new ConcurrentModificationException();\n }\n\n byte[] states = _hash._states;\n int i = _index;\n while (i-- > 0 && (states[i] != TPrimitiveHash.FULL)) ;\n return i;\n }", "@Override\r\n\tprotected void compute() {\n\t\t\r\n\t}", "@Override\n public BiConsumer<ObjectNode, Map.Entry<String, JsonNode>> accumulator() {\n return (acc, entry) -> acc.set(entry.getKey(), entry.getValue());\n }", "public void initialExecutionResourcesExhausted() {\n \n \t\t// if (this.environment.getExecutingThread() != Thread.currentThread()) {\n \t\t// throw new ConcurrentModificationException(\n \t\t// \"initialExecutionResourcesExhausted must be called from the task that executes the user code\");\n \t\t// }\n \n \t\t// Construct a resource utilization snapshot\n \t\tfinal long timestamp = System.currentTimeMillis();\n \t\t// Get CPU-Usertime in percent\n \t\tThreadMXBean threadBean = ManagementFactory.getThreadMXBean();\n \t\tlong userCPU = (threadBean.getCurrentThreadUserTime() / NANO_TO_MILLISECONDS) * 100\n \t\t\t/ (timestamp - this.startTime);\n \n \t\t// collect outputChannelUtilization\n \t\tfinal Map<ChannelID, Long> channelUtilization = new HashMap<ChannelID, Long>();\n \t\tlong totalOutputAmount = 0;\n \t\tfor (int i = 0; i < this.environment.getNumberOfOutputGates(); ++i) {\n \t\t\tfinal OutputGate<? extends Record> outputGate = this.environment.getOutputGate(i);\n \t\t\tfor (int j = 0; j < outputGate.getNumberOfOutputChannels(); ++j) {\n \t\t\t\tfinal AbstractOutputChannel<? extends Record> outputChannel = outputGate.getOutputChannel(j);\n \t\t\t\tchannelUtilization.put(outputChannel.getID(),\n \t\t\t\t\tLong.valueOf(outputChannel.getAmountOfDataTransmitted()));\n \t\t\t\ttotalOutputAmount += outputChannel.getAmountOfDataTransmitted();\n \t\t\t}\n \t\t}\n \t\tlong totalInputAmount = 0;\n \t\tfor (int i = 0; i < this.environment.getNumberOfInputGates(); ++i) {\n \t\t\tfinal InputGate<? extends Record> inputGate = this.environment.getInputGate(i);\n \t\t\tfor (int j = 0; j < inputGate.getNumberOfInputChannels(); ++j) {\n \t\t\t\tfinal AbstractInputChannel<? extends Record> inputChannel = inputGate.getInputChannel(j);\n \t\t\t\tchannelUtilization.put(inputChannel.getID(),\n \t\t\t\t\tLong.valueOf(inputChannel.getAmountOfDataTransmitted()));\n \t\t\t\ttotalInputAmount += inputChannel.getAmountOfDataTransmitted();\n \n \t\t\t}\n \t\t}\n \t\tBoolean force = null;\n \n \t\tif (this.environment.getInvokable().getClass().isAnnotationPresent(Stateful.class)\n \t\t\t&& !this.environment.getInvokable().getClass().isAnnotationPresent(Stateless.class)) {\n \t\t\t// Don't checkpoint statefull tasks\n \t\t\tforce = false;\n \t\t} else {\n \t\t\t// look for a forced decision from the user\n \t\t\tForceCheckpoint forced = this.environment.getInvokable().getClass().getAnnotation(ForceCheckpoint.class);\n \t\t\tif (forced != null) {\n \t\t\t\tforce = forced.checkpoint();\n \t\t\t}\n \t\t}\n \t\tfinal ResourceUtilizationSnapshot rus = new ResourceUtilizationSnapshot(timestamp, channelUtilization, userCPU,\n \t\t\tforce, totalInputAmount, totalOutputAmount);\n \n \t\t// Notify the listener objects\n \t\tfinal Iterator<ExecutionListener> it = this.registeredListeners.iterator();\n \t\twhile (it.hasNext()) {\n \t\t\tit.next().initialExecutionResourcesExhausted(this.environment.getJobID(), this.vertexID, rus);\n \t\t}\n \n \t\t// Finally, propagate event to the job manager\n \t\tthis.taskManager.initialExecutionResourcesExhausted(this.environment.getJobID(), this.vertexID, rus);\n \t}", "interface Counter {\n\n void inc();\n\n long get();\n}", "Boolean incremental();", "static IterV<String, Integer> counter() {\n return cont(count.f(0));\n }", "protected abstract boolean reduce();", "@Override\n protected Long compute() {\n if (dataList.size() <= BATCHSIZE)\n return sum();\n else {\n final List<AggregateWorker> tasks = new ArrayList<>();\n int index = dataList.size();\n while (index > 0) {\n int startIndex = (index - BATCHSIZE >= 0) ? (index - BATCHSIZE) : 0;\n // System.out.println(\"Created task for \" + startIndex + \" to \" + index);\n Collection<Long> subList = dataList.subList(startIndex, index);\n final AggregateWorker task = new AggregateWorker(subList);\n task.fork();\n tasks.add(task);\n index = index - BATCHSIZE;\n }\n long result = 0;\n for (final AggregateWorker task : tasks) {\n result += task.join();\n }\n return result;\n }\n }", "@Override\n\tpublic Void call() throws Exception {\n\t\tList<Integer> list=new ArrayList<>(THRESHOLD);\n\t\tfor(int i=0;i<iterations;i++) {\n\t\t\tlist.add(ThreadLocalRandom.current().nextInt());\n\t\t\tif(list.size() == THRESHOLD) {\n\t\t\t\t//To avoid contention at queue level sending data in chunks.\n\t\t\t\tqueue.put(list);\n\t\t\t\tlist = new ArrayList<>(THRESHOLD);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@FunctionalInterface\npublic interface Act<E> {\n\n void forEach(E pill,ITree ctx,ILime consumer);\n\n}", "@Override\n protected Rational compute() {\n if (end - start <= THRESHOLD) {\n return computeDirectly();\n }\n int mid = start + (end >>> 1);\n RamanujanAdder adder1 = new RamanujanAdder(start, mid, context);\n RamanujanAdder adder2 = new RamanujanAdder(mid, end, context);\n adder1.fork();\n return adder2.compute().add(adder1.join());\n }", "CompletableFuture<Map<String, Object>> getAccumulators();", "@Override\r\n\tpublic void doConcurrentJob() {\n\t\tthis.vop.interatorTheVector();\r\n\t}", "public void compute() {}", "@Override\n\t\tpublic void reduce() {\n\t\t\t\n\t\t}", "@Test\n public void testGetNextCulturalObjectByCountDownLatchMethod() throws InterruptedException {\n final CountDownLatch startSignal = new CountDownLatch(1);\n final CountDownLatch resultsReadySignal = new CountDownLatch(NUMBER_OF_EXECUTIONS);\n final Multimap<Long, CulturalObject> multimap = ArrayListMultimap.create();\n for (int i = 0; i < NUMBER_OF_EXECUTIONS; i++) {\n new Thread(() -> {\n try {\n startSignal.await();\n CulturalObject co = cardService.getNextCulturalObject(null);\n if (co != null) {\n multimap.put(co.getId(), co);\n }\n } catch (InterruptedException e) {\n LOG.error(\"Thread exception: \", e);\n } finally {\n resultsReadySignal.countDown();\n }\n }).start();\n }\n\n Thread.sleep(100); // give some time to create and start all threads\n startSignal.countDown(); // signal all workers\n\n resultsReadySignal.await();\n\n double[] sizes = multimap.keySet().stream().mapToDouble(aLong -> (double) multimap.get(aLong).size()).toArray();\n StandardDeviation std = new StandardDeviation();\n assertThat(std.evaluate(sizes), is(closeTo(0.0, 0.5)));\n }", "public void _next() {\n Object o;\n try {\n o = iter.next();\n } catch (NoSuchElementException e) {\n has_next = 0;\n return;\n }\n // resolve object\n if (o == null) {\n has_next = 1;\n next = null;\n } else if (o instanceof IdentityIF) {\n try {\n o = txn.getObject((IdentityIF)o, true);\n if (o == null) {\n _next();\n } else {\n has_next = 1;\n next = (F) o;\n }\n } catch (Throwable t) {\n has_next = -1;\n next = null;\n }\n } else {\n has_next = 1;\n next = (F) o;\n }\n }", "@BackpressureSupport(BackpressureKind.UNBOUNDED_IN)\n @SchedulerSupport(SchedulerKind.NONE)\n public final <R> Observable<R> reduceWith(Supplier<R> seedSupplier, BiFunction<R, ? super T, R> reducer) {\n return scanWith(seedSupplier, reducer).last();\n }", "public void testJavaNonSynchronousInc2() throws Exception\r\n {\r\n setIntField(Inc2.class, null, \"id\", 0);\r\n Eval increment1 = new Inc2();\r\n Thread thread1 = new Thread(new Execute(increment1));\r\n Eval increment2 = new Inc2();\r\n Thread thread2 = new Thread(new Execute(increment2));\r\n\r\n assertEquals(\"myObj.id should be 0\", 0, getIntField(Inc2.class, null, \"id\"));\r\n thread1.start();\r\n thread2.start();\r\n Execute.wait = false;\r\n thread1.join(5000);\r\n thread2.join(5000);\r\n // TODO fix me\r\n //assertEquals(\"Wrong incremented value\", -1, getIntField(Inc2.class, null, \"id\"));\r\n }", "public void drain() {\n int missed;\n if (getAndIncrement() == 0) {\n SpscLinkedArrayQueue<Object> q = this.queue;\n Subscriber<? super R> a = this.actual;\n int missed2 = 1;\n while (this.cancelled == 0) {\n if (this.error.get() != null) {\n q.clear();\n cancelAll();\n errorAll(a);\n return;\n }\n boolean d = this.active.get() == 0;\n Integer mode = (Integer) q.poll();\n boolean empty = mode == null;\n if (d && empty) {\n this.lefts.clear();\n this.rights.clear();\n this.disposables.dispose();\n a.onComplete();\n return;\n } else if (empty) {\n missed2 = addAndGet(-missed2);\n if (missed2 == 0) {\n return;\n }\n } else {\n TRight val = q.poll();\n if (mode == LEFT_VALUE) {\n TRight tright = val;\n int i = this.leftIndex;\n this.leftIndex = i + 1;\n int idx = i;\n this.lefts.put(Integer.valueOf(idx), tright);\n try {\n Publisher publisher = (Publisher) ObjectHelper.requireNonNull(this.leftEnd.apply(tright), \"The leftEnd returned a null Publisher\");\n TRight right = new FlowableGroupJoin.LeftRightEndSubscriber(this, true, idx);\n this.disposables.add(right);\n publisher.subscribe(right);\n Throwable ex = this.error.get();\n if (ex != null) {\n q.clear();\n cancelAll();\n errorAll(a);\n return;\n }\n long r = this.requested.get();\n Iterator<TRight> it = this.rights.values().iterator();\n missed = missed2;\n Throwable th = ex;\n long e = 0;\n while (it.hasNext()) {\n TRight end = right;\n Iterator<TRight> it2 = it;\n try {\n R w = ObjectHelper.requireNonNull(this.resultSelector.apply(tright, it.next()), \"The resultSelector returned a null value\");\n if (e != r) {\n a.onNext(w);\n e++;\n right = end;\n it = it2;\n } else {\n R r2 = w;\n ExceptionHelper.addThrowable(this.error, new MissingBackpressureException(\"Could not emit value due to lack of requests\"));\n q.clear();\n cancelAll();\n errorAll(a);\n return;\n }\n } catch (Throwable exc) {\n fail(exc, a, q);\n return;\n }\n }\n TRight end2 = right;\n if (e != 0) {\n BackpressureHelper.produced(this.requested, e);\n }\n } catch (Throwable exc2) {\n int i2 = missed2;\n fail(exc2, a, q);\n return;\n }\n } else {\n missed = missed2;\n if (mode == RIGHT_VALUE) {\n TRight right2 = val;\n int i3 = this.rightIndex;\n this.rightIndex = i3 + 1;\n int idx2 = i3;\n this.rights.put(Integer.valueOf(idx2), right2);\n try {\n Publisher publisher2 = (Publisher) ObjectHelper.requireNonNull(this.rightEnd.apply(right2), \"The rightEnd returned a null Publisher\");\n FlowableGroupJoin.LeftRightEndSubscriber end3 = new FlowableGroupJoin.LeftRightEndSubscriber(this, false, idx2);\n this.disposables.add(end3);\n publisher2.subscribe(end3);\n Throwable ex2 = this.error.get();\n if (ex2 != null) {\n q.clear();\n cancelAll();\n errorAll(a);\n return;\n }\n long r3 = this.requested.get();\n Iterator<TLeft> it3 = this.lefts.values().iterator();\n Throwable th2 = ex2;\n FlowableGroupJoin.LeftRightEndSubscriber leftRightEndSubscriber = end3;\n long e2 = 0;\n while (it3.hasNext()) {\n int idx3 = idx2;\n Iterator<TLeft> it4 = it3;\n try {\n R w2 = ObjectHelper.requireNonNull(this.resultSelector.apply(it3.next(), right2), \"The resultSelector returned a null value\");\n if (e2 != r3) {\n a.onNext(w2);\n e2++;\n idx2 = idx3;\n it3 = it4;\n } else {\n R r4 = w2;\n ExceptionHelper.addThrowable(this.error, new MissingBackpressureException(\"Could not emit value due to lack of requests\"));\n q.clear();\n cancelAll();\n errorAll(a);\n return;\n }\n } catch (Throwable exc3) {\n fail(exc3, a, q);\n return;\n }\n }\n if (e2 != 0) {\n BackpressureHelper.produced(this.requested, e2);\n }\n } catch (Throwable exc4) {\n int i4 = idx2;\n fail(exc4, a, q);\n return;\n }\n } else if (mode == LEFT_CLOSE) {\n FlowableGroupJoin.LeftRightEndSubscriber end4 = (FlowableGroupJoin.LeftRightEndSubscriber) val;\n this.lefts.remove(Integer.valueOf(end4.index));\n this.disposables.remove(end4);\n } else if (mode == RIGHT_CLOSE) {\n FlowableGroupJoin.LeftRightEndSubscriber end5 = (FlowableGroupJoin.LeftRightEndSubscriber) val;\n this.rights.remove(Integer.valueOf(end5.index));\n this.disposables.remove(end5);\n }\n }\n missed2 = missed;\n }\n }\n q.clear();\n }\n }", "@Override\n\tpublic void computeUniqueValueJob() {\n\n\t}", "@Test\n public void testInsertAndEvict() {\n final int count = 100000;\n final int threads = 4;\n final int perThread = count / threads;\n Cache<Integer, Integer> c =\n builder()\n .entryCapacity(-1)\n .weigher((key, value) -> value)\n .maximumWeight(100)\n .build();\n AtomicInteger offsetInsert = new AtomicInteger();\n Runnable inserter = () -> {\n int start = offsetInsert.getAndAdd(perThread);\n int end = start + perThread;\n for (int i = start; i < end; i++) {\n c.put(i, i);\n }\n };\n ThreadingStressTester tst = new ThreadingStressTester();\n tst.setTestTimeMillis(4000);\n tst.addTask(threads, inserter);\n tst.run();\n for (int k : c.keys()) {\n c.remove(k);\n }\n assertThat(getInfo().getTotalWeight())\n .as(\"total weight is 0\")\n .isEqualTo(0);\n }", "@Test public void hofCont() {\n check(\"declare function local:f($n) { if($n eq 0) then 42 else local:f($n - 1) };\" +\n \"distinct-values(fn:for-each((1 to 10) ! 1000, function($x) { local:f($x) }))\",\n\n 42\n );\n }", "@Override\n public long[] createAccumulator() {\n return new long[] {0};\n }", "@ConsumerType\npublic interface BlobStatsCollector {\n BlobStatsCollector NOOP = new BlobStatsCollector() {\n @Override\n public void uploaded(long timeTaken, TimeUnit unit, long size) {\n\n }\n\n @Override\n public void downloaded(String blobId, long timeTaken, TimeUnit unit, long size) {\n\n }\n\n @Override\n public void uploadCompleted(String blobId) {\n\n }\n\n @Override\n public void downloadCompleted(String blobId) {\n\n }\n };\n\n /**\n * Called when a binary content is written to BlobStore\n *\n * @param timeTaken time taken to perform the operation\n * @param unit unit of time taken\n * @param size size of binary content being written\n */\n void uploaded(long timeTaken, TimeUnit unit, long size);\n\n /**\n * Called when a binary content is read from BlobStore\n *\n * @param blobId id of blob whose content are being read. For BlobStore\n * which break up file in chunks it would be chunkId\n * @param timeTaken time taken to perform the operation\n * @param unit unit of time taken\n * @param size size of binary content being read\n */\n void downloaded(String blobId, long timeTaken, TimeUnit unit, long size);\n\n /**\n * Invoked when upload for a binary file get completed. In case of chunked\n * BlobStore this invoked when all the chunks have been uploaded\n *\n * @param blobId id of the blob which got uploaded. Even in case of chunked\n * blobStores its the id of main blob\n */\n void uploadCompleted(String blobId);\n\n /**\n * Invoked when download for a binary file get completed. In case of chunked\n * BlobStore this invoked when all the chunks have been downloaded\n *\n * @param blobId id of the blob which got downloaded. Even in case of chunked\n * blobStores its the id of main blob\n */\n void downloadCompleted(String blobId);\n}", "@FunctionalInterface\npublic interface SupplierInterrupted<T>\n\t{\n\t\n\t/**\n\t * Gets a result.\n\t *\n\t * @return a result\n\t *\n\t * @throws InterruptedException\n\t * \tthe interrupted exception\n\t * @throws ExecutionException\n\t * \tthe execution exception\n\t * @throws TimeoutException\n\t * \tthe timeout exception\n\t */\n\tT get()\n\tthrows InterruptedException, ExecutionException, TimeoutException;\n\t}", "private static void explore(\n final Deque<AbstractEntity<?>> frontier, \n final Set<String> explored) {\n \n if (frontier.isEmpty()) {\n throw new DefinersExecutorException(\"There is nothing to process.\");\n }\n\n final AbstractEntity<?> entity = frontier.pop();\n final String identity = getEntityIdentity(entity);\n if (explored.contains(identity) || !entity.isInstrumented()) {\n return;\n }\n\n if (!entity.isInitialising()) {\n throw new DefinersExecutorException(format(\"Entity [%s] of type [%s] is not in the 'initialising' phase.\", entity, entity.getClass()));\n }\n \n explored.add(identity);\n\n final boolean isEntityPersisted = entity.isPersisted();\n\n // FIXME please, consider applicability of the following logic (legacy code from EntityUtils.handleMetaProperties method):\n //------------------------------------------------------------------\n // if (!unionEntity && instance.getProperties().containsKey(\"key\")) {\n // final Object keyValue = instance.get(\"key\");\n // if (keyValue != null) {\n // // handle property \"key\" assignment\n // instance.set(\"key\", keyValue);\n // }\n // }\n //------------------------------------------------------------------\n\n // collect properties to process\n final Map<Boolean, List<Field>> propFieldsToProcess = streamRealProperties(entity.getType())\n .filter(field -> !isPropertyProxied(entity, field.getName()) && !isCritOnlySingle(entity.getType(), field.getName()) )\n .collect(partitioningBy(field -> isValueProxied(entity, field)));\n\n // process original values of properties that have id-only-proxy value if the entity is instrumented and persisted\n if (isEntityPersisted) {\n final List<Field> idOnlyProxyPropFields = propFieldsToProcess.get(true);\n for (final Field propField : idOnlyProxyPropFields) {\n final String propName = propField.getName();\n final Object propertyValue = entity.get(propName);\n entity.getProperty(propName).setOriginalValue(propertyValue);\n }\n }\n\n // process non-proxied properties, which excludes non-proxied properties that have id-only-proxy values\n final List<Field> nonProxiedPropFields = propFieldsToProcess.get(false);\n for (final Field propField : nonProxiedPropFields) {\n final String propName = propField.getName();\n final boolean isEntity = AbstractEntity.class.isAssignableFrom(propField.getType());\n final boolean isCollectional = Collection.class.isAssignableFrom(propField.getType());\n\n final Object propertyValue = entity.get(propName);\n\n if (isCollectional) { // handle collectional properties\n if (propertyValue != null) {\n final Collection<?> collection = (Collection<?>) propertyValue;\n for (final Object item: collection) {\n if (item != null && item instanceof AbstractEntity) {\n final AbstractEntity<?> value = (AbstractEntity<?>) item;\n frontier.push(value);\n explore(frontier, explored);\n }\n }\n }\n } else if (isEntity) { // handle entity-typed properties\n if (propertyValue != null) {\n final AbstractEntity<?> value = (AbstractEntity<?>) propertyValue;\n // produce fetch\n frontier.push(value);\n explore(frontier, explored);\n }\n }\n \n // original values and execution of ACE handlers is relevant only for instrumented entities\n handleOriginalValueAndACE(entity.getProperty(propName), propertyValue, isEntityPersisted);\n }\n\n entity.endInitialising();\n }", "interface IEntity\n{\n int getShareWeight(); // the fair-share weight of this entity within its collection\n // the setter isn't required, must come some other way\n\n String getName(); // the name / id of the entity (for messages)\n // the setter isn't required, name must be set some other way\n\n void initWantedByOrder(ResourceClass rc);\n int[] getWantedByOrder(); // the number of resources of each order wanted by this entity\n // setter isn't required, often an entity will produce this by\n // calculation anyway\n\n int[] getGivenByOrder(); // the number of resources actually allocated after scheduling for this entity.\n void setGivenByOrder(int[] gbo); // the scheduler uses this to set the allocation after each\n // scheduling round\n\n boolean canUseBonus(int order); // can I use one more share of this size\n\n int calculateCap(); // The entity must work out any caps that may restrict the counts\n // UIMA-4275 Simplify (delete) args\n\n long getTimestamp(); // for tiebreaks\n\n Comparator<IEntity> getApportionmentSorter();\n}", "@Override\n\tpublic void forEachRemaining(Consumer<? super T> arg0) {\n\t\t\n\t}", "@Override\r\n\tpublic void executer() {\n\t}", "@Test\n @Ignore(\"KnownBug: ACCUMULO-3645 Fixed in Accumulo 1.7.0\")\n public void testInjectOnCompact_Empty() throws Exception {\n Connector conn = tester.getConnector();\n\n // create table, add table split, write data\n final String tableName = getUniqueNames(1)[0];\n SortedSet<Text> splitset = new TreeSet<>();\n splitset.add(new Text(\"f\"));\n TestUtil.createTestTable(conn, tableName, splitset);\n\n // expected data back\n Map<Key, Value> expect = new HashMap<>(HardListIterator.allEntriesToInject);\n // we will not read back the entry that has a column visibility because this is a compaction write and we don't have the credentials\n for (Iterator<Map.Entry<Key, Value>> iterator = expect.entrySet().iterator();\n iterator.hasNext();\n ) {\n if (iterator.next().getKey().getColumnVisibilityData().length() > 0)\n iterator.remove();\n }\n\n // attach InjectIterator, flush and compact. Compaction blocks.\n IteratorSetting itset = new IteratorSetting(15, InjectIterator.class);\n StopWatch sw = new StopWatch();\n sw.start();\n conn.tableOperations().compact(tableName, null, null, Collections.singletonList(itset), true, true);\n sw.stop();\n log.debug(\"compaction took \" + sw.getTime() + \" ms\");\n\n // read back both tablets in parallel\n BatchScanner scan = conn.createBatchScanner(tableName, Authorizations.EMPTY, 2);\n// Key startKey = new Key(new Text(\"d\"), cf, cq);\n Range rng = new Range();\n scan.setRanges(Collections.singleton(rng));\n log.debug(\"Results of scan on table \" + tableName + ':');\n Map<Key, Value> actual = new TreeMap<>(TestUtil.COMPARE_KEY_TO_COLQ); // only compare row, colF, colQ\n for (Map.Entry<Key, Value> entry : scan) {\n Key k = entry.getKey();\n Value v = entry.getValue();\n log.debug(k + \" \" + v);\n Assert.assertFalse(\"Duplicate entry found: \" + k, actual.containsKey(k));\n actual.put(k, v);\n }\n Assert.assertEquals(expect, actual);\n\n // delete test data\n conn.tableOperations().delete(tableName);\n }", "@Test\n public void testInsertRemoveSeparate() {\n final int count = 100000;\n final int threads = 4;\n final int perThread = count / threads;\n Cache<Integer, Integer> c =\n builder()\n .entryCapacity(-1)\n .weigher((key, value) -> value)\n .maximumWeight(MAX_VALUE)\n .build();\n AtomicInteger offsetInsert = new AtomicInteger();\n AtomicInteger offsetRemove = new AtomicInteger();\n Runnable inserter = () -> {\n int start = offsetInsert.getAndAdd(perThread);\n int end = start + perThread;\n for (int i = start; i < end; i++) {\n c.put(i, i);\n }\n };\n Runnable remover = () -> {\n int start = offsetRemove.getAndAdd(perThread);\n int end = start + perThread;\n for (int i = start; i < end; i++) {\n c.remove(i);\n }\n };\n ThreadingStressTester tst = new ThreadingStressTester();\n tst.setTestTimeMillis(4000);\n tst.addTask(threads, inserter);\n tst.addTask(threads, remover);\n tst.run();\n for (int k : c.keys()) {\n c.remove(k);\n }\n assertThat(getInfo().getTotalWeight())\n .as(\"total weight is 0\")\n .isEqualTo(0);\n }", "interface Processor <T> {\n\n /**\n * Generates a feature for a source and its relevant method.\n *\n * @param source source to be processed.\n * @return a new feature.\n */\n T from(Source source);\n\n /**\n * Pre-computes a list of features to be fed into the processor.\n *\n * @param sources a set of source objects implementing a similar functionality.\n * @return a new list of features for a set of source objects and its relevant method names.\n */\n default Set<T> from(Set<Source> sources){\n return sources.stream()\n .map(this::from)\n .collect(Collectors.toSet());\n }\n\n /**\n * Process a typicality query. A typicality query finds the top k most typical\n * implementation of some functionality in a set of implementations with similar\n * functionality.\n *\n * @param topK k most typical/representative source objects, where k cannot\n * be greater than the size of the sources set.\n * @param sources a set of source objects implementing a similar functionality.\n * @return a list of relevant source objects, ranked by some given score. Different\n * scores will be implemented by the implementors of this type.\n * @throws IllegalArgumentException if topK > Size(sources)\n */\n List<Source> process(int topK, Set<Source> sources);\n }", "@Test\n\tpublic static void testNonThreadLocal() {\n\t\tExecutorService service = Executors.newCachedThreadPool();\n\n\t\tRunnable task = new Runnable() {\n\t\t\tNonThreadLocal<AtomicInteger> tlocal = new NonThreadLocal<AtomicInteger>() {\n\t\t\t\t@Override\n\t\t\t\tpublic AtomicInteger initialValue() {\n\t\t\t\t\treturn new AtomicInteger(1);\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(Thread.currentThread().getName() + \" start with value: \" + tlocal.get());\n\t\t\t\ttry {\n\t\t\t\t\tTimeUnit.SECONDS.sleep(1);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tint res;\n//\t\t\t\tsynchronized (\"ABC\") {\n\t\t\t\t\tres = tlocal.get().addAndGet(1);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tTimeUnit.SECONDS.sleep(1);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\ttlocal.set(new AtomicInteger(res));\n//\t\t\t\t}\n\t\t\t\tSystem.out.println(Thread.currentThread().getName() + \" ends with value: \" + res);\n\t\t\t}\n\t\t};\n\t\tfor (int i = 0; i < 5; i++)\n\t\t\tservice.submit(task);\n\t\tservice.shutdown();\n\n\t}", "public interface IComputationProgress {\n\n\t\n\tpublic void _setAlgoExecution(IAlgoExecution exec);\n\n\tpublic IAlgoExecution getAlgoExecution();\n\n\t/**\n\t * \tThe timestamp of the end of the computation, or null \n\t * if not finished\n\t */\n\tpublic Long getTimestampEnd();\n\t\n\t/**\n\t * The timestamp of the beginning of the computation,\n\t * or null if not started\n\t * @return\n\t */\n\tpublic Long getTimestampStart();\n\t \n\tpublic UniqueTimestamp getTimestampCreation();\n\n\t/**\n\t * Returns the duration of the task in milliseconds,\n\t * or null if not available (either not started or not ended)\n\t * @return\n\t */\n\tpublic Long getDurationMs();\n\t\n\t/**\n\t * Returns the count of threads used for computation\n\t * @return\n\t */\n\tpublic int getThreadUsed();\n\t\n\t/**\n\t * Returns true if the progress can be monitored (like 1%, 2%...100%)\n\t * @return\n\t */\n\tpublic boolean hasProgress();\n\t\n\t/**\n\t * Returns the progress of the computation as a percentage;\n\t * Returns null if not progress known.\n\t * @return\n\t */\n\tpublic Double getProgressPercent();\n\t\n\t/**\n\t * Returns the total iterations to be run;\n\t * not that this number could evolve during the computation !\n\t * @return\n\t */\n\tpublic Long getProgressTotalToDo();\n\t\n\t/**\n\t * Returns the total iterations made;\n\t * always less than getProgressTotalToDo()\n\t * @return\n\t */\n\tpublic Long getProgressDone();\n\t\n\t/**\n\t * Returns the algo which actually computes everything.\n\t * @return\n\t */\n\tpublic IAlgo getAlgo();\n\t\n\tpublic void setProgressTotal(Long total);\n\t\n\tpublic void setProgressMade(Long total);\n\t\n\tpublic void setProgressTotal(Integer total);\n\t\n\tpublic void setProgressMade(Integer total);\n\t\n\tpublic void incProgressMade(Long inc);\n\t\n\tpublic void incProgressMade(Integer inc);\n\t\n\tpublic void incProgressMade();\n\t\n\tpublic ComputationState getComputationState();\n\t\n\tpublic void setComputationState(ComputationState state);\n\t\n\tpublic void addListener(IComputationProgressSimpleListener listener);\n\tpublic void removeListener(IComputationProgressSimpleListener listener);\n\t\n\tpublic void addDetailedListener(IComputationProgressDetailedListener listener);\n\tpublic void removeDetailedListener(IComputationProgressDetailedListener listener);\n\t\n\t\n\t/**\n\t * Defines a current activity\n\t * @param name\n\t */\n\tpublic void setCurrentTaskName(String name);\n\t\n\n\tpublic String getCurrentTaskName();\n\t\n\tpublic void clean();\n}", "public void reduce(VIntWritable _key, Iterator<VIntWritable> values,\n\tOutputCollector<VIntWritable, VIntWritable> output, Reporter reporter) throws IOException {\n\t\t\n\t\tSet<VIntWritable> entities = new HashSet<>();\n\t//\tboolean first = true;\n\t\t\t\t\n\t\twhile (values.hasNext()) {\n\t\t\t//VIntArrayWritable nextValue = values.next();\n\t\t\tVIntWritable next = values.next();\n//\t\t\tif (first && !values.hasNext()) { //only one value => forward input to reducer\n//\t\t\t\toutput.collect(_key, next);\n//\t\t\t\treturn;\n//\t\t\t}\n\t\t\t//VIntWritable[] next = nextValue.get();\n\t\t\treporter.progress();\n\t\t\t//first = false;\n\t\t\t\n//\t\t\tif (next.length == 0) {\n//\t\t\t\toutput.collect(_key, empty);\n//\t\t\t\treporter.incrCounter(InputData.NON_SINGLETON_INPUT, 1);\n//\t\t\t\treturn;\n//\t\t\t}\n\t\t\tif (next.get() == -1) {\n\t\t\t\toutput.collect(_key, dummy);\n\t\t\t\treporter.incrCounter(InputData.NON_SINGLETON_INPUT, 1);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n//\t\t\tfor (VIntWritable entity : next) {\t\t\t\n\t\t\treporter.progress();\n\t\t\tif (entities.add(next) == false) { //entity is nonSingular\t\t\n\t\t\t\toutput.collect(_key, dummy);\n\t\t\t\treporter.incrCounter(InputData.NON_SINGLETON_FOUND, 1);\n\t\t\t\treturn;\n\t\t\t}\n//\t\t\t}\n\t\t}\t\t\n\t\n\t\t//at this point, all the neighbor entities are unique, so continue...\n//\t\tVIntWritable[] toEmitArray = new VIntWritable[entities.size()];\n//\t\ttoEmitArray = entities.toArray(toEmitArray);\t\t\n//\t\treporter.progress();\n//\t\ttoEmit.set(toEmitArray);\n//\t\t\n//\t\toutput.collect(_key, toEmit);\t\t\n\t\tfor (VIntWritable entity: entities) {\n\t\t\toutput.collect(_key, entity);\n\t\t}\n\t}", "public static Spliterator.OfInt emptyIntSpliterator() {\n/* 76 */ return EMPTY_INT_SPLITERATOR;\n/* */ }", "public void aumentaInSitu(){\n if(quantidade_in_situ<quantidade_disponivel)\n quantidade_in_situ++;\n else\n return;\n }", "public Object nextElement() {\n/* 75 */ return this.iterator.next();\n/* */ }", "@Override\n public j$.util.function.Consumer<T> andThen(j$.util.function.Consumer<? super T> after) {\n throw new UnsupportedOperationException(\"Not supported on wrapped consumers\");\n }", "private void postLocal() {\n reduce3(_nleft); // Reduce global results from neighbors.\n reduce3(_nrite);\n if( _fs != null ) // Block on all other pending tasks, also\n _fs.blockForPending();\n // Finally, must return all results in 'this' because that is the API -\n // what the user expects\n int nlo = _nlo, nhi = _nhi; // Save these before copyOver crushes them\n if( _res == null ) _nlo = -1; // Flag for no local results *at all*\n else if( _res != this ) // There is a local result, and its not self\n copyOver(_res); // So copy into self\n if( nlo==0 && nhi == H2O.CLOUD.size() ) // All-done on head of whole MRTask tree?\n _fr.closeAppendables(); // Final close ops on any new appendable vec\n }", "default <R> EagerFutureStream<R> thenSync(final Function<U, R> fn){\n\t\t return (EagerFutureStream<R>)FutureStream.super.thenSync(fn);\n\t }", "@Override\n public void collectionProcessComplete(ProcessTrace arg0) throws ResourceProcessException,\n IOException {\n\n super.collectionProcessComplete(arg0);\n sortSimilarity(coslist);\n log(coslist);\n int rank=findRank(coslist,goldcos);\n rankList.add(rank);\n coslist = new ArrayList<Double>();\n // TODO :: compute the cosine similarity measure\n\n // TODO :: compute the rank of retrieved sentences\n\n for (Integer i : rankList) {\n System.out.println(\"\" + i);\n }\n\n // TODO :: compute the metric:: mean reciprocal rank\n double metric_mrr = compute_mrr();\n System.out.println(\" (MRR) Mean Reciprocal Rank ::\" + metric_mrr);\n }" ]
[ "0.51122737", "0.5104461", "0.5092324", "0.5043717", "0.50430393", "0.5037144", "0.49839672", "0.487286", "0.478197", "0.4763464", "0.47477117", "0.47477117", "0.47316563", "0.47079805", "0.46988466", "0.4660111", "0.46569407", "0.46388847", "0.46026686", "0.45810458", "0.45733702", "0.45719594", "0.45706615", "0.4569387", "0.45556083", "0.45533147", "0.450557", "0.45016435", "0.4489098", "0.4485862", "0.4460161", "0.44594824", "0.44506463", "0.44232848", "0.44188967", "0.44064927", "0.44031882", "0.43995857", "0.43791628", "0.43633398", "0.43450272", "0.43390965", "0.4333954", "0.43318963", "0.4330015", "0.43089163", "0.42772195", "0.4270553", "0.4267727", "0.42651978", "0.4261713", "0.42541385", "0.42509568", "0.42461044", "0.42451558", "0.42447734", "0.42410162", "0.42366752", "0.42350158", "0.42307812", "0.42269763", "0.42259023", "0.42250305", "0.42184925", "0.42154595", "0.42053765", "0.41874337", "0.41850087", "0.41767964", "0.41689968", "0.41682595", "0.41681108", "0.41624525", "0.41592616", "0.41574025", "0.41556525", "0.41503847", "0.41477847", "0.41456592", "0.41453314", "0.41422495", "0.41361967", "0.41288564", "0.4127618", "0.41270736", "0.41256583", "0.41230294", "0.41207662", "0.41130129", "0.41112608", "0.41095394", "0.41080877", "0.4107771", "0.41028056", "0.4101241", "0.41010872", "0.4097005", "0.40952918", "0.4092956", "0.40901646" ]
0.50887364
3
insert a row to desire table
public long insert(String table, String nullColumnHack, ContentValues values) { sqLiteDatabase.beginTransaction(); long insertId = -1; try { insertId = sqLiteDatabase.insertWithOnConflict(table, nullColumnHack, values,SQLiteDatabase.CONFLICT_REPLACE); sqLiteDatabase.setTransactionSuccessful(); } catch (Exception e) { insertId = -1; } finally { sqLiteDatabase.endTransaction(); } return insertId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insertRow() throws SQLException\n {\n m_rs.insertRow();\n }", "@Override\n public SqlDatabaseTable insertIntoTable(SqlDatabaseTable table, List<String> row) {\n executeSql(getInsertSql(table, Collections.singletonList(row)));\n return table;\n }", "public void insertRow() throws SQLException {\n\n try {\n debugCodeCall(\"insertRow\");\n checkClosed();\n if (insertRow == null) { throw Message.getSQLException(ErrorCode.NOT_ON_UPDATABLE_ROW); }\n getUpdatableRow().insertRow(insertRow);\n insertRow = null;\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "public void insertRow(Vector<Row> _data) {\r\n if(!validTable()){\r\n System.out.println(\"Error:Table:insertRow: table invalid, nothing done\");\r\n return;\r\n }\r\n //inserts a row and updates indexes\r\n if(_data.size() == 0){\r\n System.out.println(\"Error:Table:insertRow: data to be inserted is empty, no data inserted\");\r\n return;\r\n }\r\n if(!rows.isEmpty() && _data.elementAt(0).getData().size() != rows.get(rows.keySet().iterator().next()).getData().size()){\r\n System.out.println(\"Error:Table:insertRow: data to be inserted is a mismatched size to existing data, no data inserted\");\r\n return;\r\n }\r\n for(Row r : _data) {\r\n String key = \"\";\r\n for(int i : primKeyIndexes)\r\n key = key + r.getDataAtIndex(i);\r\n rows.put(key, r);\r\n }\r\n }", "public void insert() throws SQLException;", "public void moveToInsertRow() throws SQLException\n {\n m_rs.moveToInsertRow();\n }", "int insert(Assist_table record);", "void insert(OrderPreferential record) throws SQLException;", "public void moveToInsertRow() throws SQLException {\n\n try {\n debugCodeCall(\"moveToInsertRow\");\n checkClosed();\n insertRow = new Value[columnCount];\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "public void absInsertRowAt(Vector row, int index) {\n if (row == null) {\n row = new Vector(getModel().getColumnCount());\n }\n ((DefaultTableModel) getModel()).insertRow(index, row);\n }", "int insertSelective(Assist_table record);", "public void insert(DataStoreRow row) {\n\t\tSchema.ensure(row);\n\t\tString insertTarget = SchemaMapper.kindToColumnFamily(row.getKind());\n\t\tStringBuilder query = new StringBuilder();\n\t\tquery.append(\"INSERT INTO \\\"\");\n\t\tquery.append(DataStore.KEYSPACE_NAME);\n\t\tquery.append(\"\\\".\\\"\");\n\t\tquery.append(insertTarget);\n\t\tquery.append(\"\\\"(\");\n\t\t\n\t\tint count = 0;\n\t\tfor (Map.Entry<String, DataStoreColumn> entry : row.getColumns().entrySet()) {\n\t\t\tif (count++ > 0) {\n\t\t\t\tquery.append(\",\");\n\t\t\t}\n\t\t\tquery.append('\"');\n\t\t\tquery.append(entry.getValue().getEncodedName());\n\t\t\tquery.append('\"');\t\t\t\n\t\t}\n\t\t\n\t\tquery.append(\") VALUES(\");\n\t\tList<Object> values = new ArrayList<Object>();\t\t\n\t\tcount = 0;\n\t\tfor (Map.Entry<String, DataStoreColumn> entry : row.getColumns().entrySet()) {\n\t\t\tvalues.add(entry.getValue().getValue());\n\t\t\tif (count++ > 0) {\n\t\t\t\tquery.append(\",\");\n\t\t\t}\n\t\t\tquery.append(\"?\");\n\t\t}\n\t\tquery.append(\");\");\n\t\tthis.query(query.toString(), values.toArray());\t\t\t\n\t}", "void insert(VRpDyCellBh record);", "int insert(TblMotherSon record);", "int insert(Table2 record);", "public void insert(TdiaryArticle obj) throws SQLException {\n\r\n\t}", "public void insertRowToTable(Row row) throws DBAppException, PageNotLoadedException{\n\t\t//load the last page\n\t\tint indexInserted = loadPage(pageSize);\n\t\t//page is already Loaded handling\n\t\tif (indexInserted == -1)\n\t\t\tindexInserted = getPageIndexInArrayList(pageSize);\n\t\t\n\t\t//last page is full\n\t\tif (!pages_loaded.get(indexInserted).canInsertRow()){\n\t\t\tcreateNewPage();\n\t\t\tinsertRowToTable(row);\n\t\t}\n\t\t\n\t\taddRowToPage(pageSize,row);\n\t}", "void insert(BnesBrowsingHis record) throws SQLException;", "void insert(CTipoComprobante record) throws SQLException;", "public void insert(Vector _data) {\r\n //Error check\r\n if(!validTable()){\r\n System.out.println(\"Error:Table:insert: table invalid, nothing done\");\r\n return;\r\n }\r\n if(_data.size() == 0) {\r\n System.out.println(\"Error:Table:insert:data passed is empty, no data added\");\r\n return;\r\n }\r\n if(_data.size() != heading.size()) {\r\n System.out.println(\"Error:Table:insert:mismatch of data size no data added\");\r\n return;\r\n }\r\n\r\n //Inserts data into new row\r\n String key = \"\";\r\n Row newRow = new Row(_data);\r\n for(int i : primKeyIndexes)\r\n key = key + newRow.getDataAtIndex(i);\r\n rows.put(key, newRow);\r\n }", "void insert(Disproduct record);", "public void insertRow(int index) {\n\t\tString[] array = new String[getColumnCount()];\n\t\tArrays.fill(array, \"\"); //$NON-NLS-1$\n\t\tinput.add(index, new ArrayList<String>(Arrays.asList(array)));\n\t\ttableViewer.refresh(false);\n\t\tfireTableModified();\n\t}", "public void newRow();", "int insert(ParseTableLog record);", "Row createRow();", "public boolean inserRow(String Title, String Artist, String category, int sellingPrice) {\n try {\n resultSet.moveToInsertRow();\n resultSet.updateString(Main.Title, Title);\n resultSet.updateString(Main.Artist, Artist);\n resultSet.updateString(Main.category, category);\n resultSet.updateInt(Main.sellingPrice, sellingPrice);\n resultSet.insertRow();\n resultSet.moveToCurrentRow();\n fireTableDataChanged();\n return true;\n } catch (SQLException e) {\n System.out.println(\"error adding row\");\n System.out.println(e);\n return false;\n }\n\n }", "void insertSelective(CTipoComprobante record) throws SQLException;", "void insertSelective(OrderPreferential record) throws SQLException;", "int insert(Prueba record);", "int insert(TCpySpouse record);", "int insertSelective(Prueba record);", "int insert(Cargo record);", "void insert(VRpMnCellHoBhIbc record);", "void insert(PaymentTrade record);", "int addRow(RowData row_data) throws IOException;", "public void addRow() {\n tableModel.insertRow(this.getRowCount(), new String[]{});\n this.setModel(tableModel);\n\n }", "void insert(GfanCodeBanner record) throws SQLException;", "int insertSelective(Table2 record);", "public void insert() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.save(this);\n\t\tsession.getTransaction().commit();\n\t}", "void insert(XdSpxx record);", "int insert(Tourst record);", "int insert(TABLE41 record);", "int insert(AdminTab record);", "@Override\r\n public SqlResultInfo insertRecord(Db_table.TableEntry entry, Db_table table)\r\n {\r\n SqlResultInfo result = new SqlResultInfo(Boolean.FALSE);\r\n if(this.curConnection_ != null && entry != null && entry.containsNotNullEntry())\r\n {\r\n try{\r\n String[] buildSql = entry.buildColumnAndValueList();\r\n String query = \"insert into \" + table.getName() + buildSql[0]\r\n + \" values \" + buildSql[1] + \" ;\";\r\n \r\n \r\n Statement sm = curConnection_.createStatement();\r\n sm.executeUpdate(query);\r\n result.setSucceed();\r\n \r\n }catch(SQLException e)\r\n {\r\n result.setErrInfo(e);\r\n if(e.getClass() == SQLTimeoutException.class)\r\n {\r\n this.CurConnectionFailed();\r\n }\r\n }\r\n }\r\n else\r\n {\r\n result.setErrInfo(\"数据库无可用连接\");\r\n }\r\n return result;\r\n }", "public long insertNewRow(){\n ContentValues initialValues = new ContentValues();\n initialValues.put(KEY_PAIN_ASSESSMENT_NUM, \"0\");\n initialValues.put(KEY_ANALGESIC_PRES_NUM, \"0\");\n initialValues.put(KEY_ANALGESIC_ADMIN_NUM, \"0\");\n initialValues.put(KEY_NERVE_BLOCK_NUM, \"0\");\n initialValues.put(KEY_ALTERNATIVE_PAIN_RELIEF_NUM, \"0\");\n long id = db.insert(DATA_TABLE, null, initialValues);\n\n String value = MainActivity.deviceID + \"-\" + id;\n updateFieldData(id, KEY_UNIQUEID, value);\n\n return id;\n }", "int insert(NjProductTaticsRelation record);", "int insert(DashboardGoods record);", "int insert(Orderall record);", "int insert(Sequipment record);", "int insert(Ltsprojectpo record);", "public void insert()\n\t{\n\t}", "void insert(TResearchTeach record);", "int insert(Commet record);", "void insert(CTipoPersona record) throws SQLException;", "int insertSelective(Tourst record);", "public void insertPractice(PracticeEntry entry) {\n\t\tpatchMissingDefaults(entry);\n\t\tContentValues entryValues = sanitizeColumns(entry);\n\t\tlong columnId;\n\t\tif ((columnId = db.insert(PRACTICE_TABLE_NAME, null, entryValues)) == -1) {\n\t\t\tthrow new SQLException(\"There was an error inserting new row.\");\n\t\t}\n\n\t\tentry.getValues().put(BaseColumns._ID, columnId);\n\n\t\tupdatePractice(entry);\n\t}", "void insert(Mi004 record);", "private void insert() {\n\t\tConfiguration conf = new Configuration();\n\t\tconf.configure(\"hibernate.cfg.xml\");\n\t\tSessionFactory sf = conf.buildSessionFactory();\n\t\tSession s = sf.openSession();\n\t\ts.beginTransaction();\n\n\t\tQuery query = s.createQuery(\"insert into OldStudent(id,name,grade) select s.id,s.name,s.grade from Student s\");\n\t\tint count = query.executeUpdate();\n\t\tSystem.out.println(\"Number of Rows inserted in the oldstudent table=\" + count);\n\n\t\ts.getTransaction().commit();\n\t\ts.clear();// s.evict() on all student objects in session\n\t\tsf.close();\n\t}", "public int insert(IEntity entity) throws SQLException;", "void insert(HrMscChaAssig record);", "private void insert(String sql, long rowId, int runId, int payloadColumns) {\n String nodeId = engine.getEngineName();\n\n Object[] values = new Object[payloadColumns + 3];\n values[0] = rowId;\n values[1] = nodeId;\n values[2] = runId;\n\n for (int c = 3; c < values.length; c++) {\n values[c] = RandomStringUtils.randomAlphanumeric(100);\n }\n\n engine.getSqlTemplate().update(sql, values);\n }", "int insert(Enfermedad record);", "int insert(Massage record);", "int insert(DebtsRecordEntity record);", "int insert(SalGrade record);", "void inserSingletRow(String row) {\n String[] values = row.trim().split(\"\\\\s+\");\n insertSingleRow(values);\n }", "int insert(WizardValuationHistoryEntity record);", "public void addNewRow(Vector row) throws IllegalStateException{\r\n if(flagAddStatusRow){\r\n row.add(numberOfcolumns, new Integer(IS_INSERTED)); //Set status for row is add new\r\n }else{\r\n row.setElementAt(new Integer(IS_NO_CHANGE), numberOfcolumns);\r\n }\r\n data.add(row);\r\n }", "public int insert(Listing listing) throws SQLException;", "public void insert(T... entity) throws NoSQLException;", "void insertSelective(GfanCodeBanner record) throws SQLException;", "Long insert(Access record);", "int insert(Goods record);", "@Override\n\tpublic void insert(RaceZipTbVo vo) throws SQLException {\n\t\t\n\t}", "public void addRow(ResultSetRow row) throws SQLException {\n/* 231 */ notSupported();\n/* */ }", "int insert(Dormitory record);", "int insert(InspectionAgency record);", "public boolean insertRow(String Title, String Artist, String category, int sellingPrice) {\n try {\n resultSet.moveToInsertRow();\n resultSet.updateString(Main.Title, Title);\n resultSet.updateString(Main.Artist, Artist);\n resultSet.updateString(Main.category, category);\n resultSet.updateInt(Main.sellingPrice, sellingPrice);\n resultSet.insertRow();\n resultSet.moveToCurrentRow();\n fireTableDataChanged();\n return true;\n } catch (SQLException e) {\n System.out.println(\"Error adding row\");\n System.out.println(e);\n return false;\n }\n\n }", "int insert(R_order record);", "@Override\n\tpublic int insert(Cell record) {\n\t\treturn 0;\n\t}", "int insert(TrainCourse record);", "int insert(R_dept_trade record);", "int insert(Dish record);", "int insert(PrhFree record);", "int insert(RepaymentPlanInfoUn record);", "int insert(Forumpost record);", "int insertSelective(Commet record);", "int insertSelective(NjProductTaticsRelation record);", "int insert(OpeningRequirement record);", "@Override\n\tpublic void insert() {\n\t\t\n\t}", "public void insert(List<T> entity) throws NoSQLException;", "private void insert(ByteBuffer rowKey,\n Clustering<?> clustering,\n Cell<?> cell,\n LivenessInfo info,\n WriteContext ctx)\n {\n DecoratedKey valueKey = getIndexKeyFor(getIndexedValue(rowKey,\n clustering,\n cell));\n Row row = BTreeRow.noCellLiveRow(buildIndexClustering(rowKey, clustering, cell), info);\n PartitionUpdate upd = partitionUpdate(valueKey, row);\n indexCfs.getWriteHandler().write(upd, ctx, false);\n logger.debug(\"Inserted entry into index for value {}\", valueKey);\n }", "private void insertButtonActionPerformed(java.awt.event.ActionEvent evt) {// GEN\n // -\n // FIRST\n // :\n // event_insertButtonActionPerformed\n int rowIndex = headerTable.getSelectedRow();\n if (rowIndex > -1) {\n insertRow(rowIndex);\n } else {\n insertRow(_tableModel.getRowCount());\n }\n }", "int insertSelective(TABLE41 record);", "int insert(TCar record);", "int insert(Abum record);", "int insert(EquipmentOrder record);", "int insert(Product record);", "public RutaPk insert(Ruta dto) throws RutaDaoException;", "int insertSelective(SalGrade record);", "int insertSelective(TblMotherSon record);" ]
[ "0.76749355", "0.74352974", "0.7303488", "0.7252221", "0.72346604", "0.7150767", "0.7066136", "0.69758606", "0.6933954", "0.6889201", "0.6782575", "0.67469776", "0.67421937", "0.67228633", "0.6709346", "0.6685037", "0.6680087", "0.66611415", "0.66572225", "0.66383034", "0.66265047", "0.6623715", "0.6619225", "0.6586707", "0.6562904", "0.6559392", "0.65574646", "0.65519875", "0.6532661", "0.652997", "0.65255594", "0.6521069", "0.6517261", "0.6510549", "0.65100646", "0.6501816", "0.6498452", "0.6483852", "0.6480862", "0.646127", "0.6452333", "0.6449299", "0.6445257", "0.64346814", "0.6431722", "0.6425954", "0.64129263", "0.6411451", "0.6402153", "0.6402085", "0.639699", "0.63962805", "0.6393714", "0.63925844", "0.6390554", "0.63869894", "0.6382109", "0.6377203", "0.63757986", "0.6370342", "0.6367796", "0.6365487", "0.6358838", "0.63568366", "0.63564456", "0.63559663", "0.63540053", "0.63526654", "0.63507676", "0.6349444", "0.6342904", "0.6340208", "0.6338669", "0.63384247", "0.63359267", "0.63293964", "0.6328864", "0.63259536", "0.6325871", "0.6323935", "0.6323844", "0.6320073", "0.6319227", "0.6318112", "0.63086224", "0.6308199", "0.6305795", "0.6304717", "0.62983733", "0.62973815", "0.6297319", "0.629292", "0.6292198", "0.62897915", "0.6288271", "0.6285391", "0.62816465", "0.6281603", "0.62815833", "0.62796885", "0.6275641" ]
0.0
-1
insert a row collection to desire table
public long insert(String table, String nullColumnHack, List<ContentValues> values) { sqLiteDatabase.beginTransaction(); long insertId = -1; try { for (ContentValues value : values) { insertId = sqLiteDatabase.insert(table, nullColumnHack, value); } sqLiteDatabase.setTransactionSuccessful(); } catch (Exception e) { insertId = -1; } finally { sqLiteDatabase.endTransaction(); } return insertId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public SqlDatabaseTable insertIntoTable(SqlDatabaseTable table, List<String> row) {\n executeSql(getInsertSql(table, Collections.singletonList(row)));\n return table;\n }", "public void insert(List<T> entity) throws NoSQLException;", "void newRow(List<C> row) throws Exception;", "int insert(Assist_table record);", "int insertSelective(Assist_table record);", "public void insertRow(Vector<Row> _data) {\r\n if(!validTable()){\r\n System.out.println(\"Error:Table:insertRow: table invalid, nothing done\");\r\n return;\r\n }\r\n //inserts a row and updates indexes\r\n if(_data.size() == 0){\r\n System.out.println(\"Error:Table:insertRow: data to be inserted is empty, no data inserted\");\r\n return;\r\n }\r\n if(!rows.isEmpty() && _data.elementAt(0).getData().size() != rows.get(rows.keySet().iterator().next()).getData().size()){\r\n System.out.println(\"Error:Table:insertRow: data to be inserted is a mismatched size to existing data, no data inserted\");\r\n return;\r\n }\r\n for(Row r : _data) {\r\n String key = \"\";\r\n for(int i : primKeyIndexes)\r\n key = key + r.getDataAtIndex(i);\r\n rows.put(key, r);\r\n }\r\n }", "int insert(Collect record);", "public void newRow();", "int insert(Sequipment record);", "int insert(Ltsprojectpo record);", "void insertBatch(List<InspectionAgency> recordLst);", "void insertBatch(List<TABLE41> recordLst);", "public void insertRowToTable(Row row) throws DBAppException, PageNotLoadedException{\n\t\t//load the last page\n\t\tint indexInserted = loadPage(pageSize);\n\t\t//page is already Loaded handling\n\t\tif (indexInserted == -1)\n\t\t\tindexInserted = getPageIndexInArrayList(pageSize);\n\t\t\n\t\t//last page is full\n\t\tif (!pages_loaded.get(indexInserted).canInsertRow()){\n\t\t\tcreateNewPage();\n\t\t\tinsertRowToTable(row);\n\t\t}\n\t\t\n\t\taddRowToPage(pageSize,row);\n\t}", "@Override\n\tpublic long insertObjs(Collection<T> t) {\n\t\treturn insertObjs(false, t);\n\t}", "Row createRow();", "int insert(Table2 record);", "int insertSelective(Ltsprojectpo record);", "int insert(TbSerdeParams record);", "public void insertRow() throws SQLException\n {\n m_rs.insertRow();\n }", "int insert(Tourst record);", "@Override\r\n\tpublic Integer insert(Wt_collection record) {\n\t\treturn 0;\r\n\t}", "int insert(TblMotherSon record);", "int insertSelective(Collect record);", "int insert(Cargo record);", "int insert(TABLE41 record);", "void insert(Mi004 record);", "int insertSelective(TABLE41 record);", "void insert(Disproduct record);", "@Override\n\tpublic void insert() {\n\t\t\n\t}", "int insert(Orderall record);", "@Override\n\tpublic long insertObjs(T... t) {\n\t\tList<T> list = new ArrayList<T>();\n\t\tfor (T obj : t) {\n\t\t\tlist.add(obj);\n\t\t}\n\t\treturn insertObjs(list);\n\t\t// int optNum = 0;\n\t\t// for(T obj : t){\n\t\t// InsertBuider<T> buider = insertBuider();\n\t\t// buider.addValue(obj);\n\t\t// helper.getDatabase(false).insert(buider.tableInfo.tableName, null,\n\t\t// buider.cvs);\n\t\t// optNum++;\n\t\t// }\n\t\t// return optNum;\n\t}", "void insert(Providers record);", "@Override\n public void insert(Iterator<Object[]> batch) {\n while (batch.hasNext()) {\n BoundStatement boundStatement = statement.bind(batch.next());\n ResultSetFuture future = session.executeAsync(boundStatement);\n Futures.addCallback(future, callback, executor);\n }\n }", "int insertSelective(NjProductTaticsRelation record);", "int insertSelective(Tourst record);", "public void insert(DataStoreRow row) {\n\t\tSchema.ensure(row);\n\t\tString insertTarget = SchemaMapper.kindToColumnFamily(row.getKind());\n\t\tStringBuilder query = new StringBuilder();\n\t\tquery.append(\"INSERT INTO \\\"\");\n\t\tquery.append(DataStore.KEYSPACE_NAME);\n\t\tquery.append(\"\\\".\\\"\");\n\t\tquery.append(insertTarget);\n\t\tquery.append(\"\\\"(\");\n\t\t\n\t\tint count = 0;\n\t\tfor (Map.Entry<String, DataStoreColumn> entry : row.getColumns().entrySet()) {\n\t\t\tif (count++ > 0) {\n\t\t\t\tquery.append(\",\");\n\t\t\t}\n\t\t\tquery.append('\"');\n\t\t\tquery.append(entry.getValue().getEncodedName());\n\t\t\tquery.append('\"');\t\t\t\n\t\t}\n\t\t\n\t\tquery.append(\") VALUES(\");\n\t\tList<Object> values = new ArrayList<Object>();\t\t\n\t\tcount = 0;\n\t\tfor (Map.Entry<String, DataStoreColumn> entry : row.getColumns().entrySet()) {\n\t\t\tvalues.add(entry.getValue().getValue());\n\t\t\tif (count++ > 0) {\n\t\t\t\tquery.append(\",\");\n\t\t\t}\n\t\t\tquery.append(\"?\");\n\t\t}\n\t\tquery.append(\");\");\n\t\tthis.query(query.toString(), values.toArray());\t\t\t\n\t}", "public void insert() throws SQLException;", "int insert(NjProductTaticsRelation record);", "public void insert(T... entity) throws NoSQLException;", "int insertSelective(Table2 record);", "int insert(Clazz record);", "void insertBatch(List<Customer> customers);", "public int insert(Listing listing) throws SQLException;", "int insert(TCpySpouse record);", "public void insert(Vector _data) {\r\n //Error check\r\n if(!validTable()){\r\n System.out.println(\"Error:Table:insert: table invalid, nothing done\");\r\n return;\r\n }\r\n if(_data.size() == 0) {\r\n System.out.println(\"Error:Table:insert:data passed is empty, no data added\");\r\n return;\r\n }\r\n if(_data.size() != heading.size()) {\r\n System.out.println(\"Error:Table:insert:mismatch of data size no data added\");\r\n return;\r\n }\r\n\r\n //Inserts data into new row\r\n String key = \"\";\r\n Row newRow = new Row(_data);\r\n for(int i : primKeyIndexes)\r\n key = key + newRow.getDataAtIndex(i);\r\n rows.put(key, newRow);\r\n }", "protected void addNewRow(Object[] row) {\n for (int i = 0; i < aggregators.length; i++) {\n if (null != row[i]) {\n this.isNotNullValue[i] = true;\n aggregators[i].agg(row[i]);\n }\n }\n prvKey = (byte[]) row[this.keyIndex];\n calculateMaxMinUnique();\n }", "Rows createRows();", "public void insertIntoTable (String tableName , LinkedList<String> values);", "int insert(Mallscroerule record);", "private void repopulateTableForAdd()\n {\n clearTable();\n populateTable(null);\n }", "int insertSelective(Sequipment record);", "int insert(StatementsWithSorting record);", "int insert(BPBatchBean record);", "@Insert\n void insert(Course... courses);", "void insert(organize_infoBean record);", "int insert(TbSnapshot record);", "int insert(TbInvCategory record);", "int insert(TCar record);", "void insert(XdSpxx record);", "public void insert()\n\t{\n\t}", "int insert(Commet record);", "int insert(Tour record);", "private void insertTableValues(SQLFormater dbCreatorSQLFormater, String[] fields, String[][] values) {\n for(int j = 0; j < values.length; j++)\n {\n String[] rowValues = values[j]; // get massive with all values of current row\n for (int i = 0; i < fields.length; i++) {\n String fieldName = fields[i]; // current field name\n String currentValue = rowValues[i]; // current value\n dbCreatorSQLFormater.insertValue(fieldName, currentValue);\n }\n dbConnection.execute(dbCreatorSQLFormater.getValuesToInsert(j+1)); // inserting values of current row into data base, starting from 1\n }\n }", "int insert(VoteList record);", "public void insert(String command, ArrayList<?> array) throws SQLException\n\t{\n\n\t\tJdbcRowSet jdbcRs = new JdbcRowSetImpl(con);\n\t\tjdbcRs.setCommand(command);\n\t\tjdbcRs.execute();\n\n\t\tjdbcRs.moveToInsertRow();\n\t\tjdbcRs.updateString(\"FirstName\", (String) array.get(0));\n\t\tjdbcRs.updateString(\"LastName\", (String) array.get(1));\n\t\tjdbcRs.updateString(\"Email\", (String) array.get(2));\n\t\tjdbcRs.insertRow();\n\t\tjdbcRs.close();\n\t}", "int insert(Forumpost record);", "void insert(TResearchTeach record);", "int insert(Usertype record);", "int insert(TrainCourse record);", "int insertSelective(Prueba record);", "int insertSelective(Commet record);", "int insertSelective(TbComEqpModel record);", "int insert(courses record);", "void insertPopulation(RowWrapper row) throws SQLException {\n if (row.hasNoText(4)) return;\n\n String author = row.getNullableText(getAuthorIdx());\n String pubYear = row.getNullableText(getPubYearIdx(), true);\n String externalId = row.getNullableText(getPmidIdx(), true);\n Integer publicationId = this.publicationCatalog.lookupId(externalId, pubYear, author);\n\n this.insertPopulation.setString(1, row.getNullableText(getEthIdx()));\n this.insertPopulation.setString(2, row.getNullableText(getPopIdx()));\n this.insertPopulation.setString(3, row.getNullableText(getPopInfoIdx()));\n this.insertPopulation.setString(4, row.getNullableText(getSubjTypeIdx()));\n Long nSubjects = 0L;\n try {\n nSubjects = row.getNullableLong(getNIdx());\n } catch (NumberFormatException ex) {\n sf_logger.warn(ex.getMessage());\n }\n this.insertPopulation.setLong(5, nSubjects);\n if (publicationId != null) {\n this.insertPopulation.setInt(6, publicationId);\n } else {\n this.insertPopulation.setNull(6, Types.INTEGER);\n }\n ResultSet rs = this.insertPopulation.executeQuery();\n if (!rs.next()) {\n throw new RuntimeException(\"Insert failed\");\n }\n Long popId = rs.getLong(1);\n \n for (Integer colIdx : colIdxAlleleIdMap.keySet()) {\n insertFrequency(row, colIdx, popId);\n }\n this.insertPopulation.clearParameters();\n }", "private void insertData() {\n compra = factory.manufacturePojo(CompraVentaEntity.class);\n compra.setId(1L);\n compra.setQuejasReclamos(new ArrayList<>());\n em.persist(compra);\n\n for (int i = 0; i < 3; i++) {\n QuejasReclamosEntity entity = factory.manufacturePojo(QuejasReclamosEntity.class);\n entity.setCompraVenta(compra);\n em.persist(entity);\n data.add(entity);\n compra.getQuejasReclamos().add(entity);\n }\n }", "@Override\n\tpublic void insertar() {\n\t\t\n\t}", "int insert(TRepairs record);", "int insert(TbCities record);", "int addRow(RowData row_data) throws IOException;", "int insert(PrhFree record);", "@Override\n\tpublic void insert(RaceZipTbVo vo) throws SQLException {\n\t\t\n\t}", "int insert(InspectionAgency record);", "int insert(TbFreightTemplate record);", "protected abstract E newRow();", "int insert(BasicEquipment record);", "int insert(CompanyExtend record);", "private void insertFieldRows(Connection con,\n IdentifiedRecordTemplate template, GenericDataRecord record)\n throws SQLException, FormException, CryptoException {\n PreparedStatement insert = null;\n \n try {\n insert = con.prepareStatement(INSERT_FIELD);\n int recordId = record.getInternalId();\n String[] fieldNames = record.getFieldNames();\n Map<String, String> rows = new HashMap<String, String>();\n for (String fieldName : fieldNames) {\n Field field = record.getField(fieldName);\n String fieldValue = field.getStringValue();\n rows.put(fieldName, fieldValue);\n }\n \n if (template.isEncrypted()) {\n rows = getEncryptionService().encryptContent(rows);\n }\n \n for (String fieldName : rows.keySet()) {\n String fieldValue = rows.get(fieldName);\n insert.setInt(1, recordId);\n insert.setString(2, fieldName);\n insert.setString(3, fieldValue);\n insert.execute();\n }\n } finally {\n DBUtil.close(insert);\n }\n }", "int insert(ToolsOutIn record);", "RowValues createRowValues();", "int insertSelective(Appraise record);", "public abstract void rowsInserted(int firstRow, int endRow);", "public long insert(EvaluetingListDO evaluetingList) throws DataAccessException;", "void insert(VRpDyCellBh record);", "void insert(OrderPreferential record) throws SQLException;", "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 }", "int insert(TrainingCourse record);", "@Insert\n void insertAll(List<User> users);", "int insertSelective(TCar record);", "int insert(Product record);", "void insert(HrMscChaAssig record);", "int insert(BaseCountract record);" ]
[ "0.69030833", "0.6671167", "0.6626966", "0.6507516", "0.6450448", "0.631324", "0.6246829", "0.6228142", "0.6223611", "0.62047666", "0.61901313", "0.6176361", "0.614065", "0.61394376", "0.611662", "0.60786176", "0.60763747", "0.6049857", "0.6044253", "0.6040655", "0.6037327", "0.6023617", "0.6017741", "0.6010779", "0.60019976", "0.59973836", "0.5980066", "0.5978134", "0.5976872", "0.59731066", "0.59698033", "0.5962113", "0.59589326", "0.59579325", "0.59577936", "0.5957536", "0.5957023", "0.5953242", "0.5933604", "0.59311163", "0.5928469", "0.59236145", "0.5923611", "0.59228796", "0.5915775", "0.59108895", "0.59080416", "0.59055364", "0.5904579", "0.5903032", "0.5897129", "0.5884582", "0.587641", "0.5876008", "0.58721185", "0.5870824", "0.5868465", "0.5860004", "0.5855667", "0.58531845", "0.5847252", "0.58468467", "0.58465457", "0.58389354", "0.583695", "0.58349663", "0.58294785", "0.582896", "0.58273673", "0.58260226", "0.58134174", "0.5811793", "0.58019006", "0.57992667", "0.5797844", "0.5794493", "0.5794441", "0.57937384", "0.57926595", "0.57914895", "0.579045", "0.57849807", "0.5782822", "0.5782369", "0.5781989", "0.57816464", "0.5781202", "0.5776166", "0.5774109", "0.5771013", "0.5770394", "0.5767991", "0.5766248", "0.57652885", "0.5762606", "0.5762465", "0.5759567", "0.57578015", "0.57562727", "0.5754872", "0.5753646" ]
0.0
-1
Convenience method for deleting rows in the database.x
public int delete(String table, String whereClause, String[] whereArgs) { sqLiteDatabase.beginTransaction(); int res = -1; try { res = sqLiteDatabase.delete(table, whereClause, whereArgs); sqLiteDatabase.setTransactionSuccessful(); } catch (Exception e) { res = -1; } finally { sqLiteDatabase.endTransaction(); } return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void delete(String... args) throws SQLException {\n\t\t\n\t}", "public void deleteRow() throws SQLException\n {\n m_rs.deleteRow();\n }", "int delete(String tableName, String selectionCriteria, String[] selectionArgs);", "@Override\n\tpublic void delete(Long primaryKey) {\n\t\t\n\t}", "public DResult delete(byte[] row, long startId) throws IOException;", "public void delete(IQuery query) throws SQLException;", "public int deleteAll() throws SQLException\n {\n return deleteByWhere(\"\");\n }", "public int deleteAll() throws SQLException\n {\n return deleteByWhere(\"\");\n }", "public int deleteAll() throws SQLException\n {\n return deleteByWhere(\"\");\n }", "@Override\n\tpublic void delete(Integer id) throws SQLException {\n\t\t\n\t}", "public abstract void rowsDeleted(int firstRow, int endRow);", "int delete(T data) throws SQLException, DaoException;", "@Override\n\tpublic void delete(String key) throws SQLException {\n\t\t\n\t}", "@Override\r\n\tpublic void delete(TQssql sql) {\n\r\n\t}", "public void delete()\n\t{\n\t\t_Status = DBRowStatus.Deleted;\n\t}", "@Override\n public void delete(Integer key) throws SQLException {\n //Ei toteutettu\n }", "int deleteByPrimaryKey(String thingid);", "int deleteByExample(Assist_tableExample example);", "int deleteByPrimaryKey(String maht);", "public native void deleteRow(int row) /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\tjso.deleteRow(row);\n }-*/;", "@Override\n\tpublic boolean delete(String sql) {\n\t\treturn false;\n\t}", "public boolean del() {\n return db.delete (TABLE, createWhere());\n }", "@Override\n\t\t\t\tpublic void rowsDeleted(int firstRow, int endRow) {\n\n\t\t\t\t}", "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}", "@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}", "@Override\n\tpublic void delByPrimaryKey(int id) throws SQLException {\n\n\t}", "int deleteByPrimaryKey(Integer r_p_i);", "int deleteById(ID id) throws SQLException, DaoException;", "@Override\n\tpublic int delete(int id) throws SQLException {\n\t\treturn 0;\n\t}", "public void Delete(){\n String whereClause2 = PostDatabase.ID + \" = ?\";\n // Specify arguments in placeholder order.\n String[] whereArgs2 = { \"6\" };\n // Issue SQL statement.\n sqlDB.delete(PostDatabase.TABLE_POSTS, whereClause2, whereArgs2);\n\n }", "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);", "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);", "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);", "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);", "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);", "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);", "int deleteByPrimaryKey(String id);", "int deleteByPrimaryKey(String id);", "@Override\n\tpublic void deleteById(int id) throws SQLException {\n\n\t}", "@Writer\n int deleteByPrimaryKey(Integer id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);", "int deleteByPrimaryKey(Long id);" ]
[ "0.7597076", "0.72067", "0.7156877", "0.7075876", "0.697138", "0.6964158", "0.6952832", "0.6952832", "0.6952832", "0.69455636", "0.6938479", "0.69324", "0.6925112", "0.6922737", "0.69075245", "0.6892657", "0.6878031", "0.6876464", "0.6860174", "0.6857918", "0.684848", "0.6845642", "0.6841737", "0.68337893", "0.68296415", "0.6794977", "0.6750725", "0.67306966", "0.67293906", "0.67162263", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.67116964", "0.6706507", "0.6697698", "0.6693664", "0.6693664", "0.6693664", "0.6693664", "0.6693664", "0.6693664", "0.6693664", "0.6693664", "0.6693664", "0.6693664", "0.6693664", "0.6693664", "0.6693664" ]
0.0
-1
Query the given table, returning a Cursor over the result set.
public Cursor query(String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy) { sqLiteDatabase.beginTransaction(); Cursor res = null; try { res = sqLiteDatabase.query(table, columns, selection, selectionArgs, groupBy, having, orderBy); sqLiteDatabase.setTransactionSuccessful(); } catch (Exception e) { res = null; } finally { sqLiteDatabase.endTransaction(); } return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Cursor getAllFromTable(String tableName) {\n SQLiteDatabase db = dbHelper.getDatabase();\n db.beginTransaction();\n Cursor cursor = db.query(tableName, getProjection(tableName), null, null, null, null, null);\n db.endTransaction();\n return cursor;\n }", "public Cursor getAllData(String table){\n return db.rawQuery(\"SELECT * FROM \" + table, null);\n }", "private Cursor query(String table, String selection) {\r\n\t\treturn query(table, null, selection);\r\n\t}", "public Cursor getCursor() throws SQLException\n {\n Cursor c = db.query( true, C_TABLA, columnas, null, null, null, null, null, null);\n\n return c;\n }", "public Cursor getAllRows(String tableName) {\n Cursor c = db.rawQuery(\"SELECT * FROM [\"+tableName.replaceAll(\"\\\\s\", \"_\")+\"]\", null);\n if (c != null) {\n c.moveToFirst();\n }\n return c;\n }", "public Cursor getAllTermListItemsCursor(String table) {\n // Select All Query\n String selectQuery = \"SELECT \" + KEY_ID + \", \" + KEY_TERM + \" FROM \" + table + \" ORDER BY \" + KEY_TERM;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // return the cursor\n return cursor;\n }", "public Cursor getAllTermsCursor(String table) {\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + table + \" ORDER BY \" + KEY_TERM;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // return the cursor\n return cursor;\n }", "public Cursor fetchAll() {\n\t\treturn db.query(tableName, fields, null, null, null, null, null);\n\t}", "DBCursor execute();", "public Cursor getCursorWithRows() {\n Cursor cursor = new SimpleCursor(Query.QueryResult.newBuilder()\n .addFields(Query.Field.newBuilder().setName(\"col1\").setType(Query.Type.INT8).build())\n .addFields(Query.Field.newBuilder().setName(\"col2\").setType(Query.Type.UINT8).build())\n .addFields(Query.Field.newBuilder().setName(\"col3\").setType(Query.Type.INT16).build())\n .addFields(Query.Field.newBuilder().setName(\"col4\").setType(Query.Type.UINT16).build())\n .addFields(Query.Field.newBuilder().setName(\"col5\").setType(Query.Type.INT24).build())\n .addFields(Query.Field.newBuilder().setName(\"col6\").setType(Query.Type.UINT24).build())\n .addFields(Query.Field.newBuilder().setName(\"col7\").setType(Query.Type.INT32).build())\n .addFields(Query.Field.newBuilder().setName(\"col8\").setType(Query.Type.UINT32).build())\n .addFields(Query.Field.newBuilder().setName(\"col9\").setType(Query.Type.INT64).build())\n .addFields(Query.Field.newBuilder().setName(\"col10\").setType(Query.Type.UINT64).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col11\").setType(Query.Type.FLOAT32).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col12\").setType(Query.Type.FLOAT64).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col13\").setType(Query.Type.TIMESTAMP).build())\n .addFields(Query.Field.newBuilder().setName(\"col14\").setType(Query.Type.DATE).build())\n .addFields(Query.Field.newBuilder().setName(\"col15\").setType(Query.Type.TIME).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col16\").setType(Query.Type.DATETIME).build())\n .addFields(Query.Field.newBuilder().setName(\"col17\").setType(Query.Type.YEAR).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col18\").setType(Query.Type.DECIMAL).build())\n .addFields(Query.Field.newBuilder().setName(\"col19\").setType(Query.Type.TEXT).build())\n .addFields(Query.Field.newBuilder().setName(\"col20\").setType(Query.Type.BLOB).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col21\").setType(Query.Type.VARCHAR).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col22\").setType(Query.Type.VARBINARY).build())\n .addFields(Query.Field.newBuilder().setName(\"col23\").setType(Query.Type.CHAR).build())\n .addFields(Query.Field.newBuilder().setName(\"col24\").setType(Query.Type.BINARY).build())\n .addFields(Query.Field.newBuilder().setName(\"col25\").setType(Query.Type.BIT).build())\n .addFields(Query.Field.newBuilder().setName(\"col26\").setType(Query.Type.ENUM).build())\n .addFields(Query.Field.newBuilder().setName(\"col27\").setType(Query.Type.SET).build())\n .addRows(Query.Row.newBuilder().addLengths(\"-50\".length()).addLengths(\"50\".length())\n .addLengths(\"-23000\".length()).addLengths(\"23000\".length())\n .addLengths(\"-100\".length()).addLengths(\"100\".length()).addLengths(\"-100\".length())\n .addLengths(\"100\".length()).addLengths(\"-1000\".length()).addLengths(\"1000\".length())\n .addLengths(\"24.52\".length()).addLengths(\"100.43\".length())\n .addLengths(\"2016-02-06 14:15:16\".length()).addLengths(\"2016-02-06\".length())\n .addLengths(\"12:34:56\".length()).addLengths(\"2016-02-06 14:15:16\".length())\n .addLengths(\"2016\".length()).addLengths(\"1234.56789\".length())\n .addLengths(\"HELLO TDS TEAM\".length()).addLengths(\"HELLO TDS TEAM\".length())\n .addLengths(\"HELLO TDS TEAM\".length()).addLengths(\"HELLO TDS TEAM\".length())\n .addLengths(\"N\".length()).addLengths(\"HELLO TDS TEAM\".length())\n .addLengths(\"1\".length()).addLengths(\"val123\".length())\n .addLengths(\"val123\".length()).setValues(ByteString\n .copyFromUtf8(\"-5050-2300023000-100100-100100-1000100024.52100.432016-02-06 \" +\n \"14:15:162016-02-0612:34:562016-02-06 14:15:1620161234.56789HELLO TDS TEAMHELLO TDS TEAMHELLO\"\n +\n \" TDS TEAMHELLO TDS TEAMNHELLO TDS TEAM1val123val123\"))).build());\n return cursor;\n }", "public Query query(Table table) {\r\n return new Query(this, table);\r\n }", "public Cursor getData(){\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor res = db.rawQuery(\"select * from \" + Table_name, null);\n return res;\n }", "public abstract Cursor buildCursor();", "public Cursor queryTheCursorLocation() { \n\t Cursor c = db.rawQuery(\"SELECT * FROM \"+ DBEntryContract.LocationEntry.TABLE_NAME, null); \n\t return c; \n\t}", "public Cursor getData (){\n SQLiteDatabase database = getReadableDatabase();\n String sql = \"SELECT * FROM \" + TABLE_NAME + \"\";\n return database.rawQuery(sql,null);\n }", "public Cursor getAllData() {\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor res = db.rawQuery(\"Select * from \" + TABLE_NAME, null);\n return res;\n }", "public static Cursor getAllCursor() {\n String tableName = Cache.getTableInfo(TodoItem.class).getTableName();\n\n // Query all items without any conditions\n String sql = new Select(tableName + \".*, \" + tableName + \".Id as _id\").\n from(TodoItem.class).toSql();\n\n return Cache.openDatabase().rawQuery(sql, null);\n }", "public Cursor getAllTrousersCursor() {\n String selectQuery = \"SELECT * FROM \" + TrouserEntry.TABLE_NAME;\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(selectQuery, null);\n\n return c;\n }", "public Cursor getQueryResult(String MY_QUERY) throws SQLException\n {\n return db.rawQuery(MY_QUERY, null);\n }", "private Cursor getCursorObject() {\n SQLiteDatabase db = mDbHelper.getReadableDatabase();\n\n // Define a projection that specifies which columns from the database\n // you will actually use after this query.\n String[] projection = {\n HabbitContract.HabbitEntry._ID,\n HabbitContract.HabbitEntry.COLUMN_HAD_BREAKFAST,\n HabbitContract.HabbitEntry.COLUMN_BREAKFAST_MEAL,\n HabbitContract.HabbitEntry.COLUMN_HAD_LUNCH,\n HabbitContract.HabbitEntry.COLUMN_LUNCH_MEAL,\n HabbitContract.HabbitEntry.COLUMN_HAD_SUPPER,\n HabbitContract.HabbitEntry.COLUMN_SUPPER_MEAL,\n HabbitContract.HabbitEntry.COLUMN_ADDITIONAL_DATA,\n HabbitContract.HabbitEntry.COLUMN_DATETIME_STAMP};\n\n // Perform a query on the nutrition table\n Cursor cursor = db.query(\n HabbitContract.HabbitEntry.TABLE_NAME, // The table to query\n projection, // The columns to return\n null, // The columns for the WHERE clause\n null, // The values for the WHERE clause\n null, // Don't group the rows\n null, // Don't filter by row groups\n null); // The sort order\n\n return cursor;\n }", "protected ResultSet search(String tableName, Connection myConn) {\n String sql = \"SELECT * FROM \" + tableName + \";\";\n try {\n Statement newCommand = myConn.createStatement();\n ResultSet result = newCommand.executeQuery(sql);\n\n // will closed when ResultSet is closed\n newCommand.closeOnCompletion();\n return result;\n\n } catch (SQLException e) {\n e.printStackTrace();\n return null;\n }\n }", "public Cursor displayData(){\n SQLiteDatabase db = this.getReadableDatabase();\n String selectQuarry = \"SELECT * FROM \"+Db_Table;\n Cursor cursor =db.rawQuery(selectQuarry,null);\n return cursor;\n }", "DataFrameCursor<R,C> cursor();", "public Cursor findTermCursor (String table, String constraint) {\n // Select All Query\n // Source: http://stackoverflow.com/questions/5186310/android-nearest-match-query-from-sqlite-db-if-input-string-value-is-bigger-tha\n String selectQuery = \"SELECT \" + KEY_ID + \" FROM \" + table\n + \" WHERE \" + KEY_TERM + \" = '\" + constraint + \"'\";\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // return the cursor\n return cursor;\n }", "public Cursor getAllShirtsCursor() {\n String selectQuery = \"SELECT * FROM \" + ShirtEntry.TABLE_NAME;\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(selectQuery, null);\n\n return c;\n }", "public ResultSet getRecords(String table)\n\t{\n\t\tResultSet rs = null;\n\t\trs = source.select(\"select * from \" + table);\n\t\treturn rs;\n\t}", "public Cursor retrieve()\n {\n String[] columns={Constants.ROW_ID,Constants.FIRSTNAME,Constants.LASTNAME};\n Cursor c=null;\n c=db.query(Constants.TB_NAME,columns,null,null,null,null,null);\n return c;\n }", "public Cursor queryTheCursorCategory() { \n\t Cursor c = db.rawQuery(\"SELECT * FROM \"+ DBEntryContract.CategoryEntry.TABLE_NAME, null); \n\t return c; \n\t}", "public ResultSet getAllByIdFromTable(String table, int id) throws SQLException {\n\t\tquery = \"SELECT * FROM '\" + table +\"' WHERE id=\" + id;\n\t\treturn stmt.executeQuery(query);\n\t}", "public Cursor queryUsedApks(String table, int num) {\n\t\ttry {\n\t\t\topenDatabase();\n\t\t\treturn db.query(table, null, null, null, null, null, Columns._ID +\" desc \", null);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "public Cursor getCursorWithRowsAsNull() {\n Cursor cursor = new SimpleCursor(Query.QueryResult.newBuilder()\n .addFields(Query.Field.newBuilder().setName(\"col1\").setType(Query.Type.INT8).build())\n .addFields(Query.Field.newBuilder().setName(\"col2\").setType(Query.Type.UINT8).build())\n .addFields(Query.Field.newBuilder().setName(\"col3\").setType(Query.Type.INT16).build())\n .addFields(Query.Field.newBuilder().setName(\"col4\").setType(Query.Type.UINT16).build())\n .addFields(Query.Field.newBuilder().setName(\"col5\").setType(Query.Type.INT24).build())\n .addFields(Query.Field.newBuilder().setName(\"col6\").setType(Query.Type.UINT24).build())\n .addFields(Query.Field.newBuilder().setName(\"col7\").setType(Query.Type.INT32).build())\n .addFields(Query.Field.newBuilder().setName(\"col8\").setType(Query.Type.UINT32).build())\n .addFields(Query.Field.newBuilder().setName(\"col9\").setType(Query.Type.INT64).build())\n .addFields(Query.Field.newBuilder().setName(\"col10\").setType(Query.Type.UINT64).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col11\").setType(Query.Type.FLOAT32).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col12\").setType(Query.Type.FLOAT64).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col13\").setType(Query.Type.TIMESTAMP).build())\n .addFields(Query.Field.newBuilder().setName(\"col14\").setType(Query.Type.DATE).build())\n .addFields(Query.Field.newBuilder().setName(\"col15\").setType(Query.Type.TIME).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col16\").setType(Query.Type.DATETIME).build())\n .addFields(Query.Field.newBuilder().setName(\"col17\").setType(Query.Type.YEAR).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col18\").setType(Query.Type.DECIMAL).build())\n .addFields(Query.Field.newBuilder().setName(\"col19\").setType(Query.Type.TEXT).build())\n .addFields(Query.Field.newBuilder().setName(\"col20\").setType(Query.Type.BLOB).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col21\").setType(Query.Type.VARCHAR).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col22\").setType(Query.Type.VARBINARY).build())\n .addFields(Query.Field.newBuilder().setName(\"col23\").setType(Query.Type.CHAR).build())\n .addFields(Query.Field.newBuilder().setName(\"col24\").setType(Query.Type.BINARY).build())\n .addFields(Query.Field.newBuilder().setName(\"col25\").setType(Query.Type.BIT).build())\n .addFields(Query.Field.newBuilder().setName(\"col26\").setType(Query.Type.ENUM).build())\n .addFields(Query.Field.newBuilder().setName(\"col27\").setType(Query.Type.SET).build())\n .addRows(Query.Row.newBuilder().addLengths(\"-50\".length()).addLengths(\"50\".length())\n .addLengths(\"-23000\".length()).addLengths(\"23000\".length())\n .addLengths(\"-100\".length()).addLengths(\"100\".length()).addLengths(\"-100\".length())\n .addLengths(\"100\".length()).addLengths(\"-1000\".length()).addLengths(\"1000\".length())\n .addLengths(\"24.52\".length()).addLengths(\"100.43\".length())\n .addLengths(\"2016-02-06 14:15:16\".length()).addLengths(\"2016-02-06\".length())\n .addLengths(\"12:34:56\".length()).addLengths(\"2016-02-06 14:15:16\".length())\n .addLengths(\"2016\".length()).addLengths(\"1234.56789\".length())\n .addLengths(\"HELLO TDS TEAM\".length()).addLengths(\"HELLO TDS TEAM\".length())\n .addLengths(\"HELLO TDS TEAM\".length()).addLengths(\"HELLO TDS TEAM\".length())\n .addLengths(\"N\".length()).addLengths(\"HELLO TDS TEAM\".length())\n .addLengths(\"1\".length()).addLengths(\"val123\".length()).addLengths(-1).setValues(\n ByteString.copyFromUtf8(\n \"-5050-2300023000-100100-100100-1000100024.52100.432016-02-06 \" +\n \"14:15:162016-02-0612:34:562016-02-06 14:15:1620161234.56789HELLO TDS TEAMHELLO TDS \"\n +\n \"TEAMHELLO TDS TEAMHELLO TDS TEAMNHELLO TDS TEAM1val123\"))).build());\n return cursor;\n }", "@Override\n\tprotected Cursor query()\n\t{\n\t\treturn null;\n\t}", "public static ResultSet getData(String tableName) throws SQLException, ClassNotFoundException {\n Connection connection = OracleConnector.getConnection();\n Statement statement = connection.createStatement();\n String query = \"SELECT * FROM \" + tableName;\n\n return statement.executeQuery(query);\n }", "public Cursor getStudentData(){\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n Cursor res = db.rawQuery(\"SELECT * FROM \"+ TABLE_NAME, null);\r\n return res;\r\n }", "public Cursor getcname() {\n\t\tString countQuery = \"SELECT * FROM \" + DATABASE_TABLE1;\n\t \n\t Cursor cursor = ourDatabase.rawQuery(countQuery, null);\n\t \n\t\treturn cursor;\n\t}", "public static interface Cursor {\n\t\tpublic void open() throws RelationException;\n\n\t\t//the hasNext() method actually loads the object, so don't skip it\n\t\tpublic boolean hasNext() throws RelationException;\n\n\t\t//this retrieves the next object. use in confunction with hasNext();\n\t\tpublic Tuple next() throws RelationException;\n\n\t\tpublic void close() throws RelationException;\n\t}", "public Cursor pragma(String table_name) {\n SQLiteDatabase db = mydbHelper.getWritableDatabase();\n return db.rawQuery(\"PRAGMA table_info(\" + table_name + \")\", null);\n }", "public ResultSet getAll(String tableName)\n {\n\n String selectStr;\n ResultSet rs=null;\n\n try{\n\n selectStr=\"SELECT * FROM \"+tableName;\n rs = stmt.executeQuery(selectStr);\n\n\n\n\n\n }catch(Exception e){\n System.out.println(\"Error occurred in searchLogin\");\n }\n\n return rs;\n }", "public Cursor getData()\n {\n /* We are using the rawQuery method to execute the SQLite Query we have made and return\n * the Data in the form of a Cursor. As for the Query itself SELECT specifies what Columns\n * we want to select in this case its everything (*)\n */\n return this.getWritableDatabase().rawQuery(\"SELECT * FROM \" + TABLE_NAME, null);\n }", "public ResultSet executeSaleQuery(String query){\r\n\t\tResultSet rs = null;\r\n\t\tStatement st=null;\r\n\t\ttry {\r\n\t\t\tst = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);\r\n\t\t\trs = st.executeQuery(query);\r\n\t\t}catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn rs;\r\n\t}", "public Cursor fetchEntry(long rowId) throws SQLException {\n\t return mDb.query(true, DATABASE_TABLE, null, KEY_ROWID + \"=\" + rowId, null, null, null, null, null);\n }", "public Cursor fetchAllPreg() {\n\n return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_TITLE, KEY_TIME,\n KEY_BODY}, null, null, null, null, null);\n }", "public Cursor getSelectionFromTable(String tableName, @Nullable String[] columnNames, String whereClause, String[] whereVals) {\n if (columnNames == null) {\n columnNames = getProjection(tableName);\n }\n SQLiteDatabase db = dbHelper.getDatabase();\n db.beginTransaction();\n Cursor cursor = db.query(tableName, columnNames, whereClause, whereVals, null, null, null);\n db.endTransaction();\n return cursor;\n }", "public DBCursor find(final DBObject query) {\n return new DBCursor(this, query, null, getReadPreference());\n }", "Data<List<Boards>> getSearchBoardsCursor(String query, String cursor);", "public Cursor raw(String query){\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor c = db.rawQuery(query, null);\n return c;\n }", "public abstract ResultList executeQuery(DatabaseQuery query);", "public Cursor fetchAllEntries() {\n /*\n return database.query(\n DATABASE_TABLE, \n new String[] { ROWID, MAC_ADDRESS, LATITUDE, LONGITUDE, FREQUENCY, SIGNAL}, \n null,\n null, \n null,\n null, \n null);\n */\n \n // sql must NOT be ';' terminated\n String sql = \"SELECT \"+ ROWID + \", \" + MAC_ADDRESS + \", \" + LATITUDE + \", \" + LONGITUDE + \", \" \n + NETWORK_NAME + \", \" + CAPABILITIES + \", \" + FREQUENCY + \", \" + SIGNAL\n + \" FROM \" + DATABASE_TABLE;\n return database.rawQuery(sql, null);\n }", "public Cursor fetchAllEntries() {\n return mDb.query(DATABASE_TABLE, null, null, null, null, null, null);\n }", "public Cursor getData(){\n SQLiteDatabase db = this.getWritableDatabase();\n String query= \"SELECT * FROM credit_table\";\n Cursor data = db.rawQuery(query,null);\n return data;\n }", "public void selectFromTable(String tableName){\n //SQL query\n String query = \"SELECT * FROM \" + tableName;\n\n try {\n //connection\n stmt = con.createStatement();\n //execute query\n rs = stmt.executeQuery(query);\n System.out.println(\"\\nid\\t\\tmyName\\t\\taddress\\n____________________________________\");\n\n //get data\n while (rs.next()){\n int id = rs.getInt(1); //returns the id / first column\n String myName = rs.getString(\"myName\"); //returns my name\n String address = rs.getString(\"address\"); //returns my name\n System.out.println(id + \"\\t\\t\" + myName + \"\\t\\t\" + address);\n }\n }\n catch (SQLException ex){\n System.out.println(\"\\n--Query did not execute--\");\n ex.printStackTrace();\n }\n }", "public abstract long getCursor();", "public Cursor getAllData(\n\t\t\t\t\tSQLiteDatabase db, String tableName, String[] cols) {\n\t\t\n\t\t////////////////////////////////\n\n\t\t// validate: table exists\n\n\t\t////////////////////////////////\n\t\t//\n\t\tCursor cursor = db.query(tableName, cols, null, null, null, null, null);\n\t\t\n\t\treturn cursor;\n\t}", "public Cursor getAllTermListItemsByDictionaryCursor(String table, String dictionary) {\n // Select All Query\n String selectQuery = \"SELECT \" + KEY_ID + \", \" + KEY_TERM + \" FROM \" + table + \" WHERE \" + KEY_DICTIONARY + \" = '\" + dictionary + \"' ORDER BY \" + KEY_TERM;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // return cursor\n return cursor;\n }", "public Cursor getAll(){\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor;\n cursor = db.rawQuery(\"SELECT * from tweets\",null);\n return cursor;\n }", "public Cursor getAllRows(){\n Cursor cursor = database.query(dbHelper.TABLE_USERS,allColumns,null,null,null,null,null);\n if (cursor != null){\n cursor.moveToNext();\n }\n return cursor;\n }", "public static Cursor selectAll(EntryDatabase instance) {\n SQLiteDatabase database = instance.getWritableDatabase();\n return database.rawQuery(\"SELECT * FROM entries\", null);\n }", "public Cursor getRecords() {\n Cursor c;\n try {\n c = db.rawQuery(\"select * from \" + MyOpenHelper.TLoginDetails, null);\n return c;\n } catch (Exception e) {\n Log.e(\"Error At\", \" \" + e);\n e.printStackTrace();\n // TODO: handle exception\n return null;\n }\n }", "public Cursor getAllRowData() {\n String where = null;\n Cursor c = \tdb.query(true, DATA_TABLE, null,\n where, null, null, null, null, null);\n if (c != null) {\n c.moveToFirst();\n }\n return c;\n }", "private Cursor getCursorData() {\n\t\tDBAdventureHelper enclosingInstance = new DBAdventureHelper();\r\n\t\tDBAdventureHelper.AdventureDBHelper mDbHelper = enclosingInstance.new AdventureDBHelper(this);\r\n\t\t// Get the data repository in read mode\r\n\t\tSQLiteDatabase db = mDbHelper.getReadableDatabase();\r\n\r\n\t\t// Projection defines which DB cols you will be pulled from the query\r\n\t\t// Cursor queries the database with the provided parameters; pulling record where ID col == Adventure ID\r\n\t\tCursor c = db.query(\r\n\t\t\t\tAdventureContract.AdventuresTable.ADVENTURES_TABLE_NAME, \t\t\t\t\t\t\t\t\t// The table to query\r\n\t\t\t projection, \t\t\t\t\t\t\t\t\t\t\t\t\t// The columns to return\r\n\t\t\t null,\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// The columns for the WHERE clause\r\n\t\t\t null, \t \t\t\t\t\t\t\t\t \t\t\t\t\t\t\t// The values for the WHERE clause\r\n\t\t\t null, \t\t\t\t\t\t\t\t\t\t\t\t\t// don't group the rows\r\n\t\t\t null, \t\t\t\t\t\t\t\t\t\t\t\t\t// don't filter by row groups\r\n\t\t\t \"DESC\" \t\t \t\t\t\t\t\t\t\t\t\t\t\t\t// The sort order\r\n\t\t);\r\n\t\tc.moveToFirst();\r\n\t return c;\r\n\t }", "public ResultSet executeQuery(String query) throws SQLException {\n Connection con = this.getConnection();\n\n if (con == null) {\n throw new SQLException(\"Can't get database connection\");\n }\n\n Statement statement = con.createStatement();\n\n ResultSet result = statement.executeQuery(query);\n con.close(); // Not sure if allowed to close connection before result.\n // MAKE SURE to close result after using it! result.close();\n return result;\n }", "public ResultSet executeQuery() throws SQLException {\n return statement.executeQuery();\n }", "public Cursor fetchById(long rowId) {\n\t\tCursor cursor = db.query(tableName, fields, fields[0] + \" = \" + rowId, null, null, null, null);\n\t\tif (cursor != null) {\n\t\t\tcursor.moveToFirst();\n\t\t}\n\t\treturn cursor;\n\t}", "public ResultSet selecionar(String tabela);", "private Cursor query(boolean distinct, String table, String[] columns,\r\n\t\t\tString selection, String[] selectionArgs, String groupBy,\r\n\t\t\tString having, String orderBy, String limit) {\r\n\t\treturn mDataBase.query(distinct, table, columns, selection,\r\n\t\t\t\tselectionArgs, groupBy, having, orderBy, limit);\r\n\t}", "public Cursor getCursor() throws RelationException;", "private void select(String tableName) {\n String query = \"SELECT * FROM \" + tableName;\n\n this.executeSelect(query);\n }", "public Cursor safeQuery(SQLiteDatabase db, String query) {\n Cursor cursor = null;\n try {\n cursor = db.rawQuery(query, null);\n } catch(SQLiteException e){\n Log.i(TAG, \"Error: problem with database query.\");\n }\n return cursor;\n }", "public ResultSet executeQuery(String request) {\n try {\r\n return st.executeQuery(request);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(Database.class.getName()).log(Level.SEVERE, null, ex);\r\n return null;\r\n }\r\n }", "public ResultSet query (String query) throws java.sql.SQLException {\n /*\n if (query.indexOf('(') != -1)\n Logger.write(\"VERBOSE\", \"DB\", \"query(\\\"\" + query.substring(0,query.indexOf('(')) + \"...\\\")\");\n else\n Logger.write(\"VERBOSE\", \"DB\", \"query(\\\"\" + query.substring(0,20) + \"...\\\")\");\n */\n Logger.write(\"VERBOSE\", \"DB\", \"query(\\\"\" + query + \"\\\")\");\n \n try {\n Statement statement = dbConnection.createStatement();\n statement.setQueryTimeout(30);\n ResultSet r = statement.executeQuery(query);\n return r;\n } catch (java.sql.SQLException e) {\n Logger.write(\"RED\", \"DB\", \"Failed to query database: \" + e);\n throw e;\n }\n }", "public int cursor();", "public ResultSet execute(final String stmt) throws SQLException {\n return connection.createStatement().executeQuery(stmt);\n }", "public ResultSet executeQuery(String query) {\n ResultSet rs = null;\n \ttry {\n rs = st.executeQuery(query);\n } catch(Exception e) {\n \te.printStackTrace();\n }\n return rs;\n }", "public static ResultSet Execute(String query) throws SQLException{\r\n\t\ttry {\r\n\t\t\tinitConnection();\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.out.println(e.toString());\r\n\t\t}\r\n\t\tStatement state = dbCon.createStatement();\r\n\t\treturn state.executeQuery(query);\t\t\t\r\n\t}", "@Override\n public void query(Connection c, SQLEngine engine, Record val, ImmutableList.Builder<Record> result) throws DataException {\n \n Variant varcat = val.get(\"TABLE_CAT\");\n String cat = Variants.isNull(varcat) ? null : varcat.asString();\n \n Variant varschem = val.get(\"TABLE_SCHEM\");\n String schem = Variants.isNull(varschem) ? null : varschem.asString();\n \n Variant varname = val.get(\"TABLE_NAME\");\n String name = Variants.isNull(varname) ? null : varname.asString();\n \n Variant vartype = val.get(\"TABLE_TYPE\");\n String[] tabletypes = Variants.isNull(vartype) ? TABLE_TYPES : new String[]{ vartype.asString() };\n\n try (ResultSet resultset = c.getMetaData().getTables(cat, schem, name, tabletypes)) {\n while (resultset.next()) {\n result.add(read(resultset, val));\n } \n } catch (SQLException ex) {\n throw new DataException(ex);\n }\n }", "private ResultSet GetData(String query){\n\t\ttry{\n\t\t\tstat = connection.createStatement();\n\t\t\treturn stat.executeQuery(query);\n\t\t}catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t\treturn null;\n\t\t}\n\t}", "private ResultSet executeQuery(String query) {\r\n Statement stmt;\r\n ResultSet result = null;\r\n try {\r\n// System.out.print(\"Connect DB .... \");\r\n conn = openConnect();\r\n// System.out.println(\"successfully \");\r\n stmt = conn.createStatement();\r\n result = stmt.executeQuery(query);\r\n } catch (SQLException | ClassNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n return result;\r\n }", "public static QueryableTable processCursor( final int offset, final Enumerable<Object[]> a ) {\n return new AbstractQueryableTable( Object[].class ) {\n @Override\n public AlgDataType getRowType( AlgDataTypeFactory typeFactory ) {\n return typeFactory.builder()\n .add( \"result\", null, PolyType.INTEGER )\n .build();\n }\n\n\n @Override\n public <T> Queryable<T> asQueryable( DataContext dataContext, SchemaPlus schema, String tableName ) {\n final Enumerable<Integer> enumerable = a.select( a0 -> offset + ((Integer) a0[0]) );\n //noinspection unchecked\n return (Queryable) enumerable.asQueryable();\n }\n };\n }", "public ResultSet retrieve(Connection con, String query) {\n ResultSet result = null;\n try {\n Statement state = con.createStatement();\n result = state.executeQuery(query); \n } catch (SQLException e) {\n System.err.println(e);\n }\n return result;\n\n }", "public static ResultSet executeSelectQuery(String query){\n\t\tStatement statement = null;\n\t\tResultSet resultSet = null;\n\t\tCachedRowSetImpl cachedRowSet = null;\n\t\ttry{\n\t\t\tconnectDatabase();\n\t\t\tstatement = connection.createStatement();\n\t\t\tresultSet = statement.executeQuery(query);\n\t\t\tcachedRowSet = new CachedRowSetImpl(); // cache the resultset\n\t\t\tcachedRowSet.populate(resultSet);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\ttry{\n\t\t\t\t// close the connections\n\t\t\t\tif (resultSet != null) resultSet.close();\n\t\t\t\tif (statement != null) statement.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tdisconnectDatabase();\n\t\t}\n\t\treturn cachedRowSet;\n\t}", "public ResultSet select(final String tableName, final Hashtable<Enum<?>, Object> vals) {\n\n\t\tString select = \"SELECT * FROM `\" + tableName + \"`\";\n\n\t\tif (vals != null) {\n\t\t\tString compare = \"\";\n\t\t\tfinal Enumeration<?> keys = vals.keys();\n\t\t\tfinal Object[] values = vals.values().toArray();\n\t\t\tfor (int x = 0; x < values.length; x++) {\n\t\t\t\tcompare += \"`\" + keys.nextElement() + \"`='\" + values[x] + \"' AND \";\n\t\t\t}\n\t\t\tcompare = compare.substring(0, compare.lastIndexOf(\"AND \"));\n\n\t\t\tselect += \" WHERE \" + compare;\n\t\t}\n\n\t\tselect += \";\";\n\n\t\treturn executeQuery(select);\n\t}", "public Cursor fetchCourse(long rowId) throws SQLException\r\n{\r\nCursor mCursor = database.query(true, DATABASE_TABLE, new String[] { KEY_ROWID, KEY_CATEGORY, KEY_COURSENAME, KEY_ASSIGNMENTNAME, KEY_DESCRIPTION, KEY_DUEDATE, KEY_COMPLETED }, null, null, null,\r\nnull, null, null);\r\nif (mCursor != null)\r\n{\r\nmCursor.moveToFirst();\r\n}\r\nreturn mCursor;\r\n}", "private Cursor query(String tables, String[] columns, String selection, String[] selectionArgs, String groupBy,\n\t\t\tString orderBy) {\n\t\t/*\n\t\t * The SQLiteBuilder provides a map for all possible columns requested\n\t\t * to actual columns in the database, creating a simple column alias\n\t\t * mechanism by which the ContentProvider does not need to know the real\n\t\t * column names\n\t\t */\n\t\tSQLiteQueryBuilder builder = new SQLiteQueryBuilder();\n\t\tbuilder.setTables(tables);\n\n\t\tCursor cursor = builder.query(mDatabaseOpenHelper.getReadableDatabase(), columns, selection, selectionArgs,\n\t\t\t\tgroupBy, null, orderBy);\n\n\t\tif (cursor == null) {\n\t\t\tLog.w(TAG, \"No data available from the query\");\n\t\t\treturn null;\n\t\t} else if (!cursor.moveToFirst()) {\n\t\t\tLog.w(TAG, \"No data available from the query\");\n\t\t\tcursor.close();\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tLog.d(TAG, \"Returning \" + cursor.getCount() + \" records\");\n\t\t\n\t\treturn cursor;\n\t}", "Data<List<Boards>> getSearchBoardsCursor(String query, String cursor, String fields);", "ResultSet getResultSet(String query) {\n try {\n Statement statement = connection.createStatement();\n return statement.executeQuery(query);\n } catch (Exception e) {\n logger.info(\"getResultSet \" + e.getStackTrace().toString());\n return null;\n }\n }", "public Cursor getAllTermListItemsCursorWithFilter(String table, String constraint) {\n // Select All Query\n // Source: http://stackoverflow.com/questions/5186310/android-nearest-match-query-from-sqlite-db-if-input-string-value-is-bigger-tha\n String selectQuery = \"SELECT \" + KEY_ID + \", \" + KEY_TERM + \" FROM \" + table\n + \" WHERE \" + KEY_TERM + \" LIKE '%\" + constraint + \"%'\"\n + \" ORDER BY abs(length('\" + constraint + \"') - length(\" + KEY_TERM + \"))\";\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // return the cursor\n return cursor;\n }", "public Cursor getItem(long rowId) throws SQLException {\n\t\tCursor mCursor = db.query(true, TABLE_EVENTS, new String[] { ROW_ID,ROW_TITLE, ROW_DATE, ROW_TIME, ROW_DATETIME, ROW_INFO,\n\t\t\tROW_REPEAT,ROW_REPEAT_TEXT, ROW_REPEAT_CNT, ROW_REPEAT_TYPE_ID,ROW_REPEAT_TYPE_TEXT,\n\t\t\tROW_BEFORE,ROW_BEFORE_TEXT, ROW_BEFORE_CNT,ROW_BEFORE_TYPE_ID,ROW_BEFORE_TYPE_TEXT,\n\t\t\t\t\t\t\t\t ROW_ACTIVE }, ROW_ID + \"=\"\n\t\t\t\t+ rowId, null, null, null, null, null);\n\t\tif (mCursor != null) {\n\t\t\tmCursor.moveToFirst();\n\t\t}\n\t\treturn mCursor;\n\t}", "ResultSet runSQL(String query) {\n try {\n return connection.prepareStatement(query).executeQuery();\n }\n catch (SQLException e) {\n System.err.println(e.getMessage());\n return null;\n }\n }", "ResultSet executeQuery() throws SQLException;", "public ResultSet execute(PreparedStatement query)\r\n {\r\n try\r\n {\r\n return query.executeQuery();\r\n } catch(SQLException exception)\r\n {\r\n LOG.log(Level.SEVERE, \"\", exception);\r\n }\r\n return null;\r\n }", "@Nullable\n\tprotected abstract T readCursor(ResultSet rs, int currentRow) throws SQLException;", "public Cursor query(String tables, String[] projection, String selection, String[] selectionArgs, String sortOrder) {\n SQLiteQueryBuilder queryBuilder = new SQLiteQueryBuilder();\n queryBuilder.setTables(tables);\n return queryBuilder.query(\n getReadableDatabase(),\n projection,\n selection,\n selectionArgs,\n null,\n null,\n sortOrder);\n }", "public Cursor fetchPreg(long rowId) throws SQLException {\n\n Cursor mCursor =\n\n mDb.query(true, DATABASE_TABLE, new String[] {KEY_ROWID,\n KEY_TITLE, KEY_TIME, KEY_BODY}, KEY_ROWID + \"=\" + rowId, null,\n null, null, null, null);\n if (mCursor != null) {\n mCursor.moveToFirst();\n }\n return mCursor;\n\n }", "@Override\n public Cursor query(Uri uri, String[] projection, String selection,\n String[] selectionArgs, String sortOrder) {\n // Open a read-only database.\n SQLiteDatabase db = myOpenHelper.getWritableDatabase();\n\n // Replace these with valid SQL statements if necessary.\n String groupBy = null;\n String having = null;\n \n SQLiteQueryBuilder queryBuilder = new SQLiteQueryBuilder();\n queryBuilder.setTables(MySQLiteOpenHelper.DATABASE_TABLE);\n \n // If this is a row query, limit the result set to the passed in row.\n switch (uriMatcher.match(uri)) {\n case SINGLE_ROW : \n String rowID = uri.getPathSegments().get(1);\n queryBuilder.appendWhere(KEY_ID + \"=\" + rowID);\n break;\n case SEARCH : \n String query = uri.getPathSegments().get(1);\n queryBuilder.appendWhere(KEY_SEARCH_COLUMN + \n \" LIKE \\\"%\" + query + \"%\\\"\");\n queryBuilder.setProjectionMap(SEARCH_SUGGEST_PROJECTION_MAP); \n break;\n default: break;\n }\n \n Cursor cursor = queryBuilder.query(db, projection, selection,\n selectionArgs, groupBy, having, sortOrder);\n\n return cursor;\n }", "Query queryOn(Connection connection);", "public Cursor fetchAll() {\n\t\tCursor cursor = db.query(CertificationConstants.DB_TABLE, CertificationConstants.fields(), null, null, null, null, null);\n\t\treturn cursor;\n\t}", "public ResultSet execute(String query)\n\t{\n\t\tResultSet resultSet = null;\n\t\ttry {\n\t\tStatement statement = this.connection.createStatement();\n\t\tresultSet = statement.executeQuery(query);\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Error while executing query.\" +e.getMessage());\n\t\t}\n\t\treturn resultSet;\n\t}", "public ResultSet ExecuteQuery(String statement) throws SQLException{\r\n\t\treturn _dbStatement.executeQuery(statement);\r\n\t}", "public ResultSet executeQuery(String query)\n\t{\n\t\tStatement statement = null;\n\t\tResultSet resultSet = null;\n\t\t\n\t\ttry\n\t\t{\n\t\t\t//System.out.println(\"Performing query: \" + query);\n\t\t\tstatement = getConnection().createStatement();\n\t\t\tresultSet = statement.executeQuery(query);\n\t\t\t//System.out.println(\"Query performed\");\n\t\t\t\n\t\t\treturn resultSet;\n\t\t}\n\t\tcatch(SQLException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "public Cursor fetchAll() {\n\t\tCursor cursor = db.query(UserConstants.DB_TABLE, UserConstants.fields(), null, null, null, null, null);\n\t\treturn cursor;\n\t}" ]
[ "0.68757856", "0.66337156", "0.65301883", "0.64939183", "0.6417922", "0.6313787", "0.62204385", "0.61738104", "0.5941525", "0.5921184", "0.5921007", "0.58975536", "0.58820117", "0.58332634", "0.5817953", "0.5803272", "0.5772426", "0.5665133", "0.5643014", "0.56395304", "0.5613935", "0.5603029", "0.56029403", "0.5592252", "0.55886936", "0.55655307", "0.5548054", "0.5546867", "0.55421853", "0.55395186", "0.55022943", "0.5480088", "0.54717386", "0.54663354", "0.5448818", "0.54242486", "0.54076636", "0.5401776", "0.537618", "0.5334971", "0.5321239", "0.53179497", "0.53022385", "0.52927995", "0.52913374", "0.5290014", "0.52750176", "0.52640486", "0.525486", "0.52530354", "0.525096", "0.5250446", "0.5238572", "0.5232485", "0.52280664", "0.5224212", "0.52127576", "0.520438", "0.51985365", "0.5195073", "0.51876193", "0.5168533", "0.51438206", "0.5133347", "0.5119372", "0.5113717", "0.51113623", "0.5100052", "0.5098757", "0.50976115", "0.50961727", "0.50860214", "0.50811344", "0.50804305", "0.50778836", "0.5077237", "0.50723207", "0.5062959", "0.5055259", "0.5055196", "0.50402457", "0.50400054", "0.5038918", "0.5021208", "0.5018869", "0.5012426", "0.5006665", "0.5005444", "0.50026715", "0.50021654", "0.49967092", "0.4987967", "0.498502", "0.49837363", "0.49771202", "0.49763575", "0.49725515", "0.49702355", "0.49692708", "0.49597225" ]
0.54624254
34
Query the given table, returning a Cursor over the result set.
public Cursor rawQuery(String sql, String[] selectionArgs) { sqLiteDatabase.beginTransaction(); Cursor res = null; try { res = sqLiteDatabase.rawQuery(sql, selectionArgs); sqLiteDatabase.setTransactionSuccessful(); } catch (Exception e) { res = null; } finally { sqLiteDatabase.endTransaction(); } return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Cursor getAllFromTable(String tableName) {\n SQLiteDatabase db = dbHelper.getDatabase();\n db.beginTransaction();\n Cursor cursor = db.query(tableName, getProjection(tableName), null, null, null, null, null);\n db.endTransaction();\n return cursor;\n }", "public Cursor getAllData(String table){\n return db.rawQuery(\"SELECT * FROM \" + table, null);\n }", "private Cursor query(String table, String selection) {\r\n\t\treturn query(table, null, selection);\r\n\t}", "public Cursor getCursor() throws SQLException\n {\n Cursor c = db.query( true, C_TABLA, columnas, null, null, null, null, null, null);\n\n return c;\n }", "public Cursor getAllRows(String tableName) {\n Cursor c = db.rawQuery(\"SELECT * FROM [\"+tableName.replaceAll(\"\\\\s\", \"_\")+\"]\", null);\n if (c != null) {\n c.moveToFirst();\n }\n return c;\n }", "public Cursor getAllTermListItemsCursor(String table) {\n // Select All Query\n String selectQuery = \"SELECT \" + KEY_ID + \", \" + KEY_TERM + \" FROM \" + table + \" ORDER BY \" + KEY_TERM;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // return the cursor\n return cursor;\n }", "public Cursor getAllTermsCursor(String table) {\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + table + \" ORDER BY \" + KEY_TERM;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // return the cursor\n return cursor;\n }", "public Cursor fetchAll() {\n\t\treturn db.query(tableName, fields, null, null, null, null, null);\n\t}", "DBCursor execute();", "public Cursor getCursorWithRows() {\n Cursor cursor = new SimpleCursor(Query.QueryResult.newBuilder()\n .addFields(Query.Field.newBuilder().setName(\"col1\").setType(Query.Type.INT8).build())\n .addFields(Query.Field.newBuilder().setName(\"col2\").setType(Query.Type.UINT8).build())\n .addFields(Query.Field.newBuilder().setName(\"col3\").setType(Query.Type.INT16).build())\n .addFields(Query.Field.newBuilder().setName(\"col4\").setType(Query.Type.UINT16).build())\n .addFields(Query.Field.newBuilder().setName(\"col5\").setType(Query.Type.INT24).build())\n .addFields(Query.Field.newBuilder().setName(\"col6\").setType(Query.Type.UINT24).build())\n .addFields(Query.Field.newBuilder().setName(\"col7\").setType(Query.Type.INT32).build())\n .addFields(Query.Field.newBuilder().setName(\"col8\").setType(Query.Type.UINT32).build())\n .addFields(Query.Field.newBuilder().setName(\"col9\").setType(Query.Type.INT64).build())\n .addFields(Query.Field.newBuilder().setName(\"col10\").setType(Query.Type.UINT64).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col11\").setType(Query.Type.FLOAT32).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col12\").setType(Query.Type.FLOAT64).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col13\").setType(Query.Type.TIMESTAMP).build())\n .addFields(Query.Field.newBuilder().setName(\"col14\").setType(Query.Type.DATE).build())\n .addFields(Query.Field.newBuilder().setName(\"col15\").setType(Query.Type.TIME).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col16\").setType(Query.Type.DATETIME).build())\n .addFields(Query.Field.newBuilder().setName(\"col17\").setType(Query.Type.YEAR).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col18\").setType(Query.Type.DECIMAL).build())\n .addFields(Query.Field.newBuilder().setName(\"col19\").setType(Query.Type.TEXT).build())\n .addFields(Query.Field.newBuilder().setName(\"col20\").setType(Query.Type.BLOB).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col21\").setType(Query.Type.VARCHAR).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col22\").setType(Query.Type.VARBINARY).build())\n .addFields(Query.Field.newBuilder().setName(\"col23\").setType(Query.Type.CHAR).build())\n .addFields(Query.Field.newBuilder().setName(\"col24\").setType(Query.Type.BINARY).build())\n .addFields(Query.Field.newBuilder().setName(\"col25\").setType(Query.Type.BIT).build())\n .addFields(Query.Field.newBuilder().setName(\"col26\").setType(Query.Type.ENUM).build())\n .addFields(Query.Field.newBuilder().setName(\"col27\").setType(Query.Type.SET).build())\n .addRows(Query.Row.newBuilder().addLengths(\"-50\".length()).addLengths(\"50\".length())\n .addLengths(\"-23000\".length()).addLengths(\"23000\".length())\n .addLengths(\"-100\".length()).addLengths(\"100\".length()).addLengths(\"-100\".length())\n .addLengths(\"100\".length()).addLengths(\"-1000\".length()).addLengths(\"1000\".length())\n .addLengths(\"24.52\".length()).addLengths(\"100.43\".length())\n .addLengths(\"2016-02-06 14:15:16\".length()).addLengths(\"2016-02-06\".length())\n .addLengths(\"12:34:56\".length()).addLengths(\"2016-02-06 14:15:16\".length())\n .addLengths(\"2016\".length()).addLengths(\"1234.56789\".length())\n .addLengths(\"HELLO TDS TEAM\".length()).addLengths(\"HELLO TDS TEAM\".length())\n .addLengths(\"HELLO TDS TEAM\".length()).addLengths(\"HELLO TDS TEAM\".length())\n .addLengths(\"N\".length()).addLengths(\"HELLO TDS TEAM\".length())\n .addLengths(\"1\".length()).addLengths(\"val123\".length())\n .addLengths(\"val123\".length()).setValues(ByteString\n .copyFromUtf8(\"-5050-2300023000-100100-100100-1000100024.52100.432016-02-06 \" +\n \"14:15:162016-02-0612:34:562016-02-06 14:15:1620161234.56789HELLO TDS TEAMHELLO TDS TEAMHELLO\"\n +\n \" TDS TEAMHELLO TDS TEAMNHELLO TDS TEAM1val123val123\"))).build());\n return cursor;\n }", "public Query query(Table table) {\r\n return new Query(this, table);\r\n }", "public Cursor getData(){\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor res = db.rawQuery(\"select * from \" + Table_name, null);\n return res;\n }", "public abstract Cursor buildCursor();", "public Cursor queryTheCursorLocation() { \n\t Cursor c = db.rawQuery(\"SELECT * FROM \"+ DBEntryContract.LocationEntry.TABLE_NAME, null); \n\t return c; \n\t}", "public Cursor getData (){\n SQLiteDatabase database = getReadableDatabase();\n String sql = \"SELECT * FROM \" + TABLE_NAME + \"\";\n return database.rawQuery(sql,null);\n }", "public Cursor getAllData() {\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor res = db.rawQuery(\"Select * from \" + TABLE_NAME, null);\n return res;\n }", "public static Cursor getAllCursor() {\n String tableName = Cache.getTableInfo(TodoItem.class).getTableName();\n\n // Query all items without any conditions\n String sql = new Select(tableName + \".*, \" + tableName + \".Id as _id\").\n from(TodoItem.class).toSql();\n\n return Cache.openDatabase().rawQuery(sql, null);\n }", "public Cursor getAllTrousersCursor() {\n String selectQuery = \"SELECT * FROM \" + TrouserEntry.TABLE_NAME;\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(selectQuery, null);\n\n return c;\n }", "public Cursor getQueryResult(String MY_QUERY) throws SQLException\n {\n return db.rawQuery(MY_QUERY, null);\n }", "private Cursor getCursorObject() {\n SQLiteDatabase db = mDbHelper.getReadableDatabase();\n\n // Define a projection that specifies which columns from the database\n // you will actually use after this query.\n String[] projection = {\n HabbitContract.HabbitEntry._ID,\n HabbitContract.HabbitEntry.COLUMN_HAD_BREAKFAST,\n HabbitContract.HabbitEntry.COLUMN_BREAKFAST_MEAL,\n HabbitContract.HabbitEntry.COLUMN_HAD_LUNCH,\n HabbitContract.HabbitEntry.COLUMN_LUNCH_MEAL,\n HabbitContract.HabbitEntry.COLUMN_HAD_SUPPER,\n HabbitContract.HabbitEntry.COLUMN_SUPPER_MEAL,\n HabbitContract.HabbitEntry.COLUMN_ADDITIONAL_DATA,\n HabbitContract.HabbitEntry.COLUMN_DATETIME_STAMP};\n\n // Perform a query on the nutrition table\n Cursor cursor = db.query(\n HabbitContract.HabbitEntry.TABLE_NAME, // The table to query\n projection, // The columns to return\n null, // The columns for the WHERE clause\n null, // The values for the WHERE clause\n null, // Don't group the rows\n null, // Don't filter by row groups\n null); // The sort order\n\n return cursor;\n }", "protected ResultSet search(String tableName, Connection myConn) {\n String sql = \"SELECT * FROM \" + tableName + \";\";\n try {\n Statement newCommand = myConn.createStatement();\n ResultSet result = newCommand.executeQuery(sql);\n\n // will closed when ResultSet is closed\n newCommand.closeOnCompletion();\n return result;\n\n } catch (SQLException e) {\n e.printStackTrace();\n return null;\n }\n }", "DataFrameCursor<R,C> cursor();", "public Cursor displayData(){\n SQLiteDatabase db = this.getReadableDatabase();\n String selectQuarry = \"SELECT * FROM \"+Db_Table;\n Cursor cursor =db.rawQuery(selectQuarry,null);\n return cursor;\n }", "public Cursor findTermCursor (String table, String constraint) {\n // Select All Query\n // Source: http://stackoverflow.com/questions/5186310/android-nearest-match-query-from-sqlite-db-if-input-string-value-is-bigger-tha\n String selectQuery = \"SELECT \" + KEY_ID + \" FROM \" + table\n + \" WHERE \" + KEY_TERM + \" = '\" + constraint + \"'\";\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // return the cursor\n return cursor;\n }", "public Cursor getAllShirtsCursor() {\n String selectQuery = \"SELECT * FROM \" + ShirtEntry.TABLE_NAME;\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(selectQuery, null);\n\n return c;\n }", "public ResultSet getRecords(String table)\n\t{\n\t\tResultSet rs = null;\n\t\trs = source.select(\"select * from \" + table);\n\t\treturn rs;\n\t}", "public Cursor retrieve()\n {\n String[] columns={Constants.ROW_ID,Constants.FIRSTNAME,Constants.LASTNAME};\n Cursor c=null;\n c=db.query(Constants.TB_NAME,columns,null,null,null,null,null);\n return c;\n }", "public Cursor queryTheCursorCategory() { \n\t Cursor c = db.rawQuery(\"SELECT * FROM \"+ DBEntryContract.CategoryEntry.TABLE_NAME, null); \n\t return c; \n\t}", "public ResultSet getAllByIdFromTable(String table, int id) throws SQLException {\n\t\tquery = \"SELECT * FROM '\" + table +\"' WHERE id=\" + id;\n\t\treturn stmt.executeQuery(query);\n\t}", "public Cursor queryUsedApks(String table, int num) {\n\t\ttry {\n\t\t\topenDatabase();\n\t\t\treturn db.query(table, null, null, null, null, null, Columns._ID +\" desc \", null);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "public Cursor getCursorWithRowsAsNull() {\n Cursor cursor = new SimpleCursor(Query.QueryResult.newBuilder()\n .addFields(Query.Field.newBuilder().setName(\"col1\").setType(Query.Type.INT8).build())\n .addFields(Query.Field.newBuilder().setName(\"col2\").setType(Query.Type.UINT8).build())\n .addFields(Query.Field.newBuilder().setName(\"col3\").setType(Query.Type.INT16).build())\n .addFields(Query.Field.newBuilder().setName(\"col4\").setType(Query.Type.UINT16).build())\n .addFields(Query.Field.newBuilder().setName(\"col5\").setType(Query.Type.INT24).build())\n .addFields(Query.Field.newBuilder().setName(\"col6\").setType(Query.Type.UINT24).build())\n .addFields(Query.Field.newBuilder().setName(\"col7\").setType(Query.Type.INT32).build())\n .addFields(Query.Field.newBuilder().setName(\"col8\").setType(Query.Type.UINT32).build())\n .addFields(Query.Field.newBuilder().setName(\"col9\").setType(Query.Type.INT64).build())\n .addFields(Query.Field.newBuilder().setName(\"col10\").setType(Query.Type.UINT64).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col11\").setType(Query.Type.FLOAT32).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col12\").setType(Query.Type.FLOAT64).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col13\").setType(Query.Type.TIMESTAMP).build())\n .addFields(Query.Field.newBuilder().setName(\"col14\").setType(Query.Type.DATE).build())\n .addFields(Query.Field.newBuilder().setName(\"col15\").setType(Query.Type.TIME).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col16\").setType(Query.Type.DATETIME).build())\n .addFields(Query.Field.newBuilder().setName(\"col17\").setType(Query.Type.YEAR).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col18\").setType(Query.Type.DECIMAL).build())\n .addFields(Query.Field.newBuilder().setName(\"col19\").setType(Query.Type.TEXT).build())\n .addFields(Query.Field.newBuilder().setName(\"col20\").setType(Query.Type.BLOB).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col21\").setType(Query.Type.VARCHAR).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col22\").setType(Query.Type.VARBINARY).build())\n .addFields(Query.Field.newBuilder().setName(\"col23\").setType(Query.Type.CHAR).build())\n .addFields(Query.Field.newBuilder().setName(\"col24\").setType(Query.Type.BINARY).build())\n .addFields(Query.Field.newBuilder().setName(\"col25\").setType(Query.Type.BIT).build())\n .addFields(Query.Field.newBuilder().setName(\"col26\").setType(Query.Type.ENUM).build())\n .addFields(Query.Field.newBuilder().setName(\"col27\").setType(Query.Type.SET).build())\n .addRows(Query.Row.newBuilder().addLengths(\"-50\".length()).addLengths(\"50\".length())\n .addLengths(\"-23000\".length()).addLengths(\"23000\".length())\n .addLengths(\"-100\".length()).addLengths(\"100\".length()).addLengths(\"-100\".length())\n .addLengths(\"100\".length()).addLengths(\"-1000\".length()).addLengths(\"1000\".length())\n .addLengths(\"24.52\".length()).addLengths(\"100.43\".length())\n .addLengths(\"2016-02-06 14:15:16\".length()).addLengths(\"2016-02-06\".length())\n .addLengths(\"12:34:56\".length()).addLengths(\"2016-02-06 14:15:16\".length())\n .addLengths(\"2016\".length()).addLengths(\"1234.56789\".length())\n .addLengths(\"HELLO TDS TEAM\".length()).addLengths(\"HELLO TDS TEAM\".length())\n .addLengths(\"HELLO TDS TEAM\".length()).addLengths(\"HELLO TDS TEAM\".length())\n .addLengths(\"N\".length()).addLengths(\"HELLO TDS TEAM\".length())\n .addLengths(\"1\".length()).addLengths(\"val123\".length()).addLengths(-1).setValues(\n ByteString.copyFromUtf8(\n \"-5050-2300023000-100100-100100-1000100024.52100.432016-02-06 \" +\n \"14:15:162016-02-0612:34:562016-02-06 14:15:1620161234.56789HELLO TDS TEAMHELLO TDS \"\n +\n \"TEAMHELLO TDS TEAMHELLO TDS TEAMNHELLO TDS TEAM1val123\"))).build());\n return cursor;\n }", "@Override\n\tprotected Cursor query()\n\t{\n\t\treturn null;\n\t}", "public static ResultSet getData(String tableName) throws SQLException, ClassNotFoundException {\n Connection connection = OracleConnector.getConnection();\n Statement statement = connection.createStatement();\n String query = \"SELECT * FROM \" + tableName;\n\n return statement.executeQuery(query);\n }", "public Cursor getStudentData(){\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n Cursor res = db.rawQuery(\"SELECT * FROM \"+ TABLE_NAME, null);\r\n return res;\r\n }", "public Cursor query(String table, String[] columns, String selection,\n String[] selectionArgs, String groupBy, String having,\n String orderBy) {\n\n sqLiteDatabase.beginTransaction();\n Cursor res = null;\n try {\n res = sqLiteDatabase.query(table, columns, selection,\n selectionArgs, groupBy, having, orderBy);\n sqLiteDatabase.setTransactionSuccessful();\n } catch (Exception e) {\n res = null;\n } finally {\n sqLiteDatabase.endTransaction();\n }\n return res;\n }", "public Cursor getcname() {\n\t\tString countQuery = \"SELECT * FROM \" + DATABASE_TABLE1;\n\t \n\t Cursor cursor = ourDatabase.rawQuery(countQuery, null);\n\t \n\t\treturn cursor;\n\t}", "public static interface Cursor {\n\t\tpublic void open() throws RelationException;\n\n\t\t//the hasNext() method actually loads the object, so don't skip it\n\t\tpublic boolean hasNext() throws RelationException;\n\n\t\t//this retrieves the next object. use in confunction with hasNext();\n\t\tpublic Tuple next() throws RelationException;\n\n\t\tpublic void close() throws RelationException;\n\t}", "public Cursor pragma(String table_name) {\n SQLiteDatabase db = mydbHelper.getWritableDatabase();\n return db.rawQuery(\"PRAGMA table_info(\" + table_name + \")\", null);\n }", "public ResultSet getAll(String tableName)\n {\n\n String selectStr;\n ResultSet rs=null;\n\n try{\n\n selectStr=\"SELECT * FROM \"+tableName;\n rs = stmt.executeQuery(selectStr);\n\n\n\n\n\n }catch(Exception e){\n System.out.println(\"Error occurred in searchLogin\");\n }\n\n return rs;\n }", "public Cursor getData()\n {\n /* We are using the rawQuery method to execute the SQLite Query we have made and return\n * the Data in the form of a Cursor. As for the Query itself SELECT specifies what Columns\n * we want to select in this case its everything (*)\n */\n return this.getWritableDatabase().rawQuery(\"SELECT * FROM \" + TABLE_NAME, null);\n }", "public ResultSet executeSaleQuery(String query){\r\n\t\tResultSet rs = null;\r\n\t\tStatement st=null;\r\n\t\ttry {\r\n\t\t\tst = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);\r\n\t\t\trs = st.executeQuery(query);\r\n\t\t}catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn rs;\r\n\t}", "public Cursor fetchEntry(long rowId) throws SQLException {\n\t return mDb.query(true, DATABASE_TABLE, null, KEY_ROWID + \"=\" + rowId, null, null, null, null, null);\n }", "public Cursor fetchAllPreg() {\n\n return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_TITLE, KEY_TIME,\n KEY_BODY}, null, null, null, null, null);\n }", "public Cursor getSelectionFromTable(String tableName, @Nullable String[] columnNames, String whereClause, String[] whereVals) {\n if (columnNames == null) {\n columnNames = getProjection(tableName);\n }\n SQLiteDatabase db = dbHelper.getDatabase();\n db.beginTransaction();\n Cursor cursor = db.query(tableName, columnNames, whereClause, whereVals, null, null, null);\n db.endTransaction();\n return cursor;\n }", "public DBCursor find(final DBObject query) {\n return new DBCursor(this, query, null, getReadPreference());\n }", "Data<List<Boards>> getSearchBoardsCursor(String query, String cursor);", "public Cursor raw(String query){\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor c = db.rawQuery(query, null);\n return c;\n }", "public abstract ResultList executeQuery(DatabaseQuery query);", "public Cursor fetchAllEntries() {\n /*\n return database.query(\n DATABASE_TABLE, \n new String[] { ROWID, MAC_ADDRESS, LATITUDE, LONGITUDE, FREQUENCY, SIGNAL}, \n null,\n null, \n null,\n null, \n null);\n */\n \n // sql must NOT be ';' terminated\n String sql = \"SELECT \"+ ROWID + \", \" + MAC_ADDRESS + \", \" + LATITUDE + \", \" + LONGITUDE + \", \" \n + NETWORK_NAME + \", \" + CAPABILITIES + \", \" + FREQUENCY + \", \" + SIGNAL\n + \" FROM \" + DATABASE_TABLE;\n return database.rawQuery(sql, null);\n }", "public Cursor fetchAllEntries() {\n return mDb.query(DATABASE_TABLE, null, null, null, null, null, null);\n }", "public Cursor getData(){\n SQLiteDatabase db = this.getWritableDatabase();\n String query= \"SELECT * FROM credit_table\";\n Cursor data = db.rawQuery(query,null);\n return data;\n }", "public abstract long getCursor();", "public void selectFromTable(String tableName){\n //SQL query\n String query = \"SELECT * FROM \" + tableName;\n\n try {\n //connection\n stmt = con.createStatement();\n //execute query\n rs = stmt.executeQuery(query);\n System.out.println(\"\\nid\\t\\tmyName\\t\\taddress\\n____________________________________\");\n\n //get data\n while (rs.next()){\n int id = rs.getInt(1); //returns the id / first column\n String myName = rs.getString(\"myName\"); //returns my name\n String address = rs.getString(\"address\"); //returns my name\n System.out.println(id + \"\\t\\t\" + myName + \"\\t\\t\" + address);\n }\n }\n catch (SQLException ex){\n System.out.println(\"\\n--Query did not execute--\");\n ex.printStackTrace();\n }\n }", "public Cursor getAllData(\n\t\t\t\t\tSQLiteDatabase db, String tableName, String[] cols) {\n\t\t\n\t\t////////////////////////////////\n\n\t\t// validate: table exists\n\n\t\t////////////////////////////////\n\t\t//\n\t\tCursor cursor = db.query(tableName, cols, null, null, null, null, null);\n\t\t\n\t\treturn cursor;\n\t}", "public Cursor getAllTermListItemsByDictionaryCursor(String table, String dictionary) {\n // Select All Query\n String selectQuery = \"SELECT \" + KEY_ID + \", \" + KEY_TERM + \" FROM \" + table + \" WHERE \" + KEY_DICTIONARY + \" = '\" + dictionary + \"' ORDER BY \" + KEY_TERM;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // return cursor\n return cursor;\n }", "public Cursor getAll(){\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor;\n cursor = db.rawQuery(\"SELECT * from tweets\",null);\n return cursor;\n }", "public Cursor getAllRows(){\n Cursor cursor = database.query(dbHelper.TABLE_USERS,allColumns,null,null,null,null,null);\n if (cursor != null){\n cursor.moveToNext();\n }\n return cursor;\n }", "public static Cursor selectAll(EntryDatabase instance) {\n SQLiteDatabase database = instance.getWritableDatabase();\n return database.rawQuery(\"SELECT * FROM entries\", null);\n }", "public Cursor getRecords() {\n Cursor c;\n try {\n c = db.rawQuery(\"select * from \" + MyOpenHelper.TLoginDetails, null);\n return c;\n } catch (Exception e) {\n Log.e(\"Error At\", \" \" + e);\n e.printStackTrace();\n // TODO: handle exception\n return null;\n }\n }", "public Cursor getAllRowData() {\n String where = null;\n Cursor c = \tdb.query(true, DATA_TABLE, null,\n where, null, null, null, null, null);\n if (c != null) {\n c.moveToFirst();\n }\n return c;\n }", "private Cursor getCursorData() {\n\t\tDBAdventureHelper enclosingInstance = new DBAdventureHelper();\r\n\t\tDBAdventureHelper.AdventureDBHelper mDbHelper = enclosingInstance.new AdventureDBHelper(this);\r\n\t\t// Get the data repository in read mode\r\n\t\tSQLiteDatabase db = mDbHelper.getReadableDatabase();\r\n\r\n\t\t// Projection defines which DB cols you will be pulled from the query\r\n\t\t// Cursor queries the database with the provided parameters; pulling record where ID col == Adventure ID\r\n\t\tCursor c = db.query(\r\n\t\t\t\tAdventureContract.AdventuresTable.ADVENTURES_TABLE_NAME, \t\t\t\t\t\t\t\t\t// The table to query\r\n\t\t\t projection, \t\t\t\t\t\t\t\t\t\t\t\t\t// The columns to return\r\n\t\t\t null,\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// The columns for the WHERE clause\r\n\t\t\t null, \t \t\t\t\t\t\t\t\t \t\t\t\t\t\t\t// The values for the WHERE clause\r\n\t\t\t null, \t\t\t\t\t\t\t\t\t\t\t\t\t// don't group the rows\r\n\t\t\t null, \t\t\t\t\t\t\t\t\t\t\t\t\t// don't filter by row groups\r\n\t\t\t \"DESC\" \t\t \t\t\t\t\t\t\t\t\t\t\t\t\t// The sort order\r\n\t\t);\r\n\t\tc.moveToFirst();\r\n\t return c;\r\n\t }", "public ResultSet executeQuery(String query) throws SQLException {\n Connection con = this.getConnection();\n\n if (con == null) {\n throw new SQLException(\"Can't get database connection\");\n }\n\n Statement statement = con.createStatement();\n\n ResultSet result = statement.executeQuery(query);\n con.close(); // Not sure if allowed to close connection before result.\n // MAKE SURE to close result after using it! result.close();\n return result;\n }", "public ResultSet executeQuery() throws SQLException {\n return statement.executeQuery();\n }", "public Cursor fetchById(long rowId) {\n\t\tCursor cursor = db.query(tableName, fields, fields[0] + \" = \" + rowId, null, null, null, null);\n\t\tif (cursor != null) {\n\t\t\tcursor.moveToFirst();\n\t\t}\n\t\treturn cursor;\n\t}", "public ResultSet selecionar(String tabela);", "private Cursor query(boolean distinct, String table, String[] columns,\r\n\t\t\tString selection, String[] selectionArgs, String groupBy,\r\n\t\t\tString having, String orderBy, String limit) {\r\n\t\treturn mDataBase.query(distinct, table, columns, selection,\r\n\t\t\t\tselectionArgs, groupBy, having, orderBy, limit);\r\n\t}", "public Cursor getCursor() throws RelationException;", "private void select(String tableName) {\n String query = \"SELECT * FROM \" + tableName;\n\n this.executeSelect(query);\n }", "public Cursor safeQuery(SQLiteDatabase db, String query) {\n Cursor cursor = null;\n try {\n cursor = db.rawQuery(query, null);\n } catch(SQLiteException e){\n Log.i(TAG, \"Error: problem with database query.\");\n }\n return cursor;\n }", "public ResultSet query (String query) throws java.sql.SQLException {\n /*\n if (query.indexOf('(') != -1)\n Logger.write(\"VERBOSE\", \"DB\", \"query(\\\"\" + query.substring(0,query.indexOf('(')) + \"...\\\")\");\n else\n Logger.write(\"VERBOSE\", \"DB\", \"query(\\\"\" + query.substring(0,20) + \"...\\\")\");\n */\n Logger.write(\"VERBOSE\", \"DB\", \"query(\\\"\" + query + \"\\\")\");\n \n try {\n Statement statement = dbConnection.createStatement();\n statement.setQueryTimeout(30);\n ResultSet r = statement.executeQuery(query);\n return r;\n } catch (java.sql.SQLException e) {\n Logger.write(\"RED\", \"DB\", \"Failed to query database: \" + e);\n throw e;\n }\n }", "public ResultSet executeQuery(String request) {\n try {\r\n return st.executeQuery(request);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(Database.class.getName()).log(Level.SEVERE, null, ex);\r\n return null;\r\n }\r\n }", "public int cursor();", "public ResultSet execute(final String stmt) throws SQLException {\n return connection.createStatement().executeQuery(stmt);\n }", "public ResultSet executeQuery(String query) {\n ResultSet rs = null;\n \ttry {\n rs = st.executeQuery(query);\n } catch(Exception e) {\n \te.printStackTrace();\n }\n return rs;\n }", "public static ResultSet Execute(String query) throws SQLException{\r\n\t\ttry {\r\n\t\t\tinitConnection();\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.out.println(e.toString());\r\n\t\t}\r\n\t\tStatement state = dbCon.createStatement();\r\n\t\treturn state.executeQuery(query);\t\t\t\r\n\t}", "@Override\n public void query(Connection c, SQLEngine engine, Record val, ImmutableList.Builder<Record> result) throws DataException {\n \n Variant varcat = val.get(\"TABLE_CAT\");\n String cat = Variants.isNull(varcat) ? null : varcat.asString();\n \n Variant varschem = val.get(\"TABLE_SCHEM\");\n String schem = Variants.isNull(varschem) ? null : varschem.asString();\n \n Variant varname = val.get(\"TABLE_NAME\");\n String name = Variants.isNull(varname) ? null : varname.asString();\n \n Variant vartype = val.get(\"TABLE_TYPE\");\n String[] tabletypes = Variants.isNull(vartype) ? TABLE_TYPES : new String[]{ vartype.asString() };\n\n try (ResultSet resultset = c.getMetaData().getTables(cat, schem, name, tabletypes)) {\n while (resultset.next()) {\n result.add(read(resultset, val));\n } \n } catch (SQLException ex) {\n throw new DataException(ex);\n }\n }", "private ResultSet GetData(String query){\n\t\ttry{\n\t\t\tstat = connection.createStatement();\n\t\t\treturn stat.executeQuery(query);\n\t\t}catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t\treturn null;\n\t\t}\n\t}", "private ResultSet executeQuery(String query) {\r\n Statement stmt;\r\n ResultSet result = null;\r\n try {\r\n// System.out.print(\"Connect DB .... \");\r\n conn = openConnect();\r\n// System.out.println(\"successfully \");\r\n stmt = conn.createStatement();\r\n result = stmt.executeQuery(query);\r\n } catch (SQLException | ClassNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n return result;\r\n }", "public static QueryableTable processCursor( final int offset, final Enumerable<Object[]> a ) {\n return new AbstractQueryableTable( Object[].class ) {\n @Override\n public AlgDataType getRowType( AlgDataTypeFactory typeFactory ) {\n return typeFactory.builder()\n .add( \"result\", null, PolyType.INTEGER )\n .build();\n }\n\n\n @Override\n public <T> Queryable<T> asQueryable( DataContext dataContext, SchemaPlus schema, String tableName ) {\n final Enumerable<Integer> enumerable = a.select( a0 -> offset + ((Integer) a0[0]) );\n //noinspection unchecked\n return (Queryable) enumerable.asQueryable();\n }\n };\n }", "public static ResultSet executeSelectQuery(String query){\n\t\tStatement statement = null;\n\t\tResultSet resultSet = null;\n\t\tCachedRowSetImpl cachedRowSet = null;\n\t\ttry{\n\t\t\tconnectDatabase();\n\t\t\tstatement = connection.createStatement();\n\t\t\tresultSet = statement.executeQuery(query);\n\t\t\tcachedRowSet = new CachedRowSetImpl(); // cache the resultset\n\t\t\tcachedRowSet.populate(resultSet);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\ttry{\n\t\t\t\t// close the connections\n\t\t\t\tif (resultSet != null) resultSet.close();\n\t\t\t\tif (statement != null) statement.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tdisconnectDatabase();\n\t\t}\n\t\treturn cachedRowSet;\n\t}", "public ResultSet retrieve(Connection con, String query) {\n ResultSet result = null;\n try {\n Statement state = con.createStatement();\n result = state.executeQuery(query); \n } catch (SQLException e) {\n System.err.println(e);\n }\n return result;\n\n }", "public Cursor fetchCourse(long rowId) throws SQLException\r\n{\r\nCursor mCursor = database.query(true, DATABASE_TABLE, new String[] { KEY_ROWID, KEY_CATEGORY, KEY_COURSENAME, KEY_ASSIGNMENTNAME, KEY_DESCRIPTION, KEY_DUEDATE, KEY_COMPLETED }, null, null, null,\r\nnull, null, null);\r\nif (mCursor != null)\r\n{\r\nmCursor.moveToFirst();\r\n}\r\nreturn mCursor;\r\n}", "private Cursor query(String tables, String[] columns, String selection, String[] selectionArgs, String groupBy,\n\t\t\tString orderBy) {\n\t\t/*\n\t\t * The SQLiteBuilder provides a map for all possible columns requested\n\t\t * to actual columns in the database, creating a simple column alias\n\t\t * mechanism by which the ContentProvider does not need to know the real\n\t\t * column names\n\t\t */\n\t\tSQLiteQueryBuilder builder = new SQLiteQueryBuilder();\n\t\tbuilder.setTables(tables);\n\n\t\tCursor cursor = builder.query(mDatabaseOpenHelper.getReadableDatabase(), columns, selection, selectionArgs,\n\t\t\t\tgroupBy, null, orderBy);\n\n\t\tif (cursor == null) {\n\t\t\tLog.w(TAG, \"No data available from the query\");\n\t\t\treturn null;\n\t\t} else if (!cursor.moveToFirst()) {\n\t\t\tLog.w(TAG, \"No data available from the query\");\n\t\t\tcursor.close();\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tLog.d(TAG, \"Returning \" + cursor.getCount() + \" records\");\n\t\t\n\t\treturn cursor;\n\t}", "public ResultSet select(final String tableName, final Hashtable<Enum<?>, Object> vals) {\n\n\t\tString select = \"SELECT * FROM `\" + tableName + \"`\";\n\n\t\tif (vals != null) {\n\t\t\tString compare = \"\";\n\t\t\tfinal Enumeration<?> keys = vals.keys();\n\t\t\tfinal Object[] values = vals.values().toArray();\n\t\t\tfor (int x = 0; x < values.length; x++) {\n\t\t\t\tcompare += \"`\" + keys.nextElement() + \"`='\" + values[x] + \"' AND \";\n\t\t\t}\n\t\t\tcompare = compare.substring(0, compare.lastIndexOf(\"AND \"));\n\n\t\t\tselect += \" WHERE \" + compare;\n\t\t}\n\n\t\tselect += \";\";\n\n\t\treturn executeQuery(select);\n\t}", "Data<List<Boards>> getSearchBoardsCursor(String query, String cursor, String fields);", "ResultSet getResultSet(String query) {\n try {\n Statement statement = connection.createStatement();\n return statement.executeQuery(query);\n } catch (Exception e) {\n logger.info(\"getResultSet \" + e.getStackTrace().toString());\n return null;\n }\n }", "public Cursor getAllTermListItemsCursorWithFilter(String table, String constraint) {\n // Select All Query\n // Source: http://stackoverflow.com/questions/5186310/android-nearest-match-query-from-sqlite-db-if-input-string-value-is-bigger-tha\n String selectQuery = \"SELECT \" + KEY_ID + \", \" + KEY_TERM + \" FROM \" + table\n + \" WHERE \" + KEY_TERM + \" LIKE '%\" + constraint + \"%'\"\n + \" ORDER BY abs(length('\" + constraint + \"') - length(\" + KEY_TERM + \"))\";\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // return the cursor\n return cursor;\n }", "public Cursor getItem(long rowId) throws SQLException {\n\t\tCursor mCursor = db.query(true, TABLE_EVENTS, new String[] { ROW_ID,ROW_TITLE, ROW_DATE, ROW_TIME, ROW_DATETIME, ROW_INFO,\n\t\t\tROW_REPEAT,ROW_REPEAT_TEXT, ROW_REPEAT_CNT, ROW_REPEAT_TYPE_ID,ROW_REPEAT_TYPE_TEXT,\n\t\t\tROW_BEFORE,ROW_BEFORE_TEXT, ROW_BEFORE_CNT,ROW_BEFORE_TYPE_ID,ROW_BEFORE_TYPE_TEXT,\n\t\t\t\t\t\t\t\t ROW_ACTIVE }, ROW_ID + \"=\"\n\t\t\t\t+ rowId, null, null, null, null, null);\n\t\tif (mCursor != null) {\n\t\t\tmCursor.moveToFirst();\n\t\t}\n\t\treturn mCursor;\n\t}", "ResultSet runSQL(String query) {\n try {\n return connection.prepareStatement(query).executeQuery();\n }\n catch (SQLException e) {\n System.err.println(e.getMessage());\n return null;\n }\n }", "ResultSet executeQuery() throws SQLException;", "public ResultSet execute(PreparedStatement query)\r\n {\r\n try\r\n {\r\n return query.executeQuery();\r\n } catch(SQLException exception)\r\n {\r\n LOG.log(Level.SEVERE, \"\", exception);\r\n }\r\n return null;\r\n }", "@Nullable\n\tprotected abstract T readCursor(ResultSet rs, int currentRow) throws SQLException;", "public Cursor query(String tables, String[] projection, String selection, String[] selectionArgs, String sortOrder) {\n SQLiteQueryBuilder queryBuilder = new SQLiteQueryBuilder();\n queryBuilder.setTables(tables);\n return queryBuilder.query(\n getReadableDatabase(),\n projection,\n selection,\n selectionArgs,\n null,\n null,\n sortOrder);\n }", "public Cursor fetchPreg(long rowId) throws SQLException {\n\n Cursor mCursor =\n\n mDb.query(true, DATABASE_TABLE, new String[] {KEY_ROWID,\n KEY_TITLE, KEY_TIME, KEY_BODY}, KEY_ROWID + \"=\" + rowId, null,\n null, null, null, null);\n if (mCursor != null) {\n mCursor.moveToFirst();\n }\n return mCursor;\n\n }", "@Override\n public Cursor query(Uri uri, String[] projection, String selection,\n String[] selectionArgs, String sortOrder) {\n // Open a read-only database.\n SQLiteDatabase db = myOpenHelper.getWritableDatabase();\n\n // Replace these with valid SQL statements if necessary.\n String groupBy = null;\n String having = null;\n \n SQLiteQueryBuilder queryBuilder = new SQLiteQueryBuilder();\n queryBuilder.setTables(MySQLiteOpenHelper.DATABASE_TABLE);\n \n // If this is a row query, limit the result set to the passed in row.\n switch (uriMatcher.match(uri)) {\n case SINGLE_ROW : \n String rowID = uri.getPathSegments().get(1);\n queryBuilder.appendWhere(KEY_ID + \"=\" + rowID);\n break;\n case SEARCH : \n String query = uri.getPathSegments().get(1);\n queryBuilder.appendWhere(KEY_SEARCH_COLUMN + \n \" LIKE \\\"%\" + query + \"%\\\"\");\n queryBuilder.setProjectionMap(SEARCH_SUGGEST_PROJECTION_MAP); \n break;\n default: break;\n }\n \n Cursor cursor = queryBuilder.query(db, projection, selection,\n selectionArgs, groupBy, having, sortOrder);\n\n return cursor;\n }", "Query queryOn(Connection connection);", "public Cursor fetchAll() {\n\t\tCursor cursor = db.query(CertificationConstants.DB_TABLE, CertificationConstants.fields(), null, null, null, null, null);\n\t\treturn cursor;\n\t}", "public ResultSet execute(String query)\n\t{\n\t\tResultSet resultSet = null;\n\t\ttry {\n\t\tStatement statement = this.connection.createStatement();\n\t\tresultSet = statement.executeQuery(query);\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Error while executing query.\" +e.getMessage());\n\t\t}\n\t\treturn resultSet;\n\t}", "public ResultSet ExecuteQuery(String statement) throws SQLException{\r\n\t\treturn _dbStatement.executeQuery(statement);\r\n\t}", "public ResultSet executeQuery(String query)\n\t{\n\t\tStatement statement = null;\n\t\tResultSet resultSet = null;\n\t\t\n\t\ttry\n\t\t{\n\t\t\t//System.out.println(\"Performing query: \" + query);\n\t\t\tstatement = getConnection().createStatement();\n\t\t\tresultSet = statement.executeQuery(query);\n\t\t\t//System.out.println(\"Query performed\");\n\t\t\t\n\t\t\treturn resultSet;\n\t\t}\n\t\tcatch(SQLException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "public Cursor fetchAll() {\n\t\tCursor cursor = db.query(UserConstants.DB_TABLE, UserConstants.fields(), null, null, null, null, null);\n\t\treturn cursor;\n\t}" ]
[ "0.68748784", "0.6632654", "0.65299994", "0.6495669", "0.64171886", "0.63135445", "0.6219703", "0.61733204", "0.5942619", "0.59217596", "0.59212077", "0.5897204", "0.5883979", "0.58342785", "0.58178025", "0.58027774", "0.57734203", "0.5665252", "0.56443864", "0.56401974", "0.5613102", "0.56048554", "0.5602601", "0.55923086", "0.55887324", "0.5564313", "0.55486935", "0.5546518", "0.5541649", "0.55392265", "0.5503167", "0.5480663", "0.5470402", "0.5466103", "0.54618526", "0.5448993", "0.5426506", "0.54074734", "0.54000807", "0.53770083", "0.53358823", "0.53219146", "0.5317888", "0.53019255", "0.5294957", "0.52920073", "0.5291442", "0.527596", "0.52632415", "0.5254342", "0.5253632", "0.5252597", "0.5249912", "0.5237744", "0.5231876", "0.5228043", "0.5224337", "0.52124196", "0.52042013", "0.519888", "0.5195393", "0.5188594", "0.516955", "0.5144895", "0.513283", "0.5119024", "0.51153636", "0.5110339", "0.51015264", "0.50983113", "0.50981545", "0.5097742", "0.50866914", "0.50815684", "0.50812536", "0.50775194", "0.50770205", "0.5072582", "0.506463", "0.50555307", "0.5055016", "0.50406617", "0.5039215", "0.50382644", "0.5021509", "0.5018768", "0.501233", "0.5008009", "0.50057393", "0.50037265", "0.5002938", "0.4998245", "0.49885032", "0.49860275", "0.49843365", "0.49768868", "0.49753276", "0.49735248", "0.49715427", "0.497008", "0.4959436" ]
0.0
-1
Update a row in desired table
public int update(String table, ContentValues values, String whereClause, String[] whereArgs) { sqLiteDatabase.beginTransaction(); int res = -1; try { res = sqLiteDatabase.update(table, values, whereClause, whereArgs); sqLiteDatabase.setTransactionSuccessful(); } catch (Exception e) { res = 0; } finally { sqLiteDatabase.endTransaction(); } return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateRow() throws SQLException\n {\n m_rs.updateRow();\n }", "int updateByPrimaryKey(Assist_table record);", "Table8 update(Table8 table8) throws EntityNotFoundException;", "int updateByPrimaryKey(Table2 record);", "int updateByPrimaryKey(RepStuLearning record);", "int updateByPrimaryKeySelective(Assist_table record);", "public void updateRow() throws SQLException {\n\n try {\n debugCodeCall(\"updateRow\");\n checkClosed();\n if (insertRow != null) { throw Message.getSQLException(ErrorCode.NOT_ON_UPDATABLE_ROW); }\n checkOnValidRow();\n if (updateRow != null) {\n UpdatableRow row = getUpdatableRow();\n Value[] current = new Value[columnCount];\n for (int i = 0; i < updateRow.length; i++) {\n current[i] = get(i + 1);\n }\n row.updateRow(current, updateRow);\n for (int i = 0; i < updateRow.length; i++) {\n if (updateRow[i] == null) {\n updateRow[i] = current[i];\n }\n }\n Value[] patch = row.readRow(updateRow);\n patchCurrentRow(patch);\n updateRow = null;\n }\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "int updateByPrimaryKey(Tourst record);", "int updateByPrimaryKey(TABLE41 record);", "CustomUpdateQuery update(String table);", "int updateByPrimaryKey(TempletLink record);", "int updateByPrimaryKey(NjProductTaticsRelation record);", "int updateByPrimaryKey(AdminTab record);", "protected abstract E modifyRow(E rowObject);", "int updateByPrimaryKey(PrhFree record);", "int updateByPrimaryKey(TRepairs record);", "int updateByPrimaryKeySelective(TABLE41 record);", "int updateByPrimaryKey(Sequipment record);", "int updateByPrimaryKey(TCpySpouse record);", "int updateByPrimaryKeySelective(Table2 record);", "int updateByPrimaryKeySelective(Tourst record);", "int updateByPrimaryKey(GirlInfo record);", "E update(E entiry);", "int updateByPrimaryKey(SupplyNeed record);", "int updateByPrimaryKey(OpeningRequirement record);", "int updateByPrimaryKey(RecordLike record);", "int updateByPrimaryKey(Access record);", "public void update(T object) throws SQLException;", "<T> int update(T obj, String keyColumn);", "int updateByPrimaryKeySelective(NjProductTaticsRelation record);", "int updateByPrimaryKey(Dish record);", "int updateByPrimaryKey(TCar record);", "int updateByPrimaryKey(TerminalInfo record);", "int updateByPrimaryKey(Cargo record);", "int updateByPrimaryKey(Tour record);", "public void updateRowObject(E rowObject) {\n dataTable.updateRow(rowObject);\n fireModify(rowObject);\n }", "int updateByPrimaryKey(Yqbd record);", "int updateByPrimaryKey(TrainCourse record);", "int updateByPrimaryKey(Body record);", "int updateByPrimaryKey(Prueba record);", "private void UpdateTable() {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tpublic void update() throws SQLException {\n\r\n\t}", "int updateByPrimaryKey(TrainingCourse record);", "int updateByPrimaryKey(TestEntity record);", "int updateByPrimaryKey(Goods record);", "int updateByPrimaryKey(Goods record);", "public int updateTableByRowId(String tableName, String where, int rowId, String colName, String value) {\n SQLiteDatabase db = dbHelper.getDatabase();\n\n ContentValues cv = new ContentValues();\n cv.put(colName, value);\n\n db.beginTransaction();\n int counr = db.update(tableName, cv, where, new String[]{Integer.toString(rowId)});\n db.setTransactionSuccessful();\n db.endTransaction();\n\n return counr;\n }", "int updateByPrimaryKey(Forumpost record);", "int updateByPrimaryKey(Product record);", "int updateByPrimaryKey(DashboardGoods record);", "int updateByPrimaryKeySelective(GirlInfo record);", "int updateByPrimaryKey(TbFreightTemplate record);", "@Override\n\tpublic void update(StockDataRecord bo) throws SQLException {\n\t\t\n\t}", "int updateByPrimaryKey(Commet record);", "int updateByPrimaryKey(Engine record);", "public void update(IEntity entity) throws SQLException;", "int updateByPrimaryKeySelective(AdminTab record);", "int updateByPrimaryKey(BasicEquipment record);", "int updateByPrimaryKeySelective(RepStuLearning record);", "int updateByPrimaryKey(AccessModelEntity record);", "int updateByPrimaryKey(TBBearPer record);", "int updateByPrimaryKey(AccuseInfo record);", "int updateByPrimaryKey(TResearchTeach record);", "public void update(Triplet t) throws DAOException;", "int updateByPrimaryKey(R_order record);", "int updateByPrimaryKey(EquipmentOrder record);", "int updateByPrimaryKey(NjOrderWork2 record);", "int updateByPrimaryKey(Abum record);", "int updateByPrimaryKey(Ltsprojectpo record);", "int updateByPrimaryKey(Transaction record);", "int updateByPrimaryKey(TLinkman record);", "public void doUpdate(T objectToUpdate) throws SQLException;", "public void update(T instance) throws Exception {\n String primaryKeyValue=ReflectionUtils.getFieldValue(instance,instance.getPrimaryKeyName());\n if(null==primaryKeyValue){\n throw new Exception(\"This is no primary key value\");\n }\n\n initDBTableMeta(instance);\n String setClause=buildSQLKeyValueMap(instance,\",\");\n String whereClause =instance.getPrimaryKeyName()+\"=\"+primaryKeyValue;\n String sql = UPDATE+tableName+SET+setClause+WHERE+whereClause;\n logger.info(\"usedSql={}\", sql);\n\n }", "int updateByPrimaryKey(ItoProduct record);", "int updateByPrimaryKey(Employee record);", "int updateByPrimaryKey(Basicinfo record);", "int updateByPrimaryKeySelective(TempletLink record);", "int updateByPrimaryKey(Dress record);", "int updateByExample(BnesBrowsingHis record, BnesBrowsingHisExample example) throws SQLException;", "int updateByPrimaryKey(QuestionOne record);", "int updateByPrimaryKey(JzAct record);", "int updateByPrimaryKey(Position record);", "int updateByPrimaryKey(T record);", "int updateByPrimaryKey(ProEmployee record);", "int updateByPrimaryKey(TbComEqpModel record);", "int updateByPrimaryKey(HpItemParamItem record);", "int updateByPrimaryKey(Nutrition record);", "int updateByPrimaryKey(CTipoComprobante record) throws SQLException;", "int updateByPrimaryKey(SysId record);", "int updateByPrimaryKey(Disease record);", "int updateByPrimaryKey(Terms record);", "public void update(TdiaryArticle obj) throws SQLException {\n\r\n\t}", "int updateByPrimaryKey(SelectUserRecruit record);", "int updateByPrimaryKey(UcOrderGuestInfo record);", "int updateByPrimaryKey(Admin record);", "int updateByPrimaryKey(Admin record);", "int updateByPrimaryKey(Kaiwa record);", "int updateByPrimaryKey(ClOrderInfo record);", "int updateByPrimaryKey(Drug_OutWarehouse record);", "int updateByPrimaryKeySelective(DashboardGoods record);", "int updateByPrimaryKey(HomeWork record);" ]
[ "0.7134111", "0.70439667", "0.69251364", "0.69104534", "0.6808691", "0.6805568", "0.6804005", "0.67676795", "0.6765703", "0.6736138", "0.67243904", "0.66917646", "0.6675958", "0.6671102", "0.6623942", "0.66158473", "0.6606253", "0.65993327", "0.658198", "0.65792584", "0.65646636", "0.6552821", "0.6552394", "0.65512186", "0.6547171", "0.6526782", "0.65219116", "0.65199876", "0.6515621", "0.65026575", "0.6494848", "0.6490779", "0.64827996", "0.64782894", "0.6475406", "0.646257", "0.6462207", "0.6460919", "0.6460421", "0.6458481", "0.6457015", "0.64548963", "0.645486", "0.64543307", "0.6448714", "0.6448714", "0.64482725", "0.64425045", "0.6441672", "0.64373803", "0.6437366", "0.6436052", "0.64328456", "0.64320004", "0.6431727", "0.6430137", "0.6428157", "0.6427399", "0.6424894", "0.64225554", "0.641466", "0.64133155", "0.64107364", "0.6410063", "0.6409029", "0.6408526", "0.64084643", "0.64027685", "0.6402195", "0.64015824", "0.6400568", "0.63991135", "0.6398997", "0.6394386", "0.63937825", "0.6385022", "0.6384686", "0.6383777", "0.6379599", "0.6379296", "0.63785475", "0.6375967", "0.6372633", "0.6371488", "0.6366324", "0.636574", "0.63648015", "0.63586056", "0.63583887", "0.63576555", "0.63573545", "0.6356095", "0.6355539", "0.6355329", "0.6353556", "0.6353556", "0.6350074", "0.63492286", "0.63464034", "0.63435805", "0.6343171" ]
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_add_subj, 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 {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, 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 getMenuInflater().inflate(R.menu.menu, 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_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\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\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\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 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\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\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.72461367", "0.7201596", "0.7195268", "0.7177002", "0.71069986", "0.7039653", "0.70384306", "0.70115715", "0.7010647", "0.69803435", "0.6945406", "0.69389313", "0.6933442", "0.69172275", "0.69172275", "0.6890826", "0.6883689", "0.687515", "0.6874831", "0.68615955", "0.68615955", "0.68615955", "0.68615955", "0.68522274", "0.6846375", "0.68189865", "0.68165565", "0.68124795", "0.6812267", "0.6812267", "0.68056566", "0.6800461", "0.6797465", "0.6790805", "0.6789039", "0.6787885", "0.6782993", "0.67597246", "0.67570525", "0.6747535", "0.6743268", "0.6743268", "0.6740546", "0.67395175", "0.67256093", "0.6723954", "0.6722248", "0.6722248", "0.6720444", "0.67118156", "0.6706721", "0.6704184", "0.66993994", "0.66988564", "0.669681", "0.66943884", "0.66860807", "0.668306", "0.668306", "0.6682587", "0.668012", "0.6678661", "0.6676379", "0.6668044", "0.66669863", "0.66628903", "0.6657356", "0.6657356", "0.6657356", "0.66565585", "0.665397", "0.665397", "0.665397", "0.66525495", "0.66518986", "0.66496557", "0.6648199", "0.6646489", "0.66462386", "0.6646177", "0.6645531", "0.66453475", "0.66446036", "0.66438025", "0.6642411", "0.6641632", "0.6638948", "0.6634394", "0.66336566", "0.6632082", "0.66315377", "0.66315377", "0.66315377", "0.6628936", "0.6627818", "0.6627061", "0.66256744", "0.6623986", "0.661993", "0.6618369", "0.6618369" ]
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(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { 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 // 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 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 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\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 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 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\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\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.7904163", "0.7805678", "0.7766155", "0.77271765", "0.7631901", "0.76217514", "0.75843245", "0.7530648", "0.74879694", "0.74575084", "0.74575084", "0.7438342", "0.742121", "0.7402876", "0.7391506", "0.7386729", "0.7379215", "0.73702943", "0.7361895", "0.7355702", "0.7345358", "0.7341575", "0.7329735", "0.7328178", "0.7325559", "0.731858", "0.7316479", "0.7313328", "0.7303971", "0.7303971", "0.7301762", "0.72979945", "0.72931767", "0.7286697", "0.72830683", "0.7280712", "0.727849", "0.72597504", "0.7259679", "0.7259679", "0.7259679", "0.72593844", "0.7249859", "0.72235924", "0.7219315", "0.72173464", "0.7204549", "0.7199998", "0.7199193", "0.71932447", "0.7185174", "0.71770936", "0.71685654", "0.71678275", "0.7153802", "0.7153724", "0.7135714", "0.71352243", "0.71352243", "0.71292186", "0.7128784", "0.7124442", "0.712348", "0.712319", "0.7122235", "0.71173996", "0.71168983", "0.71168983", "0.71168983", "0.71168983", "0.7116834", "0.7116512", "0.7115111", "0.71124107", "0.71099734", "0.7109092", "0.7105732", "0.7099278", "0.70981765", "0.7094616", "0.70939064", "0.70939064", "0.7086415", "0.708213", "0.70807576", "0.7080365", "0.707349", "0.7068445", "0.7061929", "0.70604044", "0.70603245", "0.70515686", "0.70372933", "0.70372933", "0.7036149", "0.7035617", "0.7035617", "0.70319855", "0.70304316", "0.7029743", "0.7019147" ]
0.0
-1
Returns a mark indicating the position of the input stream. The input stream can subsequently be scanned (e.g., with nextToken()) and then reset to the mark position using the reset() member.
public BacktrackingTokenizerMark mark() { return new BacktrackingTokenizerMark(tokens, position); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getMark() {\n return mark_;\n }", "public int getMark() {\n return mark_;\n }", "public int getMark() {\n\t\treturn mark;\n\t}", "public Integer getStartMark() {\n return startMark;\n }", "@Override\n\tpublic Integer mark() {\n\t\treturn mark;\n\t}", "public char getMark() {\n\t\treturn this.mark;\n\t}", "int getMark();", "public String getMark() {\r\n return mark;\r\n }", "public Integer getMarkNum() {\n return markNum;\n }", "public void setMark(int mark) {\n\t\tthis.mark = mark;\n\t}", "public Float getMark() {\n return mark;\n }", "@Override\n\tpublic long getPosition()\n\t{\n\t\treturn inputStream.Position;\n\t}", "public Mark(int mark, String comment) {\n\t\tthis.mark = mark;\n\t\tthis.comment = comment;\n\t}", "public void setStartMark(Integer startMark) {\n this.startMark = startMark;\n }", "public int getMarker() {\r\n\t\treturn this.marker;\r\n\t}", "protected int getMarkerPosition() {\n\t\treturn valueToMarkerPosition(getValue());\n\t}", "@Element \n public String getMark() {\n return mark;\n }", "public String getMarkFirst() {\r\n return markFirst;\r\n }", "@Element \n public void setMark(String mark) {\n this.mark = mark;\n }", "public void reset(BacktrackingTokenizerMark mark) {\n\t\tposition = mark.getPosition(tokens);\n\t}", "public void mark() {\r\n\t\tmark = cursor;\r\n\t}", "public int getFinalMark()\n {\n return finalMark;\n }", "public int getFinalMark() {\r\n return finalMark;\r\n }", "public void setMarkNum(Integer markNum) {\n this.markNum = markNum;\n }", "public void setMark(Float mark) {\n this.mark = mark;\n }", "public String getBeginMarker() {\n return beginMarker;\n }", "public TokenMarker getTokenMarker()\n {\n return tokenMarker;\n }", "public int giveMark() {\n String tmpAnswer = textQuestionInput.getText().toString();\n textQuestion.isAnswerCorrect(tmpAnswer);\n textQuestionInput.setText(\"\");\n return textQuestion.getQuestionMark();\n }", "public int shiftBufferToMark() {\n\t\tint newLength = Math.max(bufferLength - mark, 0);\n\n\t\t// if buffer tight double the size\n\t\tif (newLength <= (bufferLength >> 1)) {\n\t\t\tSystem.arraycopy(buffer, mark, buffer, 0, newLength);\n\t\t} else {\n\t\t\t// double buffer size\n\t\t\tchar[] newBuffer = new char[buffer.length << 1];\n\t\t\tSystem.arraycopy(buffer, mark, newBuffer, 0, newLength);\n\t\t\tbuffer = newBuffer;\n\t\t}\n\t\tbufferLength = newLength;\n\n\t\tint m = mark;\n\t\tmark = 0;\n\t\treturn m;\n\t}", "public boolean checkMark()\n {\n boolean markVal = mark;\n mark = false;\n return markVal;\n }", "@Override\n public void mark(final int readlimit) {\n input.mark();\n }", "public void setMark(String mark) {\r\n this.mark = mark == null ? null : mark.trim();\r\n }", "@Test\n public void testMarkReset() throws IOException {\n List<String> expected = multiLineFileInit(file, Charsets.UTF_8);\n\n int MAX_LEN = 100;\n\n PositionTracker tracker = new DurablePositionTracker(meta, file.getPath());\n ResettableInputStream in = new ResettableFileInputStream(file, tracker);\n\n String result0 = readLine(in, MAX_LEN);\n assertEquals(expected.get(0), result0);\n\n in.reset();\n\n String result0a = readLine(in, MAX_LEN);\n assertEquals(expected.get(0), result0a);\n\n in.mark();\n\n String result1 = readLine(in, MAX_LEN);\n assertEquals(expected.get(1), result1);\n\n in.reset();\n\n String result1a = readLine(in, MAX_LEN);\n assertEquals(expected.get(1), result1a);\n\n in.mark();\n in.close();\n }", "public boolean getMarker() {\n return (buffer.get(1) & 0xff & 0x80) == 0x80;\n }", "public void setMark() {\n\t_source.setMark();\n\t_markedNode = _current;\n }", "public Mark(Integer markToSet, int nextState) {\r\n assert markToSet >= 0 && markToSet < 6;\r\n assert nextState >= 0 && nextState < 10000;\r\n this.nextState = nextState;\r\n this.markToSet = markToSet;\r\n }", "private boolean MARK(Marker m) {\r\n if (look > 0) return true;\r\n if (marked > in) throw new Error(\"marked \" + marked + \" in \" + in);\r\n if (marked < in) {\r\n markers.clear();\r\n marked = in;\r\n }\r\n markers.add(m);\r\n return true;\r\n }", "public int getSeekPosition() {\n if(mMediaPlayer != null) {\n return mMediaPlayer.getCurrentPosition();\n }\n return 0;\n }", "public int getStartPosition() {\n return startPosition_;\n }", "public int getStartPosition() {\n return startPosition_;\n }", "public String getMarker() {\n return this.marker;\n }", "private void rewind() {\n currentPos = markPos;\n }", "public synchronized long getPosition() {\n\t\treturn m_read;\n\t}", "public void setMarkFirst(String markFirst) {\r\n this.markFirst = markFirst == null ? null : markFirst.trim();\r\n }", "public int position() {\n return pos;\n }", "public int getStartOffset() {\n return startPosition.getOffset();\n }", "public int getSenseMarker() {\r\n\t\treturn this.senseMarker;\r\n\t}", "public int getStartOffset() {\n return startOffset;\n }", "@Override\n\t\tpublic long getPos() throws IOException {\n\t\t\treturn 0;\n\t\t}", "@Override\n\tpublic final int shiftBufferToMark(int mark) throws BufferOverflowException {\n\t\tint usedLength = Math.max(bufferSize - mark, 0);\n\n\t\t// if buffer tight double the size\n\t\tresizeIfNeeded(usedLength);\n\n\t\tSystem.arraycopy(buffer, mark, buffer, 0, usedLength);\n\n\t\tbufferSize = usedLength;\n\n\t\treturn mark;\n\t}", "public long position() {\n return _pos;\n }", "public long getStartOffset() {\n return mStartOffset;\n }", "public Location getOffset() {\n\t\treturn pos;\n\t}", "public int startOffset();", "public int getPosition()\n {\n return m_sequence;\n }", "public static int findMarkerOffset(final PsiFile psiFile) {\n Document document = PsiDocumentManager.getInstance(psiFile.getProject()).getDocument(psiFile);\n assert document != null;\n int offset = -1;\n for (int i = 1; i < document.getLineCount(); i++) {\n int lineStart = document.getLineStartOffset(i);\n int lineEnd = document.getLineEndOffset(i);\n final int index = document.getCharsSequence().subSequence(lineStart, lineEnd).toString().indexOf(\"<ref>\");\n if (index > 0) {\n offset = document.getLineStartOffset(i - 1) + index;\n }\n }\n assertTrue(\"<ref> in test file not found\", offset >= 0);\n return offset;\n }", "public int getSeekIndex() {\n return getIntegerProperty(\"Index\");\n }", "public void mark(int readAheadLimit) throws IOException {\n if (in.markSupported()) {\n in.mark(readAheadLimit);\n } else {\n throw new IOException(\"mark() not supported\");\n }\n }", "public FaithMarker(int position) {\r\n this.position = position;\r\n }", "String getMarkingInstruction();", "public java.lang.Integer getPosition() {\n return position;\n }", "public Builder setMark(int value) {\n \n mark_ = value;\n onChanged();\n return this;\n }", "public final int startOffset() {\n return startOffset;\n }", "public java.lang.Integer getPosition() {\n return position;\n }", "public Position getStartPosition()\r\n\t{\r\n\t\treturn startPosition;\r\n\t}", "private int peek() {\n if (peeked == NotPeeked) {\n peeked = readChar();\n }\n return peeked;\n }", "public long seekFile(long pos, int typ) throws IOException {\n\t\tLock l = df.getReadLock();\n\t\tl.lock();\n\t\ttry {\n\t\t\tif (SDFSLogger.isDebug())\n\t\t\t\tSDFSLogger.getLog().debug(\n\t\t\t\t\t\t\"seek \" + df.getMetaFile().getPath() + \" at \" + pos\n\t\t\t\t\t\t\t\t+ \" type=\" + typ);\n\t\t\t// Check if the current file position is the required file position\n\n\t\t\tswitch (typ) {\n\n\t\t\t// From start of file\n\n\t\t\tcase SeekType.StartOfFile:\n\t\t\t\tif (this.position() != pos)\n\t\t\t\t\tthis.currentPosition = pos;\n\t\t\t\tbreak;\n\n\t\t\t// From current position\n\n\t\t\tcase SeekType.CurrentPos:\n\t\t\t\tthis.currentPosition = this.currentPosition + pos;\n\t\t\t\tbreak;\n\t\t\t// From end of file\n\t\t\tcase SeekType.EndOfFile: {\n\t\t\t\tthis.currentPosition = pos;\n\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdf.getMetaFile().setLastAccessed(System.currentTimeMillis());\n\t\t\t// Return the new file position\n\t\t\treturn this.position();\n\t\t} finally {\n\t\t\tl.unlock();\n\t\t}\n\t}", "public int getLineNumber() {\n\t\treturn _tokenizer.getLineNumber();\n\t}", "double a_marker_position ()\n {\n double l_return = 0.0;\n\n if (marker != null)\n {\n l_return = marker.getPosition ();\n }\n\n return l_return;\n\n }", "private int findTokenStart() {\n\n\t\tint tokenStart = NOTOKENFOUND;\n\t\t//find starting position of token\n\t\twhile ( tokenStart == NOTOKENFOUND)\n\t\t{\n\t\t\t//empty line, but more lines to read\n\t\t\tif (line.length() == 0 && s.hasNextLine()) \n\t\t\t{\n\t\t\t\t//read next line\n\t\t\t\tline = s.nextLine(); \n\t\t\t}\n\t\t\t//empty line, and no more lines to read\n\t\t\telse if (line.length() == 0 && !s.hasNextLine() )\n\t\t\t{\n\t\t\t\treturn NOTOKENFOUND;\n\t\t\t}\n\t\t\t//line not empty\n\t\t\telse if (line.length() > 0)\n\t\t\t{\n\t\t\t\t//convert to characters[]\n\t\t\t\tchar[] characters = line.toCharArray();\n\t\t\t\t//find position of token in line.\n\t\t\t\ttokenStart = findFirstNotWhitespace(characters);\n\t\t\t\t//empty line if no token found.\n\t\t\t\tif (tokenStart == NOTOKENFOUND)\n\t\t\t\t{\t\n\t\t\t\t\t//empty the line.\n\t\t\t\t\tline = \"\";\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//token was found!\n\t\treturn tokenStart;\n\t}", "public String getMarker() {\n return marker;\n }", "public String getMarker() {\n return marker;\n }", "public int getStartPos() {\n return startPos;\n }", "public int getPosition()\n\t{\n\t\treturn position;\n\t}", "public void setMark\n (int r, int c,\n Mark mark);", "public int getPosition() {\r\n\t\treturn position;\r\n\t}", "public int countToMark() {\n\t\tint count = 0;\n\t\tint i = elementCount - 1;\n\t\twhile (i > 0 && !(elementData[i] instanceof PSMark)) {\n\t\t\ti--;\n\t\t\tcount++;\n\t\t}\n\t\treturn (elementData[i] instanceof PSMark) ? count : -1;\n\t}", "public final int getPosition() {\n return position;\n }", "public void gotoMark() {\n\t_source.gotoMark();\n\t_current = _markedNode;\n }", "public int getBlockIndex() {\n return mCursorPosition;\n }", "@Override\n public long getPosition() {\n return startPosition + super.getPosition();\n }", "public long getPosition();", "public Point getStartPosition()\r\n\t{\r\n\t\treturn startPosition;\r\n\t}", "private boolean isTypeMark() throws IOException\n\t{\n\t\t// Initialize return value to false.\n\t\tboolean isValid = false;\n\t\t\n\t\t// Check if current token is of \"type mark\" type.\n\t\tswitch(theCurrentToken.TokenType)\n\t\t{\n\t\t\tcase INTEGER: case BOOL: case FLOAT: case CHAR: case STRING:\n\t\t\t\tisValid = true;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tisValid = false;\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\treturn isValid;\n\t}", "public int getOffset() {\r\n\t\treturn offSet;\r\n\t}", "public void mark();", "public int peek();", "@DISPID(4) //= 0x4. The runtime will prefer the VTID if present\r\n @VTID(10)\r\n @ReturnValue(type=NativeType.VARIANT)\r\n java.lang.Object currentSeekPosition();", "public synchronized void reset() throws IOException {\n if(!marked) {\n throw new IOException(\"No position marked.\");\n }\n resetMarked();\n }", "public static int getLegalMove(char mark) {\n\t\tjava.util.Scanner console = new java.util.Scanner(System.in);\n\t\twhile (true) {\n\t\t\tSystem.out.println(mark + \"'s next move: \");\n\t\t\tint square = console.nextInt();\n\t\t\tif ((square >= 1) && (square <= 9) && (isSquareEmpty(square))) {\n\t\t\t\treturn square;\n\t\t\t}\n\t\t\tSystem.out.println(\"\\nIllegal move, try again\\n\");\n\t\t}\n\t}", "public Position getStartPosition() {\n return startPosition;\n }", "public int getPosition() {\n return position;\n }", "public void mark()\n {\n mark = true;\n }", "@Override\n public int getPosition() throws IOException\n {\n return (int) randomAccessRead.getPosition();\n }", "void mark(@Nonnegative int readLimit);", "public void mark(Marker m) {\n\t\tmark = m;\n\t}", "@Override\n public long position() throws IOException {\n return _backing.getFilePointer() - _head.offset;\n }", "public int getPosition();", "public int getPosition()\r\n {\r\n return position;\r\n }", "public abstract long getStartOffset();" ]
[ "0.6978866", "0.6964416", "0.69260013", "0.6639564", "0.6540522", "0.6379866", "0.6377856", "0.63270795", "0.6229169", "0.61423826", "0.5998757", "0.5938777", "0.5928526", "0.5882642", "0.58694726", "0.5840251", "0.5835514", "0.5788528", "0.57591015", "0.57162565", "0.57103497", "0.5707982", "0.5679048", "0.56424123", "0.56330615", "0.5595203", "0.5579726", "0.5558809", "0.55538213", "0.5526562", "0.55027795", "0.54761314", "0.5455102", "0.5434835", "0.5407552", "0.53894806", "0.5385393", "0.5361183", "0.5356602", "0.53562176", "0.5328882", "0.53076756", "0.52991915", "0.5285691", "0.5273668", "0.52478534", "0.5240378", "0.5228762", "0.520992", "0.51984227", "0.5194443", "0.5194061", "0.517784", "0.51753616", "0.51730424", "0.51704615", "0.5165328", "0.5160596", "0.51542956", "0.5154059", "0.5153417", "0.51493573", "0.51436764", "0.51409733", "0.51379985", "0.5109524", "0.50952107", "0.5089382", "0.50852495", "0.5080556", "0.50749457", "0.50749457", "0.507349", "0.50708616", "0.5057351", "0.5055167", "0.5054987", "0.50316036", "0.50309724", "0.50302035", "0.50297254", "0.502913", "0.5028549", "0.5027443", "0.5025793", "0.5025254", "0.50221926", "0.5017927", "0.5015208", "0.5007003", "0.50047773", "0.50005245", "0.49937615", "0.4993697", "0.49876234", "0.49837673", "0.4978512", "0.49739957", "0.49700478", "0.49697536" ]
0.64108133
5
Resets the input stream to the position it had at the time of an earlier call to mark()
public void reset(BacktrackingTokenizerMark mark) { position = mark.getPosition(tokens); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void reset() {\n isDone = false;\n if (content.markSupported()) {\n try {\n content.reset();\n } catch (IOException ioe) {\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"Unable to reset the input stream: {}\", ioe.getMessage());\n }\n }\n\n content.mark(0);\n }\n super.reset();\n }", "@Override\n public void reset() throws IOException {\n setPosition(startPosition);\n }", "private void rewind() {\n currentPos = markPos;\n }", "public synchronized void reset() throws IOException {\n if(!marked) {\n throw new IOException(\"No position marked.\");\n }\n resetMarked();\n }", "@Override\n public void mark(final int readlimit) {\n input.mark();\n }", "public synchronized void reset() throws IOException {\n\t\t\tdata.seek(firstPosition);\n\t\t}", "void seekReset() {\n discardQueued(false);\n eofCond = false;\n stickyEofCond = false;\n blocked = false;\n sawCR = false;\n // FIXME: Change needed in Tcl\n //needNL = false;\n }", "public synchronized void reset()\n {\n printDebug(\"reset() start\");\n\n if (open) {\n \tif(started) {\n \t\tline.stop();\n \t}\n \tif(!reset) {\n \t\tline.flush();\n \t} \t\n \ttotalWritten = 0;\n \t// TODO: totalWritten might be updated after this in write method.\n started = false;\n timeTracker.reset();\n notifyAll();\n }\n reset = true;\n printDebug(\"reset() end\");\n }", "public void reset() {\n try {\n is.reset();\n }catch(IOException ioe) {\n }\n }", "void seekReset() {\n\t\tcancelEof();\n\t\tsawEofChar = false;\n\t}", "public void reset() {\r\n\t\tcursor = mark;\r\n\t}", "@Override\n\tpublic synchronized void mark(int readlimit) {\n\t\tiOBuffer.mark();\n\t}", "@Test\n public void testMarkReset() throws IOException {\n List<String> expected = multiLineFileInit(file, Charsets.UTF_8);\n\n int MAX_LEN = 100;\n\n PositionTracker tracker = new DurablePositionTracker(meta, file.getPath());\n ResettableInputStream in = new ResettableFileInputStream(file, tracker);\n\n String result0 = readLine(in, MAX_LEN);\n assertEquals(expected.get(0), result0);\n\n in.reset();\n\n String result0a = readLine(in, MAX_LEN);\n assertEquals(expected.get(0), result0a);\n\n in.mark();\n\n String result1 = readLine(in, MAX_LEN);\n assertEquals(expected.get(1), result1);\n\n in.reset();\n\n String result1a = readLine(in, MAX_LEN);\n assertEquals(expected.get(1), result1a);\n\n in.mark();\n in.close();\n }", "private void resetMarked() {\n if(!data.isEmpty()) {\n data.getFirst().reset();\n }\n for(IoBuffer buf : resetCache) {\n buf.reset();\n data.addFirst(buf);\n }\n resetCache.clear();\n }", "public void rewind() throws IOException {\n if (closed) {\n throw new IOException(\"Stream is already closed\");\n }\n\n if (storeOutputStream != null) {\n storeOutputStream.close();\n storeOutputStream = null;\n }\n\n // Close the byte input stream or file input stream\n if (inputStream != originalInputStream) {\n inputStream.close();\n }\n\n bufferHighWaterMark = Math.max(bufferPointer, bufferHighWaterMark);\n bufferPointer = bufferHighWaterMark;\n\n if (bufferHighWaterMark > 0) {\n // If we have a buffer, then we'll read from it\n if (byteBuffer != null) {\n readingFromBuffer = true;\n inputStream = new UnsynchronizedByteArrayInputStream(byteBuffer, 0, bufferHighWaterMark);\n } else {\n // No buffer, which means we've switched to a file\n inputStream = new BufferedInputStream(new FileInputStream(storeFile));\n }\n } else {\n inputStream = originalInputStream;\n }\n }", "public synchronized void mark(int readlimit) {\n if(!data.isEmpty()) {\n data.getFirst().mark();\n }\n if(marked) {\n clearResetCache();\n }\n marked = true;\n resetCache = new LinkedList<IoBuffer>();\n }", "void resetLine() {\n eof = (cursor == lineMark);\n cursor = lineMark;\n }", "void flushBefore(long pos) throws IOException;", "public void resetBuffer() {\n\n\t}", "public void reset()\n {\n current = 0;\n highWaterMark = 0;\n lowWaterMark = 0;\n super.reset();\n }", "public void reset(Reader input) {\n this.buffer.dispose();\n this.buffer = new ReaderBuffer(input);\n this.previousToken = null;\n this.lastMatch.clear();\n }", "public synchronized void reset() {\n java.util.Arrays.fill(buffer, (byte) 0);\n writeHead = 0;\n cumulativeWritten = 0;\n synchronized (allReaders) {\n for (Reader reader : allReaders) {\n reader.reset();\n }\n }\n }", "public void reset()\n {\n currentPosition = 0;\n }", "void reset() throws IOException;", "void reset() throws IOException;", "@Override\n\tpublic synchronized void reset() {\n\t\tiOBuffer.reset();\n\t}", "void setReadPosition(int minus) {\n/* 159 */ this.pos -= minus;\n/* 160 */ this.readerIndex = getReadPosition(this.pos);\n/* 161 */ this.buffer.readerIndex(this.readerIndex);\n/* */ }", "protected final void resetBuffer() {\n buffer.reset();\n }", "public void resetBuffer(){\n bufferSet = false;\n init();\n }", "private void invalidateBuffer() throws IOException, BadDescriptorException {\n if (!reading) flushWrite();\n int posOverrun = buffer.remaining(); // how far ahead we are when reading\n buffer.clear();\n if (reading) {\n buffer.flip();\n // if the read buffer is ahead, back up\n FileChannel fileChannel = (FileChannel)descriptor.getChannel();\n if (posOverrun != 0) fileChannel.position(fileChannel.position() - posOverrun);\n }\n }", "public void reset() {\n started = false;\n flushing = false;\n moreText = true;\n headerCount = 0;\n actualLen = 0;\n }", "private void reset() throws IOException {\n }", "private final void yyResetPosition() {\n zzAtBOL = true;\n zzAtEOF = false;\n zzCurrentPos = 0;\n zzMarkedPos = 0;\n zzStartRead = 0;\n zzEndRead = 0;\n zzFinalHighSurrogate = 0;\n yyline = 0;\n yycolumn = 0;\n yychar = 0L;\n }", "private final void yyResetPosition() {\n zzAtBOL = true;\n zzAtEOF = false;\n zzCurrentPos = 0;\n zzMarkedPos = 0;\n zzStartRead = 0;\n zzEndRead = 0;\n zzFinalHighSurrogate = 0;\n yyline = 0;\n yycolumn = 0;\n yychar = 0L;\n }", "@Override\n\tpublic final int shiftBufferToMark(int mark) throws BufferOverflowException {\n\t\tint usedLength = Math.max(bufferSize - mark, 0);\n\n\t\t// if buffer tight double the size\n\t\tresizeIfNeeded(usedLength);\n\n\t\tSystem.arraycopy(buffer, mark, buffer, 0, usedLength);\n\n\t\tbufferSize = usedLength;\n\n\t\treturn mark;\n\t}", "@Override\n\tpublic void resetBuffer() {\n\t}", "public void reset () {\n input = 0;\n }", "public void clearMark()\n {\n mark = false;\n }", "protected void resetIO()\r\n {\r\n // Clear out all the stream history stuff\r\n tcIn = null;\r\n tcOut = null;\r\n tcInBuf = null;\r\n\r\n // Make sure these are history-wrapped\r\n SystemIOUtilities.out().clearHistory();\r\n SystemIOUtilities.err().clearHistory();\r\n SystemIOUtilities.restoreSystemIn();\r\n }", "public void reset() {\n position = 0;\n }", "@Override\n public void resetBuffer() {\n\n }", "@Test\n public void testReset() throws IOException {\n String output = singleLineFileInit(file, Charsets.UTF_8);\n\n PositionTracker tracker = new DurablePositionTracker(meta, file.getPath());\n ResettableInputStream in = new ResettableFileInputStream(file, tracker);\n\n String result1 = readLine(in, output.length());\n assertEquals(output, result1);\n\n in.reset();\n String result2 = readLine(in, output.length());\n assertEquals(output, result2);\n\n String result3 = readLine(in, output.length());\n assertNull(\"Should be null: \" + result3, result3);\n\n in.close();\n }", "public void reset() {\n\t\tif (marker >= 0) {\n\t\t\tsetSize(marker);\n\t\t\tmarker = -1;\n\t\t}\n\t}", "private void set(){\n resetBuffer();\n }", "public void reset() {\r\n\t\tnextTokenPos = 0;\r\n\t}", "public final void rewind() {\n branch = 0;\n }", "private void resetBuffer() {\n baos.reset();\n }", "void mark(@Nonnegative int readLimit);", "@Override\n public void setPosition(long position) throws IOException {\n super.setPosition(position - startPosition);\n }", "public void mark() {\r\n\t\tmark = cursor;\r\n\t}", "public synchronized void resetInputStream()\r\n\t{\r\n\t\tthis.inputStream = new BodyReusableServletInputStream(this.bodyBytes);\r\n\t\tthis.bufferedReader = new BufferedReader(new InputStreamReader(this.inputStream)); \r\n\t}", "public final void yyreset(Reader reader) {\n\t\t// 's' has been updated.\n\t\tzzBuffer = s.array;\n\t\t/*\n\t\t * We replaced the line below with the two below it because zzRefill\n\t\t * no longer \"refills\" the buffer (since the way we do it, it's always\n\t\t * \"full\" the first time through, since it points to the segment's\n\t\t * array). So, we assign zzEndRead here.\n\t\t */\n\t\t//zzStartRead = zzEndRead = s.offset;\n\t\tzzStartRead = s.offset;\n\t\tzzEndRead = zzStartRead + s.count - 1;\n\t\tzzCurrentPos = zzMarkedPos = s.offset;\n\t\tzzLexicalState = YYINITIAL;\n\t\tzzReader = reader;\n\t\tzzAtEOF = false;\n\t}", "public void reset ()\n {\n // position our buffer at the beginning of the frame data\n _buffer.position(getHeaderSize());\n }", "public final void yyreset(java.io.Reader reader) {\r\n\t\t// 's' has been updated.\r\n\t\tzzBuffer = s.array;\r\n\t\t/*\r\n\t\t * We replaced the line below with the two below it because zzRefill\r\n\t\t * no longer \"refills\" the buffer (since the way we do it, it's always\r\n\t\t * \"full\" the first time through, since it points to the segment's\r\n\t\t * array). So, we assign zzEndRead here.\r\n\t\t */\r\n\t\t//zzStartRead = zzEndRead = s.offset;\r\n\t\tzzStartRead = s.offset;\r\n\t\tzzEndRead = zzStartRead + s.count - 1;\r\n\t\tzzCurrentPos = zzMarkedPos = s.offset;\r\n\t\tzzLexicalState = YYINITIAL;\r\n\t\tzzReader = reader;\r\n\t\tzzAtEOF = false;\r\n\t}", "public final void yyreset(Reader reader) {\n\t\t// 's' has been updated.\n\t\tzzBuffer = s.array;\n\t\t/*\n\t\t * We replaced the line below with the two below it because zzRefill\n\t\t * no longer \"refills\" the buffer (since the way we do it, it's always\n\t\t * \"full\" the first time through, since it points to the segment's\n\t\t * array). So, we assign zzEndRead here.\n\t\t */\n\t\t//zzStartRead = zzEndRead = s.offset;\n\t\tzzStartRead = s.offset;\n\t\tzzEndRead = zzStartRead + s.count - 1;\n\t\tzzCurrentPos = zzMarkedPos = s.offset;\n\t\tzzLexicalState = YYINITIAL;\n\t\tzzReader = reader;\n\t\tzzAtBOL = true;\n\t\tzzAtEOF = false;\n\t}", "private void outRestore() throws IOException {\n if (lastWriteOffset > 0) {\n outSeek(lastWriteOffset);\n lastWriteOffset = -1;\n }\n }", "public void reset()\r\n/* 89: */ {\r\n/* 90:105 */ this.pos = 0;\r\n/* 91: */ }", "public void testMarkResetThreaded () throws IOException\n {\n String link;\n ArrayList bytes1;\n ArrayList bytes2;\n URL url;\n URLConnection connection;\n Stream stream;\n int b;\n int index;\n\n // pick a small file > 2000 bytes\n link = \"http://htmlparser.sourceforge.net/javadoc/overview-summary.html\";\n bytes1 = new ArrayList ();\n bytes2 = new ArrayList ();\n try\n {\n url = new URL (link);\n connection = url.openConnection ();\n connection.connect ();\n stream = new Stream (connection.getInputStream ());\n (new Thread (stream)).start ();\n assertTrue (\"mark not supported\", stream.markSupported ());\n\n for (int i = 0; i < 1000; i++)\n {\n b = stream.read ();\n bytes1.add (new Byte ((byte)b));\n }\n stream.reset ();\n for (int i = 0; i < 1000; i++)\n {\n b = stream.read ();\n bytes2.add (new Byte ((byte)b));\n }\n\n index = 0;\n while (index < bytes1.size ())\n {\n assertEquals (\"bytes differ at position \" + index, bytes1.get (index), bytes2.get (index));\n index++;\n }\n\n bytes1.clear ();\n bytes2.clear ();\n\n stream.mark (1000); // the 1000 is ignored\n for (int i = 0; i < 1000; i++)\n {\n b = stream.read ();\n bytes1.add (new Byte ((byte)b));\n }\n stream.reset ();\n for (int i = 0; i < 1000; i++)\n {\n b = stream.read ();\n bytes2.add (new Byte ((byte)b));\n }\n stream.close ();\n\n index = 0;\n while (index < bytes1.size ())\n {\n assertEquals (\"bytes differ at position \" + (index + 1000), bytes1.get (index), bytes2.get (index));\n index++;\n }\n }\n catch (MalformedURLException murle)\n {\n fail (\"bad url \" + link);\n }\n }", "public synchronized void reset() throws IOException {\n super.reset();\n if(!iMaxSet) {\n iMaximum = available();\n }\n iRemainder = iMaximum;\n }", "void rewind();", "public final void yyreset(Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n zzFinalHighSurrogate = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n if (zzBuffer.length > ZZ_BUFFERSIZE)\n zzBuffer = new char[ZZ_BUFFERSIZE];\n }", "@Override\n\tpublic void reset(int index) {\n\t\tif (sorted) {\n\t\t\tsortedReader.reset(index);\n\t\t}\n\t}", "@Override\n public void setPosition(int position) throws IOException\n {\n if (position < 0)\n {\n throw new IOException(\"position is negative\");\n }\n if (position >= randomAccessRead.length())\n {\n throw new IOException(\"New position is out of range \" + position + \" >= \"\n + randomAccessRead.length());\n }\n randomAccessRead.seek(position);\n }", "@Override\r\n\tpublic void reset() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\ttry{\r\n\t\t\tbr.seek(0);\r\n\t\t}catch(IOException e){\r\n\t\t\tSystem.out.println(\"Files not found.\");\r\n\t\t}\r\n\t}", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = zzPushbackPos = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = zzPushbackPos = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n zzFinalHighSurrogate = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n if (zzBuffer.length > ZZ_BUFFERSIZE)\n zzBuffer = new char[ZZ_BUFFERSIZE];\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n zzFinalHighSurrogate = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n if (zzBuffer.length > ZZ_BUFFERSIZE)\n zzBuffer = new char[ZZ_BUFFERSIZE];\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n zzFinalHighSurrogate = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n if (zzBuffer.length > ZZ_BUFFERSIZE)\n zzBuffer = new char[ZZ_BUFFERSIZE];\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n zzFinalHighSurrogate = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n if (zzBuffer.length > ZZ_BUFFERSIZE)\n zzBuffer = new char[ZZ_BUFFERSIZE];\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n zzFinalHighSurrogate = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n if (zzBuffer.length > ZZ_BUFFERSIZE)\n zzBuffer = new char[ZZ_BUFFERSIZE];\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n zzFinalHighSurrogate = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n if (zzBuffer.length > ZZ_BUFFERSIZE)\n zzBuffer = new char[ZZ_BUFFERSIZE];\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n zzFinalHighSurrogate = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n if (zzBuffer.length > ZZ_BUFFERSIZE)\n zzBuffer = new char[ZZ_BUFFERSIZE];\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n zzFinalHighSurrogate = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n if (zzBuffer.length > ZZ_BUFFERSIZE)\n zzBuffer = new char[ZZ_BUFFERSIZE];\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n zzFinalHighSurrogate = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n if (zzBuffer.length > ZZ_BUFFERSIZE)\n zzBuffer = new char[ZZ_BUFFERSIZE];\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n zzFinalHighSurrogate = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n if (zzBuffer.length > ZZ_BUFFERSIZE)\n zzBuffer = new char[ZZ_BUFFERSIZE];\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n zzFinalHighSurrogate = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n if (zzBuffer.length > ZZ_BUFFERSIZE)\n zzBuffer = new char[ZZ_BUFFERSIZE];\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n zzFinalHighSurrogate = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n if (zzBuffer.length > ZZ_BUFFERSIZE)\n zzBuffer = new char[ZZ_BUFFERSIZE];\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n zzFinalHighSurrogate = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n if (zzBuffer.length > ZZ_BUFFERSIZE)\n zzBuffer = new char[ZZ_BUFFERSIZE];\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n zzFinalHighSurrogate = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n if (zzBuffer.length > ZZ_BUFFERSIZE)\n zzBuffer = new char[ZZ_BUFFERSIZE];\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n zzFinalHighSurrogate = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n if (zzBuffer.length > ZZ_BUFFERSIZE)\n zzBuffer = new char[ZZ_BUFFERSIZE];\n }", "@Override\n\tpublic void rewind() {\n\t\t\n\t}", "synchronized protected void rewind() {\n\t\ttry {\n\t\t\tais.close();\n\t\t} catch (IOException e) {\n\t\t\tthrow new CCSoundException(\"JSPCMAudioRecordingStream::rewind - Error closing the stream before reload\", e);\n\t\t}\n\t\tais = CCSoundIO.getAudioInputStream(meta.fileName());\n\t}", "public final void yyreset(java.io.Reader reader) {\r\n zzReader = reader;\r\n zzAtBOL = true;\r\n zzAtEOF = false;\r\n zzEOFDone = false;\r\n zzEndRead = zzStartRead = 0;\r\n zzCurrentPos = zzMarkedPos = 0;\r\n zzFinalHighSurrogate = 0;\r\n yyline = yychar = yycolumn = 0;\r\n zzLexicalState = YYINITIAL;\r\n if (zzBuffer.length > ZZ_BUFFERSIZE)\r\n zzBuffer = new char[ZZ_BUFFERSIZE];\r\n }", "public final void yyreset(java.io.Reader reader) {\r\n zzReader = reader;\r\n zzAtBOL = true;\r\n zzAtEOF = false;\r\n zzEOFDone = false;\r\n zzEndRead = zzStartRead = 0;\r\n zzCurrentPos = zzMarkedPos = 0;\r\n zzFinalHighSurrogate = 0;\r\n yyline = yychar = yycolumn = 0;\r\n zzLexicalState = YYINITIAL;\r\n if (zzBuffer.length > ZZ_BUFFERSIZE)\r\n zzBuffer = new char[ZZ_BUFFERSIZE];\r\n }", "@Override\n public void reset() throws IOException {\n\td.numObjectsCached = 0;\n\td.reset();\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n }", "public void resetWriter() {\n\t\tinit();\n\t}", "public void reset() {\n bytes.reset();\n bytes.readVariableLengthInt();\n }", "void pushBack() throws IOException {\n iis.seek(iis.getStreamPosition()-bufAvail);\n bufAvail = 0;\n bufPtr = 0;\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n zzFinalHighSurrogate = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n if (zzBuffer.length > ZZ_BUFFERSIZE)\n zzBuffer = new char[ZZ_BUFFERSIZE];\n }", "public final void yyreset(java.io.Reader reader) {\r\n zzReader = reader;\r\n zzAtBOL = true;\r\n zzAtEOF = false;\r\n zzEOFDone = false;\r\n zzEndRead = zzStartRead = 0;\r\n zzCurrentPos = zzMarkedPos = 0;\r\n yyline = yychar = yycolumn = 0;\r\n zzLexicalState = YYINITIAL;\r\n }", "public final void yyreset(java.io.Reader reader) {\r\n zzReader = reader;\r\n zzAtBOL = true;\r\n zzAtEOF = false;\r\n zzEOFDone = false;\r\n zzEndRead = zzStartRead = 0;\r\n zzCurrentPos = zzMarkedPos = 0;\r\n yyline = yychar = yycolumn = 0;\r\n zzLexicalState = YYINITIAL;\r\n }", "public void reset() { \r\n stop(); \r\n if (midi) \r\n sequencer.setTickPosition(0); \r\n else \r\n clip.setMicrosecondPosition(0); \r\n audioPosition = 0; \r\n progress.setValue(0); \r\n }", "public void resetPosition()\n {\n resetPosition(false);\n }", "final public void yyreset(java.io.Reader reader) throws java.io.IOException {\n yyclose();\n yy_reader = reader;\n yy_atBOL = true;\n yy_atEOF = false;\n yy_endRead = yy_startRead = 0;\n yy_currentPos = yy_markedPos = yy_pushbackPos = 0;\n yyline = yychar = yycolumn = 0;\n yy_lexical_state = YYINITIAL;\n }" ]
[ "0.7833232", "0.76745147", "0.7507704", "0.7482651", "0.73887885", "0.73380274", "0.6908184", "0.6878153", "0.68674165", "0.6823294", "0.6748523", "0.670817", "0.66368467", "0.6599748", "0.65587234", "0.65364224", "0.6535031", "0.64966947", "0.64855516", "0.6478905", "0.6432271", "0.6375316", "0.6373407", "0.63550663", "0.63550663", "0.634302", "0.6341907", "0.6337872", "0.6329573", "0.63065", "0.6293501", "0.6283179", "0.6279592", "0.62679654", "0.62592244", "0.62585247", "0.6257042", "0.6241164", "0.62351805", "0.6230267", "0.62128085", "0.6209393", "0.6201253", "0.6198926", "0.61896026", "0.6186325", "0.6184975", "0.61818117", "0.61763036", "0.61102444", "0.60732836", "0.6066665", "0.60641646", "0.6056475", "0.60334", "0.6025446", "0.6020151", "0.600397", "0.59963214", "0.59887606", "0.59822315", "0.59614414", "0.5959136", "0.5957817", "0.59505314", "0.59505314", "0.5949477", "0.5949477", "0.5949477", "0.5949477", "0.5949477", "0.5949477", "0.5949477", "0.5949477", "0.5949477", "0.5949477", "0.5949477", "0.5949477", "0.5949477", "0.5949477", "0.5949477", "0.5930466", "0.5922069", "0.59196603", "0.59196603", "0.59128296", "0.5908931", "0.5908931", "0.5908931", "0.5908931", "0.5908931", "0.58975625", "0.58900225", "0.58858496", "0.5885349", "0.5878298", "0.5878298", "0.5863795", "0.58516717", "0.58364266" ]
0.67455
11
Base class overrides implementation details
@Override public Token nextToken() throws IOException, InputMismatchException { Token token; if (position.hasNext()) { token = position.next(); } else { token = super.getToken(); if (token != null) { position.add(token); } } return token; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n protected void checkSubclass() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n protected void init() {\n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n protected void checkSubclass() {\n }", "@Override\n protected void checkSubclass() {\n }", "@Override\n protected void checkSubclass() {\n }", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n protected void checkSubclass() {\n }", "@Override\r\n protected void checkSubclass() {\n }", "@Override\r\n protected void checkSubclass() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n void init() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "protected void init() {\n // to override and use this method\n }", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "public void init() {\r\n\t\t// to override\r\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 public void init() {\n }", "@Override // opcional\n public void init(){\n\n }", "@Override\n protected void initialize() \n {\n \n }", "private ExtendedOperations(){}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n super.init();\n\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\r\n\tprotected void intializeSpecific() {\n\r\n\t}", "@Override\n public void init() {}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "protected AbstractTotalRevenue() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "protected abstract void _extends( ClassOutlineImpl derived, ClassOutlineImpl base );", "protected ApiActivityBase() {\n super();\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "protected Doodler() {\n\t}", "@Override\r\n\tpublic void method() {\n\t\r\n\t}", "public void method_6349() {\r\n super.method_6349();\r\n }", "_ExtendsNotAbstract() {\n super(\"s\"); // needs this if not default ctor;\n }", "@Override public void init()\n\t\t{\n\t\t}", "protected void method_3848() {\r\n super.method_3848();\r\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tvoid methodabstract() {\n\t\t\n\t}", "public void run() {\r\n\t\t// overwrite in a subclass.\r\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n public void init() {\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "protected ChildType() {/* intentionally empty block */}" ]
[ "0.71242297", "0.6689165", "0.6535876", "0.653086", "0.65069014", "0.6426184", "0.6391643", "0.6325466", "0.63041735", "0.6293011", "0.6293011", "0.6293011", "0.62578136", "0.62578136", "0.62578136", "0.62578136", "0.62578136", "0.62578136", "0.62578136", "0.62578136", "0.62578136", "0.62578136", "0.62578136", "0.62578136", "0.62578136", "0.62578136", "0.62578136", "0.62578136", "0.62578136", "0.6254445", "0.6254445", "0.6254445", "0.6250894", "0.6250894", "0.6250894", "0.6250894", "0.6250894", "0.6250894", "0.6232916", "0.6232916", "0.6232916", "0.6232916", "0.6232916", "0.6232916", "0.6232916", "0.6232916", "0.6232916", "0.6232916", "0.6232916", "0.6232916", "0.6232916", "0.6232916", "0.62244916", "0.6210985", "0.61698115", "0.61698115", "0.6128193", "0.61118364", "0.6108056", "0.6092202", "0.6092202", "0.60885185", "0.6085861", "0.60795444", "0.6077402", "0.6068454", "0.60630876", "0.6046274", "0.60373324", "0.6028017", "0.6021701", "0.6003058", "0.59867966", "0.5964147", "0.5964147", "0.59591824", "0.5946208", "0.5934702", "0.5934577", "0.5930822", "0.59282094", "0.5924437", "0.5921868", "0.590979", "0.59077615", "0.58860976", "0.58860147", "0.58839774", "0.5881345", "0.58728594", "0.58687484", "0.58644265", "0.5863913", "0.58609074", "0.58609074", "0.5857835", "0.5853616", "0.5853616", "0.5848776", "0.5841173", "0.58395576" ]
0.0
-1
Creates an instance of ApplicationResourceProperties class.
public ApplicationResourceProperties() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ResourceProperties(Application app) {\n this.resources = new TreeSet(app.getResourceComparator());\n }", "public ApplicationDefinitionProperties() {\n }", "public ResourceProperties(Application app, String resourceName,\n ResourceProperties defaultProperties) {\n this(app, resourceName);\n this.defaultProperties = defaultProperties;\n forceUpdate();\n }", "public ResourceProperties(Application app, String resourceName) {\n this.app = app;\n this.resourceName = resourceName;\n this.resources = new TreeSet(app.getResourceComparator());\n }", "private void createApplicationProperties()\n {\n _applicationPropertiesMap = new HashMap<String,Object>();\n _message.setApplicationProperties(new ApplicationProperties(_applicationPropertiesMap));\n }", "public ResourceProperties(Application app, String resourceName,\n ResourceProperties defaultProperties,\n boolean ignoreCase) {\n this(app, resourceName);\n this.defaultProperties = defaultProperties;\n this.ignoreCase = ignoreCase;\n forceUpdate();\n }", "public ResourceProperties() {\n // TODO: we can't use TreeSet because we don't have the app's resource comparator\n // Since resources don't implement Comparable, we can't add them to a \"naked\" TreeSet\n // As a result, resource ordering is random when updating.\n this.resources = new LinkedHashSet();\n }", "public static Properties getProperties(){\n\n\t\tProperties prop = new Properties();\n\t\tInputStream input = null;\n\n\t\ttry {\n\n\t\t\tinput = new FileInputStream(\"C:\\\\BCJMay16\\\\Developer\\\\MIddleLayer\\\\Workspace\\\\java\\\\springworkspace\\\\txuenergy\\\\ApplicationResources.properties\");\n\n\t\t\tprop.load(input);\n\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t} finally {\n\t\t\tif (input != null) {\n\t\t\t\ttry {\n\t\t\t\t\tinput.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\t\treturn prop;\n\t }", "private static Hashtable<? super String, Object> getApplicationResources() throws NamingException {\n\n ClassLoader cl = helper.getContextClassLoader();\n\n synchronized (propertiesCache) {\n Hashtable<? super String, Object> result = propertiesCache.get(cl);\n if (result != null) {\n return result;\n }\n\n try {\n NamingEnumeration<InputStream> resources = helper.getResources(cl, APP_RESOURCE_FILE_NAME);\n try {\n while (resources.hasMore()) {\n Properties props = new Properties();\n InputStream istream = resources.next();\n try {\n props.load(istream);\n } finally {\n istream.close();\n }\n\n if (result == null) {\n result = props;\n } else {\n mergeTables(result, props);\n }\n }\n } finally {\n while (resources.hasMore()) {\n resources.next().close();\n }\n }\n\n // Merge in properties from file in <java.home>/lib.\n InputStream istream = helper.getJavaHomeLibStream(JRELIB_PROPERTY_FILE_NAME);\n if (istream != null) {\n try {\n Properties props = new Properties();\n props.load(istream);\n\n if (result == null) {\n result = props;\n } else {\n mergeTables(result, props);\n }\n } finally {\n istream.close();\n }\n }\n\n } catch (IOException e) {\n NamingException ne = new ConfigurationException(\"Error reading application resource file\");\n ne.setRootCause(e);\n throw ne;\n }\n if (result == null) {\n result = new Hashtable<>(11);\n }\n propertiesCache.put(cl, result);\n return result;\n }\n }", "public static PropertyUtil getInstance(){\t\t\n\t\tif(resource==null){\n\t\t\tresource = new PropertyUtil();\n\t\t}\n\t\treturn resource;\n\t}", "public ResourceConfiguration(String name, String namespace, Map properties) {\n this.name = name;\n this.namespace = namespace;\n \n if (properties == null) {\n this.properties = new HashMap();\n } else {\n this.properties = properties;\n }\n }", "public Vector getApplicationProperties() {\n return appProperties;\n }", "@SneakyThrows\n public ApplicationProperties(final String propertiesFilePath) {\n this.properties = new Properties();\n this.properties.load(new FileInputStream(propertiesFilePath));\n }", "private Properties getProperties() throws IOException {\r\n\t\tInputStream input = this.getClass().getResourceAsStream(\"/properties/application.properties\");\r\n\t\tProperties properties = new Properties();\r\n\t\tproperties.load(input);\r\n\t\treturn properties;\r\n\t}", "private PropertiesUtils() {}", "public\n YutilProperties()\n {\n super(new Properties());\n }", "public AppUserResource() {\r\n }", "public ResourceFactory(){}", "public PSBeanProperties()\n {\n loadProperties();\n }", "public TestProperties() {\n\t\tthis.testProperties = new Properties();\n\t}", "public FileServicePropertiesProperties() {\n }", "public interface PropertiesFactory {\n\n\t/**\n\t * Creates properties list.\n\t * @param app properties for app\n\t * @param localization localization for properties\n\t * @param onLanguageSetCallback callback when language is set\n\t * @return a list of properties\n\t */\n\tList<PropertiesArray> createProperties(App app, Localization localization,\n\t\t\tLanguageProperty.OnLanguageSetCallback onLanguageSetCallback);\n}", "Resource createResource();", "public Properties initForRuntime() {\n initProperties();\n return this;\n }", "public static PropertiesUtil getInstance(){\n if (instance == null) {\n synchronized (PropertiesUtil.class){\n instance = new PropertiesUtil();\n instance.loadProperties();\n }\n }\n return instance;\n }", "public Resources() {\n }", "public Properties initProperties() {\r\n\t\tprop = new Properties();\r\n\t\ttry {\r\n\t\t\tFileInputStream fis = new FileInputStream(\"./src/main/java/com/automation/qe/config/config.properties\");\r\n\t\t\tprop.load(fis);\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn prop;\r\n\t}", "public ApplicationContext() {\n FileInputStream in;\n props = new Properties();\n try {\n in = new FileInputStream(\"gamesettings.properties\");\n props.load(in);\n } catch (FileNotFoundException ex) {\n props.setProperty(\"name\", \"Player\");\n props.setProperty(\"url\", \"0.0.0.0\");\n \n } catch (IOException ex) {\n props.setProperty(\"name\", \"Player\");\n props.setProperty(\"url\", \"0.0.0.0\");\n }\n }", "public Property createProperty() {\n Property p = new Property();\n p.setProject(getProject());\n p.setTaskName(\"property\");\n properties.addElement(p);\n return p;\n }", "public Properties(){\n\n }", "public ProductResource() {\n }", "private ConfigProperties() {\n\n }", "protected HashMap createApplicationProperties(MessageContext context) {\n HashMap props = null;\n if (context.containsProperty(\n JMSConstants.JMS_APPLICATION_MSG_PROPS)) {\n props = new HashMap();\n props.putAll((Map)context.getProperty(\n JMSConstants.JMS_APPLICATION_MSG_PROPS));\n }\n return props;\n }", "private static Properties loadProperties() {\n Properties properties;\n try (InputStream in = FHIRServerProperties.class.getClassLoader().getResourceAsStream(HAPI_PROPERTIES)) {\n properties = new Properties();\n properties.load(in);\n } catch (Exception e) {\n throw new ConfigurationException(\"Could not load HAPI properties\", e);\n }\n\n Properties overrideProps = loadOverrideProperties();\n if (overrideProps != null) {\n properties.putAll(overrideProps);\n }\n return properties;\n }", "public CustomerPolicyProperties() {\n }", "@Bean\n public static PropertySourcesPlaceholderConfigurer properties(){\n PropertySourcesPlaceholderConfigurer pspc\n = new PropertySourcesPlaceholderConfigurer();\n Resource[] resources = new ClassPathResource[ ]\n { new ClassPathResource(\"app-attribute.properties\") };\n pspc.setLocations( resources );\n pspc.setIgnoreUnresolvablePlaceholders( true );\n return pspc;\n }", "public Property createProperty() {\n if (newProject == null) {\n reinit();\n }\n Property p = new Property(true, getProject());\n p.setProject(newProject);\n p.setTaskName(\"property\");\n properties.addElement(p);\n return p;\n }", "public MaintenanceWindowsProperties() {\n }", "private ResourceProperties(ResourceProperties parentProperties, String prefix) {\n this.parentProperties = parentProperties;\n this.prefix = prefix;\n this.resources = new LinkedHashSet();\n setIgnoreCase(parentProperties.ignoreCase);\n forceUpdate();\n }", "public ProfileResource() {\n }", "public NotificationResource() {\r\n }", "public KeyVaultProperties() {\n }", "public static AppConfig getAppConfig() {\n\n\t\t//LOGGER.info(\"Configurator:getAppConfig(): Configuring the Application credentials .........................\");\n\t\t\n\t\tProperties props = new Properties();\n\t\tAppConfig appConfig = new AppConfig();\n\n\t\ttry {\n\t\t\tprops.load(new FileInputStream(\"Resilient.properties\"));\n\n\t\t\t// SFDC\n\t\t\tappConfig.setSfdcEndpoint(props.getProperty(\"sfdc.sfdcEndpoint\"));\n\t\t\tappConfig.setSfdcUsername(props.getProperty(\"sfdc.sfdcUsername\"));\n\t\t\tappConfig.setSfdcPassword(props.getProperty(\"sfdc.sfdcPassword\"));\n\t\t\t\t\t\t\t\t\t\n\t\t\t\n\t\t\tappConfig.setSfdcBillToItemQueryFields(props.getProperty(\"resilient.launchReport.sfdcBillToItemQueryFields\"));\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tLOGGER.error(\"Exception while configuring the Application credentials ...\" + e);\n\t\t}\n\t\treturn appConfig;\n\t}", "public PropertiesUtil() {\n\t\t// Read properties file.\n\n\t\tproperties = new Properties();\n\t\ttry {\n\t\t\tproperties.load(PropertiesUtil.class.getClassLoader().getResourceAsStream(\"variables.properties\"));\n\t\t\tlog.info(\"variables.properties file loaded successfully\");\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"variables.properties file not found: \", e);\n\t\t}\n\t}", "public ServerProperties() {\n try {\n initializeProperties();\n }\n catch (Exception e) {\n System.out.println(\"Error initializing server properties.\");\n }\n }", "public RestApplication() {\n\t\tsingletons.add(new UtilResource());\n\t\tsingletons.add(new StudentResource());\n\t}", "private AppConfigLoader() {\r\n\r\n\t\tProperties appConfigPropertySet = new Properties();\r\n\t\tProperties envConfigPropertySet = new Properties();\r\n\r\n\t\ttry {\r\n\r\n\t\t\t// read properties file\r\n\t\t\tInputStream appConfigPropertyStream = AppConfigLoader.class\r\n\t\t\t\t\t.getResourceAsStream(\"/config/baseAppConfig.properties\");\r\n\t\t\tappConfigPropertySet.load(appConfigPropertyStream);\r\n\r\n\t\t\tInputStream envConfigPropertyStream = null;\r\n\r\n\t\t\t// check if current environment is defined (QA, Integration or Staging)\r\n\t\t\tif (System.getProperty(\"environment\") != null) {\r\n\t\t\t\tenvConfigPropertyStream = AppConfigLoader.class\r\n\t\t\t\t\t\t.getResourceAsStream(\"/config/\" + System.getProperty(\"environment\") + \"/appConfig.properties\");\r\n\t\t\t\tSystem.out.println(\"********'ENVIRONMENT Details taken from Runtime'********\");\r\n\t\t\t\tSystem.out.println(\"********'\" + System.getProperty(\"environment\") + \" ENVIRONMENT'********\");\r\n\t\t\t\tenvironment = System.getProperty(\"environment\");\r\n\t\t\t} else {\r\n\t\t\t\tenvConfigPropertyStream = AppConfigLoader.class.getResourceAsStream(\r\n\t\t\t\t\t\t\"/config/\" + appConfigPropertySet.getProperty(\"CurrentEnvironment\") + \"/appConfig.properties\");\r\n\t\t\t\tSystem.out.println(\"********'ENVIRONMENT Details taken from Baseapp config property file'********\");\r\n\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\"********'\" + appConfigPropertySet.getProperty(\"CurrentEnvironment\") + \" ENVIRONMENT'********\");\r\n\t\t\t\tenvironment = appConfigPropertySet.getProperty(\"CurrentEnvironment\");\r\n\t\t\t}\r\n\r\n\t\t\tenvConfigPropertySet.load(envConfigPropertyStream);\r\n\r\n\t\t\tthis.sampleURL = envConfigPropertySet.getProperty(\"SampleUrl\");\r\n\t\t\tthis.sampleAPIURL = envConfigPropertySet.getProperty(\"SampleAPIUrl\");\r\n\r\n\t\t\tthis.sampleDbConnectionString = envConfigPropertySet.getProperty(\"SampleConnectionString\");\r\n\r\n\t\t\tenvConfigPropertyStream.close();\r\n\t\t\tappConfigPropertyStream.close();\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private Properties loadProperties() {\n Properties properties = new Properties();\n try {\n properties.load(getClass().getResourceAsStream(\"/config.properties\"));\n } catch (IOException e) {\n throw new WicketRuntimeException(e);\n }\n return properties;\n }", "private ResourceManager() {}", "private Properties getAppSettings() {\n \t\t\n\t if(_appSettings == null){\n\t\t try {\n\t\t\tsynchronized(this){\t\t\n\t\t\t\tif(_appSettings == null) {\t\t\t\t\t\t\n\t\t\t\t\t_appSettings = new Properties();\t\n\t\t\t\t\t\n\t\t\t\t\t//look for an existing file this mmsi\n\t\t\t\t\t//if one doesn't exist, use a default file.\n\t\t\t\t\tString configFile = _configFile;\n\t\t\t\t\tFile file = new File(configFile);\n\t\t\t\t\tif(file.exists() == false){\n\t\t\t\t\t\tconfigFile = STORE_BASE + APPL_PROPS;\n\t\t\t\t\t}\n\t\t\t\t\tFileInputStream oFile = new FileInputStream(configFile);\n\t\t \t\tInputStream setupOutput = new DataInputStream(oFile);\t\t \t\t\t\t\n\t\t \t\t//InputStream propInput = new DataInputStream(this.getClass().getResourceAsStream(STORE_BASE + APP_SETTINGS));\t \t \t \t\t\t\n\t\t\t\t\t_appSettings.load(setupOutput);\t\n\t\t\t\t\t\n\t\t\t\t} \t \t\t\t\t\t\n\t\t\t}\t \t\t\t\n\t\t}catch(Exception oEx){\n\t\t\tAppLogger.error(oEx);\n\t\t}\t\t \t\t\t\t\t\n\t}\t\t\t \t\t\n\treturn _appSettings;\n }", "private static Map<String, String> createPropertiesAttrib() {\r\n Map<String, String> map = new HashMap<String, String>();\r\n map.put(\"Property1\", \"Value1SA\");\r\n map.put(\"Property3\", \"Value3SA\");\r\n return map;\r\n }", "public ApplicationCreator() {\n }", "private ResourceFactory() {\r\n\t}", "public Resources() {\n this(DSL.name(\"Resources\"), null);\n }", "public static Properties getInstance() throws IOException {\n if (instance == null) {\n instance = new Properties();\n FileReader in = new FileReader(PROPERTIES_DIR + PROPERTIES_FILE);\n instance.load(in);\n }\n return instance;\n }", "public Properties() {\n\n\t\tconfig = new java.util.Properties();\n\n\t\ttry {\n\t\t\tInputStream input = new FileInputStream(new File(\n\t\t\t\t\t\"ConfigurationFile.txt\"));\n\t\t\tconfig.load(input);\n\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public PropertiesInjectionModule() {\n }", "private SystemProperties() {}", "Property createProperty();", "public InstanceProperties getInitialProperties()\n {\n if (initialProperties == null)\n {\n return null;\n }\n else\n {\n return new InstanceProperties(initialProperties);\n }\n }", "private PropertiesHelper() {\n throw new AssertionError(\"Cannot instantiate this class\");\n }", "private LSLRComponentProperties(final String resourceName) {\n this.resourceName = resourceName;\n }", "public JerseyInitializer() {\n this.register(new JacksonJsonProvider(ObjectMapperFactory.create()));\n this.property(ServerProperties.BV_SEND_ERROR_IN_RESPONSE, true);\n this.property(ServerProperties.BV_DISABLE_VALIDATE_ON_EXECUTABLE_OVERRIDE_CHECK, true);\n this.packages(true, \"com.hh.resources\");\n }", "public BookResource() {\n }", "public ApplicationResourceProperties withTypeName(String typeName) {\n this.typeName = typeName;\n return this;\n }", "public TarefaResource() {\r\n }", "ObjectResource createObjectResource();", "private PropertiesLoader() {\r\n\t\t// not instantiable\r\n\t}", "public void init() {\n this.properties = loadProperties(\"/project3.properties\");\n }", "protected Map createPropertiesMap() {\n return new HashMap();\n }", "public final Properties init() throws FileNotFoundException, IOException{\n /*\n Your properties file must be in the deployed .war file in WEB-INF/classes/tokens. It is there automatically\n if you have it in Source Packages/java/tokens when you build. That is how this will read it in without defining a root location\n https://stackoverflow.com/questions/2395737/java-relative-path-of-a-file-in-a-java-web-application\n */\n String fileLoc =TinyTokenManager.class.getResource(Constant.PROPERTIES_FILE_NAME).toString();\n fileLoc = fileLoc.replace(\"file:\", \"\");\n setFileLocation(fileLoc);\n InputStream input = new FileInputStream(propFileLocation);\n props.load(input);\n input.close();\n currentAccessToken = props.getProperty(\"access_token\");\n currentRefreshToken = props.getProperty(\"refresh_token\");\n currentS3AccessID = props.getProperty(\"s3_access_id\");\n currentS3Secret = props.getProperty(\"s3_secret\");\n currentS3BucketName = props.getProperty(\"s3_bucket_name\");\n currentS3Region = Region.US_WEST_2;\n apiSetting = props.getProperty(\"open_api_cors\");\n return props;\n }", "private static ImageResource initImageResource() {\n\t\tImageResource imageResource = new ImageResource(Configuration.SUPERVISOR_LOGGER);\n\t\t\n\t\timageResource.addResource(ImageTypeAWMS.VERTICAL_BAR.name(), imagePath + \"blue_vertical_bar.png\");\n\t\timageResource.addResource(ImageTypeAWMS.HORIZONTAL_BAR.name(), imagePath + \"blue_horizontal_bar.png\");\n\t\timageResource.addResource(ImageTypeAWMS.WELCOME.name(), imagePath + \"welcome.png\");\n\t\t\n\t\t\n\t\treturn imageResource;\n\t}", "public static synchronized void initProjectProperties() {\n System.out.println(Thread.currentThread().getName() + \"********************************************************* TestHelper.initProjectProperties\");\n try {\n String projectPropertiesFilename = System.getProperty(USER_DIR)\n + File.separator\n + QVCSConstants.QVCS_PROPERTIES_DIRECTORY\n + File.separator\n + QVCSConstants.QVCS_SERVED_PROJECTNAME_PREFIX + getTestProjectName() + \".properties\";\n File projectPropertiesFile = new File(projectPropertiesFilename);\n System.out.println(Thread.currentThread().getName() + \"********************************************************* TestHelper.initProjectProperties project properties file name: [\" + projectPropertiesFilename + \"]\");\n\n if (projectPropertiesFile.exists()) {\n // If the properties file exists, delete it, so we can create a fresh one.\n projectPropertiesFile.delete();\n System.out.println(Thread.currentThread().getName() + \"********************************************************* TestHelper.initProjectProperties deleting existing property file.\");\n }\n // Make sure the properties directory exists...\n if (!projectPropertiesFile.getParentFile().exists()) {\n projectPropertiesFile.getParentFile().mkdirs();\n }\n\n // Make sure the property file exists. (This should create it.)\n if (projectPropertiesFile.createNewFile()) {\n AbstractProjectProperties projectProperties = ProjectPropertiesFactory.getProjectPropertiesFactory().buildProjectProperties(getTestProjectName(), QVCSConstants.QVCS_SERVED_PROJECT_TYPE);\n\n // This is where the archives go...\n String projectLocation = System.getProperty(USER_DIR)\n + File.separator\n + QVCSConstants.QVCS_PROJECTS_DIRECTORY\n + File.separator\n + getTestProjectName();\n\n File archiveLocation = new File (projectLocation);\n String canonicalArchiveLocation = archiveLocation.getCanonicalPath();\n\n // This the root directory for the archives for this project.\n projectProperties.setArchiveLocation(canonicalArchiveLocation);\n\n // Make sure the directory exists.\n File projectDirectory = new File(projectLocation);\n projectDirectory.mkdirs();\n\n // Set the project info for the reference copies\n projectProperties.setCreateReferenceCopyFlag(false);\n\n // Set the ignore case flag.\n projectProperties.setIgnoreCaseFlag(true);\n\n projectProperties.setDirectoryContentsInitializedFlag(true);\n\n projectProperties.saveProperties();\n }\n } catch (IOException e) {\n Logger.getLogger(TestHelper.class.getName()).log(Level.SEVERE, null, e);\n }\n }", "public LogProfileProperties() {\n }", "private DatabaseValidationProperties() {}", "public Resource() {\n }", "public Resource() {\n }", "public static mxPropertiesManager getInstance()\n\t{\n\t\tif (propertiesManager == null)\n\t\t{\n\t\t\tpropertiesManager = new mxPropertiesManager();\n\t\t}\n\t\treturn propertiesManager;\n\t}", "public ModelResource() {\n }", "public LoadTestProperties() {\n }", "public synchronized void update() {\n // set lastCheck first to reduce risk of recursive calls\n this.lastCheck = System.currentTimeMillis();\n if (getChecksum() != this.lastChecksum) {\n // First collect properties into a temporary collection,\n // in a second step copy over new properties,\n // and in the final step delete properties which have gone.\n ResourceProperties temp = new ResourceProperties();\n temp.setIgnoreCase(this.ignoreCase);\n\n // first of all, properties are load from default properties\n if (this.defaultProperties != null) {\n this.defaultProperties.update();\n temp.putAll(this.defaultProperties);\n }\n\n // next we try to load properties from the application's\n // repositories, if we belong to any application\n if (this.resourceName != null) {\n Iterator iterator = this.app.getRepositories().iterator();\n while (iterator.hasNext()) {\n try {\n RepositoryInterface repository = (RepositoryInterface) iterator.next();\n ResourceInterface res = repository.getResource(this.resourceName);\n if (res != null && res.exists()) {\n\t\t\t\t\t\t\tInputStreamReader reader = new InputStreamReader(\n\t\t\t\t\t\t\t\t\tres.getInputStream());\n\t\t\t\t\t\t\ttemp.load(reader);\n\t\t\t\t\t\t\treader.close();\n }\n } catch (IOException iox) {\n iox.printStackTrace();\n }\n }\n }\n\n // if these are subproperties, reload them from the parent properties\n if (this.parentProperties != null && this.prefix != null) {\n this.parentProperties.update();\n Iterator it = this.parentProperties.entrySet().iterator();\n int prefixLength = this.prefix.length();\n while (it.hasNext()) {\n Map.Entry entry = (Map.Entry) it.next();\n String key = entry.getKey().toString();\n if (key.regionMatches(this.ignoreCase, 0, this.prefix, 0, prefixLength)) {\n temp.put(key.substring(prefixLength), entry.getValue());\n }\n }\n\n }\n\n // at last we try to load properties from the resource list\n if (this.resources != null) {\n Iterator iterator = this.resources.iterator();\n while (iterator.hasNext()) {\n try {\n ResourceInterface res = (ResourceInterface) iterator.next();\n if (res.exists()) {\n\t\t\t\t\t\t\tInputStreamReader reader = new InputStreamReader(\n\t\t\t\t\t\t\t\t\tres.getInputStream());\n\t\t\t\t\t\t\ttemp.load(reader);\n\t\t\t\t\t\t\treader.close();\n }\n } catch (IOException iox) {\n iox.printStackTrace();\n }\n }\n }\n\n // Copy over new properties ...\n putAll(temp);\n // ... and remove properties which have been removed.\n Iterator it = super.keySet().iterator();\n while (it.hasNext()) {\n if (!temp.containsKey(it.next())) {\n it.remove();\n }\n }\n // copy new up-to-date keyMap to ourself\n this.keyMap = temp.keyMap;\n\n this.lastChecksum = getChecksum();\n this.lastCheck = this.lastModified = System.currentTimeMillis();\n }\n }", "public JhoveResources() {\n\t\tsuper();\n\t}", "public CarroResource() {\r\n }", "public ManagedHsmProperties() {\n }", "@Test\n public void testCreateFromProperties_Properties() throws Exception {\n System.out.println(\"createFromProperties\");\n Properties props = new Properties();\n props.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(propertiesName));\n EngineConfiguration result = EngineConfiguration.createFromProperties(props);\n assertProperties(result);\n }", "protected void init() throws Exception {\n\t\t/*\n\t\t * resources section\n\t\t */\n\t\tResourcesManager resourcesManager = ResourcesManager.getInstance();\n\n\t\tif (hibernateResource_ == null) {\n\t\t\t// $-- /application/HibernateResource\n\t\t\t// instantiate and configure 'HibernateResource' resource\n\t\t\tcom.lynxit.fpm.resources.hibernate.HibernateResource hibernateResource = new com.lynxit.fpm.resources.hibernate.HibernateResource(\n\t\t\t\t\t\"HibernateResource\");\n\t\t\thibernateResource.setApplicationDomain(this);\n\t\t\tresourcesManager.addResource(hibernateResource);\n\t\t\t// $-- /application/HibernateResource/\n\t\t\thibernateResource.setUseAnnotation(true);\n\t\t\t// $-- /application/HibernateResource/\n\t\t\thibernateResource.setConfigFilePath(\"hibernate.cfg.xml\");\n\t\t\t// $-- /application/HibernateResource/\n\n\t\t\t// link resources to resources\n\n\t\t\t// add the newly created resource to resources manager\n\t\t\thibernateResource.init();\n\n\t\t\thibernateResource_ = hibernateResource;\n\t\t}\n\n\t\t/*\n\t\t * sub-applications section\n\t\t */\n\n\t\t/*\n\t\t * events section\n\t\t */\n\t\t// $-- /application/StandardEventProducer\n\t\t// instantiate and configure 'StandardEventProducer' event producer\n\t\tcom.lynxspa.fpm.events.StandardEventProducer standardEventProducerEventProducer = Interceptors\n\t\t\t\t.createEventProducer(\n\t\t\t\t\t\tcom.lynxspa.fpm.events.StandardEventProducer.class,\n\t\t\t\t\t\t\"StandardEventProducer\");\n\n\t\t// add the newly created resource to domain\n\t\tthis.addEventProducer(standardEventProducerEventProducer);\n\n\t\t// $-- /application/StandardEventProducer/\n\t\tstandardEventProducerEventProducer.setAllowMultiThreading(false);\n\t\t// $-- /application/StandardEventProducer/\n\t\t// $-- /application/StandardEventProducer/\n\t\tstandardEventProducerEventProducer\n\t\t\t\t.setCronExpression(getMasterRecordCron());\n\n\t\t// link event producer to resources\n\n\t\tstandardEventProducerEventProducer.init();\n\n\t\t/*\n\t\t * business processes section\n\t\t */\n\n\t\t// $-- /application/BusinessProcess\n\t\t// instantiate and configure 'BusinessProcess' business process\n\t\tcom.lynxspa.coac.masterrecord.businessprocess.MasterRecordProcess businessProcessBusinessProcess = Interceptors\n\t\t\t\t.createBusinessProcess(\n\t\t\t\t\t\tcom.lynxspa.coac.masterrecord.businessprocess.MasterRecordProcess.class,\n\t\t\t\t\t\t\"BusinessProcess\", 1);\n\n\t\t// add business process to the processes\n\t\tthis.addBusinessProcess(businessProcessBusinessProcess);\n\n\t\t// $-- /application/BusinessProcess/\n\t\tbusinessProcessBusinessProcess.setLocale(getLocale());\n\t\t// $-- /application/BusinessProcess/\n\t\tbusinessProcessBusinessProcess\n\t\t\t\t.setSelectSize(getMasterRecordSelectSize());\n\t\t// $-- /application/BusinessProcess/\n\t\t// $-- /application/BusinessProcess/\n\t\tbusinessProcessBusinessProcess.setUser(\"MASTERRECORDSELECTOR\");\n\t\t// $-- /application/BusinessProcess/\n\t\tbusinessProcessBusinessProcess\n\t\t\t\t.setEntityDeadLineDays(getEntityDeadLineDays());\n\n\t\t// link process to resources\n\t\t// $-- /application/HibernateResource/resource/application/BusinessProcess/statefullSession\n\t\tbusinessProcessBusinessProcess.setStatefullSession(hibernateResource_);\n\n\t\tbusinessProcessBusinessProcess.initialize();\n\n\t\t// $-- /application/ErrorHandler\n\t\t// instantiate and configure 'ErrorHandler' business process\n\t\tcom.lynxspa.coac.businessprocess.ExceptionHandlerProcess errorHandlerBusinessProcess = Interceptors\n\t\t\t\t.createBusinessProcess(\n\t\t\t\t\t\tcom.lynxspa.coac.businessprocess.ExceptionHandlerProcess.class,\n\t\t\t\t\t\t\"ErrorHandler\", 1);\n\n\t\t// add business process to the processes\n\t\tthis.addBusinessProcess(errorHandlerBusinessProcess);\n\n\t\t// $-- /application/ErrorHandler/\n\t\terrorHandlerBusinessProcess.setLocale(getLocale());\n\t\t// $-- /application/ErrorHandler/\n\t\t// $-- /application/ErrorHandler/\n\t\terrorHandlerBusinessProcess.setUser(\"MASTERRECORDERRORHANDLER\");\n\n\t\t// link process to resources\n\t\t// $-- /application/HibernateResource/resource/application/ErrorHandler/sessionFactory\n\t\terrorHandlerBusinessProcess.setSessionFactory(hibernateResource_);\n\n\t\terrorHandlerBusinessProcess.initialize();\n\n\t\t/*\n\t\t * Link event producers to processes, sub-applications or outputs\n\t\t */\n\t\t// $-- /application/StandardEventProducer/events/application/BusinessProcess/input\n\t\tBusinessProcess.connect(standardEventProducerEventProducer,\n\t\t\t\tbusinessProcessBusinessProcess.asInputInput());\n\n\t\t/*\n\t\t * Link inputs to processes, sub-applications or outputs\n\t\t */\n\n\t\t/*\n\t\t * Link processes to other processes, sub-applications or outputs\n\t\t */\n\t\t// $-- /application/BusinessProcess/exc/application/ErrorHandler/input\n\t\tBusinessProcess.connect(\n\t\t\t\tbusinessProcessBusinessProcess.asExcEventProducer(),\n\t\t\t\terrorHandlerBusinessProcess.asInputInput());\n\n\t\t/*\n\t\t * Link sub applications to other processes, sub-applications or outputs\n\t\t */\n\t}", "public PropertyManager() {\n propFileName = System.getProperty(\"user.home\") + File.separator +\n defPropFile;\n\n recentResult = loadPropertyFile(propFileName);\n }", "public static ConfigProperties getInstance() {\r\n\r\n if (instance==null) {\r\n instance=new ConfigProperties();\r\n }\r\n return instance;\r\n }", "Device_Resource createDevice_Resource();", "ProductProperties productProperties();", "protected Resource newResource()\n\t{\n\t\tPackageResource packageResource = PackageResource.get(getScope(), getName(), getLocale(),\n\t\t\tgetStyle());\n\t\tif (packageResource != null)\n\t\t{\n\t\t\tlocale = packageResource.getLocale();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"package resource [scope=\" + getScope() + \",name=\" +\n\t\t\t\tgetName() + \",locale=\" + getLocale() + \"style=\" + getStyle() + \"] not found\");\n\t\t}\n\t\treturn packageResource;\n\t}", "public synchronized static PropertiesUtil getInstance() {\n if(INSTANCE == null) {\n INSTANCE = new PropertiesUtil();\n }\n return INSTANCE;\n }", "public WifisResource() {\r\n\r\n }", "private Resource createResource(final File file) throws IOException {\n\n // TODO: see this gist to prevent re-reading the same resource file if it's already registered\n // https://gist.github.com/3998818\n\n Registry<String, String> properties = ResourceUtil.readConfiguration(file);\n String resourceName = properties.getEntryValue(ResourceConstants.RESOURCE_NAME);\n\n String rootNode = properties.getEntryValue(ResourceConstants.RESOURCE_ROOT_NODE);\n\n String objectClassKey = properties.getEntryValue(ResourceConstants.RESOURCE_OBJECT);\n Class objectClass = classRegistry.getEntryValue(objectClassKey);\n\n String algorithmKey = properties.getEntryValue(ResourceConstants.RESOURCE_ALGORITHM_CLASS);\n Algorithm algorithm = algorithmFactory.createImplementation(algorithmKey);\n\n String resolverKey = properties.getEntryValue(ResourceConstants.RESOURCE_URI_RESOLVER_CLASS);\n Resolver resolver = resolverFactory.createImplementation(resolverKey);\n\n Resource resource = new ObjectResource(resourceName, rootNode, objectClass, algorithm, resolver);\n\n Object uniqueField = properties.getEntryValue(ResourceConstants.RESOURCE_UNIQUE_FIELD);\n List<String> uniqueFields = new ArrayList<String>();\n if (uniqueField != null)\n uniqueFields = Arrays.asList(StringUtil.split(uniqueField.toString(), \",\"));\n\n List<String> ignoredField = ResourceConstants.NON_SEARCHABLE_FIELDS;\n Map<String, String> entries = properties.getEntries();\n for (String fieldName : entries.keySet()) {\n if (!ignoredField.contains(fieldName)) {\n Boolean unique = Boolean.FALSE;\n if (uniqueFields.contains(fieldName))\n unique = Boolean.TRUE;\n resource.addFieldDefinition(fieldName, entries.get(fieldName), unique);\n }\n }\n\n return resource;\n }", "public MetadataResourceType setProperties(Object properties) {\n this.properties = properties;\n return this;\n }", "public void init(){\n\t\tif(prop==null){\r\n\t\t\tprop=new Properties();\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tFileInputStream fs = new FileInputStream(System.getProperty(\"user.dir\")+\"//src//test//resources//projectconfig.properties\");\r\n\t\t\t\tprop.load(fs);\r\n\t\t\t\t\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public GenericResource() {\r\n }", "public ConsommersResource() {\r\n }", "public PropertiesWriter() {\r\n }", "public TestBase()\r\n\t{\r\n\t\tprop = new Properties();\r\n\t\ttry {\r\n\t\t\tFile file = new File(\"src\\\\test\\\\resources\\\\intellicus.properties\");\r\n\t\t\tFileInputStream fis = new FileInputStream(file);\r\n\t\t\tprop.load(fis);\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tcatch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}" ]
[ "0.7118988", "0.6683332", "0.66105175", "0.65683025", "0.6440908", "0.6338878", "0.6199536", "0.60299915", "0.59932554", "0.5971037", "0.5749316", "0.56705004", "0.5615909", "0.5596692", "0.55700624", "0.55659175", "0.55210525", "0.5505691", "0.54672897", "0.5466415", "0.54631007", "0.53987527", "0.5382768", "0.53699684", "0.5344251", "0.534189", "0.5332014", "0.53236026", "0.5318623", "0.5315419", "0.5270088", "0.52644145", "0.52538824", "0.5247146", "0.522209", "0.52187294", "0.5215201", "0.5212407", "0.5210778", "0.51928484", "0.51860976", "0.51668316", "0.51637167", "0.5157839", "0.51462966", "0.51375365", "0.51274276", "0.5121381", "0.5106702", "0.5099978", "0.5096381", "0.50922394", "0.5086553", "0.50840956", "0.5083557", "0.5082154", "0.5077597", "0.5061273", "0.504699", "0.5036418", "0.5028003", "0.5025649", "0.50128436", "0.5001684", "0.49991748", "0.4998611", "0.4990505", "0.49526152", "0.49353346", "0.49324566", "0.49218792", "0.49187768", "0.48954284", "0.4893841", "0.4883193", "0.4874861", "0.4874861", "0.48729557", "0.4867113", "0.48665532", "0.4855654", "0.48548794", "0.48510426", "0.48489934", "0.48447046", "0.48370066", "0.4836732", "0.48343343", "0.48319292", "0.48305693", "0.48302186", "0.48289022", "0.48266742", "0.48202223", "0.48195338", "0.48189858", "0.48142105", "0.48130012", "0.48110834", "0.48079488" ]
0.81259054
0
Get the provisioningState property: The current deployment or provisioning state, which only appears in the response.
public String provisioningState() { return this.provisioningState; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String provisioningState() {\n return this.innerProperties() == null ? null : this.innerProperties().provisioningState();\n }", "public ProvisioningState provisioningState() {\n return this.provisioningState;\n }", "public ProvisioningState provisioningState() {\n return this.provisioningState;\n }", "public ProvisioningState provisioningState() {\n return this.provisioningState;\n }", "public ProvisioningState provisioningState() {\n return this.provisioningState;\n }", "public ProvisioningState provisioningState() {\n return this.provisioningState;\n }", "public ResourceState provisioningState() {\n return this.provisioningState;\n }", "public DomainProvisioningState provisioningState() {\n return this.provisioningState;\n }", "public HanaProvisioningStatesEnum provisioningState() {\n return this.provisioningState;\n }", "public ProvisioningStateType provisioningState() {\n return this.provisioningState;\n }", "public PeeringProvisioningState provisioningState() {\n return this.innerProperties() == null ? null : this.innerProperties().provisioningState();\n }", "public ProvisionedState getProvisionedState() throws ProvisioningException {\n return ProvisionedStateXmlParser.parse(PathsUtils.getProvisionedStateXml(home));\n }", "public DefaultCniNetworkProvisioningState provisioningState() {\n return this.innerProperties() == null ? null : this.innerProperties().provisioningState();\n }", "String provisioningState();", "public Boolean getProvisioning() {\r\n return provisioning;\r\n }", "ProvisioningState provisioningState();", "ProvisioningState provisioningState();", "ProvisioningState provisioningState();", "public String getProvisioned() {\n return this.provisioned;\n }", "com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getDeploymentState();", "EventChannelProvisioningState provisioningState();", "public String getIsCpeProvisioningNeeded() {\n return isCpeProvisioningNeeded;\n }", "public DeploymentStatus getDeploymentStatus();", "public StorageTargetInner withProvisioningState(ProvisioningStateType provisioningState) {\n this.provisioningState = provisioningState;\n return this;\n }", "int getDeploymentStateValue();", "public void setProvisioning(Boolean provisioning) {\r\n this.provisioning = provisioning;\r\n }", "public boolean isProvisioningEnabled() {\r\n return GrouperProvisioningSettings.provisioningInUiEnabled();\r\n }", "public FluidRelayServerProperties withProvisioningState(ProvisioningState provisioningState) {\n this.provisioningState = provisioningState;\n return this;\n }", "@java.lang.Override\n public com.google.cloud.networkmanagement.v1beta1.Step.State getState() {\n com.google.cloud.networkmanagement.v1beta1.Step.State result =\n com.google.cloud.networkmanagement.v1beta1.Step.State.forNumber(state_);\n return result == null\n ? com.google.cloud.networkmanagement.v1beta1.Step.State.UNRECOGNIZED\n : result;\n }", "@java.lang.Override\n public com.google.cloud.networkmanagement.v1beta1.Step.State getState() {\n com.google.cloud.networkmanagement.v1beta1.Step.State result =\n com.google.cloud.networkmanagement.v1beta1.Step.State.forNumber(state_);\n return result == null\n ? com.google.cloud.networkmanagement.v1beta1.Step.State.UNRECOGNIZED\n : result;\n }", "public String getStatus() {\n return getProperty(Property.STATUS);\n }", "public String status() {\n return getString(FhirPropertyNames.PROPERTY_STATUS);\n }", "public String status() {\n return getString(FhirPropertyNames.PROPERTY_STATUS);\n }", "public String status() {\n return getString(FhirPropertyNames.PROPERTY_STATUS);\n }", "public String status() {\n return getString(FhirPropertyNames.PROPERTY_STATUS);\n }", "public String status() {\n return this.innerProperties() == null ? null : this.innerProperties().status();\n }", "public com.polytech.spik.protocol.SpikMessages.Status getStatus() {\n return status_;\n }", "public com.polytech.spik.protocol.SpikMessages.Status getStatus() {\n return status_;\n }", "public Byte getPromotedStatus() {\n return promotedStatus;\n }", "public com.polytech.spik.protocol.SpikMessages.Status getStatus() {\n return status_;\n }", "public com.polytech.spik.protocol.SpikMessages.Status getStatus() {\n return status_;\n }", "public String getState() {\n return theOperationState;\n }", "public io.opencannabis.schema.commerce.Payments.PaymentStatus getStatus() {\n @SuppressWarnings(\"deprecation\")\n io.opencannabis.schema.commerce.Payments.PaymentStatus result = io.opencannabis.schema.commerce.Payments.PaymentStatus.valueOf(status_);\n return result == null ? io.opencannabis.schema.commerce.Payments.PaymentStatus.UNRECOGNIZED : result;\n }", "public VpnState getVpnState() {\n return vpnState;\n }", "public Response status() {\n return getStates();\n }", "public io.opencannabis.schema.commerce.Payments.PaymentStatus getStatus() {\n @SuppressWarnings(\"deprecation\")\n io.opencannabis.schema.commerce.Payments.PaymentStatus result = io.opencannabis.schema.commerce.Payments.PaymentStatus.valueOf(status_);\n return result == null ? io.opencannabis.schema.commerce.Payments.PaymentStatus.UNRECOGNIZED : result;\n }", "public java.lang.Object getStatus() {\n return status;\n }", "public boolean getStatus() {\n return status_;\n }", "public boolean getStatus() {\n return status_;\n }", "public boolean getStatus() {\n return status_;\n }", "public String getStatus() {\n return mBundle.getString(KEY_STATUS);\n }", "public String getInspectionResultState() {\n return inspectionResultState;\n }", "public boolean getStatus() {\n return status_;\n }", "public boolean getStatus() {\n return status_;\n }", "public boolean getStatus() {\n return status_;\n }", "cosmos.gov.v1beta1.ProposalStatus getStatus();", "public States getPilotState() {\n\t\treturn state;\n\t}", "public java.lang.String getStatus() {\n return status;\n }", "public java.lang.String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public List<ProvisioningMembership> getProvisioningMemberships() {\n return provisioningMemberships;\n }", "public LoadBalancingRulePropertiesFormat withProvisioningState(String provisioningState) {\n this.provisioningState = provisioningState;\n return this;\n }", "public boolean getStatus()\n\t{\n\t\treturn getBooleanIOValue(\"Status\", false);\n\t}", "public java.lang.String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getPushRequestStatus() {\n\t\treturn this.pushRequestStatus;\n\t}", "public java.lang.String getStatus() {\n\t\treturn status;\n\t}", "public java.lang.String getStatus() {\n\t\treturn status;\n\t}" ]
[ "0.8188372", "0.80257004", "0.80257004", "0.80257004", "0.80257004", "0.80257004", "0.8002567", "0.79847515", "0.7904493", "0.7886639", "0.7885179", "0.730187", "0.72671914", "0.6948792", "0.68413544", "0.68230236", "0.68230236", "0.68230236", "0.64323294", "0.6357123", "0.6025828", "0.59836286", "0.58187205", "0.5797752", "0.5770971", "0.5750112", "0.5676049", "0.5574103", "0.5555776", "0.5539245", "0.5521429", "0.54903156", "0.54903156", "0.54894626", "0.54894626", "0.54552436", "0.5428888", "0.5428888", "0.5427412", "0.54047334", "0.54047334", "0.53979045", "0.5370941", "0.5366978", "0.5364515", "0.5356781", "0.53394073", "0.5334833", "0.5334833", "0.5334833", "0.5330782", "0.5315103", "0.53001875", "0.53001875", "0.53001875", "0.52878696", "0.5285775", "0.52829343", "0.52829343", "0.52790314", "0.52787596", "0.52662826", "0.52640676", "0.525404", "0.52502173", "0.52502173", "0.52502173", "0.52502173", "0.52502173", "0.52502173", "0.52502173", "0.52502173", "0.52502173", "0.52502173", "0.52502173", "0.52502173", "0.52502173", "0.52502173", "0.52502173", "0.52502173", "0.52502173", "0.52502173", "0.52502173", "0.52502173", "0.52502173", "0.52502173", "0.52502173", "0.52502173", "0.52502173", "0.52502173", "0.52502173", "0.52502173", "0.52502173", "0.52479655", "0.5244453", "0.5244453" ]
0.8140541
5
Get the typeName property: The application type name as defined in the application manifest.
public String typeName() { return this.typeName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getAppType();", "public String getTypeName() {\r\n\t\treturn typeName;\r\n\t}", "public String getTypeName() {\n return typeName;\n }", "public String getTypeName() {\n return typeName;\n }", "public String getTypeName() {\n return typeName;\n }", "public String getTypeName() {\n return typeName;\n }", "public java.lang.String getAppType() {\n java.lang.Object ref = appType_;\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 appType_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getAppType() {\n java.lang.Object ref = appType_;\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 appType_ = s;\n return s;\n }\n }", "public String getTypeName() {\n \treturn typeName;\n }", "public String typeName() {\n return typeName;\n }", "public String getTypeName() {\n\t\treturn this.typeName;\n\t}", "public String getTypeName() {\n return type.name();\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getTypeName();", "public String getTypeName() {\n return this.typeName;\n }", "public String getTypeName()\n {\n return this.typeName;\n }", "@Basic @Immutable\n\t public String getTypeName() {\n\t\t return typeName;\n\t }", "public String getTypeName();", "public String getTypeName();", "public String getTypeName() {\n Class type = getType();\n if (type == null)\n return null;\n return type.getName();\n }", "String typeName();", "public java.lang.String getTypeName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPENAME$6);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public String getName() {\n return type.toString();\n }", "public String getTypeName() {\n\t\t\treturn this.TypeName;\n\t\t}", "public String getTypeName() {\n\t\t\treturn this.TypeName;\n\t\t}", "public final String gettypeName() {\n\t\treturn this.typeNameField;\n\t}", "@Override\n\tpublic final String getName() {\n\t\treturn getClass().getSimpleName().replaceAll(\"Application$\", \"\").toLowerCase();\n\t}", "private String getType( )\n\t{\n\t\treturn this.getModuleName( ) + \"$\" + this.getSimpleName( ) + \"$\" + this.getSystem( );\n\t}", "public String getTypeName() {\n\t\t\t\tif (_type.equals(TYPE_OBJECT)) {\n\t\t\t\t\treturn StringUtils.capitalize(_name);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn _type;\n\t\t\t}", "@Override\n\tpublic java.lang.String getAppType() {\n\t\treturn _scienceApp.getAppType();\n\t}", "public abstract String getTypeName();", "public String getTypeName()\n {\n return getArgumentTypeName(type);\n }", "public com.google.protobuf.ByteString\n getAppTypeBytes() {\n java.lang.Object ref = appType_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n appType_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getAppTypeBytes() {\n java.lang.Object ref = appType_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n appType_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getDisplayName() {\n return typeElement.getQualifiedName().toString();\n }", "public String getTypeName() {\r\n return typeId.getSQLTypeName();\r\n }", "public org.apache.xmlbeans.XmlString xgetTypeName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(TYPENAME$6);\n return target;\n }\n }", "@Override\r\n\tpublic String getTypeName() {\n\t\treturn null;\r\n\t}", "public String getMainType() {\n\t\treturn Material.getMaterial(this.properties.MAIN_TYPE).toString().replace(\"_\", \" \").toLowerCase();\n\t}", "String getTypeAsString();", "private static String getCorrectTypeName(final String typeName)\n {\n String result = \"\";\n\n // Type is an XSD built-in type\n if (mapping.containsKey(typeName))\n {\n result = mapping.get(typeName);\n }\n // Type is a custom type\n else\n {\n result = typeName;\n }\n\n return result;\n }", "public List<QName> getTypeName() {\n if (typeName == null) {\n typeName = new ArrayList<QName>();\n }\n return this.typeName;\n }", "@Override\n public String getName() {\n return type.getName();\n }", "@Override\n\tpublic java.lang.String getTypeName() {\n\t\treturn _permissionType.getTypeName();\n\t}", "String componentTypeName();", "public String getTypeName(String type) {\n return m_importsTracker.getName(type);\n }", "public String getModel_type_name() {\r\n\t\treturn model_type_name;\r\n\t}", "public Integer getNametype() {\r\n return nametype;\r\n }", "java.lang.String getAppName();", "java.lang.String getAppName();", "java.lang.String getAppName();", "public String getRuntimeName() {\r\n\t\tfinal StringBuffer runtimeName = new StringBuffer();\r\n\t\tfinal String name = this.getName();\r\n\t\tfinal Package packagee = this.getPackage();\r\n\t\tfinal String packageName = null == packagee ? null : packagee.getName();\r\n\t\tString nameLessPackageName = name;\r\n\r\n\t\tif (false == Tester.isNullOrEmpty(packageName)) {\r\n\t\t\truntimeName.append(packageName);\r\n\t\t\truntimeName.append('.');\r\n\r\n\t\t\tnameLessPackageName = name.substring(packageName.length() + 1);\r\n\t\t}\r\n\r\n\t\tnameLessPackageName = nameLessPackageName.replace('.', '$');\r\n\t\truntimeName.append(nameLessPackageName);\r\n\r\n\t\treturn runtimeName.toString();\r\n\t}", "com.google.protobuf.ByteString\n getAppTypeBytes();", "String getIntegApplicationName();", "public String getpermitTypeName() {\n return (String) getAttributeInternal(PERMITTYPENAME);\n }", "public final String getAppName( )\n\t{\n\t\treturn this.data.getString( \"applicationName\" );\n\t}", "public String getType() {\n\t\treturn TYPE_NAME;\n\t}", "public java.lang.String getAppName() {\n java.lang.Object ref = appName_;\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 appName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getAppName() {\n java.lang.Object ref = appName_;\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 appName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "java.lang.String getClassName();", "public String getClazzName();", "public String getType() {\n // or only getDeclaringType().getName()\n // return getDeclaringType().getFullName();\n if(getNamespace() != null && getNamespace().length() > 0) {\n // when using getDeclareType().getName() some objects return lowercase\n // names, hence we capitalize (using getDeclaringType().getFullName() does\n // not exhibit this behavior but has the issue that it might return names\n // that include generic types and their mappings, which cause issues in\n // the code elements that use this method\n return getNamespace()+\".\"+Utilities.capitalize(getDeclaringType().getName());\n }\n return Utilities.capitalize(getDeclaringType().getName());\n }", "public String ofType() {\n\t\t return name;\n\t}", "public java.lang.String getAppName() {\n java.lang.Object ref = appName_;\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 appName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getName() {\n return Utility.getInstance().getPackageName();\n }", "public java.lang.String getAppName() {\n java.lang.Object ref = appName_;\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 appName_ = s;\n return s;\n }\n }", "private String getTypeFromExtension()\n {\n String filename = getFileName();\n String ext = \"\";\n\n if (filename != null && filename.length() > 0)\n {\n int index = filename.lastIndexOf('.');\n if (index >= 0)\n {\n ext = filename.substring(index + 1);\n }\n }\n\n return ext;\n }", "public String getIdTypeName() {\n\t\treturn this.getIdType(this.currentClass()).getSimpleName();\n\t}", "public java.lang.String getAppName() {\n java.lang.Object ref = appName_;\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 appName_ = s;\n return s;\n }\n }", "public java.lang.String getAppName() {\n java.lang.Object ref = appName_;\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 appName_ = s;\n return s;\n }\n }", "public String getType() {\n return (String) getObject(\"type\");\n }", "public String getQualifiedName()\n {\n return name + \".\" + type;\n }", "public String getFieldTypeName() {\n int index = getFieldIndex();\n if (index == 0)\n return null;\n\n ComplexEntry entry = (ComplexEntry) getPool().getEntry(index);\n String name = getProject().getNameCache().getExternalForm(entry.\n getNameAndTypeEntry().getDescriptorEntry().getValue(), false);\n if (name.length() == 0)\n return null;\n return name;\n }", "private String getObjectNameFromLauncherUrl(String launchUrl) {\n if (launchUrl != null) {\n String[] domainParts = launchUrl.split(\"\\\\.\");\n return domainParts[0].replace(Constants.LAUNCHER_URL_PREFIX, Constants.BPG_APP_TYPE_LAUNCHER);\n }\n\n throw new IllegalArgumentException(\"Null launcher URL cannot be processed.\");\n }", "BundleType getType();", "public final String getType() {\n return this.getClass().getName();\n }", "private String getTypeName(int idx){\r\n String[] types = {\"C-SVC\",\"nu-SVC\",\"one-class SVM\",\"epsilon-SVR\",\"nu-SVR\"};\r\n return types[idx];\r\n }", "public String getTypeString() {\r\n return Prediction.getTypeString(type);\r\n }", "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 String getPackageName() {\n JavaType.FullyQualified fq = TypeUtils.asFullyQualified(qualid.getType());\n if (fq != null) {\n return fq.getPackageName();\n }\n String typeName = getTypeName();\n int lastDot = typeName.lastIndexOf('.');\n return lastDot < 0 ? \"\" : typeName.substring(0, lastDot);\n }", "public String getEventTypeName()\n {\n return eventTypeName;\n }", "public static String getType() {\n\t\treturn type;\n\t}", "public String getType () {\n // Will resolve to specific subclass\n return this.getClass().getSimpleName();\n }", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();" ]
[ "0.75269693", "0.73484915", "0.7328281", "0.7328281", "0.7328281", "0.7328281", "0.73263997", "0.7310738", "0.7222941", "0.72143555", "0.7201739", "0.72001463", "0.7183043", "0.7170026", "0.7117233", "0.7111158", "0.7087769", "0.7087769", "0.70563924", "0.70513666", "0.6950992", "0.69484884", "0.6941381", "0.6941381", "0.69289905", "0.6916156", "0.68579566", "0.6856527", "0.6717257", "0.6666749", "0.6593272", "0.65858656", "0.656748", "0.6522518", "0.6439923", "0.64304274", "0.63885427", "0.6347879", "0.6337323", "0.6323342", "0.6316871", "0.6283309", "0.6280929", "0.6266389", "0.6246635", "0.62420714", "0.6205072", "0.6196355", "0.6196355", "0.6196355", "0.61871797", "0.6170843", "0.6164783", "0.6164283", "0.6157982", "0.6155752", "0.6149848", "0.6149848", "0.61498225", "0.6144764", "0.613329", "0.6126605", "0.612608", "0.6121547", "0.61164045", "0.6112766", "0.6109145", "0.60808575", "0.60808575", "0.6079812", "0.6069231", "0.6061616", "0.6041563", "0.6041253", "0.60217464", "0.60209334", "0.6019731", "0.6018803", "0.6018803", "0.6018803", "0.6018803", "0.6018803", "0.6018803", "0.6018803", "0.6018803", "0.6018803", "0.6018803", "0.6018803", "0.6018803", "0.6018803", "0.5998786", "0.5984891", "0.5984655", "0.5953794", "0.59469324", "0.59469324", "0.59469324", "0.59469324", "0.59469324", "0.59469324" ]
0.71749014
13
Set the typeName property: The application type name as defined in the application manifest.
public ApplicationResourceProperties withTypeName(String typeName) { this.typeName = typeName; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTypeName(java.lang.String typeName)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPENAME$6);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TYPENAME$6);\n }\n target.setStringValue(typeName);\n }\n }", "public void setTypeName(String typeName) {\r\n\t\tthis.typeName = typeName == null ? null : typeName.trim();\r\n\t}", "public void setTypeName(String typeName) {\n this.typeName = typeName == null ? null : typeName.trim();\n }", "@Override\n\tpublic void setTypeName(java.lang.String typeName) {\n\t\t_permissionType.setTypeName(typeName);\n\t}", "public void setTypeName(String typeName) {\n this.typeName = typeName;\n }", "public void setTypeName(String typeName) {\n this.typeName = typeName;\n }", "public void setTypeName(String typeName) {\n this.typeName = typeName;\n }", "public void setTypeName(java.lang.String value);", "public void xsetTypeName(org.apache.xmlbeans.XmlString typeName)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(TYPENAME$6);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(TYPENAME$6);\n }\n target.set(typeName);\n }\n }", "public final void settypeName(String value) {\n\t\tthis.typeNameField = value;\n\t}", "public void setpermitTypeName(String value) {\n setAttributeInternal(PERMITTYPENAME, value);\n }", "public String getTypeName() {\r\n\t\treturn typeName;\r\n\t}", "public String getTypeName() {\n return typeName;\n }", "public String getTypeName() {\n return typeName;\n }", "public String getTypeName() {\n return typeName;\n }", "public String getTypeName() {\n return typeName;\n }", "public String getTypeName() {\n \treturn typeName;\n }", "public String typeName() {\n return typeName;\n }", "@Override\n\tpublic void setAppType(java.lang.String appType) {\n\t\t_scienceApp.setAppType(appType);\n\t}", "public void setNametype(Integer nametype) {\r\n this.nametype = nametype;\r\n }", "@Basic @Immutable\n\t public String getTypeName() {\n\t\t return typeName;\n\t }", "public String getTypeName() {\n return this.typeName;\n }", "@Override\n\tpublic void setToolName(String typeName) throws PropertyVetoException {\n\t\tname = typeName;\n\t}", "@Override\n\tpublic String updateTypeName(int typeid, String typename) {\n\t\treturn ftb.updateTypeName(typeid, typename);\n\t}", "public String getTypeName() {\n\t\treturn this.typeName;\n\t}", "@Override\n\tpublic void setRunType(java.lang.String runType) {\n\t\t_scienceApp.setRunType(runType);\n\t}", "public String typeName() {\n return this.typeName;\n }", "public String getTypeName()\n {\n return this.typeName;\n }", "public Builder setAppType(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n appType_ = value;\n onChanged();\n return this;\n }", "private static String getCorrectTypeName(final String typeName)\n {\n String result = \"\";\n\n // Type is an XSD built-in type\n if (mapping.containsKey(typeName))\n {\n result = mapping.get(typeName);\n }\n // Type is a custom type\n else\n {\n result = typeName;\n }\n\n return result;\n }", "public void setType(String name){\n\t\ttype = name;\n\t}", "String typeName();", "public final void entryRuleTypeName() throws RecognitionException {\r\n try {\r\n // InternalGo.g:380:1: ( ruleTypeName EOF )\r\n // InternalGo.g:381:1: ruleTypeName EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getTypeNameRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n ruleTypeName();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getTypeNameRule()); \r\n }\r\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "void setType(java.lang.String type);", "public String getTypeName();", "public String getTypeName();", "public String getTypeName() {\n\t\t\treturn this.TypeName;\n\t\t}", "public String getTypeName() {\n\t\t\treturn this.TypeName;\n\t\t}", "public void setClazzName(String clazz);", "public final String gettypeName() {\n\t\treturn this.typeNameField;\n\t}", "public static void setType(String type) {\n Globals.type = type;\n setProperty(\"type\", type);\n }", "public void setRegTypeName(String regTypeName) {\r\n\t\tthis.regTypeName = regTypeName;\r\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getTypeName();", "public final native void setObjectType(String type) /*-{\n\t\tthis.beanName = type;\n\t}-*/;", "public final native void setObjectType(String type) /*-{\n\t\t\tthis.beanName = type;\n\t\t}-*/;", "public String getTypeName() {\n return type.name();\n }", "@Override\n\tpublic void setName(java.lang.String name) {\n\t\t_scienceApp.setName(name);\n\t}", "public void set_type(String t)\n {\n type =t;\n }", "void setAttributeTypeDisplayName(com.microsoft.schemas.xrm._2013.metadata.AttributeTypeDisplayName attributeTypeDisplayName);", "@Override\r\n\tpublic String getTypeName() {\n\t\treturn null;\r\n\t}", "public void setName(String s) {\n\t\tclassName = s;\n\t}", "java.lang.String getAppType();", "void setClassType(String classType);", "public String getTypeName() {\n\t\t\t\tif (_type.equals(TYPE_OBJECT)) {\n\t\t\t\t\treturn StringUtils.capitalize(_name);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn _type;\n\t\t\t}", "public void setFileType(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), FILETYPE, value);\r\n\t}", "void setApplicationName(String appName);", "public abstract String getTypeName();", "@Nonnull\n String formatTypeName(@Nonnull String unformattedTypeName);", "public void setProductTypeName(String productTypeName) {\r\n this.productTypeName = productTypeName;\r\n }", "public void setClassname(String classname) {\n this.classname = classname;\n }", "final public void setType(String type)\n {\n setProperty(TYPE_KEY, (type));\n }", "public void setNewName(String newName) \n {\n this.newName = getFileName() + \".\" + getType();\n }", "public void setClassName(String className) { this.className=className; }", "public java.lang.String getAppType() {\n java.lang.Object ref = appType_;\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 appType_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "private String getType( )\n\t{\n\t\treturn this.getModuleName( ) + \"$\" + this.getSimpleName( ) + \"$\" + this.getSystem( );\n\t}", "public void setResourceClassName(String value)\r\n {\r\n getSemanticObject().setProperty(swb_resourceClassName, value);\r\n }", "public java.lang.String getTypeName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPENAME$6);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public java.lang.String getAppType() {\n java.lang.Object ref = appType_;\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 appType_ = s;\n return s;\n }\n }", "public void setType(String value) {\n this.type = value;\n }", "private LocalrmnameType(int type, java.lang.String value) {\n super();\n this.type = type;\n this.stringValue = value;\n }", "protected String getLabel(String typeName) {\r\n \t\t\ttry {\r\n \t\t\t\treturn Reqif10EditPlugin.INSTANCE.getString(\"_UI_\" + typeName + \"_type\");\r\n \t\t\t}\r\n \t\t\tcatch(MissingResourceException mre) {\r\n \t\t\t\tReqif10EditorPlugin.INSTANCE.log(mre);\r\n \t\t\t}\r\n \t\t\treturn typeName;\r\n \t\t}", "public void setPlatformType(PlatformType name);", "public void setClassname(String classname) {\n\t\tthis.classname = classname;\n\t}", "public void setCardTypeName(java.lang.String cardTypeName) {\r\n this.cardTypeName = cardTypeName;\r\n }", "public void setType(String type);", "public void setType(String type);", "public final void typeName() throws RecognitionException {\n int typeName_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"typeName\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(432, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 52) ) { return ; }\n // Java.g:433:5: ( qualifiedName )\n dbg.enterAlt(1);\n\n // Java.g:433:9: qualifiedName\n {\n dbg.location(433,9);\n pushFollow(FOLLOW_qualifiedName_in_typeName2039);\n qualifiedName();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 52, typeName_StartIndex); }\n }\n dbg.location(434, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"typeName\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }", "public void setType(String type);", "public static SettingType getTypeByName(String typeName) {\n\t\tfor (SettingType type : SettingType.values()) {\n\t\t\tif (type.getShortName().equals(typeName)) {\n\t\t\t\treturn type;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "@Override\n public String getName() {\n return type.getName();\n }", "public boolean containsTypeName(final String typeName) {\n\t\treturn this.defaults.containsValue(typeName);\n\t}", "public final void rule__LiteralType__TypenameAssignment_5() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:18620:1: ( ( ruleTypeName ) )\r\n // InternalGo.g:18621:2: ( ruleTypeName )\r\n {\r\n // InternalGo.g:18621:2: ( ruleTypeName )\r\n // InternalGo.g:18622:3: ruleTypeName\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getLiteralTypeAccess().getTypenameTypeNameParserRuleCall_5_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleTypeName();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getLiteralTypeAccess().getTypenameTypeNameParserRuleCall_5_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "private static final String getArrayTypeName(String typeName) {\n final String arrayTypeName = builtInArrayComponentName2ArrayTypeName.get(typeName);\n return (null == arrayTypeName) ? typeName + ARRAY_TYPE_SUFFIX : arrayTypeName;\n }", "@Override\r\n\t\tpublic void setClassName(String className)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "public Builder setType(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n type_ = value;\n onChanged();\n return this;\n }", "public void setType(java.lang.String newType) {\n\ttype = newType;\n}", "@Override\n\tpublic final String getName() {\n\t\treturn getClass().getSimpleName().replaceAll(\"Application$\", \"\").toLowerCase();\n\t}", "public void setClassName(java.lang.String className) {\n this._className = className;\n }", "public Builder setType(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n type_ = value;\n onChanged();\n return this;\n }", "public Builder setType(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n type_ = value;\n onChanged();\n return this;\n }", "public Builder setType(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n type_ = value;\n onChanged();\n return this;\n }", "@Override\n \tprotected void setApplicationName(String applicationName)\n \t{\n \t\tsuper.setApplicationName(applicationName);\n \n \t\tPropertiesAndDirectories.setApplicationName(applicationName);\n \t}", "public void setPersonType(String value) {\r\n setAttributeInternal(PERSONTYPE, value);\r\n }", "public void setType(java.lang.String type) {\n this.type = type;\n }", "public void setType(java.lang.String type) {\n this.type = type;\n }", "public final void setType(ApplicationFormItemType type){\n\t\tsetType(String.valueOf(type));\n\t}", "private String getNativeNameForJavaType(TypeName typeName) {\n\n if (isNumber(typeName)) {\n return \"Number\";\n } else if (isBoolean(typeName)) {\n return \"Boolean\";\n } else if (isString(typeName)) {\n return \"String\";\n } else if (isArray(typeName)) {\n return \"Array\";\n } else {\n return \"Object\";\n }\n }", "public static void set_Type(String s, String v) throws RuntimeException\n {\n read_if_needed_();\n UmlCom.send_cmd(CmdFamily.javaSettingsCmd, JavaSettingsCmd._setJavaTypeCmd, s, v);\n UmlCom.check();\n \n UmlBuiltin b = (UmlBuiltin) UmlSettings._map_builtins.get(s);\n \n if (b == null)\n b = UmlSettings.add_type(s);\n b.java = v;\n }", "public void setType (String typ) {\n type = typ;\n }", "protected void setTypeId(String typeId) {\n\t\tcontext.getElement().setAttribute(\"typeId\", \"org.csstudio.opibuilder.widgets.\" + typeId);\n\t}" ]
[ "0.76152194", "0.75348395", "0.74868894", "0.7484997", "0.7414786", "0.7414786", "0.7414786", "0.7400675", "0.73479897", "0.6963613", "0.68334734", "0.6556485", "0.6503933", "0.6503933", "0.6503933", "0.6503933", "0.64307004", "0.6353302", "0.6322109", "0.626998", "0.62401396", "0.61726135", "0.6143445", "0.61379534", "0.6134966", "0.61020565", "0.6099491", "0.60211885", "0.6007517", "0.59845376", "0.5878624", "0.5862534", "0.5843403", "0.5808265", "0.5803287", "0.5803287", "0.57837903", "0.57837903", "0.5766745", "0.5755557", "0.5718006", "0.5682029", "0.5670853", "0.5650383", "0.5649272", "0.5593398", "0.55929625", "0.55925775", "0.5590694", "0.5580355", "0.5572788", "0.55689836", "0.55582136", "0.55446875", "0.5520412", "0.55132973", "0.54900944", "0.5488589", "0.5451106", "0.5433891", "0.5423353", "0.5412076", "0.5406021", "0.53997254", "0.5375183", "0.5373639", "0.53727776", "0.5365215", "0.534631", "0.53357005", "0.53354585", "0.5334358", "0.5334123", "0.53133315", "0.529981", "0.529981", "0.529981", "0.529981", "0.52951604", "0.528914", "0.5282201", "0.5280405", "0.52792096", "0.52763003", "0.5273866", "0.5272814", "0.52595377", "0.5248541", "0.5242903", "0.5242903", "0.5242903", "0.5239776", "0.5227301", "0.5224437", "0.5224437", "0.5219106", "0.5215094", "0.52070254", "0.52068776", "0.52062273" ]
0.6221547
21
Intent intent = new Intent(SplashScreen.this, Dashboard_main.class); finishAffinity(); startActivity(intent); finish();
@Override public void run() { checkSession(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void run() {\n SplashScreen.this.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n startActivity(new Intent(SplashScreen.this,MainActivity.class));\n finish();\n\n }\n });\n }", "@Override\r\n public void run() {\n Intent i = new Intent(SplashScreen.this, MainActivity.class);\r\n startActivity(i);\r\n finish();\r\n }", "@Override\n public void run() {\n Intent i = new Intent(SplashScreenActivity.this, MainActivity.class);\n startActivity(i);\n finish();\n }", "@Override\n public void run() {\n Intent i = new Intent(Splash.this, MainActivity.class);\n startActivity(i);\n finish();\n }", "@Override\n public void run() {\n\n Intent starthome = new Intent(SplashScreenActivity.this, WelcomeActivity.class);\n starthome.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(starthome);\n\n finish();\n }", "@Override\n public void run() {\n Intent intent = new Intent(SplashScreenActivity.this, MainActivity.class);\n startActivity(intent);\n finish();\n }", "@Override\n public void run() {\n Intent intent = new Intent(SplashActivity.this, MainActivity.class);\n startActivity(intent);\n finish();\n }", "@Override\n public void run() {\n Intent mainIntent = new Intent(SplashActivity.this, MainActivity.class);\n startActivity(mainIntent);\n finish();\n }", "@Override\n public void run() {\n startActivity(new Intent(SplashActivity.this, MainActivity3.class));\n //Close the current welcome page after the jump\n SplashActivity.this.finish();\n }", "@Override\n public void run() {\n Intent i = new Intent(activity_splash.this, login_activity.class);\n startActivity(i);\n finish();\n }", "public void run() {\n Intent mainIntent = new Intent(SplashActivity.this, MainActivity.class);\n startActivity(mainIntent);\n finish();\n }", "@Override\r\n\t\t public void run() {\n\t\t Intent i = new Intent(SplashScreen.this, MainMenuActivity.class);\r\n\t\t startActivity(i);\r\n\t\t \r\n\t\t //Menyelesaikan Splashscreen\r\n\t\t finish();\r\n\t\t }", "@Override\n public void run() {\n Intent mainIntent = new Intent(SplashActivity.this, LoginActivity.class);\n startActivity(mainIntent);\n finish();\n\n }", "@Override\n public void run() {\n Intent i = new Intent(ActivitySplash.this, ActivityIntro.class);\n startActivity(i);\n\n // close this activity\n finish();\n }", "@Override\n public void run() {\n Intent mainIntent = new Intent().setClass(\n SplashScreenActivity.this, MainActivity.class);\n startActivity(mainIntent);\n \n // Close the activity so the user won't able to go back this\n // activity pressing Back button\n finish();\n }", "@Override\r\n public void run() {\r\n Intent i = new Intent(SplashScreen.this, TelaLogin.class);\r\n startActivity(i);\r\n finish();\r\n }", "@Override\n public void run() {\n Intent intent = new Intent(SplashScreen.this, Welcome.class);\n startActivity(intent);\n finish();\n }", "@Override\n public void run() \n {\n \n finish();\n \n if (!mIsBackButtonPressed) \n {\n // start the home screen if the back button wasn't pressed already \n Intent startApp = new Intent(SplashActivity.this, LandingActivity.class);\n SplashActivity.this.startActivity(startApp);\n }\n \n }", "@Override\n public void run() {\n Intent splashScreen=new Intent(SplashScreen.this,Donor.class);\n startActivity(splashScreen);\n finish();\n }", "@Override\n public void run() {\n // This method will be executed once the timer is over\n // Start your app main activity\n Intent i = new Intent(SplashScreen.this, LoginScreen.class);\n i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(i);\n\n // close this activity\n finish();\n }", "@Override\n public void run() {\n\n\n\n if (login_user){\n\n startActivity(new Intent(SplashActivity.this,HomeActivity.class));\n finish();\n\n } else if (login_agent){\n startActivity(new Intent(SplashActivity.this,AgentDashboardActivity.class));\n finish();\n }else {\n startActivity(new Intent(SplashActivity.this,LangActivity.class));\n finish();\n\n }\n\n }", "@Override\n public void run() {\n // This method will be executed once the timer is over\n // Start your app main activity\n Intent i = new Intent(SplashScreen.this, MainActivity.class);\n startActivity(i);\n\n // close this activity\n finish();\n }", "@Override\n public void run(){\n Intent homeIntent = new Intent(MainActivity.this,login_page.class);//splashes to the login page.\n startActivity(homeIntent);\n finish();\n }", "@Override\n public void run() {\n Intent mainIntent = new Intent(LaunchScreenActivity.this,MainActivity.class);\n LaunchScreenActivity.this.startActivity(mainIntent);\n LaunchScreenActivity.this.finish();\n }", "void gotoMainIntent() {\r\n // Intenting to start the activity \"main\".\r\n Intent mainIntent = new Intent(this, Main.class);\r\n this.startActivity(mainIntent);\r\n this.finish(); // Splash screen is done now... Needed, otherwise when closing the main activity will result\r\n // in coming back to the splashscreen.\r\n }", "@Override\n public void run() {\n Intent mainIntent = new Intent(StartSplash.this, SplashActivity.class);\n StartSplash.this.startActivity(mainIntent);\n StartSplash.this.finish();\n }", "private void launchHomeScreen(){\n\n prefManager.setFirstTimeLaunch(false);\n Intent i = new Intent(SplashActivity.this, MainActivity.class);\n startActivity(i);\n }", "public void run() {\n Intent i = new Intent(activity_splash.this, MainActivity.class);\r\n startActivity(i); // menghubungkan activity splashscren ke xml\r\n //jeda selesai Splashscreen\r\n this.finish();\r\n }", "public void onBackPressed(){\n super.onBackPressed();\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {\n finishAffinity();\n\n }else {\n finish();\n }\n }", "@Override\n public void onCreate(Bundle icicle) {\n super.onCreate(icicle);\n setContentView(R.layout.activity_splash_screen);\n\n intent = new Intent(this, MainActivity.class);\n\n\n new Handler().postDelayed(new Runnable(){\n @Override\n public void run() {\n\n //Start MainActivity\n startActivity(intent);\n finish();\n }\n }, SPLASH_DISPLAY_LENGTH);\n }", "private void m3179g() {\n finish();\n startActivity(new Intent(this, WelcomeActivity.class));\n }", "@Override\n\t\t\t\t public void run() {\n\t\t\t\t \tsplashActivity.get().finish();\n\t\t\t\t \tsplashActivity = null;\n\t\t\t\t }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n //TODO: add any code you want to do while the splash screen is showing before the MainActivity is shown\n\n// try {\n// Thread.sleep(5000);\n// } catch (InterruptedException e) {\n// e.printStackTrace();\n// }\n\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n finish();\n }", "@Override\r\n public void run() {\n\r\n if(id_user.equals(\"default\")) {\r\n\r\n\r\n Intent home = new Intent(SplashScreen.this, Login.class);\r\n startActivity(home);\r\n finish();\r\n\r\n }else{\r\n Intent home = new Intent(SplashScreen.this, MainActivity.class);\r\n startActivity(home);\r\n finish();\r\n }\r\n\r\n }", "public void openActivity(){\n Intent intent = new Intent();\n if(bopenLogin)\n {\n intent = new Intent(Splashscreen.this, Login.class);\n }\n else\n {\n intent = new Intent(Splashscreen.this, MainActivity.class);\n }\n startActivity(intent);\n finish();\n }", "private void goToMainScreen() {\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n Intent mainIntent;\n\n MainActivity act = new MainActivity();\n Intent intent = new Intent(getApplication(), MainActivity.class);\n startActivity(intent);\n finish();\n }\n }, SPLASH_DISPLAY_LENGHT);\n }", "@Override\n public void onBackPressed() {\n finishAffinity();\n }", "public void exitApplication(View view){\n finishAffinity();\n }", "@Override\n public void run() {\n\n Intent home = new Intent(MainActivity.this, HomeActivity.class);\n\n startActivity(home);\n finish();\n }", "private void HomePage(){\n Intent intent = new Intent();\n intent.setClass(FaultActivity.this, MainActivity.class);\n startActivity(intent);\n FaultActivity.this.finish();\n }", "@Override\n public void run() {\n Intent mainIntent = new Intent(SplashscreenActivity.this, MainActivity.class);\n SplashscreenActivity.this.startActivity(mainIntent);\n //We call finish() function to prevent user to come back to splashScreen\n SplashscreenActivity.this.finish();\n }", "@Override\n public void run() {\n\n\n Intent i;\n\n if(sharedperference.getToken()==null || sharedperference.getToken()==\"\") {\n i = new Intent(SplashScreen.this, MainActivity.class);\n }\n else{\n i = new Intent(SplashScreen.this, MainActivity.class);\n\n }\n\n //i = new Intent(SplashScreen.this, LanuageSelection.class);\n\n\n startActivity(i);\n finish();\n\n }", "@Override\n public void run() {\n startActivity(i);\n SplashActivity.this.finish();\n }", "@Override\r\n public void run() {\r\n // This method will be executed once the timer is over\r\n // Start your app main activity\r\n Intent i = new Intent(SplashScreen.this, MainActivity.class);\r\n startActivity(i);\r\n\r\n // close this activity\r\n finish();\r\n }", "@Override\n public void onBackPressed() {\n Intent intent = new Intent(this, SplashActivity.class);\n startActivity(intent);\n }", "@Override\n public void run() {\n // This method will be executed once the timer is over\n // Start your app main activity\n if (flag == true) {\n Intent intent = new Intent(SplashActivity.this, DashBoard.class);\n finish();\n startActivity(intent);\n }\n else {\n Intent intent1 = new Intent(SplashActivity.this, LoginActivity.class);\n finish();\n startActivity(intent1);\n }\n\n\n // close this activity\n finish();\n }", "public void run(){\n\t\t\t\tif(!exit)\r\n\t\t\t\t{\r\n\t\t\t\tIntent mainIntent = new Intent(Splash.this,MainActivity.class);\r\n\t\t\t\tSplash.this.startActivity(mainIntent);\r\n\t\t\t\tSplash.this.finish();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// When the Splash is exiting the application\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t//android.os.Process.killProcess(android.os.Process.myPid());\r\n\t\t\t\tfinish();\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n public void run() {\n Intent intent = new Intent(SplashActivity.this, CidadeActivity.class);\n /* startactivity solicita uma intent para saber o que deve fazer */\n startActivity(intent);\n finish();\n }", "public void UpdateUI(){\n startActivity(new Intent(this,MainActivity.class));\n finish();\n }", "@Override\n public void run() {\n Intent i = new Intent(SplashActivity.this, SearchActivity.class);\n startActivity(i);\n finish();\n }", "@Override\n public void run() {\n Intent i = new Intent(getBaseContext(), HomeActivity.class);\n startActivity(i);\n\n finish();\n }", "public void goBackToSplash(View view) {\n startActivity(new Intent(view.getContext(), SplashScreenActivity.class));\n finish();\n }", "public void backtoMain()\n {\n Intent i=new Intent(this,MainActivity.class);\n startActivity(i);\n }", "public void onClick(DialogInterface dialog, int which) {\n Intent newIntent = new Intent(Settingsprofile.this, LoginActivity.class);\n finishAffinity();\n startActivity(newIntent);\n }", "private void goMainActivity() {\n Intent i = new Intent(this, MainActivity.class);\n startActivity(i);\n finish();\n }", "@Override\n public void run() {\n Intent mainIntent = new Intent(SplashActivity.this, RegisterActivity.class);\n startActivity(mainIntent);\n //finish zamyka nasza aplikace, jesli tego nie zrobimy dowktywnosci bedziemy mogli\n //wrocic\n finish();\n }", "public void exitActivity() {\n\n finish();\n\n }", "private void nextScreen() {\n mHandler.post(new Runnable() {\n @Override\n public void run() {\n Intent intent = new Intent(SplashScreenActivity.this, HomeActivity.class);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n //check draw over app permission\n if (!Settings.canDrawOverlays(SplashScreenActivity.this)) {\n intent = new Intent(SplashScreenActivity.this, DrawOverAppActivity.class);\n }\n }\n startActivity(intent);\n }\n });\n }", "@Override\n public void onBackPressed() {\n super.onBackPressed();\n finishAffinity();\n\n }", "@Override\n public void run() {\n Intent mainIntent = new Intent(Intro.this,MainActivity.class);\n startActivity(mainIntent);\n finish();\n }", "private void refreshScreen(){\n Intent thisIntent = getIntent();\n finish();\n startActivity(thisIntent);\n }", "@Override\n public void run() {\n Intent home=new Intent(home.this, MainActivity.class);\n startActivity(home);\n finish();\n\n }", "@Override\n public void doLogout() {\n\n\n Intent intent = new Intent(RestaurantMainActivity.this, WelcomeActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(intent);\n }", "@Override\n public void run() {\n\n if (isSignedUp && isLoggedIn) {\n Intent mainIntent = new Intent(Activity_Splash.this, Activity_HomePage.class);\n Activity_Splash.this.startActivity(mainIntent);\n }else{\n Intent mainIntent = new Intent(Activity_Splash.this, Activity_Login.class);\n Activity_Splash.this.startActivity(mainIntent);\n }\n Activity_Splash.this.finish();\n }", "@Override\n public void run() {\n Intent mainIntent = new Intent(Splash.this, ScoreScreen.class);\n Splash.this.startActivity(mainIntent);\n Splash.this.finish();\n }", "public void makegoaway(){\n if (!started_app){ // added to prevent running two copies when user clicks to skip\n // and when time runs out for splash\n Intent mainIntent = new Intent(SplashActivity.this,MainActivity.class);\n SplashActivity.this.startActivity(mainIntent);\n SplashActivity.this.finish();\n started_app=true;\n }\n }", "public void moveActivityToLogin() {\n Intent intent = new Intent(MainActivity.this, LoginActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n }", "public void exit() {\n Intent intent = new Intent(this, MainActivity.class);\n this.startActivity(intent);\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tstartActivity(new Intent(SplashActivity.this, LoginActivity.class));\n\t\t\t\t//redictToActivity(SplashActivity.this, MainActivity.class, null);\n\t\t\t\tfinish();\n\t\t\t}", "private void returnToMain() {\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }", "@Override\n public void onClick(View view){\n startActivity(new Intent(homePage.this, MainActivity.class));\n finish();\n\n }", "public void loadTryScreen() {\n Intent intent = new Intent(this, TryActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(intent);\n finish();\n System.exit(0);\n\n }", "private void takeUserToLoginScreenOnUnAuth() {\n Intent intent = new Intent(BaseActivity.this, LoginActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(intent);\n finish();\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_splash_screen);\n Intent intent = new Intent(getApplicationContext(),InitialSetupActivity.class);\n startActivity(intent);\n finish();\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.splash);\n Thread timerThread = new Thread() {\n public void run() {\n try {\n sleep(3000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n } finally {\n if (user != null) {\n redireccionar();\n }else{\n Intent intent = new Intent(SplashScreen.this, Login.class);\n startActivity(intent);\n }\n\n }\n }\n };\n timerThread.start();\n }", "public void onClick(View v) {\n finish();\n Intent i=new Intent(getApplicationContext(), MainActivity.class);\n startActivity(i);\n\n }", "@Override\r\n protected void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n setContentView(R.layout.activity_splash);\r\n\r\n new Handler().postDelayed(new Runnable(){\r\n @Override\r\n public void run() {\r\n\r\n //check whether user has already logged in\r\n SharedPreferences pref = getSharedPreferences(\"ActivityPREF\", Context.MODE_PRIVATE);\r\n\r\n //if user has logged in\r\n if (pref.getBoolean(\"activity_executed\", false)) {\r\n\r\n String bus_or_pas = pref.getString(\"bus_or_passenger\",\"bus\");\r\n\r\n switch (bus_or_pas){\r\n //if user has logged as a bus\r\n case(\"bus\"):{\r\n Intent intent = new Intent(SplashActivity.this, BusMapsActivity.class);\r\n startActivity(intent);\r\n finish();\r\n\r\n break;\r\n }\r\n\r\n //if user has logged as passenger\r\n case (\"passenger\"):{\r\n Intent intent = new Intent(SplashActivity.this, NavDrawerActivity.class);\r\n startActivity(intent);\r\n finish();\r\n\r\n break;\r\n }\r\n }\r\n\r\n //if user hasn't logged in\r\n } else {\r\n Intent intent = new Intent(SplashActivity.this, MainActivity.class);\r\n startActivity(intent);\r\n finish();\r\n }\r\n\r\n\r\n }\r\n },SPLASH_TIME_OUT);\r\n\r\n\r\n\r\n }", "@Override\n public void run() {\n Intent intent = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(intent);\n finish();\n }", "@Override\r\n public void run() {\n if (preferences.getBoolean(\"isMain\",false))\r\n {\r\n startActivity(new Intent(SplashScreen.this,MainActivity.class));\r\n finish();\r\n }else {\r\n editor.putBoolean(\"isMain\",true);\r\n editor.apply();\r\n\r\n TaskStackBuilder.create(SplashScreen.this)\r\n .addNextIntentWithParentStack(new Intent(SplashScreen.this,MainActivity.class))\r\n .addNextIntent(new Intent(SplashScreen.this,IntroActivity.class))\r\n .startActivities();\r\n }\r\n }", "@Override\n public void run() {\n if (session.isLoggedIn()) {\n Intent i = new Intent(Splash.this, MainActivity.class);\n startActivity(i);\n finish();\n }\n else if(!session.isLoggedIn()){\n Intent i = new Intent(Splash.this, RepRegistration.class);\n startActivity(i);\n finish();\n }\n }", "private void programShutdown(){\n\n am.finishAllActivity();\n activity .moveTaskToBack(true);\n activity .finish();\n android.os.Process.killProcess(android.os.Process.myPid());\n System.exit(0);\n\n\n }", "public void toHomescreen () {\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n overridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_right); //animation for transitioning back to the homescreen\n }", "@Override\n public void run() {\n\n Intent intent = new Intent(Launcher.this, Login.class);\n startActivity(intent);\n finish();\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n SplashScreenBuilder.getInstance(this)\n .setVideo(R.raw.splash_animation)\n .setImage(R.drawable.app_icon)\n .enableSkipOnTap(false)\n .show();\n\n Button restart_app = findViewById(R.id.restart_app);\n restart_app.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n // Restart app\n Intent i = getBaseContext().getPackageManager().getLaunchIntentForPackage(getBaseContext().getPackageName());\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(i);\n overridePendingTransition(0, 0);\n finish();\n }\n });\n }", "@Override\r\n public void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n setContentView(R.layout.activity_splash_screen);\r\n StartAnimations();\r\n\r\n new Handler().postDelayed(new Runnable() {\r\n\r\n\r\n @Override\r\n public void run() {\r\n // This method will be executed once the timer is over\r\n Intent i = new Intent(SplashScreen.this, MainActivity.class);\r\n startActivity(i);\r\n finish();\r\n }\r\n }, 5000);\r\n }", "@Override\n public void onClick(View arg0) {\n Intent login = new Intent(getApplicationContext(), LoginActivity.class);\n login.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(login);\n finish();\n }", "public void loadScreen() {\n Intent intent = new Intent(this, DataCapture.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(intent);\n finish();\n System.exit(0);\n\n }", "@Override\n public void run() {\n\n Intent intent = new Intent(getApplicationContext(), FirstActivity.class);\n startActivity(intent);\n overridePendingTransition(R.anim.enter_from_right, R.anim.exit_out_left);\n\n\n finish();\n\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(getApplicationContext(), LoginActivity.class);\n startActivity(intent);\n finish();\n //overridePendingTransition(R.anim.push_left_in, R.anim.push_left_out);\n }", "public void logOut(){\n Intent intent=new Intent( getApplicationContext(), Login.class );\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity( intent );\n progressDialog.dismiss();\n finish();\n }", "private void onEndGame() {\n Intent intent1 = new Intent(this, MainActivity.class);\n startActivity(intent1);\n finish();\n }", "private void activate_previous_activity(){\n\n Intent intent = new Intent(this,MainActivity.class);\n startActivity(intent);\n\n }", "private void goLoginSignupActivity() {\n Intent intent = new Intent(this, LoginSignupActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_splash);\n ButterKnife.inject(this);\n\n if(getResources().getBoolean(R.bool.isTablet)){\n lyMain.setBackgroundResource(R.drawable.ic_tablet_splash);\n }else {\n lyMain.setBackgroundResource(R.drawable.ic_smatphone_splash);\n }\n\n Thread timerThread = new Thread() {\n public void run() {\n try {\n sleep(3000);\n\n } catch (InterruptedException e) {\n e.printStackTrace();\n } finally {\n startActivity(new Intent(SplashActivity.this, ApplicationsGridActivity.class));\n }\n }\n };\n timerThread.start();\n\n }", "@Override\n public void run() {\n Intent intent =new Intent(LuanchActivity.this, MainActivity.class);\n startActivity(intent);\n\n finish();\n }", "public void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n\r\n // Do not display title bar, this makes the splash screen really full screen\r\n requestWindowFeature(Window.FEATURE_NO_TITLE);\r\n \r\n // Check if we need to display the splash screen. If no, go directly to the main intent\r\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\r\n boolean showscreen = prefs.getBoolean(\"showsplashscreen\", true);\r\n if (! showscreen) {\r\n \t gotoMainIntent();\r\n \t return;\r\n }\r\n \r\n\r\n // Set the layout\r\n setContentView(R.layout.splash);\r\n\r\n // This will run after a specified time (SPLASH_DISPLAY_LENGHT milliseconds)\r\n new Handler().postDelayed(new Runnable(){\r\n public void run() {\r\n \t gotoMainIntent();\r\n }\r\n }, SPLASH_DISPLAY_LENGHT);\r\n }", "public void exitToMain(View view) {\n Intent exitToMain = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(exitToMain);\n }", "@Override\n\t public void onFinish(){\n\t \tIntent nextScreen = new Intent(getApplicationContext(), Main_Menu_2.class);\n\t\t\t // TODO Auto-generated method stub\n\t\t startActivity(nextScreen);\n\t }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {\n finishAffinity();\n } else {\n finish();\n }\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {\n finishAffinity();\n } else {\n finish();\n }\n }", "@Override\n public void run() {\n\n Intent i = new Intent(WelcomeActivity.this, DashBoard.class);\n startActivity(i);\n\n // close this activity\n finish();\n }" ]
[ "0.81017613", "0.8003424", "0.79872626", "0.7909096", "0.78708535", "0.78656673", "0.7761014", "0.77484775", "0.76766235", "0.7611978", "0.7591622", "0.75902367", "0.74744034", "0.74091536", "0.7401744", "0.73891306", "0.7351023", "0.7309706", "0.7263819", "0.72016394", "0.7199921", "0.7194466", "0.7173148", "0.71725315", "0.71538657", "0.712158", "0.71078247", "0.7091294", "0.70810944", "0.70730835", "0.70583737", "0.7032342", "0.703108", "0.70307404", "0.70300996", "0.702351", "0.7020559", "0.7018416", "0.70136625", "0.69997185", "0.69965404", "0.6977711", "0.69681096", "0.69552255", "0.6938095", "0.6926507", "0.6916473", "0.690642", "0.68967223", "0.6894452", "0.6891871", "0.6887582", "0.6875562", "0.68730646", "0.6865077", "0.68634105", "0.6847337", "0.68288445", "0.6824995", "0.6821458", "0.6806945", "0.6791855", "0.67895013", "0.6772501", "0.67700607", "0.6766646", "0.67628425", "0.6762768", "0.6755101", "0.6750279", "0.67397326", "0.6737004", "0.67301303", "0.6707485", "0.6705259", "0.6704053", "0.6693968", "0.66847193", "0.66769123", "0.6668461", "0.66648185", "0.6664332", "0.665301", "0.6652371", "0.66511685", "0.664949", "0.6641032", "0.6596051", "0.65944153", "0.6589824", "0.65848964", "0.6576263", "0.6572301", "0.65651876", "0.65629244", "0.6556714", "0.65563434", "0.6555705", "0.655367", "0.655367", "0.65522945" ]
0.0
-1
Remove least priority first
public int remove() { return priorityQueue[--counter]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Node removeMin() {\n \t\t// TODO Complete this method!\n \t\tif (indexOfLeastPriority == 2) {\n \t\t\tNode toReturn = getNode(1);\n \t\t\tsetNode(1, null);\n \t\t\treturn toReturn;\n \t\t}\n \t\tint indexOfReplacement = indexOfLeastPriority - 1;\n \t\tNode nodeOfReplacement = getNode(indexOfReplacement);\n \t\tNode toRemove = getNode(1);\n \t\tsetNode(indexOfReplacement, null);\n \t\tsetNode(1, nodeOfReplacement);\n \t\tbubbleDown(1);\n \t\t//decrement IoLP\n \t\tindexOfLeastPriority--;\n \t\treturn toRemove;\n \t}", "public int priority(){\n return 0; //TODO codavaj!!\n }", "public Builder clearPriority() {\n bitField0_ = (bitField0_ & ~0x00000040);\n priority_ = 0;\n onChanged();\n return this;\n }", "public Builder clearPriority() {\n bitField0_ = (bitField0_ & ~0x00000010);\n priority_ = 0;\n onChanged();\n return this;\n }", "@Override\r\n\tpublic int getPriority() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic int getPriority() {\n\t\treturn 0;\r\n\t}", "public void removeMin() {\n\t\troot = removeMin(root);\n\t}", "public void removePriority( int index )\n\t{\n\t\t_avTable.rm( ATTR_PRIORITY , index ) ;\n\t}", "default byte getPriority() {\n\t\treturn 0;\n\t}", "public HuffmanTree removeMin();", "public T removeBest();", "default int getPriority() {\n return 0;\n }", "int priority();", "int priority();", "int getPriority();", "int getPriority();", "int getPriority();", "int getPriority();", "int getPriority();", "int getPriority();", "int getPriority();", "int getPriority();", "public T removeMin ();", "@Override\r\n public CustomProcess removeBest() {\r\n if (isEmpty()) {\r\n throw new NoSuchElementException(\"queue is empty, cannot remove from empty queue\");\r\n }\r\n CustomProcess best = data[0]; // process to be removed\r\n data[0] = data[size - 1];\r\n data[size - 1] = null;\r\n minHeapPercolateDown(0); // Percolate down on first index\r\n size--;\r\n return best;\r\n }", "public abstract int priority();", "@Override\n \tpublic int priority() {\n \t\treturn 10;\n \t}", "int minPriority(){\n if (priorities.length == 0)\n return -1;\n\n int index = 0;\n int min = priorities[index];\n\n for (int i = 1; i < priorities.length; i++){\n if ((priorities[i]!=(-1))&&(priorities[i]<min)){\n min = priorities[i];\n index = i;\n }\n }\n return values[index];\n }", "int getPriorityOrder();", "public int getPriority();", "public int getPriority();", "@Override\n public int getPriority() {\n return 1;\n }", "public void setPriorityCollect()\n\t{\n\t\tsetCollect(_Prefix + HardZone.PRIORITY.toString(), \"\");\n\t}", "public int removeMin() {\n // FILL IN CODE\n\n return -1; // don't forget to change it\n }", "String getPriority();", "String getPriority();", "String getPriority();", "ActionSequenceQueue prioritize(ActionSequenceQueue actionSequences);", "public void updatePriority(){\n\t\tpriority = (int) priority / 2;\n\t}", "int getPriority( int priority );", "@Override\n\tpublic Integer getPriorityForIntuitiveCreation() {\n\t\treturn null;\n\t}", "@NotNull\n PriorityClass getDefaultPriorityClass();", "protected synchronized void prune()\n {\n long ldtStart = Base.getSafeTimeMillis();\n int cCur = getUnits();\n int cMin = getLowUnits();\n if (cCur < cMin)\n {\n return;\n }\n\n int nType = getEvictionType();\n switch (nType)\n {\n default:\n case EVICTION_POLICY_HYBRID:\n {\n // sum the entries' units per priority\n int[] acUnits;\n while (true)\n {\n try\n {\n acUnits = new int[11];\n for (Iterator iter = entrySet().iterator(); iter.hasNext(); )\n {\n Entry entry = (Entry) iter.next();\n int cUnits = entry.getUnits();\n try\n {\n acUnits[entry.getPriority()] += cUnits;\n }\n catch (IndexOutOfBoundsException e)\n {\n acUnits[Math.max(0, Math.min(entry.getPriority(), 10))] += cUnits;\n }\n }\n break;\n }\n catch (ConcurrentModificationException e)\n {\n }\n }\n\n int cTotal = 0;\n int nPrunePriority = 0;\n while (nPrunePriority <= 10)\n {\n cTotal += acUnits[nPrunePriority];\n if (cTotal > cMin)\n {\n break;\n }\n ++nPrunePriority;\n }\n\n // build a list of entries to discard\n Entry entryDiscardHead = null;\n Entry entryDiscardTail = null;\n\n // determine the number at the cut-off priority that must be pruned\n int cAdditional = Math.max(0, cTotal - cMin);\n\n while (cCur > cMin)\n {\n try\n {\n for (Iterator iter = entrySet().iterator(); iter.hasNext() && cCur > cMin; )\n {\n Entry entry = (Entry) iter.next();\n int nPriority = entry.getPriority();\n if (nPriority >= nPrunePriority)\n {\n int cUnits = entry.getUnits();\n if (nPriority == nPrunePriority)\n {\n if (cAdditional <= 0)\n {\n continue;\n }\n cAdditional -= cUnits;\n }\n cCur -= cUnits;\n\n // remove the entry from the map\n super.removeEntryInternal(entry);\n\n // link the entry into the list of deferred\n // removals, but without changing its \"next\"\n // reference because the iterator that we are\n // using here is counting on that \"next\" ref\n if (entryDiscardHead == null)\n {\n entryDiscardHead = entry;\n }\n else\n {\n entryDiscardTail.setNext(entry);\n }\n entryDiscardTail = entry;\n }\n }\n\n // seal the end of the linked list of entries to discard\n if (entryDiscardTail != null)\n {\n entryDiscardTail.setNext(null);\n }\n break;\n }\n catch (ConcurrentModificationException e)\n {\n }\n }\n\n // process the list of deferred removals\n for (Entry entryDiscard = entryDiscardHead; entryDiscard != null; )\n {\n // unlink it altogether\n Entry entryNext = entryDiscard.getNext();\n entryDiscard.setNext(null);\n\n // discard it\n removeExpired(entryDiscard, false);\n\n entryDiscard = entryNext;\n }\n }\n break;\n\n case EVICTION_POLICY_LRU:\n case EVICTION_POLICY_LFU:\n {\n boolean fLRU = (nType == EVICTION_POLICY_LRU);\n SparseArray array;\n while (true)\n {\n try\n {\n array = new SparseArray();\n for (Iterator iter = entrySet().iterator(); iter.hasNext(); )\n {\n Entry entry = (Entry) iter.next();\n long lOrder = fLRU ? entry.getLastTouchMillis()\n : entry.getTouchCount();\n Object oPrev = array.set(lOrder, entry);\n if (oPrev != null)\n {\n // oops, more than one entry with the same order;\n // make a list of entries\n List list;\n if (oPrev instanceof List)\n {\n list = (List) oPrev;\n }\n else\n {\n list = new ArrayList();\n list.add((Entry) oPrev);\n }\n list.add(entry);\n array.set(lOrder, list);\n }\n }\n break;\n }\n catch (ConcurrentModificationException e)\n {\n }\n }\n\n for (Iterator iter = array.iterator();\n getUnits() > cMin && iter.hasNext(); )\n {\n Object o = iter.next();\n if (o instanceof Entry)\n {\n Entry entry = (Entry) o;\n removeExpired(entry, true);\n }\n else\n {\n List list = (List) o;\n for (Iterator iterList = list.iterator();\n getUnits() > cMin && iterList.hasNext(); )\n {\n Entry entry = (Entry) iterList.next();\n removeExpired(entry, true);\n }\n }\n }\n }\n break;\n\n case EVICTION_POLICY_EXTERNAL:\n getEvictionPolicy().requestEviction(cMin);\n break;\n }\n m_stats.registerCachePrune(ldtStart);\n }", "@Override\n public E deleteMin()\n {\n return list.removeFirst();\n }", "public abstract int getPriority();", "public abstract int getPriority();", "public abstract int getPriority();", "public Task poll() \n\t{\n\t\tif(this.isEmpty())\n\t\t{\n\t\t\tSystem.out.println(\"Cannot remove from an empty list.\");\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tint parent = 1;\n\t\tint child = 2;\n\t\tTask newTask = heap[1];\n\t\tTask temp = heap[size--];\n\t\t\n\t\twhile(child <= size)\n\t\t{\n\t\t\tif(child < size && heap[child].getPriority() > heap[child + 1].getPriority())\n\t\t\t{\n\t\t\t\tchild++;\n\t\t\t}\n\t\t\tif(temp.getPriority() <= heap[child].getPriority())\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\theap[parent] = heap[child];\n\t\t\tparent = child;\n\t\t\tchild *= 2;\n\t\t\t\n\t\t}\n\t\t\n\t\theap[parent] = temp;\n\t\treturn newTask;\n\t}", "@Override\n public int getPriority() {\n return 75;\n }", "private void lowerPriority(String s) {\n\t\tqueue.add(stack.pop());\n\t\tstack.add(s);\n\t}", "private RBNode<T> removeMin(RBNode<T> node){\n //find the min node\n RBNode<T> parent = node;\n while(node!=null && node.getLeft()!=null){\n parent = node;\n node = node.getLeft();\n }\n //remove min node\n if(parent==node){\n return node;\n }\n\n parent.setLeft(node.getRight());\n setParent(node.getRight(),parent);\n\n //don't remove right pointer,it is used for fixed color balance\n //node.setRight(null);\n return node;\n }", "public FileLine removeMin() throws PriorityQueueEmptyException {\n\t\t\n \tif (isEmpty()) {\n \t\tthrow new PriorityQueueEmptyException();\n \t}\n \tFileLine temp = queue[1];\n \t//Retain shape\n \tqueue[1] = queue[numLines];\n \tboolean done = false;\n \t\n \tint parent = 1;\n \t\n \twhile (!done) {\n \t\tint child1 = parent * 2;\n \tint child2 = (parent * 2) + 1;\n \t\n \t\tFileLine maxChild = null;\n \t//Find child with max priority\n \tif (child1 < queue.length && child2 < queue.length) {\n\t \t\t\n\t \t\tmaxChild = maxChild(queue[child1], queue[child2]);\n \t} \n \t//Both greater than the length, set max as parent\n \telse if (child1 >= queue.length && child2 >= queue.length) {\n \t\tmaxChild = queue[parent];\n \t}\n \telse if (child1 >= queue.length) {\n \t\tmaxChild = queue[child2];\n \t}\n \telse if (child2 >= queue.length) {\n \t\tmaxChild = queue[child1];\n \t}\n \t\n \t\t\n \t\tint parentComp = cmp.compare(queue[parent], maxChild);\n \t\t\n \t\t\t\n \t\t//Compare parent to child\n \t\tif (parentComp <= 0) {\n \t\t\tdone = true;\n \t\t} \n \t\t//Swap parent and child if child higher priority\n \t\telse {\n \t\t\tFileLine hold = queue[parent];\n \t\t\t\n \t\t\t//child1 was the max, swap parent with it\n \t\t\tif (cmp.compare(maxChild, queue[child1]) == 0) {\n \t\t\t\tqueue[parent] = queue[child1];\n \t\t\tqueue[child1] = hold;\n \t\t\tparent = child1;\n \t\t\t}\n \t\t\t//child 2 was the max, swap parent with it\n \t\t\telse {\n \t\t\t\tqueue[parent] = queue[child2];\n \t\t\t\tqueue[child2] = hold;\n \t\t\t\tparent = child2;\n \t\t\t}\n \t\t\t\n \t\t}\n \t}\n \t\n \tnumLines--;\n\t\treturn temp;\n }", "Object removeFirst();", "public Priority getPriority();", "public int getPriority(){\n return 2;\n }", "public void removeMin() {\n if (isEmpty()) throw new RuntimeException(\"underflow\");\n root = removeMin(root);\n }", "private int removeBestProfessor() {\n if (professors.size() == 1){\n return 2; // MEAN LOSS\n } else {\n if (professors.get(0).getName().equals(DefaultValues.NAME_FIRST_PROF)){\n professors.remove(1);\n } else {\n professors.remove(0);\n }\n return 1;\n }\n }", "public abstract double getPriority();", "public E removeMin() {\n // TODO: YOUR CODE HERE\n E min = getElement(1);\n swap(1, size());\n setElement(size(), null);\n bubbleDown(1);\n size -= 1;\n return min;\n }", "private void raisePriority() {\n Thread cThr = Thread.currentThread();\n _priority = (byte)((cThr instanceof H2O.FJWThr) ? ((H2O.FJWThr)cThr)._priority+1 : super.priority());\n }", "public void pruneRules_greedy() {\n LOGGER.info(\"STARTED Postpruning\");\n AttributeValue defClass = getDefaultRuleClass();\n int defError = getDefaultRuleError(defClass);\n boolean removeTail=false;\n for (Iterator<ExtendRule> it = extendedRules.iterator(); it.hasNext();) {\n\n ExtendRule rule = it.next();\n rule.updateQuality();\n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.log(Level.FINE, \"#Rule {0}\", rule.toString());\n }\n \n if (removeTail)\n {\n it.remove();\n }\n else if (rule.getAntecedentLength() == 0) {\n it.remove();\n } \n else if (rule.getRuleQuality().getA() == 0)\n {\n it.remove();\n }\n else\n {\n int supportingTransactions = rule.removeTransactionsCoveredByAntecedent(true);\n AttributeValue newDefClass = getDefaultRuleClass();\n int newDefError = getDefaultRuleError(newDefClass);\n if (defError<=newDefError)\n {\n //adding the current rule did not decrease the errors compared to a default rule\n it.remove();\n removeTail=true;\n }\n else{\n LOGGER.log(Level.FINE, \"{0} transactions, RULE {1} KEPT\", new Object[]{supportingTransactions, rule.getRID()});\n defClass = newDefClass;\n defError = newDefError;\n } \n }\n \n \n\n\n }\n LOGGER.fine(\"Creating new Extend rule within narrow rule procedure\");\n extendedRules.add(createNewDefaultRule(defClass));\n LOGGER.info(\"FINISHED Postpruning\");\n }", "public void deleteMin()\t\t\t\t//delete smallest key\n\t{\n\t\troot=deleteMin(root);\n\t}", "@Override\r\n\tpublic int setPriority(int priority) {\n\t\treturn 0;\r\n\t}", "public AnyType deleteMin() {\n if (isEmpty())\n throw new UnderflowException();\n\n AnyType minItem = root.element;\n root = merge(root.left, root.right);\n\n return minItem;\n }", "@Override\r\n\tpublic int getPriority() {\n\t\treturn Message.LOW_PRIORITY;\r\n\t}", "private Node removeMin(Node node){\n if(node == null)\n return null;\n else if(node.left == null) {//use right child to replace this node (min value node)\n if(node.count!=0){ //multiple value in same node\n node.count--;\n return node;\n }\n else{\n decDepth(node.right); //maintain depth when chain in right tree\n return node.right;\n }\n }\n\n //walk through left branch\n node.left = removeMin(node.left);\n if(node!=null) node.size--; // the min value must be removed\n return node;\n }", "void unsetWagerMinimum();", "Nodefh removeMin(){\n\t\t\n\t\tif(min == null){\n\t\t\tNodefh dummy = new Nodefh();\n\t\t\tdummy.index = -1;\n\t\t\treturn dummy;\n\t\t}\n\t\tNodefh temp = new Nodefh();\n\t\ttemp = min;\n\t\tif((min.Child == null) && (min == min.Right)){\n\t\t\tmin = null;\n\t\t\treturn temp;\n\t\t}\n\t\tpairwiseCombine();\n\t\treturn temp;\n\t}", "public static void changePriority(Patient p, int prior){\r\n \t\tpatientArray.remove(p);\r\n \t\tlistModel.add(prior, p.getFirstName());\r\n \t}", "public void deleteMin() {\n root = deleteMin(root);\n }", "public void deleteMin() {\n root = deleteMin(root);\n }", "public int getBuildOrderPriority();", "@Override\n public int getPriority()\n {\n return Message.LOW_PRIORITY;\n }", "void deleteMin() {\n delete(keys[0]);\n }", "public int getPriority()\r\n\t\t{\r\n\t\t\treturn 25;\r\n\t\t}", "public void deleteMin();", "public boolean isPriority()\r\n/* 49: */ {\r\n/* 50:47 */ return false;\r\n/* 51: */ }", "public int getEffectivePriority() {\n Lib.assertTrue(Machine.interrupt().disabled());\n\n\n return getWinningPriority();\n }", "public void markSrvPriorityDelete() throws JNCException {\n markLeafDelete(\"srvPriority\");\n }", "default int getPriority(Program program) {\n\t\treturn 0;\n\t}", "@Override\n public int getPriority() {\n return priority;\n }", "@Override\n public int getPriority() {\n return priority;\n }", "private static WorkFrame Wf_getPrior(Set<WorkFrame> activeWorkFrames) {\n\t\tint maxPri = 0;\n\t\tif (activeWorkFrames.size() == 0) return null;\n\t\t//find the wf with the highest priority\n\t\tfor (WorkFrame wf : activeWorkFrames) {\n\t\t\tif (wf.getPriority() > 0) {\n\t\t\t\tmaxPri = updateMaxPriority(wf.getPriority(), maxPri);\n\t\t\t\tcontinue;\n\t\t\t} \n\t\t\t//get the priority from the activities \n\t\t\tint maxActPri = 0;\n\t\t\tfor (Event event : wf.getEvents()) {\n\t\t\t\tif (!(event instanceof EventActivity))\tcontinue;\n\n\t\t\t\tActivity tmpAct = getActivity(b, (EventActivity) event);\n\t\t\t\t//maxActPri = updateMaxPriority(tmpAct.getPriority(b), maxActPri);\n\t\t\t}\n\t\t\twf.setPriority(maxActPri);\n\t\t\tmaxPri = updateMaxPriority(wf.getPriority(), maxPri);\n\n\t\t}\n\t\tList<WorkFrame> highestPriorityFrames = new ArrayList<WorkFrame>();\n\t\tfor(WorkFrame wfFrame : activeWorkFrames) {\n\t\t\tif(wfFrame.getPriority() != maxPri) continue;\n\t\t\thighestPriorityFrames.add(wfFrame);\n\t\t}\n\t\t\n\t\tint index = Utils.getHighestPriorityFrameIndex(highestPriorityFrames.size());\n\t\tif (index < 0)\n\t\t\treturn null;\n\t\n\t\treturn highestPriorityFrames.get(index);\n\t}", "public Priority getPriority() ;", "public void unsetSrvPriorityValue() throws JNCException {\n delete(\"srv-priority\");\n }", "public final void min() {\n\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tif (secondTopMostValue > topMostValue) {\n\t\t\t\tpush(topMostValue);\n\t\t\t} else {\n\t\t\t\tpush(secondTopMostValue);\n\t\t\t}\n\t\t}\n\t}", "public void removefirst()\r\n {\r\n Item item = pre.item;\r\n pre = pre.next;\r\n n--;\r\n }", "public int priority()\n\t{\n\t\treturn priority;\n\t}", "public void setPriority(Priority priority);", "void removeTop()\n {\n \tif(first!=null)\t\t\t\n \t{\n \t\tfirst=first.next;\n \t\tif(first!=null)\n \t\t\tfirst.prev=null;\n \t}\n }", "public void setPriority(int v) \n {\n \n if (this.priority != v)\n {\n this.priority = v;\n setModified(true);\n }\n \n \n }", "String getSpecifiedPriority();", "@FXML\n private void dropPriority(final ActionEvent event) {\n Story story = storyTable.getSelectionModel().getSelectedItem();\n if (story != null) {\n Integer storyPriority = getModel().getStoryPriority(story);\n if (storyPriority != -1) {\n changeStoryStateToNone(story, () -> {\n try {\n getModel().modifyStory(story, null);\n } catch (CustomException e) {\n //Should not ever happen, this should be handled by the GUI\n ErrorReporter.get().reportError(e, \"Cannot decrease priority\");\n }\n });\n updateStoryTable();\n }\n }\n }", "public double getPriority() {\n\t\treturn priority;\n\t}", "public void setPriority(int r) {\n priority = r;\n }", "public T deleteMin();", "public String getPriority() {\r\n return priority;\r\n }", "public void changePriority(E e, P p) throws NoSuchElementException;", "public int getPriority() \n {\n return priority;\n }", "public static void main(String[] args)\n\t{\n\t\t// data added with the same priority value as already-preasent data, have less\n\t\t// priority than objects with the same priority value that were there before\n\t\t// being added.\n\t\tSystem.out.println(\"Data given all have equal priority so data\\nis ordered by the order it is provided in:\");\n\t\tPriorityQueue<String> q = new PriorityQueue<String>();\n\t\tq.add(\"highest\", 8);\n\t\tq.add(\"second highest\", 8);\n\t\tq.add(\"third highest\", 8);\n\t\tq.add(\"fourth highest\", 8);\n\t\tq.add(\"fifth highest\", 8);\n\t\tq.add(\"least\", 8);\n\t\tSystem.out.println(q.remove());\n\t\tSystem.out.println(q.remove());\n\t\tSystem.out.println(q.remove());\n\t\tSystem.out.println(q.remove());\n\t\tSystem.out.println(q.remove());\n\t\tSystem.out.println(q.remove());\n\n\t\t// sorting data provided in ascending order\n\t\tSystem.out.println(\"-------------\\nData given in ascending priority order:\");\n\t\tPriorityQueue<String> r = new PriorityQueue<String>();\n\t\tr.add(\"one\", 1);\n\t\tr.add(\"two\", 2);\n\t\tr.add(\"three\", 3);\n\t\tr.add(\"four\", 4);\n\t\tr.add(\"five\", 5);\n\t\tr.add(\"six\", 6);\n\t\tSystem.out.println(r.remove());\n\t\tSystem.out.println(r.remove());\n\t\tSystem.out.println(r.remove());\n\t\tSystem.out.println(r.remove());\n\t\tSystem.out.println(r.remove());\n\t\tSystem.out.println(r.remove());\n\n\t\t// sorting data provided in descending order\n\t\tSystem.out.println(\"-------------\\nData given in descending priority order:\");\n\t\tPriorityQueue<String> s = new PriorityQueue<String>();\n\t\ts.add(\"six\", 6);\n\t\ts.add(\"five\", 5);\n\t\ts.add(\"four\", 4);\n\t\ts.add(\"three\", 3);\n\t\ts.add(\"two\", 2);\n\t\ts.add(\"one\", 1);\n\t\tSystem.out.println(s.remove());\n\t\tSystem.out.println(s.remove());\n\t\tSystem.out.println(s.remove());\n\t\tSystem.out.println(s.remove());\n\t\tSystem.out.println(s.remove());\n\t\tSystem.out.println(s.remove());\n\n\t\t// sorting data provided in a mixed order\n\t\tSystem.out.println(\"-------------\\nData given in a mixed priority order:\");\n\t\tPriorityQueue<String> t = new PriorityQueue<String>();\n\t\tt.add(\"four\", 4);\n\t\tt.add(\"six\", 6);\n\t\tt.add(\"two\", 2);\n\t\tt.add(\"three\", 3);\n\t\tt.add(\"one\", 1);\n\t\tt.add(\"five\", 5);\n\t\tSystem.out.println(t.remove());\n\t\tSystem.out.println(t.remove());\n\t\tSystem.out.println(t.remove());\n\t\tSystem.out.println(t.remove());\n\t\tSystem.out.println(t.remove());\n\t\tSystem.out.println(t.remove());\n\n\t\t// sorting data provided in a mixed priority order including some repitition and\n\t\t// negative values\n\t\tSystem.out.println(\n\t\t\t\t\"-------------\\nData given in a mixed priority order\\nincluding repitition and negative priority:\");\n\t\tPriorityQueue<String> u = new PriorityQueue<String>();\n\t\tu.add(\"-two\", -2);\n\t\tu.add(\"two\", 2);\n\t\tu.add(\"zero\", 0);\n\t\tu.add(\"one\", 1);\n\t\tu.add(\"zero again\", 0);\n\t\tu.add(\"-one\", -1);\n\t\tSystem.out.println(u.remove());\n\t\tSystem.out.println(u.remove());\n\t\tSystem.out.println(u.remove());\n\t\tSystem.out.println(u.remove());\n\t\tSystem.out.println(u.remove());\n\t\tSystem.out.println(u.remove());\n\n\t\t// sorting data provided in a mixed priority order and is of type Double this\n\t\t// time\n\t\tSystem.out.println(\n\t\t\t\t\"-------------\\nData given in a mixed priority order\\nbut using double as the objects this time:\");\n\t\tPriorityQueue<Double> v = new PriorityQueue<Double>();\n\t\tv.add(.002, 2);\n\t\tv.add(.006, 6);\n\t\tv.add(.005, 5);\n\t\tv.add(.001, 1);\n\t\tv.add(.004, 4);\n\t\tv.add(.003, 3);\n\t\tSystem.out.println(v.remove());\n\t\tSystem.out.println(v.remove());\n\t\tSystem.out.println(v.remove());\n\t\tSystem.out.println(v.remove());\n\t\tSystem.out.println(v.remove());\n\t\tSystem.out.println(v.remove());\n\t}", "public static void main(String[] args) {\n\t\tPriorityQueue<Integer> pqueue = new PriorityQueue<>(Comparator.reverseOrder()); //ordered as per max heap\r\n\t\tpqueue.add(3);\r\n\t\tpqueue.add(1);\r\n\t\tpqueue.add(4);\r\n\t\tpqueue.add(2);\r\n\t\tSystem.out.println(pqueue); \r\n\r\n\t\tpqueue.poll(); //the element with the lowest priority, i.e., smallest element will be removed\r\n\t\tSystem.out.println(pqueue);\r\n\r\n\t\tSystem.out.println(pqueue.peek()); //the next element to be removed\r\n\t}", "@Stub\n\tpublic int getPriority()\n\t{\n\t\treturn PRIO_DEFAULT;\n\t}" ]
[ "0.7401187", "0.6579776", "0.6550942", "0.6505171", "0.6278791", "0.6278791", "0.62466526", "0.6228418", "0.6158853", "0.6154533", "0.6139978", "0.6139829", "0.61350834", "0.61350834", "0.611726", "0.611726", "0.611726", "0.611726", "0.611726", "0.611726", "0.611726", "0.611726", "0.6105059", "0.6088625", "0.60725784", "0.5985106", "0.5982416", "0.5976242", "0.59713495", "0.59713495", "0.5950311", "0.5948927", "0.5938766", "0.59238803", "0.59238803", "0.59238803", "0.59078604", "0.5877294", "0.5815678", "0.5791593", "0.5784871", "0.5765445", "0.5752905", "0.57395077", "0.57395077", "0.57395077", "0.573945", "0.5717481", "0.57068855", "0.56855625", "0.5683736", "0.5681401", "0.56778395", "0.5671254", "0.56623745", "0.5636825", "0.5625866", "0.56200737", "0.5617586", "0.56124365", "0.5602981", "0.5601963", "0.560129", "0.5583699", "0.55833423", "0.55661035", "0.55509895", "0.55069846", "0.5506161", "0.5506161", "0.5503163", "0.5476534", "0.54649496", "0.5462932", "0.5462666", "0.54587007", "0.54422927", "0.54352486", "0.5434125", "0.5429532", "0.5429532", "0.5419101", "0.54172164", "0.5415742", "0.5410993", "0.5404442", "0.53932935", "0.5391367", "0.5386128", "0.5354155", "0.5352607", "0.53508985", "0.53366566", "0.53334224", "0.5325893", "0.53120315", "0.5303143", "0.52953374", "0.5285724", "0.5284565", "0.5283726" ]
0.0
-1
point purchases at a new ArrayList
public OnlinePurchaseManager() { purchases = new ArrayList<Gizmo>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void productsToBuy(Product purchase){\n bill.getProducts().add(purchase);\n }", "List<transactionsProducts> purchasedProducts();", "@Test\n public void testGetListOfPurchases() {\n System.out.println(\"getListOfPurchases\");\n //CashRegister instance = new CashRegister();\n List<Double> expResult;\n expResult = new LinkedList<>();\n assertEquals(expResult, instance.getListOfPurchases());\n instance.scanItem(0.55);\n instance.scanItem(1.27);\n \n expResult.add(0.55);\n expResult.add(1.27);\n \n List<Double> result = instance.getListOfPurchases();\n assertEquals(expResult, result);\n }", "private void btnCheckOutActionPerformed(java.awt.event.ActionEvent evt) {\n\n if (temp_Purchhist != null && temp_Purchhist.size() > 0) {\n\n for (CustomerPurchase cp : temp_Purchhist) {\n\n for (Product ap : ae.getProdDir().getProductCatalog()) {\n if (ap instanceof AdvertiserProduct) {\n AdvertiserProduct p = (AdvertiserProduct) ap;\n if (cp.getProductPurchased().getProductId() == p.getProductId()) {\n\n int temp1 = cp.getQuantity();\n int temp2 = p.getTotal_sold();\n int temp3 = temp1 + temp2;\n p.setTotal_sold(temp3);\n break;\n }\n }\n }\n }\n for (CustomerPurchase p : temp_Purchhist) {\n ae.getPurchHist().getPurchaseList().add(p);\n pe.getPurchHist().getPurchaseList().add(p);\n Customer c = (Customer) ua.getPerson();\n c.getPurchaseHistory().getPurchaseList().add(p);\n }\n ArrayList<CustomerPurchase> trans = temp_Purchhist;\n JOptionPane.showMessageDialog(null, \"You have successfully checked out. Proceed To Payment?\");\n isCheckedOut = true;\n temp_Purchhist = new ArrayList<CustomerPurchase>();\n\n populateTable();\n populatePurchaseTable();\n UserTransactionJPanel utj = new UserTransactionJPanel(upc, trans, ua, ae, pe, system);\n upc.add(\"User Transaction\", utj);\n CardLayout layout = (CardLayout) upc.getLayout();\n layout.next(upc);\n\n } else {\n\n JOptionPane.showConfirmDialog(null, \"Improper check out\");\n\n }\n\n }", "public void purchaseProduct(ArrayList<Product> Products, char input, CoinSet cS) {\n int inputIndex = 0;\n if (input >= 65 && input <= 90) {\n inputIndex = input - 65;\n } else if (input >= 97 && input <= 122) {\n inputIndex = input - 97;\n } else {\n System.out.println(\"Invalid Input.\");\n }\n\n Product p = Products.get(inputIndex); // getting the index of the character to match the ASCII\n double temp = cS.getTotal();\n double temp2 = cS.getTotal();\n if (p.getQuantity() >= 1) {\n //check for sufficient amount\n if (p.getPrice() <= cS.getTemp()) {\n temp = temp - p.getPrice();\n myList.add(temp2 - temp);\n sum += (temp2 - temp);\n p.decrement();\n cS.emptyCoins();\n if (p.getQuantity() == 0) {\n Products.remove(p);\n }\n System.out.println(\"Purchased: \" + p.getName() + \" @ $\" + p.getPrice());\n System.out.println(\"Change: $\" + temp);\n // need to have an arraylist of some sort to put the total amount of money put into the vending machine\n } else {\n System.out.println(\"Insufficient money\");\n }\n } else {\n System.out.println(\"Insufficient quantity\");\n }\n\n }", "public void addStock(Product p, int n) {\nif (p.id < 0) return;\nif (n < 1) return;\n\nfor (int i = 0; i < productCatalog.size(); i++) {\nProductStockPair pair = productCatalog.get(i);\nif (pair.product.id == p.id) {\nproductCatalog.set(i, new ProductStockPair(p, pair.stock + n));\nreturn;\n}\n}\nproductCatalog.add(new ProductStockPair(p, n));\n}", "public ArrayList<PurchaseHistory> CreateShoppingTrip() {\n //TODO: implement this method\n return null;\n }", "public List<Product> getPurchases() {\n return purchases;\n }", "public void updatePurchaseHistory(Cart newPurchases) {\n for (Map.Entry<Integer, ShoppingItem> newItem : newPurchases.getItems().entrySet()) {\n purchaseHistory.put(newItem.getKey(), newItem.getValue());\n }\n }", "public static void main(String[] args) {\n List<ProductCatalog> productCatalog = new ArrayList<>();\n var apple = new Product(new FruitProduct(\"apple\"));\n var grapes = new Product(new FruitProduct(\"grapes\"));\n var peaches = new Product(new FruitProduct(\"peaches\"));\n productCatalog.add(new ProductCatalog(apple,3, 2,0.2));\n productCatalog.add(new ProductCatalog(grapes,5,2,0.5));\n productCatalog.add(new ProductCatalog(peaches,7,0,0));\n var cart = new ShoppingCart();\n cart.setProductCatalogueList(productCatalog);\n cart.addItem(\"apple\",3);\n /*\n cart.setProductCatalogue(\"apple\",3);\n cart.setProductCatalogue(\"grapes\",5);\n cart.setProductCatalogue(\"peaches\",7);\n */\n //cart1.forEach((cart) -> invoice(cart));\n }", "public HashMap<String, ArrayList[]> determineSale() {\n HashMap<String, ArrayList[]> ordersMap = new HashMap<>();\n ordersMap.put(\"ms\", new ArrayList<Integer>[2]);\n ordersMap.put(\"gs\", new ArrayList<Integer>[2]);\n ordersMap.put(\"xlf\", new ArrayList<Integer>[2]);\n ordersMap.put(\"wfc\", new ArrayList<Integer>[2]);\n ordersMap.put(\"bond\", new ArrayList<Integer>[2]);\n\n Integer temp;\n int ind = 0;\n ArrayList<Integer> prices = ordersMap.get(\"bond\")[0];\n ArrayList<Integer> quantities = ordersMap.get(\"bond\")[1];\n for (int i = 0; i < 3; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n }\n ind = 0;\n prices = ordersMap.get(\"gs\")[0];\n quantities = ordersMap.get(\"gs\")[1];\n for (int i = 0; i < 2; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n } \n ind = 0;\n prices = ordersMap.get(\"ms\")[0];\n quantities = ordersMap.get(\"ms\")[1]; \n for (int i = 0; i < 3; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n }\n ind = 0;\n prices = ordersMap.get(\"wfc\")[0];\n quantities = ordersMap.get(\"wfc\")[1]; \n for (int i = 0; i < 2; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);;\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n }\n ind = 0;\n prices = ordersMap.get(\"xlf\")[0];\n quantities = ordersMap.get(\"xlf\")[1]; \n for (int i = 0; i < 10; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n }\n return ordersMap;\n }", "void createOrder(List<Product> products, Customer customer);", "public void generateLineItems(){\n for(int i=0; i<purch.getProdIdx().length; i++){\r\n \r\n prod= new Product(db.getProductDbItem(purch.getProductItem(i)));\r\n \r\n LineItem[] tempL=new LineItem[lineItem.length+1];\r\n System.arraycopy(lineItem,0,tempL,0,lineItem.length);\r\n lineItem=tempL;\r\n lineItem[lineItem.length-1]= new LineItem(prod.getProdId(),purch.getQtyAmtItm(i), \r\n prod.getProdUnitPrice(), prod.getProdDesc(), prod.getProdDiscCode()); \r\n totalPurch += (purch.getQtyAmtItm(i) * prod.getProdUnitPrice());\r\n totalDisc += lineItem[lineItem.length-1].getDiscAmt();\r\n \r\n }\r\n }", "public static List<modelPurchasesI> reportPurchases(){\r\n\t\tif(modelUsersI.isLogged()){\r\n\t\t\tComparator<modelPurchasesI> sort = (primo, secondo) -> Double.compare(primo.getTotalSpent(), secondo.getTotalSpent());\r\n\t\t\t\r\n\t\t\treturn modelPurchasesI.purchasesList().stream()\r\n\t\t\t\t\t.sorted(sort)\r\n\t\t\t\t\t.collect(Collectors.toList());\r\n\t\t}else\r\n\t\t\treturn new ArrayList<modelPurchasesI>();\r\n\t}", "private void updatePrice() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tfor(int i = first;i<last;i++){\r\n\t\t\tProduct product = products.get(i);\r\n\t\t\tproduct.setPrivce(product.getPrivce()*(1+increment));\r\n\t\t}\r\n\t\t\r\n\t}", "public void purchase(Unit unit) {\n purchasePoints = purchasePoints - unit.cost();\n }", "@Override\n public void onPurchasesUpdated(List<Purchase> purchaseList) {\n\n for (Purchase purchase : purchaseList) {\n if (Objects.equals(purchase.getSku(), SKU_ID)) {\n mActivity.onPurchasesUpdated(purchaseList);\n break;\n }\n }\n }", "private static List<String> getItemsPurchasedByCustomer(\r\n List<String> sessionListForCustomer,\r\n Map<String, List<Buy>> buysFromSessions\r\n ){\r\n // Initializes list of products.\r\n List<String> listProduct = new LinkedList<>();\r\n\r\n // Goes through every session in the session list\r\n // and adds every product that was bought within those\r\n // sessions to listProduct.\r\n for (String session: sessionListForCustomer) {\r\n for (Buy purchase: buysFromSessions.get(session)) {\r\n if (!listProduct.contains(purchase)) {\r\n listProduct.add(purchase.getProduct());\r\n }\r\n }\r\n }\r\n return listProduct;\r\n }", "public static void main(String[] args) {\n Item item1=new Item(\"cucumber\",2,5);\n Item item2=new Item(\"appl\",3,6);\n Item item3=new Item(\"orange\",3,5);\n Item item4=new Item(\"bananas\",2,6);\n\n ArrayList<Item>shoppingList=new ArrayList<>();\n shoppingList.addAll(Arrays.asList(item1,item2,item3,item4));\n double totalCost=0;\n for (Item each:shoppingList){\n totalCost +=each.calCost();\n }\n for(int i=0;i<shoppingList.size();i++){\n totalCost+=shoppingList.get(i).calCost();\n }\n System.out.println(\"total:\"+totalCost);\n\n\n\n\n //System.out.println(item1.calCost());\n\n // System.out.println(item1);\n\n\n\n\n\n }", "public void setPurchases(Integer purchases) {\n this.purchases = this.purchases + purchases;\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n TextView ts = (TextView) findViewById(R.id.points_text);\n boolean isOneTimePurchaseSupported = bp.isOneTimePurchaseSupported();\n if (!isOneTimePurchaseSupported)\n position = 99;\n\n\n switch(position){\n case 0:\n bp.purchase(GetPointsActivity.this, \"points.50\");\n break;\n case 1:\n// CurrentUser.addPoints(10);\n// Snackbar.make(view, \"10 points added\", Snackbar.LENGTH_LONG)\n// .setAction(\"Action\", null).show();\n// ts.setText(Integer.toString(CurrentUser.getPoints()));\n bp.purchase(GetPointsActivity.this, \"points.100\");\n break;\n case 2:\n// CurrentUser.addPoints(20);\n// Snackbar.make(view, \"20 points added\", Snackbar.LENGTH_LONG)\n// .setAction(\"Action\", null).show();\n// ts = (TextView) findViewById(R.id.points_text);\n// ts.setText(Integer.toString(CurrentUser.getPoints()));\n bp.purchase(GetPointsActivity.this, \"points.250\");\n break;\n case 3:\n// CurrentUser.addPoints(35);\n// Snackbar.make(view, \"35 points added\", Snackbar.LENGTH_LONG)\n// .setAction(\"Action\", null).show();\n// ts = (TextView) findViewById(R.id.points_text);\n// ts.setText(Integer.toString(CurrentUser.getPoints()));\n bp.purchase(GetPointsActivity.this, \"points.500\");\n break;\n case 99:\n Snackbar.make(view, \"Google Play Purchases is not Available on this Device\", Snackbar.LENGTH_LONG)\n .setAction(\"Action\", null).show();\n break;\n default:\n Snackbar.make(view, \"Something went Wrong\", Snackbar.LENGTH_LONG)\n .setAction(\"Action\", null).show();\n\n }\n }", "private void updatePool(Vector sold){\r\n\t\tfor(int i = 0; i < sold.size(); i++){\r\n\t\t\tthis.marketPool.addElement((Bird) sold.elementAt(i));\r\n\t\t}\r\n\t}", "public void pourDrinks(ArrayList<String> drinks,ArrayList<Integer> quantities)\n {\n\n for(int i = 0; i < quantities.size(); i++){\n DrinkAndQuantity drink = new DrinkAndQuantity();\n Drink beverage = df.makeDrink(drinks.get(i));\n\n //after drink is made, update the inventory\n updateInventory(beverage, quantities.get(i));\n\n //update DrinkAndBeverage object\n drink.setDrink(beverage); \n drink.setQuantity(quantities.get(i));\n drinksAndQuantities.add(drink);\n }\n }", "public static List<modelPurchasesI> purchasesList(){\r\n\t\tif(modelUsersI.isLogged()){\r\n\t\t\tDataBaseSearch query = DataBaseSearch.queryDaTabella(\"Acquisti\");\r\n\t\t\ttry {\r\n\t\t\t\treturn query.find().stream()\r\n\t\t\t\t\t\t.map(e -> new modelPurchases(e))\r\n\t\t\t\t\t\t.collect(Collectors.toList());\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\treturn new ArrayList<modelPurchasesI>();\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn new ArrayList<modelPurchasesI>();\r\n\t}", "public static void main(String[] args) {\n\n Customer customer = new Customer(\"Collin\", 54.96);\n Customer anotherCustomer;\n anotherCustomer = customer;\n anotherCustomer.setBalance(12.18);\n\n System.out.println(\"Balance for customer \"+ customer.getName()+ customer.getBalance());\n\n // customer (1st instance) takes the value of 12.18 because they point to the same\n //location in memory\n\n\n ArrayList<Integer> intList = new ArrayList<Integer>();\n intList.add(1);\n intList.add(2);\n intList.add(3);\n\n for(int i = 0; i<intList.size(); i++){\n System.out.println(i+\": \"+ intList.get(i));\n }\n\n intList.add(1,6); //index position, storing value 2\n\n System.out.println(\"_______________\");\n\n for(int i = 0; i<intList.size(); i++){\n System.out.println(i+\": \"+ intList.get(i));\n }\n\n\n }", "public VendingMachine(){\n this.customerMoney = new ArrayList<>();\n this.bank = new ArrayList<>();\n this.stock = new ArrayList<>();\n stock.add(new Product(\"Cookie\", .50, 10));\n stock.add(new Product(\"Crackers\", .25, 10));\n stock.add(new Product(\"Candy\", .45, 10));\n stock.add(new Product(\"Water\", 1.0, 10));\n stock.add(new Product(\"Juice\", 1.5, 10));\n }", "@Test\n\tvoid purchaseTest() {\n\t\ttestCrew.setMoney(10000);\n\t\tfor(MedicalItem item: itemList) {\n\t\t\tint currentMoney = testCrew.getMoney();\n\t\t\titem.purchase(testCrew);\n\t\t\tassertEquals(testCrew.getMoney(), currentMoney - item.getPrice());\n\t\t\tassertTrue(testCrew.getMedicalItems().get(0).getClass().isAssignableFrom(item.getClass()));\n\t\t\ttestCrew.removeFromMedicalItems(testCrew.getMedicalItems().get(0));\n\t\t}\n\t}", "public void pointsCollected(List<Point> points);", "@Override\r\n\tpublic void inserOrder(Good_ordVO good_ordVO, List<PointgoodsVO> list) {\n\t\t\r\n\t}", "public void updatePurchase(String purchaseId, List<Item> bought, List<Item> notBought){\n\t\tPurchase p = new Purchase(purchaseId, \"0\", bought, notBought);\n\t\tpurchases.put(purchaseId, p);\n\t}", "private void prepareData() {\n mSalesPoint.add(new SalesPoint(\"Super U\", \"Malingo-street, Buea, Cameroon\", \"Clothes, Shoes , Perfumes, Cutlery, Make-up\",\"lorem lorem lorem lorem lorem lorem\"));\n mSalesPoint.add(new SalesPoint(\"Mahima\", \"Bonamussadi, Denver, Douala\", \"Food, divertisement, plessir\",\"Whether you're new to Android and need some fresh, new games to start building out your Google Play library or simply looking for the latest trendy games that are worthy of your time and attention, these are the best Android games you can find right now.\"));\n mSalesPoint.add(new SalesPoint(\"Le Mediterrane\", \"Bonamussadi, Denver, Douala\", \"Food, divertisement, plessir\",\"Whether you're new to Android and need some fresh, new games to start building out your Google Play library or simply looking for the latest trendy games that are worthy of your time and attention, these are the best Android games you can find right now.\"));\n mSalesPoint.add(new SalesPoint(\"Terific Coffee\", \"Bonamussadi, Denver, Douala\", \"Food, divertisement, plessir\",\"Whether you're new to Android and need some fresh, new games to start building out your Google Play library or simply looking for the latest trendy games that are worthy of your time and attention, these are the best Android games you can find right now.\"));\n mSalesPoint.add(new SalesPoint(\"Santa Lucia\", \"Bonamussadi, Denver, Douala\", \"Food, divertisement, plessir\",\"Whether you're new to Android and need some fresh, new games to start building out your Google Play library or simply looking for the latest trendy games that are worthy of your time and attention, these are the best Android games you can find right now.\"));\n\n mPointOfSalesRecyclerAdapter.notifyDataSetChanged();\n }", "@Override\r\n\tpublic void updateProduct(String name,int cost,List<Product> custlist) {\n\t\tfor(Product p:custlist) {\r\n\t\tif(name.equals(p.getName())) {\r\n\t\t\t\tp.setCost(cost);\r\n\t\t\t}\r\n\t\t\r\n\t\t\r\n\t}\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t}", "public void setArrayListOfItemsInShoppingCart(WebElement element) {\n UtilityHelper.moveToViewElement(element);\n String name = UtilityHelper.elementGetText(element.findElement(By.xpath(\".//*[@class='mjr-product-name']\")));\n addNameToShoppingCartPgeArrayList(name);\n }", "public void setOrdersProductss(com.sybase.collections.GenericList<ru.terralink.mvideo.sap.Products> x)\n {\n __ordersProductss = x;\n }", "public Integer getPurchases() {\n return purchases;\n }", "public void AddtoCart(int id){\n \n itemdb= getBooksById(id);\n int ids = id;\n \n for(Books k:itemdb){ \n System.out.println(\"Quantity :\"+k.quantity); \n if (k.quantity>0){\n newcart.add(ids);\n System.out.println(\"Added to cartitem list with bookid\"+ ids);\n setAfterBuy(ids);\n System.out.println(\"Quantity Updated\");\n setCartitem(newcart);\n System.out.println(\"setCartitem :\"+getCartitem().size());\n System.out.println(\"New cart :\"+newcart.size());\n test.add(k);\n }\n else{\n System.out.println(\"Quantity is not enough !\");\n }\n }\n setBookcart(test);\n }", "private static Map<String, List<String>> mapCustomerProductsPurchased(\r\n Map<String, List<String>> sessionsFromCustomers,\r\n List<String> sessionsWithPurchases\r\n ){\r\n Map<String, List<String>> newCustomerMap = new HashMap<>();\r\n // Initializes new map.\r\n for (String customer: sessionsFromCustomers.keySet()) {\r\n newCustomerMap.put(customer, new LinkedList<>());\r\n }\r\n\r\n for (Map.Entry<String, List<String>> customer: sessionsFromCustomers.entrySet()) {\r\n for (String session: sessionsWithPurchases) {\r\n if (customer.getValue().contains(session)) {\r\n newCustomerMap.get(customer.getKey()).add(session);\r\n }\r\n }\r\n\r\n }\r\n return newCustomerMap;\r\n }", "Items(double cost){\n\tthis.cost=cost;\n\titemId++;\n\tcurrentID=itemId;\n}", "public Sell_Installment(ArrayList<Integer> item, int InstallmentPeriod, Customer customer)\n {\n // initialise instance variables\n super(item);\n this.InstallmentPeriod=InstallmentPeriod;\n this.customer=customer;\n isActive = true;\n\n }", "public void addToBasket(Product product){\n\n Purchaseitem purchaseitem = new Purchaseitem();\n purchaseitem.setProduct(product.getId());\n purchaseitem.setProductByProduct(product);\n boolean toAdd = false;\n if(basket.isEmpty()){\n purchaseitem.setQuantity(1);\n basket.add(purchaseitem);\n }else {\n for(int i = 0; i < basket.size(); i++){\n if(basket.get(i).getProduct() == product.getId()){\n basket.get(i).setQuantity(basket.get(i).getQuantity() + 1);\n return;\n } else {\n purchaseitem.setQuantity(1);\n toAdd = true;\n }\n }\n }\n if(toAdd){\n basket.add(purchaseitem);\n }\n }", "@Override\n public void onClick(View view) {\n if(product_ids.size() == 0)\n {\n Toast.makeText(getApplicationContext(),\"Cart is Empty, Add items to cart before proceeding to checkout\",Toast.LENGTH_LONG).show();\n return;\n }\n\n Intent intent = new Intent(Cart.this,MapsActivity.class);\n intent.putExtra(\"customer\",customer);\n\n // Converting Lists to array to pass in intent\n int[] product_ids_arr = new int[product_ids.size()];\n int[] product_quantities_arr = new int[product_quantities.size()];\n String[] product_names_arr = new String[product_names.size()];\n float[] product_prices_arr = new float[product_prices.size()];\n\n for(int i=0; i<product_ids.size(); i++)\n {\n product_ids_arr[i] = product_ids.get(i);\n product_quantities_arr[i] = product_quantities.get(i);\n product_names_arr[i] = product_names.get(i);\n product_prices_arr[i] = product_prices.get(i);\n }\n\n intent.putExtra(\"product_ids\",product_ids_arr);\n intent.putExtra(\"product_quantities\",product_quantities_arr);\n intent.putExtra(\"product_names\",product_names_arr);\n intent.putExtra(\"product_prices\",product_prices_arr);\n startActivity(intent);\n }", "private void pushPurchases() {\n if (purchaseQueue.isEmpty()) {\n return;\n }\n\n if (!connected) {\n this.reconnectSupplier();\n }\n\n while (true) {\n synchronized (queueLock) {\n PurchaseRequest request = purchaseQueue.peek();\n if (request == null) {\n // finished pushing all buffered\n break;\n }\n\n boolean success = false;\n try {\n success = supplier.purchase(request);\n\n } catch (RemoteException e) {\n System.out.println(\"Unable to communicate with supplier to push request\");\n e.printStackTrace();\n connected=false;\n break;\n }\n\n // purchase either was successful, or denied by supplier, so remove it from buffer\n purchaseQueue.poll();\n if (!success) {\n request.failed();\n }\n }\n }\n }", "@Override\r\n public void getProduct() {\r\n\r\n InventoryList.add(new Product(\"Prod1\", \"Shirt\", \"Each\", 10.0, LocalDate.of(2021,03,19)));\r\n InventoryList.add(new Product(\"Prod1\", \"Trousers\", \"Each\", 20.0, LocalDate.of(2021,03,21)));\r\n InventoryList.add(new Product(\"Prod1\", \"Trousers\", \"Each\", 20.0, LocalDate.of(2021,03,29)));\r\n }", "public void goFiniteShopping(ArrayList<Item> items){\n for (Item item : items){\n purchasePersonalItem(item);\n }\n }", "public PurchaseList(Date dateOfPurchase) {\n this.dateOfPurchase = dateOfPurchase;\n }", "void addList(ShoppingList _ShoppingList);", "public List<ProductToBuyViewModel> filterProductsToBuyList(List<ProductToBuyViewModel> productList){\n\n List<ProductToBuyViewModel> filteredList = new ArrayList<>();\n for (int i = 0; i < productList.size(); i++) {\n ProductToBuyViewModel product = productList.get(i);\n\n ProductToBuyViewModel newProduct = new ProductToBuyViewModel();\n newProduct.setProductId(product.getProductId());\n newProduct.setQuantity(product.getQuantity());\n\n filteredList.add(newProduct);\n }\n\n //List with uniques inventoryId\n Set<Integer> productId = new HashSet<>();\n\n for(int i = 0; i < filteredList.size(); i++){\n\n ProductToBuyViewModel product = filteredList.get(i);\n Integer inId = product.getProductId();\n\n if(productId.add(inId) == false){\n\n int quantity = product.getQuantity();\n\n for(int x = 0; x < filteredList.size(); x++){\n\n ProductToBuyViewModel product2 = filteredList.get(x);\n\n if(product2.getProductId() == inId){\n\n product2.setQuantity(product2.getQuantity() + quantity);\n filteredList.remove(i);\n\n //To break the loop\n x = filteredList.size();\n }\n }\n i = -1;\n productId.clear();\n }\n }\n return filteredList;\n }", "void updateList(ShoppingList _ShoppingList);", "public Vending_Machine(ArrayList<Products> p) {\n\t\tproducts = p;\n\t\tcurrentCoin = new CoinSet();\n\t\tcoin = new CoinSet();\n\t}", "public void addProduct(Product p){\n stock.add(p);\n }", "public void startSale() {\r\n System.out.println(\"[CashRegister] startSale\");\r\n System.out.println(\"\");\r\n\r\n //receipt = new Receipt(customerId); \r\n receipt = new Receipt(\"100\");\r\n\r\n //addItemToSale(productId, quantity);\r\n addItemToSale(\"A101\", 10);\r\n\r\n addItemToSale(\"B205\", 6);\r\n\r\n addItemToSale(\"C222\", 12);\r\n\r\n }", "public void add_item_button(View v){\n if(expiry_date==0){ //if no expiry date was chosen,\n if(product_name.equals(\"Milk\")){//and if the product is milk, \n expiry_date=7; //set it to the default of 7 days until expiry\n }else{//If the product is bread,\n expiry_date=3;//set it to the default of 7 days until expiry\n }\n }\n Product added_p=new Product(product_name,expiry_date); //added_p : product chosen by the user that they currently own\n added_list.add(added_p); //this product is added to the list \n text=(TextView) findViewById(R.id.added_list);\n String content=\"\";\n for(Product p:added_list){\n content=content+(p.getProduct_name()+\" \"+p.getProduct_exp()+\" days \\n\"); //then displayed to show the user \n }\n text.setText(content);\n }", "void purchaseMade();", "public void sellItem(int i){\n Product p = stock.get(i);\n if(p.getQuantity() > 0) {\n if(getCustomerMoney() > p.getCost()) {\n p.decreaseQuantity(1);\n for (Coin c : customerMoney) {\n bank.add(c);\n }\n customerMoney = new ArrayList<>();\n System.out.println(\"1 \" + p.getName() + \" was bought.\");\n } else {\n System.out.println(\"Insufficient Funds...\");\n }\n } else {\n System.out.println(stock.get(i).getName() + \" is out of stock...\");\n }\n }", "public void add(int index){\n int i = 0;\n boolean isFound = false;\n for (Product product:inventory.getProducts().keySet())\n {\n i++;\n if (i == index && inventory.getProducts().get(product) > 0)\n {\n if (myBasket.containsKey(product))\n {\n System.out.println(\"One more of this product added.\");\n myBasket.replace(product , myBasket.get(product) + 1);\n }\n else {\n System.out.println(\"Product added to your basket.\");\n myBasket.put(product , 1);\n }\n totalCost = totalCost + product.getPrice();\n isFound = true;\n inventory.updateStock(product , '-');\n }\n }\n if (!isFound)\n System.out.println(\"Sorry. Invalid index or not enough product in stock!\");\n }", "ArrayList<Product> ListOfProducts();", "public void addItems() {\r\n\t\tproductSet.add(new FoodItems(1000, \"maggi\", 12.0, 100, new Date(), new Date(), \"yes\"));\r\n\t\tproductSet.add(new FoodItems(1001, \"Pulses\", 55.0, 50, new Date(), new Date(), \"yes\"));\r\n\t\tproductSet.add(new FoodItems(1004, \"Meat\", 101.53, 5, new Date(), new Date(), \"no\"));\r\n\t\tproductSet.add(new FoodItems(1006, \"Jelly\", 30.0, 73, new Date(), new Date(), \"no\"));\r\n\t\t\r\n\t\tproductSet.add(new Apparels(1005, \"t-shirt\", 1000.0, 10, \"small\", \"cotton\"));\r\n\t\tproductSet.add(new Apparels(1002, \"sweater\", 2000.0, 5,\"medium\", \"woolen\"));\r\n\t\tproductSet.add(new Apparels(1003, \"cardigan\", 1001.53,22, \"large\", \"cotton\"));\r\n\t\tproductSet.add(new Apparels(1007, \"shirt\", 500.99, 45,\"large\",\"woolen\"));\r\n\t\t\r\n\t\tproductSet.add(new Electronics(1010, \"tv\", 100000.0, 13, 10));\r\n\t\tproductSet.add(new Electronics(1012, \"mobile\", 20000.0, 20,12));\r\n\t\tproductSet.add(new Electronics(1013, \"watch\", 1101.53,50, 5));\r\n\t\tproductSet.add(new Electronics(1009, \"headphones\", 300.0, 60,2));\r\n\t\t\r\n\t}", "public ArrayList<GamePurchase> GetTransactionGame(int TransactionID);", "public void addBuy() {\r\n\t\tbuys++;\r\n\t\tnotifyObservers();\r\n\t}", "void newLoans(List<Loan> loans);", "public void insert(final ArrayList<SelectablePoint2> points) {\n additions.sort((o1, o2) -> o2.cachedIndex - o1.cachedIndex);\n for (final SelectablePoint2 p : additions) {\n points.add(p.cachedIndex, p);\n }\n }", "public ArrayList<PurchaseHistory> getAllPurchasesFor(int PID) {\n\n ArrayList<PurchaseHistory> names = new ArrayList<PurchaseHistory>();\n SQLiteDatabase db = DBHelper.getWritableDatabase();\n String query = \"SELECT * FROM \"+DBHelper.TABLE_PURCHASEHISTORY+\" WHERE \"+DBHelper.PURCHASEHISTORY_PID+\" = ?\"+\" ORDER BY \" + DBHelper.PURCHASEHISTORY_PRICE+\" ASC\";\n Log.i(\"LOL\", query);\n String[] arg = new String[1];\n arg[0]= Integer.toString(PID);\n Cursor cursor =db.rawQuery(query,arg);\n Log.d(DatabaseHelper.class.getName(), \"getAllPurchasesFor(\"+PID+\"):\");\n\n while(cursor.moveToNext()) {\n double price = cursor.getDouble(cursor.getColumnIndex(DBHelper.PURCHASEHISTORY_PRICE));\n String date = cursor.getString(cursor.getColumnIndex(DBHelper.PURCHASEHISTORY_DATE));\n String store = cursor.getString(cursor.getColumnIndex(DBHelper.PURCHASEHISTORY_SID));\n String unit = cursor.getString(cursor.getColumnIndex(DBHelper.PURCHASEHISTORY_UNIT));\n long _id = (long) cursor.getInt(cursor.getColumnIndex(DBHelper.PURCHASEHISTORY_ID));\n PurchaseHistory history= new PurchaseHistory(price,unit,store,date,_id);\n names.add(history);\n }\n\n for (PurchaseHistory ph: names) {\n ph.setName(getNameBySID(Integer.parseInt(ph.getStore())));\n Log.d(DatabaseHelper.class.getName(), \"\\t getAllPurchasesFor(\" + PID + \"):\" + ph.toString());\n\n }\n\n //sorting\n try {\n Collections.sort(names, new Comparator<PurchaseHistory>() {\n @Override\n public int compare(PurchaseHistory lhs, PurchaseHistory rhs) {\n return lhs.getPrice().compareTo(rhs.getPrice());\n }\n });}\n catch (Exception e) {\n return names;\n }\n\n return names;\n }", "public void provideOrderAccess() {\n\t\tint choiceOrder = View.NO_CHOICE;\n\t\t// get customer id and date for the order\n\t\tLong customerId = view.readIDWithPrompt(\"Enter Customer ID for Order: \");\n\t\tif (customerId == null) {\n\t\t\tSystem.out.println(\"Error: Customer Not Found.\");\n\t\t}\n\t\tLong orderId = view.readIDWithPrompt(\"Enter new Unique ID for Order: \");\n\t\tDate currDate = new Date();\n\n\t\t// create the order,\n\t\t// add the orderID to Customer\n\t\tatMyService.placeOrder(customerId, orderId, currDate);\n\n\t\t// enter loop to add items to the order\n\t\tArrayList<Long[]> items = new ArrayList<Long[]>();\n\t\twhile (choiceOrder != View.ENDORDER) {\n\t\t\t// display the order menu\n\t\t\tview.menuOrder();\n\t\t\tchoiceOrder = view.readIntWithPrompt(\"Enter choice: \");\n\t\t\tswitch (choiceOrder) {\n\t\t\t\tcase View.ADD_ORDER_ITEM:\n\t\t\t\t\tLong itemID = view.readIDWithPrompt(\"Enter Item ID: \");\n\t\t\t\t\t// note: Needs to be Long for Long[] below. \n\t\t\t\t\t//Also, i DO want to use readID rather than readInt then convert to long,\n\t\t\t\t\t// because I do not want amt to be negative. \n\t\t\t\t\tLong amt = view.readIDWithPrompt(\"Enter Amount: \");\n\t\t\t\t\t// check to see if the item exists and is in stock\n\t\t\t\t\tItem temp = atMyService.findItem(itemID);\n\t\t\t\t\tif (temp == null) {\n\t\t\t\t\t\tSystem.out.println(\"Item '\" + itemID + \"' not found. Item skipped.\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ((temp.getStock() - amt) < 0) {\n\t\t\t\t\t\t\tSystem.out.println(\"There is only '\" + temp.getStock() + \"' of this item left. Please try again.\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// add the items to the arrayList\n\t\t\t\t\t\t\tLong[] toAdd = { itemID, amt };\n\t\t\t\t\t\t\titems.add(toAdd);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase View.ENDORDER:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t// convert arrayList to array, add to orders.\n\t\tif (!(items.isEmpty())) {\n\t\t\tLong[][] array = new Long[items.size()][2];\n\t\t\tfor (int i = 0; i < items.size(); i++) {\n\t\t\t\tarray[i][0] = items.get(i)[0];\n\t\t\t\tarray[i][1] = items.get(i)[1];\n\t\t\t}\n\t\t\tatMyService.addOrderItems(orderId, array);\n\t\t}\n\t}", "public Basket(Inventory inventory){\n myBasket = new HashMap<>();\n totalCost = 0;\n isPaid = false;\n Random randomGenerator = new Random();\n invoiceNumber = randomGenerator.nextInt(30000) + 1;\n this.inventory = inventory;\n }", "void addPricePointAndListNotEmpty(Prosument prosument, Point point, ArrayList<Point> pointList)\n\t{\n\t\tBoolean priceAlreadyInList = checkIfPriceExist(pointList,point.getPrice());\n\t\t\n\t\t//if price not in the list\n\t\tif (!priceAlreadyInList)\n\t\t{\n\t\t\t//says if found index that point.price < point(index).price\n\t\t\t//if not found add point as last in the list\n\t\t\tBoolean notFound = true; \n\t\t\t\n\t\t\tint a=0;\n\t\t\twhile (a<pointList.size() && notFound)\n\t\t\t{\n\t\t\t\tif (point.getPrice()<pointList.get(a).getPrice())\n\t\t\t\t{\n\t\t\t\t\t//jezeli a>0 to przestaw alfe i bete poprzednikowi dodawanego punktu\n\t\t\t\t\tif (a>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tupdateAlfa(pointList.get(a-1),point,prosument,pointList,\"poprzednik dodawanego punktu\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//ustaw alfe i bete dodawanego punktu\n\t\t\t\t\tupdateAlfa(point,pointList.get(a),prosument,pointList,\"dodawany punkt\");\n\t\t\t\t\tpointList.add(a, point);\n\t\t\t\t\tnotFound=false;\t\n\t\t\t\t}\t\n\t\t\t\ta++;\n\t\t\t}\n\t\t\t\n\t\t\tif (notFound)\n\t\t\t{\n\t\t\t\tupdateAlfa(pointList.get(pointList.size()-1),point,prosument, pointList,\"not found\");\n\t\t\t\tpointList.add(point);\n\t\t\t}\n\t\t}\n\t\t\n\t}", "@Override\n public void buy(double limitPrice, int quantity) {\n Boolean allBought = false;\n Iterator iter1 = sellOrders.entrySet().iterator();\n while(iter1.hasNext()) {\n HashMap.Entry entry = (HashMap.Entry) iter1.next();\n if(limitPrice >= (Double)entry.getKey()) {\n if(quantity <= (Integer)entry.getValue()) {\n allBought = true;\n sellOrders.put((Double)entry.getKey(),(Integer)entry.getValue()-quantity) ;\n }\n else {\n quantity = quantity - (Integer)entry.getValue();\n sellOrders.put((Double)entry.getKey(),0);\n }\n }\n\n }\n if(!allBought) {\n\n if (buyOrders.containsKey(limitPrice))\n buyOrders.put(limitPrice, buyOrders.get(limitPrice) + quantity);\n else\n buyOrders.put(limitPrice, quantity);\n }\n cleanUp();\n\n }", "public int purchasePoints() {\n return purchasePoints;\n }", "private static void addProductsToStore() throws Exception\n {\n store.add(new Sales(123, \"Heinz Catsup\", .8, 45.4, 55));\n store.add(new Sales(244, \"Guilden's Mustard\", .85, 23.4, 28));\n store.add(new Sales(303, \"Lipton Noodle Soup\", .9, 9.0, 6));\n store.add(new Sales(445, \"Meow Mix Cat Food\", .7, 25.7, 43));\n store.add(new Sales(501, \"Hershey's Chocolate Syrup\", .95, 38.0, 23));\n }", "public void purchase(Book book1, Client client1) {\n\t\tclient1.getBuyBookList().add(book1);\n\t\t//book1.getBuyBookClient().add(client1);\n\t}", "public void submitCurrentPurchase(List<SoldItem> goods) throws VerificationFailedException {\n\n\t}", "public static void main(String[] args) {\n double productPrice;\n String productDesc;\n double taxRate;\n double totalAmount=0;\n double productTotal=0;\n\n double taxCharged;\n String response=\"y\";\n \n //The 'shopping list' \n ArrayList<Product> pList=new ArrayList <Product>();\n \n //Created to accept user input \n Scanner sc = new Scanner(System.in);\n \n //Prompt user for tax rate \n System.out.println(\"Enter tax rate\");\n //use .hasNext for data types to validate for each type \n while(!sc.hasNextDouble())\n {\n System.out.println(\"Invalid number. Please enter a tax rate e.g. '3'\");\n sc.next();\n\n }\n taxRate = sc.nextDouble();\n //Use this to capture the return (enter) key, so that the app does not skip to the next line\n sc.nextLine();\n\n //Check to see if the user would like to enter another product\n do{\n if(!response.equalsIgnoreCase(\"y\"))\n {\n System.out.println(\"You must enter either 'Y' or 'N'\");\n }\n else{\n System.out.println(\"Enter product price\");\n while(!sc.hasNextDouble())\n {\n System.out.println(\"Invalid number. Please product price\");\n sc.next();\n\n }\n productPrice = sc.nextDouble();\n sc.nextLine();\n\n System.out.println(\"Enter product description\");\n while(!sc.hasNextLine())\n {\n System.out.println(\"You must enter a product description\");\n sc.next();\n\n }\n productDesc = sc.nextLine();\n System.out.println(\"The product price is \"+productPrice+\" and the description is \"+productDesc);\n Product p = new Product();\n p.setDescription(productDesc);\n p.setPrice(productPrice);\n pList.add(p);\n\n }\n System.out.println(\"Would you like to enter more product details? \");\n response = sc.nextLine();\n }while(!response.equalsIgnoreCase(\"n\"));\n \n //Iterate through the 'shopping list' \n for(Product aNewProduct : pList)\n {\n //Use the toString() method to show what the product item contains\n \tSystem.out.println(aNewProduct.toString());\n productTotal+=aNewProduct.getPrice();\n }\n taxCharged = (taxRate/100) * productTotal;\n \n //Show the pre-tax total, tax charged and total amount in plain text\n System.out.println(\"The pre-tax total is:\"+productTotal);\n System.out.println(\"The tax due is:\"+taxCharged);\n totalAmount=productTotal+taxCharged;\n System.out.println(\"The Grand Total is:\"+totalAmount);\n\n //Format to two decimal places\n\n //Display a table (courtesy http://bit.ly/2uIAkNb)\n /*Format the body of the table to have a | character, followed by \n * 35 string characters\n * and another | followed by a float, made up of 10 digits for the number\n * and 2 digits for the decimal place\n * Move to the net line (%n)\n */\n String leftAlignFormat = \"| %-35s | %-10.2f |%n\";\n \n\n System.out.format(\"+-------------------------------------+------------+%n\");\n System.out.format(\"| Description | Price |%n\");\n System.out.format(\"+-------------------------------------+------------+%n\");\n for(Product aNewProduct : pList)\n {\n \t/*Format the string using the product description as the string, and the product price\n \tas the float to display\n \t*/\n System.out.format(leftAlignFormat,aNewProduct.getDescription(),aNewProduct.getPrice());\n }\n System.out.format(\"+-------------------------------------+------------+%n\");\n System.out.format(leftAlignFormat,\"Sub Total\",productTotal);\n System.out.format(leftAlignFormat,\"Tax Amount\",taxCharged);\n System.out.format(\"+-------------------------------------+------------+%n\");\n System.out.format(leftAlignFormat,\"Grand Total\",totalAmount);\n System.out.format(\"+-------------------------------------+------------+%n\");\n\n }", "public void addProductToList(Product aProduct){\n listOfProduct.add(aProduct);\n }", "@Test\r\n\tpublic void testAddPurchaseOrder() {\r\n\t\tassertNotNull(\"Test if there is valid purchase order list to add to\", purchaseOrder);\r\n\r\n\t\tpurchaseOrder.add(o1);\r\n\t\tassertEquals(\"Test that if the purchase order list size is 1\", 1, purchaseOrder.size());\r\n\r\n\t\tpurchaseOrder.add(o2);\r\n\t\tassertEquals(\"Test that if purchase order size is 2\", 2, purchaseOrder.size());\r\n\t}", "@Override\n public void onClick(View view) {\n String name = getResources().getString(R.string.stock_shopping_list) + \": \" + productList.getName();\n StockShoppingList stockShoppingList = ((Stock)productList).generateShoppingList(name);\n StockShoppingListDao dao = new StockShoppingListDao(getDaoProductList().getBDConnection());\n if(((Stock)productList).getAssociatedListId() != -1) {\n // Si ya tiene una lista de la compra asociada la eliminamos para crear la nueva\n stockShoppingList.setID(((Stock) productList).getAssociatedListId());\n dao.remove(stockShoppingList);\n }\n int shoppingListId = dao.insert(stockShoppingList);\n\n // Actualizamos el id del stock\n ((Stock) productList).setAssociatedListId(shoppingListId);\n getDaoProductList().update((Stock)productList);\n\n // Mostramos un mensaje de exito\n Toast.makeText(getContext(),String.format(getResources().getString(R.string.info_msg_stock_shopping_list_created),name),Toast.LENGTH_LONG).show();\n }", "@Transactional\n @Override\n public StringBuffer addSalesOrder(String customerID, String cartIDs, String addressID, String paymentType,\n String orderAmount, String scoreAll, String memo, String itemCount, String itemID,\n String supplierID, String itemType, String orderType, String objID, String invoiceType,\n String invoiceTitle, String generateType, String orderID, String allFreight, String supplierFreightStr) throws Exception {\n \t\n String ids[] = cartIDs.split(\",\");\n List<ShoppingCartVO> shopCartList = new ArrayList<ShoppingCartVO>();\n for (String id : ids) {\n ShoppingCartVO shoppingCartVO = shoppingCartDAO.findShoppingCartByID(Long.valueOf(id));\n shopCartList.add(shoppingCartVO);\n }\n Map<String,List<ShoppingCartVO>> maps = new HashMap<String,List<ShoppingCartVO>>();\n for(ShoppingCartVO s:shopCartList){\n \tList<ShoppingCartVO> temp = new ArrayList<ShoppingCartVO>();\n \t String sid1= s.getSupplierID();\n String siname1= s.getSupplierName();\n for(ShoppingCartVO shoppingCartVO1 : shopCartList){\n \t//当前店铺对应的购物车集合\n \tString sid2 = shoppingCartVO1.getSupplierID();\n \tif(sid1.equals(sid2)){\n \t\ttemp.add(shoppingCartVO1);\n \t}\n }\n maps.put(sid1+\"_\"+siname1, temp);\n }\n \n //根据物流模板计算运费\n Map<String, Double> supplierFreightMap = new HashMap<String, Double>();\n String[] supplierFreightAll = supplierFreightStr.split(\"\\\\|\");\n for (int i = 0; i < supplierFreightAll.length; i++) {\n \tString[] supplierFreight = supplierFreightAll[i].split(\":\");\n \tsupplierFreightMap.put(supplierFreight[0], Double.parseDouble(supplierFreight[1]));\n\t\t} \n \n StringBuffer ordersList = new StringBuffer();\n// cachedClient.delete(customerID + orderID);\n Set<String> set = maps.keySet();\n\t\tfor(String string : set){\n\t\t List<ShoppingCartVO> temp1= maps.get(string);\n\t\t double supplierFreight = supplierFreightMap.get(string);\n\t\t Double amount = 0d;\n\t\t Integer count = 0;\n Integer score = 0;\n Double weight = 0d;\n\t\t for (ShoppingCartVO shoppingCartVO : temp1) {\n ItemVO itemVO = itemDAO.findItemById(shoppingCartVO.getItemID());\n count += shoppingCartVO.getItemCount();\n // weight += itemVO.getWeight();\n if (shoppingCartVO.getType() == 1) {\n amount += shoppingCartVO.getItemCount() * shoppingCartVO.getSalesPrice();\n } else if (shoppingCartVO.getType() == 2) {\n score += shoppingCartVO.getItemCount() * itemVO.getScore();\n } else if (shoppingCartVO.getType() == 3) {\n amount += shoppingCartVO.getItemCount() * itemVO.getScorePrice();\n score += shoppingCartVO.getItemCount() * shoppingCartVO.getSalesScore();\n }\n }\n\t\t //SalesOrderVO tempOrder = new SalesOrderVO();\n\t /*if (tempOrder == null) {\n\t throw new Exception(\"参数错误\");\n\t }\n\t if (\"012\".indexOf(invoiceType) == -1) {\n\t throw new Exception(\"参数错误\");\n\t }*/\n\t SalesOrderDTO salesOrderDTO = new SalesOrderDTO();\n\t salesOrderDTO.setMainID(randomNumeric());\n\t salesOrderDTO.setCustomerID(customerID);\n\t salesOrderDTO.setPaymentType(Integer.valueOf(paymentType));\n\t salesOrderDTO.setPaymentStatus(0);\n\n\t // salesOrderDTO.setExpressFee(tempOrder.getExpressFee());//运费\n\t salesOrderDTO.setProductAmount(amount);\n\t salesOrderDTO.setTotalAmount(amount + supplierFreight);\n\t salesOrderDTO.setPayableAmount(amount);\n\n\t salesOrderDTO.setOrderType(Integer.valueOf(orderType));\n\t salesOrderDTO.setMemo(memo);\n\t salesOrderDTO.setInvoiceType(Integer.parseInt(invoiceType));\n\t salesOrderDTO.setInvoiceTitle(invoiceTitle);\n\t salesOrderDTO.setSupplierID(string);\n\t salesOrderDTO.setExpressFee(supplierFreight);\n\t salesOrderDAO.addSalesOrder(salesOrderDTO);\n\t ordersList.append(salesOrderDTO.getMainID()+\",\");\n\t if(!paymentType.equals(\"3\")){\n\t \t CustomerDeliveryAddressVO customerDeliveryAddressVO = customerDeliveryAddressDAO.findAddressByID(Long.valueOf(addressID));\n\t \t if (customerDeliveryAddressVO != null) {\n\t \t SalesOrderDeliveryAddressDTO salesOrderDeliveryAddressDTO = new SalesOrderDeliveryAddressDTO();\n\t \t salesOrderDeliveryAddressDTO.setSalesOrderID(salesOrderDTO.getMainID());\n\t \t salesOrderDeliveryAddressDTO.setName(customerDeliveryAddressVO.getName());\n\t \t salesOrderDeliveryAddressDTO.setCountryID(customerDeliveryAddressVO.getCountryID());\n\t \t salesOrderDeliveryAddressDTO.setProvinceID(customerDeliveryAddressVO.getProvinceID());\n\t \t salesOrderDeliveryAddressDTO.setCityID(customerDeliveryAddressVO.getCityID());\n\t \t salesOrderDeliveryAddressDTO.setDisctrictID(customerDeliveryAddressVO.getDisctrictID());\n\t \t salesOrderDeliveryAddressDTO.setAddress(customerDeliveryAddressVO.getAddress());\n\t \t salesOrderDeliveryAddressDTO.setMobile(customerDeliveryAddressVO.getMobile());\n\t \t salesOrderDeliveryAddressDTO.setTelephone(customerDeliveryAddressVO.getTelephone());\n\t \t if (customerDeliveryAddressVO.getZip() != null) {\n\t \t salesOrderDeliveryAddressDTO.setZip(customerDeliveryAddressVO.getZip());\n\t \t }\n\t \t salesOrderDeliveryAddressDAO.insertSalesOrderDeliveryAddress(salesOrderDeliveryAddressDTO);\n\t \t }\n\t \t ShippingAddressVO shippingAddressVO = shippingAddressDAO.findDefaultShippingAddress();\n\t \t if (shippingAddressVO != null) {\n\t \t SalesOrderShippingAddressDTO salesOrderShippingAddressDTO = new SalesOrderShippingAddressDTO();\n\t \t salesOrderShippingAddressDTO.setSalesOrderID(salesOrderDTO.getMainID());\n\t \t salesOrderShippingAddressDTO.setName(shippingAddressVO.getName());\n\t \t salesOrderShippingAddressDTO.setCountryID(shippingAddressVO.getCountryID());\n\t \t salesOrderShippingAddressDTO.setProvinceID(shippingAddressVO.getProvinceID());\n\t \t salesOrderShippingAddressDTO.setCityID(shippingAddressVO.getCityID());\n\t \t salesOrderShippingAddressDTO.setDisctrictID(shippingAddressVO.getDisctrictID());\n\t \t salesOrderShippingAddressDTO.setAddress(shippingAddressVO.getAddress());\n\t \t salesOrderShippingAddressDTO.setMobile(shippingAddressVO.getMobile());\n\t \t salesOrderShippingAddressDTO.setTelephone(shippingAddressVO.getTelephone());\n\t \t salesOrderShippingAddressDTO.setZip(shippingAddressVO.getZip());\n\t \t salesOrderShippingAddressDAO.insertSalesOrderShippingAddress(salesOrderShippingAddressDTO);\n\t \t }\n\t }\n\t \n\t ItemDTO itemDTO = new ItemDTO();\n\t SupplierItemDTO supplierItemDTO = new SupplierItemDTO();\n\t SalesOrderLineDTO salesOrderLineDTO = new SalesOrderLineDTO();\n\t if (generateType.equals(\"quickBuy\")) {\n\t generateQuickBuyOrder(itemCount,cartIDs, itemID, supplierID, objID, salesOrderDTO, itemDTO, supplierItemDTO,\n\t salesOrderLineDTO);\n\n\t } else if (generateType.equals(\"oneKey\")) {\n\t generateOneKeyOrder(customerID, itemCount, itemType, objID, salesOrderDTO, itemDTO, supplierItemDTO,\n\t salesOrderLineDTO);\n\n\t } else if (generateType.equals(\"shoppingcart\")) {\n\t genarateShoppingCartOrder(customerID, cartIDs, itemCount, itemType, objID, salesOrderDTO, itemDTO,\n\t supplierItemDTO, salesOrderLineDTO);\n\t } else {\n\t throw new Exception(\"订单类型无法确定\");\n\t }\n\t\t}\n return ordersList;\n }", "public static ArrayList<Product> addProduct() {\r\n\r\n\t\tboolean proDiscontinued = false;\r\n\t\tboolean proInStock = false;\r\n\t\tint proQtyAvailable = 0;\r\n\r\n\t\tArrayList<Product> newProductArray = new ArrayList<Product>();\r\n\r\n\t\tSystem.out.println(\"---Product details---\");\r\n\r\n\t\tRandom proCodeRandom = new Random();\t\t\t\t\t\t\t\r\n\t\tint proCode = proCodeRandom.nextInt(100);\r\n\r\n\r\n\t\tSystem.out.println(\"Please enter the make of the product:\");\t\t\r\n\r\n\t\tString proMake = Validation.stringNoIntsValidation();\r\n\r\n\r\n\t\tSystem.out.println(\"Please enter the model of the product:\");\r\n\r\n\t\tString proModel = Validation.stringNoIntsValidation();\r\n\r\n\r\n\t\tSystem.out.println(\"Please enter the price of the product:\");\r\n\t\tdouble proPrice = Validation.doubleValidation();\r\n\r\n\t\tSystem.out.println(\"Is the product discontinued? y/n \");\r\n\r\n\t\tString answer = Validation.stringNoIntsValidation();\r\n\r\n\r\n\t\tif(answer.equals(\"y\") || answer.equals(\"Y\")) {\r\n\t\t\tproDiscontinued = true;\r\n\t\t\tSystem.out.println(\"How many products are available?\");\r\n\t\t\tproQtyAvailable = Validation.intValidation();\r\n\t\t\tif(proQtyAvailable <= 0) {\r\n\r\n\t\t\t\tproInStock = false;\r\n\t\t\t}else {\r\n\t\t\t\tproInStock = true;\r\n\t\t\t}\r\n\t\t}else if(answer.equals(\"n\") || answer.equals(\"N\")) {\r\n\t\t\tproDiscontinued = false;\r\n\t\t\tSystem.out.println(\"How many products are available?\");\r\n\t\t\tproQtyAvailable = Validation.intValidation();\r\n\t\t\tif(proQtyAvailable <= 0) {\r\n\t\t\t\tproInStock = false;\r\n\t\t\t}else {\r\n\t\t\t\tproInStock = true;\r\n\t\t\t}\r\n\t\t}\t\r\n\r\n\t\tProduct newProduct = new Product(proCode, proMake, proModel, proPrice, proInStock);\r\n\t\tnewProduct.setProQtyAvailable(proQtyAvailable);\r\n\t\tnewProduct.setProDiscontinued(proDiscontinued);\r\n\r\n\t\tnewProductArray.add(newProduct);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//The product is then added to the array list for the specified supplier\r\n\r\n\t\tSystem.out.println();\r\n\r\n\t\treturn newProductArray;\r\n\t}", "void maintainUpdatedProductsList(MarketDataCacheClient cacheUser);", "@Override\n\tpublic List<RotateBIDPurchase> listPurchase(String bidId) {\n\t\treturn dao.listPurchase(bidId);\n\t}", "public void addToOrder() {\n OrderLine orderLine = new OrderLine(order.lineNumber++, sandwhich, sandwhich.price());\n order.add(orderLine);\n ObservableList<Extra> selected = extraSelected.getItems();\n orderPrice.clear();\n String price = new DecimalFormat(\"#.##\").format(sandwhich.price());\n orderPrice.appendText(\"$\"+price);\n extraOptions.getItems().addAll(selected);\n extraSelected.getItems().removeAll(selected);\n pickSandwhich();\n\n\n\n }", "@Override\n public Bundle getPurchases(int apiVersion, String packageName, String type, String continuationToken) throws RemoteException {\n Bundle result = new Bundle();\n\n if (apiVersion < 3 || !(type.equals(ITEM_TYPE_INAPP) || type.equals(ITEM_TYPE_SUBS))) {\n result.putInt(RESPONSE_CODE, RESULT_DEVELOPER_ERROR);\n return result;\n }\n\n result.putInt(RESPONSE_CODE, RESULT_OK);\n\n // TODO: consider to restore purchases from persistent storage\n ArrayList<Purchase> purchaseHistory = getPurchasesFormConfig(packageName, type);\n int size = purchaseHistory.size();\n\n ArrayList<String> purchaseItemList = new ArrayList<String>(size);\n ArrayList<String> purchaseDataList = new ArrayList<String>(size);\n ArrayList<String> purchaseSignatureList = new ArrayList<String>(Collections.nCopies(size, \"no_signature\"));\n\n for (Purchase aPurchaseHistory : purchaseHistory) {\n purchaseItemList.add(aPurchaseHistory.getSku());\n purchaseDataList.add(aPurchaseHistory.toJson());\n }\n\n result.putStringArrayList(INAPP_PURCHASE_ITEM_LIST, purchaseItemList);\n result.putStringArrayList(INAPP_PURCHASE_DATA_LIST, purchaseDataList);\n result.putStringArrayList(INAPP_DATA_SIGNATURE_LIST, purchaseSignatureList);\n\n return result;\n }", "public void setTableViewForPurchases(ObservableList<Purchase> currPurchasesList) {\r\n\t\tPlatform.runLater(new Runnable() {\r\n\t\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tcol_cityName.setCellValueFactory(new PropertyValueFactory<Purchase,String>(\"cityName\"));\r\n\t\t\t\tcol_purchaseType.setCellValueFactory(new PropertyValueFactory<Purchase,String>(\"purchaseType\"));\r\n\t\t\t\tcol_purchaseDate.setCellValueFactory(new PropertyValueFactory<Purchase,String>(\"purchaseDate\"));\r\n\t\t\t\tcol_expiryDate.setCellValueFactory(new PropertyValueFactory<Purchase,String>(\"expirationDate\"));\r\n\t\t\t\tcol_price.setCellValueFactory(new PropertyValueFactory<Purchase,String>(\"price\"));\r\n\r\n\t\t\t\tpurchasesTable.setItems(currPurchasesList);\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public void buy(int index, int quantity){\n if (index>=1 && index<=car.size()){\n car.get(index-1).getAvailableQuantity().setAmount(quantity);\n bill.getProducts().add(car.get(index-1));\n car.remove(index-1);\n }\n }", "public ArrayList<ItemModel> getAllProducts() {\n ArrayList<ItemModel> products = new ArrayList<ItemModel>();\n SQLiteDatabase db = DBHelper.getReadableDatabase();\n Cursor c = db.rawQuery(\"SELECT * FROM \" + DBHelper.TABLE_SHOPPINGLIST, null);\n\n c.moveToFirst();\n Log.d(DatabaseHelper.class.getName(), \"getAllProducts:\");\n\n while (!c.isAfterLast()) {\n String product = String.valueOf(c.getInt(c.getColumnIndex(DBHelper.SHOPPINGLIST_PID)));\n String quantity=String.valueOf(c.getDouble(c.getColumnIndex(DBHelper.SHOPPINGLIST_QUANTITY)));\n String unit = String.valueOf(c.getString(c.getColumnIndex(DBHelper.SHOPPINGLIST_UNIT)));\n int che = c.getInt(c.getColumnIndex(DBHelper.SHOPPINGLIST_CHECKMARK));\n boolean check;\n if (che==0) {check=Boolean.FALSE;} else {check = Boolean.TRUE;}\n\n ItemModel model = new ItemModel(product, quantity, unit, check);\n products.add(model);\n\n\n c.moveToNext();\n }\n\n db.close();\n\n for (ItemModel ph: products) {\n ph.setProduct(getNameByPID(Integer.parseInt(ph.getProductName())));\n Log.d(DatabaseHelper.class.getName(), \"\\tgetAllProducts:\" + ph.toString());\n }\n\n return products;\n }", "static void addCustomerOrder() {\n\n Customer newCustomer = new Customer(); // create new customer\n\n Product orderedProduct; // initialise ordered product variable\n\n int quantity; // set quantity to zero\n\n String name = Validate.readString(ASK_CST_NAME); // Asks for name of the customer\n\n newCustomer.setName(name); // stores name of the customer\n\n String address = Validate.readString(ASK_CST_ADDRESS); // Asks for address of the customer\n\n newCustomer.setAddress(address); // stores address of the customer\n\n customerList.add(newCustomer); // add new customer to the customerList\n\n int orderProductID = -2; // initialize orderProductID\n\n while (orderProductID != -1) { // keep looping until user enters -1\n\n orderProductID = Validate.readInt(ASK_ORDER_PRODUCTID); // ask for product ID of product to be ordered\n\n if(orderProductID != -1) { // keep looping until user enters -1\n\n quantity = Validate.readInt(ASK_ORDER_QUANTITY); // ask for the quantity of the order\n\n orderedProduct = ProductDB.returnProduct(orderProductID); // Search product DB for product by product ID number, return and store as orderedProduct\n\n Order newOrder = new Order(); // create new order for customer\n\n newOrder.addOrder(orderedProduct, quantity); // add the new order details and quantity to the new order\n\n newCustomer.addOrder(newOrder); // add new order to customer\n\n System.out.println(\"You ordered \" + orderedProduct.getName() + \", and the quantity ordered is \" + quantity); // print order\n }\n }\n }", "private static List<BoughtItem> initBoughtItems(ResultSet rs) throws SQLException {\n List<BoughtItem> boughtItemsList = new ArrayList<BoughtItem>();\n while (rs.next()) {\n BoughtItem item = new BoughtItem();\n item.setId(rs.getLong(1));\n item.setItemPrice(rs.getBigDecimal(2));\n item.setBoughtDate(rs.getDate(3));\n item.setSharedBasketId(rs.getLong(4));\n item.setProduct(getBoughtProductDomain(rs.getLong(5)));\n boughtItemsList.add(item);\n }\n\n return boughtItemsList;\n }", "public BigDecimal getTotalPriceOfPurchasedItems(ArrayList<Item> currentPurchases) {\n\t\tBigDecimal total = new BigDecimal(0);\n\n\t\tfor (Item item : currentPurchases) {\n\t\t\ttotal = total.add(this.getItemPrice(item));\n\t\t}\n\n\t\treturn total;\n\t}", "private static void viewItems() {\r\n\t\tdisplayShops();\r\n\t\tint shopNo = getValidUserInput(scanner, shops.length);\r\n\t\tdisplayItems(shopNo);\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Please enter the ID of the element to add to cart. \\\"0\\\" for exit\");\r\n\t\tSystem.out.println();\r\n\t\tint productNo = getValidUserInput(scanner, shops[shopNo].getAllSales().length + 1);\r\n\t\tif (productNo > 0) {\r\n\t\t\tProduct productToBeAdd = shops[shopNo].getAllSales()[productNo - 1];\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.print(\" Please enter the number of the item you would like to buy: \");\r\n\t\t\tint numberOfTheItems = getUserIntInput();\r\n\t\t\tcart.addProduct(productToBeAdd, numberOfTheItems);\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Purchase done, going back to the menu.\");\r\n\t\tSystem.out.println();\r\n\t}", "private ArrayList<Order> extractProductFromResultSet(ResultSet rs){\n ArrayList<Order> orderList = new ArrayList<>();\n\n try {\n Order order = new Order();\n ProdOrder ps;\n ProductDao pd;\n Product p;\n AddressDao ad;\n Address a;\n int i = 0;\n\n while (rs.next()){\n\n // creo inserisco dati ordine generale\n order = new Order();\n i++;\n order.setOrderID(rs.getInt(\"OrderID\"));\n order.setUserID(rs.getInt(\"UserID\"));\n order.setDate(new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").parse(rs.getString(\"Date\")));\n //System.out.println(\"[ INFO ] Data: \" + order.getDate().toString());\n // creo prodotto con dati venditore\n pd = new ProductDaoImpl();\n p = pd.getProduct(rs.getInt(\"ProductID\"),rs.getInt(\"ShopID\"));\n //System.out.println(\"[ INFO ] Prodotto : \" + p.getProductName());\n\n // creo indirizzo spedizione\n ad = new AddressDaoImpl();\n a = ad.getAddress(rs.getInt(\"AddressID\"));\n\n // creo l'ordine del prodotto particolare e lo aggiungo alla lista dell'ordine generale\n ps = extractProdOrder(rs,p,a);\n\n // aggiungo l'ordine del prodotto al corrispettivo ordine generale\n order.getProductList().add(ps);\n //System.out.println(order.toString());\n // ciclo sugli elementi successivi dell'ordine (basta aggiungere gli progelem alla lista ordine)\n while (rs.next()){\n\n // se trovo un elemento che non appartiene più all'ordine corrente\n if (rs.getInt(\"OrderID\") != order.getOrderID()){\n // finalizzo l'ordine\n System.out.println(\"[ INFO ] Ordine \" + order.getOrderID() + \" aggiunto\");\n orderList.add(order);\n // torno all'elemento precedente (perchè poi nel while esterno ritorno avanti di uno e dichiaro un nuovo ordine)\n rs.previous();\n // esco dal while interno (ovvero non ho più prodotti relativi all'ordine corrente)\n break;\n }\n\n // creo prodotto con dati venditore\n pd = new ProductDaoImpl();\n p = pd.getProduct(rs.getInt(\"ProductID\"), rs.getInt(\"ShopID\"));\n //System.out.println(\"[ INFO ] Prodotto : \" + p.getProductName());\n\n // creo indirizzo spedizione\n ad = new AddressDaoImpl();\n a = ad.getAddress(rs.getInt(\"AddressID\"));\n\n // creo l'ordine del prodotto particolare e lo aggiungo alla lista dell'ordine generale\n ps = extractProdOrder(rs,p,a);\n\n // aggiungo l'ordine del prodotto al corrispettivo ordine generale\n order.getProductList().add(ps);\n }\n\n }\n if (i > 0){\n orderList.add(order);\n //System.out.println(\"[ INFO ] Ordine \" + order.getOrderID() + \" aggiunto\");\n }\n\n return orderList;\n } catch (SQLException | ParseException e) {\n e.printStackTrace();\n }\n return null;\n }", "public void spawnCustomers()\r\n\t{\r\n\t\tint x = 0;\r\n\t\tfor(int i=0;i<capacity;i++)\r\n\t\t{\r\n\t\t\tx = (int)(Math.random()*customers.size()-1);\r\n\t\t\tinStore.add(customers.get(x));\r\n\t\t\tcustomers.remove(x);\r\n\t\t}\r\n\t}", "public static ArrayList<Product> addNewProduct() {\r\n\r\n\t\tSupplier selectedSup = Part02Tester.getSupplier();\r\n\r\n\t\tArrayList<Product> newProductArray = addProduct();\r\n\r\n\t\tProduct newProduct = newProductArray.get(0);\r\n\r\n\t\tArrayList<Product> prodList = selectedSup.getSupProducts();\r\n\r\n\t\tprodList.add(newProduct);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//The product is then added to the array list for the specified supplier\r\n\t\treturn newProductArray;\r\n\r\n\t}", "@Override\n public void onClick(View view) {\n int tempQty = Integer.parseInt(itemQty.getText().toString());\n tempQty = tempQty + 1;\n itemQty.setText(String.valueOf(tempQty));\n\n //get quantity\n int fillQuantity = Integer.parseInt(itemQty.getText().toString());\n //Create SaleItem\n SaleItem tempSaleItem = new SaleItem(fillName, fillQuantity, fillPrice, fillIngArr);\n //Update SaleItems Array\n saleItems.set(position, tempSaleItem);\n updateTotal();\n }", "public Checkout()\n {\n dessertList = new ArrayList<>();\n }", "public void setPriceListEntered (BigDecimal PriceListEntered);", "List<TransactionVO> addPendingTransactions(List<SignedTransaction> transactions);", "public void setCustomerPurchase(double purchase) { this.customerPurchase = purchase; }", "@Override\n public void onClick(View view) {\n int tempQty = Integer.parseInt(itemQty.getText().toString());\n if(tempQty > 0)\n {\n tempQty = tempQty - 1;\n itemQty.setText(String.valueOf(tempQty));\n }\n //get quantity\n int fillQuantity = Integer.parseInt(itemQty.getText().toString());\n //Create SaleItem\n SaleItem tempSaleItem = new SaleItem(fillName, fillQuantity, fillPrice, fillIngArr);\n //Update SaleItems Array\n saleItems.set(position, tempSaleItem);\n updateTotal();\n }", "private void addDishToList(String dsName, int amt, int dsPrice, String type) {\n int n, total;\n Map<String, Object> map = new HashMap<String, Object>();\n map.put(DNAME, dsName);\n if ((n = table.addDish(dsName, amt, dsPrice, type,\n vip.getPhone(), vip.getName())) > amt) {\n Map<String, Object> tm = new HashMap<String, Object>();\n tm.put(DNAME, dsName);\n tm.put(AMOUNT, n - amt);\n mList.remove(tm);\n map.put(AMOUNT, n);\n mList.add(map);\n } else {\n map.put(AMOUNT, amt);\n mList.add(map);\n }\n total = vip.getConsumption() + amt * dishes.get(dsName).getPrice();\n vip.setConsumption(total);\n payBtn.setText(PAY + RMB + String.valueOf(total));\n adapter.notifyDataSetChanged();\n listChanged = true;\n }", "public void add() {\n\t\tcart.add(item.createCopy());\n\t}", "public void put_The_Details_Of_Store_Two_On_GUI()\n\t{\n\t\t/* The Expected ArrayList<Object> --->\n\t\t * Index 0 = Second Store ID \n\t\t * Index 1 = Quarter Report - Second Store \n\t\t * Index 2 = Quantity Of Order - Second Store\n\t\t * Index 3 = Type Of Product In Order - Second Store\n\t\t * Index 4 = Quantity Of Each Product Type In Order - Second Store\n\t\t * Index 5 = The Revenue Of Store - Second Store\n\t\t * Index 6 = The Number Of Complaint - Second Store\n\t\t * Index 7 = Number Of Client That Fill Survey - Second Store\n\t\t * Index 8 = Total Average Of Survey Answer - Second Store \n\t\t * */\n\t\tthis.txtStoreID_2.setText(String.valueOf(CompanyManagerUI.Object_From_Comparing_For_Store_2.get(0)));\n\t\tthis.txtNumOfQuarter_2.setText(String.valueOf(CompanyManagerUI.Object_From_Comparing_For_Store_2.get(1)));\n\t\tthis.txtQuantityOfOrder_2.setText(String.valueOf(CompanyManagerUI.Object_From_Comparing_For_Store_2.get(2)));\n\t\tset_List_Of_Product_Type_Of_Store_Two();\n\t\tthis.txtRevenuOfStore_2.setText(String.valueOf(CompanyManagerUI.Object_From_Comparing_For_Store_2.get(5)));\n\t\tthis.txtNumberOfComplaint_2.setText(String.valueOf(CompanyManagerUI.Object_From_Comparing_For_Store_2.get(6)));\n\t\tthis.txtNumberOfClientInSurvey_2.setText(String.valueOf(CompanyManagerUI.Object_From_Comparing_For_Store_2.get(7)));\n\t\t\n\t\tdouble Total_Average = Double.parseDouble(new DecimalFormat(\"##.###\").format(CompanyManagerUI.Object_From_Comparing_For_Store_2.get(8)));\n\t\tthis.txtTotalAverageInSurvey_2.setText(String.valueOf(Total_Average));\n\t}", "public List<m> b(List<CheckoutItem> list) {\n ArrayList arrayList = new ArrayList();\n for (final CheckoutItem next : list) {\n com.shopee.app.d.b.a.a a2 = h.a(next);\n arrayList.add(new com.shopee.app.ui.order.b.a.a());\n List<OrderDetail> orderDetailList = next.getOrderDetailList();\n int i = 0;\n for (OrderDetail next2 : orderDetailList) {\n i += next2.getDistinctItemCount();\n com.shopee.app.ui.order.b.a.c cVar = new com.shopee.app.ui.order.b.a.c();\n cVar.b(next2);\n cVar.a(new c.a(next2, a2));\n arrayList.add(cVar);\n com.shopee.app.ui.order.b.a.d dVar = new com.shopee.app.ui.order.b.a.d();\n dVar.b(next2);\n dVar.a(new d.a(next2));\n arrayList.add(dVar);\n }\n if (i > orderDetailList.size()) {\n final int size = i - orderDetailList.size();\n com.shopee.app.ui.order.b.a.h hVar = new com.shopee.app.ui.order.b.a.h();\n hVar.b(next);\n hVar.a(new h.a() {\n public int a() {\n return size;\n }\n\n public List<Long> b() {\n return Arrays.asList(new Long[]{Long.valueOf(next.getCheckoutId())});\n }\n });\n arrayList.add(hVar);\n }\n g gVar = new g();\n gVar.b(next);\n gVar.a(new g.a() {\n public int e() {\n return R.string.sp_label_order_total;\n }\n\n public int a() {\n return next.getTotalCount();\n }\n\n public long b() {\n return next.getTotalPrice();\n }\n\n public List<Long> c() {\n return Arrays.asList(new Long[]{Long.valueOf(next.getCheckoutId())});\n }\n\n public int d() {\n if (next.isEscrow()) {\n return R.drawable.ic_guarantee;\n }\n return 0;\n }\n });\n arrayList.add(gVar);\n com.shopee.app.ui.order.b.a.b bVar = new com.shopee.app.ui.order.b.a.b();\n bVar.b(next);\n bVar.a(a2);\n arrayList.add(bVar);\n }\n return arrayList;\n }" ]
[ "0.64410645", "0.63691556", "0.6151696", "0.5958918", "0.5883304", "0.58664864", "0.57988894", "0.5796089", "0.57959265", "0.57840025", "0.57795566", "0.57671607", "0.5727044", "0.56933606", "0.56845105", "0.56783026", "0.56715506", "0.5660297", "0.56552804", "0.5633584", "0.5629469", "0.5578727", "0.5578366", "0.5569656", "0.5548251", "0.5534784", "0.5512078", "0.55029047", "0.5491076", "0.54683256", "0.5448264", "0.54436177", "0.54376113", "0.54342276", "0.54267156", "0.54224133", "0.54173076", "0.5404033", "0.5382905", "0.53828126", "0.5374733", "0.5372458", "0.5372035", "0.53710985", "0.5370427", "0.53532207", "0.53508973", "0.5348399", "0.5325118", "0.53171086", "0.5314473", "0.5307972", "0.530318", "0.5277471", "0.5275375", "0.52736723", "0.52658266", "0.52627516", "0.5261039", "0.5248225", "0.5246374", "0.5239418", "0.5236486", "0.5231466", "0.52215326", "0.52175856", "0.5217343", "0.52148634", "0.5203991", "0.5202812", "0.51929414", "0.5177183", "0.5169712", "0.5167144", "0.5163307", "0.51631194", "0.51473", "0.51465505", "0.51462007", "0.5145652", "0.5144315", "0.5136447", "0.51263344", "0.5124327", "0.5120813", "0.5107638", "0.5105512", "0.51038605", "0.510016", "0.50984365", "0.5092474", "0.50891316", "0.507878", "0.50787574", "0.5070989", "0.5069272", "0.5068519", "0.5065179", "0.5063786", "0.50579226" ]
0.538879
38
NOT part of the sample question needed in order to type up and test student code
public void add( String m, boolean e ) { purchases.add( new Gizmo( m, e) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tScanner DhakaCollege =new Scanner(System.in);\n\t\t\t\tSystem.out.println(\"This Student Got : \");\n\t\tint marks;\n\t\t\t\tmarks=DhakaCollege.nextInt();\n\t\t\n\t\tswitch (marks) {\n\t\tcase 750:\n\t\t\tSystem.out.println(\"Star Marks.Congratulation!\");\n\t\t\tbreak;\n\t\tcase 600:\n\t\t\tSystem.out.println(\"First Divition Marks.Best of Luck!\");\n\t\t\tbreak;\n\t\tcase 599:\n\t\t\tSystem.out.println(\"Second Divition Marks.Good Luck!\");\n\t\t\tbreak;\n\t\tcase 449:\n\t\t\tSystem.out.println(\" Third Divition Marks.Bad Luck!\");\n\t\t\tbreak;\n\t\tcase 359:\n\t\t\tSystem.out.println(\"Fail Marks.Try Again!\"); // not completed the program. because need to know 359-449 how to write? cte...\n\t\t\tbreak; }\n\t\t\n\t\t\t}", "public void study() {\n\t\tSystem.out.println(\"I'm a good student.\");\n\t}", "public static void doExercise5() {\n // TODO: Complete Exercise 5 Below\n\n }", "public static void doExercise4() {\n // TODO: Complete Exercise 4 Below\n\n }", "public static void studentExtended(){\n\t\tSystem.out.println(\"Enter 'EXIT' to exit to the Main Menu\");\n\t\tSystem.out.println(\"Enter 'ADD' followed by: studentID, studentName, major, class, and GPA to add a student record\");\n\t\tSystem.out.println(\"Enter 'REMOVE' followed by a studentID to remove a student\");\n\t\tSystem.out.println(\"Enter 'FIND' followed by a studentID or studentName to pull up student's information\");\n\t\tSystem.out.println(\"Enter 'ENROLL' followed by a studentID, deptID and course_Number to enroll a student\");\n\t\tSystem.out.println(\"Enter 'WITHDRAW' followed by a studentID, deptID and course_Number to withdraw a student in a course\");\n\t\tSystem.out.println(\"Enter 'SCHEDULE' followed by a studentID or studentName to list all courses student is enrolled in.\");\n\t}", "public static void doExercise3() {\n // TODO: Complete Exercise 3 Below\n\n }", "public static void studentText(){\n\t\tSystem.out.println(\"Enter: 1.'EXIT' 2.'ADD' 3.'REMOVE' 4.'FIND 5.'ENROLL' 6.'WITHDRAW' 7.'SCHEDULE' 8.'MORE' -for more detail about options\");\n\t}", "public void firstSem4() {\n chapter = \"firstSem4\";\n String firstSem4 = \"You're sitting at your computer - you can't sleep, and your only companions are \"+student.getRmName()+\"'s \" +\n \"snoring and Dave Grohl, whose kind face looks down at you from your poster. Your head is buzzing with everything you've \" +\n \"seen today.\\tA gentle 'ding' sounds from your computer, and you click your email tab. It's a campus-wide message \" +\n \"from the president, all caps, and it reads as follows:\\n\\t\" +\n \"DEAR STUDENTS,\\n\" +\n \"AS YOU MAY HAVE HEARD, THERE HAVE BEEN SEVERAL CONFIRMED INTERACTIONS WITH THE CAMPUS BEAST. THESE INTERACTIONS\" +\n \" RANGE FROM SIGHTINGS (17) TO KILLINGS (6). BE THIS AS IT MAY, REST ASSURED THAT WE ARE TAKING EVERY NECESSARY \" +\n \"PRECAUTION TO ENSURE STUDENT WELL-BEING. WE ARE ALL DEDICATED TO MAKING \"+(student.getCollege().getName()).toUpperCase()+\n \" A SAFE, INCLUSIVE ENVIRONMENT FOR ALL. TO CONTRIBUTE, I ASK THAT YOU DO YOUR PART, AND REPORT ANY SIGHTINGS, MAIMINGS,\" +\n \" OR KILLINGS TO PUBLIC SAFETY WITHIN A REASONABLE AMOUNT OF TIME. ENJOY YOUR STUDIES!\\nTOODOLOO,\\nPRESIDENT DOUG\";\n getTextIn(firstSem4);\n }", "private void searchCode() {\n }", "public static void doExercise2() {\n // TODO: Complete Exercise 2 Below\n\n }", "public void study() {\n\t\tSystem.out.println(\"学习Java\");\r\n\t}", "public static void doExercise1() {\n // TODO: Complete Exercise 1 Below\n\n }", "public static void main(){\n \n \n String question = \"There are 10 types of people in this world, those who understand binary and those who don't.\";\n String answer = \"true\";\n \n Question tfQuest = new Question (question, answer);\n tfQuest.getAnswer();\n \n }", "public static void main(String[] args) {\n Student student1 = new Student(12106078756L, \"Ole Pettersen\",\n \"Storgt 3, 7001 Trondheim\", 1234567L);\n Student student2 = new Student(12125678756L, \"Per Hansen\",\n \"Storgt 13, 7001 Trondheim\", 1234557L);\n Ansatt læreren = new Ansatt(15107078056L, \"Hanne Hansen\",\n \"Storgt 13, 7001 Trondheim\", 50);\n Personregister registeret = new Personregister();\n registeret.registrerNyPerson(læreren);\n registeret.registrerNyPerson(student1);\n registeret.registrerNyPerson(student2);\n registeret.registrerNyttFag(12106078756L, \"HiST-LO172D\"); // student1\n registeret.registrerNyttFag(12125678756L, \"HiST-LO451D\"); // student2\n student2.registrerNyttFag(\"HiST-LO451D\");\n student1.settKarakter(\"HiST-LO451D\", 'C');\n student2.settKarakter(\"HiST-LO451D\", 'B');\n registeret.settKarakter(12106078756L, \"HiST-LO445D\", 'F');\n\n char søk1 = registeret.finnKarakter(12125678756L, \"HiST-LO172D\"); // ugyldig fagnr for denne studenten\n char søk2 = registeret.finnKarakter(12125678756L, \"HiST-LO451D\");\n char søk3 = registeret.finnKarakter(12106078756L, \"HiST-LO451D\");\n char søk4 = registeret.finnKarakter(12106078756L, \"HiST-LO445D\");\n registeret.endreLønn(15107078056L, 52); // endrer lærerlønnen via registeret\n\n if (søk1 == 'Y' && søk2 == 'B' && søk3 == 'C' && søk4 == 'F' && læreren.getLønnstrinn() == 52) {\n System.out.println(\"Testkjøring ok.\");\n } else {\n System.out.println(\"Testkjøring ikke ok. Skal være Y B C F 52, det var: \"\n + søk1 + \" \" + søk2 + \" \" + søk3 + \" \" + søk4 + \" \" + læreren.getLønnstrinn());\n }\n }", "public static void main(String[] args){\n\t\tPersonalData data1= new PersonalData(1982,01,11,234567890);\n\t\tPersonalData data2= new PersonalData(1992,10,19,876543210);\n\t\tPersonalData data3= new PersonalData(1989,04,27,928374650);\n\t\tPersonalData data4= new PersonalData(1993,07,05,819463750);\n\t\tPersonalData data5= new PersonalData(1990,11,03,321678950);\n\t\tPersonalData data6= new PersonalData(1991,11,11,463728190);\n\t\tStudent student1=new Student(\"Ali Cantolu\",5005,50,data1);\n\t\tStudent student2=new Student(\"Merve Alaca\",1234,60,data2);\n\t\tStudent student3=new Student(\"Gizem Kanca\",5678,70,data3);\n\t\tStudent student4=new Student(\"Emel Bozdere\",8902,70,data4);\n\t\tStudent student5=new Student(\"Merter Kazan\",3458,80,data5);\n\n\t\t//A course (let us call it CSE141) with a capacity of 3 is created\n\t\tCourse CSE141=new Course(\"CSE141\",3);\n\n\t\t//Any 4 of the students is added to CSE141.\n\t\tif (!CSE141.addStudent(student1)) System.out.println(student1.toString()+ \" is not added\");\n\t\tif (!CSE141.addStudent(student2)) System.out.println(student2.toString()+ \" is not added\");\n\t\tif (!CSE141.addStudent(student3)) System.out.println(student3.toString()+ \" is not added\");\n\t\tif (!CSE141.addStudent(student4)) System.out.println(student4.toString()+ \" is not added\");\n\n\n\t\t//All students of CSE141 are printed on the screen.\n System.out.println(\"\\nAll students of \"+CSE141.getCourseName()+\": \");\n CSE141.list();\n\n //The capacity of CSE141 is increased.\n CSE141.increaseCapacity();\n\n //Remaining 2 students are added to CSE141.\n\t \tCSE141.addStudent(student4);\n\t \tCSE141.addStudent(student5);\n\n\t \t//All students of CSE141 are printed on the screen.\n\t \tSystem.out.println(\"\\nAll students of \"+CSE141.getCourseName()+\": \");\n\t \tCSE141.list();\n\n\t \t//Student with ID 5005 is dropped from CSE141.\n\t \tCSE141.dropStudent(student1);\n\n\t \t//All students of CSE141 are printed on the screen.\n\t \tSystem.out.println(\"\\nAll students of \"+CSE141.getCourseName()+\": \");\n\t \tCSE141.list();\n\n\t \t//Number of students enrolled to CSE141 is printed.\n\t \tSystem.out.println(\"\\nNumber of students enrolled to \"+CSE141.getCourseName()+\": \" + CSE141.getNumberOfStudents());\n\n\t \t//Birth year of best student of CSE141 is printed on the screen. (You should use getYear() method of java.util.Date class.)\n\t \tSystem.out.println(\"\\nBirth year of best student of CSE141 is \"+CSE141.getBestStudent().getPersonalData().getBirthDate().getYear());\n\n\t \t//A new course (let us call it CSE142) is created.\n\t \tCourse CSE142=new Course(\"CSE142\");\n\n\t \t//All students currently enrolled in CSE141 are added to CSE142. (You should use getStudents() method).\n\t \tStudent[] students = CSE141.getStudents();\n\t \tfor(int i=0;i<CSE141.getNumberOfStudents();i++)\n\t \t\tCSE142.addStudent(students[i]);\n\n\t \t//All students of CSE141 are removed from the course.\n\t \tCSE141.clear();\n\n\t \t//Student with ID 5005 is dropped from CSE141 and result of the operation is printed on the screen.\n\t \tSystem.out.println(\"\\nThe result of the operation 'Student with ID 5005 is dropped from \"+CSE141.getCourseName()+\"' is: \"+CSE141.dropStudent(student1));\n\n\t \t//All students of CSE142 are printed on the screen.\n\t \tSystem.out.println(\"\\nAll students of \"+CSE142.getCourseName()+\": \");\n\t \tCSE142.list();\n\n\t \t//Best student of CSE142 is dropped from CSE142.\n\t \tCSE142.dropStudent(CSE142.getBestStudent());\n\n\t \t//All students of CSE142 are printed on the screen.\n\t \tSystem.out.println(\"\\nAll students of \"+CSE142.getCourseName()+\": \");\n\t \tCSE142.list();\n\n\t \t//GPA of youngest student of CSE142 is printed on the screen.\n\t\tSystem.out.println(\"\\nThe Youngest Student's (\"+CSE142.getYoungestStudent()+\") GPA is \"+CSE142.getYoungestStudent().GPA());\n\n\t \t//Courses CSE141 and CSE142 are printed on the screen.\n\t \tSystem.out.println(\"\\nCourse Information for \"+CSE141.getCourseName()+\":\\n\" + CSE141.toString());\n\t \tSystem.out.println(\"\\nCourse Information for \"+CSE142.getCourseName()+\":\\n\" + CSE142.toString());\n\t }", "public void firstSem2a5(){\n chapter = \"firstSem2a5\";\n String firstSem2a5 = \"What about your friend here?\\\" he asks, nodding to \"+student.getRmName()+\". \\\"Oh, I'm good,\\\"\" +\n student.getRmName()+\"says quickly. I already have a job, through the underground Communist...uh, through\" +\n \" the school paper.\\\" You chat with the man a little longer before he excuses himself to go back to the \" +\n \"kitchen.\\tYou and \"+student.getRmName()+\" finish up your dinner and head back. About halfway there, your roommate \" +\n \"stops and peers at you intensely. \\\"Well?\\\" they say.\";\n getTextIn(firstSem2a5);\n }", "public void mo38117a() {\n }", "public static void main(String[] args) {\n\tScanner s=new Scanner(System.in);\r\n\tSystem.out.println(\"enter the mark\");\r\n\tint mark=s.nextInt();\r\n\tif(mark>=90&&mark<=100)\r\n\t{\r\n\t\tSystem.out.println(\"excellent\");\r\n\t}\r\n\telse if(mark>=80&&mark<=90)\r\n\t{\r\n\t\tSystem.out.println(\"very good\");\r\n\t}\r\n\telse if(mark>=70&&mark<=80)\r\n\t{\r\n\t\tSystem.out.println(\"good\");\r\n\t}\r\n\telse\r\n\t{\r\n\t\tSystem.out.println(\"improve\");\r\n\t}\r\n\t}", "public static void main(String[] args) {\n\t\tStudent ivan = new Student(\"Ivan Petrov\", \"Computer Science\");\n\t\tivan.grade=5.5;\n\t\tivan.yearInCollege=2;\n\t\tivan.money=500;\n\t\tivan.age=19;\n\t\t\n\t\tStudent teodor = new Student(\"Teodor Alexiev\", \"Computer Science\");\n\t\tteodor.grade=5.25;\n\t\tteodor.yearInCollege=3;\n\t\tteodor.money=300;\n\t\tteodor.age=20;\n\t\t\n\t\tStudent irina = new Student(\"Irina Paraskelova\", \"Computer Science\");\n\t\tirina.grade = 5.65;\n\t\tirina.money=400;\n\t\tirina.age=18;\n\t\t\n\t\tStudent vasilena = new Student (\"Vasilena Kremenlieva\", \"Computer Science\");\n\t\tvasilena.grade = 5.0;\n\t\tvasilena.money=1000;\n\t\tvasilena.age=18;\n\t\t\n\t\tStudent trifon = new Student(\"Trifon Stoimenov\", \"Computer Science\");\n\t\ttrifon.grade = 5.70;\n\t\ttrifon.yearInCollege=3;\n\t\ttrifon.money = 800;\n\t\ttrifon.age=21;\n\t\t\n\t\tStudent alexander = new Student (\"Alexander Dobrikov\", \"Finance\");\n\t\talexander.grade = 4.75;\n\t\talexander.yearInCollege = 2;\n\t\talexander.money = 600;\n\t\talexander.age = 20;\n\t\t\n\t\tStudent mirela = new Student (\"Mirela Kostadinova\", \"Finance\");\n\t\tmirela.grade = 5.5;\n\t\tmirela.yearInCollege=1;\n\t\tmirela.money=100;\n\t\tmirela.age=19;\n\t\t\n\t\tStudent velizar = new Student(\"Velizar Stoyanov\", \"Finance\");\n\t\tvelizar.grade = 6.0;\n\t\tvelizar.yearInCollege = 3;\n\t\tvelizar.money = 500;\n\t\tvelizar.age = 22;\n\t\t\n\t\tStudent antoaneta = new Student(\"Antoaneta Borisova\", \"Finance\");\n\t\tantoaneta.grade = 5.30;\n\t\tantoaneta.yearInCollege = 2;\n\t\tantoaneta.money = 750;\n\t\tantoaneta.age = 19;\n\t\t\n\t\tirina.upYear();\n\t\tSystem.out.println(\"Irina is in year \"+irina.yearInCollege+\" of college.\");\n\t\t\n\t\tvasilena.receiveScholarship(5.0, 350);\n\t\tSystem.out.println(vasilena.money);\n\t\t\n\t\tStudentGroup cs1 = new StudentGroup(\"Computer Science\");\n\t\tcs1.addStudent(ivan);\n\t\tcs1.addStudent(teodor);\n\t\tcs1.addStudent(irina);\n\t\tcs1.addStudent(vasilena);\n\t\tcs1.addStudent(trifon);\n\t\tteodor.upYear();\n\t\tSystem.out.println(teodor.isDegree);\n\t\t\n\t\tcs1.addStudent(velizar);\n\t\t\n\t\tcs1.printStudentsInGroup();\n\t\tSystem.out.println(cs1.theBestStudent());\n\t\t\n\t\tcs1.emptyGroup();\n\t\tcs1.printStudentsInGroup();\n\t\t\n\t\tStudentGroup fin1 = new StudentGroup(\"Finance\");\n\t\t\n\t\tfin1.addStudent(alexander);\n\t\tfin1.addStudent(mirela);\n\t\tfin1.addStudent(velizar);\n\t\tfin1.addStudent(antoaneta);\n\t\t\n\t\tfin1.printStudentsInGroup();\n\t\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tshowInfo(\"홍길동\");\r\n\t\tshowInfo(\"김길동\"); //문자\r\n\t\t\r\n\t\tStudentInfo std = new StudentInfo(); // std 변수를 매개값으로받는\r\n\t\tstd.setStudentName(\"박소현\");\r\n\t\tshowInfo(std);\r\n\t\tstd.setEng(90);\r\n\t\tstd.setMath(95);\r\n\t\tshowInfo(std);\r\n\t\t\r\n\t\tStudentInfo[] stds = new StudentInfo[3]; // 배열을 매개값으로 받는\r\n\t\t\r\n\t\tstds[0] = new StudentInfo(\"김영호\", 77, 88);\r\n\t\tstds[1] = new StudentInfo(\"이영호\", 79, 89);\r\n\t\tstds[2] = new StudentInfo(\"박영호\", 72, 86);\r\n\t\tshowInfo(stds);\r\n\r\n\t}", "public static void main(String[] args) {\n\t\t\t\n\t\t Scanner sc = new Scanner(System.in);\n\t\t\tStudent sv1 = new Student(1,\"Le Huy Hoai\",5.2f,7.2f);\n\t\t\tStudent sv2 = new Student(2,\"Linh Tran\",7.2f,5.5f);\n\t\t\tStudent sv3 = new Student();\n\t\t\t\n\t\t\tSystem.out.println(\"Id sinh vien 3: \");\n\t\t\tsv3.setId(sc.nextInt());\n\t\t\tsc.nextLine();\n\t\t\tSystem.out.println(\"Ten sinh vien 3: \");\n\t\t\tsv3.setName(sc.nextLine());\n\t\t\t\n\t\t\tSystem.out.println(\"Diem ly thuyet sinh vien 3: \");\n\t\t\tsv3.setDiemLT(sc.nextFloat());\n\t\t\tSystem.out.println(\"Diem thuc hanh sinh vien 3: \");\n\t\t\tsv3.setDiemTH(sc.nextFloat());\n\t\t\t\n\t\t\tSystem.out.println(sv1);\n\t\t\tSystem.out.println(sv2);\n\t\t\tSystem.out.println(sv3);\n\t\t\t\n\t\t\t\n\t\t\t\n\t}", "public static void main(String[] args) {\n\t\tStudent student;\t// 학생 객체\r\n\t\tSection section;\t// 교과목 객체\r\n\t\tGrade grade;\t\t// 성적 객체\r\n\t\t\r\n\t\t// 학생 객체 생성\r\n\t\tstudent = new myStudent(\"김용환\",true,1995);\t\r\n\t\t\r\n\t\t// 학생 객체에 넣을 과목과 성적입력\r\n\t\tsection = new mySection(\"자료구조\");\t\r\n\t\tgrade = new myGrade(\"A\");\r\n\t\tstudent.updateTranscript(section,grade);\r\n\t\t\r\n\t\tsection = new mySection(\"논리회로\");\r\n\t\tgrade = new myGrade(\"B+\");\r\n\t\tstudent.updateTranscript(section, grade);\r\n\t\t\r\n\t\t// 학생의 이름과 성적정보 출력\r\n\t\tSystem.out.print(student.getName() + \" \"); \r\n\t\tstudent.printTranscript();\r\n\t}", "public static void main(String[] args) {\n\n\t\tScanner input=new Scanner(System.in);\n\t\tString responsibility;\n\t\tString instructor;\n\t\tSystem.out.println(\"Enter name of the instructor\");\n\t\tinstructor=input.nextLine();\n\t\t\n\t\tswitch(instructor) {\n\t\t\n\t\tcase \"Shiva\":\n\t\t responsibility=\"Will take care of Java Assignment\";\n\t\t break;\n\t\t\n\t\tcase\"Sandish\":\n\t\t\tresponsibility=\"Will take care of SDLC Assignment\";\n\t\t\tbreak;\n\t\t\t\n\t\tcase\"Weqas\":\n\t\t\tresponsibility=\"Will take care of Selenium Assignment\";\n\t\t\tbreak;\n\t\t\n\t\tcase\"Asel\":\n\t\t\tresponsibility=\"Will take care of every Assignment\";\n\t\t\tbreak;\n\t\t\tdefault:\n\t\t\tresponsibility=\"Invalid instructor selected\";\n\t\t\t\n\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(responsibility);\n\t}", "public static void main()\n {\n float m= 0;\n Scanner sc= new Scanner(System.in);\n System.out.println(\"Enter name of the student\");\n String name= sc.nextLine();\n System.out.println(\"Enter the student's roll no.\");\n int roll= sc.nextInt();\n System.out.println(\"Enter the marks of 5 subjects(Press enter after each)\");\n for(int i=1;i<=5; i++)\n {\n float m1= sc.nextFloat();\n m= m+m1;\n }\n m= (m/5);\n System.out.println(\"Student's name: \"+ name);\n System.out.println(\"Roll no.: \"+ roll);\n String stream= \"\";\n if(m>=90)\n {\n stream= \"Science with Computers\";\n }\n else if(m>=80 && m<=89)\n {\n stream= \"Science without Computers\";\n }\n else if(m>=70 && m<=79)\n {\n stream= \"Commerce with Maths\";\n }\n else if(m>=60 && m<=69)\n {\n stream= \"Commerce without Maths\";\n }\n else\n {\n stream= \"Invalid Values\";\n }\n System.out.println(stream);\n System.out.println();\n }", "public static void generateCode()\n {\n \n }", "@Test\n\tvoid testExtractStudentName() {\n\t\t\n\t\t// Create a result object and set the assignment name\n\t\tResult result = new Result();\n\t\tresult.setAssignmentName(\"last_first_a1.docx\");\n\t\t\n\t\t// Extract the student name from the assignment name\n\t\tresult.extractStudentName();\n\t\t\n\t\t// Assert first name\n\t\tassertTrue(\"first\".equals(result.getStudentFirstName()));\n\t\t\n\t\t// Assert last name\n\t\tassertTrue(\"last\".equals(result.getStudentLastName()));\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tString answer = JOptionPane.showInputDialog(\"Can you write code?(Do not use capitals)\");\t\n\t\t// 2. If they say \"yes\", tell them they will rule the world.\n\t\tif(answer.equals(\"yes\")){\n\t\tJOptionPane.showMessageDialog(null,\" Of course you do, you're in a programming class.\");\t\n\t\t}else if(answer.equals(\"no\")){\n\t\t\tJOptionPane.showMessageDialog(null,\" Are you serios?! You're in a coding class!\");\t\n\t\t}else{\n\t\t\tJOptionPane.showMessageDialog(null,\" What?\");\n\t\t}\n\t\t// 3. Otherwise, wish them good luck washing dishes.\n\n\t}", "public static void main(String[] args) {\n Student ram = new Student();\n \n ram.setRollNumber(202);\n ram.setStudentName(\"Rakshitha\");\n ram.setMarkScored(-98);\n ram.setEmail(\"[email protected]\");\n \n \n System.out.println(ram.getMarkScored());\n \n Student shyam = new Student(203,\"Shyam\",97,\"[email protected]\");\n \n System.out.println(shyam.getStudentName());\n System.out.println(shyam.getMarkScored());\n\t}", "public static void main(String[] args) {\n String[][][] temp = soRandom();\n for (int i = 0; i < temp.length; i++) {\n for (int j = 0; j < temp[i].length; j++) {\n for (int k = 0; k < temp[i][j].length; k++) {\n temp[i][j][k] = coder();\n }\n }\n }\n //create empty array\n String[][][] temp2 = soRandom();\n //print array\n print(temp);\n print(temp2);\n //copy over array\n temp2 = holoport(temp, temp2);\n //print copied array\n print(temp2);\n //accept code for sampling()\n Scanner s = new Scanner(System.in);\n String code = \"\";\n boolean input = true;\n while (input) {\n System.out.println(\"Please enter a code\");\n code = s.next();\n if (code.length() == 6) {\n input = false;\n }\n }\n //run the rest of the methods with no return values\n sampling(temp2, code);\n percentage(temp, temp2);\n frankenstein(temp2);\n\n\n }", "public static void main(String[] args) {\r\n\t\t\r\n\t\t// Creation of the constructor nqMarkScheme with parameters 198 and 6 of the class NumericalQuestion.\r\n\t\tNumericalQuestion nqMarkScheme = new NumericalQuestion(198, 6);\r\n\t\t\r\n\t\t// Creation of the constructor bqMarkScheme with parameters true and 1 of the class BooleanQuestion.\r\n\t\tBooleanQuestion bqMarkScheme = new BooleanQuestion(true, 1);\r\n\t\t\r\n\t\t// Creation of the constructor mcpMarkScheme with parameters false, false, false and 3 of the class MultipleChoiceQuestion.\r\n\t\tMultipleChoiceQuestion mcpMarkScheme = new MultipleChoiceQuestion(false, false, false, 3);\r\n\t\t\r\n\t\t// Creation of the constructor markScheme with parameters nqMarkScheme, bqMarkScheme and mcpMarkScheme of the class Exam.\r\n\t\tExam markScheme = new Exam(nqMarkScheme, bqMarkScheme, mcpMarkScheme);\r\n\t\t\r\n\t\t// Creation of the constructor nqAttempt with parameters 196 and 0 of the class NumericalQuestion.\r\n\t\tNumericalQuestion nqAttempt = new NumericalQuestion(196, 0);\r\n\t\t\r\n\t\t// Creation of the constructor bqAttempt with parameters true and 0 of the class BooleanQuestion.\r\n\t\tBooleanQuestion bqAttempt = new BooleanQuestion(true, 0);\r\n\t\t\r\n\t\t// Creation of the constructor mcpAttempt with parameters false, false, false and 0 of the class MultipleChoiceQuestion.\r\n\t\tMultipleChoiceQuestion mcpAttempt = new MultipleChoiceQuestion(false, false, false, 0);\r\n\t\t\r\n\t\t// Creation of the constructor examAttempt with parameters nqAttempt, bqAttept and mcpAttempt of the class Exam.\r\n\t\tExam examAttempt = new Exam(nqAttempt, bqAttempt, mcpAttempt);\r\n\t\t\r\n\t\t// Creation of the object examMarker of the class Marker.\r\n\t\tMarker examMarker = new Marker();\r\n\t\t\r\n\t\t// Calling the method markAttempt using the object examMarker and passing examAttempt and markScheme as parameters. \r\n\t\texamMarker.markAttempt(examAttempt, markScheme);\r\n\t\t\r\n\t\t// Declaration and calculation of the variable mark, by adding together the mark of each of the three questions.\r\n\t\tint mark = examAttempt.getTotalMark();\r\n\t\t\r\n\t\t// Outputs the marks that the student has taken, out of the maximum available marks of the first question.\r\n\t\tSystem.out.println(\"Question1: \" + examMarker.getQuestion1Mark() + \" out of \" + nqMarkScheme.getMark());\r\n\t\t// Outputs the marks that the student has taken, out of the maximum available marks of the second question.\r\n\t\tSystem.out.println(\"Question2: \" + examMarker.getQuestion2Mark() + \" out of \" + bqMarkScheme.getMark());\r\n\t\t// Outputs the marks that the student has taken, out of the maximum available marks of the third question.\r\n\t\tSystem.out.println(\"Question3: \" + examMarker.getQuestion3Mark() + \" out of \" + mcpMarkScheme.getMark());\r\n\t\t\r\n\t\t// Output the total marks the student has taken.\r\n\t\tSystem.out.println(\"Total Mark awarded: \" + mark);\r\n\t\t\r\n\t\t// Calculates and prints the classification of the student based on their total mark.\r\n\t\tSystem.out.println(\"Classification: \" + examMarker.convertMarksToClassification(mark, 9, 7, 6));\r\n\t\r\n\t\t\r\n\t}", "public static void main(String[] args){\n int bananas = 34;\n System.out.println(bananas);\n\n int students = 400;\n System.out.println(students);\n\n int phonebook=100, textbook=200, computers=300;\n System.out.println(phonebook+textbook+computers);\n\n int peopleInCity=1000, birdsOnTree=2000, fishInLake=3000;\n System.out.println(peopleInCity);\n System.out.println(birdsOnTree);\n System.out.println(fishInLake);\n\n int studentsInNY = 25, studentsInVA = 50, studentsInCO = 5;\n System.out.println(studentsInNY);\n System.out.println(studentsInVA);\n System.out.println(studentsInCO);\n\n\n\n }", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\n\t\t\n\t ICCChamp2017();\n\t System.out.println(\"England\");\n\t FinalIndVsPAk();\n\t System.out.println(\"Finals India Lifted ICC 2017\");\n\t \n\t\tFirstUmpieRevire();\n\t\tSystem.out.println(\"Simon Taufel First Umpier Reviews the Score Board\");\n\t SecondUmpireReview();\n\t System.out.println(\"Billy Bowden Second Umpier Reviews the Score Board\");\n\t ThridUmpireReview();\n\t System.out.println(\"David Shepard Thrid Umpier Reviews the Score Board\");\n\t \n\t \n\t Firstcommentary();\n\t System.out.println(\"Ravi is the commentary\");\n\t Secondcommentary();\n\t System.out.println(\"Gavaskar is the commentary\");\n\t \n\t \n\t \n\t \n\t\t\n\t\t\n\t\tint Dhoni, Rahul, Sachin,Kholi;\n\t System.out.println(\"Enter four Batsman Score Display the Mini Score Of the Batsman \");\n\t in = new Scanner(System.in);\n\t \n\t \n\t \n\t \n\t Dhoni = in.nextInt();\n\t Kholi = in.nextInt();\n\t Rahul = in.nextInt();\n\t Sachin = in.nextInt();\n\t \n\t if ( Dhoni <= Kholi && Dhoni <= Rahul && Dhoni <= Sachin )\n\t System.out.println(\"Dhoni is the Mini Scored Btsmans.\");\n\t else\n\t \t if ( Kholi <= Dhoni && Kholi <= Rahul && Kholi <= Sachin )\n\t System.out.println(\"Kholi is the Min Scored Batsmans .\");\n\t else if ( Rahul <= Dhoni && Rahul <= Kholi && Rahul <= Sachin )\n\t System.out.println(\"Rahul is the Min Scored Batsmans.\");\n\t else if ( Sachin <= Dhoni && Sachin <= Kholi && Sachin <= Rahul ) \n\t \t System.out.println(\"Sachin is the Min Scored Batsmans.\"); \n\t else \n\t System.out.println(\"Every one Scored 0 Duck\");\n\t \n\t \n\t int Sami,Irfan, Jaffar,Imran;\n\t System.out.println(\"Enter four Blowers Who Taken Wickets Display the Mini Wickets Of the Match\");\n\t \n\t \n\t \n\t \n\t \n\t Sami = in.nextInt();\n\t Irfan = in.nextInt();\n\t Jaffar = in.nextInt();\n\t Imran = in.nextInt();\n\t \n\t if ( Sami <= Irfan && Sami <= Jaffar && Sami <= Imran )\n\t System.out.println(\"Sami is the Mini Scored Btsmans.\");\n\t else\n\t \t if ( Imran <= Irfan && Imran <= Jaffar && Imran <= Sami )\n\t System.out.println(\"Imran is the Min Scored Batsmans .\");\n\t else if ( Irfan <= Sami && Irfan <= Jaffar && Irfan <= Imran )\n\t System.out.println(\"Irfan is the Min Scored Batsmans.\");\n\t else if (Jaffar <= Irfan && Jaffar <= Jaffar &&Jaffar <= Imran ) \n\t \t System.out.println(\"Jaffar is the Min Scored Batsmans.\"); \n\t else \n\t System.out.println(\"No on Taken Wickets\");\n\t \n\t \n\t \n\t \n\t\t \n\t}", "public static void main(String[] agrs){\n double kilometers = (1.609334 * 100);\n int highScore=50;\n\n if(highScore==50) {\n System.out.println(\"This is an expression\");\n }\n\n //Challenge\n //In the following code that i will type below, write downd\n //what parts of the code are expressinos\n\n int score = 100;\n if(score>90) {\n System.out.println(\"You got the high score!\");\n score=0;\n }\n\n //The expressions above are =,100, sout, the string in sout\n\n\n\n\n\n\n\n\n\n }", "public static void main(String[] args) {\n Student sv;\n\n //cap phat bo nho cho bien doi tuong [sv] \n sv = new Student();\n\n //gan gia tri cho cac fields cua bien [sv]\n sv.id = \"student100\";\n sv.name = \"Luu Xuan Loc\";\n sv.yob = 2000;\n sv.mark = 69;\n sv.gender = true;\n\n //in thong tin doi tuong [sv]\n sv.output();\n\n //tao them 1 bien doi tuong [sv2] kieu [Student]\n Student sv2 = new Student();\n //gan gia tri cho cac fields cua doi tuong [sv2]\n sv2.id = \"student101\";\n sv2.name = \"Nguyen Ngoc Son\";\n sv2.yob = 2004;\n sv2.mark = 85;\n sv2.gender = false;\n\n //in thong tin doi tuong [sv2]\n sv2.output();\n\n //tao them 1 bien doi tuong [sv3] kieu [Student]\n Student sv3 = new Student();\n //in thong tin doi tuong [sv3]\n sv3.output();\n }", "public void firstSem3() {\n chapter = \"firstSem3\";\n String firstSem3 = \"The calm afternoon is suddenly broken up by a shout. A little way in front of you, a man runs out onto \" +\n \"the path - he has a long beard and is festooned with campaign buttons. \\\"Find your dream!\\\" he shouts, \" +\n \"maybe to the sky, maybe to a tree. \\\"More like find your place in the corporate machinery, hahahaha!\\\"\\t\" +\n \"You stand stock-still for a moment, bewildered, until someone taps on your shoulder. It's your roommate. \\\"Oh,\" +\n \" that's just Crazy Joe, don't worry. I met him during orientation. He says weird shit, but he's totally \" +\n \"harmless.\\\"\\n\\t\"+student.getRmName()+\" puts a hand on your shoulder and gently steers you past the raving man. \" +\n \"As you pass, Crazy Joe's eyes focus on you, and he whispers in a voice only you can hear: \\\"Beware. Beware the beast.\\\"\" +\n \"\\n\\tThat's weird as fuck, right?\\n\\tLATER THAT NIGHT...\";\n getTextIn(firstSem3);\n }", "public static void main(String[] args) {\n\n Student st = new Student (\"shagria\",\"kabir\",95,101);\n\n Assert.assertEquals(st.getFirstName(),\"shagria\");\n Assert.assertEquals(st.getLastName(),\"kabir\");\n Assert.assertEquals(st.getScore(),90);\n Assert.assertEquals(st.getId(),101);\n\n }", "private void strin() {\n\n\t}", "public static void main (String[] args) {\n\t String s = \"aa6?9\";\r\n\t System.out.println(QuestionsMarks(s));\r\n\t String s1 = \"acc?7??sss?3rr1??????5\";\r\n\t System.out.println(QuestionsMarks(s1));\r\n// Scanner s = new Scanner(System.in);\r\n// System.out.print(QuestionsMarks(s.nextLine())); \r\n }", "public void mo21792Q() {\n }", "public static void main(String[] args)\n {\n \t// Prints the name of the student.\n System.out.println(\"Walter Conway\");\n System.out.println();\n \t// Prints the short-term goal(s) of the student.\n System.out.println(\"Finish the Half Ironman in Augusta, GA.\"\n \t\t\t\t+ \" Pass my Fall semester courses.\"\n \t\t\t\t+ \" Find a part-time job.\"\n \t\t\t\t+ \" Find a apartment.\"\n \t\t\t\t+ \" Quit biting finger nails.\"\n \t\t\t\t\t\t+ \" Read the Bible daily.\");\n \t// Prints the medium-term goal(s) of the student.\n System.out.println(\"Find a co-op job for the summer semester.\"\n \t\t\t\t+ \" Switch my cell phone service to Verizon.\"\n \t\t\t\t+ \" Take the GRE exam to apply for graduate school.\"\n \t\t\t\t+ \" Finish reading the Bible cover to cover.\");\n \t// Prints the long-term goal(s) of the student.\n System.out.println(\"Become a better Christian\"\n \t\t\t\t+ \" with the Lord's help and guidance.\"\n \t\t\t\t+ \" Finish graduate school.\"\n \t\t\t\t+ \" Find a job or create a business.\"\n \t\t\t\t+ \" Get married to the right person that\"\n \t\t\t\t\t\t+ \" God has set aside for me to marry.\");\n }", "public static void main(String[] args) {\n\t\tScanner s=new Scanner(System.in);\r\n\t\tSystem.out.print(\"Enter the Mark:\");\r\n\t\tint Mark=s.nextInt();\r\n\t\tif(Mark>=90)\r\n\t\t{\r\n\t\t\tSystem.out.printf(\"Grade A\");\r\n\t\t}\r\n\t\telse if(Mark<90 && Mark>=70)\r\n\t\t{\r\n\t\t\tSystem.out.printf(\"Grade B\");\r\n\t\t}\r\n\t\telse if(Mark<70 && Mark>=50)\r\n\t\t{\r\n\t\t\tSystem.out.printf(\"Grade C\");\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\tSystem.out.printf(\"Fail\");\r\n\t\t}\r\n\r\n\r\n\t}", "public static void main(String[] args) {\n\n String inputFile = \"data/input.txt\";\n String outputFile = \"data/output.txt\";\n String studentInfo = \"data/students_info.txt\";\n String studentData = \"\";\n BufferedReader reader = null;\n String[] data = null;\n boolean sex = false;\n try {\n reader = new BufferedReader(new FileReader(studentInfo));\n studentData = reader.readLine();\n data = studentData.split(\" \");\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n \n if (data[3].equals(\"1\")) {\n sex = true;\n }\n\n Student testStudent1 = new Student(Integer.parseInt(data[0]),data[1],sex,Integer.parseInt(data[3]));\n\n testStudent1.doHomework(inputFile,outputFile,\"Со\");\n\n }", "private void generate_verification_code(StringBuffer Code, DataType ReturnType)\n {\n String TypeString = ReturnType.getDescriptor(m_Language);\n\n Code.append(\"\\tvoid verify_case(int Case, const \" + TypeString + \" &Expected, const \" + TypeString + \" &Received) { \");\n\n Code.append(\"cerr << \\\"Test Case #\\\" << Case << \\\"...\\\"; \");\n\n // Print \"PASSED\" or \"FAILED\" based on the result\n Code.append(\"if (Expected == Received) cerr << \\\"PASSED\\\" << endl; \");\n Code.append(\"else { cerr << \\\"FAILED\\\" << endl; \");\n\n if (ReturnType.getDimension() == 0)\n {\n Code.append(\"cerr << \\\"\\\\tExpected: \\\\\\\"\\\" << Expected << \\'\\\\\\\"\\' << endl; \");\n Code.append(\"cerr << \\\"\\\\tReceived: \\\\\\\"\\\" << Received << \\'\\\\\\\"\\' << endl; } }\\n\");\n }\n else\n {\n Code.append(\"cerr << \\\"\\\\tExpected: \\\" << print_array(Expected) << endl; \");\n Code.append(\"cerr << \\\"\\\\tReceived: \\\" << print_array(Received) << endl; } }\\n\");\n }\n // end if\n }", "public static void main(String[] args) {\n\t\tStudent s = new Student(\"Bora\", \"Boric\", 1989, 39998, 3, 7.59);\r\n\t\tStudent s1 = new Student(\"Mika\", \"Mikic\", 1998, 39322, 1, 8.59);\r\n\t\tStudent s2 = new Student(\"Kasa\", \"Kasic\", 1991, 39299, 2, 8.94);\r\n\t\tProfesor p = new Profesor(\"Stanko\", \"Stanic\", 1980, \"Predavac\");\r\n\t\tProfesor p1 = new Profesor(\"Sasa\", \"Sasic\", 1984, \"Asistent\");\r\n\t\tp.dodajPredmet(\"Statistika\");\r\n\t\tp.dodajPredmet(\"Matematika\");\r\n\t\tp1.dodajPredmet(\"Teorija cena\");\r\n\t\tp1.dodajPredmet(\"Makroekonomija\");\r\n\t\tSystem.out.println(s.ispis());\r\n\t\tSystem.out.println(s1.ispis());\r\n\t\tSystem.out.println(s2.ispis());\r\n\t\tSystem.out.println(p.ispisi());\r\n\t\tSystem.out.println(p1.ispisi());\r\n\r\n\t}", "public static void main(String[] args) \r\n\t{\n\t\tString[] studentName= {\"Arockia\",\"Ananth\",\"raj\",\"Venky\",\"Vijay\"};\r\n\t\tint[] studentAge= {23,23,24,25,26,};\r\n\t\tchar[][] studentGrade= {{'A','B','C','D','F'},{'A','B','A','D','F'},{'A','A','C','D','F'},{'A','A','A','A','F'},{'B','B','B','B','F'}};\r\n\t\tScanner scr=new Scanner(System.in);\r\n\t\t\t\r\n\t\tSystem.out.println(\"Print Students Name:\");\r\n\t\tfor(String studentsName:studentName)\r\n\t\t{\r\n\t\t\tSystem.out.println(studentsName);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"\\nPrint Students Age:\");\r\n\t\tfor(int studentsAge:studentAge)\r\n\t\t{\r\n\t\t\tSystem.out.println(studentsAge);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "@Test\n void qureyInfoByStudentNum() {\n addInfoForGEIAS();\n }", "public void mo9848a() {\n }", "public static void main(String[] args) {\n String input_one = \"Fourscore and seven years ago our fathers brought forth on this continent a new nation, conceived in liberty and dedicated to the proposition that all men are created equal. Now we are engaged in a great civil war, testing whether that nation, or any nation so conceived and so dedicated, can long endure. We are met on a great battlefield of that war. We have come to dedicate a portion of that field as a final resting-place for those who here gave their lives that that nation might live. It is altogether fitting and proper that we should do this. But, in a larger sense, we cannot dedicate — we cannot consecrate — we cannot hallow — this ground. The brave men, living and dead, who struggled here have consecrated it, far above our poor power to add or detract. The world will little note, nor long remember what we say here, but it can never forget what they did here. It is for us the living, rather, to be dedicated here to the unfinished work which they who fought here have thus far so nobly advanced. It is rather for us to be here dedicated to the great task remaining before us — that from these honored dead we take increased devotion to that cause for which they gave the last full measure of devotion — that we here highly resolve that these dead shall not have died in vain — that this nation shall have a new birth of freedom and that government of the people, by the people, for the people, shall not perish from the earth.\";\r\n String input_two = \"Oh, say can you see, by the dawn's early light,What so proudly we hailed at the twilight's last gleaming?Whose broad stripes and brightstars,through the perilous fight,O'er the ramparts we watched, were so gallantly streaming?And the rockets' red glare, the bombs bursting in air,Gave proof through the night that our flag was still there.O say, does that star-spangled banner yet waveO'er the land of the free and the home of the brave?On the shore, dimly seen through the mists of the deep,Wherethe foe's haughty host in dread silence reposes,What isthatwhichthe breeze, o'er the towering steep,As it fitfully blows, now conceals, now discloses?Now it catches the gleam of the morning's first beam,In full glory reflected now shines on the stream:'Tis the starspangled banner! O long may it waveO'er the land of the free and the home of the brave. And where is that band who so vauntingly swore That the havoc of war and the battle's confusionA home and a country should leaveus no more?Their blood has wiped out their foulfootstep'spollution.Norefuge could save the hireling and slaveFrom the terror of flight, or the gloom of the grave:And the star-spangled banner in triumph doth waveO'er theland of the free and the home of the brave.Oh! thus be it ever, when freemen shall stand Between their loved homes and the war's desolation!Blest with victory and peace, may the heaven-rescued land Praise the Power that hath made and preserved us a nation.Then conquer we must, for our cause it is just,And this be our motto: In God is our trust. And the star-spangled banner forever shall waveO'er the land of the free and the home of \";\r\n\r\n String input_upper = input_one.toUpperCase();\r\n String input_upper2 = input_two.toUpperCase();\r\n // System.out.println(input_upper);\r\n String[] pattern = { \"FREE\", \"BRAVE\", \"NATION\" };\r\n // Brute Force algorithm\r\n System.out.println();\r\n System.out.println(\"**************************** OUTPUT OF FIRST INPUT FILE: *****************************\");\r\n System.out.println();\r\n System.out.println(\"\\t\\t\\t\\t\\tBRUTE FORCE ALGORITHM:\");\r\n System.out.println(\"=====================================================================================\");\r\n BF_Search bf = new BF_Search();\r\n long bf_startTime = System.nanoTime();\r\n for (int i = 0; i < pattern.length; i++) {\r\n bf.brute_force_search(input_upper, pattern[i]);\r\n }\r\n long bf_endTime = System.nanoTime();\r\n bf.printBF_Comparison();\r\n System.out.println(\"It took: \" + (bf_endTime - bf_startTime) + \" nanoseconds\");\r\n\r\n // Knuth Moris Pratt algorithm\r\n System.out.println(\"\\t\\t\\t\\t\\tKNUTH MORIS PRATT ALGORITHM:\");\r\n System.out.println(\"=====================================================================================\");\r\n KMP_Search kmp = new KMP_Search();\r\n long kmp_startTime = System.nanoTime();\r\n for (int i = 0; i < pattern.length; i++) {\r\n kmp.KMPSearch(pattern[i], input_upper);\r\n if (i == pattern.length - 1) {\r\n kmp.printKM_Comparisons();\r\n }\r\n }\r\n long kmp_endTime = System.nanoTime();\r\n System.out.println(\"It took: \" + (kmp_endTime - kmp_startTime) + \" nanoseconds\");\r\n\r\n // Boyer Moore algorithm\r\n System.out.println();\r\n System.out.println(\"\\t\\t\\t\\t\\tBOYER MOORE ALGORITHM:\");\r\n System.out.println(\"=====================================================================================\");\r\n BM_Search bm = new BM_Search();\r\n char[] bm_input = input_upper.toCharArray();\r\n char[] bm_pattern = new char[] {};\r\n long bm_startTime = System.nanoTime();\r\n for (String i : pattern) {\r\n bm_pattern = i.toCharArray();\r\n bm.bm_search(bm_input, bm_pattern);\r\n if (pattern[pattern.length - 1] == i) {\r\n bm.printBM_Comparison();\r\n }\r\n }\r\n long bm_endTime = System.nanoTime();\r\n System.out.println(\"It took: \" + (bm_endTime - bm_startTime) + \" nanoseconds\");\r\n\r\n // Rabin Karp algorithm\r\n System.out.println(\"\\t\\t\\t\\t\\tRABIN KARP ALGORITHM:\");\r\n System.out.println(\"=====================================================================================\");\r\n RKA_Search rk = new RKA_Search();\r\n int q = 101;\r\n long rk_startTime = System.nanoTime();\r\n for (int i = 0; i < pattern.length; i++) {\r\n rk.rka_search(pattern[i], input_upper, q);\r\n if (i == pattern.length - 1) {\r\n rk.printRKA_Comparison();\r\n }\r\n }\r\n long rk_endTime = System.nanoTime();\r\n System.out.println(\"It took: \" + (rk_endTime - rk_startTime) + \" nanoseconds\");\r\n System.out.println();\r\n System.out.println(\"************************* OUTPUT OF SECOND INPUT FILE: *******************************\");\r\n // Brute Force algorithm\r\n System.out.println();\r\n // System.out.println();\r\n System.out.println(\"\\t\\t\\t\\t\\tBRUTE FORCE ALGORITHM:\");\r\n System.out.println(\"=====================================================================================\");\r\n BF_Search bf2 = new BF_Search();\r\n long bf_startTime1 = System.nanoTime();\r\n for (int i = 0; i < pattern.length; i++) {\r\n bf.brute_force_search(input_upper2, pattern[i]);\r\n }\r\n long bf_endTime2 = System.nanoTime();\r\n bf2.printBF_Comparison();\r\n System.out.println(\"It took: \" + (bf_endTime2 - bf_startTime1) + \" nanoseconds\");\r\n\r\n // Knuth Moris Pratt algorithm\r\n System.out.println(\"\\t\\t\\t\\t\\tKNUTH MORIS PRATT ALGORITHM:\");\r\n System.out.println(\"=====================================================================================\");\r\n KMP_Search kmp2 = new KMP_Search();\r\n long kmp_startTime1 = System.nanoTime();\r\n for (int i = 0; i < pattern.length; i++) {\r\n kmp2.KMPSearch(pattern[i], input_upper2);\r\n if (i == pattern.length - 1) {\r\n kmp2.printKM_Comparisons();\r\n }\r\n }\r\n long kmp_endTime2 = System.nanoTime();\r\n System.out.println(\"It took: \" + (kmp_endTime2 - kmp_startTime1) + \" nanoseconds\");\r\n\r\n // Boyer Moore algorithm\r\n System.out.println(\"\\t\\t\\t\\t\\tBOYER MOORE ALGORITHM:\");\r\n System.out.println(\"=====================================================================================\");\r\n BM_Search bm2 = new BM_Search();\r\n char[] bm_input2 = input_upper.toCharArray();\r\n char[] bm_pattern2 = new char[] {};\r\n long bm_startTime1 = System.nanoTime();\r\n for (String i : pattern) {\r\n bm_pattern2 = i.toCharArray();\r\n bm.bm_search(bm_input2, bm_pattern2);\r\n if (pattern[pattern.length - 1] == i) {\r\n bm2.printBM_Comparison();\r\n }\r\n }\r\n long bm_endTime2 = System.nanoTime();\r\n System.out.println(\"It took: \" + (bm_endTime2 - bm_startTime1) + \" nanoseconds\");\r\n\r\n // Rabin Karp algorithm\r\n System.out.println(\"\\t\\t\\t\\t\\tRABIN KARP ALGORITHM:\");\r\n System.out.println(\"=====================================================================================\");\r\n RKA_Search rk2 = new RKA_Search();\r\n int q2 = 101;\r\n long rk_startTime1 = System.nanoTime();\r\n for (int i = 0; i < pattern.length; i++) {\r\n rk2.rka_search(pattern[i], input_upper2, q2);\r\n if (i == pattern.length - 1) {\r\n rk2.printRKA_Comparison();\r\n }\r\n }\r\n long rk_endTime2 = System.nanoTime();\r\n System.out.println(\"It took: \" + (rk_endTime2 - rk_startTime1) + \" nanoseconds\");\r\n }", "@Before\n public void setUp() {\n source = SParser.parse(\"public class MainClass\\n{\\n \"\n + \"public static void main( String args[] )\\n \"\n + \"{ \\n GradeBook myGradeBook = new GradeBook();\"\n + \" \\n\\n String courseName = \\\"Java \\\";\\n \"\n + \" myGradeBook.displayMessage( courseName );\\n \"\n + \" }\\n\\n}\\npublic class Foo{ public boolean bar(){\"\n + \" super.foo(); return false;}}\");\n }", "public static void main(String[] args) throws java.io.IOException {\n\t\t\n\t\tchar inChar = ' ';\n\t\t\n\t\t// Student data\n\t\tString accounts[][] = { {\"Rachel\", \"500.1\", \"451.45\", \"2\"}, \n\t\t\t\t {\"Ross\", \"293.23\", \"120.45\", \"7\"}, \n\t\t\t\t {\"Monica\", \"423.3\", \"400.3\", \"4\"}, \n\t\t\t\t {\"Chandler\", \"628.4\", \"282.67\", \"3\"},\n\t\t\t\t {\"Phoebe\", \"345.25\", \"84.4\", \"1\"},\n\t\t\t\t {\"Joey\", \"123.4\", \"345.3\", \"8\"},\n\t\t\t\t {\"Robin\", \"523.6\", \"500.45\", \"3\"}, \n\t\t\t\t {\"Lily\", \"264.43\", \"323.45\", \"6\"}, \n\t\t\t\t {\"Marshall\", \"523.3\", \"290.3\", \"7\"}, \n\t\t\t\t {\"Ted\", \"328.4\", \"584.6\", \"3\"},\n\t\t\t\t {\"Barney\", \"545.35\", \"233.4\", \"5\"},\n\t\t\t\t {\"Spongebob\",\"673.4\", \"666.3\", \"9\"}\n\t\t\t\t };\n\t\t\n\t\t// Read student data\n\t\tArrayList<Student> stuList = new ArrayList<>();\n\t\t\n\t\tfor(int i = 0; i < accounts.length; i++) {\n\t\t\tStudent stu = new Student(accounts[i][0], Double.valueOf(accounts[i][1]), Double.valueOf(accounts[i][2]), Integer.valueOf(accounts[i][3]));\n\t\t\tstuList.add(stu);\n\t\t}\n\t\t\n//\t\t// test-Print\n// \t\tSystem.out.println(\"****Print Student Info****\");\n// \t\t \n// \t\t for(Student stu : stuList) {\n//\t\t\tstu.show();\n//\t\t }\n\t\t \n\t\t// Construct an ArrayList to read commands\n\t\tArrayList<Character> comList = new ArrayList<>();\t\t\n\t\t\n\t\tdo {\n\t\t\t System.out.println(\"*****Enter choice 'c' to get the number of students in each grade level, then press <enter>*****\");\n\t\t\t System.out.println(\"*****Enter choice 'p' to get the 2D-map of the stops, then press <enter>*****\");\n\t\t\t System.out.println(\"*****Enter choice 'h' to get the last three commands(when commands are more than three), then press <enter>*****\");\n\t\t\t System.out.println(\"*****Enter choice 'q' to quit, then press <enter>*****\");\n\t\t\t\t\t \t \n\t\t\t inChar = (char) System.in.read();\n\t\t\t \t\t\t \n\t\t\t // Read '\\r' and '\\n' and do nothing\n\t\t\t System.in.read();\n\t\t\t System.in.read();\t\t\t \n\t\t\t \n\t\t \t // Read commands\n\t\t\t comList.add(inChar);\n\t \n\t\t \t // React to input and take appropriate action\n\t \t\t switch (inChar) {\n\t \t\t \n\t\t \t // Calculate how many students are in each grade level and list the results\n\t \t\t case 'c':\n\t\t \t\t System.out.println(\"*****Calculate Student Info****\");\n\t\t \t\t \n\t\t \t\t int count_elementery = 0;\n\t\t \t\t int count_middle = 0;\n\t\t \t\t \n\t\t \t\t for(Student stu : stuList) {\n\t\t \t\t\t\tif ( stu.getGrade() >= 1 && stu.getGrade() <= 6)\n\t\t \t\t\t\t\tcount_elementery++;\n\t\t \n\t\t \t\t\t\telse if (stu.getGrade() >= 7 && stu.getGrade() <= 9)\n\t\t \t\t\t\t\tcount_middle++;\n\t\t \t\t\t\t\t\n\t\t \t\t\t }\n\t\t \t\t \n\t\t \t\t System.out.println(\"Number of students in Elementery Grade Level(1-6): \" + count_elementery);\n\t\t \t\t System.out.println(\"Number of students in Middle Grade Level(7-9): \" + count_middle);\n\t\t \t\t \n\t\t \t\t break;\n\t\t \t\t \t\t \n\t\t // Print a region map (2D) that shows where a bus would need to stop for student pick-up/drop-off. \n // Allow custom map displays by grade level (i.e. Elementary (1-6), Middle (7-8), or All).\n\t\t \t case 'p':\n\t\t \t\t System.out.println(\"****Print 2D Region Map****\");\n\t\t \t\t\t\n\t\t \t\t //Generate 2D-Map\n\t\t \t SwingUtilities.invokeLater(() -> {\n\t\t \t \t\n//\t\t \t \tScatterPlot obj = new ScatterPlot(stuList); \n//\t\t \t \tobj.myplot();\n\t\t \t\t ScatterPlot2 obj = new ScatterPlot2(stuList); \n\t\t \t\t obj.main();\n\t\t \t obj.setSize(800, 400);\n\t\t \t obj.setLocationRelativeTo(null);\n//\t\t \t obj.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n\t\t \t });\n\t \t\t\t \n\t\t \t\t break;\t\t \t \n\t\t \t\t \n\t\t \t // Print a history of the last three commands\n\t\t case 'h':\n\t\t \t\t System.out.println(\"****Print Command History*****\");\t\t\t \t \n\t\t\t \t System.out.println(\"Last Three Command History:\"+ comList.get(comList.size()-2) + \",\" + comList.get(comList.size()-3) + \",\" + comList.get(comList.size()-4));\n\t\t\t \t \n\t\t \t\t break;\n\t\t \t\t \t\t \n\t }\n\t\t} \n\t\t \n\t\t // Exit on quit\n\t\t while (inChar != 'q');\t\t\n\t\t System.out.println(\"Quiting...\");\n\t\t \t\t \n\t }", "public static void main(String[] args) {\r\n\t\t//Use Scanner to get input from console\r\n\t\tScanner sc = new Scanner (System.in);\r\n\t\tint noOfStudents = sc.nextInt();\r\n\t\tMap<Integer, Integer> stdMarksMap = new HashMap<Integer, Integer>();\r\n\t\tfor (int i = 0; i < noOfStudents; i++) {\r\n\t\t\tstdMarksMap.put(sc.nextInt(), sc.nextInt());\r\n\t\t}\r\n\t\tMap<Integer, String> resMap = calculateGrade(stdMarksMap);\r\n\t\tfor (Integer key : resMap.keySet()) {\r\n\t\t\tSystem.out.println(key+\" \"+resMap.get(key));\r\n\t\t\t\r\n\t\t}\r\n\t}", "public void mainTest()\n {\n \tprintSimilarRatingsByYearAfterAndMinutes();\n }", "public static void main(String[] args) {\n Student terrel = new Student(\"Terrel\", 50, 1, 4.0);\n\n// terrel.setName(\"Terrel\");\n// terrel.setGpa(4.0);\n\n System.out.println(terrel.getName() + \" \" + terrel.getNumberOfCredits() + \" \" +terrel.getGpa());\n }", "private void doResearch() {\n\t\tSystem.out.println(\"Students must do research\");\n\t}", "public static void main(String[] args) {\n // Q1: number of hours in a day (byte)\n byte numberOfHoursInaDay =24;\n System.out.println(\"\\nnumberOfHoursInaDay:24 \");\n // Q2.Max.no of days in an year\n short maxNumberOfTheDayInaYear = 366;\n System.out.println(\"\\nmaxNumberOfTheDaysInaYear:366\");\n // Q3.Total number of employees in an organization\n int totalNumberOfEmployeesInIbm = 50000;\n System.out.println(\"\\ntotalNumberOfEmployeesInIbm:50000\");\n //Q4.Population in a country\n long numberOfPopulation = 2000000000L;\n System.out.println(\"\\nnumberOfPopulation : 2000000000L\");\n //Q5.Interest rate\n float interestRate = 1.9f;\n System.out.println(\"\\\\nCurrent interest rate:\\\" + interestRate\");\n //Q6. Balance in a bank account\n long accountBalance = 50000000L;\n System.out.println(\"\\naccountBalance = 50000000L\");\n boolean doesTheSunRiseFromTheWest = true;\n System.out.println(\"doesTheSunRiseFromTheWest? : \" + doesTheSunRiseFromTheWest);\n\n // Q7.Initials of your name\n char firstInitial = 'S';\n char lastInitial = 'M';\n System.out.println(\"My initials: \" +firstInitial + lastInitial);\n\n\n\n\n\n }", "public static void main(String[] args) {\n\n createClass(); //ctrl+click\n printTrainers();\n printStudents();\n printGroup();\n printstudentAlfabetically();\n getNumberOfStudentsFromGroup_classicMethod();\n getAllMaxNumberOfStudentsFromGroup_classicMethod(groups);\n displayGroupWithMaxNumOfStudent_FunctionalMethod();\n displayGroupWithMinNumOfStudent_FunctionalMethod();\n studentsYoungerThan(25);\n displayStudentsYoungerThan(25);\n System.out.println(displayStudentsYoungerThan1(25));\n System.out.println(displayStudentsYoungerThan2(23));\n studentsGroupedByTrainer_WithGroups();\n\n studentsGroupedByTrainer_WithMAp(); //Functioneaza daca nu fac modificari in grupuri\n\n //-----------------------------------\n\n displayStudentsWithPreviousJavaKnowledge();\n displayStudentsWithPreviousJavaKnowledge1();\n\n dispGroupWithMaxNumOfStudentsWithNOJavaKnowledge();\n\n\n removeStudentsYoungerThanFromGroups(25);\n\n printStudentsAlphabeticallyByFirstName();\n dispGroupWithMaxNumOfStudentsWithNOJavaKnowledge4();\n dispGroupWithMaxNumOfStudentsWithNOJavaKnowledge2();\n dispGroupWithMaxNumOfStudentsWithNOJavaKnowledge3();\n System.out.println(\"Triple : \" + tripleNumberOfStudentsFromMaxGroup(getAllMaxNumberOfStudentsFromGroup_classicMethod(groups)));\n System.out.println(\"cuvantul cu dimensiunea cea mai mare este : \" + getLongestString(\"Diana\", \"Liviu\", \"Leah\"));//VARARGS: nputem scrie si fara paramatrii dar nu ne afiseaza nimic\n }", "@Override\n\tpublic void challenge11() {\n\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Please enter first number:\");\n\t\tint num1 = scan.nextInt();\n\t\t\n\t\tSystem.out.println(\"Please enter second number:\");\n\t\tint num2 = scan.nextInt();\n\t\t\n\t\tif(num1 > num2) {\n\t\t\tSystem.out.println(num1+ \" is larger than \"+num2);\n\t\t}else if (num1 == num2) {\n\t\t\tSystem.out.println(num1+ \" is smaller than \"+num2);\n\t\t}else {\n\t\t\tSystem.out.println(num2+ \" is larger than \"+num1);\n\t\t}\n\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t \tScanner inp = new Scanner(System.in);\n\t \tSystem.out.print(\"In:\");\n\t \tString name = inp.nextLine();\n\t \t//DO NOT CHANGE ABOVE CODE! Write your code below\n\t \tif(name.equals(\"Chen\")){\n\t \t System.out.println(\"teacher\");\n\t \t }\n\t \t \tSystem.out.print(\"In:\"); \n\t \tString stud = inp.nextLine();\n\t \tif(stud.equals(\"Faa\")){\n\t \t System.out.println(\"student\");\n\t \t}\n\t}", "public void mo21789N() {\n }", "public static void main(String[] args) {\n\t\tScanner scnr = new Scanner(System.in);\n\n\t\t// arrays containing names, hometowns, and pet peeves of students\n\t\tString [] names = {\"Ally\", \"Ben\", \"Charlene\", \"Dave\", \"Ella\", \"Frank\", \"Genevieve\", \"Horace\"};\n\t\tString [] hometowns = {\"Albany\", \"Boston\", \"Chicago\", \"Denver\", \"Evanston\", \"Frankfurt\", \"Galveston\", \"Houston\"};\n\t\tString [] petPeeves = {\"hangnails\", \"Bad drivers\", \"flies at a picnic\", \"nails on a chalkboard\", \"squeaky styrofoam\", \"dry toast\", \"papercuts\", \"hair in the sink\"};\n\t\tString goAgain = \"\";\n\t\t\n\t\tSystem.out.print(\"Welcome to our Java class. \");\n\t\t\n\t\t\t\n\t\t\tSystem.out.print(\"Which student would you like to learn more about? \");\n\t\t\t// call the method to get valid integer\n\t\t\tint userNumber = getInt(scnr, \"(Enter a number 1-8):\", 1, 8);\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"\\nStudent \" + userNumber + \" is \" + names[userNumber-1] + \".\");\n\t\t\tSystem.out.print(\"\\nWhat would you like to know about \" + names[userNumber-1] + \"? \");\n\t\t\t\n\t\t\t\n\t\t\tboolean userInputIsClear; // keeps track of whether input is clear for the following if/else block\n\t\t\tString userContinue; //keeps track of whether the user wants to continue with the program\n\t\t\t\n\t\t\t// loop to allow user to run through program again\n\t\t\tdo {\n\t\t\t// loop to validate user input \"hometown\" or \"pet peeve\"\n\t\t\tdo {\n\t\t\t\tSystem.out.println(\"Please enter \\\"hometown\\\" or \\\"pet peeve.\\\"\");\n\t\t\t\tString userChoice = scnr.nextLine();\n\n\t\t\t\t// if \"hometown\" then print student's hometown\n\t\t\t\tif (userChoice.toLowerCase().equals(\"hometown\")) {\n\t\t\t\t\tSystem.out.println(\"\\n\" + names[userNumber-1] + \"'s \" + userChoice + \" is \" + hometowns[userNumber-1] + \".\");\n\t\t\t\t\tuserInputIsClear = true;\n\t\t\t\t}\n\t\t\t\t// if \"pet peeve\" then print student's pet peeve\n\t\t\t\telse if (userChoice.toLowerCase().equals(\"pet peeve\")) {\n\t\t\t\t\tSystem.out.println(\"\\n\" + names[userNumber-1] + \"'s \" + userChoice + \" is \" + petPeeves[userNumber-1] + \".\");\n\t\t\t\t\tuserInputIsClear = true;\n\t\t\t\t}\n\t\t\t\t// if input does not match either choice, then tell user, set \"InputIsClear\" to false so loop will start over\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.print(\"Sorry, I didn't understand that. \");\n\t\t\t\t\tuserInputIsClear = false;\n\t\t\t\t}\n\t\t\t\n\t\t\t} while (!userInputIsClear); //loop will repeat as long as user input is not clear\n\t\t\t\n\t\t\t// ask user if s/he wants to know more and get user response (which is called \"goAgain\")\n\t\t\tSystem.out.println(\"\\nWould you like to know more about \" + names[userNumber-1] + \"? (y/n)\");\n\t\t\tgoAgain = scnr.nextLine();\n\t\t\n\t\t} while (goAgain.toLowerCase().startsWith(\"y\")); // loop will repeat as long as \"goAgain\" starts with 'y'\n\t\t\n\t\tSystem.out.println(\"\\nThanks, goodbye!\");\n\t\t\t\n\t\tscnr.close();\n\t}", "public static void experiment2() {\n\t\tList<String> lines = FileUtil.loadFrom(\"docs/corpus-search-results-new-408.txt\");\n\t\tString cipher = Ciphers.cipher[1].cipher;\n\t\tString plain = Ciphers.cipher[1].solution;\n\t\tfor (String line : lines) {\n\t\t\tint pos = plain.indexOf(line.toLowerCase());\n\t\t\tif (pos < 0) System.out.println(\"Could not find \" + line + \" in plaintext\");\n\t\t\telse {\n\t\t\t\tString sub = cipher.substring(pos, pos+line.length());\n\t\t\t\tInfo info = new Info(sub, 0);\n\t\t\t\tSystem.out.println(line + \", \" + sub + \", \" + info.probability);\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void challenge17() {\n\n\t}", "@Test\r\n\t\tpublic void testParsePuts() {\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\tString a = \"the_best_cat = \\\"Noogie Cat\\\" \\nputs \\\"The best cat is: \\\" + the_best_cat\";\r\n\t\t\tdriver.findElement(By.id(\"code_code\")).sendKeys(a);;\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\tWebElement submitButton = driver.findElement(By.xpath(\"(//input[@name='commit'])[2]\"));\r\n\t\t\tsubmitButton.click();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tWebElement e = driver.findElement(By.tagName(\"code\"));\r\n\t\t\t\tString elementText = e.getText();\r\n\t\t\t\tassertTrue(elementText.contains(\"@ident\"));\r\n\t\t\t} catch (NoSuchElementException nseex) {\r\n\t\t\t\tfail();\r\n\t\t\t}\r\n\t\t}", "private test5() {\r\n\t\r\n\t}", "public void mo21794S() {\n }", "public void firstSem10d(){\n chapter = \"firstSem10d\";\n String firstSem10d = \"Shocked, you and your roommate look at each other. \\\"That was...intense,\\\" your roommate says uncomfortably, and you agree. \" +\n \"\\\"Can I ask why you didn't go for the shotgun?\\\" you ask eventually, trying to find a way to bring down the adrenaline in the room. \"+\n student.getRmName()+\" shakes their head. \\\"I told you, man, that's for defense against gunmen.\\\" They look around, seemingly noticing the \" +\n \"level of destruction for the first time. \\\"This sucks. I can help you clean up the glass and stuff. You want Insomnia Cookie or anything? On me. \" +\n \"Well, partially. I only have like ten dollars.\\\" You nod, only half-listening. \\\"Yeah.\\\" you say finally. \\\"Cookies would be good.\\\"\\n\" +\n \"\\t LATER...\\n\";\n getTextIn(firstSem10d);\n }", "private void kk12() {\n\n\t}", "public void firstSem2a6(){\n chapter = \"firstSem2a6\";\n String firstSem2a6 = \"\\\"Well? Are we friends, like that guy said?\\\"\";\n getTextIn(firstSem2a6);\n }", "public static void main(String[] args) {\n // write your code here - this is called comment and it always starts with double slash\n // and comlier will ignore this because of the // sign.\n // I am gonna say hello\n // JAVA IS CASE SENSITIVE LANGUAGE\n // System and system are very different things in java\n //Hello AND hello are different for java\n // System.out.println(\"Hello Batch 15!\");\n // System.out.println(\"I am still here.\");\n // System.out.println(\"I love Java.\");\n\n // Write a program to display your information.\n // When you run it, it should have this outcome.\n // I am your name here\n // I am from batch 15\n // I am from your city here\n // I love Java\n\n System.out.println(\"I am Sevim.\");\n System.out.println(\"I am from Batch 15.\");\n System.out.println(\"I'm from New Jersey.\");\n System.out.println(\"I love Java.\");\n\n\n\n }", "public static void main (String [] args) {\n Address school = new Address(\"800 Lancaster Ave.\", \"Villanova\",\n \"PA\", 19085);\n //create home address objects for a number of students\n Address home1 = new Address(\"21 Jump Street\", \"Blacksburg\",\n \"VA\", 24551);\n Address home2 = new Address(\"123 Main Street\", \"Euclid\", \"OH\", \n 44132);\n Address home3 = new Address(\"5248 Fortress Circle\", \"Valdosta\",\n \"GA\", 31605);\n Address home4 = new Address(\"505 Cedar Drive\", \"Nashville\",\n \"GA\", 31639);\n //create students\n Student student1 = new Student(\"Rick\",\"Sanchez\",home1,school,99,100,97,94);\n Student student2 = new Student(\"Morty\",\"Smith\" ,home2,school,14,28,37,55); \n Student student3 = new Student(\"Zach\",\"Spencer\",home3,school,98,89,86,95);\n Student student4 = new Student(\"Arron\",\"Croft\" ,home4,school,84,99,90,75);\n //create a CS1301 A course\n Course cs1301A = new Course(\"CS1301 A\");\n //create a CS1301 B course\n Course cs1301B = new Course(\"CS1301 B\"); \n //assign some students to CS1301 A\n cs1301A.addStudent(student1);\n cs1301A.addStudent(student2);\n //assign some students to CS1301 B\n cs1301B.addStudent(student3); \n cs1301B.addStudent(student4);\n //get the averages of the 2 courses\n System.out.println(\"*** Averages of CS1301 Courses ***\");\n System.out.println(\"CS1301 A: \"+cs1301A.average());\n System.out.println(\"CS1301 B: \"+cs1301B.average());\n //display the roll for the 2 courses\n System.out.println(\"\\n*** Roll Call ***\");\n cs1301A.roll();\n cs1301B.roll(); \n }", "public static void main(String[] args) {\nScanner s=new Scanner(System.in);\r\nSystem.out.println(\"Enter the school name\");\r\nString a=s.next();\r\nSystem.out.println(\"Enter the student name\");\r\nString b=s.next();\r\nSystem.out.println(\"Enter the roll name\");\r\nString a=s.next();\r\n\t}", "private void generate_test_code()\n {\n int I;\n DataType[] ParamTypes = m_Problem.getParamTypes();\n DataType ReturnType = m_Problem.getReturnType();\n TestCase[] Cases = m_Problem.getTestCases();\n StringBuffer Code = new StringBuffer();\n\n Code.append(\"private:\\n\");\n\n // Generate the vector output function\n Code.append(\"\\ttemplate <typename T> string print_array(const vector<T> &V) { ostringstream os; os << \\\"{ \\\"; for (typename vector<T>::const_iterator iter = V.begin(); iter != V.end(); ++iter) os << \\'\\\\\\\"\\' << *iter << \\\"\\\\\\\",\\\"; os << \\\" }\\\"; return os.str(); }\\n\\n\");\n\n // Generate the verification function\n generate_verification_code(Code, ReturnType);\n\n // Generate the individual test cases\n Code.append(\"\\n\");\n\n /*\n * Generate the test wrapper function that can call\n * either all or individual test cases. (-1 for all)\n */\n Code.append(\"public:\\n\");\n Code.append(\"\\tvoid run_test(int Case) { \\n\");\n Code.append(\"\\t\\tint n = 0;\\n\\n\");\n for (I = 0; I < Cases.length; ++I)\n generate_test_case(I, Code, ParamTypes, ReturnType, Cases[I]);\n // next\n Code.append(\"\\t}\\n\");\n\n // Insert the cut tags\n Code.insert(0, k_BEGINCUT);\n Code.append(k_ENDCUT);\n\n m_Tags.put(k_TESTCODE, Code.toString());\n }", "public static void testStudent() {\n Student test = new Student(-1930026144, \"Simon\");\r\n // test the id number\r\n System.out.println(test.getID() == 0);\r\n System.out.println(test.getName() == \"Simon\");\r\n // reset a name\r\n test.setName(\"John\");\r\n // test the new name\r\n System.out.println(test.getName() == \"John\");\r\n // set a grade\r\n test.setGrade('A');\r\n System.out.println(test.getGrade() == 'A');\r\n }", "public void mo21785J() {\n }", "@Test\r\n\t\tpublic void testTokenizePuts() {\r\n\t\t\t\t\t\t\t\r\n\t\t\tString a = \"the_best_cat = \\\"Noogie Cat\\\" \\nputs \\\"The best cat is: \\\" + the_best_cat\";\r\n\t\t\tdriver.findElement(By.id(\"code_code\")).sendKeys(a);;\r\n\t\t\t\t\t\t\t\r\n\t\t\tWebElement submitButton = driver.findElement(By.name(\"commit\"));\r\n\t\t\tsubmitButton.click();\r\n\t\t\t\t\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tWebElement e = driver.findElement(By.tagName(\"code\"));\r\n\t\t\t\tString elementText = e.getText();\r\n\t\t\t\tassertTrue(elementText.contains(\":on_ident\"));\r\n\t\t\t} catch (NoSuchElementException nseex) {\r\n\t\t\t\tfail();\r\n\t\t\t}\r\n\t\t}", "public static void main(String[] args) {\n\t\tScanner ip = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Welcome to the Katapayadi Wizard! Enter the 1st syllable of the raga of your choice: \");\r\n\t\t\r\n\t\tString F = ip.nextLine();\r\n\t\tSystem.out.println(\"Great! Now enter the 2nd syllable of the raga of your choice: \");\r\n\t\t\r\n\t\tString S = ip.nextLine();\r\n\t\t//int firstIndex; \r\n\t\t\r\n\t\tString [] [] alphabets = {{\"nya\", \"ka\", \"kha\", \"ga\", \"gha\", \"nga\", \"cha\", \"ccha\", \"ja\", \"jha\"}, \r\n\t\t\t\t\t\t\t\t {\"na\", \"ta\", \"tah\",\"da\", \"dah\", \"nna\", \"tha\", \"ttha\", \"dha\", \"ddha\"},\r\n\t\t\t\t\t\t\t\t {\"null\",\"pa\", \"pha\",\"ba\",\"bha\",\"ma\", \"null\", \"null\", \"null\", \"null\", },\r\n\t\t\t\t\t\t\t\t {\"null\",\"ya\", \"ra\", \"la\", \"va\", \"se\", \"sha\", \"sa\", \"ha\",\"null\"}};\r\n\t\t\r\n\t\tint firstNum = getFirstIndex(alphabets, F);\r\n\t\tint secondNum = getSecondIndex(alphabets, S); \r\n\t\tint finalIndex = concat(firstNum, secondNum);\r\n\t\t\r\n\t\tString swaras1= swaraSthanam1(finalIndex);\r\n\t\t//String finalanswer = The [index]th melakartha: aro [swaras1] and ava [swaras2].\r\n\t\tSystem.out.println(firstNum);\r\n\t\tSystem.out.println(secondNum);\r\n\t\t\r\n\t\tSystem.out.println(finalIndex);\r\n\t\t\r\n\t\tSystem.out.println(swaras1);\r\n\t\t\r\n\t}", "static void homeworkHeader(){\n //homeworkHeader function which when called will produce the homework header\n putChars(30, '=');//displays 10 =\n System.out.println(\"Homework Header\");\n putChars(30, '=');//displays 10 =\n System.out.println(\"Ticket : 86713\");\n System.out.println( \"Course : CMPR 112 \");\n System.out.println( \"Student : Ben Halpern \");\n System.out.println( \"Instructor : Joel Kirscher\");\n System.out.println( \"Environment: Win 10 NetBeans \");\n System.out.println( \"Project Title : Assignment 05 - Java Methods \");\n System.out.println(\"\\n\\n\");\n //end homework header output\n }", "public static void main(String[] args) {\nint score = 91;\nString grade;\nif (score >90)\n{\n\tgrade = \"A\";\n}\n\n\n\nelse if (score>=80)\n{\n\tgrade = \"B\";\n}\n//THis is to test Git\n//THis is to test Git\n//THis is to test Git2\n//This is to test the brach made by gitdemo\n//Change from GitX\nelse \n{\n\tgrade = \"C\";\n}\nSystem.out.println(grade);\n}", "@Override\n\tpublic void challenge9() {\n\n\t}", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\n\t\tStudent diwas= new Student();\n\t\t//Putting data\n\t\tdiwas.name=\"Diwas 123\";\n\t\tdiwas.id= 1;\n\t\tdiwas.address=\"US\";\n\t\tdiwas.yearOfStudy=2;\n\t\t\n\t\tdiwas.printDetails();\n\t\tdiwas.studies();\n\t\tdiwas.giveExams();\n\t\t\n\t\t\n\t\tSystem.out.println( \"=======\");\n\t\tStudent mohhamad= new Student();\n\t\tmohhamad.name=\"Mohhamad 123\";\n\t\tmohhamad.id=2;\n\t\tmohhamad.address=\"US\";\n\t\tmohhamad.yearOfStudy=3;\n\t\t\n\t\tmohhamad.printDetails();\n\t\tmohhamad.studies();\n\t\tmohhamad.giveExams();\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "@Override\n\tpublic void study() {\n\t\tSystem.out.println(\"You will study in JUR\");\n\t}", "public void smell() {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tString[] stereotypeBooks = {\"Critique of the Critique of Pure Reason\", \"Token Work of Fiction to Show I Can Write\", \n\t\t\t\t\"Deconstructing Everything I Find\", \"The Metaphysics of Dasein or Some Other Word I Made Up\", \n\t\t\t\t\"I Understand Existence More Than All Y'all Fools\"};\n\t\tSA0 stereotype = new SA0(\"Immanuel Locke\", 79, \"Male\", 1724, 5, 5, \"Germany\", \"Metaphysics\", stereotypeBooks);\n\t\tSystem.out.println(stereotype.defendSelf());\n\t\tSystem.out.println(stereotype.getSummary()); \n\t\t\n\t\tString[] nietzscheBooks = {\"Thus Spake Zarathustra\", \"Beyond Good and Evil\", \"The Antichrist\", \n\t\t\t\t\"Human, All Too Human\", \"The Gay Science\"};\n\t\tSA0 nietzsche = new SA0(\"Friedrich Nietzsche\", 55, \"Male\", 1844, 4, 8, \"Germany\", \"Metaphysics\", nietzscheBooks);\n\t\tSystem.out.println(nietzsche.defendSelf());\n\t\tSystem.out.println(nietzsche.getSummary()); \n\t}", "public void firstSem10b(){\n chapter = \"firstSem10b\";\n String firstSem10b = \"By the time you get back to your room around 4AM, something's very wrong. Your door appears to have been ripped off its\" +\n \" hinges, and your room is in complete disarray. Dave Grohl has been ripped to tatters, and your roommate's nowhere to be seen.\\n\\t\\\"\"+\n student.getName()+\"!\\\" your RA shouts, running down the hall toward you. \\\"I've been trying to call you...the beast got \"+student.getRmName()\n +\". Just took him. I wanted to stop it, but...you know, I'm anti-violence. You just can't fight hate with hate. Sorry, man.\\\"\";\n getTextIn(firstSem10b);\n }", "public static void main(String[] args) {\n\t\tStudent s1 = new Student(\"Joro\", \"KST\", (byte)25);\n\t\tStudent s2 = new Student(\"Pesho\", \"KST\", (byte)25);\n\t\tStudent s3 = new Student(\"Gesho\", \"KST\", (byte)25);\n\t\tStudent s4 = new Student(\"Misho\", \"KST\", (byte)25);\n\t\tStudent s5 = new Student(\"Tisho\", \"KST\", (byte)25);\n\t\tStudent s6 = new Student(\"Ivo\", \"KST\", (byte)25);\n\t\t\n\t\ts3.setGrade(5);\n\t\ts5.setGrade(5.5);\n\t\ts2.setGrade(6);\n\t\t\n\t\ts1.receiveScholarship(4, 500);\n\t\ts2.receiveScholarship(5, 250.00);\n\t\t\n\t\t\n\t\ts2.upYear();\n\t\ts5.upYear();\n\t\ts6.upYear();\n\t\t\n\t\tStudentGroup sg1 = new StudentGroup(\"KST\") ;\n\t\t\n\t\tsg1.addStudent(s1);\n\t\tsg1.addStudent(s2);\n\t\tsg1.addStudent(s3);\n\t\tsg1.addStudent(s4);\n\t\tsg1.addStudent(s5);\n\t\tsg1.addStudent(s6);\n\n\t\n\t\tSystem.out.println(sg1.printStudentsInGroup());\n\t\t\n\t\t\n\t\tSystem.out.println(\"The best student in group is \"+ sg1.theBestStudent());\n\n\t}", "@Test(timeout = 4000)\n public void test59() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"Name(s) of editor(s), typed as indicated in the LaTeX book. If there is also an author field, then the editor field gives the editor of the book or collection in which the reference appears.\");\n assertEquals(\"nam(s) of edit(s), typ as indic in th latic book. if ther is als an author field, then th edit field giv th edit of th book or collect in which th refer appear.\", string0);\n }", "private static void LessonFundamentals() {\n byte myNum1 = 100;\n System.out.println(myNum1);\n short myNum2 = 5000;\n System.out.println(myNum2);\n int myNum3 = 100000;\n System.out.println(myNum3);\n long myNum4 = 15000000000L;\n System.out.println(myNum4);\n float myNum5 = 5.75f;\n System.out.println(myNum5);\n double myNum6 = 19.99d;\n System.out.println(myNum6);\n boolean isJavaFun = true;\n boolean isFishTasty = false;\n System.out.println(isJavaFun);\n System.out.println(isFishTasty);\n char myGrade = 'B';\n System.out.println(myGrade);\n String greeting = \"Hello World\";\n System.out.println(greeting);\n\n //#4\n //Strings are non-primitive data types that are objects\n //Strings can be empty or null while primitive type can not\n //int a = null;\n String b = null;\n\n //#5\n List<String> stringList = new ArrayList<String>();\n stringList.add(\"Hello\");\n stringList.add(\"World\");\n stringList.add(\"Let's do this\");\n\n for(String oneStr : stringList) {\n System.out.println(oneStr);\n }\n\n //List can't have primitive types like int, char, double etc\n //List(int) characters = new ArrayList<int>()\n\n //#6\n //Lottery Variables\n String gameName = \"Powerball\";\n double jackpot = 20000000.00d;\n String drawingDate = \"1/2/2013\";\n List<String> winningNumbers = new ArrayList<String>();\n winningNumbers.add(\"3\");\n winningNumbers.add(\"7\");\n winningNumbers.add(\"13\");\n winningNumbers.add(\"25\");\n winningNumbers.add(\"47\");\n winningNumbers.add(\"13LB\");\n winningNumbers.add(\"5x\");\n\n }", "public static void main(String[] args) {\n\t\t\tinitCapFormat(\"bengaluru is my city\");\n\t\t// 2.TODO \"sumit\" - \"itsum\"\n\t\t\tinputsInterchangeable(\"sumit\", \"itsum\");\n\t\t// 3.TODO 6699 - 69\n\t\t\t// 6*9+6+9\n\t\t// 4.TODO LIKE operator\n\t\t\t// SQL_LINUX.odt\n\t\t// 5.TODO numbers div by 5 in 1....10/5cr\n\t\t\tcountDivisibles(1, 100, 5);\n\t\t// 6.TODO count vowels in statement\n\t\t\tgetCountofVowels(\"THIS website is aw3som3\");\n\t\t// 7.CSS bold\n\t\t\t// <strong> or <b> tag also, you can try with css <span style=\"font-weight:bold\">text</span>\n\n\t}", "@Test\n public void method01() {\n System.out.println(school);\n }", "public static void main(String[] args) {\n\t\tString first = \"coding\";\r\n\t\tSystem.out.println(first + \" \"+ \"everybody\");\r\n\t}", "public static void main(String[] args) \n\t{\n\t\tint roll_number, Hindi, Eng, Maths, Science, Art;\n\t\tString name;\n\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner SC = new Scanner(System.in);\n\t\t\n\t\tSystem.out.print(\"Enter Name:\");\n\t\tname = SC.nextLine();\n\t\tSystem.out.print(\"Enter Roll Number:\");\n\t\troll_number = SC.nextInt();\n\t\tSystem.out.print(\"Enter Hindi, English, Maths, Science and Arts marks:\");\n\t\tHindi = SC.nextInt();\n\t\tEng = SC.nextInt();\n\t\tMaths = SC.nextInt();\n\t\tScience = SC.nextInt();\n\t\tArt = SC.nextInt();\n\t\t\n\t\tint total = Hindi+Eng+Maths+Science+Art;\n\t\tint avg = total/5;\n\t\tSystem.out.println(\"Student Roll Number is:\"+roll_number);\n\t\tSystem.out.println(\"Student Name is:\"+name);\n\t\tSystem.out.println(\"Student Totla Marks are:\"+total);\n\t\tSystem.out.println(\"Average marks are:\"+avg);\n\n\t}", "public void mo12930a() {\n }", "public String printAcceptance(int school){\n int letterPicker = (int) (Math.random()*10);\n String accLetter = acceptanceLetter[letterPicker];\n if (school == 0){\n accLetter += \"Greendale..?\";\n }\n if (school == 1){\n accLetter += \"Harvard!\";\n }\n if (school == 2){\n accLetter += \"MIT!\";\n }\n return accLetter;\n }", "public String getCode(ClassDecl cl)\r\n\t{\r\n\t\tString testcode = \"#Region \\\"Testing code generated by KawigiEdit\\\"\\n\";\r\n\t\ttestcode += \"Module MainModule\\n\";\r\n\t\ttestcode += \"\\tSub Main()\\n\";\r\n\t\tEditorDataType returnType = cl.getMethod().getReturnType();\r\n\t\ttestcode += \"\\t\\tDim Errors As Boolean = False\\n\";\r\n\t\ttestcode += \"\\t\\tDim Answer, DesiredAnswer As \" + EditorLanguage.VB.getName(returnType) + \"\\n\";\r\n\t\ttestcode += \"\\t\\tDim Obj As \" + cl.getName() + \"\\n\";\r\n\t\ttestcode += \"\\t\\tDim Time As DateTime\\n\";\r\n\t\tif (returnType.isArrayType())\r\n\t\t{\r\n\t\t\ttestcode += \"\\t\\tDim Same As Boolean\\n\";\r\n\t\t\ttestcode += \"\\t\\tDim i As Integer\\n\";\r\n\t\t}\r\n\t\tboolean stringType = returnType.isType(EditorDataType.String);\r\n\t\tEditorDataType[] paramTypes = cl.getMethod().getParamTypes();\r\n\t\ttestcode += \"\\t\\t<%:start-tests%>\\n\";\r\n\t\tfor (int i=0; i<cl.countTests(); i++)\r\n\t\t{\r\n\t\t\ttestcode += \"\\t\\tObj = New \" + cl.getName() + \"()\\n\";\r\n\t\t\ttestcode += \"\\t\\tTime = DateTime.Now\\n\";\r\n\t\t\ttestcode += \"\\t\\tAnswer = Obj.\" + cl.getMethod().getName() + \"(\" + toTest(cl.getTest(i).getParameters(), paramTypes) + \")\\n\";\r\n\t\t\ttestcode += \"\\t\\tConsole.WriteLine(\\\"Time: \\\" & (DateTime.Now.Subtract(Time)).TotalSeconds & \\\" seconds\\\")\\n\";\r\n\t\t\ttestcode += \"\\t\\tDesiredAnswer = \" + translateObject(returnType, cl.getTest(i).getAnswer()) + \"\\n\";\r\n\t\t\ttestcode += \"\\t\\tConsole.WriteLine(\\\"Your Answer:\\\")\\n\";\r\n\t\t\tif (returnType.isArrayType())\r\n\t\t\t{\r\n\t\t\t\ttestcode += \"\\t\\tConsole.Write(\\\"{ \\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tIf (Answer.Length > 0) Then\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tConsole.Write(\" + (stringType ? \"\\\"\\\"\\\"\\\" & \" : \"\") + \"Answer(0)\" + (stringType ? \" & \\\"\\\"\\\"\\\"\" : \"\") + \")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tFor i = 1 To Answer.Length - 1\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\t\\tConsole.Write(\\\"\\t, \" + (stringType ? \"\\\"\\\"\" : \"\") + \"\\\" & Answer(i)\" + (stringType ? \" & \\\"\\\"\\\"\\\"\" : \"\") + \")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tNext\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tConsole.WriteLine(\\\" }\\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tElse\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tConsole.WriteLine(\\\"}\\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tEnd If\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tConsole.WriteLine(\\\"Desired Answer:\\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tConsole.Write(\\\"{ \\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tIf (DesiredAnswer.Length > 0) Then\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tConsole.Write(\" + (stringType ? \"\\\"\\\"\\\"\\\" & \" : \"\") + \"DesiredAnswer(0)\" + (stringType ? \" & \\\"\\\"\\\"\\\"\" : \"\") + \")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tFor i = 1 To DesiredAnswer.Length - 1\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\t\\tConsole.Write(\\\", \" + (stringType ? \"\\\"\\\"\" : \"\") + \"\\\" & DesiredAnswer(i)\" + (stringType ? \" & \\\"\\\"\\\"\\\"\" : \"\") + \")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tNext\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tConsole.WriteLine(\\\" }\\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tElse\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tConsole.WriteLine(\\\"}\\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tEnd If\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tSame = (Answer.Length = DesiredAnswer.Length)\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tIf (Same)\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tFor i = 0 To DesiredAnswer.Length - 1\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\t\\tIf Answer(i) <> DesiredAnswer(i) Then\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\t\\t\\tSame = False\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\t\\tEnd If\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tNext\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tEnd If\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tIf Same Then\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tConsole.WriteLine(\\\"Match :-)\\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tElse\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tConsole.WriteLine(\\\"DOESN'T MATCH!!!!\\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tErrors = True\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tEnd If\\n\";\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttestcode += \"\\t\\tConsole.WriteLine(\\\"\\t\" + (stringType ? \"\\\"\\\"\" : \"\") + \"\\\" & Answer\" + (stringType ? \" & \\\"\\\"\\\"\\\"\" : \"\") + \")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tConsole.WriteLine(\\\"Desired Answer:\\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tConsole.WriteLine(\\\"\\t\" + (stringType ? \"\\\"\\\"\" : \"\") +\"\\\" & DesiredAnswer\" + (stringType ? \" & \\\"\\\"\\\"\\\"\" : \"\") + \")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tIf Answer = DesiredAnswer Then\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tConsole.WriteLine(\\\"Match :-)\\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tElse\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tConsole.WriteLine(\\\"DOESN'T MATCH!!!!\\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tErrors = True\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tEnd If\\n\";\r\n\t\t\t}\r\n\t\t\ttestcode += \"\\t\\tConsole.WriteLine()\\n\";\r\n\t\t}\r\n\t\ttestcode += \"\\t\\t<%:end-tests%>\\n\";\r\n\t\ttestcode += \"\\t\\t\\n\\t\\tIf Errors Then\\n\";\r\n\t\ttestcode += \"\\t\\t\\tConsole.WriteLine(\\\"Some of the test cases had errors :-(\\\")\\n\";\r\n\t\ttestcode += \"\\t\\tElse\\n\";\r\n\t\ttestcode += \"\\t\\t\\tConsole.WriteLine(\\\"You're a stud (at least on the test data)! :-D \\\")\\n\";\r\n\t\ttestcode += \"\\t\\tEnd If\\n\";\r\n\t\ttestcode += \"\\tEnd Sub\\n\";\r\n\t\ttestcode += \"End Module\\n\";\r\n\t\ttestcode += \"#End Region\\n\";\r\n\t\treturn testcode;\r\n\t}", "public static void main(String [] args) {\n\t\tScanner s = new Scanner(System.in);\n\t System.out.println(\"Please enter your score\");\n\t\t \n\t int grade = s.nextInt();\n\n\t \tString score = \" \";\n\t\t\tscore= ( grade >= 90 && grade<=100)? \"excellent\"\n\t\t\t\t\t:(grade >= 70 && grade<=89)? \"good\"\n\t\t\t\t\t\t :(grade >= 60 && grade<=69)? \"pass\"\n\t\t\t\t\t\t\t\t :(grade<=60)? \"fail\"\n\t\t\t\t\t\t\t\t\t:\" \"; \t\n\t \n\t\t\tSystem.out.println(score);\n\t\t\t \n\t\t\n\t}", "private static void Firstcommentary() {\n\t\tSystem.out.println(\" Sachin Scored highest Score \");\n\t\t\n\t}", "public void initSourceCode()\r\n\t{\r\n\t\tsc.addCodeLine(\"// Main method. Iterates over all stars. Delegates group finding to addAdjacentStars.\", null, 0, null);\t//0\r\n\t\tsc.addCodeLine(\"public void friendsOfFriends(double linkingLength, Set<Star> stars)\", null, 0, null);\r\n\t\tsc.addCodeLine(\"{\", null, 0, null);\r\n\t\tsc.addCodeLine(\" int groupID = 0;\", null, 0, null);\r\n\t\tsc.addCodeLine(\" \", null, 0, null);\r\n\t\tsc.addCodeLine(\" for(Star current : stars)\", null, 0, null);\t// 5\r\n\t\tsc.addCodeLine(\" {\", null, 0, null);\r\n\t\tsc.addCodeLine(\" if(!current.wasVisited())\", null, 0, null);\r\n\t\tsc.addCodeLine(\" {\", null, 0, null);\r\n\t\tsc.addCodeLine(\" groupID++;\", null, 0, null);\r\n\t\tsc.addCodeLine(\" current.setVisited(true);\", null, 0, null);\r\n\t\tsc.addCodeLine(\" current.group = groupID;\", null, 0, null);\r\n\t\tsc.addCodeLine(\" \", null, 0, null);\r\n\t\tsc.addCodeLine(\" addAdjacentStars(current, groupID, linkingLength, stars);\", null, 0, null);\t// 13\r\n\t\tsc.addCodeLine(\" }\", null, 0, null);\r\n\t\tsc.addCodeLine(\" }\", null, 0, null);\r\n\t\tsc.addCodeLine(\"};\", null, 0, null);\r\n\t\tsc.addCodeLine(\"\", null, 0, null);\r\n\t\tsc.addCodeLine(\"// Helper algorithm for FoF. Calls nearest neighbour search to get all adjacent stars.\", null, 0, null);\r\n\t\tsc.addCodeLine(\"private void addAdjacentStars(Star s, int groupID, double linkingLength, Set<Star> stars)\", null, 0, null);\t\t// 19\r\n\t\tsc.addCodeLine(\"{\", null, 0, null);\r\n\t\tsc.addCodeLine(\" Set<Star> adjacentStars = nearestNeighbourSearch(s, linkingLength, stars);\", null, 0, null);\r\n\t\tsc.addCodeLine(\" \", null, 0, null);\r\n\t\tsc.addCodeLine(\" for(Star current : adjacentStars)\", null, 0, null);\t\t// 23\r\n\t\tsc.addCodeLine(\" {\", null, 0, null);\r\n\t\tsc.addCodeLine(\" if(!current.wasVisited())\", null, 0, null);\r\n\t\tsc.addCodeLine(\" {\", null, 0, null);\r\n\t\tsc.addCodeLine(\" current.setVisited(true);\", null, 0, null);\r\n\t\tsc.addCodeLine(\" current.group = groupID;\", null, 0, null);\r\n\t\tsc.addCodeLine(\" \", null, 0, null);\r\n\t\tsc.addCodeLine(\" addAdjacentStars(current, groupID, linkingLength, stars);\", null, 0, null);\t// 30\r\n\t\tsc.addCodeLine(\" }\", null, 0, null);\r\n\t\tsc.addCodeLine(\" }\", null, 0, null);\r\n\t\tsc.addCodeLine(\"};\", null, 0, null);\r\n\t}", "void actual_test_taker(String name,String rollno){\n File file_of_the_current_student= new File(\"C://Manish//The_Test_Taker//All_Text_files//Student_Record//\"+rollno+\".txt\");\n String subject;\n int chapter;\n\n //This function will read all the values of the instance variable for the quiz.\n get_values(file_of_the_current_student);\n\n //This function will display all the subjects offered to the student based on the semester in which he/she is.\n //and ask the student for the choice of the subject of which he/she wants to take the quiz.\n subject=choose_among_the_subjects_offered();\n\n //This function will display all the chapters offered in a particular subject and ask the student about his/her choice of chapter/s.\n \n chapter=choose_among_the_chapters_of_the_subject(subject,\"SEM_3\");\n if(chapter == -1){\n return;\n }\n \n \n //Now we will open the file of the chapter of the specific subject.\n File quiz_file = new File(\"C://Manish//The_Test_Taker//All_Text_files//Quizes//\"+\"SEM_3\"+\"//\"+subject+\"//\"+subject+\"_CHAPTER0\"+chapter+\".txt\");\n\n //This function will display each question one by one as per the chapter opted for.\n //Also it will store the marks of the student and will keep on calculating the final total marks of that quiz.\n int quiz_marks= taking_test(quiz_file); \n if(quiz_marks==-1){\n return;\n }\n \n //Assigning the corresponding quiz variable it's value after the test.\n switch(subject){\n case \"OOP\":\n OOP[chapter-1]=quiz_marks;\n break;\n case \"DSA\":\n DSA[chapter-1]=quiz_marks;\n break;\n case \"DE\":\n DE[chapter-1]=quiz_marks;\n break;\n }\n total_marks+=quiz_marks;\n average=total_marks/10;\n\n set_values(file_of_the_current_student);\n System.out.println(\"###############################################################################################\");\n System.out.println(\" You completed the test successfully.\");\n System.out.println(\" You got a total score of \"+quiz_marks);\n System.out.println(\"###############################################################################################\");\n //System.out.println(quiz_marks);\n\n \n\n }", "public static void main(String[] args) {\n\t\tint t,b,h;\n\t\tScanner sc= new Scanner(System.in);\n\t\tSystem.out.println(\"enter student type\");\n\t\tString str=sc.next();\n\t\tSystem.out.println(\"enter the tution fee\");\n\t\tt=sc.nextInt();\n\t\tSystem.out.println(\"enter the bus fee\");\n\t\tb=sc.nextInt();\n\t\tSystem.out.println(\"enter the values hostel fee \");\n\t\th=sc.nextInt();\n\t\tswitch(str)\n\t\t{\n\t\tcase \"msds\":System.out.println(t+b);break;\n\t\tcase \"msh\":System.out.println(t+h);break;\n\t\tcase \"mgsds\":System.out.println(150%(t+b));break;\n\t\tcase \"mgsh\":System.out.println(150%(t+h));break;\n\t\t}\n\t\t\n\n\t}", "public static void main(String[] args) {\n Map<String, Character> answers = new HashMap<>();\n try(Scanner scanner = new Scanner(System.in)) {\n long score = QUESTIONS.entrySet().stream()\n .filter(e -> {\n System.out.println(e.getKey());\n while (!scanner.hasNext(Pattern.compile(\"[nyNY]\"))){\n scanner.next();\n }\n answers.put(e.getKey(), scanner.next().toUpperCase().charAt(0));\n return e.getValue().equals(answers.get(e.getKey()));\n })\n .count();\n\n if(score < 4) System.out.println(\"You are a junior Java developer\");\n else if(score < 8) System.out.println(\"You are a medior Java developer\");\n else System.out.println(\"You are a senior Java developer\");\n }\n\t}", "public static void main(String[] args) {\n\n byte minAge = 21;\n short averageSalery = 8650;\n int distanceBEarthMoon = 238855;\n long nationalDebt = 23050442180309L;\n float interestRate = 3.725f;\n double itemPrice = 49.99;\n boolean genderFemale = true;\n char nameInitials = 'F';\n\n System.out.println(\"Minimum legal age to purchase alcholo in USA is: \" + minAge);\n System.out.println(\"Average monthly salary of an automation engineer in NYC is: \" + averageSalery);\n System.out.println(\"Distance between Earth and Moon in miles is: \" + distanceBEarthMoon);\n System.out.println(\"The national debt of the United States in US dollars is: \" + nationalDebt);\n System.out.println(\"The interest rate in Chase bank is: \" + interestRate);\n System.out.println(\"store item price is : \" + itemPrice );\n System.out.println(\"is your gender female : \" + genderFemale);\n System.out.println(\"name initials : \" + nameInitials);\n\n\n }" ]
[ "0.6480653", "0.64226687", "0.62084144", "0.61689645", "0.61153007", "0.6113737", "0.60834736", "0.6078019", "0.60650504", "0.6056322", "0.60283494", "0.59881234", "0.5961647", "0.5958716", "0.5952618", "0.5932653", "0.58966124", "0.5894697", "0.5833283", "0.58236384", "0.5815226", "0.58127636", "0.5802034", "0.5780126", "0.57750994", "0.5775007", "0.576834", "0.5755878", "0.57536745", "0.5753064", "0.57524204", "0.5752206", "0.5746208", "0.5742754", "0.57346314", "0.57330877", "0.5713379", "0.5708288", "0.57071024", "0.57041913", "0.5697833", "0.56849945", "0.56845593", "0.5682805", "0.5666454", "0.5657958", "0.56558347", "0.5654676", "0.5654241", "0.5651957", "0.5646211", "0.56369966", "0.5635959", "0.56359154", "0.56144685", "0.5612407", "0.5610724", "0.5605979", "0.5605232", "0.56009066", "0.5596949", "0.55928147", "0.55850196", "0.55823433", "0.5576385", "0.55726945", "0.5568936", "0.556766", "0.5567084", "0.5565274", "0.55630815", "0.55629665", "0.55612093", "0.55609614", "0.5559987", "0.55587804", "0.5558452", "0.5557401", "0.5551873", "0.5551378", "0.5544665", "0.55383205", "0.55356586", "0.5530636", "0.5524037", "0.55209655", "0.5518699", "0.5515209", "0.5507708", "0.55046636", "0.5501658", "0.5499383", "0.549848", "0.54978114", "0.5496019", "0.54950714", "0.5494698", "0.54919124", "0.5486377", "0.5485776", "0.5485189" ]
0.0
-1
Part A count the number of Gizmos made by maker that are also electronic must call getMaker and isElectronic return the count or 0 if no matches
public int countElectronicsByMaker(String maker) { int count = 0; for( Gizmo g : purchases ) { if( g.getMaker().equals( maker ) && g.isElectronic()==true ) count = count + 1; //or count++ } return count; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int countByExample(TVmManufacturerExample example);", "int getPartsCount();", "int getPartsCount();", "int getNumberOfArtillery();", "int getEducationsCount();", "public int countOfGenerations ();", "int getNoOfParties();", "int countByExample(CraftAdvReqExample example);", "public int size()\r\n {\r\n\treturn chromos.size();\r\n }", "int countByExample(PcQualificationInfoExample example);", "Object getNumberMatched();", "public Integer countMedicines();", "long countByExample(IceAppExample example);", "int getAcksCount();", "int getAcksCount();", "int getPurchasableOffersCount();", "int getPickupsCount();", "public int getNumCars() {\r\n\t\treturn (numCars + numSmallCars);\r\n\t}", "public int getNumOfMatchedBets();", "int getMetaInformationCount();", "int getMetaInformationCount();", "int getMetaInformationCount();", "int getMetaInformationCount();", "int getMetaInformationCount();", "int countByExample(OwnerExample example);", "boolean hasCount();", "long count(Specification<E> spec);", "protected int numGenes() {\n\t\treturn genes.size();\n\t}", "public boolean haveCount () ;", "public boolean getCount(String type){\n if(type.equals(\"Zombie\") && zombieCounter!=0){\n return true;\n } else return type.equals(\"Sandwich\") && sandwichCounter != 0;\n }", "public int numberOfOccorrence();", "int countByExample(CardExample example);", "private int countMatchingCorpBody(final ExpressionJpa expression) {\n\n int matchCount = 0;\n\n for (MarcDataField field710 : this.marcRecord.getDataFields(\"710\")) {\n for (String relatorSubfield : field710.getValueList('4')) {\n if (\"prf\".equals(relatorSubfield)) {\n final String corpAuthIdent =\n CorporateBodyMapper.getAuthIdent(field710);\n // have a corpIdent from the MarcRecord\n // is there a matching persisted corpIdent\n // under the expression.realizedBy relationship\n for (ExpressionToResponsibleParty realizedBy :\n expression.getHasRealizers()) {\n // just want the CorporateBodyJpa ones\n // TODO a better way to screen ResponsiblePartyJpa subclasses?\n try {\n final CorporateBodyJpa corpPers =\n (CorporateBodyJpa) realizedBy.\n getTargetResponsibleParty();\n if (corpAuthIdent.equals(corpPers.getAuthIdent())) {\n matchCount++;\n }\n } catch (ClassCastException notCorpBody) {\n // not a CorporateBodyJpa\n }\n }\n }\n }\n }\n\n return matchCount;\n }", "public int availableCars(String type) {\r\n\t\tString typeCar = type.trim().toLowerCase();\r\n\t\tint count = 0;\r\n\r\n\t\tif (typeCar.equals(\"small\")) {\r\n\t\t\tfor (InterfaceAbstractCar car : companyCars) {\r\n\t\t\t\tif (car.getType().equals(TypeOfCar.SMALL) && !car.isCarRented()) {\r\n\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else if (typeCar.equals(\"large\")) {\r\n\t\t\tfor (InterfaceAbstractCar car : companyCars) {\r\n\t\t\t\tif (car.getType().equals(TypeOfCar.LARGE) && !car.isCarRented()) {\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tthrow new IllegalArgumentException(\r\n\t\t\t\t\t\"Type of car has been entered incorrectly. Needs to be 'small' or 'large'\");\r\n\t\t}\r\n\r\n\t\treturn count;\r\n\t}", "public Integer getInterestedInItemsCount();", "public int getPartsCount() {\n if (partsBuilder_ == null) {\n return parts_.size();\n } else {\n return partsBuilder_.getCount();\n }\n }", "int countByExample(SrHotelRoomInfoExample example);", "int getDetailsCount();", "int getDetailsCount();", "public int getShipPartsNeededCount() {\n return (maxDays * 2) / 3;\n }", "public int qureyNumOfInspectors() {\r\n\t\tif (DBConnection.conn == null) {\r\n\t\t\tDBConnection.openConn();\r\n\t\t}\r\n\t\tint sum = 0;\r\n\t\ttry {\r\n\t\t\tString sql = \"select count(*) from InspectionPersonnel\";\r\n\t\t\tps = DBConnection.conn.prepareStatement(sql);\r\n\t\t\trs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tsum = rs.getInt(1);\r\n\t\t\t}\r\n\t\t\tDBConnection.closeResultSet(rs);\r\n\t\t\tDBConnection.closeStatement(ps);\r\n\t\t\tDBConnection.closeConn();\r\n\t\t\treturn sum;\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}", "boolean hasProduces();", "int getInstrumentCount();", "public static int findNumberOfCreatedComputers() {\n return objCounter;\n }", "long countByExample(SupplyNeedExample example);", "long countByExample(SpecValuePOExample example);", "int getAoisCount();", "long getRecipesCount();", "int countByExample(CfgSearchRecommendExample example);", "int getWifisCount();", "int countByExample(DeviceExample example);", "int getNumCards();", "public int count(){\n\tboolean val = false;\n\tint cont = 0;\n\tfor(int i =0;i<arch.length && !val;i++){\n\t\tif(arch[i]!=null){\n\t\t\tcont++;\n\t\t}\n\t\telse{\n\t\t\tval=true;\n\t\t}\n\t}\n\treturn cont;\n}", "int countByExample(MEsShoppingCartDTOCriteria example);", "int countByExample(SportAlbumPictureExample example);", "boolean hasManufacturer();", "int countByExample(NeeqCompanyAccountingFirmOnlineExample example);", "int countByExample(ReEducationExample example);", "public String getCount() {\r\n \t\r\n \tBoolean anyAges = Boolean.FALSE;\r\n \tBoolean anyAssayTypes = Boolean.FALSE;\r\n \tint count = 0;\r\n \t\r\n \tfor (String age: ages) {\r\n \t\tif (age.endsWith(\"ANY\")) {\r\n \t\t\tanyAges = Boolean.TRUE;\r\n \t\t}\r\n \t}\r\n \t\r\n \tfor (String type: assayTypes) {\r\n \t\tif (type.equals(\"ANY\")) {\r\n \t\t\tanyAssayTypes = Boolean.TRUE;\r\n \t\t}\r\n \t}\r\n \t\r\n \t// No Restrictions on Ages or AssayTypes, count everything\r\n \tif (anyAssayTypes && anyAges) {\r\n \tcount = record.getPairs().size(); \t\t\r\n \t}\r\n \t\r\n \t// There are restrictions on ages only, iterate and count appropriately.\r\n \t\r\n \telse if (anyAssayTypes) {\r\n \t\tfor (GxdLitAssayTypeAgePair pair: record.getPairs()) {\r\n \t\t\tfor (String age: ages) {\r\n \t\t\t\tif (pair.getAge().equals(age)) {\r\n \t\t\t\t\tcount ++;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \t\r\n \t// There are restrictions on assayTypes only, iterate and count appropriately.\r\n \t\r\n \telse if (anyAges) {\r\n \t\tfor (GxdLitAssayTypeAgePair pair: record.getPairs()) {\r\n \t\t\tfor (String type: assayTypes) {\r\n \t\t\t\tif (pair.getAssayType().equals(type)) {\r\n \t\t\t\t\tcount ++;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \t\r\n \telse {\r\n \t\tfor (GxdLitAssayTypeAgePair pair: record.getPairs()) {\r\n \t\t\tfor (String type: assayTypes) {\r\n \t\t\t\tfor (String age: ages) {\r\n \t\t\t\t\tif (pair.getAssayType().equals(type) && pair.getAge().equals(age)) {\r\n \t\t\t\t\t\tcount ++;\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}\r\n\r\n \treturn \"\" + count;\r\n \t\r\n }", "private int countMatchingPerson(final ExpressionJpa expression) {\n\n int matchCount = 0;\n\n for (MarcDataField field700 : this.marcRecord.getDataFields(\"700\")) {\n for (String relatorSubfield : field700.getValueList('4')) {\n if (\"prf\".equals(relatorSubfield)\n || \"cnd\".equals(relatorSubfield)) {\n final String persAuthIdent =\n PersonMapper.getAuthIdent(field700);\n // now have a personIdent from the MarcRecord\n // is there a matching persisted personIdent\n // under the expression.realizedBy relationship\n for (ExpressionToResponsibleParty realizedBy :\n expression.getHasRealizers()) {\n // this should be a PersonJpa, but ...\n // TODO better way to screen ResponsiblePartyJpa subclasses?\n try {\n final PersonJpa responPers =\n (PersonJpa) realizedBy.\n getTargetResponsibleParty();\n if (persAuthIdent.equals(responPers.getAuthIdent())) {\n matchCount++;\n }\n } catch (ClassCastException notPerson) {\n // not a PersonJpa\n }\n }\n }\n }\n }\n\n return matchCount;\n }", "int countAssociations();", "int getAchieveInfoCount();", "int countMaterials() throws ReadException;", "int countByExample(organize_infoBeanExample example);", "boolean isCounting();", "public int getNumSmallCars() {\r\n\t\treturn numSmallCars;\r\n\t}", "public int getMaterialsCount() {\n return materials_.size();\n }", "int countByExample(ProSchoolWareExample example);", "int countByExample(TbaDeliveryinfoCriteria example);", "int countByExample(BasicinfoCriteria example);", "long countByExample(GpPubgPlayerExample example);", "int countByExample(BasicInfoPrecursorProcessTypeExample example);", "int getDonatoriCount();", "int getReaultCount();", "public int getHandKarteCount(){\n return getHandKarte().size();\n }", "int countByExample(UcOrderGuestInfoExample example);", "public int getProductCount();", "long countByExample(PaasCustomAutomationRecordExample example);", "@Override\n\tpublic int countPro() {\n\t\treturn productSubMapper.selectCountPro();\n\t}", "long countByExample(Drug_OutWarehouseExample example);", "int getTrucksCount();", "private static long vratiBrojOdlikasa(List<StudentRecord> records) {\n\t\treturn records.stream().filter(o -> o.getOcjena() == 5).count();\n\t}", "int countByExample(ItoProductCriteria example);", "default long getPartCount(ExecutionContext context, PartType type, Owner layer) {\n return getPartsInDisplayOrder(context, layer)\n .stream()\n .filter(p -> type == null || p.getType() == type)\n .count();\n }", "int getExperimentsCount();", "int countByExample(TourstExample example);", "@Override\n\tpublic int countCompany() {\n\t\treturn comShortMapper.selectCountShort()+elegantMapper.selectCountEle()+honorMapper.selectCountHonor();\n\t}", "int countByExample(SdkPhoneExample example);", "public int getMaterialsCount() {\n return materials_.size();\n }", "int countByExample(ReleaseSystemExample example);", "public int findTotalPapersWithVariants() throws DAOException;", "int countByExample(ProcRecInvoiceExample example);", "public int getNumGruppoPacchetti();", "public abstract int count();", "public abstract int count();", "int findCount();", "int getNumOfBuyOrders();", "int getContactCount();", "public void testCount()\n\t{\n\t\tinfo.append(a1);\n\t\tinfo.append(a2);\n\t\tinfo.append(a3);\n\t\tassertEquals(3,info.getSynonymsCount());\n\t}", "int countByExample(MVoucherDTOCriteria example);" ]
[ "0.6159599", "0.6138829", "0.6138829", "0.5879717", "0.58017004", "0.57781327", "0.5701904", "0.55973965", "0.55402976", "0.55345625", "0.5443655", "0.5395478", "0.53819877", "0.5379032", "0.5379032", "0.5372375", "0.5369767", "0.5360807", "0.5349644", "0.5347471", "0.5347471", "0.5347471", "0.5347471", "0.5347471", "0.53351974", "0.53344357", "0.53297776", "0.53264093", "0.532348", "0.5307487", "0.5284673", "0.52722424", "0.5268961", "0.5259144", "0.52570987", "0.5255061", "0.52428544", "0.5230674", "0.5230674", "0.52236193", "0.52218944", "0.52112824", "0.52110964", "0.5202871", "0.51915246", "0.5187139", "0.51849884", "0.5181944", "0.5177646", "0.5171592", "0.51558435", "0.5149942", "0.51462525", "0.51376396", "0.51370555", "0.51360375", "0.5130626", "0.5128231", "0.51257026", "0.51251847", "0.5122142", "0.51204246", "0.51163757", "0.5115485", "0.5109235", "0.51061183", "0.51018006", "0.50953335", "0.50886345", "0.5088034", "0.5082944", "0.5079593", "0.5078699", "0.50746065", "0.50726706", "0.5071968", "0.5071237", "0.5058333", "0.5053424", "0.5052657", "0.50507516", "0.50473195", "0.5045287", "0.5040596", "0.50393844", "0.50288075", "0.50243944", "0.50205404", "0.5019059", "0.501223", "0.5011362", "0.50058967", "0.5000449", "0.4996827", "0.4996827", "0.49929747", "0.4987407", "0.4986565", "0.4985749", "0.49776542" ]
0.8063442
0
Part B loop thought the list and check for matching adjacent pairs return true of any adjacent [ side by side ] pairs are the same to be the same the pairs must have the same maker and be either electronic or nonelectronic you really really should use the equals method from Gizmo
public boolean hasAdjacentEqualPair() { for( int i = 0; i < purchases.size()-1; i++ ) { Gizmo curr = purchases.get( i ); Gizmo nxt = purchases.get( i + 1 ); if( curr.equals( nxt ) ) return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean makePair() {\n int pairs = -1;\n for (Integer key : this.cardOccurrence.keySet()) {\n int value = this.cardOccurrence.get(key);\n if (value == 2)\n pairs = key;\n }\n //Means no keys w/ occurrence 2\n if (pairs == -1)\n return false;\n ArrayList<String> validHands = new ArrayList<>();\n Collections.sort(this.cards, Card.COMPARE_BY_VALUE);\n int i = this.cards.size() - 1;\n\n //First find the pair and add them to the validHands\n while(i >= 0) {\n Card c = this.cards.get(i);\n if(c.sameValue(pairs))\n validHands.add(c.toString());\n i--;\n }\n\n //Then add kickers in order of magnitude\n i = this.cards.size() - 1;\n while(i >= 0 && validHands.size() < 5) {\n Card c = this.cards.get(i);\n if(!c.sameValue(pairs))\n validHands.add(c.toString());\n i--;\n }\n this.cardHand = new CardHand(validHands.toArray(new String[0]));\n return true;\n }", "public static boolean opposites(Pair[] data){\n HashSet<Pair> hs = new HashSet<>(20, 0.9f);\n for(Pair p : data) {\n if(hs.contains(new Pair(p.b(), p.a())))\n return true;\n hs.add(p);\n }\n return false;\n }", "public boolean isTwoPairs(){\n \r\n List<PokerCard> pair1;\r\n List<PokerCard> pair2;\r\n \r\n //First possibility: first four cards are two pairs\r\n pair1 = cards.subList(0, 2);\r\n pair2 = cards.subList(2, 4);\r\n if(haveSameValue(pair1) && haveSameValue(pair2)){\r\n handValue = pair2.get(0).getValue();\r\n lowerPairValue = pair1.get(0).getValue();\r\n remainingCardValue = cards.get(cards.size()-1).getValue();\r\n return true;\r\n }\r\n \r\n //Second possibility: First two and last two cards are pairs\r\n pair1 = cards.subList(0, 2);\r\n pair2 = cards.subList(3, 5);\r\n if(haveSameValue(pair1) && haveSameValue(pair2)){\r\n handValue = pair2.get(0).getValue();\r\n lowerPairValue = pair1.get(0).getValue();\r\n remainingCardValue = cards.get(2).getValue();\r\n return true;\r\n }\r\n \r\n //Third possibility: Last four cards are two pairs\r\n pair1 = cards.subList(1, 3);\r\n pair2 = cards.subList(3, 5);\r\n if(haveSameValue(pair1) && haveSameValue(pair2)){\r\n handValue = pair2.get(0).getValue();\r\n lowerPairValue = pair1.get(0).getValue();\r\n remainingCardValue = cards.get(0).getValue();\r\n return true;\r\n }\r\n return false;\r\n }", "private boolean isEqual(Iterator<?> instance, OasisList<?> baseList) {\n\n boolean equal = true;\n int i = 0;\n while (instance.hasNext()) {\n if (!baseList.get(i++).equals(instance.next())) {\n equal = false;\n break;\n }\n }\n\n return equal;\n }", "protected boolean checkPair(ReturnValue returnValue) {\n\t\tboolean returnBool = false;\n\t\tint localCheck = 0;\n\t\tint localPoint = 0;\n\t\tint localDiceInt = 0;\n\t\tboolean localBool = false;\n\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tfor (int j = 0; j < 5; j++) {\n\t\t\t\tif (intList.get(i) == intList.get(j)) {\n\t\t\t\t\tlocalCheck++;\n\t\t\t\t\tif (localCheck == 2) {\n\t\t\t\t\t\tlocalBool = true;\n\t\t\t\t\t\tif (localPoint < intList.get(i) * 2) {\n\t\t\t\t\t\t\tlocalPoint = intList.get(i) * 2;\n\t\t\t\t\t\t\tlocalDiceInt = intList.get(i);\n\t\t\t\t\t\t\treturnValue.setTheDiceInt(localDiceInt);\n\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\tlocalCheck = 0;\n\t\t}\n\t\treturnValue.setValue(localBool, localPoint, Box.ONE__PAIR);\n\t\treturnValue.setTheDiceInt(localDiceInt);\n\t\treturnBool = true;\n\t\treturn returnBool;\n\t}", "public boolean hasPair(ArrayList<Card>cards) {\r\n\t\tCollections.sort(cards);\r\n\t\tfor(int i = 0; i < cards.size() - 1; i++) {\r\n\t\t\tfor(int j = i+1; j < cards.size(); j++) {\r\n\t\t\t\tif(cards.get(i).getValue() == cards.get(j).getValue()) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t\r\n\t}", "private static boolean isSame(List<PokerLabel> list, int size) {\n PokerLabel firstPokerLabel = list.get(0);\n int num = firstPokerLabel.getNum();\n for (PokerLabel p: list) {\n if (num != p.getNum()) {\n return false;\n }\n }\n return true;\n }", "public boolean isPair(){\n \r\n List<PokerCard> pair;\r\n remainingCardValues = new ArrayList<>();\r\n \r\n //First possibility: first two cards\r\n pair = cards.subList(0, 2);\r\n if(haveSameValue(pair)){\r\n handValue = pair.get(0).getValue();\r\n \r\n //Store remaining card values for potential later comparison\r\n remainingCardValues.add(cards.get(4).getValue());\r\n remainingCardValues.add(cards.get(3).getValue());\r\n remainingCardValues.add(cards.get(2).getValue()); \r\n \r\n return true;\r\n }\r\n \r\n //Second possibility: cards 2 and 3\r\n pair = cards.subList(1, 3);\r\n if(haveSameValue(pair)){\r\n handValue = pair.get(0).getValue();\r\n \r\n //Store remaining card values for potential later comparison\r\n remainingCardValues.add(cards.get(4).getValue());\r\n remainingCardValues.add(cards.get(3).getValue());\r\n remainingCardValues.add(cards.get(0).getValue());\r\n \r\n return true;\r\n }\r\n \r\n //Third possibility: cards 3 and 4\r\n pair = cards.subList(2, 4);\r\n if(haveSameValue(pair)){\r\n handValue = pair.get(0).getValue();\r\n \r\n //Store remaining card values for potential later comparison\r\n remainingCardValues.add(cards.get(4).getValue());\r\n remainingCardValues.add(cards.get(1).getValue());\r\n remainingCardValues.add(cards.get(0).getValue());\r\n \r\n return true;\r\n }\r\n \r\n //Fourth possibility: last two cards\r\n pair = cards.subList(3, 5);\r\n if(haveSameValue(pair)){\r\n handValue = pair.get(0).getValue();\r\n \r\n //Store remaining card values for potential later comparison\r\n remainingCardValues.add(cards.get(2).getValue());\r\n remainingCardValues.add(cards.get(1).getValue());\r\n remainingCardValues.add(cards.get(0).getValue());\r\n \r\n return true;\r\n }\r\n return false;\r\n }", "public boolean isPair() {\r\n\r\n return getHighestConsecutive() == 2;\r\n }", "public boolean hasTwoP(ArrayList<Card> cards) {\r\n\t\tCollections.sort(cards);\r\n\t\tboolean retVal = false;\r\n\t\tint numPairs = 0;\r\n\t\tint counter;// counts how many of those cards are in the hand\r\n\t\tint pairVal = 0;\r\n\t\tfor (int i = 0; i <cards.size()-1; i++) {\r\n\t\t\tcounter = 1;\r\n\t\t\tfor (int j = i+1; j < cards.size(); j++) {\r\n\t\t\t\tif(cards.get(i).getValue() == cards.get(j).getValue() &&\r\n\t\t\t\t\t\tcards.get(i).getValue() != pairVal){\r\n\t\t\t\t\tcounter++;\r\n\t\t\t\t\tpairVal = cards.get(j).getValue();\r\n\t\t\t\t\tif(counter > 1) {\r\n\t\t\t\t\t\tnumPairs++;\r\n\t\t\t\t\t\tif (numPairs == 2) {\r\n\t\t\t\t\t\t\tretVal = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn retVal;\r\n\t}", "private boolean checkTwoPairs(Player player) {\n\t\t// first pair\n\t\tcheckPair(player);\n\n\t\t// doesn't qualify for 2 pairs\n\t\tif (!player.isPair()) {\n\t\t\tplayer.setPair(false);\n\t\t\treturn false;\n\t\t}\n\n\t\t// second pair\n\t\tfor (int j = 4; j > 0; j--) {\n\t\t\tif (player.getSevenCardsTempHand().get(j).getRank()\n\t\t\t\t\t.equals(player.getSevenCardsTempHand().get(j - 1).getRank())) {\n\t\t\t\tplayer.setTwoPairs(true);\n\t\t\t\tplayer.setHandRank(HandRank.TWO_PAIRS);\n\n\t\t\t\t// add second pair to the 5 cards hand\n\t\t\t\thand[2] = player.getSevenCardsTempHand().get(j);\n\t\t\t\thand[3] = player.getSevenCardsTempHand().get(j - 1);\n\t\t\t\tplayer.getSevenCardsTempHand().remove(j);\n\t\t\t\tplayer.getSevenCardsTempHand().remove(j - 1);\n\n\t\t\t\t// add kicker\n\t\t\t\thand[4] = player.getSevenCardsTempHand().get(2);\n\t\t\t\tplayer.setFiveCardsHand(hand);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// add 3 kickers for the single pair found\n\t\thand[2] = player.getSevenCardsTempHand().get(4);\n\t\thand[3] = player.getSevenCardsTempHand().get(3);\n\t\thand[4] = player.getSevenCardsTempHand().get(2);\n\t\tplayer.setFiveCardsHand(hand);\n\n\t\treturn false;\n\t}", "private boolean identicalAtoms(IAtomContainer molecule1, List<IAtomContainer> fragsToCompare) {\n\t\n \tfor (int i = 0; i < fragsToCompare.size(); i++) {\n \t\t//no match\n \t\tif (molecule1.getBondCount() != fragsToCompare.get(i).getBondCount() && molecule1.getAtomCount() != fragsToCompare.get(i).getAtomCount()) \n \t\t{\n \t\t\tcontinue;\n \t\t}\n \t\t\n\n \t\tint n = 0;\n \t\t//array storing all already tried atoms\n \t\tboolean[] doneAtoms = new boolean[atomsContained + 1];\n \t\tfor (int j = 0; j < molecule1.getAtomCount(); j++) {\n \t\t\tfor (int k = 0; k < fragsToCompare.get(i).getAtomCount(); k++) \n \t\t\t{\n \t\t\t\t//compare atoms by symbol, thus only check for the same sum formula --> EXPERIMENTAL\n \t\t\t\tif(molecularFormulaRedundancyCheck)\n \t\t\t\t{\n \t\t\t\t\tif (molecule1.getAtom(j).getSymbol().equals(fragsToCompare.get(i).getAtom(k).getSymbol()) &&\n \t\t\t\t\t\t\t!doneAtoms[Integer.parseInt(fragsToCompare.get(i).getAtom(k).getID())]) {\n \t\t\t\t\tn++;\n \t\t\t\t\tdoneAtoms[Integer.parseInt(fragsToCompare.get(i).getAtom(k).getID())] = true;\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t\t} \t\t\t\t\n \t\t\t\t//normal test creates way more fragments!\n \t\t\t\telse\n \t\t\t\t{\n \t\t\t\t\tif (molecule1.getAtom(j).equals(fragsToCompare.get(i).getAtom(k))) {\n \t\t\t\t\tn++;\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\tif(n == molecule1.getAtomCount())\n \t\t\treturn true;\n\t\t}\n\t //no match found\n\t\treturn false;\n\t}", "boolean hasXYPairs();", "boolean isOnePair();", "@Override\n\t\tboolean hasMatch(ArrayList<Card> hand) {\n\n\t\t\tint counter = 0;\n\t\t\tfor (int i = 0; i < hand.size(); i++) {\n\t\t\t\tif (i + 1 < hand.size()) {\n\t\t\t\t\tif (hand.get(i + 1).getCardValue().getValue()\n\t\t\t\t\t\t\t- hand.get(i).getCardValue().getValue() == 1)\n\t\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//if not straight, then do a final check of 5 unique cards\n\t\t\tHashMap<Integer, Integer> map = new HashMap<Integer, Integer>();\n\t\t\tif (counter != 4) {\n\t\t\t\tfor (int i = 0; i < hand.size(); i++) {\n\t\t\t\t\tif (!map.containsKey(hand.get(i).getCardValue().getValue())) {\n\t\t\t\t\t\tmap.put(hand.get(i).getCardValue().getValue(), 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmap.put(hand.get(i).getCardValue().getValue(),\n\t\t\t\t\t\t\t\tmap.get(hand.get(i).getCardValue().getValue()) + 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t\treturn map.size() == 5;\n\t\t}", "public boolean paired();", "@Override\n\t\tboolean hasMatch(ArrayList<Card> hand) {\n\t\t\tHashMap<Integer, Integer> map = new HashMap<Integer, Integer>();\n\t\t\tfor (int i = 0; i < hand.size(); i++) {\n\t\t\t\tif (!map.containsKey(hand.get(i).getCardValue().getValue())) {\n\t\t\t\t\tmap.put(hand.get(i).getCardValue().getValue(), 1);\n\t\t\t\t} else {\n\t\t\t\t\tmap.put(hand.get(i).getCardValue().getValue(),\n\t\t\t\t\t\t\tmap.get(hand.get(i).getCardValue().getValue()) + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (Integer counter : map.values()) {\n\t\t\t\tif (map.size() == 2 && counter == 4)\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "private void checkPair(Player player) {\n\t\tfor (int j = 6; j > 0; j--) {\n\t\t\tif (player.getSevenCardsTempHand().get(j).getRank()\n\t\t\t\t\t.equals(player.getSevenCardsTempHand().get(j - 1).getRank())) {\n\t\t\t\tplayer.setPair(true);\n\t\t\t\tplayer.setHandRank(HandRank.PAIR);\n\n\t\t\t\t// add the pair to the 5 cards hand\n\t\t\t\thand[0] = player.getSevenCardsTempHand().get(j);\n\t\t\t\thand[1] = player.getSevenCardsTempHand().get(j - 1);\n\t\t\t\tplayer.getSevenCardsTempHand().remove(j);\n\t\t\t\tplayer.getSevenCardsTempHand().remove(j - 1);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public void matchingcouple()\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Output :\");\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Following are the matching pairs \");\r\n\t\t\t\t\r\n\t\t\t\tfor(int i=0;i<womenmatchinlist.size();i++)\r\n\t\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t// print the matching pair from same index of men and women matching list\r\n\t\t\t\tSystem.out.println(menmatchinglist.get(i)+\" is engaged with \"+womenmatchinlist.get(i));\r\n\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}", "public boolean happyList(ArrayList<String> original) {\n for(int i = 1; i < original.size(); i++){\n ArrayList<Character> lastChars = characterArrayListMaker(original.get(i-1));\n ArrayList<Character> currentChars = characterArrayListMaker(original.get(i));\n boolean compareFlag = false;\n for(Character last : lastChars){\n for(Character current : currentChars){\n if (last.equals(current)){\n compareFlag = true;\n }\n }\n }\n if(!compareFlag){\n return false;\n }\n }\n return true;\n }", "private boolean identicalBonds(List<List<IBond>> bondListList, List<IBond> bondList) {\n \n \tboolean identical = false;\n \tint count = 0;\n \tint size = 0;\n \t\n \tfor (int i = 0; i < bondListList.size(); i++) {\n\t\t\t//different amount of bonds\n \t\tif(bondListList.get(i).size() != bondList.size())\n\t\t\t\tcontinue;\n \t\t\n \t\tsize = bondListList.get(i).size();\n \t\tfor(IBond currentBond : bondListList.get(i))\n \t\t{\n \t\t\tif(bondList.contains(currentBond))\n \t\t\t\tcount++;\n \t\t\telse\n \t\t\t\tbreak;\n \t\t\t\n \t\t\tif(count == size)\n \t\t\t\tidentical = true;\n \t\t}\n\t\t}\n \treturn identical;\n }", "public boolean isTwoPair() {\n int numbersSame = 0;\n int pairs = 0;\n for (int i = 0; i < dice.length && numbersSame < 3; i++) {\n numbersSame = 0;\n for (int x = 0; x < dice.length; x++) {\n if (dice[i].getFaceValue() == dice[x].getFaceValue()) {\n numbersSame++;\n }\n }\n if (numbersSame == 2) {\n pairs++;\n }\n }\n return (pairs == 4);\n }", "public boolean isPair() {\n \t\n return (rankSet().size() ==4);\n }", "protected boolean isSameSnakSet(Iterator<Snak> snaks1, Iterator<Snak> snaks2) {\n\t\tArrayList<Snak> snakList1 = new ArrayList<>(5);\n\t\twhile (snaks1.hasNext()) {\n\t\t\tsnakList1.add(snaks1.next());\n\t\t}\n\n\t\tint snakCount2 = 0;\n\t\twhile (snaks2.hasNext()) {\n\t\t\tsnakCount2++;\n\t\t\tSnak snak2 = snaks2.next();\n\t\t\tboolean found = false;\n\t\t\tfor (int i = 0; i < snakList1.size(); i++) {\n\t\t\t\tif (snak2.equals(snakList1.get(i))) {\n\t\t\t\t\tsnakList1.set(i, null);\n\t\t\t\t\tfound = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!found) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn snakCount2 == snakList1.size();\n\t}", "boolean hasIsEquivalent();", "private static boolean areAdjoining(List<Integer> list) {\r\n if (list.isEmpty()) {\r\n return false;\r\n }\r\n int check = list.get(0);\r\n for (int value : list) { // (use iterator for efficiency)\r\n if (value != check) {\r\n return false;\r\n }\r\n check += 1;\r\n }\r\n return true;\r\n }", "public boolean equals(LinkedList list){\n if (this.size() == list.size()){\n for (int i = 0; i < this.size(); i++){\n if(this.get(i) != list.get(i)){\n return false;\n }\n }\n return true;\n }else{ \n return false;\n } \n }", "@Override\n\t\tboolean hasMatch(ArrayList<Card> hand) {\n\t\t\tHashMap<Integer, Integer> map = new HashMap<Integer, Integer>();\n\t\t\tfor (int i = 0; i < hand.size(); i++) {\n\t\t\t\tif (!map.containsKey(hand.get(i).getCardValue().getValue())) {\n\t\t\t\t\tmap.put(hand.get(i).getCardValue().getValue(), 1);\n\t\t\t\t} else {\n\t\t\t\t\tmap.put(hand.get(i).getCardValue().getValue(),\n\t\t\t\t\t\t\tmap.get(hand.get(i).getCardValue().getValue()) + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tint counter = 0;\n\t\t\tif (map.size() == 2) {\n\t\t\t\tfor (Integer key : map.keySet()) {\n\t\t\t\t\tif (map.get(key) == 3) {\n\t\t\t\t\t\tcounter++;\n\t\t\t\t\t}\n\t\t\t\t\tif (map.get(key) == 2) {\n\t\t\t\t\t\tcounter++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn counter == map.size();\n\t\t}", "public static boolean hasPair(Card[] cards) {\n\t\tint counter = 0;\n\t\tfor(int i = 0; i < cards.length; i++){\n\t\t\tfor(int j = i+1; j< cards.length; j++){\n\t\t\t\tif(cards[i].getValue() == cards[j].getValue()){\n\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(counter>=1){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public static boolean same(int[][] list) {\r\n \tfor (int i=1; i<list.length; i++)\r\n \t\tif (!same(list[0], list[i]))\r\n \t\t\treturn false;\r\n \treturn true;\r\n }", "public boolean equals(Pair otherPair){\n return this.item1 == otherPair.item1 && this.item2 == otherPair.item2;\n }", "private boolean Equals(ArrayList<Integer> list) {\n f = list.get(0);\n o = list.get(1);\n r = list.get(2);\n t = list.get(3);\n y = list.get(4);\n s = list.get(5);\n i = list.get(6);\n x = list.get(7);\n e = list.get(8);\n n = list.get(9);\n // Y is in 1's place, T in 10's, R in 100's, O in 1000's place and finally F in 10000's place. assign these\n // values approprately for each number.\n FORTY = (f * 10000 + o * 1000 + r * 100 + t * 10 + y * 1);\n SIXTY = (s * 10000 + i * 1000 + x * 100 + t * 10 + y * 1);\n TEN = (t * 100 + e * 10 + n * 1);\n int sum = FORTY + TEN + TEN;\n\n // if our values match up correctly, then we will show the values of each.\n if (sum == SIXTY) {\n System.out.printf(\"Forty: %d,\\nTen: %d,\\nSixty: %d\\n\", FORTY, TEN, SIXTY);\n System.out.printf(\"The values of each letters are as follows:\\nF = %d,\\nO = %d,\\nR = %d,\\nT = %d,\\nY = %d,\\n\" +\n \"S = %d,\\nI = %d,\\nX = %d,\\nE = %d,\\nand N = %d.\", f, o, r, t, y, s, i, x, e, n);\n return true;\n }\n return false;\n }", "private void generatePointPairs() {\n\t\tfinal int mod = SIZE_OF_ORIGINAL_LIST * 8; \n\t\t\n\t\tif(DEBUG) System.out.println(\"----- Generating Point Pairs...\");\n\n\t\tint counter = 0;\n\t\tint j = 0;\n\t\t\n\t\tfor(int i = 0; i < myPoints.length; i++) {\n\t\t\t//while(j++ < myPoints.length) {\n\t\t\tfor( ; j < myPoints.length; j++) {\n\t\t\t\t// i and j are the same point, so ignore that pair.\n\t\t\t\tif(i != j) {\n\t\t\t\t\tmyPairs.add(new PointPair(myPoints[i], myPoints[j]));\n\t\t\t\t\tif(DEBUG && ++counter % mod == 0) System.out.print(\"pair \");\n\t\t\t\t}\n\t\t\t\t// Not yet colinear, just a unique pair to use later.\n\t\t\t}\n\n\t\t}\n\t\tif(DEBUG) System.out.println(\"\\n----- ----- \" + counter + \" pairs found.\\n\");\n\t}", "public void Pairs()\r\n {\n int pairsize = 0;\r\n int ind1 = 0;\r\n for(int i = 0; i < 5; i++){\r\n// while(cards[i].getNumber() != pairnum){\r\n for(int j = i+1; j < 5; j++)\r\n {\r\n if(cards[i].getFace().equals(cards[j].getFace()))\r\n {\r\n ind1 = i;\r\n if(pairsize < 3){\r\n pairsize += 1;\r\n// paircounts += 1;\r\n }\r\n if(cards[i].compareTo(cards[ind1]) > 0){\r\n// Maxpair = cards[i].getNumber();\r\n index = i;\r\n }\r\n \r\n }\r\n }\r\n// }\r\n }\r\n if(pairsize == 1)\r\n Judge = 2;\r\n if(pairsize == 2)\r\n Judge = 3;\r\n if(pairsize == 3)\r\n Judge = 6;\r\n }", "public static boolean hasTwoPair(Card[] cards) {\n\t\tint counter = 0;\n\t\tint value = 0;\n\t\tfor(int i = 0; i< cards.length; i++){\n\t\t\tfor(int j = i+1; j< cards.length; j++){\n\t\t\t\tif(cards[i].getValue() == cards[j].getValue() \n\t\t\t\t\t\t&& value !=cards[j].getValue()){\n\t\t\t\t\tcounter++;\n\t\t\t\t\tvalue = cards[j].getValue();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(counter>=2){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private boolean hasNomeRepetido(String[] listaNomes) {\n for (int i = 0; i < listaNomes.length; i++) {\n for (int j = 0; j < listaNomes.length; j++) {\n if ((i != j) && (listaNomes[i].equals(listaNomes[j]))) {\n return true;\n }\n }\n }\n\n return false;\n }", "@Override\n\t\tboolean hasMatch(ArrayList<Card> hand) {\n\t\t\tHashMap<Integer, Integer> map = new HashMap<Integer, Integer>();\n\t\t\tfor (int i = 0; i < hand.size(); i++) {\n\t\t\t\tif (!map.containsKey(hand.get(i).getCardValue().getValue())) {\n\t\t\t\t\tmap.put(hand.get(i).getCardValue().getValue(), 1);\n\t\t\t\t} else {\n\t\t\t\t\tmap.put(hand.get(i).getCardValue().getValue(),\n\t\t\t\t\t\t\tmap.get(hand.get(i).getCardValue().getValue()) + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tint counter = 0;\n\t\t\tif (map.size() == 4) {\n\n\t\t\t\tfor (Integer key : map.keySet()) {\n\t\t\t\t\tif (map.get(key) == 2) {\n\t\t\t\t\t\tcounter++;\n\t\t\t\t\t}\n\t\t\t\t\tif (map.get(key) == 1) {\n\t\t\t\t\t\tcounter++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn counter == 4;\n\t\t}", "private void assertEquivalentPair(Set<Pair> result, String s1, String s2) {\n\t\tPair resultPair = filterResult(result, s1, s2);\n\t\tassertFalse(resultPair.isMarked());\n\t}", "@Override\n\t\tpublic boolean equals(Object p) {\n\t\t\tif (p instanceof Pair) {\n\t\t\t\tPair obj = (Pair)p;\n\t\t\t\treturn (this.sum == obj.sum && this.index == obj.index);\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "public boolean checkstability()\r\n\t\t{\r\n\t\t\tArrayList<String> previouselement = null;\r\n\t\t\t\r\n\t\t\tSystem.out.println(womenmatchinlist);\r\n\t\t\t\r\n\t\t\tfor(int l=0;l<womenmatchinlist.size();l++)\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tString matchedman = menmatchinglist.get(l);\r\n\t\t\t\t\r\n\t\t\t\tString matchedwoman = womenmatchinlist.get(l);\r\n\t\t\t\t\r\n\t\t\t\tint matchedwomanindex = women.indexOf(matchedwoman);\r\n\t\t\t\t\r\n\t\t\t\tfor(int z=0;z<women.size();z++)\r\n\t\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t\tif(womenpreflist[matchedwomanindex][z].equals(matchedman))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(z>0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tfor(int s=0;s<=z;s++)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tpreviouselement = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tpreviouselement.add(womenpreflist[matchedwomanindex][s]);\r\n\t\t\t\t\t\t\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{\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\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\t\r\n\t\t\t\tif(previouselement.isEmpty()==false)\r\n\t\t\t\t{\r\n\r\n\t\t\t\tfor(int t=0;t<previouselement.size();t++)\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tString higherpreferman = previouselement.get(t);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// find current partner of higherpreferman\r\n\t\t\t\t\t\r\n\t\t\t\t\tint higherprefmenindex = menmatchinglist.indexOf(higherpreferman);\r\n\t\t\t\t\t\r\n\t\t\t\t\tString currentpartnerofhigher = womenmatchinlist.get(higherprefmenindex);\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tint tempindex = men.indexOf(higherpreferman);\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor(int i=0;i<numberofwomen;i++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// if new partner comes before current partner then return true\r\n\t\t\t\t\t\tif(menpreflist[tempindex][i].equals(currentpartnerofhigher))\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t// otherwise return false\r\n\t\t\t\t\t\tif(womenpreflist[tempindex][i].equals(matchedwoman))\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t\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\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\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\treturn false;\r\n\t\t\t\r\n\t\t}", "boolean isTwoPair();", "protected boolean checkTwoPairs(ReturnValue returnValueTwoPairs, ReturnValue returnValueOnePair) {\n\t\tboolean returnBool = false;\n\n\t\tif (returnValueOnePair.getIsPossible()) {\n\t\t\tint localCheck = 0;\n\t\t\tint localPoints = 0;\n\t\t\tboolean localBool = false;\n\n\t\t\tfor (int i = 0; i < 5; i++) {\n\t\t\t\tfor (int j = 0; j < 5; j++) {\n\t\t\t\t\tif (intList.get(i) == intList.get(j) && intList.get(i) != returnValueOnePair.getTheDiceInt()) {\n\t\t\t\t\t\tlocalCheck++;\n\t\t\t\t\t\tif (localCheck == 2) {\n\t\t\t\t\t\t\tlocalBool = true;\n\t\t\t\t\t\t\tif (localPoints < intList.get(i) * 2) {\n\t\t\t\t\t\t\t\tlocalPoints = intList.get(i) * 2;\n\t\t\t\t\t\t\t\tlocalPoints += returnValueOnePair.getPoints();\n\t\t\t\t\t\t\t\treturnValueTwoPairs.setValue(localBool, localPoints, Box.TWO_PAIRS);\n\t\t\t\t\t\t\t\treturnBool = true;\n\t\t\t\t\t\t\t\treturn returnBool;\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\tlocalCheck = 0;\n\t\t\t}\n\t\t\treturnValueTwoPairs.setValue(localBool, localPoints, Box.TWO_PAIRS);\n\t\t}\n\t\treturn returnBool;\n\t}", "@Override\n public boolean equals(Object o) {\n try {\n Pair p = (Pair) o;\n return (this.getSource().equals(p.source) && this.getDestination().equals(p.getDestination()));\n\n } catch (Exception ex) {\n return false;\n }\n }", "public boolean allDuplicatesEqual() {\n int[] input = {1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5};\n int dupA = findDuplicatesA(input);\n int dupB = findDuplicatesB(input);\n int dupC = findDuplicatesC(input);\n int dupD = findDuplicatesD(input);\n int dupE = findDuplicatesE(input);\n return dupA == dupB && dupA == dupC && dupA == dupD && dupA == dupE;\n }", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int[] list = new int[n];\n for (int i = 0; i < n; i++) {\n list[i] = scanner.nextInt();\n }\n int m1 = scanner.nextInt();\n int m2 = scanner.nextInt();\n boolean next = false;\n\n for (int i = 0; i < n - 1; i++) {\n if (list[i] == m1 && list[i + 1] == m2) {\n next = true;\n } else if (list[i] == m2 && list[i + 1] == m1) {\n next = true;\n }\n }\n System.out.println(!next);\n }", "private boolean inSameSuit() {\n for (int i = 0; i < cards.length-2; i++) {\n if (cards[i].charAt(1) != cards[i + 1].charAt(1)) {\n return false;\n }\n }\n \n return true;\n }", "public static boolean hasPair(Card[] cards) {\n\t\tint startInt= 1;\n\t\tfor(int check1 = 0; check1 < cards.length-1; check1++)\n\t\t{\n\t\t\tfor(int check2 = startInt; check2 < cards.length; check2++)\n\t\t\t{\n\t\t\t\tif (cards[check1].getValue() == cards[check2].getValue())\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tstartInt++;\n\t\t}\n\t\treturn false;\n\t\t//throw new RuntimeException(\"Not yet implemented.\");\n\t}", "@Override\n public boolean isStableMatching(Matching marriage) {\n\n int residentsNumber = marriage.getResidentCount();\n ArrayList<Integer> resident_matching = marriage.getResidentMatching();\n ArrayList<ArrayList<Integer>> hospital_preference = marriage.getHospitalPreference();\n ArrayList<ArrayList<Integer>> resident_preference = marriage.getResidentPreference();\n\n /*To check later if all slots are filled */\n int matchedResidents=0;\n\n /*loop through all residents*/\n for (int resident = 0; resident < residentsNumber; resident++) {\n if(resident_matching.get(resident)!=-1)\n matchedResidents++;\n int matchedHospital = resident_matching.get(resident);\n\n if (matchedHospital == -1)\n continue;\n\n /*loop through all residents before the selected resident in the matched hospital's preference list*/\n for (int residentToCompareIndex = 0; residentToCompareIndex < hospital_preference.get(matchedHospital).indexOf(resident); residentToCompareIndex++) {\n int residentToCompare = hospital_preference.get(matchedHospital).get(residentToCompareIndex);\n int matchedHospitalToCompare = resident_matching.get(residentToCompare);\n /*check for 1st instability*/\n if (matchedHospitalToCompare == -1)\n return false;\n /*check for 2nd instability*/\n else if (resident_preference.get(residentToCompare).indexOf(matchedHospital) < resident_preference.get(residentToCompare).indexOf(matchedHospitalToCompare))\n return false;\n }\n }\n if(matchedResidents!=marriage.totalHospitalSlots())\n return false;\n return true;\n }", "@Override\n\t\tboolean hasMatch(ArrayList<Card> hand) {\n\t\t\tHashMap<Integer, Integer> map = new HashMap<Integer, Integer>();\n\t\t\tfor (int i = 0; i < hand.size(); i++) {\n\t\t\t\tif (!map.containsKey(hand.get(i).getCardValue().getValue())) {\n\t\t\t\t\tmap.put(hand.get(i).getCardValue().getValue(), 1);\n\t\t\t\t} else {\n\t\t\t\t\tmap.put(hand.get(i).getCardValue().getValue(),\n\t\t\t\t\t\t\tmap.get(hand.get(i).getCardValue().getValue()) + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tint counter = 0;\n\t\t\tif (map.size() == 3) {\n\n\t\t\t\tfor (Integer key : map.keySet()) {\n\t\t\t\t\tif (map.get(key) == 2) {\n\t\t\t\t\t\tcounter++;\n\t\t\t\t\t}\n\t\t\t\t\tif (map.get(key) == 1) {\n\t\t\t\t\t\tcounter++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn counter == 3;\n\t\t}", "public boolean hasTwoPairs() {\n\t\t\n\t\tboolean paired = false;\n\t\t\n\t\tif (firstDigit == secondDigit && thirdDigit == forthDigit) {paired = true;}\n\t\telse if (firstDigit == thirdDigit && secondDigit == forthDigit) {paired = true;}\n\t\telse if (firstDigit == forthDigit && secondDigit == thirdDigit) {paired = true;}\n\t\t\n\t\treturn paired;\n\t}", "public static void main(String[] args) {\n Pair first = new Pair(\"Pesho\", \"Gosho\");\r\n Pair second = new Pair(\"Pesho\", \"Gosho\");\r\n Pair third = new Pair(\"Pesho\", \"Mariika\");\r\n \r\n System.out.println(first.equals(second));\r\n System.out.println(first.equals(third));\r\n }", "private boolean containsSameCoord(Point p) {\n boolean elementsContainsP = false;\n Iterator<Point> it = _elements.iterator();\n while (it.hasNext()) {\n Point pt = it.next();\n if (x(pt) == x(p) && y(pt) == y(p)) {\n elementsContainsP = true;\n break;\n }\n }\n return elementsContainsP;\n }", "public boolean isFullHouse(){\n List<PokerCard> firstList;\r\n List<PokerCard> secondList;\r\n \r\n //First possibility: first two cards are a pair\r\n firstList = cards.subList(0, 2);\r\n secondList = cards.subList(2, cards.size());\r\n if(haveSameValue(firstList) && haveSameValue(secondList)){\r\n handValue = secondList.get(0).getValue();\r\n return true;\r\n }\r\n \r\n //Second possibility: last two cards are a pair\r\n firstList = cards.subList(0, 3);\r\n secondList = cards.subList(3, cards.size());\r\n if(haveSameValue(firstList) && haveSameValue(secondList)){\r\n handValue = firstList.get(0).getValue();\r\n return true;\r\n }\r\n \r\n return false;\r\n }", "public boolean hasTwoPair(Hand handToCheck){\n\t\tHand hand = new FiveCardHand(handToCheck); //Make copy of the object so original doesn't get modified\n\t\tHand firstPair = getPair(hand);\n\t\tif(firstPair == null){\n\t\t\treturn false;\n\t\t}\n\t\tlog.debug(\"First Pair = \"+firstPair);\n\t\thand.removeHand(firstPair);\n\t\tHand secondPair = getPair(hand);\n\t\tif(secondPair == null){\n\t\t\treturn false;\n\t\t}\n\t\tlog.debug(\"Second Pair = \"+secondPair);\n\n\t\tlog.debug(\"returning true\");\n\t\treturn true;\n\t}", "public static int checkWinner(List<List<String>> codeList,\n List<String> shoppingCart)\n {\n Queue<String> secretCodeQueue = new LinkedList<>();\n Queue<String> matchedCodeQueue = new LinkedList<>();\n boolean comparisonLoop = false;\n for(List<String> codes: codeList){\n for(String code: codes){\n secretCodeQueue.add(code);\n }\n secretCodeQueue.add(\"@\");\n }\n\n while(!secretCodeQueue.isEmpty()) {\n for(String s: shoppingCart) {\n String code = secretCodeQueue.peek();\n if(\"@\".equalsIgnoreCase(code)){\n secretCodeQueue.remove();\n while(!matchedCodeQueue.isEmpty()) {\n matchedCodeQueue.remove();\n\n }\n\n }\n code = secretCodeQueue.peek();\n if(!code.equalsIgnoreCase(s) && !\"anything\".equalsIgnoreCase(code)){\n if(comparisonLoop) {\n while(!secretCodeQueue.isEmpty()) {\n matchedCodeQueue.add(secretCodeQueue.remove());\n }\n Queue temp = secretCodeQueue;\n secretCodeQueue = matchedCodeQueue;\n matchedCodeQueue = temp;\n }\n comparisonLoop = false;\n continue;\n }\n comparisonLoop = true;\n matchedCodeQueue.add(secretCodeQueue.remove());\n\n }\n secretCodeQueue.remove();\n if(!secretCodeQueue.isEmpty())\n return 0;\n\n }\n return secretCodeQueue.isEmpty()? 1: 0;\n\n\n\n }", "@Override\n\t\tboolean hasMatch(ArrayList<Card> hand) {\n\t\t\tHashMap<Integer, Integer> map = new HashMap<Integer, Integer>();\n\t\t\tfor (int i = 0; i < hand.size(); i++) {\n\t\t\t\tif (!map.containsKey(hand.get(i).getCardValue().getValue())) {\n\t\t\t\t\tmap.put(hand.get(i).getCardValue().getValue(), 1);\n\t\t\t\t} else {\n\t\t\t\t\tmap.put(hand.get(i).getCardValue().getValue(),\n\t\t\t\t\t\t\tmap.get(hand.get(i).getCardValue().getValue()) + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (Integer counter : map.values()) {\n\t\t\t\tif (map.size() == 3 && counter == 3)\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "@Override\n\t\tboolean hasMatch(ArrayList<Card> hand) {\n\t\t\tfor (int i = 0; i < hand.size(); i++) {\n\t\t\t\tif (i + 1 < hand.size()) {\n\t\t\t\t\tif (hand.get(i + 1).getCardValue().getValue()\n\t\t\t\t\t\t\t- hand.get(i).getCardValue().getValue() > 1)\n\t\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}", "public boolean DEBUG_compare(Alphabet other) {\n System.out.println(\"now comparing the alphabets this with other:\\n\"+this+\"\\n\"+other);\n boolean sameSlexic = true;\n for (String s : other.slexic.keySet()) {\n if (!slexic.containsKey(s)) {\n sameSlexic = false;\n break;\n }\n if (!slexic.get(s).equals(other.slexic.get(s))) {\n sameSlexic = false;\n break;\n }\n slexic.remove(s);\n }\n System.out.println(\"the slexic attributes are the same : \" + sameSlexic);\n boolean sameSlexicinv = true;\n for (int i = 0, limit = other.slexicinv.size(); i < limit; i++) {\n boolean temp = false;\n for (int j = i, limit2 = slexicinv.size() + i; j < limit2; j++) {\n int k = j % slexicinv.size();\n if (other.slexicinv.get(i).equals(slexicinv.get(k))) {\n temp = true;\n break;\n }\n }\n if (!temp) {\n sameSlexicinv = false;\n break;\n }\n\n }\n boolean sameSpair = true;\n System.out.println(\"the slexicinv attributes are the same : \" + sameSlexicinv);\n for (IntegerPair p : other.spair.keySet()) {\n if(!spair.containsKey(p)) {\n //if (!containsKey(spair, p)) {\n sameSpair = false;\n break;\n }\n //if (!(get(spair, p).equals(get(a.spair, p)))) {\n if (!spair.get(p).equals(other.spair.get(p))) {\n sameSpair = false;\n break;\n }\n }\n System.out.println(\"the spair attributes are the same : \" + sameSpair);\n boolean sameSpairinv = true;\n for (int i = 0, limit = other.spairinv.size(); i < limit; i++) {\n boolean temp = false;\n for (int j = i, limit2 = spairinv.size() + i; j < limit2; j++) {\n int k = j % spairinv.size();\n if (other.spairinv.get(i).equals(spairinv.get(k))) {\n temp = true;\n break;\n }\n }\n if (!temp) {\n sameSpairinv = false;\n break;\n }\n }\n System.out.println(\"the spairinv attributes are the same : \" + sameSpairinv);\n return (sameSpairinv && sameSpair && sameSlexic && sameSlexicinv);\n }", "@Test\n public void testHashCodeAndEquals() {\n Set<Pair<String, String>> pairs = IntStream.rangeClosed(1, 10).mapToObj( i->Pair.of(\"l\"+i, \"r\"+i)).collect( toSet() );\n assertEquals( 10, pairs.size() );\n assertTrue( pairs.contains(Pair.of(\"l1\", \"r1\")));\n assertFalse( pairs.contains(Pair.of(\"l100\", \"r100\")));\n }", "@Override\r\n\t\tpublic boolean equals(Object obj) {\n\t\t\tsynchronized (mutex) {\r\n\t\t\t\treturn pair.equals(obj);\r\n\t\t\t}\r\n\t\t}", "private boolean isSameList(CardList l1, CardList l2){\r\n\t\tif (l1.size()!=l2.size())\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tIterator<Card> i1 = l1.iterator();\r\n\t\tIterator<Card> i2 = l2.iterator();\r\n\t\twhile(i1.hasNext()){\r\n\t\t\tif (!i1.next().equals(i2.next()))\r\n\t\t\t{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean isConnected() {\r\n\r\n\t\tHashMap<String, Boolean> processed = new HashMap<>();\r\n\t\tLinkedList<Pair> queue = new LinkedList<>();\r\n\t\tArrayList<String> list = new ArrayList<>(vtces.keySet());\r\n\t\tint count = 0;\r\n\t\tfor (String key : list) {\r\n\t\t\tif (processed.containsKey(key))\r\n\t\t\t\tcontinue;\r\n\t\t\tcount++;\r\n\t\t\t// Create a new pair\r\n\t\t\tPair npr = new Pair();\r\n\t\t\tnpr.vname = key;\r\n\t\t\tnpr.psf = key;\r\n\r\n\t\t\t// put pair queue\r\n\t\t\tqueue.addLast(npr);\r\n\r\n\t\t\t// Work while queue is not empty\r\n\t\t\twhile (!queue.isEmpty()) {\r\n\r\n\t\t\t\t// Remove a pair from queue\r\n\t\t\t\tPair rp = queue.removeFirst();\r\n\r\n\t\t\t\tif (processed.containsKey(rp.vname))\r\n\t\t\t\t\tcontinue;\r\n\r\n\t\t\t\t// Put in processed hashmap\r\n\t\t\t\tprocessed.put(rp.vname, True);\r\n\r\n\t\t\t\t// nbrs\r\n\t\t\t\tVertex rpvertex = vtces.get(rp.vname);\r\n\t\t\t\tArrayList<String> nbrs = new ArrayList<>(rpvertex.nbrs.keySet());\r\n\r\n\t\t\t\tfor (String nbr : nbrs) {\r\n\t\t\t\t\t// Process only unprocessed vertex\r\n\t\t\t\t\tif (!processed.containsKey(nbr)) {\r\n\t\t\t\t\t\t// Create a new pair and put in queue\r\n\t\t\t\t\t\tPair np = new Pair();\r\n\t\t\t\t\t\tnp.vname = nbr;\r\n\t\t\t\t\t\tnp.psf = rp.psf + nbr;\r\n\r\n\t\t\t\t\t\tqueue.addLast(np);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tif (count > 1)\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "boolean checkStability() {\n\r\n for (int roommateIndex = 0; roommateIndex < preferenceA.length - 1; roommateIndex++) {//Iterates through all roommates to check their pair is stable\r\n\r\n int roommate = roommateIndex + 1; //Sets roommate equal to the roommateIndex + 1\r\n int roommatePair = getPairedRoommate(roommate);//roommatePair is set equal to the roommate's pair\r\n\r\n for (int roommatePrefIndex = 0; roommatePrefIndex < preferenceA[roommateIndex].length; roommatePrefIndex++) {//Iterates through roommate's preferences until the loop is broken\r\n\r\n int roommatePref = preferenceA[roommateIndex][roommatePrefIndex];//Sets the roommatePref equal to the roommate's current preference in the preference array\r\n if (roommatePref == roommatePair) //If the roommate's preference is equal to it's pair before it is equal to a roommate that prefers them, then the current roommate is stable\r\n break;\r\n\r\n int roommatePrefPair = getPairedRoommate(roommatePref);//sets roommatePrefPair to the roommate's current preference's paired roommate\r\n for (int roommatePrefPrefIndex = 0; roommatePrefPrefIndex < preferenceA[roommateIndex].length; roommatePrefPrefIndex++) {//Iterates through roommate's current preference's preferences until the loop is broken\r\n\r\n int roommatePrefPref = preferenceA[roommatePref - 1][roommatePrefPrefIndex];//sets roommatePrefPref equal to the roommate's current preference's current preference\r\n if (roommatePrefPref == roommatePrefPair) // if roommatePrefPref is equal to roommatePrefPair then the roommate's current preference does not want to pair with roommate\r\n break;\r\n if (roommatePrefPref == roommate) //if the roommatePrefPref is equal to roommate then the roommate's current preference wants to pair with the roommate, which means the system is unstable\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n }", "public boolean onStairs(){\n\t\tint yp = 0; int xp = 0;\n\t\tint ys = 1; int xs = 1;\n\t\tfor(int i = 0; i < this.position.length; i ++){//looks though arrays to gather position\n\t\t\tfor(int p = 0 ; p < this.position.length; p++){\n\t\t\t\tif(this.position[i][p] == 1 && this.Stairs[i][p] == 1){\n\t\t\t\t\typ=i; xp=p;\n\t\t\t\t\tys=i; xs=p;\n\t\t\t\t} \n\t\t\t}\n\t\t}\n\t\tif(yp==ys && xp==xs){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;//if they are not in the same location, return false\n\t}", "public Collection<MatchingPair> matchingPairs(Collection<Integer> values, Integer targetSum)\n {\n HashMap<Integer, Integer> tableCompteur = new HashMap<>();\n LinkedHashMap<Integer, Integer> tablePaire = new LinkedHashMap<Integer, Integer>();\n Collection<MatchingPair> paireSansDuplication = new LinkedList();\n Collection<MatchingPair> solution = new LinkedList();\n\n // On itere sur les valeurs donnee pour savoir le compte de chaque valeur\n for (Integer valeur : values)\n {\n if (tableCompteur.containsKey(valeur))\n {\n // Partie Compteur\n Integer compteur = tableCompteur.get(valeur);\n compteur++;\n tableCompteur.put(valeur, compteur);\n }\n else {\n tableCompteur.put(valeur, 0);\n }\n\n }\n\n // On itere sur les valeurs donnee pour savoir les paires\n for (Integer element : values)\n {\n int temp = targetSum - element;\n if (tablePaire.containsKey(element))\n {\n if (tablePaire.get(element) != null)\n {\n paireSansDuplication.add(new MatchingPair(element, temp));\n }\n // si la table contient l'element on met nul pour ne pas avoir de repetition\n tablePaire.put(temp, null);\n }\n else if (!tablePaire.containsKey(element))\n {\n tablePaire.put(temp, element);\n }\n }\n\n // On trouve le minimum count entre les paire et leur compte pour tenir en compte de toutes les possibilites. Ici le meilleur cas reste O(n) ( pas de paire)\n for (MatchingPair paire : paireSansDuplication)\n {\n if (paire != null) { // verification au debug pr erreur nullpointer\n int a = tableCompteur.get(paire.first);\n int b = tableCompteur.get(paire.second);\n int minCount = Math.min(a+1, b+1);\n for (int i = 0; i < pow(minCount, 2); i++)\n {\n solution.add(new MatchingPair(paire.first, paire.second));\n }\n }\n }\n return solution;\n }", "public boolean twoPair(int[] numArr) {\n\t\tfor (int i = 1; i < numArr.length-2; i++) {\n\t\t\tif (numArr[i-1]==numArr[i]&&numArr[i]==numArr[i+1]){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean equals(MengdeADT<T> m) {\n\t\tboolean likeMengder = true;\n\t\tIterator<T> nye = m.oppramser();\n\t\tif (this.antall == m.antall()) {\n\t\t\twhile (nye.hasNext() && likeMengder) {\n\t\t\t\t// Hvis neste element i m ikke er med i denne mengden --> likeMengder = false\n\t\t\t\tif (!inneholder(nye.next())) {\n\t\t\t\t\tlikeMengder = false;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tlikeMengder = false;\n\t\t}\n\t\t\n\t\treturn likeMengder;\n\t}", "public boolean isCyclic() {\r\n\r\n\t\tHashMap<String, Boolean> processed = new HashMap<>();\r\n\t\tLinkedList<Pair> queue = new LinkedList<>();\r\n\t\tArrayList<String> list = new ArrayList<>(vtces.keySet());\r\n\r\n\t\tfor (String key : list) {\r\n\t\t\tif (processed.containsKey(key))\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\t// Create a new pair\r\n\t\t\tPair npr = new Pair();\r\n\t\t\tnpr.vname = key;\r\n\t\t\tnpr.psf = key;\r\n\r\n\t\t\t// put pair queue\r\n\t\t\tqueue.addLast(npr);\r\n\r\n\t\t\t// Work while queue is not empty\r\n\t\t\twhile (!queue.isEmpty()) {\r\n\r\n\t\t\t\t// Remove a pair from queue\r\n\t\t\t\tPair rp = queue.removeFirst();\r\n\r\n\t\t\t\tif (processed.containsKey(rp.vname))\r\n\t\t\t\t\treturn true;\r\n\r\n\t\t\t\t// Put in processed hashmap\r\n\t\t\t\tprocessed.put(rp.vname, True);\r\n\r\n\t\t\t\t// nbrs\r\n\t\t\t\tVertex rpvertex = vtces.get(rp.vname);\r\n\t\t\t\tArrayList<String> nbrs = new ArrayList<>(rpvertex.nbrs.keySet());\r\n\r\n\t\t\t\tfor (String nbr : nbrs) {\r\n\t\t\t\t\t// Process only unprocessed vertex\r\n\t\t\t\t\tif (!processed.containsKey(nbr)) {\r\n\t\t\t\t\t\t// Create a new pair and put in queue\r\n\t\t\t\t\t\tPair np = new Pair();\r\n\t\t\t\t\t\tnp.vname = nbr;\r\n\t\t\t\t\t\tnp.psf = rp.psf + nbr;\r\n\r\n\t\t\t\t\t\tqueue.addLast(np);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean pairTest()\n\t{\n\t\tboolean pair = false;\n\t\tint index = 0;\n\t\t\n\t\twhile (index<(hand.length-1) && (!pair))\n\t\t{\n\t\t\tif (intRep[index] == intRep[index+1])\n\t\t\t{\n\t\t\t\tpair = true;\n\t\t\t\thandScore = 10000;\n\t\t\t\thandScore += 2 * (100 * intRep[index]);\n\t\t\t}\n\t\t\telse index++;\n\t\t}\n\t\t\n\t\t// If there's a pair, resolve kickers\n\t\tif (pair)\n\t\t{\n\t\t\tswitch (index)\n\t\t\t{\n\t\t\t\tcase 0:\t\t// Pair includes first two cards\n\t\t\t\t\tif (!twoPairTest(index)) {\n\t\t\t\t\t\tfor (int i=2; i<MAX_CARDS; i++)\n\t\t\t\t\t\t\thandScore += intRep[i]; }\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 1:\t\t// Pair excludes first card, includes 2nd-3rd\n\t\t\t\t\tif (!twoPairTest(index)) {\n\t\t\t\t\t\thandScore += intRep[0];\n\t\t\t\t\t\thandScore += (intRep[3] + intRep[4]); }\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 2:\t\t// Pair excludes first two, includes 3-4\n\t\t\t\t\tif (!twoPairTest(index)) {\n\t\t\t\t\t\thandScore += (intRep[0] + intRep[1]);\n\t\t\t\t\t\thandScore += intRep[4]; }\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tdefault:\t// Anything else where the kickers are higher than pair\n\t\t\t\t\tif (!twoPairTest(index))\n\t\t\t\t\t\thandScore += (intRep[0] + intRep[1] + intRep[2]);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn pair;\n\t}", "public boolean valid(List<Integer> curr){\n int size = curr.size();\n // compare last item with earlier ones\n // row: i col: curr[i]\n for(int i=0; i<size-1; i++){\n if ( curr.get(i) == curr.get(size-1) || \n i + curr.get(i) == curr.get(size-1) + (size-1) ||\n i - curr.get(i) == (size-1) - curr.get(size-1)\n )\n return false;\n }\n return true;\n }", "protected ArrayList<int[]> findAdjacentSafe(int[] pair) {\n\t\tint x = pair[0];\n\t\tint y = pair[1];\n\t\tArrayList<int[]> neighbors = new ArrayList<int[]>();\n\t\tfor (int i = x - 1; i <= x + 1; i++) {\n\t\t\tfor (int j = y - 1; j <= y + 1; j++) {\n\t\t\t\tif (i >= 0 && i < maxX && j >= 0 && j < maxY && coveredMap[i][j] != SIGN_UNKNOWN && coveredMap[i][j] != SIGN_MARK) {\n\t\t\t\t\tneighbors.add(new int[]{i, j});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn neighbors;\n\t}", "private boolean wellFormed() {\n\n\n\t\t\tGroup e = this;\n\n\t\t\tint i = 0;\n\t\t\tif(e.first == null && e.last == null && e.size == 0) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\n\t\t\tCard p = e.first;\n\t\t\tboolean check = false;\n\t\t\tif(e.first != null && e.last != null) {\n\t\t\t\tCard n = null;\n\t\t\t\tif(e.first.prev != null) return report(\"There is a loop\");\n\n\t\t\t\tfor(p = e.first; p.next != null; p = p.next) {\n\n\t\t\t\t\tn = p.next;\n\n\t\t\t\t\tif(n.prev != p) return report(\"p.next is null\");\n\t\t\t\t\tif(this != p.group) {\n\t\t\t\t\t\treturn report(\"this is not set to the group\");\n\t\t\t\t\t}\n\n\n\t\t\t\t}\n\n\t\t\t\tif(e.last.next != null) {\n\t\t\t\t\treturn report(\"Size is not equal to the amount of cards\");\n\t\t\t\t}\n\n\t\t\t\tfor(Card c = e.first; c.next != null; c = c.next) {\n\t\t\t\t\t++i;\n\t\t\t\t}\n\t\t\t\tif(i != this.size-1) {\n\t\t\t\t\treturn report(\"Size is not equal to the amount of cards\");\n\t\t\t\t}\n\t\t\t\tcheck = true;\n\t\t\t}\n\t\t\tif(check != true) {\n\t\t\t\tif(i != this.size) {\n\t\t\t\t\treturn report(\"Size is not equal to the amount of cards\");\n\t\t\t\t}\n\t\t\t\tif(e.first == null || e.last == null) {\n\t\t\t\t\treturn report(\"Error\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t}", "private void generate_pairs(ArrayList<Point> pointSet) {\n\t\tfor (int i = 0; i < pointSet.size(); i++) {\n\t\t\tfor (int j = i + 1; j < pointSet.size(); j++) {\n\n\t\t\t\tPair new_pair;\n\t\t\t\ttry {\n\t\t\t\t\tnew_pair = new Pair(pointSet.get(i), pointSet.get(j));\n\t\t\t\t\tunmarked_pairs.add(new_pair);\n\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// Dimensions don't match exception\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "public boolean hasPair(Hand handToCheck){\n\t\tHand hand = new FiveCardHand(handToCheck); //Make copy of the object so original doesn't get modified\n\t\tlog.debug(\"hasPair(hand = \"+hand+\")\");\n\t\tif(getPair(hand)!=null){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isTwoPair(){\r\n int temp[] = getIntArr();\r\n\r\n if(temp[0] == temp[1] && temp[2] == temp[3])\r\n return true;\r\n\r\n else if(temp[0] == temp[1] && temp[3] == temp[4])\r\n return true;\r\n\r\n else if(temp[1] == temp[2] && temp[3] == temp[4])\r\n return true;\r\n\r\n else return false;\r\n }", "@Override\n public boolean equals(Object obj) {\n Pair temp = (Pair) obj;\n if(left == temp.left && right == temp.right) {\n return true;\n } else {\n return false;\n }\n }", "void checkRepeated() {\r\n Move check = listOfMoves.peek();\r\n if (map.containsKey(check)) {\r\n _repeated = true;\r\n _winner = map.get(check.from()).opponent();\r\n }\r\n _repeated = false;\r\n }", "public boolean checkForCodek(){\n int size = pile.size();\n if(size >= 4){\n for(int i = size-1; i >= size-3; i--)\n if(pile.get(i).getVal() != pile.get(i-1).getVal())\n return false;\n return true;\n }\n else return false;\n }", "@Override\n public boolean equals(Object obj) {\n StorePairGeneric<E> o = (StorePairGeneric<E>) obj;\n return this.first.equals(o.first);\n \n // or boolean ans = this.first(temp.first);\n // return ans;\n }", "protected ArrayList<int[]> findAdjacentMark(int[] pair) {\n\t\tint x = pair[0];\n\t\tint y = pair[1];\n\t\tArrayList<int[]> neighbors = new ArrayList<int[]>();\n\t\tfor (int i = x - 1; i <= x + 1; i++) {\n\t\t\tfor (int j = y - 1; j <= y + 1; j++) {\n\t\t\t\tif (i >= 0 && i < maxX && j >= 0 && j < maxY && coveredMap[i][j] == SIGN_MARK) {\n\t\t\t\t\tneighbors.add(new int[]{i, j});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn neighbors;\n\t}", "public boolean doWeHaveSameStops(String corridorA, String corridorB);", "private void compressNonCrossingPairs(final List<GPairRecord<S, S>> records) {\n if(records.isEmpty()) {\n return ;\n }\n\n boolean globalCrossing = false;\n Pair<S, S> lastCrossingPair = null;\n Pair<S, S> lastCompressedPair = null;\n Iterator<GPairRecord<S, S>> iterator = records.iterator();\n GPairRecord<S, S> record;\n S letter = null;\n\n while(iterator.hasNext())\n {\n record = iterator.next();\n Pair<S, S> currentPair = record.pair;\n globalCrossing = record.isCrossingPair() || (lastCrossingPair != null && (lastCrossingPair.equals(currentPair)));\n\n if(record.isCrossingPair()) {\n lastCrossingPair = currentPair;\n }\n\n // skip all crossing pairs including the local pairs that are not crossing but has some other pairs equal to them are crossing\n if(!globalCrossing) {\n if(wordProperties.isPairAt(record.node, currentPair)) {\n if(lastCompressedPair == null || !lastCompressedPair.equals(record.pair)) {\n Pair<S, S> pair = record.pair;\n letter = terminalAlphabet.createTerminal(phase, 1L, pair.a.getWeight() + pair.b.getWeight(), pair);\n //signature.createLetter(record.pair);\n lastCompressedPair = record.pair;\n }\n compressNonCrossingPair(record, letter);\n }\n iterator.remove();\n }\n else {\n // we need the pairs to calculate the appearance for greedy pairing!\n if(!greedyPairCompression) {\n if(record.isCrossingPair() || !wordProperties.isPairAt(record.node, record.pair)) {\n iterator.remove();\n }\n }\n }\n }\n }", "private static boolean compareList(List<Object> l1, List<Object> l2)\n {\n int count=0;\n for (Object o : l1)\n {\n Object temp = o;\n for (Object otemp : l2)\n {\n if (EqualsBuilder.reflectionEquals(temp, otemp))\n {\n count++;\n }\n }\n\n }\n\n if(count == l1.size()) return true;\n return false;\n\n }", "public static Boolean getAppositivePrs(PairInstance inst) {\n if (inst.getAnaphor().getSentId()!=inst.getAntecedent().getSentId()) \n return false;\n\n// exclude pairs where anaphor is an NE -- this might be a bad idea though..\n if (inst.getAnaphor().isEnamex()) \n return false;\n\n\n if (inst.getAntecedent().isEnamex() &&\n inst.getAnaphor().isEnamex()) {\n\n// exclude pairs of NE that have different type\n\n if (!(inst.getAntecedent().getEnamexType().equals(\n inst.getAnaphor().getEnamexType())))\n return false;\n\n// exclude pairs of LOC-ne\n if (inst.getAntecedent().getEnamexType().toLowerCase().startsWith(\"gpe\"))\n return false;\n if (inst.getAntecedent().getEnamexType().toLowerCase().startsWith(\"loc\"))\n return false;\n }\n\n// should have not-null maxnp-trees (otherwise -- problematic mentions)\n\nTree sentenceTree=inst.getAnaphor().getSentenceTree();\nTree AnaTree=inst.getAnaphor().getMaxNPParseTree();\nTree AnteTree=inst.getAntecedent().getMaxNPParseTree();\nif (sentenceTree==null) return false;\nif (AnaTree==null) return false;\nif (AnteTree==null) return false;\n\n\n// the structure should be ( * (,) (ANA)) or ( * (,) (ANTE)) -- depends on the ordering, annotation, mention extraction etc\n\n if (AnteTree.parent(sentenceTree)==AnaTree) {\n Tree[] chlds=AnaTree.children();\n Boolean lastcomma=false;\n for (int i=0; i<chlds.length && chlds[i]!=AnteTree; i++) {\n lastcomma=false;\n if (chlds[i].value().equalsIgnoreCase(\",\")) lastcomma=true;\n }\n return lastcomma;\n }\n if (AnaTree.parent(sentenceTree)==AnteTree) {\n\n Tree[] chlds=AnteTree.children();\n Boolean lastcomma=false;\n for (int i=0; i<chlds.length && chlds[i]!=AnaTree; i++) {\n lastcomma=false;\n if (chlds[i].value().equalsIgnoreCase(\",\")) lastcomma=true;\n }\n return lastcomma;\n\n }\n\n return false;\n\n }", "private boolean comparePersistentIdEntrys(@Nonnull PairwiseId one, @Nonnull PairwiseId other)\n {\n // Do not compare times\n //\n return Objects.equals(one.getPairwiseId(), other.getPairwiseId()) &&\n Objects.equals(one.getIssuerEntityID(), other.getIssuerEntityID()) &&\n Objects.equals(one.getRecipientEntityID(), other.getRecipientEntityID()) &&\n Objects.equals(one.getSourceSystemId(), other.getSourceSystemId()) &&\n Objects.equals(one.getPrincipalName(), other.getPrincipalName()) &&\n Objects.equals(one.getPeerProvidedId(), other.getPeerProvidedId());\n }", "public boolean checkforDuplicates(Tour tocheck) {\r\n\t\t boolean duplicate=false;\r\n\t\tfor(int t=0; t<tours.length-1;t++) {\r\n\t\t\tif(tocheck.checkforOrderDiffrence(tours[t])==false) {\r\n\t\t\t\tduplicate=true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn duplicate;\r\n\t}", "private boolean mozeLiSeSpojiti() {\r\n\t\t// provjera po redovima\r\n\t\tfor(int i = 0 ; i < 4 ; i++)\r\n\t\t\tfor(int j = 0 ; j < 3 ; j++)\r\n\t\t\t\tif(tabela[i][j] == tabela[i][j + 1])\r\n\t\t\t\t\treturn true;\r\n\t\t// provjera po kolonama\r\n\t\tfor(int j = 0 ; j < 4 ; j++)\r\n\t\t\tfor(int i = 0 ; i < 3 ; i++)\r\n\t\t\t\tif(tabela[i][j] == tabela[i + 1][j])\r\n\t\t\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "public boolean checkEquality(){\n boolean flag = true;\n for (int i = 0; i < boardRows ; i++) {\n for (int j = 0; j < boardColumns; j++) {\n if(this.currentBoardState[i][j] != this.goalBoardState[i][j]){\n flag = false;\n }\n }\n }\n return flag;\n }", "public boolean RepVec(String []a){\n boolean rep=false;\n String aux1=\"\",aux2=\"\";\n for (int i = 0; i < a.length; i++) {\n aux1=a[i];\n for (int j = 0; j < a.length; j++) {\n aux2=a[j];\n if( i!=j ){ \n if(aux1==aux2){\n rep=true;\n return rep;\n } \n } \n }\n }\n return rep;\n \n }", "public boolean equals(DoublyLinkedList<Element> list) {\n if(super.equals(list)) return true;\n else {\n if(this.size != list.size) return false;\n else {\n Node<Element> temp = header.getNextNode();\n Node<Element> other_temp = list.header.getNextNode();\n while (temp != last() && other_temp != list.last()) {\n if(!temp.getPreNode().equals(other_temp.getPreNode())\n || !temp.getContent().equals(other_temp.getContent())\n || !temp.getNextNode().equals(other_temp.getNextNode()))\n return false;\n temp = temp.getNextNode();\n other_temp = other_temp.getNextNode();\n }\n return true;\n }\n }\n }", "private Vector<Integer> matchCheckPoint(List<Point> a) {\t\t\t\n\t\tVector<Integer> iDS= new Vector<>();\n\t\tfor(Point p :a) {\n\t\t\tif(!getAsphalt(p.x, p.y,this.trk).isIdDefalt()) {\n\t\t\t\tiDS.add(getAsphalt(p.x, p.y,this.trk).getId());\n\t\t\t}\n\t\t}\n\t\treturn iDS;\n\t}", "public boolean IsCyclic() {\r\n\t\tHashMap<String, Boolean> processed = new HashMap<>();\r\n\t\tLinkedList<Pair> queue = new LinkedList<>();\r\n\r\n\t\tArrayList<String> vnames = new ArrayList<>(vces.keySet());\r\n\t\tfor (String vname : vnames) {\r\n\t\t\tif (processed.containsKey(vname)) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tPair rootpair = new Pair(vname, vname);\r\n\t\t\tqueue.addLast(rootpair);\r\n\t\t\twhile (queue.size() != 0) {\r\n\t\t\t\t// 1. removeFirst\r\n\t\t\t\tPair rp = queue.removeFirst();\r\n\r\n\t\t\t\t// 2. check if processed, mark if not\r\n\t\t\t\tif (processed.containsKey(rp.vname)) {\r\n\t\t\t\t\tSystem.out.println(rp.vname + \" via \" + rp.psf);\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\tprocessed.put(rp.vname, true);\r\n\r\n\t\t\t\t// 3. Check, if an edge is found\r\n\t\t\t\tSystem.out.println(rp.vname + \" via \" + rp.psf);\r\n\r\n\t\t\t\t// 4. Add the unprocessed nbrs back\r\n\t\t\t\tArrayList<String> nbrnames = new ArrayList<>(rp.vtx.nbrs.keySet());\r\n\t\t\t\tfor (String nbrname : nbrnames) {\r\n\t\t\t\t\tif (!processed.containsKey(nbrname)) {\r\n\t\t\t\t\t\tPair np = new Pair(nbrname, rp.psf + nbrname);\r\n\t\t\t\t\t\tqueue.addLast(np);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}", "public boolean equals(Object o) {\n if (!(o instanceof OrderedPair)) {\n return false;\n }\n OrderedPair test = (OrderedPair) o;\n return (this.x == test.getX()) && (this.y == test.getY());\n }", "public boolean checkDuplicate(ResultSet rsData, ResultSet rsWareHouse) {\n\t\ttry {\n\n\t\t\tint count = 0;\n\t\t\tfor (int i = 1; i <= number_colum; i++) {\n\t\t\t\ttry {\n//\t\t\t\t\tSystem.out.println(rsData.getString(i));\n//\t\t\t\t\tSystem.out.println(rsWareHouse.getObject(i + 1));\n\t\t\t\t\tif (!rsData.getString(i).equals(rsWareHouse.getObject(i + 1).toString())) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t} catch (NullPointerException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (count > 2) {\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\treturn true;\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}\n\t\treturn false;\n\n\t}", "public boolean isIsosceles() {\n\t\t\tif((this.sideOne == this.sideTwo & this.sideOne != this.sideThree) || (this.sideOne == this.sideThree & this.sideOne != this.sideTwo) || (this.sideTwo == this.sideThree & this.sideTwo != this.sideOne)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "static boolean isFullHouse(ArrayList<Card> c)\n {\n //Awkward way. If it's not five, we'll just not check at all.\n if(c.size() != 5)\n {\n return false;\n }\n \n boolean tripFound = false, pairFound = false;\n int firstRank = 0;\n \n //Check for triplet cards.\n for (int x = 0 ; x < c.size()-2 && tripFound == false ; x++)\n {\n Card card1 = c.get(x);\n Card card2 = c.get(x+1);\n Card card3 = c.get(x+2);\n if(card1.getRank() == card2.getRank() && card1.getRank() == card3.getRank())\n {\n tripFound = true;\n firstRank = card1.getRank();\n break;\n }\n }\n if(tripFound == false)\n {\n return false;\n }\n \n for (int x = 0 ; x < c.size()-1 ; x++)\n {\n Card card1 = c.get(x);\n Card card2 = c.get(x+1);\n \n //We found a pair after finding triplets. Mission success. Full House identified.\n if(card1.getRank() != firstRank && card1.getRank() == card2.getRank())\n {\n return true;\n }\n }\n \n return false;\n }", "public boolean isIsosceles () {\r\n\t\tif ((startSide1 == startSide2 || startSide1 == startSide3 || startSide2 == startSide3) && isTriangle () == true && isEquilateral() == false) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse return false;\r\n\t}", "public void evaluateHand(){only public for testing\n //hand types will be\n //1 royal flush\n //2 straight flush\n //3 four of a kind\n //4 full house\n //5 flush\n //6 straight\n //7 three of a kind\n //8 two pair\n //9 pair\n //10 high card\n //hand secondary values will have to some how account for\n //the lead card of a flush or straight or the bigger pair\n //\n HandType = 0;\n\n //----------checking flush----------\n boolean flush = true;//will flip the vriable when proven wrong\n //if Hand.suites all equal\n for(Card c : Hand) {\n if (!c.getSuite().contains(Hand[0].getSuite())) {\n flush = false;\n }\n }\n //--Handtype = 5//flush\n if(flush){\n HandType=5;\n }\n\n //----------checking pair, two pair, boat,three of a kind, four of a kind----------\n int countmatches=0;\n HashMap<Integer, ArrayList<Card>> maskd = new HashMap<>();\n int[] mask = new int[5];\n int currentmask=1;\n maskd.put(0, new ArrayList<>());\n mask[0]=0;\n maskd.get(0).add(this.Hand[0]);\n //if any two hand.value equal\n for(int comp = 0; comp<Hand.length;comp++){//comparitor\n for(int check = comp+1; check<Hand.length;check++) {//checker\n //System.out.print(\"{\"+comp+check+\"}\");\n if(0==Hand[comp].compareTo(Hand[check])){\n //System.out.println(\"pair\"+Hand[comp]+Hand[check]);\n countmatches++;\n /*if(pairprimary==0&&!(pairprimary==Hand[check].getValue())){\n pairprimary=Hand[check].getValue();\n }else if(pairsecondary==0){\n pairsecondary=Hand[check].getValue();\n }//this wont work for boats\n */\n //create mask?\n if(mask[comp]==0){\n mask[comp]=currentmask;\n maskd.put(currentmask,new ArrayList<>());\n maskd.get(currentmask).add(this.Hand[comp]);\n currentmask++;\n if(maskd.get(0).contains(this.Hand[comp])){\n maskd.get(0).remove(this.Hand[comp]);\n }\n }\n mask[check]=mask[comp];\n if(!maskd.get(mask[comp]).contains(this.Hand[check])) {\n if(maskd.get(0).contains(this.Hand[check]))\n maskd.get(0).remove(this.Hand[check]);\n maskd.get(mask[comp]).add(this.Hand[check]);\n }\n continue;\n }\n if(!maskd.get(0).contains(this.Hand[check]))\n maskd.get(0).add(this.Hand[check]);\n }\n }\n\n //for(int m:maskd.keySet())\n // System.out.print(\"\"+m+\":\"+maskd.get(m));\n //System.out.println(\"\");\n\n if(HandType==0)\n switch (countmatches){ //basically i'm counting the collisions\n case 1: HandType=9;break;//one pair\n case 2: HandType=8;break;//two pair\n case 3: HandType=7;break;//triple\n case 4: HandType=4;break;//boat\n case 6: HandType=3;break;//four of a kind\n case 10: HandType=-1;break;//five of a kind\n }//reorder cards by mask?\n if(countmatches>0){\n Card[] newhand = new Card[5];\n int bigger = 0;\n if(currentmask==3) {//two pair boat\n //two pair\n if (maskd.get(1).get(0).getValue()\n > maskd.get(2).get(0).getValue()) {\n bigger = 1;\n } else {\n bigger = 2;\n }\n\n //boat\n if (maskd.get(1).size() == 3) {\n bigger = 1;\n }\n if (maskd.get(2).size() == 3) {\n bigger = 2;\n }\n }else {\n //one pair???\n bigger = 1;\n }\n\n for(int i = 0; i<5;i++){\n //if(maskd.containsKey(bigger)) {\n if(!maskd.get(bigger).isEmpty()) {\n newhand[i] = maskd.get(bigger).get(0);\n //if (maskd.get(bigger).size() > 0) {\n maskd.get(bigger).remove(0);\n //} else {\n // bigger = Math.abs(bigger - 3);\n //}\n }else{\n if(maskd.containsKey(Math.abs(bigger-3))){\n if(!maskd.get(Math.abs(bigger-3)).isEmpty()){\n bigger = Math.abs(bigger-3);\n }else{\n bigger = 0;\n }\n }else{\n bigger = 0;\n }\n i--;\n }\n //}\n\n }//end for loop\n\n //end pair bits\n\n //System.out.println(newhand);\n this.Hand=newhand;\n }//end reshuffle hand if statement\n //----------checking for straight----------\n //if first card is ace and second card is a 5, treat ace as one\n if(Hand[0].getValue()==14&&Hand[1].getValue()==5) {\n Hand[0] = new Card(\"Ace\", Hand[0].getSuite(), 1);\n //Hand[0].Value=1;\n this.sortHand();\n this.flipHand();\n }\n //go through hand and see if all 5 values are consecutive\n int n = Hand[0].getValue();\n boolean straight = true;\n for(int i = 1;i<Hand.length; i++){\n n--;\n if(!(Hand[i].getValue()==n)){\n straight=false;\n }\n }\n if(straight){\n //if above true\n //--if handtype = 5\n if(HandType==5) {\n //----if card1 is ace\n if (Hand[0].getValue() == 14) {\n //------handtype = 1 //royal flush\n HandType = 1;\n } else {\n //----else\n HandType=2;\n //------handtype = 2 //straight flush\n }\n }else {\n //--else //not a flush\n HandType=6;\n //----handtype = 6 //straight\n }\n }\n\n //----------checking high card----------\n //if handtype = 0\n if(HandType==0) {\n HandType=10;\n //--hand card = 10\n }\n }", "@Test\n\t\t\tpublic void doorwayAdjacentSpots() {\n\t\t\t\t//Tests a left doorway for the spot to its left\n\t\t\t\tSet<BoardCell> testList = board.getAdjList(0, 18);\n\t\t\t\tassertTrue(testList.contains(board.getCellAt(0, 17)));\n\t\t\t\t//Tests a right door for the spot on its right\n\t\t\t\ttestList = board.getAdjList(17, 4);\n\t\t\t\tassertTrue(testList.contains(board.getCellAt(17, 5)));\n\t\t\t\t//Tests a down door for the space below\n\t\t\t\ttestList = board.getAdjList(5, 15);\n\t\t\t\tassertTrue(testList.contains(board.getCellAt(6, 15)));\n\t\t\t\t//Tests an up door with the space above\n\t\t\t\ttestList = board.getAdjList(14, 9);\n\t\t\t\tassertTrue(testList.contains(board.getCellAt(13, 9)));\n\t\t\t\n\t\t\t}", "public boolean jackpot()\n {\n\treturn (_fruits[0].equals(_fruits[1]) \n\t\t&& _fruits[1].equals(_fruits[2]));\n }" ]
[ "0.6594859", "0.64604807", "0.64138675", "0.62364376", "0.620456", "0.6199245", "0.619107", "0.6190811", "0.6141508", "0.6132732", "0.61003417", "0.6029128", "0.6023264", "0.5984362", "0.5971058", "0.59613794", "0.593047", "0.5913984", "0.5913602", "0.59073454", "0.5900913", "0.58999825", "0.5895924", "0.5856381", "0.5848614", "0.5845008", "0.5836222", "0.58241", "0.5813752", "0.58133924", "0.58033437", "0.58024067", "0.5802238", "0.57863045", "0.5782832", "0.5771929", "0.5739178", "0.57376766", "0.5719307", "0.5699208", "0.5697694", "0.5691938", "0.5685292", "0.5683419", "0.5681731", "0.5669215", "0.5659767", "0.56587785", "0.56541675", "0.5640417", "0.56309575", "0.5630656", "0.5624341", "0.5618171", "0.5616382", "0.5612895", "0.5590899", "0.5590295", "0.5576384", "0.55672085", "0.5563706", "0.5563103", "0.55541897", "0.5552008", "0.5531299", "0.5526243", "0.55215263", "0.5512914", "0.5511751", "0.54911965", "0.5486936", "0.5452217", "0.544876", "0.5442733", "0.5442081", "0.5432075", "0.54298556", "0.5428816", "0.5424575", "0.54199296", "0.5416631", "0.54152554", "0.541504", "0.541329", "0.54049", "0.5404068", "0.539255", "0.53919506", "0.5391891", "0.53887564", "0.53871816", "0.53841084", "0.5379873", "0.5374718", "0.5374437", "0.5366401", "0.53636795", "0.5358036", "0.5357265", "0.5354147" ]
0.6931408
0
NOT part of the sample question needed in order to type up and test student code
public String toString() { return "" + purchases; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tScanner DhakaCollege =new Scanner(System.in);\n\t\t\t\tSystem.out.println(\"This Student Got : \");\n\t\tint marks;\n\t\t\t\tmarks=DhakaCollege.nextInt();\n\t\t\n\t\tswitch (marks) {\n\t\tcase 750:\n\t\t\tSystem.out.println(\"Star Marks.Congratulation!\");\n\t\t\tbreak;\n\t\tcase 600:\n\t\t\tSystem.out.println(\"First Divition Marks.Best of Luck!\");\n\t\t\tbreak;\n\t\tcase 599:\n\t\t\tSystem.out.println(\"Second Divition Marks.Good Luck!\");\n\t\t\tbreak;\n\t\tcase 449:\n\t\t\tSystem.out.println(\" Third Divition Marks.Bad Luck!\");\n\t\t\tbreak;\n\t\tcase 359:\n\t\t\tSystem.out.println(\"Fail Marks.Try Again!\"); // not completed the program. because need to know 359-449 how to write? cte...\n\t\t\tbreak; }\n\t\t\n\t\t\t}", "public void study() {\n\t\tSystem.out.println(\"I'm a good student.\");\n\t}", "public static void doExercise5() {\n // TODO: Complete Exercise 5 Below\n\n }", "public static void doExercise4() {\n // TODO: Complete Exercise 4 Below\n\n }", "public static void studentExtended(){\n\t\tSystem.out.println(\"Enter 'EXIT' to exit to the Main Menu\");\n\t\tSystem.out.println(\"Enter 'ADD' followed by: studentID, studentName, major, class, and GPA to add a student record\");\n\t\tSystem.out.println(\"Enter 'REMOVE' followed by a studentID to remove a student\");\n\t\tSystem.out.println(\"Enter 'FIND' followed by a studentID or studentName to pull up student's information\");\n\t\tSystem.out.println(\"Enter 'ENROLL' followed by a studentID, deptID and course_Number to enroll a student\");\n\t\tSystem.out.println(\"Enter 'WITHDRAW' followed by a studentID, deptID and course_Number to withdraw a student in a course\");\n\t\tSystem.out.println(\"Enter 'SCHEDULE' followed by a studentID or studentName to list all courses student is enrolled in.\");\n\t}", "public static void doExercise3() {\n // TODO: Complete Exercise 3 Below\n\n }", "public static void studentText(){\n\t\tSystem.out.println(\"Enter: 1.'EXIT' 2.'ADD' 3.'REMOVE' 4.'FIND 5.'ENROLL' 6.'WITHDRAW' 7.'SCHEDULE' 8.'MORE' -for more detail about options\");\n\t}", "public void firstSem4() {\n chapter = \"firstSem4\";\n String firstSem4 = \"You're sitting at your computer - you can't sleep, and your only companions are \"+student.getRmName()+\"'s \" +\n \"snoring and Dave Grohl, whose kind face looks down at you from your poster. Your head is buzzing with everything you've \" +\n \"seen today.\\tA gentle 'ding' sounds from your computer, and you click your email tab. It's a campus-wide message \" +\n \"from the president, all caps, and it reads as follows:\\n\\t\" +\n \"DEAR STUDENTS,\\n\" +\n \"AS YOU MAY HAVE HEARD, THERE HAVE BEEN SEVERAL CONFIRMED INTERACTIONS WITH THE CAMPUS BEAST. THESE INTERACTIONS\" +\n \" RANGE FROM SIGHTINGS (17) TO KILLINGS (6). BE THIS AS IT MAY, REST ASSURED THAT WE ARE TAKING EVERY NECESSARY \" +\n \"PRECAUTION TO ENSURE STUDENT WELL-BEING. WE ARE ALL DEDICATED TO MAKING \"+(student.getCollege().getName()).toUpperCase()+\n \" A SAFE, INCLUSIVE ENVIRONMENT FOR ALL. TO CONTRIBUTE, I ASK THAT YOU DO YOUR PART, AND REPORT ANY SIGHTINGS, MAIMINGS,\" +\n \" OR KILLINGS TO PUBLIC SAFETY WITHIN A REASONABLE AMOUNT OF TIME. ENJOY YOUR STUDIES!\\nTOODOLOO,\\nPRESIDENT DOUG\";\n getTextIn(firstSem4);\n }", "private void searchCode() {\n }", "public static void doExercise2() {\n // TODO: Complete Exercise 2 Below\n\n }", "public void study() {\n\t\tSystem.out.println(\"学习Java\");\r\n\t}", "public static void doExercise1() {\n // TODO: Complete Exercise 1 Below\n\n }", "public static void main(){\n \n \n String question = \"There are 10 types of people in this world, those who understand binary and those who don't.\";\n String answer = \"true\";\n \n Question tfQuest = new Question (question, answer);\n tfQuest.getAnswer();\n \n }", "public static void main(String[] args) {\n Student student1 = new Student(12106078756L, \"Ole Pettersen\",\n \"Storgt 3, 7001 Trondheim\", 1234567L);\n Student student2 = new Student(12125678756L, \"Per Hansen\",\n \"Storgt 13, 7001 Trondheim\", 1234557L);\n Ansatt læreren = new Ansatt(15107078056L, \"Hanne Hansen\",\n \"Storgt 13, 7001 Trondheim\", 50);\n Personregister registeret = new Personregister();\n registeret.registrerNyPerson(læreren);\n registeret.registrerNyPerson(student1);\n registeret.registrerNyPerson(student2);\n registeret.registrerNyttFag(12106078756L, \"HiST-LO172D\"); // student1\n registeret.registrerNyttFag(12125678756L, \"HiST-LO451D\"); // student2\n student2.registrerNyttFag(\"HiST-LO451D\");\n student1.settKarakter(\"HiST-LO451D\", 'C');\n student2.settKarakter(\"HiST-LO451D\", 'B');\n registeret.settKarakter(12106078756L, \"HiST-LO445D\", 'F');\n\n char søk1 = registeret.finnKarakter(12125678756L, \"HiST-LO172D\"); // ugyldig fagnr for denne studenten\n char søk2 = registeret.finnKarakter(12125678756L, \"HiST-LO451D\");\n char søk3 = registeret.finnKarakter(12106078756L, \"HiST-LO451D\");\n char søk4 = registeret.finnKarakter(12106078756L, \"HiST-LO445D\");\n registeret.endreLønn(15107078056L, 52); // endrer lærerlønnen via registeret\n\n if (søk1 == 'Y' && søk2 == 'B' && søk3 == 'C' && søk4 == 'F' && læreren.getLønnstrinn() == 52) {\n System.out.println(\"Testkjøring ok.\");\n } else {\n System.out.println(\"Testkjøring ikke ok. Skal være Y B C F 52, det var: \"\n + søk1 + \" \" + søk2 + \" \" + søk3 + \" \" + søk4 + \" \" + læreren.getLønnstrinn());\n }\n }", "public static void main(String[] args){\n\t\tPersonalData data1= new PersonalData(1982,01,11,234567890);\n\t\tPersonalData data2= new PersonalData(1992,10,19,876543210);\n\t\tPersonalData data3= new PersonalData(1989,04,27,928374650);\n\t\tPersonalData data4= new PersonalData(1993,07,05,819463750);\n\t\tPersonalData data5= new PersonalData(1990,11,03,321678950);\n\t\tPersonalData data6= new PersonalData(1991,11,11,463728190);\n\t\tStudent student1=new Student(\"Ali Cantolu\",5005,50,data1);\n\t\tStudent student2=new Student(\"Merve Alaca\",1234,60,data2);\n\t\tStudent student3=new Student(\"Gizem Kanca\",5678,70,data3);\n\t\tStudent student4=new Student(\"Emel Bozdere\",8902,70,data4);\n\t\tStudent student5=new Student(\"Merter Kazan\",3458,80,data5);\n\n\t\t//A course (let us call it CSE141) with a capacity of 3 is created\n\t\tCourse CSE141=new Course(\"CSE141\",3);\n\n\t\t//Any 4 of the students is added to CSE141.\n\t\tif (!CSE141.addStudent(student1)) System.out.println(student1.toString()+ \" is not added\");\n\t\tif (!CSE141.addStudent(student2)) System.out.println(student2.toString()+ \" is not added\");\n\t\tif (!CSE141.addStudent(student3)) System.out.println(student3.toString()+ \" is not added\");\n\t\tif (!CSE141.addStudent(student4)) System.out.println(student4.toString()+ \" is not added\");\n\n\n\t\t//All students of CSE141 are printed on the screen.\n System.out.println(\"\\nAll students of \"+CSE141.getCourseName()+\": \");\n CSE141.list();\n\n //The capacity of CSE141 is increased.\n CSE141.increaseCapacity();\n\n //Remaining 2 students are added to CSE141.\n\t \tCSE141.addStudent(student4);\n\t \tCSE141.addStudent(student5);\n\n\t \t//All students of CSE141 are printed on the screen.\n\t \tSystem.out.println(\"\\nAll students of \"+CSE141.getCourseName()+\": \");\n\t \tCSE141.list();\n\n\t \t//Student with ID 5005 is dropped from CSE141.\n\t \tCSE141.dropStudent(student1);\n\n\t \t//All students of CSE141 are printed on the screen.\n\t \tSystem.out.println(\"\\nAll students of \"+CSE141.getCourseName()+\": \");\n\t \tCSE141.list();\n\n\t \t//Number of students enrolled to CSE141 is printed.\n\t \tSystem.out.println(\"\\nNumber of students enrolled to \"+CSE141.getCourseName()+\": \" + CSE141.getNumberOfStudents());\n\n\t \t//Birth year of best student of CSE141 is printed on the screen. (You should use getYear() method of java.util.Date class.)\n\t \tSystem.out.println(\"\\nBirth year of best student of CSE141 is \"+CSE141.getBestStudent().getPersonalData().getBirthDate().getYear());\n\n\t \t//A new course (let us call it CSE142) is created.\n\t \tCourse CSE142=new Course(\"CSE142\");\n\n\t \t//All students currently enrolled in CSE141 are added to CSE142. (You should use getStudents() method).\n\t \tStudent[] students = CSE141.getStudents();\n\t \tfor(int i=0;i<CSE141.getNumberOfStudents();i++)\n\t \t\tCSE142.addStudent(students[i]);\n\n\t \t//All students of CSE141 are removed from the course.\n\t \tCSE141.clear();\n\n\t \t//Student with ID 5005 is dropped from CSE141 and result of the operation is printed on the screen.\n\t \tSystem.out.println(\"\\nThe result of the operation 'Student with ID 5005 is dropped from \"+CSE141.getCourseName()+\"' is: \"+CSE141.dropStudent(student1));\n\n\t \t//All students of CSE142 are printed on the screen.\n\t \tSystem.out.println(\"\\nAll students of \"+CSE142.getCourseName()+\": \");\n\t \tCSE142.list();\n\n\t \t//Best student of CSE142 is dropped from CSE142.\n\t \tCSE142.dropStudent(CSE142.getBestStudent());\n\n\t \t//All students of CSE142 are printed on the screen.\n\t \tSystem.out.println(\"\\nAll students of \"+CSE142.getCourseName()+\": \");\n\t \tCSE142.list();\n\n\t \t//GPA of youngest student of CSE142 is printed on the screen.\n\t\tSystem.out.println(\"\\nThe Youngest Student's (\"+CSE142.getYoungestStudent()+\") GPA is \"+CSE142.getYoungestStudent().GPA());\n\n\t \t//Courses CSE141 and CSE142 are printed on the screen.\n\t \tSystem.out.println(\"\\nCourse Information for \"+CSE141.getCourseName()+\":\\n\" + CSE141.toString());\n\t \tSystem.out.println(\"\\nCourse Information for \"+CSE142.getCourseName()+\":\\n\" + CSE142.toString());\n\t }", "public void firstSem2a5(){\n chapter = \"firstSem2a5\";\n String firstSem2a5 = \"What about your friend here?\\\" he asks, nodding to \"+student.getRmName()+\". \\\"Oh, I'm good,\\\"\" +\n student.getRmName()+\"says quickly. I already have a job, through the underground Communist...uh, through\" +\n \" the school paper.\\\" You chat with the man a little longer before he excuses himself to go back to the \" +\n \"kitchen.\\tYou and \"+student.getRmName()+\" finish up your dinner and head back. About halfway there, your roommate \" +\n \"stops and peers at you intensely. \\\"Well?\\\" they say.\";\n getTextIn(firstSem2a5);\n }", "public void mo38117a() {\n }", "public static void main(String[] args) {\n\tScanner s=new Scanner(System.in);\r\n\tSystem.out.println(\"enter the mark\");\r\n\tint mark=s.nextInt();\r\n\tif(mark>=90&&mark<=100)\r\n\t{\r\n\t\tSystem.out.println(\"excellent\");\r\n\t}\r\n\telse if(mark>=80&&mark<=90)\r\n\t{\r\n\t\tSystem.out.println(\"very good\");\r\n\t}\r\n\telse if(mark>=70&&mark<=80)\r\n\t{\r\n\t\tSystem.out.println(\"good\");\r\n\t}\r\n\telse\r\n\t{\r\n\t\tSystem.out.println(\"improve\");\r\n\t}\r\n\t}", "public static void main(String[] args) {\n\t\tStudent ivan = new Student(\"Ivan Petrov\", \"Computer Science\");\n\t\tivan.grade=5.5;\n\t\tivan.yearInCollege=2;\n\t\tivan.money=500;\n\t\tivan.age=19;\n\t\t\n\t\tStudent teodor = new Student(\"Teodor Alexiev\", \"Computer Science\");\n\t\tteodor.grade=5.25;\n\t\tteodor.yearInCollege=3;\n\t\tteodor.money=300;\n\t\tteodor.age=20;\n\t\t\n\t\tStudent irina = new Student(\"Irina Paraskelova\", \"Computer Science\");\n\t\tirina.grade = 5.65;\n\t\tirina.money=400;\n\t\tirina.age=18;\n\t\t\n\t\tStudent vasilena = new Student (\"Vasilena Kremenlieva\", \"Computer Science\");\n\t\tvasilena.grade = 5.0;\n\t\tvasilena.money=1000;\n\t\tvasilena.age=18;\n\t\t\n\t\tStudent trifon = new Student(\"Trifon Stoimenov\", \"Computer Science\");\n\t\ttrifon.grade = 5.70;\n\t\ttrifon.yearInCollege=3;\n\t\ttrifon.money = 800;\n\t\ttrifon.age=21;\n\t\t\n\t\tStudent alexander = new Student (\"Alexander Dobrikov\", \"Finance\");\n\t\talexander.grade = 4.75;\n\t\talexander.yearInCollege = 2;\n\t\talexander.money = 600;\n\t\talexander.age = 20;\n\t\t\n\t\tStudent mirela = new Student (\"Mirela Kostadinova\", \"Finance\");\n\t\tmirela.grade = 5.5;\n\t\tmirela.yearInCollege=1;\n\t\tmirela.money=100;\n\t\tmirela.age=19;\n\t\t\n\t\tStudent velizar = new Student(\"Velizar Stoyanov\", \"Finance\");\n\t\tvelizar.grade = 6.0;\n\t\tvelizar.yearInCollege = 3;\n\t\tvelizar.money = 500;\n\t\tvelizar.age = 22;\n\t\t\n\t\tStudent antoaneta = new Student(\"Antoaneta Borisova\", \"Finance\");\n\t\tantoaneta.grade = 5.30;\n\t\tantoaneta.yearInCollege = 2;\n\t\tantoaneta.money = 750;\n\t\tantoaneta.age = 19;\n\t\t\n\t\tirina.upYear();\n\t\tSystem.out.println(\"Irina is in year \"+irina.yearInCollege+\" of college.\");\n\t\t\n\t\tvasilena.receiveScholarship(5.0, 350);\n\t\tSystem.out.println(vasilena.money);\n\t\t\n\t\tStudentGroup cs1 = new StudentGroup(\"Computer Science\");\n\t\tcs1.addStudent(ivan);\n\t\tcs1.addStudent(teodor);\n\t\tcs1.addStudent(irina);\n\t\tcs1.addStudent(vasilena);\n\t\tcs1.addStudent(trifon);\n\t\tteodor.upYear();\n\t\tSystem.out.println(teodor.isDegree);\n\t\t\n\t\tcs1.addStudent(velizar);\n\t\t\n\t\tcs1.printStudentsInGroup();\n\t\tSystem.out.println(cs1.theBestStudent());\n\t\t\n\t\tcs1.emptyGroup();\n\t\tcs1.printStudentsInGroup();\n\t\t\n\t\tStudentGroup fin1 = new StudentGroup(\"Finance\");\n\t\t\n\t\tfin1.addStudent(alexander);\n\t\tfin1.addStudent(mirela);\n\t\tfin1.addStudent(velizar);\n\t\tfin1.addStudent(antoaneta);\n\t\t\n\t\tfin1.printStudentsInGroup();\n\t\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tshowInfo(\"홍길동\");\r\n\t\tshowInfo(\"김길동\"); //문자\r\n\t\t\r\n\t\tStudentInfo std = new StudentInfo(); // std 변수를 매개값으로받는\r\n\t\tstd.setStudentName(\"박소현\");\r\n\t\tshowInfo(std);\r\n\t\tstd.setEng(90);\r\n\t\tstd.setMath(95);\r\n\t\tshowInfo(std);\r\n\t\t\r\n\t\tStudentInfo[] stds = new StudentInfo[3]; // 배열을 매개값으로 받는\r\n\t\t\r\n\t\tstds[0] = new StudentInfo(\"김영호\", 77, 88);\r\n\t\tstds[1] = new StudentInfo(\"이영호\", 79, 89);\r\n\t\tstds[2] = new StudentInfo(\"박영호\", 72, 86);\r\n\t\tshowInfo(stds);\r\n\r\n\t}", "public static void main(String[] args) {\n\t\t\t\n\t\t Scanner sc = new Scanner(System.in);\n\t\t\tStudent sv1 = new Student(1,\"Le Huy Hoai\",5.2f,7.2f);\n\t\t\tStudent sv2 = new Student(2,\"Linh Tran\",7.2f,5.5f);\n\t\t\tStudent sv3 = new Student();\n\t\t\t\n\t\t\tSystem.out.println(\"Id sinh vien 3: \");\n\t\t\tsv3.setId(sc.nextInt());\n\t\t\tsc.nextLine();\n\t\t\tSystem.out.println(\"Ten sinh vien 3: \");\n\t\t\tsv3.setName(sc.nextLine());\n\t\t\t\n\t\t\tSystem.out.println(\"Diem ly thuyet sinh vien 3: \");\n\t\t\tsv3.setDiemLT(sc.nextFloat());\n\t\t\tSystem.out.println(\"Diem thuc hanh sinh vien 3: \");\n\t\t\tsv3.setDiemTH(sc.nextFloat());\n\t\t\t\n\t\t\tSystem.out.println(sv1);\n\t\t\tSystem.out.println(sv2);\n\t\t\tSystem.out.println(sv3);\n\t\t\t\n\t\t\t\n\t\t\t\n\t}", "public static void main(String[] args) {\n\t\tStudent student;\t// 학생 객체\r\n\t\tSection section;\t// 교과목 객체\r\n\t\tGrade grade;\t\t// 성적 객체\r\n\t\t\r\n\t\t// 학생 객체 생성\r\n\t\tstudent = new myStudent(\"김용환\",true,1995);\t\r\n\t\t\r\n\t\t// 학생 객체에 넣을 과목과 성적입력\r\n\t\tsection = new mySection(\"자료구조\");\t\r\n\t\tgrade = new myGrade(\"A\");\r\n\t\tstudent.updateTranscript(section,grade);\r\n\t\t\r\n\t\tsection = new mySection(\"논리회로\");\r\n\t\tgrade = new myGrade(\"B+\");\r\n\t\tstudent.updateTranscript(section, grade);\r\n\t\t\r\n\t\t// 학생의 이름과 성적정보 출력\r\n\t\tSystem.out.print(student.getName() + \" \"); \r\n\t\tstudent.printTranscript();\r\n\t}", "public static void main(String[] args) {\n\n\t\tScanner input=new Scanner(System.in);\n\t\tString responsibility;\n\t\tString instructor;\n\t\tSystem.out.println(\"Enter name of the instructor\");\n\t\tinstructor=input.nextLine();\n\t\t\n\t\tswitch(instructor) {\n\t\t\n\t\tcase \"Shiva\":\n\t\t responsibility=\"Will take care of Java Assignment\";\n\t\t break;\n\t\t\n\t\tcase\"Sandish\":\n\t\t\tresponsibility=\"Will take care of SDLC Assignment\";\n\t\t\tbreak;\n\t\t\t\n\t\tcase\"Weqas\":\n\t\t\tresponsibility=\"Will take care of Selenium Assignment\";\n\t\t\tbreak;\n\t\t\n\t\tcase\"Asel\":\n\t\t\tresponsibility=\"Will take care of every Assignment\";\n\t\t\tbreak;\n\t\t\tdefault:\n\t\t\tresponsibility=\"Invalid instructor selected\";\n\t\t\t\n\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(responsibility);\n\t}", "public static void main()\n {\n float m= 0;\n Scanner sc= new Scanner(System.in);\n System.out.println(\"Enter name of the student\");\n String name= sc.nextLine();\n System.out.println(\"Enter the student's roll no.\");\n int roll= sc.nextInt();\n System.out.println(\"Enter the marks of 5 subjects(Press enter after each)\");\n for(int i=1;i<=5; i++)\n {\n float m1= sc.nextFloat();\n m= m+m1;\n }\n m= (m/5);\n System.out.println(\"Student's name: \"+ name);\n System.out.println(\"Roll no.: \"+ roll);\n String stream= \"\";\n if(m>=90)\n {\n stream= \"Science with Computers\";\n }\n else if(m>=80 && m<=89)\n {\n stream= \"Science without Computers\";\n }\n else if(m>=70 && m<=79)\n {\n stream= \"Commerce with Maths\";\n }\n else if(m>=60 && m<=69)\n {\n stream= \"Commerce without Maths\";\n }\n else\n {\n stream= \"Invalid Values\";\n }\n System.out.println(stream);\n System.out.println();\n }", "@Test\n\tvoid testExtractStudentName() {\n\t\t\n\t\t// Create a result object and set the assignment name\n\t\tResult result = new Result();\n\t\tresult.setAssignmentName(\"last_first_a1.docx\");\n\t\t\n\t\t// Extract the student name from the assignment name\n\t\tresult.extractStudentName();\n\t\t\n\t\t// Assert first name\n\t\tassertTrue(\"first\".equals(result.getStudentFirstName()));\n\t\t\n\t\t// Assert last name\n\t\tassertTrue(\"last\".equals(result.getStudentLastName()));\n\t\t\n\t}", "public static void generateCode()\n {\n \n }", "public static void main(String[] args) {\n\t\tString answer = JOptionPane.showInputDialog(\"Can you write code?(Do not use capitals)\");\t\n\t\t// 2. If they say \"yes\", tell them they will rule the world.\n\t\tif(answer.equals(\"yes\")){\n\t\tJOptionPane.showMessageDialog(null,\" Of course you do, you're in a programming class.\");\t\n\t\t}else if(answer.equals(\"no\")){\n\t\t\tJOptionPane.showMessageDialog(null,\" Are you serios?! You're in a coding class!\");\t\n\t\t}else{\n\t\t\tJOptionPane.showMessageDialog(null,\" What?\");\n\t\t}\n\t\t// 3. Otherwise, wish them good luck washing dishes.\n\n\t}", "public static void main(String[] args) {\n Student ram = new Student();\n \n ram.setRollNumber(202);\n ram.setStudentName(\"Rakshitha\");\n ram.setMarkScored(-98);\n ram.setEmail(\"[email protected]\");\n \n \n System.out.println(ram.getMarkScored());\n \n Student shyam = new Student(203,\"Shyam\",97,\"[email protected]\");\n \n System.out.println(shyam.getStudentName());\n System.out.println(shyam.getMarkScored());\n\t}", "public static void main(String[] args) {\n String[][][] temp = soRandom();\n for (int i = 0; i < temp.length; i++) {\n for (int j = 0; j < temp[i].length; j++) {\n for (int k = 0; k < temp[i][j].length; k++) {\n temp[i][j][k] = coder();\n }\n }\n }\n //create empty array\n String[][][] temp2 = soRandom();\n //print array\n print(temp);\n print(temp2);\n //copy over array\n temp2 = holoport(temp, temp2);\n //print copied array\n print(temp2);\n //accept code for sampling()\n Scanner s = new Scanner(System.in);\n String code = \"\";\n boolean input = true;\n while (input) {\n System.out.println(\"Please enter a code\");\n code = s.next();\n if (code.length() == 6) {\n input = false;\n }\n }\n //run the rest of the methods with no return values\n sampling(temp2, code);\n percentage(temp, temp2);\n frankenstein(temp2);\n\n\n }", "public static void main(String[] args){\n int bananas = 34;\n System.out.println(bananas);\n\n int students = 400;\n System.out.println(students);\n\n int phonebook=100, textbook=200, computers=300;\n System.out.println(phonebook+textbook+computers);\n\n int peopleInCity=1000, birdsOnTree=2000, fishInLake=3000;\n System.out.println(peopleInCity);\n System.out.println(birdsOnTree);\n System.out.println(fishInLake);\n\n int studentsInNY = 25, studentsInVA = 50, studentsInCO = 5;\n System.out.println(studentsInNY);\n System.out.println(studentsInVA);\n System.out.println(studentsInCO);\n\n\n\n }", "public static void main(String[] args) {\r\n\t\t\r\n\t\t// Creation of the constructor nqMarkScheme with parameters 198 and 6 of the class NumericalQuestion.\r\n\t\tNumericalQuestion nqMarkScheme = new NumericalQuestion(198, 6);\r\n\t\t\r\n\t\t// Creation of the constructor bqMarkScheme with parameters true and 1 of the class BooleanQuestion.\r\n\t\tBooleanQuestion bqMarkScheme = new BooleanQuestion(true, 1);\r\n\t\t\r\n\t\t// Creation of the constructor mcpMarkScheme with parameters false, false, false and 3 of the class MultipleChoiceQuestion.\r\n\t\tMultipleChoiceQuestion mcpMarkScheme = new MultipleChoiceQuestion(false, false, false, 3);\r\n\t\t\r\n\t\t// Creation of the constructor markScheme with parameters nqMarkScheme, bqMarkScheme and mcpMarkScheme of the class Exam.\r\n\t\tExam markScheme = new Exam(nqMarkScheme, bqMarkScheme, mcpMarkScheme);\r\n\t\t\r\n\t\t// Creation of the constructor nqAttempt with parameters 196 and 0 of the class NumericalQuestion.\r\n\t\tNumericalQuestion nqAttempt = new NumericalQuestion(196, 0);\r\n\t\t\r\n\t\t// Creation of the constructor bqAttempt with parameters true and 0 of the class BooleanQuestion.\r\n\t\tBooleanQuestion bqAttempt = new BooleanQuestion(true, 0);\r\n\t\t\r\n\t\t// Creation of the constructor mcpAttempt with parameters false, false, false and 0 of the class MultipleChoiceQuestion.\r\n\t\tMultipleChoiceQuestion mcpAttempt = new MultipleChoiceQuestion(false, false, false, 0);\r\n\t\t\r\n\t\t// Creation of the constructor examAttempt with parameters nqAttempt, bqAttept and mcpAttempt of the class Exam.\r\n\t\tExam examAttempt = new Exam(nqAttempt, bqAttempt, mcpAttempt);\r\n\t\t\r\n\t\t// Creation of the object examMarker of the class Marker.\r\n\t\tMarker examMarker = new Marker();\r\n\t\t\r\n\t\t// Calling the method markAttempt using the object examMarker and passing examAttempt and markScheme as parameters. \r\n\t\texamMarker.markAttempt(examAttempt, markScheme);\r\n\t\t\r\n\t\t// Declaration and calculation of the variable mark, by adding together the mark of each of the three questions.\r\n\t\tint mark = examAttempt.getTotalMark();\r\n\t\t\r\n\t\t// Outputs the marks that the student has taken, out of the maximum available marks of the first question.\r\n\t\tSystem.out.println(\"Question1: \" + examMarker.getQuestion1Mark() + \" out of \" + nqMarkScheme.getMark());\r\n\t\t// Outputs the marks that the student has taken, out of the maximum available marks of the second question.\r\n\t\tSystem.out.println(\"Question2: \" + examMarker.getQuestion2Mark() + \" out of \" + bqMarkScheme.getMark());\r\n\t\t// Outputs the marks that the student has taken, out of the maximum available marks of the third question.\r\n\t\tSystem.out.println(\"Question3: \" + examMarker.getQuestion3Mark() + \" out of \" + mcpMarkScheme.getMark());\r\n\t\t\r\n\t\t// Output the total marks the student has taken.\r\n\t\tSystem.out.println(\"Total Mark awarded: \" + mark);\r\n\t\t\r\n\t\t// Calculates and prints the classification of the student based on their total mark.\r\n\t\tSystem.out.println(\"Classification: \" + examMarker.convertMarksToClassification(mark, 9, 7, 6));\r\n\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\n\t\t\n\t ICCChamp2017();\n\t System.out.println(\"England\");\n\t FinalIndVsPAk();\n\t System.out.println(\"Finals India Lifted ICC 2017\");\n\t \n\t\tFirstUmpieRevire();\n\t\tSystem.out.println(\"Simon Taufel First Umpier Reviews the Score Board\");\n\t SecondUmpireReview();\n\t System.out.println(\"Billy Bowden Second Umpier Reviews the Score Board\");\n\t ThridUmpireReview();\n\t System.out.println(\"David Shepard Thrid Umpier Reviews the Score Board\");\n\t \n\t \n\t Firstcommentary();\n\t System.out.println(\"Ravi is the commentary\");\n\t Secondcommentary();\n\t System.out.println(\"Gavaskar is the commentary\");\n\t \n\t \n\t \n\t \n\t\t\n\t\t\n\t\tint Dhoni, Rahul, Sachin,Kholi;\n\t System.out.println(\"Enter four Batsman Score Display the Mini Score Of the Batsman \");\n\t in = new Scanner(System.in);\n\t \n\t \n\t \n\t \n\t Dhoni = in.nextInt();\n\t Kholi = in.nextInt();\n\t Rahul = in.nextInt();\n\t Sachin = in.nextInt();\n\t \n\t if ( Dhoni <= Kholi && Dhoni <= Rahul && Dhoni <= Sachin )\n\t System.out.println(\"Dhoni is the Mini Scored Btsmans.\");\n\t else\n\t \t if ( Kholi <= Dhoni && Kholi <= Rahul && Kholi <= Sachin )\n\t System.out.println(\"Kholi is the Min Scored Batsmans .\");\n\t else if ( Rahul <= Dhoni && Rahul <= Kholi && Rahul <= Sachin )\n\t System.out.println(\"Rahul is the Min Scored Batsmans.\");\n\t else if ( Sachin <= Dhoni && Sachin <= Kholi && Sachin <= Rahul ) \n\t \t System.out.println(\"Sachin is the Min Scored Batsmans.\"); \n\t else \n\t System.out.println(\"Every one Scored 0 Duck\");\n\t \n\t \n\t int Sami,Irfan, Jaffar,Imran;\n\t System.out.println(\"Enter four Blowers Who Taken Wickets Display the Mini Wickets Of the Match\");\n\t \n\t \n\t \n\t \n\t \n\t Sami = in.nextInt();\n\t Irfan = in.nextInt();\n\t Jaffar = in.nextInt();\n\t Imran = in.nextInt();\n\t \n\t if ( Sami <= Irfan && Sami <= Jaffar && Sami <= Imran )\n\t System.out.println(\"Sami is the Mini Scored Btsmans.\");\n\t else\n\t \t if ( Imran <= Irfan && Imran <= Jaffar && Imran <= Sami )\n\t System.out.println(\"Imran is the Min Scored Batsmans .\");\n\t else if ( Irfan <= Sami && Irfan <= Jaffar && Irfan <= Imran )\n\t System.out.println(\"Irfan is the Min Scored Batsmans.\");\n\t else if (Jaffar <= Irfan && Jaffar <= Jaffar &&Jaffar <= Imran ) \n\t \t System.out.println(\"Jaffar is the Min Scored Batsmans.\"); \n\t else \n\t System.out.println(\"No on Taken Wickets\");\n\t \n\t \n\t \n\t \n\t\t \n\t}", "public static void main(String[] agrs){\n double kilometers = (1.609334 * 100);\n int highScore=50;\n\n if(highScore==50) {\n System.out.println(\"This is an expression\");\n }\n\n //Challenge\n //In the following code that i will type below, write downd\n //what parts of the code are expressinos\n\n int score = 100;\n if(score>90) {\n System.out.println(\"You got the high score!\");\n score=0;\n }\n\n //The expressions above are =,100, sout, the string in sout\n\n\n\n\n\n\n\n\n\n }", "public static void main(String[] args) {\n Student sv;\n\n //cap phat bo nho cho bien doi tuong [sv] \n sv = new Student();\n\n //gan gia tri cho cac fields cua bien [sv]\n sv.id = \"student100\";\n sv.name = \"Luu Xuan Loc\";\n sv.yob = 2000;\n sv.mark = 69;\n sv.gender = true;\n\n //in thong tin doi tuong [sv]\n sv.output();\n\n //tao them 1 bien doi tuong [sv2] kieu [Student]\n Student sv2 = new Student();\n //gan gia tri cho cac fields cua doi tuong [sv2]\n sv2.id = \"student101\";\n sv2.name = \"Nguyen Ngoc Son\";\n sv2.yob = 2004;\n sv2.mark = 85;\n sv2.gender = false;\n\n //in thong tin doi tuong [sv2]\n sv2.output();\n\n //tao them 1 bien doi tuong [sv3] kieu [Student]\n Student sv3 = new Student();\n //in thong tin doi tuong [sv3]\n sv3.output();\n }", "public void firstSem3() {\n chapter = \"firstSem3\";\n String firstSem3 = \"The calm afternoon is suddenly broken up by a shout. A little way in front of you, a man runs out onto \" +\n \"the path - he has a long beard and is festooned with campaign buttons. \\\"Find your dream!\\\" he shouts, \" +\n \"maybe to the sky, maybe to a tree. \\\"More like find your place in the corporate machinery, hahahaha!\\\"\\t\" +\n \"You stand stock-still for a moment, bewildered, until someone taps on your shoulder. It's your roommate. \\\"Oh,\" +\n \" that's just Crazy Joe, don't worry. I met him during orientation. He says weird shit, but he's totally \" +\n \"harmless.\\\"\\n\\t\"+student.getRmName()+\" puts a hand on your shoulder and gently steers you past the raving man. \" +\n \"As you pass, Crazy Joe's eyes focus on you, and he whispers in a voice only you can hear: \\\"Beware. Beware the beast.\\\"\" +\n \"\\n\\tThat's weird as fuck, right?\\n\\tLATER THAT NIGHT...\";\n getTextIn(firstSem3);\n }", "public static void main(String[] args) {\n\n Student st = new Student (\"shagria\",\"kabir\",95,101);\n\n Assert.assertEquals(st.getFirstName(),\"shagria\");\n Assert.assertEquals(st.getLastName(),\"kabir\");\n Assert.assertEquals(st.getScore(),90);\n Assert.assertEquals(st.getId(),101);\n\n }", "private void strin() {\n\n\t}", "public static void main (String[] args) {\n\t String s = \"aa6?9\";\r\n\t System.out.println(QuestionsMarks(s));\r\n\t String s1 = \"acc?7??sss?3rr1??????5\";\r\n\t System.out.println(QuestionsMarks(s1));\r\n// Scanner s = new Scanner(System.in);\r\n// System.out.print(QuestionsMarks(s.nextLine())); \r\n }", "public void mo21792Q() {\n }", "public static void main(String[] args)\n {\n \t// Prints the name of the student.\n System.out.println(\"Walter Conway\");\n System.out.println();\n \t// Prints the short-term goal(s) of the student.\n System.out.println(\"Finish the Half Ironman in Augusta, GA.\"\n \t\t\t\t+ \" Pass my Fall semester courses.\"\n \t\t\t\t+ \" Find a part-time job.\"\n \t\t\t\t+ \" Find a apartment.\"\n \t\t\t\t+ \" Quit biting finger nails.\"\n \t\t\t\t\t\t+ \" Read the Bible daily.\");\n \t// Prints the medium-term goal(s) of the student.\n System.out.println(\"Find a co-op job for the summer semester.\"\n \t\t\t\t+ \" Switch my cell phone service to Verizon.\"\n \t\t\t\t+ \" Take the GRE exam to apply for graduate school.\"\n \t\t\t\t+ \" Finish reading the Bible cover to cover.\");\n \t// Prints the long-term goal(s) of the student.\n System.out.println(\"Become a better Christian\"\n \t\t\t\t+ \" with the Lord's help and guidance.\"\n \t\t\t\t+ \" Finish graduate school.\"\n \t\t\t\t+ \" Find a job or create a business.\"\n \t\t\t\t+ \" Get married to the right person that\"\n \t\t\t\t\t\t+ \" God has set aside for me to marry.\");\n }", "public static void main(String[] args) {\n\t\tScanner s=new Scanner(System.in);\r\n\t\tSystem.out.print(\"Enter the Mark:\");\r\n\t\tint Mark=s.nextInt();\r\n\t\tif(Mark>=90)\r\n\t\t{\r\n\t\t\tSystem.out.printf(\"Grade A\");\r\n\t\t}\r\n\t\telse if(Mark<90 && Mark>=70)\r\n\t\t{\r\n\t\t\tSystem.out.printf(\"Grade B\");\r\n\t\t}\r\n\t\telse if(Mark<70 && Mark>=50)\r\n\t\t{\r\n\t\t\tSystem.out.printf(\"Grade C\");\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\tSystem.out.printf(\"Fail\");\r\n\t\t}\r\n\r\n\r\n\t}", "private void generate_verification_code(StringBuffer Code, DataType ReturnType)\n {\n String TypeString = ReturnType.getDescriptor(m_Language);\n\n Code.append(\"\\tvoid verify_case(int Case, const \" + TypeString + \" &Expected, const \" + TypeString + \" &Received) { \");\n\n Code.append(\"cerr << \\\"Test Case #\\\" << Case << \\\"...\\\"; \");\n\n // Print \"PASSED\" or \"FAILED\" based on the result\n Code.append(\"if (Expected == Received) cerr << \\\"PASSED\\\" << endl; \");\n Code.append(\"else { cerr << \\\"FAILED\\\" << endl; \");\n\n if (ReturnType.getDimension() == 0)\n {\n Code.append(\"cerr << \\\"\\\\tExpected: \\\\\\\"\\\" << Expected << \\'\\\\\\\"\\' << endl; \");\n Code.append(\"cerr << \\\"\\\\tReceived: \\\\\\\"\\\" << Received << \\'\\\\\\\"\\' << endl; } }\\n\");\n }\n else\n {\n Code.append(\"cerr << \\\"\\\\tExpected: \\\" << print_array(Expected) << endl; \");\n Code.append(\"cerr << \\\"\\\\tReceived: \\\" << print_array(Received) << endl; } }\\n\");\n }\n // end if\n }", "public static void main(String[] args) {\n\n String inputFile = \"data/input.txt\";\n String outputFile = \"data/output.txt\";\n String studentInfo = \"data/students_info.txt\";\n String studentData = \"\";\n BufferedReader reader = null;\n String[] data = null;\n boolean sex = false;\n try {\n reader = new BufferedReader(new FileReader(studentInfo));\n studentData = reader.readLine();\n data = studentData.split(\" \");\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n \n if (data[3].equals(\"1\")) {\n sex = true;\n }\n\n Student testStudent1 = new Student(Integer.parseInt(data[0]),data[1],sex,Integer.parseInt(data[3]));\n\n testStudent1.doHomework(inputFile,outputFile,\"Со\");\n\n }", "public static void main(String[] args) {\n\t\tStudent s = new Student(\"Bora\", \"Boric\", 1989, 39998, 3, 7.59);\r\n\t\tStudent s1 = new Student(\"Mika\", \"Mikic\", 1998, 39322, 1, 8.59);\r\n\t\tStudent s2 = new Student(\"Kasa\", \"Kasic\", 1991, 39299, 2, 8.94);\r\n\t\tProfesor p = new Profesor(\"Stanko\", \"Stanic\", 1980, \"Predavac\");\r\n\t\tProfesor p1 = new Profesor(\"Sasa\", \"Sasic\", 1984, \"Asistent\");\r\n\t\tp.dodajPredmet(\"Statistika\");\r\n\t\tp.dodajPredmet(\"Matematika\");\r\n\t\tp1.dodajPredmet(\"Teorija cena\");\r\n\t\tp1.dodajPredmet(\"Makroekonomija\");\r\n\t\tSystem.out.println(s.ispis());\r\n\t\tSystem.out.println(s1.ispis());\r\n\t\tSystem.out.println(s2.ispis());\r\n\t\tSystem.out.println(p.ispisi());\r\n\t\tSystem.out.println(p1.ispisi());\r\n\r\n\t}", "public static void main(String[] args) \r\n\t{\n\t\tString[] studentName= {\"Arockia\",\"Ananth\",\"raj\",\"Venky\",\"Vijay\"};\r\n\t\tint[] studentAge= {23,23,24,25,26,};\r\n\t\tchar[][] studentGrade= {{'A','B','C','D','F'},{'A','B','A','D','F'},{'A','A','C','D','F'},{'A','A','A','A','F'},{'B','B','B','B','F'}};\r\n\t\tScanner scr=new Scanner(System.in);\r\n\t\t\t\r\n\t\tSystem.out.println(\"Print Students Name:\");\r\n\t\tfor(String studentsName:studentName)\r\n\t\t{\r\n\t\t\tSystem.out.println(studentsName);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"\\nPrint Students Age:\");\r\n\t\tfor(int studentsAge:studentAge)\r\n\t\t{\r\n\t\t\tSystem.out.println(studentsAge);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "@Test\n void qureyInfoByStudentNum() {\n addInfoForGEIAS();\n }", "public void mo9848a() {\n }", "@Before\n public void setUp() {\n source = SParser.parse(\"public class MainClass\\n{\\n \"\n + \"public static void main( String args[] )\\n \"\n + \"{ \\n GradeBook myGradeBook = new GradeBook();\"\n + \" \\n\\n String courseName = \\\"Java \\\";\\n \"\n + \" myGradeBook.displayMessage( courseName );\\n \"\n + \" }\\n\\n}\\npublic class Foo{ public boolean bar(){\"\n + \" super.foo(); return false;}}\");\n }", "public static void main(String[] args) {\n String input_one = \"Fourscore and seven years ago our fathers brought forth on this continent a new nation, conceived in liberty and dedicated to the proposition that all men are created equal. Now we are engaged in a great civil war, testing whether that nation, or any nation so conceived and so dedicated, can long endure. We are met on a great battlefield of that war. We have come to dedicate a portion of that field as a final resting-place for those who here gave their lives that that nation might live. It is altogether fitting and proper that we should do this. But, in a larger sense, we cannot dedicate — we cannot consecrate — we cannot hallow — this ground. The brave men, living and dead, who struggled here have consecrated it, far above our poor power to add or detract. The world will little note, nor long remember what we say here, but it can never forget what they did here. It is for us the living, rather, to be dedicated here to the unfinished work which they who fought here have thus far so nobly advanced. It is rather for us to be here dedicated to the great task remaining before us — that from these honored dead we take increased devotion to that cause for which they gave the last full measure of devotion — that we here highly resolve that these dead shall not have died in vain — that this nation shall have a new birth of freedom and that government of the people, by the people, for the people, shall not perish from the earth.\";\r\n String input_two = \"Oh, say can you see, by the dawn's early light,What so proudly we hailed at the twilight's last gleaming?Whose broad stripes and brightstars,through the perilous fight,O'er the ramparts we watched, were so gallantly streaming?And the rockets' red glare, the bombs bursting in air,Gave proof through the night that our flag was still there.O say, does that star-spangled banner yet waveO'er the land of the free and the home of the brave?On the shore, dimly seen through the mists of the deep,Wherethe foe's haughty host in dread silence reposes,What isthatwhichthe breeze, o'er the towering steep,As it fitfully blows, now conceals, now discloses?Now it catches the gleam of the morning's first beam,In full glory reflected now shines on the stream:'Tis the starspangled banner! O long may it waveO'er the land of the free and the home of the brave. And where is that band who so vauntingly swore That the havoc of war and the battle's confusionA home and a country should leaveus no more?Their blood has wiped out their foulfootstep'spollution.Norefuge could save the hireling and slaveFrom the terror of flight, or the gloom of the grave:And the star-spangled banner in triumph doth waveO'er theland of the free and the home of the brave.Oh! thus be it ever, when freemen shall stand Between their loved homes and the war's desolation!Blest with victory and peace, may the heaven-rescued land Praise the Power that hath made and preserved us a nation.Then conquer we must, for our cause it is just,And this be our motto: In God is our trust. And the star-spangled banner forever shall waveO'er the land of the free and the home of \";\r\n\r\n String input_upper = input_one.toUpperCase();\r\n String input_upper2 = input_two.toUpperCase();\r\n // System.out.println(input_upper);\r\n String[] pattern = { \"FREE\", \"BRAVE\", \"NATION\" };\r\n // Brute Force algorithm\r\n System.out.println();\r\n System.out.println(\"**************************** OUTPUT OF FIRST INPUT FILE: *****************************\");\r\n System.out.println();\r\n System.out.println(\"\\t\\t\\t\\t\\tBRUTE FORCE ALGORITHM:\");\r\n System.out.println(\"=====================================================================================\");\r\n BF_Search bf = new BF_Search();\r\n long bf_startTime = System.nanoTime();\r\n for (int i = 0; i < pattern.length; i++) {\r\n bf.brute_force_search(input_upper, pattern[i]);\r\n }\r\n long bf_endTime = System.nanoTime();\r\n bf.printBF_Comparison();\r\n System.out.println(\"It took: \" + (bf_endTime - bf_startTime) + \" nanoseconds\");\r\n\r\n // Knuth Moris Pratt algorithm\r\n System.out.println(\"\\t\\t\\t\\t\\tKNUTH MORIS PRATT ALGORITHM:\");\r\n System.out.println(\"=====================================================================================\");\r\n KMP_Search kmp = new KMP_Search();\r\n long kmp_startTime = System.nanoTime();\r\n for (int i = 0; i < pattern.length; i++) {\r\n kmp.KMPSearch(pattern[i], input_upper);\r\n if (i == pattern.length - 1) {\r\n kmp.printKM_Comparisons();\r\n }\r\n }\r\n long kmp_endTime = System.nanoTime();\r\n System.out.println(\"It took: \" + (kmp_endTime - kmp_startTime) + \" nanoseconds\");\r\n\r\n // Boyer Moore algorithm\r\n System.out.println();\r\n System.out.println(\"\\t\\t\\t\\t\\tBOYER MOORE ALGORITHM:\");\r\n System.out.println(\"=====================================================================================\");\r\n BM_Search bm = new BM_Search();\r\n char[] bm_input = input_upper.toCharArray();\r\n char[] bm_pattern = new char[] {};\r\n long bm_startTime = System.nanoTime();\r\n for (String i : pattern) {\r\n bm_pattern = i.toCharArray();\r\n bm.bm_search(bm_input, bm_pattern);\r\n if (pattern[pattern.length - 1] == i) {\r\n bm.printBM_Comparison();\r\n }\r\n }\r\n long bm_endTime = System.nanoTime();\r\n System.out.println(\"It took: \" + (bm_endTime - bm_startTime) + \" nanoseconds\");\r\n\r\n // Rabin Karp algorithm\r\n System.out.println(\"\\t\\t\\t\\t\\tRABIN KARP ALGORITHM:\");\r\n System.out.println(\"=====================================================================================\");\r\n RKA_Search rk = new RKA_Search();\r\n int q = 101;\r\n long rk_startTime = System.nanoTime();\r\n for (int i = 0; i < pattern.length; i++) {\r\n rk.rka_search(pattern[i], input_upper, q);\r\n if (i == pattern.length - 1) {\r\n rk.printRKA_Comparison();\r\n }\r\n }\r\n long rk_endTime = System.nanoTime();\r\n System.out.println(\"It took: \" + (rk_endTime - rk_startTime) + \" nanoseconds\");\r\n System.out.println();\r\n System.out.println(\"************************* OUTPUT OF SECOND INPUT FILE: *******************************\");\r\n // Brute Force algorithm\r\n System.out.println();\r\n // System.out.println();\r\n System.out.println(\"\\t\\t\\t\\t\\tBRUTE FORCE ALGORITHM:\");\r\n System.out.println(\"=====================================================================================\");\r\n BF_Search bf2 = new BF_Search();\r\n long bf_startTime1 = System.nanoTime();\r\n for (int i = 0; i < pattern.length; i++) {\r\n bf.brute_force_search(input_upper2, pattern[i]);\r\n }\r\n long bf_endTime2 = System.nanoTime();\r\n bf2.printBF_Comparison();\r\n System.out.println(\"It took: \" + (bf_endTime2 - bf_startTime1) + \" nanoseconds\");\r\n\r\n // Knuth Moris Pratt algorithm\r\n System.out.println(\"\\t\\t\\t\\t\\tKNUTH MORIS PRATT ALGORITHM:\");\r\n System.out.println(\"=====================================================================================\");\r\n KMP_Search kmp2 = new KMP_Search();\r\n long kmp_startTime1 = System.nanoTime();\r\n for (int i = 0; i < pattern.length; i++) {\r\n kmp2.KMPSearch(pattern[i], input_upper2);\r\n if (i == pattern.length - 1) {\r\n kmp2.printKM_Comparisons();\r\n }\r\n }\r\n long kmp_endTime2 = System.nanoTime();\r\n System.out.println(\"It took: \" + (kmp_endTime2 - kmp_startTime1) + \" nanoseconds\");\r\n\r\n // Boyer Moore algorithm\r\n System.out.println(\"\\t\\t\\t\\t\\tBOYER MOORE ALGORITHM:\");\r\n System.out.println(\"=====================================================================================\");\r\n BM_Search bm2 = new BM_Search();\r\n char[] bm_input2 = input_upper.toCharArray();\r\n char[] bm_pattern2 = new char[] {};\r\n long bm_startTime1 = System.nanoTime();\r\n for (String i : pattern) {\r\n bm_pattern2 = i.toCharArray();\r\n bm.bm_search(bm_input2, bm_pattern2);\r\n if (pattern[pattern.length - 1] == i) {\r\n bm2.printBM_Comparison();\r\n }\r\n }\r\n long bm_endTime2 = System.nanoTime();\r\n System.out.println(\"It took: \" + (bm_endTime2 - bm_startTime1) + \" nanoseconds\");\r\n\r\n // Rabin Karp algorithm\r\n System.out.println(\"\\t\\t\\t\\t\\tRABIN KARP ALGORITHM:\");\r\n System.out.println(\"=====================================================================================\");\r\n RKA_Search rk2 = new RKA_Search();\r\n int q2 = 101;\r\n long rk_startTime1 = System.nanoTime();\r\n for (int i = 0; i < pattern.length; i++) {\r\n rk2.rka_search(pattern[i], input_upper2, q2);\r\n if (i == pattern.length - 1) {\r\n rk2.printRKA_Comparison();\r\n }\r\n }\r\n long rk_endTime2 = System.nanoTime();\r\n System.out.println(\"It took: \" + (rk_endTime2 - rk_startTime1) + \" nanoseconds\");\r\n }", "public static void main(String[] args) throws java.io.IOException {\n\t\t\n\t\tchar inChar = ' ';\n\t\t\n\t\t// Student data\n\t\tString accounts[][] = { {\"Rachel\", \"500.1\", \"451.45\", \"2\"}, \n\t\t\t\t {\"Ross\", \"293.23\", \"120.45\", \"7\"}, \n\t\t\t\t {\"Monica\", \"423.3\", \"400.3\", \"4\"}, \n\t\t\t\t {\"Chandler\", \"628.4\", \"282.67\", \"3\"},\n\t\t\t\t {\"Phoebe\", \"345.25\", \"84.4\", \"1\"},\n\t\t\t\t {\"Joey\", \"123.4\", \"345.3\", \"8\"},\n\t\t\t\t {\"Robin\", \"523.6\", \"500.45\", \"3\"}, \n\t\t\t\t {\"Lily\", \"264.43\", \"323.45\", \"6\"}, \n\t\t\t\t {\"Marshall\", \"523.3\", \"290.3\", \"7\"}, \n\t\t\t\t {\"Ted\", \"328.4\", \"584.6\", \"3\"},\n\t\t\t\t {\"Barney\", \"545.35\", \"233.4\", \"5\"},\n\t\t\t\t {\"Spongebob\",\"673.4\", \"666.3\", \"9\"}\n\t\t\t\t };\n\t\t\n\t\t// Read student data\n\t\tArrayList<Student> stuList = new ArrayList<>();\n\t\t\n\t\tfor(int i = 0; i < accounts.length; i++) {\n\t\t\tStudent stu = new Student(accounts[i][0], Double.valueOf(accounts[i][1]), Double.valueOf(accounts[i][2]), Integer.valueOf(accounts[i][3]));\n\t\t\tstuList.add(stu);\n\t\t}\n\t\t\n//\t\t// test-Print\n// \t\tSystem.out.println(\"****Print Student Info****\");\n// \t\t \n// \t\t for(Student stu : stuList) {\n//\t\t\tstu.show();\n//\t\t }\n\t\t \n\t\t// Construct an ArrayList to read commands\n\t\tArrayList<Character> comList = new ArrayList<>();\t\t\n\t\t\n\t\tdo {\n\t\t\t System.out.println(\"*****Enter choice 'c' to get the number of students in each grade level, then press <enter>*****\");\n\t\t\t System.out.println(\"*****Enter choice 'p' to get the 2D-map of the stops, then press <enter>*****\");\n\t\t\t System.out.println(\"*****Enter choice 'h' to get the last three commands(when commands are more than three), then press <enter>*****\");\n\t\t\t System.out.println(\"*****Enter choice 'q' to quit, then press <enter>*****\");\n\t\t\t\t\t \t \n\t\t\t inChar = (char) System.in.read();\n\t\t\t \t\t\t \n\t\t\t // Read '\\r' and '\\n' and do nothing\n\t\t\t System.in.read();\n\t\t\t System.in.read();\t\t\t \n\t\t\t \n\t\t \t // Read commands\n\t\t\t comList.add(inChar);\n\t \n\t\t \t // React to input and take appropriate action\n\t \t\t switch (inChar) {\n\t \t\t \n\t\t \t // Calculate how many students are in each grade level and list the results\n\t \t\t case 'c':\n\t\t \t\t System.out.println(\"*****Calculate Student Info****\");\n\t\t \t\t \n\t\t \t\t int count_elementery = 0;\n\t\t \t\t int count_middle = 0;\n\t\t \t\t \n\t\t \t\t for(Student stu : stuList) {\n\t\t \t\t\t\tif ( stu.getGrade() >= 1 && stu.getGrade() <= 6)\n\t\t \t\t\t\t\tcount_elementery++;\n\t\t \n\t\t \t\t\t\telse if (stu.getGrade() >= 7 && stu.getGrade() <= 9)\n\t\t \t\t\t\t\tcount_middle++;\n\t\t \t\t\t\t\t\n\t\t \t\t\t }\n\t\t \t\t \n\t\t \t\t System.out.println(\"Number of students in Elementery Grade Level(1-6): \" + count_elementery);\n\t\t \t\t System.out.println(\"Number of students in Middle Grade Level(7-9): \" + count_middle);\n\t\t \t\t \n\t\t \t\t break;\n\t\t \t\t \t\t \n\t\t // Print a region map (2D) that shows where a bus would need to stop for student pick-up/drop-off. \n // Allow custom map displays by grade level (i.e. Elementary (1-6), Middle (7-8), or All).\n\t\t \t case 'p':\n\t\t \t\t System.out.println(\"****Print 2D Region Map****\");\n\t\t \t\t\t\n\t\t \t\t //Generate 2D-Map\n\t\t \t SwingUtilities.invokeLater(() -> {\n\t\t \t \t\n//\t\t \t \tScatterPlot obj = new ScatterPlot(stuList); \n//\t\t \t \tobj.myplot();\n\t\t \t\t ScatterPlot2 obj = new ScatterPlot2(stuList); \n\t\t \t\t obj.main();\n\t\t \t obj.setSize(800, 400);\n\t\t \t obj.setLocationRelativeTo(null);\n//\t\t \t obj.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n\t\t \t });\n\t \t\t\t \n\t\t \t\t break;\t\t \t \n\t\t \t\t \n\t\t \t // Print a history of the last three commands\n\t\t case 'h':\n\t\t \t\t System.out.println(\"****Print Command History*****\");\t\t\t \t \n\t\t\t \t System.out.println(\"Last Three Command History:\"+ comList.get(comList.size()-2) + \",\" + comList.get(comList.size()-3) + \",\" + comList.get(comList.size()-4));\n\t\t\t \t \n\t\t \t\t break;\n\t\t \t\t \t\t \n\t }\n\t\t} \n\t\t \n\t\t // Exit on quit\n\t\t while (inChar != 'q');\t\t\n\t\t System.out.println(\"Quiting...\");\n\t\t \t\t \n\t }", "public static void main(String[] args) {\r\n\t\t//Use Scanner to get input from console\r\n\t\tScanner sc = new Scanner (System.in);\r\n\t\tint noOfStudents = sc.nextInt();\r\n\t\tMap<Integer, Integer> stdMarksMap = new HashMap<Integer, Integer>();\r\n\t\tfor (int i = 0; i < noOfStudents; i++) {\r\n\t\t\tstdMarksMap.put(sc.nextInt(), sc.nextInt());\r\n\t\t}\r\n\t\tMap<Integer, String> resMap = calculateGrade(stdMarksMap);\r\n\t\tfor (Integer key : resMap.keySet()) {\r\n\t\t\tSystem.out.println(key+\" \"+resMap.get(key));\r\n\t\t\t\r\n\t\t}\r\n\t}", "public void mainTest()\n {\n \tprintSimilarRatingsByYearAfterAndMinutes();\n }", "public static void main(String[] args) {\n Student terrel = new Student(\"Terrel\", 50, 1, 4.0);\n\n// terrel.setName(\"Terrel\");\n// terrel.setGpa(4.0);\n\n System.out.println(terrel.getName() + \" \" + terrel.getNumberOfCredits() + \" \" +terrel.getGpa());\n }", "private void doResearch() {\n\t\tSystem.out.println(\"Students must do research\");\n\t}", "public static void main(String[] args) {\n // Q1: number of hours in a day (byte)\n byte numberOfHoursInaDay =24;\n System.out.println(\"\\nnumberOfHoursInaDay:24 \");\n // Q2.Max.no of days in an year\n short maxNumberOfTheDayInaYear = 366;\n System.out.println(\"\\nmaxNumberOfTheDaysInaYear:366\");\n // Q3.Total number of employees in an organization\n int totalNumberOfEmployeesInIbm = 50000;\n System.out.println(\"\\ntotalNumberOfEmployeesInIbm:50000\");\n //Q4.Population in a country\n long numberOfPopulation = 2000000000L;\n System.out.println(\"\\nnumberOfPopulation : 2000000000L\");\n //Q5.Interest rate\n float interestRate = 1.9f;\n System.out.println(\"\\\\nCurrent interest rate:\\\" + interestRate\");\n //Q6. Balance in a bank account\n long accountBalance = 50000000L;\n System.out.println(\"\\naccountBalance = 50000000L\");\n boolean doesTheSunRiseFromTheWest = true;\n System.out.println(\"doesTheSunRiseFromTheWest? : \" + doesTheSunRiseFromTheWest);\n\n // Q7.Initials of your name\n char firstInitial = 'S';\n char lastInitial = 'M';\n System.out.println(\"My initials: \" +firstInitial + lastInitial);\n\n\n\n\n\n }", "public static void main(String[] args) {\n\n createClass(); //ctrl+click\n printTrainers();\n printStudents();\n printGroup();\n printstudentAlfabetically();\n getNumberOfStudentsFromGroup_classicMethod();\n getAllMaxNumberOfStudentsFromGroup_classicMethod(groups);\n displayGroupWithMaxNumOfStudent_FunctionalMethod();\n displayGroupWithMinNumOfStudent_FunctionalMethod();\n studentsYoungerThan(25);\n displayStudentsYoungerThan(25);\n System.out.println(displayStudentsYoungerThan1(25));\n System.out.println(displayStudentsYoungerThan2(23));\n studentsGroupedByTrainer_WithGroups();\n\n studentsGroupedByTrainer_WithMAp(); //Functioneaza daca nu fac modificari in grupuri\n\n //-----------------------------------\n\n displayStudentsWithPreviousJavaKnowledge();\n displayStudentsWithPreviousJavaKnowledge1();\n\n dispGroupWithMaxNumOfStudentsWithNOJavaKnowledge();\n\n\n removeStudentsYoungerThanFromGroups(25);\n\n printStudentsAlphabeticallyByFirstName();\n dispGroupWithMaxNumOfStudentsWithNOJavaKnowledge4();\n dispGroupWithMaxNumOfStudentsWithNOJavaKnowledge2();\n dispGroupWithMaxNumOfStudentsWithNOJavaKnowledge3();\n System.out.println(\"Triple : \" + tripleNumberOfStudentsFromMaxGroup(getAllMaxNumberOfStudentsFromGroup_classicMethod(groups)));\n System.out.println(\"cuvantul cu dimensiunea cea mai mare este : \" + getLongestString(\"Diana\", \"Liviu\", \"Leah\"));//VARARGS: nputem scrie si fara paramatrii dar nu ne afiseaza nimic\n }", "@Override\n\tpublic void challenge11() {\n\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Please enter first number:\");\n\t\tint num1 = scan.nextInt();\n\t\t\n\t\tSystem.out.println(\"Please enter second number:\");\n\t\tint num2 = scan.nextInt();\n\t\t\n\t\tif(num1 > num2) {\n\t\t\tSystem.out.println(num1+ \" is larger than \"+num2);\n\t\t}else if (num1 == num2) {\n\t\t\tSystem.out.println(num1+ \" is smaller than \"+num2);\n\t\t}else {\n\t\t\tSystem.out.println(num2+ \" is larger than \"+num1);\n\t\t}\n\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t \tScanner inp = new Scanner(System.in);\n\t \tSystem.out.print(\"In:\");\n\t \tString name = inp.nextLine();\n\t \t//DO NOT CHANGE ABOVE CODE! Write your code below\n\t \tif(name.equals(\"Chen\")){\n\t \t System.out.println(\"teacher\");\n\t \t }\n\t \t \tSystem.out.print(\"In:\"); \n\t \tString stud = inp.nextLine();\n\t \tif(stud.equals(\"Faa\")){\n\t \t System.out.println(\"student\");\n\t \t}\n\t}", "public void mo21789N() {\n }", "public static void main(String[] args) {\n\t\tScanner scnr = new Scanner(System.in);\n\n\t\t// arrays containing names, hometowns, and pet peeves of students\n\t\tString [] names = {\"Ally\", \"Ben\", \"Charlene\", \"Dave\", \"Ella\", \"Frank\", \"Genevieve\", \"Horace\"};\n\t\tString [] hometowns = {\"Albany\", \"Boston\", \"Chicago\", \"Denver\", \"Evanston\", \"Frankfurt\", \"Galveston\", \"Houston\"};\n\t\tString [] petPeeves = {\"hangnails\", \"Bad drivers\", \"flies at a picnic\", \"nails on a chalkboard\", \"squeaky styrofoam\", \"dry toast\", \"papercuts\", \"hair in the sink\"};\n\t\tString goAgain = \"\";\n\t\t\n\t\tSystem.out.print(\"Welcome to our Java class. \");\n\t\t\n\t\t\t\n\t\t\tSystem.out.print(\"Which student would you like to learn more about? \");\n\t\t\t// call the method to get valid integer\n\t\t\tint userNumber = getInt(scnr, \"(Enter a number 1-8):\", 1, 8);\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"\\nStudent \" + userNumber + \" is \" + names[userNumber-1] + \".\");\n\t\t\tSystem.out.print(\"\\nWhat would you like to know about \" + names[userNumber-1] + \"? \");\n\t\t\t\n\t\t\t\n\t\t\tboolean userInputIsClear; // keeps track of whether input is clear for the following if/else block\n\t\t\tString userContinue; //keeps track of whether the user wants to continue with the program\n\t\t\t\n\t\t\t// loop to allow user to run through program again\n\t\t\tdo {\n\t\t\t// loop to validate user input \"hometown\" or \"pet peeve\"\n\t\t\tdo {\n\t\t\t\tSystem.out.println(\"Please enter \\\"hometown\\\" or \\\"pet peeve.\\\"\");\n\t\t\t\tString userChoice = scnr.nextLine();\n\n\t\t\t\t// if \"hometown\" then print student's hometown\n\t\t\t\tif (userChoice.toLowerCase().equals(\"hometown\")) {\n\t\t\t\t\tSystem.out.println(\"\\n\" + names[userNumber-1] + \"'s \" + userChoice + \" is \" + hometowns[userNumber-1] + \".\");\n\t\t\t\t\tuserInputIsClear = true;\n\t\t\t\t}\n\t\t\t\t// if \"pet peeve\" then print student's pet peeve\n\t\t\t\telse if (userChoice.toLowerCase().equals(\"pet peeve\")) {\n\t\t\t\t\tSystem.out.println(\"\\n\" + names[userNumber-1] + \"'s \" + userChoice + \" is \" + petPeeves[userNumber-1] + \".\");\n\t\t\t\t\tuserInputIsClear = true;\n\t\t\t\t}\n\t\t\t\t// if input does not match either choice, then tell user, set \"InputIsClear\" to false so loop will start over\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.print(\"Sorry, I didn't understand that. \");\n\t\t\t\t\tuserInputIsClear = false;\n\t\t\t\t}\n\t\t\t\n\t\t\t} while (!userInputIsClear); //loop will repeat as long as user input is not clear\n\t\t\t\n\t\t\t// ask user if s/he wants to know more and get user response (which is called \"goAgain\")\n\t\t\tSystem.out.println(\"\\nWould you like to know more about \" + names[userNumber-1] + \"? (y/n)\");\n\t\t\tgoAgain = scnr.nextLine();\n\t\t\n\t\t} while (goAgain.toLowerCase().startsWith(\"y\")); // loop will repeat as long as \"goAgain\" starts with 'y'\n\t\t\n\t\tSystem.out.println(\"\\nThanks, goodbye!\");\n\t\t\t\n\t\tscnr.close();\n\t}", "public static void experiment2() {\n\t\tList<String> lines = FileUtil.loadFrom(\"docs/corpus-search-results-new-408.txt\");\n\t\tString cipher = Ciphers.cipher[1].cipher;\n\t\tString plain = Ciphers.cipher[1].solution;\n\t\tfor (String line : lines) {\n\t\t\tint pos = plain.indexOf(line.toLowerCase());\n\t\t\tif (pos < 0) System.out.println(\"Could not find \" + line + \" in plaintext\");\n\t\t\telse {\n\t\t\t\tString sub = cipher.substring(pos, pos+line.length());\n\t\t\t\tInfo info = new Info(sub, 0);\n\t\t\t\tSystem.out.println(line + \", \" + sub + \", \" + info.probability);\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void challenge17() {\n\n\t}", "@Test\r\n\t\tpublic void testParsePuts() {\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\tString a = \"the_best_cat = \\\"Noogie Cat\\\" \\nputs \\\"The best cat is: \\\" + the_best_cat\";\r\n\t\t\tdriver.findElement(By.id(\"code_code\")).sendKeys(a);;\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\tWebElement submitButton = driver.findElement(By.xpath(\"(//input[@name='commit'])[2]\"));\r\n\t\t\tsubmitButton.click();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tWebElement e = driver.findElement(By.tagName(\"code\"));\r\n\t\t\t\tString elementText = e.getText();\r\n\t\t\t\tassertTrue(elementText.contains(\"@ident\"));\r\n\t\t\t} catch (NoSuchElementException nseex) {\r\n\t\t\t\tfail();\r\n\t\t\t}\r\n\t\t}", "private test5() {\r\n\t\r\n\t}", "public void mo21794S() {\n }", "public void firstSem10d(){\n chapter = \"firstSem10d\";\n String firstSem10d = \"Shocked, you and your roommate look at each other. \\\"That was...intense,\\\" your roommate says uncomfortably, and you agree. \" +\n \"\\\"Can I ask why you didn't go for the shotgun?\\\" you ask eventually, trying to find a way to bring down the adrenaline in the room. \"+\n student.getRmName()+\" shakes their head. \\\"I told you, man, that's for defense against gunmen.\\\" They look around, seemingly noticing the \" +\n \"level of destruction for the first time. \\\"This sucks. I can help you clean up the glass and stuff. You want Insomnia Cookie or anything? On me. \" +\n \"Well, partially. I only have like ten dollars.\\\" You nod, only half-listening. \\\"Yeah.\\\" you say finally. \\\"Cookies would be good.\\\"\\n\" +\n \"\\t LATER...\\n\";\n getTextIn(firstSem10d);\n }", "private void kk12() {\n\n\t}", "public void firstSem2a6(){\n chapter = \"firstSem2a6\";\n String firstSem2a6 = \"\\\"Well? Are we friends, like that guy said?\\\"\";\n getTextIn(firstSem2a6);\n }", "public static void main(String[] args) {\n // write your code here - this is called comment and it always starts with double slash\n // and comlier will ignore this because of the // sign.\n // I am gonna say hello\n // JAVA IS CASE SENSITIVE LANGUAGE\n // System and system are very different things in java\n //Hello AND hello are different for java\n // System.out.println(\"Hello Batch 15!\");\n // System.out.println(\"I am still here.\");\n // System.out.println(\"I love Java.\");\n\n // Write a program to display your information.\n // When you run it, it should have this outcome.\n // I am your name here\n // I am from batch 15\n // I am from your city here\n // I love Java\n\n System.out.println(\"I am Sevim.\");\n System.out.println(\"I am from Batch 15.\");\n System.out.println(\"I'm from New Jersey.\");\n System.out.println(\"I love Java.\");\n\n\n\n }", "public static void main (String [] args) {\n Address school = new Address(\"800 Lancaster Ave.\", \"Villanova\",\n \"PA\", 19085);\n //create home address objects for a number of students\n Address home1 = new Address(\"21 Jump Street\", \"Blacksburg\",\n \"VA\", 24551);\n Address home2 = new Address(\"123 Main Street\", \"Euclid\", \"OH\", \n 44132);\n Address home3 = new Address(\"5248 Fortress Circle\", \"Valdosta\",\n \"GA\", 31605);\n Address home4 = new Address(\"505 Cedar Drive\", \"Nashville\",\n \"GA\", 31639);\n //create students\n Student student1 = new Student(\"Rick\",\"Sanchez\",home1,school,99,100,97,94);\n Student student2 = new Student(\"Morty\",\"Smith\" ,home2,school,14,28,37,55); \n Student student3 = new Student(\"Zach\",\"Spencer\",home3,school,98,89,86,95);\n Student student4 = new Student(\"Arron\",\"Croft\" ,home4,school,84,99,90,75);\n //create a CS1301 A course\n Course cs1301A = new Course(\"CS1301 A\");\n //create a CS1301 B course\n Course cs1301B = new Course(\"CS1301 B\"); \n //assign some students to CS1301 A\n cs1301A.addStudent(student1);\n cs1301A.addStudent(student2);\n //assign some students to CS1301 B\n cs1301B.addStudent(student3); \n cs1301B.addStudent(student4);\n //get the averages of the 2 courses\n System.out.println(\"*** Averages of CS1301 Courses ***\");\n System.out.println(\"CS1301 A: \"+cs1301A.average());\n System.out.println(\"CS1301 B: \"+cs1301B.average());\n //display the roll for the 2 courses\n System.out.println(\"\\n*** Roll Call ***\");\n cs1301A.roll();\n cs1301B.roll(); \n }", "private void generate_test_code()\n {\n int I;\n DataType[] ParamTypes = m_Problem.getParamTypes();\n DataType ReturnType = m_Problem.getReturnType();\n TestCase[] Cases = m_Problem.getTestCases();\n StringBuffer Code = new StringBuffer();\n\n Code.append(\"private:\\n\");\n\n // Generate the vector output function\n Code.append(\"\\ttemplate <typename T> string print_array(const vector<T> &V) { ostringstream os; os << \\\"{ \\\"; for (typename vector<T>::const_iterator iter = V.begin(); iter != V.end(); ++iter) os << \\'\\\\\\\"\\' << *iter << \\\"\\\\\\\",\\\"; os << \\\" }\\\"; return os.str(); }\\n\\n\");\n\n // Generate the verification function\n generate_verification_code(Code, ReturnType);\n\n // Generate the individual test cases\n Code.append(\"\\n\");\n\n /*\n * Generate the test wrapper function that can call\n * either all or individual test cases. (-1 for all)\n */\n Code.append(\"public:\\n\");\n Code.append(\"\\tvoid run_test(int Case) { \\n\");\n Code.append(\"\\t\\tint n = 0;\\n\\n\");\n for (I = 0; I < Cases.length; ++I)\n generate_test_case(I, Code, ParamTypes, ReturnType, Cases[I]);\n // next\n Code.append(\"\\t}\\n\");\n\n // Insert the cut tags\n Code.insert(0, k_BEGINCUT);\n Code.append(k_ENDCUT);\n\n m_Tags.put(k_TESTCODE, Code.toString());\n }", "public static void main(String[] args) {\nScanner s=new Scanner(System.in);\r\nSystem.out.println(\"Enter the school name\");\r\nString a=s.next();\r\nSystem.out.println(\"Enter the student name\");\r\nString b=s.next();\r\nSystem.out.println(\"Enter the roll name\");\r\nString a=s.next();\r\n\t}", "public static void testStudent() {\n Student test = new Student(-1930026144, \"Simon\");\r\n // test the id number\r\n System.out.println(test.getID() == 0);\r\n System.out.println(test.getName() == \"Simon\");\r\n // reset a name\r\n test.setName(\"John\");\r\n // test the new name\r\n System.out.println(test.getName() == \"John\");\r\n // set a grade\r\n test.setGrade('A');\r\n System.out.println(test.getGrade() == 'A');\r\n }", "@Test\r\n\t\tpublic void testTokenizePuts() {\r\n\t\t\t\t\t\t\t\r\n\t\t\tString a = \"the_best_cat = \\\"Noogie Cat\\\" \\nputs \\\"The best cat is: \\\" + the_best_cat\";\r\n\t\t\tdriver.findElement(By.id(\"code_code\")).sendKeys(a);;\r\n\t\t\t\t\t\t\t\r\n\t\t\tWebElement submitButton = driver.findElement(By.name(\"commit\"));\r\n\t\t\tsubmitButton.click();\r\n\t\t\t\t\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tWebElement e = driver.findElement(By.tagName(\"code\"));\r\n\t\t\t\tString elementText = e.getText();\r\n\t\t\t\tassertTrue(elementText.contains(\":on_ident\"));\r\n\t\t\t} catch (NoSuchElementException nseex) {\r\n\t\t\t\tfail();\r\n\t\t\t}\r\n\t\t}", "public void mo21785J() {\n }", "public static void main(String[] args) {\n\t\tScanner ip = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Welcome to the Katapayadi Wizard! Enter the 1st syllable of the raga of your choice: \");\r\n\t\t\r\n\t\tString F = ip.nextLine();\r\n\t\tSystem.out.println(\"Great! Now enter the 2nd syllable of the raga of your choice: \");\r\n\t\t\r\n\t\tString S = ip.nextLine();\r\n\t\t//int firstIndex; \r\n\t\t\r\n\t\tString [] [] alphabets = {{\"nya\", \"ka\", \"kha\", \"ga\", \"gha\", \"nga\", \"cha\", \"ccha\", \"ja\", \"jha\"}, \r\n\t\t\t\t\t\t\t\t {\"na\", \"ta\", \"tah\",\"da\", \"dah\", \"nna\", \"tha\", \"ttha\", \"dha\", \"ddha\"},\r\n\t\t\t\t\t\t\t\t {\"null\",\"pa\", \"pha\",\"ba\",\"bha\",\"ma\", \"null\", \"null\", \"null\", \"null\", },\r\n\t\t\t\t\t\t\t\t {\"null\",\"ya\", \"ra\", \"la\", \"va\", \"se\", \"sha\", \"sa\", \"ha\",\"null\"}};\r\n\t\t\r\n\t\tint firstNum = getFirstIndex(alphabets, F);\r\n\t\tint secondNum = getSecondIndex(alphabets, S); \r\n\t\tint finalIndex = concat(firstNum, secondNum);\r\n\t\t\r\n\t\tString swaras1= swaraSthanam1(finalIndex);\r\n\t\t//String finalanswer = The [index]th melakartha: aro [swaras1] and ava [swaras2].\r\n\t\tSystem.out.println(firstNum);\r\n\t\tSystem.out.println(secondNum);\r\n\t\t\r\n\t\tSystem.out.println(finalIndex);\r\n\t\t\r\n\t\tSystem.out.println(swaras1);\r\n\t\t\r\n\t}", "static void homeworkHeader(){\n //homeworkHeader function which when called will produce the homework header\n putChars(30, '=');//displays 10 =\n System.out.println(\"Homework Header\");\n putChars(30, '=');//displays 10 =\n System.out.println(\"Ticket : 86713\");\n System.out.println( \"Course : CMPR 112 \");\n System.out.println( \"Student : Ben Halpern \");\n System.out.println( \"Instructor : Joel Kirscher\");\n System.out.println( \"Environment: Win 10 NetBeans \");\n System.out.println( \"Project Title : Assignment 05 - Java Methods \");\n System.out.println(\"\\n\\n\");\n //end homework header output\n }", "public static void main(String[] args) {\nint score = 91;\nString grade;\nif (score >90)\n{\n\tgrade = \"A\";\n}\n\n\n\nelse if (score>=80)\n{\n\tgrade = \"B\";\n}\n//THis is to test Git\n//THis is to test Git\n//THis is to test Git2\n//This is to test the brach made by gitdemo\n//Change from GitX\nelse \n{\n\tgrade = \"C\";\n}\nSystem.out.println(grade);\n}", "@Override\n\tpublic void challenge9() {\n\n\t}", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\n\t\tStudent diwas= new Student();\n\t\t//Putting data\n\t\tdiwas.name=\"Diwas 123\";\n\t\tdiwas.id= 1;\n\t\tdiwas.address=\"US\";\n\t\tdiwas.yearOfStudy=2;\n\t\t\n\t\tdiwas.printDetails();\n\t\tdiwas.studies();\n\t\tdiwas.giveExams();\n\t\t\n\t\t\n\t\tSystem.out.println( \"=======\");\n\t\tStudent mohhamad= new Student();\n\t\tmohhamad.name=\"Mohhamad 123\";\n\t\tmohhamad.id=2;\n\t\tmohhamad.address=\"US\";\n\t\tmohhamad.yearOfStudy=3;\n\t\t\n\t\tmohhamad.printDetails();\n\t\tmohhamad.studies();\n\t\tmohhamad.giveExams();\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "@Override\n\tpublic void study() {\n\t\tSystem.out.println(\"You will study in JUR\");\n\t}", "public void smell() {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tString[] stereotypeBooks = {\"Critique of the Critique of Pure Reason\", \"Token Work of Fiction to Show I Can Write\", \n\t\t\t\t\"Deconstructing Everything I Find\", \"The Metaphysics of Dasein or Some Other Word I Made Up\", \n\t\t\t\t\"I Understand Existence More Than All Y'all Fools\"};\n\t\tSA0 stereotype = new SA0(\"Immanuel Locke\", 79, \"Male\", 1724, 5, 5, \"Germany\", \"Metaphysics\", stereotypeBooks);\n\t\tSystem.out.println(stereotype.defendSelf());\n\t\tSystem.out.println(stereotype.getSummary()); \n\t\t\n\t\tString[] nietzscheBooks = {\"Thus Spake Zarathustra\", \"Beyond Good and Evil\", \"The Antichrist\", \n\t\t\t\t\"Human, All Too Human\", \"The Gay Science\"};\n\t\tSA0 nietzsche = new SA0(\"Friedrich Nietzsche\", 55, \"Male\", 1844, 4, 8, \"Germany\", \"Metaphysics\", nietzscheBooks);\n\t\tSystem.out.println(nietzsche.defendSelf());\n\t\tSystem.out.println(nietzsche.getSummary()); \n\t}", "public void firstSem10b(){\n chapter = \"firstSem10b\";\n String firstSem10b = \"By the time you get back to your room around 4AM, something's very wrong. Your door appears to have been ripped off its\" +\n \" hinges, and your room is in complete disarray. Dave Grohl has been ripped to tatters, and your roommate's nowhere to be seen.\\n\\t\\\"\"+\n student.getName()+\"!\\\" your RA shouts, running down the hall toward you. \\\"I've been trying to call you...the beast got \"+student.getRmName()\n +\". Just took him. I wanted to stop it, but...you know, I'm anti-violence. You just can't fight hate with hate. Sorry, man.\\\"\";\n getTextIn(firstSem10b);\n }", "public static void main(String[] args) {\n\t\tStudent s1 = new Student(\"Joro\", \"KST\", (byte)25);\n\t\tStudent s2 = new Student(\"Pesho\", \"KST\", (byte)25);\n\t\tStudent s3 = new Student(\"Gesho\", \"KST\", (byte)25);\n\t\tStudent s4 = new Student(\"Misho\", \"KST\", (byte)25);\n\t\tStudent s5 = new Student(\"Tisho\", \"KST\", (byte)25);\n\t\tStudent s6 = new Student(\"Ivo\", \"KST\", (byte)25);\n\t\t\n\t\ts3.setGrade(5);\n\t\ts5.setGrade(5.5);\n\t\ts2.setGrade(6);\n\t\t\n\t\ts1.receiveScholarship(4, 500);\n\t\ts2.receiveScholarship(5, 250.00);\n\t\t\n\t\t\n\t\ts2.upYear();\n\t\ts5.upYear();\n\t\ts6.upYear();\n\t\t\n\t\tStudentGroup sg1 = new StudentGroup(\"KST\") ;\n\t\t\n\t\tsg1.addStudent(s1);\n\t\tsg1.addStudent(s2);\n\t\tsg1.addStudent(s3);\n\t\tsg1.addStudent(s4);\n\t\tsg1.addStudent(s5);\n\t\tsg1.addStudent(s6);\n\n\t\n\t\tSystem.out.println(sg1.printStudentsInGroup());\n\t\t\n\t\t\n\t\tSystem.out.println(\"The best student in group is \"+ sg1.theBestStudent());\n\n\t}", "@Test(timeout = 4000)\n public void test59() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"Name(s) of editor(s), typed as indicated in the LaTeX book. If there is also an author field, then the editor field gives the editor of the book or collection in which the reference appears.\");\n assertEquals(\"nam(s) of edit(s), typ as indic in th latic book. if ther is als an author field, then th edit field giv th edit of th book or collect in which th refer appear.\", string0);\n }", "private static void LessonFundamentals() {\n byte myNum1 = 100;\n System.out.println(myNum1);\n short myNum2 = 5000;\n System.out.println(myNum2);\n int myNum3 = 100000;\n System.out.println(myNum3);\n long myNum4 = 15000000000L;\n System.out.println(myNum4);\n float myNum5 = 5.75f;\n System.out.println(myNum5);\n double myNum6 = 19.99d;\n System.out.println(myNum6);\n boolean isJavaFun = true;\n boolean isFishTasty = false;\n System.out.println(isJavaFun);\n System.out.println(isFishTasty);\n char myGrade = 'B';\n System.out.println(myGrade);\n String greeting = \"Hello World\";\n System.out.println(greeting);\n\n //#4\n //Strings are non-primitive data types that are objects\n //Strings can be empty or null while primitive type can not\n //int a = null;\n String b = null;\n\n //#5\n List<String> stringList = new ArrayList<String>();\n stringList.add(\"Hello\");\n stringList.add(\"World\");\n stringList.add(\"Let's do this\");\n\n for(String oneStr : stringList) {\n System.out.println(oneStr);\n }\n\n //List can't have primitive types like int, char, double etc\n //List(int) characters = new ArrayList<int>()\n\n //#6\n //Lottery Variables\n String gameName = \"Powerball\";\n double jackpot = 20000000.00d;\n String drawingDate = \"1/2/2013\";\n List<String> winningNumbers = new ArrayList<String>();\n winningNumbers.add(\"3\");\n winningNumbers.add(\"7\");\n winningNumbers.add(\"13\");\n winningNumbers.add(\"25\");\n winningNumbers.add(\"47\");\n winningNumbers.add(\"13LB\");\n winningNumbers.add(\"5x\");\n\n }", "public static void main(String[] args) {\n\t\t\tinitCapFormat(\"bengaluru is my city\");\n\t\t// 2.TODO \"sumit\" - \"itsum\"\n\t\t\tinputsInterchangeable(\"sumit\", \"itsum\");\n\t\t// 3.TODO 6699 - 69\n\t\t\t// 6*9+6+9\n\t\t// 4.TODO LIKE operator\n\t\t\t// SQL_LINUX.odt\n\t\t// 5.TODO numbers div by 5 in 1....10/5cr\n\t\t\tcountDivisibles(1, 100, 5);\n\t\t// 6.TODO count vowels in statement\n\t\t\tgetCountofVowels(\"THIS website is aw3som3\");\n\t\t// 7.CSS bold\n\t\t\t// <strong> or <b> tag also, you can try with css <span style=\"font-weight:bold\">text</span>\n\n\t}", "@Test\n public void method01() {\n System.out.println(school);\n }", "public static void main(String[] args) {\n\t\tString first = \"coding\";\r\n\t\tSystem.out.println(first + \" \"+ \"everybody\");\r\n\t}", "public static void main(String[] args) \n\t{\n\t\tint roll_number, Hindi, Eng, Maths, Science, Art;\n\t\tString name;\n\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner SC = new Scanner(System.in);\n\t\t\n\t\tSystem.out.print(\"Enter Name:\");\n\t\tname = SC.nextLine();\n\t\tSystem.out.print(\"Enter Roll Number:\");\n\t\troll_number = SC.nextInt();\n\t\tSystem.out.print(\"Enter Hindi, English, Maths, Science and Arts marks:\");\n\t\tHindi = SC.nextInt();\n\t\tEng = SC.nextInt();\n\t\tMaths = SC.nextInt();\n\t\tScience = SC.nextInt();\n\t\tArt = SC.nextInt();\n\t\t\n\t\tint total = Hindi+Eng+Maths+Science+Art;\n\t\tint avg = total/5;\n\t\tSystem.out.println(\"Student Roll Number is:\"+roll_number);\n\t\tSystem.out.println(\"Student Name is:\"+name);\n\t\tSystem.out.println(\"Student Totla Marks are:\"+total);\n\t\tSystem.out.println(\"Average marks are:\"+avg);\n\n\t}", "public String printAcceptance(int school){\n int letterPicker = (int) (Math.random()*10);\n String accLetter = acceptanceLetter[letterPicker];\n if (school == 0){\n accLetter += \"Greendale..?\";\n }\n if (school == 1){\n accLetter += \"Harvard!\";\n }\n if (school == 2){\n accLetter += \"MIT!\";\n }\n return accLetter;\n }", "public void mo12930a() {\n }", "public String getCode(ClassDecl cl)\r\n\t{\r\n\t\tString testcode = \"#Region \\\"Testing code generated by KawigiEdit\\\"\\n\";\r\n\t\ttestcode += \"Module MainModule\\n\";\r\n\t\ttestcode += \"\\tSub Main()\\n\";\r\n\t\tEditorDataType returnType = cl.getMethod().getReturnType();\r\n\t\ttestcode += \"\\t\\tDim Errors As Boolean = False\\n\";\r\n\t\ttestcode += \"\\t\\tDim Answer, DesiredAnswer As \" + EditorLanguage.VB.getName(returnType) + \"\\n\";\r\n\t\ttestcode += \"\\t\\tDim Obj As \" + cl.getName() + \"\\n\";\r\n\t\ttestcode += \"\\t\\tDim Time As DateTime\\n\";\r\n\t\tif (returnType.isArrayType())\r\n\t\t{\r\n\t\t\ttestcode += \"\\t\\tDim Same As Boolean\\n\";\r\n\t\t\ttestcode += \"\\t\\tDim i As Integer\\n\";\r\n\t\t}\r\n\t\tboolean stringType = returnType.isType(EditorDataType.String);\r\n\t\tEditorDataType[] paramTypes = cl.getMethod().getParamTypes();\r\n\t\ttestcode += \"\\t\\t<%:start-tests%>\\n\";\r\n\t\tfor (int i=0; i<cl.countTests(); i++)\r\n\t\t{\r\n\t\t\ttestcode += \"\\t\\tObj = New \" + cl.getName() + \"()\\n\";\r\n\t\t\ttestcode += \"\\t\\tTime = DateTime.Now\\n\";\r\n\t\t\ttestcode += \"\\t\\tAnswer = Obj.\" + cl.getMethod().getName() + \"(\" + toTest(cl.getTest(i).getParameters(), paramTypes) + \")\\n\";\r\n\t\t\ttestcode += \"\\t\\tConsole.WriteLine(\\\"Time: \\\" & (DateTime.Now.Subtract(Time)).TotalSeconds & \\\" seconds\\\")\\n\";\r\n\t\t\ttestcode += \"\\t\\tDesiredAnswer = \" + translateObject(returnType, cl.getTest(i).getAnswer()) + \"\\n\";\r\n\t\t\ttestcode += \"\\t\\tConsole.WriteLine(\\\"Your Answer:\\\")\\n\";\r\n\t\t\tif (returnType.isArrayType())\r\n\t\t\t{\r\n\t\t\t\ttestcode += \"\\t\\tConsole.Write(\\\"{ \\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tIf (Answer.Length > 0) Then\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tConsole.Write(\" + (stringType ? \"\\\"\\\"\\\"\\\" & \" : \"\") + \"Answer(0)\" + (stringType ? \" & \\\"\\\"\\\"\\\"\" : \"\") + \")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tFor i = 1 To Answer.Length - 1\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\t\\tConsole.Write(\\\"\\t, \" + (stringType ? \"\\\"\\\"\" : \"\") + \"\\\" & Answer(i)\" + (stringType ? \" & \\\"\\\"\\\"\\\"\" : \"\") + \")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tNext\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tConsole.WriteLine(\\\" }\\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tElse\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tConsole.WriteLine(\\\"}\\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tEnd If\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tConsole.WriteLine(\\\"Desired Answer:\\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tConsole.Write(\\\"{ \\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tIf (DesiredAnswer.Length > 0) Then\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tConsole.Write(\" + (stringType ? \"\\\"\\\"\\\"\\\" & \" : \"\") + \"DesiredAnswer(0)\" + (stringType ? \" & \\\"\\\"\\\"\\\"\" : \"\") + \")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tFor i = 1 To DesiredAnswer.Length - 1\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\t\\tConsole.Write(\\\", \" + (stringType ? \"\\\"\\\"\" : \"\") + \"\\\" & DesiredAnswer(i)\" + (stringType ? \" & \\\"\\\"\\\"\\\"\" : \"\") + \")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tNext\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tConsole.WriteLine(\\\" }\\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tElse\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tConsole.WriteLine(\\\"}\\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tEnd If\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tSame = (Answer.Length = DesiredAnswer.Length)\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tIf (Same)\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tFor i = 0 To DesiredAnswer.Length - 1\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\t\\tIf Answer(i) <> DesiredAnswer(i) Then\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\t\\t\\tSame = False\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\t\\tEnd If\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tNext\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tEnd If\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tIf Same Then\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tConsole.WriteLine(\\\"Match :-)\\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tElse\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tConsole.WriteLine(\\\"DOESN'T MATCH!!!!\\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tErrors = True\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tEnd If\\n\";\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttestcode += \"\\t\\tConsole.WriteLine(\\\"\\t\" + (stringType ? \"\\\"\\\"\" : \"\") + \"\\\" & Answer\" + (stringType ? \" & \\\"\\\"\\\"\\\"\" : \"\") + \")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tConsole.WriteLine(\\\"Desired Answer:\\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tConsole.WriteLine(\\\"\\t\" + (stringType ? \"\\\"\\\"\" : \"\") +\"\\\" & DesiredAnswer\" + (stringType ? \" & \\\"\\\"\\\"\\\"\" : \"\") + \")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tIf Answer = DesiredAnswer Then\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tConsole.WriteLine(\\\"Match :-)\\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tElse\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tConsole.WriteLine(\\\"DOESN'T MATCH!!!!\\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tErrors = True\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tEnd If\\n\";\r\n\t\t\t}\r\n\t\t\ttestcode += \"\\t\\tConsole.WriteLine()\\n\";\r\n\t\t}\r\n\t\ttestcode += \"\\t\\t<%:end-tests%>\\n\";\r\n\t\ttestcode += \"\\t\\t\\n\\t\\tIf Errors Then\\n\";\r\n\t\ttestcode += \"\\t\\t\\tConsole.WriteLine(\\\"Some of the test cases had errors :-(\\\")\\n\";\r\n\t\ttestcode += \"\\t\\tElse\\n\";\r\n\t\ttestcode += \"\\t\\t\\tConsole.WriteLine(\\\"You're a stud (at least on the test data)! :-D \\\")\\n\";\r\n\t\ttestcode += \"\\t\\tEnd If\\n\";\r\n\t\ttestcode += \"\\tEnd Sub\\n\";\r\n\t\ttestcode += \"End Module\\n\";\r\n\t\ttestcode += \"#End Region\\n\";\r\n\t\treturn testcode;\r\n\t}", "public static void main(String [] args) {\n\t\tScanner s = new Scanner(System.in);\n\t System.out.println(\"Please enter your score\");\n\t\t \n\t int grade = s.nextInt();\n\n\t \tString score = \" \";\n\t\t\tscore= ( grade >= 90 && grade<=100)? \"excellent\"\n\t\t\t\t\t:(grade >= 70 && grade<=89)? \"good\"\n\t\t\t\t\t\t :(grade >= 60 && grade<=69)? \"pass\"\n\t\t\t\t\t\t\t\t :(grade<=60)? \"fail\"\n\t\t\t\t\t\t\t\t\t:\" \"; \t\n\t \n\t\t\tSystem.out.println(score);\n\t\t\t \n\t\t\n\t}", "public void initSourceCode()\r\n\t{\r\n\t\tsc.addCodeLine(\"// Main method. Iterates over all stars. Delegates group finding to addAdjacentStars.\", null, 0, null);\t//0\r\n\t\tsc.addCodeLine(\"public void friendsOfFriends(double linkingLength, Set<Star> stars)\", null, 0, null);\r\n\t\tsc.addCodeLine(\"{\", null, 0, null);\r\n\t\tsc.addCodeLine(\" int groupID = 0;\", null, 0, null);\r\n\t\tsc.addCodeLine(\" \", null, 0, null);\r\n\t\tsc.addCodeLine(\" for(Star current : stars)\", null, 0, null);\t// 5\r\n\t\tsc.addCodeLine(\" {\", null, 0, null);\r\n\t\tsc.addCodeLine(\" if(!current.wasVisited())\", null, 0, null);\r\n\t\tsc.addCodeLine(\" {\", null, 0, null);\r\n\t\tsc.addCodeLine(\" groupID++;\", null, 0, null);\r\n\t\tsc.addCodeLine(\" current.setVisited(true);\", null, 0, null);\r\n\t\tsc.addCodeLine(\" current.group = groupID;\", null, 0, null);\r\n\t\tsc.addCodeLine(\" \", null, 0, null);\r\n\t\tsc.addCodeLine(\" addAdjacentStars(current, groupID, linkingLength, stars);\", null, 0, null);\t// 13\r\n\t\tsc.addCodeLine(\" }\", null, 0, null);\r\n\t\tsc.addCodeLine(\" }\", null, 0, null);\r\n\t\tsc.addCodeLine(\"};\", null, 0, null);\r\n\t\tsc.addCodeLine(\"\", null, 0, null);\r\n\t\tsc.addCodeLine(\"// Helper algorithm for FoF. Calls nearest neighbour search to get all adjacent stars.\", null, 0, null);\r\n\t\tsc.addCodeLine(\"private void addAdjacentStars(Star s, int groupID, double linkingLength, Set<Star> stars)\", null, 0, null);\t\t// 19\r\n\t\tsc.addCodeLine(\"{\", null, 0, null);\r\n\t\tsc.addCodeLine(\" Set<Star> adjacentStars = nearestNeighbourSearch(s, linkingLength, stars);\", null, 0, null);\r\n\t\tsc.addCodeLine(\" \", null, 0, null);\r\n\t\tsc.addCodeLine(\" for(Star current : adjacentStars)\", null, 0, null);\t\t// 23\r\n\t\tsc.addCodeLine(\" {\", null, 0, null);\r\n\t\tsc.addCodeLine(\" if(!current.wasVisited())\", null, 0, null);\r\n\t\tsc.addCodeLine(\" {\", null, 0, null);\r\n\t\tsc.addCodeLine(\" current.setVisited(true);\", null, 0, null);\r\n\t\tsc.addCodeLine(\" current.group = groupID;\", null, 0, null);\r\n\t\tsc.addCodeLine(\" \", null, 0, null);\r\n\t\tsc.addCodeLine(\" addAdjacentStars(current, groupID, linkingLength, stars);\", null, 0, null);\t// 30\r\n\t\tsc.addCodeLine(\" }\", null, 0, null);\r\n\t\tsc.addCodeLine(\" }\", null, 0, null);\r\n\t\tsc.addCodeLine(\"};\", null, 0, null);\r\n\t}", "private static void Firstcommentary() {\n\t\tSystem.out.println(\" Sachin Scored highest Score \");\n\t\t\n\t}", "void actual_test_taker(String name,String rollno){\n File file_of_the_current_student= new File(\"C://Manish//The_Test_Taker//All_Text_files//Student_Record//\"+rollno+\".txt\");\n String subject;\n int chapter;\n\n //This function will read all the values of the instance variable for the quiz.\n get_values(file_of_the_current_student);\n\n //This function will display all the subjects offered to the student based on the semester in which he/she is.\n //and ask the student for the choice of the subject of which he/she wants to take the quiz.\n subject=choose_among_the_subjects_offered();\n\n //This function will display all the chapters offered in a particular subject and ask the student about his/her choice of chapter/s.\n \n chapter=choose_among_the_chapters_of_the_subject(subject,\"SEM_3\");\n if(chapter == -1){\n return;\n }\n \n \n //Now we will open the file of the chapter of the specific subject.\n File quiz_file = new File(\"C://Manish//The_Test_Taker//All_Text_files//Quizes//\"+\"SEM_3\"+\"//\"+subject+\"//\"+subject+\"_CHAPTER0\"+chapter+\".txt\");\n\n //This function will display each question one by one as per the chapter opted for.\n //Also it will store the marks of the student and will keep on calculating the final total marks of that quiz.\n int quiz_marks= taking_test(quiz_file); \n if(quiz_marks==-1){\n return;\n }\n \n //Assigning the corresponding quiz variable it's value after the test.\n switch(subject){\n case \"OOP\":\n OOP[chapter-1]=quiz_marks;\n break;\n case \"DSA\":\n DSA[chapter-1]=quiz_marks;\n break;\n case \"DE\":\n DE[chapter-1]=quiz_marks;\n break;\n }\n total_marks+=quiz_marks;\n average=total_marks/10;\n\n set_values(file_of_the_current_student);\n System.out.println(\"###############################################################################################\");\n System.out.println(\" You completed the test successfully.\");\n System.out.println(\" You got a total score of \"+quiz_marks);\n System.out.println(\"###############################################################################################\");\n //System.out.println(quiz_marks);\n\n \n\n }", "public static void main(String[] args) {\n\t\tint t,b,h;\n\t\tScanner sc= new Scanner(System.in);\n\t\tSystem.out.println(\"enter student type\");\n\t\tString str=sc.next();\n\t\tSystem.out.println(\"enter the tution fee\");\n\t\tt=sc.nextInt();\n\t\tSystem.out.println(\"enter the bus fee\");\n\t\tb=sc.nextInt();\n\t\tSystem.out.println(\"enter the values hostel fee \");\n\t\th=sc.nextInt();\n\t\tswitch(str)\n\t\t{\n\t\tcase \"msds\":System.out.println(t+b);break;\n\t\tcase \"msh\":System.out.println(t+h);break;\n\t\tcase \"mgsds\":System.out.println(150%(t+b));break;\n\t\tcase \"mgsh\":System.out.println(150%(t+h));break;\n\t\t}\n\t\t\n\n\t}", "public static void main(String[] args) {\n Map<String, Character> answers = new HashMap<>();\n try(Scanner scanner = new Scanner(System.in)) {\n long score = QUESTIONS.entrySet().stream()\n .filter(e -> {\n System.out.println(e.getKey());\n while (!scanner.hasNext(Pattern.compile(\"[nyNY]\"))){\n scanner.next();\n }\n answers.put(e.getKey(), scanner.next().toUpperCase().charAt(0));\n return e.getValue().equals(answers.get(e.getKey()));\n })\n .count();\n\n if(score < 4) System.out.println(\"You are a junior Java developer\");\n else if(score < 8) System.out.println(\"You are a medior Java developer\");\n else System.out.println(\"You are a senior Java developer\");\n }\n\t}", "public static void main(String[] args) {\n\n byte minAge = 21;\n short averageSalery = 8650;\n int distanceBEarthMoon = 238855;\n long nationalDebt = 23050442180309L;\n float interestRate = 3.725f;\n double itemPrice = 49.99;\n boolean genderFemale = true;\n char nameInitials = 'F';\n\n System.out.println(\"Minimum legal age to purchase alcholo in USA is: \" + minAge);\n System.out.println(\"Average monthly salary of an automation engineer in NYC is: \" + averageSalery);\n System.out.println(\"Distance between Earth and Moon in miles is: \" + distanceBEarthMoon);\n System.out.println(\"The national debt of the United States in US dollars is: \" + nationalDebt);\n System.out.println(\"The interest rate in Chase bank is: \" + interestRate);\n System.out.println(\"store item price is : \" + itemPrice );\n System.out.println(\"is your gender female : \" + genderFemale);\n System.out.println(\"name initials : \" + nameInitials);\n\n\n }" ]
[ "0.6480145", "0.6423067", "0.6208441", "0.61689335", "0.61151356", "0.61136234", "0.6083664", "0.6078005", "0.6065684", "0.60562336", "0.6028744", "0.59882665", "0.5961206", "0.595874", "0.5952232", "0.5932365", "0.58957183", "0.58950174", "0.5833703", "0.5822997", "0.5815028", "0.5812127", "0.58015674", "0.578083", "0.5775666", "0.5775543", "0.57676435", "0.5755474", "0.5753469", "0.5752645", "0.5752254", "0.57518214", "0.5747041", "0.5742276", "0.57346106", "0.5732979", "0.57120705", "0.5707195", "0.5705381", "0.5703917", "0.56978464", "0.5685274", "0.56849223", "0.5682427", "0.56658506", "0.5658084", "0.56547666", "0.56542534", "0.56540525", "0.5651478", "0.5646167", "0.56360674", "0.5635985", "0.56359047", "0.56144935", "0.5611435", "0.56097263", "0.5605657", "0.5604196", "0.5600559", "0.55977196", "0.55919814", "0.5585303", "0.5580516", "0.5575517", "0.55723834", "0.5567411", "0.5567244", "0.5565904", "0.55654496", "0.55635345", "0.556286", "0.5561458", "0.5560807", "0.55600506", "0.55594754", "0.5558499", "0.55569565", "0.5550663", "0.5550589", "0.55444944", "0.5537332", "0.5534764", "0.55301225", "0.55234265", "0.5520669", "0.5518519", "0.551395", "0.5507826", "0.5503846", "0.550181", "0.5499226", "0.54985696", "0.54978806", "0.5495864", "0.54956186", "0.5495109", "0.5491491", "0.5485999", "0.54859775", "0.5484811" ]
0.0
-1
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof OpmInterval)) { return false; } OpmInterval other = (OpmInterval) object; if ((this.opminvlId == null && other.opminvlId != null) || (this.opminvlId != null && !this.opminvlId.equals(other.opminvlId))) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void setId(int id) { this.id = id; }", "public void setId(int id) { this.id = id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public void setId(long id) { this.id = id; }", "public void setId(long id) { this.id = id; }", "public int getId(){ return id; }", "public int getId() {return id;}", "public int getId() {return Id;}", "public int getId(){return id;}", "public void setId(long id) {\n id_ = id;\n }", "private int getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId(){return id;}", "public int id() {return id;}", "public long getId(){return this.id;}", "public int getId(){\r\n return this.id;\r\n }", "@Override public String getID() { return id;}", "public Long id() { return this.id; }", "public Integer getId() { return id; }", "@Override\n\tpublic Integer getId() {\n return id;\n }", "@Override\n public Long getId () {\n return id;\n }", "@Override\n public long getId() {\n return id;\n }", "public Long getId() {return id;}", "public Long getId() {return id;}", "public String getId(){return id;}", "@Override\r\n\tpublic Long getId() {\n\t\treturn null;\r\n\t}", "public Integer getId() { return this.id; }", "@Override\r\n public int getId() {\n return id;\r\n }", "@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}", "public int getId() {\n return id;\n }", "public long getId() { return _id; }", "public int getId() {\n/* 35 */ return this.id;\n/* */ }", "public long getId() { return id; }", "public long getId() { return id; }", "public void setId(Long id) \n {\n this.id = id;\n }", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "public void setId(String id) {\n this.id = id;\n }", "@Override\n\tpublic void setId(Long id) {\n\t}", "public Long getId() {\n return id;\n }", "public long getId() { return this.id; }", "public int getId()\n {\n return id;\n }", "public void setId(int id){\r\n this.id = id;\r\n }", "protected abstract String getId();", "@Test\r\n\tpublic void testSetId() {\r\n\t\tbreaku1.setId(5);\r\n\t\texternu1.setId(6);\r\n\t\tmeetingu1.setId(7);\r\n\t\tteachu1.setId(8);\r\n\r\n\t\tassertEquals(5, breaku1.getId());\r\n\t\tassertEquals(6, externu1.getId());\r\n\t\tassertEquals(7, meetingu1.getId());\r\n\t\tassertEquals(8, teachu1.getId());\r\n\t}", "@Override\n\tpublic int getId(){\n\t\treturn id;\n\t}", "public String getId() { return id; }", "public String getId() { return id; }", "public String getId() { return id; }", "public int getID() {return id;}", "public int getID() {return id;}", "public int getId ()\r\n {\r\n return id;\r\n }", "@Override\n public int getField(int id) {\n return 0;\n }", "public int getId(){\r\n return localId;\r\n }", "public void setId(Long id)\n/* */ {\n/* 66 */ this.id = id;\n/* */ }", "@Override\n public Integer getId() {\n return id;\n }", "void setId(int id) {\n this.id = id;\n }", "@Override\n\tpublic Object selectById(Object id) {\n\t\treturn null;\n\t}", "@Override\n public int getId() {\n return id;\n }", "@Override\n public int getId() {\n return id;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "public void setId(int id)\n {\n this.id=id;\n }", "@Override\r\n public int getID()\r\n {\r\n\treturn id;\r\n }", "@Override\n\tpublic Integer getId() {\n\t\treturn null;\n\t}", "public int getId()\r\n {\r\n return id;\r\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "public void setId(Long id){\n this.id = id;\n }", "public abstract Long getId();", "final protected int getId() {\n\t\treturn id;\n\t}", "private void clearId() {\n \n id_ = 0;\n }", "public void setId(Long id) \r\n {\r\n this.id = id;\r\n }", "@Override\n public long getId() {\n return this.id;\n }", "public String getId(){ return id.get(); }", "public void setId(long id){\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "@SuppressWarnings ( \"unused\" )\n private void setId ( final Long id ) {\n this.id = id;\n }", "public Long getId() \n {\n return id;\n }", "public void setId(Integer id)\r\n/* */ {\r\n/* 122 */ this.id = id;\r\n/* */ }", "@Override\n\tpublic void setId(int id) {\n\n\t}", "@Override\r\n\tpublic Object getId() {\n\t\treturn null;\r\n\t}", "public void test_getId() {\n assertEquals(\"'id' value should be properly retrieved.\", id, instance.getId());\n }", "public int getId()\n {\n return id;\n }", "public int getID(){\n return id;\n }", "public String getID(){\n return Id;\n }" ]
[ "0.6896072", "0.6839122", "0.6705258", "0.66412854", "0.66412854", "0.65923095", "0.65785074", "0.65785074", "0.65752834", "0.65752834", "0.65752834", "0.65752834", "0.65752834", "0.65752834", "0.6561566", "0.6561566", "0.6545169", "0.6525343", "0.65168375", "0.64885366", "0.6477314", "0.64274967", "0.6420125", "0.6417802", "0.640265", "0.6367859", "0.6355473", "0.6352689", "0.6348769", "0.63258827", "0.63203555", "0.6302521", "0.62946665", "0.62946665", "0.62845194", "0.62724674", "0.62673867", "0.62664896", "0.62628543", "0.62604827", "0.6256597", "0.62518793", "0.6248176", "0.6248176", "0.62445766", "0.6240227", "0.6240227", "0.62322026", "0.6223806", "0.62218046", "0.6220317", "0.6212928", "0.62090635", "0.6203066", "0.6201325", "0.61939746", "0.6190498", "0.6190498", "0.6190498", "0.6189811", "0.6189811", "0.6185415", "0.618307", "0.6175355", "0.6174499", "0.6167348", "0.6167341", "0.61617935", "0.61569077", "0.61569077", "0.61567014", "0.61567014", "0.61567014", "0.61567014", "0.61567014", "0.61567014", "0.61567014", "0.61423147", "0.6134403", "0.6129919", "0.61289775", "0.6105535", "0.6105535", "0.61055124", "0.6103899", "0.6103877", "0.61027", "0.61002946", "0.61002403", "0.609533", "0.609243", "0.609243", "0.60917705", "0.6090932", "0.60905474", "0.60762745", "0.6072683", "0.6072517", "0.6071208", "0.60706896", "0.6070472" ]
0.0
-1
TODO Autogenerated method stub
@Override public void closeConnection() { }
{ "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
Get Resource Url for GetWishlistItem
public static MozuUrl getWishlistItemUrl(String responseFields, String wishlistId, String wishlistItemId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}?responseFields={responseFields}"); formatter.formatUrl("responseFields", responseFields); formatter.formatUrl("wishlistId", wishlistId); formatter.formatUrl("wishlistItemId", wishlistItemId); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static MozuUrl getWishlistItemsUrl(String filter, Integer pageSize, String responseFields, String sortBy, Integer startIndex, String wishlistId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items?startIndex={startIndex}&pageSize={pageSize}&sortBy={sortBy}&filter={filter}&responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"filter\", filter);\r\n\t\tformatter.formatUrl(\"pageSize\", pageSize);\r\n\t\tformatter.formatUrl(\"responseFields\", responseFields);\r\n\t\tformatter.formatUrl(\"sortBy\", sortBy);\r\n\t\tformatter.formatUrl(\"startIndex\", startIndex);\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "java.lang.String getBookingURL();", "public static MozuUrl getWishlistItemsByWishlistNameUrl(Integer customerAccountId, String filter, Integer pageSize, String responseFields, String sortBy, Integer startIndex, String wishlistName)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/customers/{customerAccountId}/{wishlistName}/items?startIndex={startIndex}&pageSize={pageSize}&sortBy={sortBy}&filter={filter}&responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"customerAccountId\", customerAccountId);\r\n\t\tformatter.formatUrl(\"filter\", filter);\r\n\t\tformatter.formatUrl(\"pageSize\", pageSize);\r\n\t\tformatter.formatUrl(\"responseFields\", responseFields);\r\n\t\tformatter.formatUrl(\"sortBy\", sortBy);\r\n\t\tformatter.formatUrl(\"startIndex\", startIndex);\r\n\t\tformatter.formatUrl(\"wishlistName\", wishlistName);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "public static MozuUrl updateWishlistItemUrl(String responseFields, String wishlistId, String wishlistItemId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}?responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"responseFields\", responseFields);\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\tformatter.formatUrl(\"wishlistItemId\", wishlistItemId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "private void getWishListInfo(final long productId) {\n User user = SettingsMy.getActiveUser();\n if (user != null) {\n // determine if product is in wishlist\n //String wishlistUrl = String.format(EndPoints.WISHLIST_IS_IN_WISHLIST, SettingsMy.getActualNonNullShop(getActivity()).getId(), productId);\n String wishlistUrl = String.format(EndPoints.WISHLIST);\n GsonRequest<WishlistResponse> getWishlistInfo = new GsonRequest<WishlistResponse>(Request.Method.GET, wishlistUrl, null, WishlistResponse.class, new Response.Listener<WishlistResponse>() {\n @Override\n public void onResponse(@NonNull WishlistResponse response) {\n if(response != null) {\n if(response.getStatusText() != null && response.getStatusCode() != null) {\n if (response.getStatusCode().toLowerCase().equals(CONST.RESPONSE_CODE) || response.getStatusText().toLowerCase().equals(CONST.RESPONSE_UNAUTHORIZED)) {\n LoginDialogFragment.logoutUser(true);\n DialogFragment loginExpiredDialogFragment = new LoginExpiredDialogFragment();\n loginExpiredDialogFragment.show(getFragmentManager(), LoginExpiredDialogFragment.class.getSimpleName());\n }\n }\n else\n prepareWishListButton(response, productId);\n }\n else\n Timber.d(\"returned null response during getWishListInfo\");\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n MsgUtils.logAndShowErrorMessage(getActivity(), error);\n }\n }, getFragmentManager(), \"\");\n getWishlistInfo.setRetryPolicy(MyApplication.getDefaultRetryPolice());\n getWishlistInfo.setShouldCache(false);\n MyApplication.getInstance().addToRequestQueue(getWishlistInfo, CONST.PRODUCT_REQUESTS_TAG);\n }\n }", "public static MozuUrl addItemToWishlistUrl(String responseFields, String wishlistId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items?responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"responseFields\", responseFields);\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "public static URL getUrlForGetAppList()\r\n {\r\n String idCountry = P.getCountryId(); \r\n String strUrl = getBaseURL() +\"account_services/api/1.0/static_content/apps/client_type/3/country_code/\"+idCountry+\"/language_code/\"+\r\n \t\tA.getContext().getString( R.string.backend_language_code );\r\n return str2url( strUrl );\r\n }", "@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/GuardarSustento\";\r\n\t}", "public static MozuUrl deleteWishlistItemUrl(String wishlistId, String wishlistItemId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}\");\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\tformatter.formatUrl(\"wishlistItemId\", wishlistItemId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "private String getURL() {\n\t\t// TODO : Generate URL\n\t\treturn null;\n\t}", "public void requestWishList() {\n if (!hasInternetConnection()) {\n PromeetsDialog.show(this, getString(R.string.no_internet));\n } else {\n UserPOJO userPOJO = (UserPOJO) PromeetsUtils.getUserData(PromeetsPreferenceUtil.USER_OBJECT_KEY, UserPOJO.class);\n if (userPOJO == null) finish();\n String[] key = {Constant.USERID, Constant.PAGENUMBER};\n String[] value = {userPOJO.id + \"\", page + \"\"};\n\n PromeetsDialog.showProgress(this);\n HashMap<String, String> header = new HashMap<>();\n header.put(\"ptimestamp\", ServiceHeaderGeneratorUtil.getInstance().getPTimeStamp());\n header.put(\"promeetsT\", ServiceHeaderGeneratorUtil.getInstance().getPromeetsTHeader(Constant.FETCH_MY_WISH_LIST));\n header.put(\"accessToken\", ServiceHeaderGeneratorUtil.getInstance().getAccessToken());\n header.put(\"API_VERSION\", Utility.getVersionCode());\n new GenericServiceHandler(Constant.ServiceType.WISH_LIST, this, PromeetsUtils.buildURL(Constant.FETCH_MY_WISH_LIST, key, value), null, header, IServiceResponseHandler.GET, false, \"Please wait!\", \"Processing..\").execute();\n }\n }", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "@Schema(description = \"Link to get this item\")\n public String getUrl() {\n return url;\n }", "@XmlElement\r\n\tpublic String getMyUrl() {\r\n\t\tString ret = null;\r\n\t\tif (null != getId()) {\r\n\t\t\tret = String.format(\"%s/category/%s-%s\", SuperContainer.BaseUrl, getId() + \"\", getUrl());\r\n\t\t\t\r\n\t\t\t// Always add html to the end\r\n\t\t\tif(!getUrl().endsWith(\".html\")) {\r\n\t\t\t\tret = ret + \".html\";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn ret;\r\n\t}", "public URL getURL()\n/* */ {\n/* 135 */ return ResourceUtils.getResourceAsURL(this, this);\n/* */ }", "public static MozuUrl removeAllWishlistItemsUrl(String wishlistId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items\");\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "public String getUrl();", "public String getUrl();", "public String getUrl();", "public String getUrl();", "@Override\r\n public String getFriendlyURI() {\r\n return createURI(false, false);\r\n }", "public String getRelatedProductsURL(Context context){\n return this.getURL(context.getResources().getString(R.string.related_products))+\"&product_id=%1$s\";\n }", "@java.lang.Override\n public java.lang.String getUrl() {\n return instance.getUrl();\n }", "@java.lang.Override\n public java.lang.String getUrl() {\n return instance.getUrl();\n }", "@Override\n\tpublic String getUrl()\n\t{\n\t\treturn url;\n\t}", "private String getUriForSelf(UriInfo uriInfo,OrderRepresentation ordRep){\r\n\t\tString url = uriInfo.getBaseUriBuilder()\r\n\t\t\t\t\t\t\t.path(OrderResource.class)\r\n\t\t\t\t\t\t\t.path(\"order\")\r\n\t\t\t\t\t\t\t.path(\"Order_ID\" +ordRep.getOrderID())\r\n\t\t\t\t\t\t\t.build()\r\n\t\t\t\t\t\t\t.toString();\r\n\t\treturn url;\r\n\t\t\r\n\t}", "public String getResourceUrl() {\n return this.resourceUrl;\n }", "public String getResourceUrl() {\n\t\treturn resourceUrl;\n\t}", "private String getPingUri() {\n\t\treturn BASE_URI + \"?_wadl\";\n\t}", "protected abstract String getUrl();", "public String getOrderItemUrl() {\n return orderItemUrl;\n }", "String getURL(FsItem f);", "public WishlistItem getWishlistItem(String wishID){\n\n //Get a document reference to the item\n DocumentReference docRef = fStore.collection(\"user_profiles\").document(fUser.getUid()).collection(\"wishlist\").document(wishID);\n\n //Get snapshot of document and change into Wishlist item and return value\n docRef.get().addOnSuccessListener(new OnSuccessListener<DocumentSnapshot>() {\n @Override\n public void onSuccess(DocumentSnapshot documentSnapshot) {\n returnItem = documentSnapshot.toObject(WishlistItem.class);\n }\n });\n\n if(returnItem == null){\n //returnItem = new WishlistItem(0,\"Null\",\"Null\",\"Null\");\n }\n\n return returnItem;\n }", "java.lang.String getCouponIconUrl();", "String getRequestedUrl();", "java.lang.String getApiUrl();", "String getUrl();", "String getUrl();", "String getUrl();", "String getUrl();", "String getUrl();", "String getLearnMoreHelpPageUrl();", "public String getURL();", "@Override\r\n\tpublic String getUrl() {\n\t\treturn null;\r\n\t}", "@Nullable\n public abstract String url();", "java.lang.String getResourceUri();", "URL getWuicXmlPath() {\n return wuicXmlPath;\n }", "public String setUrl() throws JSONException {\n url = baseUrl + searchName;\n for(int i = 0; i < typesCheckList.size(); i++) {\n if(typesObj.has(typesCheckList.get(i))){\n url += typesObj.getString(typesCheckList.get(i));\n }\n }\n if(V)System.out.println(url);\n return url;\n }", "@Override\r\n public String getUrl()\r\n {\n return null;\r\n }", "public String getUrlForSharing() {\n PostData pd = getAdapter().getPost(mPager.getCurrentItem());\n return pd.getUrl();\n }", "@Override\n\tpublic String buidWfsURL(WrapperFilter filter) {\n\t\treturn null;\n\t}", "public static URL getUrlForPolicySync(){\r\n\t\tString strUrl = getBaseURL() + \"mip_services/core/api/1.0/policy\";\r\n\t\treturn str2url(strUrl);\r\n\t}", "public String getApiUrl();", "public abstract String getUrl();", "public String getUrlForGradebookItemHelper(Long gradeableObjectId,\n String gradebookItemName, String returnViewId, String contextId, Date dueDate)\n {\n return null;\n }", "public void clickWishlistLink()\n\t{\n \telementUtils.performElementClick(wbWishlistLink);\n\t}", "public String getBonusUrl() {\n return bonusUrl;\n }", "@Override\n\tprotected String getWebServiceUri() {\n\t\treturn this.uri;\n\t}", "String getSpecUrl();", "@POST\n\t@Path(\"/getWishlist\")\n\t@Consumes(\"application/json\")\n\t@Produces(\"application/json\")\n\tpublic String getWishlist(WishlistProduct user_data) {\n\t\t\n\t\tWishlistProductDAO WishlistProductDao = new WishlistProductDAO();\n\t\tList<WishlistProduct> wishlistedProducts = WishlistProductDao.getWishlistProductsByWishlistID(user_data.getWishlist_id());\n\t\t\n\t\tWishlistDAO WishlistDao = new WishlistDAO();\n\t\tWishlist wishlist = WishlistDao.getWishlistDetailsByID(user_data.getWishlist_id());\n\t\t\n\t\tJSONArray products = new JSONArray();\n\t\t\n\t\tfor(int i=0; i<wishlistedProducts.size();i++)\n\t\t{\n\t\t\tJSONObject product = new JSONObject();\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tproduct.put(\"wishlist_name\", wishlist.getName());\n\t\t\t\tproduct.put(\"req_qty\", wishlistedProducts.get(i).getQuantity());\n\t\t\t\tproduct.put(\"remaining_qty\", wishlistedProducts.get(i).getRemaining_qty());\n\t\t\t\tproduct.put(\"address\", wishlistedProducts.get(i).getAddress());\n\t\t\t\tproduct.put(\"reason\", wishlistedProducts.get(i).getReason());\n\t\t\t\t\t\n\t\t\t\tCatalogDAO CatalogDao = new CatalogDAO();\n\t\t\t\tCatalog productDetails = CatalogDao.getProductByID(wishlistedProducts.get(i).getProduct_id());\n\t\t\t\t\n\t\t\t\tproduct.put(\"product_id\", productDetails.getProduct_id());\n\t\t\t\tproduct.put(\"product_name\", productDetails.getProduct_name());\n\t\t\t\tproduct.put(\"product_qty\", productDetails.getQuantity());\n\t\t\t\tproduct.put(\"brand\", productDetails.getBrand());\n\t\t\t\tproduct.put(\"description\", productDetails.getDescription());\n\t\t\t\tproduct.put(\"price\", productDetails.getPrice());\n\t\t\t\tproduct.put(\"pic_location\", productDetails.getPic_location());\n\t\t\t\t\n\t\t\t\tproducts.put(product);\n\t\t\t\t\n\t\t\t}\n\t\t\tcatch (JSONException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} \n\t\t}\n\t\t\n\t\treturn products.toString();\n\t\t\n\t}", "String webSocketUri();", "String getPreviewUrlTemplate();", "public String getResourceurl() {\n return resourceurl;\n }", "String getQueryResultsUrl();", "private String getResourcePath() {\n\t\tString reqResource = getRequest().getResourceRef().getPath();\n\t\treqResource = actualPath(reqResource, 1);\n\t\tLOGGERS.info(\"reqResourcePath---->\" + reqResource);\n\t\treturn reqResource;\n\t}", "public String getSiteUrl();", "public MethodLinkBuilderFactory<GamesItemThymeleafController> getItemLink() {\n return itemLink;\n }", "@Override\r\n public List<String> buildRequestUrl(String resource, Endpoint endpoint) {\r\n //log = LoggerFactory.getLogger(ScopusAuthorSearchProvider.class);\r\n namespaceDC = Namespace.getNamespace(\"dc\", \"http://purl.org/dc/elements/1.1/\");\r\n namespacePRISM = Namespace.getNamespace(\"prism\", \"http://prismstandard.org/namespaces/basic/2.0/\");\r\n namespaceATOM = Namespace.getNamespace(\"atom\", \"http://www.w3.org/2005/Atom\");\r\n String url = null;\r\n Matcher m = Pattern.compile(PATTERN).matcher(resource);\r\n if (m.find()) {\r\n url = resource;\r\n apiKeyParam = m.group(4);\r\n } else {\r\n Preconditions.checkState(StringUtils.isNotBlank(resource));\r\n String id = resource.substring(resource.lastIndexOf('/') + 1);\r\n url = String.format(API, id.replace('_', '+'));\r\n }\r\n return Collections.singletonList(url);\r\n }", "Uri getUrl();", "String getServiceUrl();", "private String getUriForAdd(UriInfo uriInfo, OrderRepresentation ordRep) {\r\n\t\tString url = uriInfo.getBaseUriBuilder()\r\n\t\t\t\t.path(OrderResource.class)\r\n\t\t\t\t.path(\"order\")\r\n\t\t\t\t.build()\r\n\t\t\t\t.toString();\r\n\t\treturn url;\r\n\t}", "public URI getHref() {\n return entityLinks.linkForItemResource(Hunt.class, id).toUri();\n }", "public Integer getId() {\n\t\treturn wishlistItemId;\n\t}", "public List<Integer> getWishList() {\n\t\treturn wishList;\n\t}", "public HashMap<String, ProductDTO> displayProductInWishlist() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\treturn WishlistDaoImpl.wlist ;\n\t}", "public static Integer getWishListNumber() {\n return wishListNumber;\n }", "public String getResourceOWL()\r\n {\r\n return getSemanticObject().getProperty(swb_resourceOWL);\r\n }", "String getUrl(String key);", "@ZAttr(id=675)\n public String getHelpDelegatedURL() {\n return getAttr(Provisioning.A_zimbraHelpDelegatedURL, null);\n }", "protected void handleRestlessPath(UrlMappingResource resource, List<String> elementList) {\n }", "@Override\r\n\tprotected String getUrl() {\n\t\tif(tipo==PROFIT_DATOS_COMERCIALES){\r\n\t\t\treturn urlWS + \"/ProfitResumen\";\r\n\t\t}else{\r\n\t\t\treturn urlWS + \"/ProfitDataAdicional\";\r\n\t\t}\r\n\t}", "public String getThumbnailUrl();", "public final native String getUrl() /*-{\n return this.getUrl();\n }-*/;", "public String generateURL(XYDataset dataset, int series, int item) { return getURL(series, item); }", "public static String getPlaylistUrl(String stationName){\n\t\tString entry = JSON.getString(radioStationsPlaylist, stationName);\n\t\treturn entry;\n\t}", "String getJoinUrl();", "protected String getListingParameter() {\n if (!isMono) {\n return listing ? \"/listing\" : \"/nolisting\";\n }\n return null;\n }", "public String getItemURL() {\n String shownAt = jsonParent.getString(\"isShownAt\");\n println(shownAt);\n return shownAt;\n }", "public final String getUrl() {\n return properties.get(URL_PROPERTY);\n }", "java.lang.String getPaymentUrl();", "public abstract String getURL();", "@POST\n\t@Path(\"/getSharedWishlists/{id}\")\n\t@Produces(\"application/json\")\n\tpublic String getSharedWishlists(@PathParam(\"id\") String fullfiller_id) throws JSONException{\n\t\t\n\t\tWishlistFullfillersDAO wfdao = new WishlistFullfillersDAO();\n\t\tArrayList<Integer> wishlists = wfdao.getWishlistsByFullfillerID(fullfiller_id);\n\t\tJSONArray result = new JSONArray();\n\t\t\n\t\tif(wishlists!=null) {\n\t\t\tfor(int i=0; i<wishlists.size();i++) {\n\t\t\t\tJSONObject details = new JSONObject();\n\t\t\t\tdetails.put(\"wishlist_id\", wishlists.get(i));\n\t\t\t\t\n\t\t\t\tWishlistDAO wdao = new WishlistDAO();\n\t\t\t\tWishlist wishlist = wdao.getWishlistDetailsByID(wishlists.get(i));\n\t\t\t\t\n\t\t\t\tif(wishlist.getStatus().equals(\"ONGOING\")) {\n\t\t\t\t\tdetails.put(\"wishlist_name\", wishlist.getName());\n\t\t\t\t\tdetails.put(\"creator_id\", wishlist.getCreator_id());\n\t\t\t\t\t\n\t\t\t\t\tCustomerDAO cdao = new CustomerDAO();\n\t\t\t\t\tCustomer customer = cdao.getCustomerByID(wishlist.getCreator_id());\n\t\t\t\t\tdetails.put(\"creator_name\", customer.getName());\n\t\n\t\t\t\t\tresult.put(details);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn result.toString();\n\t\t}\n\t\treturn null;\n\t}", "public String getPreViewUrl();", "@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/ConsultarIndiceEjecucionAnio\";\r\n\t}", "String getServerUrl();" ]
[ "0.61158705", "0.59948957", "0.588144", "0.57442474", "0.5559026", "0.55278933", "0.55152637", "0.5488892", "0.5480906", "0.5467153", "0.54418933", "0.54113805", "0.54113805", "0.54113805", "0.54113805", "0.54113805", "0.54113805", "0.54097027", "0.53967434", "0.53821206", "0.53760237", "0.5340883", "0.5340883", "0.5340883", "0.5340883", "0.5338224", "0.5326262", "0.5304478", "0.5304478", "0.53001535", "0.5297237", "0.5295135", "0.52728647", "0.52476716", "0.52423465", "0.5242119", "0.52269584", "0.5226424", "0.5195864", "0.51861334", "0.5186132", "0.51729584", "0.51729584", "0.51729584", "0.51729584", "0.51729584", "0.5172631", "0.5155534", "0.5147636", "0.51265174", "0.5124829", "0.51179343", "0.5117357", "0.5107486", "0.51009583", "0.509996", "0.5092189", "0.507703", "0.50676244", "0.5065508", "0.5061137", "0.50530416", "0.5049742", "0.50428724", "0.50259715", "0.5023492", "0.50217295", "0.50150585", "0.5014029", "0.50093335", "0.500814", "0.5001191", "0.5000884", "0.49993148", "0.4991944", "0.49797425", "0.49793595", "0.49787477", "0.49780557", "0.49775338", "0.4975209", "0.49724913", "0.49663585", "0.49632052", "0.4959564", "0.49593064", "0.49569625", "0.49461022", "0.49354452", "0.492877", "0.49259397", "0.491842", "0.49145094", "0.49061352", "0.49044454", "0.49037024", "0.48971286", "0.48969904", "0.48801425", "0.4871153" ]
0.7181582
0
Get Resource Url for GetWishlistItems
public static MozuUrl getWishlistItemsUrl(String filter, Integer pageSize, String responseFields, String sortBy, Integer startIndex, String wishlistId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/wishlists/{wishlistId}/items?startIndex={startIndex}&pageSize={pageSize}&sortBy={sortBy}&filter={filter}&responseFields={responseFields}"); formatter.formatUrl("filter", filter); formatter.formatUrl("pageSize", pageSize); formatter.formatUrl("responseFields", responseFields); formatter.formatUrl("sortBy", sortBy); formatter.formatUrl("startIndex", startIndex); formatter.formatUrl("wishlistId", wishlistId); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static MozuUrl getWishlistItemUrl(String responseFields, String wishlistId, String wishlistItemId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}?responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"responseFields\", responseFields);\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\tformatter.formatUrl(\"wishlistItemId\", wishlistItemId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "public static MozuUrl getWishlistItemsByWishlistNameUrl(Integer customerAccountId, String filter, Integer pageSize, String responseFields, String sortBy, Integer startIndex, String wishlistName)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/customers/{customerAccountId}/{wishlistName}/items?startIndex={startIndex}&pageSize={pageSize}&sortBy={sortBy}&filter={filter}&responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"customerAccountId\", customerAccountId);\r\n\t\tformatter.formatUrl(\"filter\", filter);\r\n\t\tformatter.formatUrl(\"pageSize\", pageSize);\r\n\t\tformatter.formatUrl(\"responseFields\", responseFields);\r\n\t\tformatter.formatUrl(\"sortBy\", sortBy);\r\n\t\tformatter.formatUrl(\"startIndex\", startIndex);\r\n\t\tformatter.formatUrl(\"wishlistName\", wishlistName);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "public void requestWishList() {\n if (!hasInternetConnection()) {\n PromeetsDialog.show(this, getString(R.string.no_internet));\n } else {\n UserPOJO userPOJO = (UserPOJO) PromeetsUtils.getUserData(PromeetsPreferenceUtil.USER_OBJECT_KEY, UserPOJO.class);\n if (userPOJO == null) finish();\n String[] key = {Constant.USERID, Constant.PAGENUMBER};\n String[] value = {userPOJO.id + \"\", page + \"\"};\n\n PromeetsDialog.showProgress(this);\n HashMap<String, String> header = new HashMap<>();\n header.put(\"ptimestamp\", ServiceHeaderGeneratorUtil.getInstance().getPTimeStamp());\n header.put(\"promeetsT\", ServiceHeaderGeneratorUtil.getInstance().getPromeetsTHeader(Constant.FETCH_MY_WISH_LIST));\n header.put(\"accessToken\", ServiceHeaderGeneratorUtil.getInstance().getAccessToken());\n header.put(\"API_VERSION\", Utility.getVersionCode());\n new GenericServiceHandler(Constant.ServiceType.WISH_LIST, this, PromeetsUtils.buildURL(Constant.FETCH_MY_WISH_LIST, key, value), null, header, IServiceResponseHandler.GET, false, \"Please wait!\", \"Processing..\").execute();\n }\n }", "public static MozuUrl removeAllWishlistItemsUrl(String wishlistId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items\");\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "public static MozuUrl updateWishlistItemUrl(String responseFields, String wishlistId, String wishlistItemId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}?responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"responseFields\", responseFields);\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\tformatter.formatUrl(\"wishlistItemId\", wishlistItemId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "private void getWishListInfo(final long productId) {\n User user = SettingsMy.getActiveUser();\n if (user != null) {\n // determine if product is in wishlist\n //String wishlistUrl = String.format(EndPoints.WISHLIST_IS_IN_WISHLIST, SettingsMy.getActualNonNullShop(getActivity()).getId(), productId);\n String wishlistUrl = String.format(EndPoints.WISHLIST);\n GsonRequest<WishlistResponse> getWishlistInfo = new GsonRequest<WishlistResponse>(Request.Method.GET, wishlistUrl, null, WishlistResponse.class, new Response.Listener<WishlistResponse>() {\n @Override\n public void onResponse(@NonNull WishlistResponse response) {\n if(response != null) {\n if(response.getStatusText() != null && response.getStatusCode() != null) {\n if (response.getStatusCode().toLowerCase().equals(CONST.RESPONSE_CODE) || response.getStatusText().toLowerCase().equals(CONST.RESPONSE_UNAUTHORIZED)) {\n LoginDialogFragment.logoutUser(true);\n DialogFragment loginExpiredDialogFragment = new LoginExpiredDialogFragment();\n loginExpiredDialogFragment.show(getFragmentManager(), LoginExpiredDialogFragment.class.getSimpleName());\n }\n }\n else\n prepareWishListButton(response, productId);\n }\n else\n Timber.d(\"returned null response during getWishListInfo\");\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n MsgUtils.logAndShowErrorMessage(getActivity(), error);\n }\n }, getFragmentManager(), \"\");\n getWishlistInfo.setRetryPolicy(MyApplication.getDefaultRetryPolice());\n getWishlistInfo.setShouldCache(false);\n MyApplication.getInstance().addToRequestQueue(getWishlistInfo, CONST.PRODUCT_REQUESTS_TAG);\n }\n }", "public static URL getUrlForGetAppList()\r\n {\r\n String idCountry = P.getCountryId(); \r\n String strUrl = getBaseURL() +\"account_services/api/1.0/static_content/apps/client_type/3/country_code/\"+idCountry+\"/language_code/\"+\r\n \t\tA.getContext().getString( R.string.backend_language_code );\r\n return str2url( strUrl );\r\n }", "public static MozuUrl addItemToWishlistUrl(String responseFields, String wishlistId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items?responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"responseFields\", responseFields);\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "java.lang.String getBookingURL();", "@POST\n\t@Path(\"/getWishlist\")\n\t@Consumes(\"application/json\")\n\t@Produces(\"application/json\")\n\tpublic String getWishlist(WishlistProduct user_data) {\n\t\t\n\t\tWishlistProductDAO WishlistProductDao = new WishlistProductDAO();\n\t\tList<WishlistProduct> wishlistedProducts = WishlistProductDao.getWishlistProductsByWishlistID(user_data.getWishlist_id());\n\t\t\n\t\tWishlistDAO WishlistDao = new WishlistDAO();\n\t\tWishlist wishlist = WishlistDao.getWishlistDetailsByID(user_data.getWishlist_id());\n\t\t\n\t\tJSONArray products = new JSONArray();\n\t\t\n\t\tfor(int i=0; i<wishlistedProducts.size();i++)\n\t\t{\n\t\t\tJSONObject product = new JSONObject();\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tproduct.put(\"wishlist_name\", wishlist.getName());\n\t\t\t\tproduct.put(\"req_qty\", wishlistedProducts.get(i).getQuantity());\n\t\t\t\tproduct.put(\"remaining_qty\", wishlistedProducts.get(i).getRemaining_qty());\n\t\t\t\tproduct.put(\"address\", wishlistedProducts.get(i).getAddress());\n\t\t\t\tproduct.put(\"reason\", wishlistedProducts.get(i).getReason());\n\t\t\t\t\t\n\t\t\t\tCatalogDAO CatalogDao = new CatalogDAO();\n\t\t\t\tCatalog productDetails = CatalogDao.getProductByID(wishlistedProducts.get(i).getProduct_id());\n\t\t\t\t\n\t\t\t\tproduct.put(\"product_id\", productDetails.getProduct_id());\n\t\t\t\tproduct.put(\"product_name\", productDetails.getProduct_name());\n\t\t\t\tproduct.put(\"product_qty\", productDetails.getQuantity());\n\t\t\t\tproduct.put(\"brand\", productDetails.getBrand());\n\t\t\t\tproduct.put(\"description\", productDetails.getDescription());\n\t\t\t\tproduct.put(\"price\", productDetails.getPrice());\n\t\t\t\tproduct.put(\"pic_location\", productDetails.getPic_location());\n\t\t\t\t\n\t\t\t\tproducts.put(product);\n\t\t\t\t\n\t\t\t}\n\t\t\tcatch (JSONException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} \n\t\t}\n\t\t\n\t\treturn products.toString();\n\t\t\n\t}", "public static MozuUrl deleteWishlistItemUrl(String wishlistId, String wishlistItemId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}\");\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\tformatter.formatUrl(\"wishlistItemId\", wishlistItemId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "public String getOrderItemUrl() {\n return orderItemUrl;\n }", "public List<Integer> getWishList() {\n\t\treturn wishList;\n\t}", "public List<ShelfItem> getAllWishlist(String filter, String username, Integer from, Integer to);", "public String getRelatedProductsURL(Context context){\n return this.getURL(context.getResources().getString(R.string.related_products))+\"&product_id=%1$s\";\n }", "@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/GuardarSustento\";\r\n\t}", "public String setUrl() throws JSONException {\n url = baseUrl + searchName;\n for(int i = 0; i < typesCheckList.size(); i++) {\n if(typesObj.has(typesCheckList.get(i))){\n url += typesObj.getString(typesCheckList.get(i));\n }\n }\n if(V)System.out.println(url);\n return url;\n }", "private String getPingUri() {\n\t\treturn BASE_URI + \"?_wadl\";\n\t}", "@XmlElement\r\n\tpublic String getMyUrl() {\r\n\t\tString ret = null;\r\n\t\tif (null != getId()) {\r\n\t\t\tret = String.format(\"%s/category/%s-%s\", SuperContainer.BaseUrl, getId() + \"\", getUrl());\r\n\t\t\t\r\n\t\t\t// Always add html to the end\r\n\t\t\tif(!getUrl().endsWith(\".html\")) {\r\n\t\t\t\tret = ret + \".html\";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn ret;\r\n\t}", "@Schema(description = \"Link to get this item\")\n public String getUrl() {\n return url;\n }", "java.lang.String getCouponIconUrl();", "public static Integer getWishListNumber() {\n return wishListNumber;\n }", "public Integer getId() {\n\t\treturn wishlistItemId;\n\t}", "@POST\n\t@Path(\"/getSharedWishlists/{id}\")\n\t@Produces(\"application/json\")\n\tpublic String getSharedWishlists(@PathParam(\"id\") String fullfiller_id) throws JSONException{\n\t\t\n\t\tWishlistFullfillersDAO wfdao = new WishlistFullfillersDAO();\n\t\tArrayList<Integer> wishlists = wfdao.getWishlistsByFullfillerID(fullfiller_id);\n\t\tJSONArray result = new JSONArray();\n\t\t\n\t\tif(wishlists!=null) {\n\t\t\tfor(int i=0; i<wishlists.size();i++) {\n\t\t\t\tJSONObject details = new JSONObject();\n\t\t\t\tdetails.put(\"wishlist_id\", wishlists.get(i));\n\t\t\t\t\n\t\t\t\tWishlistDAO wdao = new WishlistDAO();\n\t\t\t\tWishlist wishlist = wdao.getWishlistDetailsByID(wishlists.get(i));\n\t\t\t\t\n\t\t\t\tif(wishlist.getStatus().equals(\"ONGOING\")) {\n\t\t\t\t\tdetails.put(\"wishlist_name\", wishlist.getName());\n\t\t\t\t\tdetails.put(\"creator_id\", wishlist.getCreator_id());\n\t\t\t\t\t\n\t\t\t\t\tCustomerDAO cdao = new CustomerDAO();\n\t\t\t\t\tCustomer customer = cdao.getCustomerByID(wishlist.getCreator_id());\n\t\t\t\t\tdetails.put(\"creator_name\", customer.getName());\n\t\n\t\t\t\t\tresult.put(details);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn result.toString();\n\t\t}\n\t\treturn null;\n\t}", "public HashMap<String, ProductDTO> displayProductInWishlist() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\treturn WishlistDaoImpl.wlist ;\n\t}", "@GET\n @Path(\"itemlist\")\n @Produces(MediaType.TEXT_PLAIN)\n public String getItemList(@QueryParam(\"jsonpcallback\") String jsonpcallback) {\n return jsonpcallback + \"(\" + is.getAllItems().toJSONString() + \")\";\n }", "@Override\r\n public String getFriendlyURI() {\r\n return createURI(false, false);\r\n }", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "URL getWuicXmlPath() {\n return wuicXmlPath;\n }", "public String getUrl();", "public String getUrl();", "public String getUrl();", "public String getUrl();", "public void clickWishlistLink()\n\t{\n \telementUtils.performElementClick(wbWishlistLink);\n\t}", "private String getUriForSelf(UriInfo uriInfo,OrderRepresentation ordRep){\r\n\t\tString url = uriInfo.getBaseUriBuilder()\r\n\t\t\t\t\t\t\t.path(OrderResource.class)\r\n\t\t\t\t\t\t\t.path(\"order\")\r\n\t\t\t\t\t\t\t.path(\"Order_ID\" +ordRep.getOrderID())\r\n\t\t\t\t\t\t\t.build()\r\n\t\t\t\t\t\t\t.toString();\r\n\t\treturn url;\r\n\t\t\r\n\t}", "@java.lang.Override\n public java.lang.String getUrl() {\n return instance.getUrl();\n }", "@java.lang.Override\n public java.lang.String getUrl() {\n return instance.getUrl();\n }", "private String getURL() {\n\t\t// TODO : Generate URL\n\t\treturn null;\n\t}", "public WishlistItem getWishlistItem(String wishID){\n\n //Get a document reference to the item\n DocumentReference docRef = fStore.collection(\"user_profiles\").document(fUser.getUid()).collection(\"wishlist\").document(wishID);\n\n //Get snapshot of document and change into Wishlist item and return value\n docRef.get().addOnSuccessListener(new OnSuccessListener<DocumentSnapshot>() {\n @Override\n public void onSuccess(DocumentSnapshot documentSnapshot) {\n returnItem = documentSnapshot.toObject(WishlistItem.class);\n }\n });\n\n if(returnItem == null){\n //returnItem = new WishlistItem(0,\"Null\",\"Null\",\"Null\");\n }\n\n return returnItem;\n }", "@Override\n\tprotected String getWebServiceUri() {\n\t\treturn this.uri;\n\t}", "@Override\n\tpublic String getUrl()\n\t{\n\t\treturn url;\n\t}", "@Path(\"showitem\")\n @GET\n @Produces(MediaType.TEXT_PLAIN)\n public String getItem(@QueryParam(\"jsonpcallback\") String jsonpcallback) {\n return jsonpcallback + \"(\" + is.getAllItems().toJSONString() + \")\";\n }", "String getQueryResultsUrl();", "public List<Wish> getAllWishes() {\n List<Wish> wishes = new ArrayList<Wish>();\n String selectQuery = \"SELECT * FROM \" + TABLE_WISH;\n\n Log.e(LOG, selectQuery);\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (c.moveToFirst()) {\n do {\n Wish wh = new Wish();\n wh.setId(c.getLong((c.getColumnIndex(KEY_ID))));\n wh.setWishName((c.getString(c.getColumnIndex(KEY_WISHNAME))));\n wh.setStatus(c.getInt(c.getColumnIndex(KEY_STATUS)));\n\n // adding to wish list\n wishes.add(wh);\n } while (c.moveToNext());\n }\n c.close();\n return wishes;\n }", "String getLearnMoreHelpPageUrl();", "protected abstract String getUrl();", "public String getResourceUrl() {\n return this.resourceUrl;\n }", "public URL getURL()\n/* */ {\n/* 135 */ return ResourceUtils.getResourceAsURL(this, this);\n/* */ }", "protected void handleRestlessPath(UrlMappingResource resource, List<String> elementList) {\n }", "public String getResourceUrl() {\n\t\treturn resourceUrl;\n\t}", "String webSocketUri();", "public ArrayList<ProductDetail> readAllWishlist() {\n db = helper.getReadableDatabase();\n ArrayList<ProductDetail> list = new ArrayList<>();\n Cursor cursor = db.rawQuery(\"select * from \" + DatabaseConstant.TABLE_NAME_WISHLIST, null);\n while (cursor.moveToNext()) {\n String id = cursor.getString(0);\n String title = cursor.getString(1);\n String price = cursor.getString(2);\n String order_quantity = cursor.getString(3);\n String quantity_type = cursor.getString(4);\n String min_quantity = cursor.getString(5);\n String availability = cursor.getString(6);\n String discount = cursor.getString(7);\n String image = cursor.getString(8);\n String rating = cursor.getString(9);\n String description = cursor.getString(10);\n String type = cursor.getString(11);\n int qty = cursor.getInt(12);\n\n list.add(new ProductDetail(id, title, price, order_quantity, quantity_type, min_quantity, availability, discount, image, rating, description\n ,type, qty));\n }\n return list;\n }", "java.lang.String getApiUrl();", "@Override\r\n\tprotected String getUrl() {\n\t\tif(tipo==PROFIT_DATOS_COMERCIALES){\r\n\t\t\treturn urlWS + \"/ProfitResumen\";\r\n\t\t}else{\r\n\t\t\treturn urlWS + \"/ProfitDataAdicional\";\r\n\t\t}\r\n\t}", "public String getUrlForSharing() {\n PostData pd = getAdapter().getPost(mPager.getCurrentItem());\n return pd.getUrl();\n }", "String getRequestedUrl();", "public static URL getUrlForGetCountries()\r\n {\r\n String strUrl = getBaseURL() + \"account_services/api/1.0/static_content/countries/client_type/3/language/\"+\r\n \t\tA.getContext().getString( R.string.backend_language_code )+\"?brand=\"+Config.BRAND_NAME_URL;\r\n return str2url( strUrl );\r\n }", "String getURL(FsItem f);", "String getUrl();", "String getUrl();", "String getUrl();", "String getUrl();", "String getUrl();", "public String getBonusUrl() {\n return bonusUrl;\n }", "public WishlistItemTbl (\n\t\t Integer in_wishlistItemId\n ) {\n\t\tthis.setWishlistItemId(in_wishlistItemId);\n }", "public static URL getUrlForPolicySync(){\r\n\t\tString strUrl = getBaseURL() + \"mip_services/core/api/1.0/policy\";\r\n\t\treturn str2url(strUrl);\r\n\t}", "String getServiceUrl();", "Collection<? extends Object> getHadithBookUrl();", "public MethodLinkBuilderFactory<GamesItemThymeleafController> getItemLink() {\n return itemLink;\n }", "public static URL getUrlForMisc()\r\n {\r\n String idCountry = P.getCountryId();\r\n int idBrand = Config.BRAND_ID_BE;\r\n //String strUrl = getBaseURL() + \"account_services/api/1.0/static_content/misc/client_type/3/country/\"+idCountry;\r\n String strUrl = getBaseURL() + \"account_services/api/1.0/static_content/misc/client_type/3/brand_id/\"+idBrand+\"/country/\"+idCountry;\r\n return str2url( strUrl );\r\n }", "public static String getUrlList(Context context) {\n return CommonConstants.THEMOVIEDB_URL_LIST\n .replace(\"#sort#\",\n PreferenceManager.getDefaultSharedPreferences(context).getString(\n context.getString(R.string.key_pref_sort),\n CommonConstants.THEMOVIEDB_SORT_POPULARITY_DES)\n )\n .replace(\"#page#\", String.valueOf(((MainActivity) context).mPage));\n }", "private String getUriForAdd(UriInfo uriInfo, OrderRepresentation ordRep) {\r\n\t\tString url = uriInfo.getBaseUriBuilder()\r\n\t\t\t\t.path(OrderResource.class)\r\n\t\t\t\t.path(\"order\")\r\n\t\t\t\t.build()\r\n\t\t\t\t.toString();\r\n\t\treturn url;\r\n\t}", "public static MozuUrl updateWishlistItemQuantityUrl(Integer quantity, String responseFields, String wishlistId, String wishlistItemId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}/{quantity}?responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"quantity\", quantity);\r\n\t\tformatter.formatUrl(\"responseFields\", responseFields);\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\tformatter.formatUrl(\"wishlistItemId\", wishlistItemId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "java.lang.String getResourceUri();", "@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/ConsultarIndiceEjecucionAnio\";\r\n\t}", "public String getURL();", "@Override\r\n\tpublic List<Book> getWishList(User user) {\n\t\tTypedQuery<Book> query = sessionFactory.getCurrentSession().createNativeQuery(\"select USER_ID, BOOK_ID from WISH_USER_BOOK where USER_ID = \" + user.getId());\r\n\t\treturn query.getResultList();\r\n\t}", "public String getApiUrl();", "public String getSiteUrl();", "public String generateURL(XYDataset dataset, int series, int item) { return getURL(series, item); }", "public String getItemURL() {\n String shownAt = jsonParent.getString(\"isShownAt\");\n println(shownAt);\n return shownAt;\n }", "@GET\n @Path(\"/addwl/{beerId}\")\n @Produces({MediaType.TEXT_XML, MediaType.APPLICATION_JSON , MediaType.APPLICATION_XML })\n public long addBeerToWishList( @PathParam(\"beerId\") Long beerId) {\n\t\t\n \t\n \thelper = new Helper();\n\t\tsoapService = helper.getSoapService();\n\t\tUser user = helper.getUserByUsername(username);\n Beer beer = soapService.readBeer(beerId);\n \n soapService.addBeerToUser(user, beer);\n \n System.out.println(\"beer added to wishlist...\");\n \n \treturn beerId;\n \t \t\n }", "@Override\r\n public List<String> buildRequestUrl(String resource, Endpoint endpoint) {\r\n //log = LoggerFactory.getLogger(ScopusAuthorSearchProvider.class);\r\n namespaceDC = Namespace.getNamespace(\"dc\", \"http://purl.org/dc/elements/1.1/\");\r\n namespacePRISM = Namespace.getNamespace(\"prism\", \"http://prismstandard.org/namespaces/basic/2.0/\");\r\n namespaceATOM = Namespace.getNamespace(\"atom\", \"http://www.w3.org/2005/Atom\");\r\n String url = null;\r\n Matcher m = Pattern.compile(PATTERN).matcher(resource);\r\n if (m.find()) {\r\n url = resource;\r\n apiKeyParam = m.group(4);\r\n } else {\r\n Preconditions.checkState(StringUtils.isNotBlank(resource));\r\n String id = resource.substring(resource.lastIndexOf('/') + 1);\r\n url = String.format(API, id.replace('_', '+'));\r\n }\r\n return Collections.singletonList(url);\r\n }", "@Override\r\n\tpublic String getUrl() {\n\t\treturn null;\r\n\t}", "private static String placeOrderResource() {\n return \"/store/order\";\n }", "private String getWish(NodoAvl tmp){\n StringBuilder sb = new StringBuilder();\n sb.append(tmp.whish.graphBigQueue(tmp.nom+\"W\",\"Whislist\"));\n sb.append(tmp.nom).append(\"->\").append(tmp.nom).append(\"W0\")\n .append(\";\\n\");\n return sb.toString();\n }", "public List<IWarInfo> getWarsList() {\n\t\treturn null;\n\t}", "public String getFeedPathPrefix();", "public ArrayList<String> readAllWishlistID() {\n db = helper.getReadableDatabase();\n ArrayList<String> list = new ArrayList<>();\n Cursor cursor = db.rawQuery(\"select * from \" + DatabaseConstant.TABLE_NAME_WISHLIST, null);\n while (cursor.moveToNext()) {\n String id = cursor.getString(0);\n list.add(id);\n }\n return list;\n }", "public final native String getUrl() /*-{\n return this.getUrl();\n }-*/;", "String getQueryRequestUrl();", "public abstract String getUrl();", "public String formURL(){\n String target = feedURL + \"?s=\" + marketInformation.getTickers().stream().reduce( (a, b) -> a + \",\" + b).get();\n // p0 is just the prices ordered the same as the request\n target += \"&f=p0\";\n return target;\n }", "@Override\r\n public String getUrl()\r\n {\n return null;\r\n }", "public static String getPlaylistUrl(String stationName){\n\t\tString entry = JSON.getString(radioStationsPlaylist, stationName);\n\t\treturn entry;\n\t}" ]
[ "0.7124792", "0.6100036", "0.5840673", "0.57882345", "0.5751729", "0.5622477", "0.56174755", "0.55707955", "0.5540759", "0.5399812", "0.53663236", "0.5319104", "0.5297678", "0.52797925", "0.52649665", "0.5178473", "0.513009", "0.51222336", "0.5081317", "0.5080283", "0.50615907", "0.5043002", "0.501895", "0.50149584", "0.50141156", "0.50122005", "0.5005039", "0.49972484", "0.49972484", "0.49972484", "0.49972484", "0.49972484", "0.49972484", "0.49911526", "0.4988027", "0.4988027", "0.4988027", "0.4988027", "0.49846792", "0.4972931", "0.4957503", "0.4957503", "0.49557427", "0.4939581", "0.4929412", "0.49105498", "0.48987836", "0.48940167", "0.4889446", "0.48889616", "0.4865238", "0.48588112", "0.48582098", "0.48560852", "0.48496076", "0.48414543", "0.48390874", "0.48222992", "0.4820682", "0.48130196", "0.48120826", "0.4811524", "0.4803545", "0.479902", "0.479902", "0.479902", "0.479902", "0.479902", "0.4795482", "0.4794898", "0.47947344", "0.4790801", "0.47907138", "0.4783827", "0.47832313", "0.4779358", "0.47765592", "0.47761795", "0.47673842", "0.47669992", "0.47649863", "0.47644076", "0.47643137", "0.4754124", "0.47523177", "0.47396976", "0.47368833", "0.473623", "0.47048926", "0.46984187", "0.4694737", "0.46945333", "0.4692309", "0.46896133", "0.4687703", "0.46781132", "0.46759123", "0.4675435", "0.46740726", "0.46647277" ]
0.6478245
1
Get Resource Url for GetWishlistItemsByWishlistName
public static MozuUrl getWishlistItemsByWishlistNameUrl(Integer customerAccountId, String filter, Integer pageSize, String responseFields, String sortBy, Integer startIndex, String wishlistName) { UrlFormatter formatter = new UrlFormatter("/api/commerce/wishlists/customers/{customerAccountId}/{wishlistName}/items?startIndex={startIndex}&pageSize={pageSize}&sortBy={sortBy}&filter={filter}&responseFields={responseFields}"); formatter.formatUrl("customerAccountId", customerAccountId); formatter.formatUrl("filter", filter); formatter.formatUrl("pageSize", pageSize); formatter.formatUrl("responseFields", responseFields); formatter.formatUrl("sortBy", sortBy); formatter.formatUrl("startIndex", startIndex); formatter.formatUrl("wishlistName", wishlistName); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static MozuUrl getWishlistItemUrl(String responseFields, String wishlistId, String wishlistItemId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}?responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"responseFields\", responseFields);\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\tformatter.formatUrl(\"wishlistItemId\", wishlistItemId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "public static MozuUrl getWishlistItemsUrl(String filter, Integer pageSize, String responseFields, String sortBy, Integer startIndex, String wishlistId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items?startIndex={startIndex}&pageSize={pageSize}&sortBy={sortBy}&filter={filter}&responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"filter\", filter);\r\n\t\tformatter.formatUrl(\"pageSize\", pageSize);\r\n\t\tformatter.formatUrl(\"responseFields\", responseFields);\r\n\t\tformatter.formatUrl(\"sortBy\", sortBy);\r\n\t\tformatter.formatUrl(\"startIndex\", startIndex);\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "public static MozuUrl removeAllWishlistItemsUrl(String wishlistId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items\");\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "public void requestWishList() {\n if (!hasInternetConnection()) {\n PromeetsDialog.show(this, getString(R.string.no_internet));\n } else {\n UserPOJO userPOJO = (UserPOJO) PromeetsUtils.getUserData(PromeetsPreferenceUtil.USER_OBJECT_KEY, UserPOJO.class);\n if (userPOJO == null) finish();\n String[] key = {Constant.USERID, Constant.PAGENUMBER};\n String[] value = {userPOJO.id + \"\", page + \"\"};\n\n PromeetsDialog.showProgress(this);\n HashMap<String, String> header = new HashMap<>();\n header.put(\"ptimestamp\", ServiceHeaderGeneratorUtil.getInstance().getPTimeStamp());\n header.put(\"promeetsT\", ServiceHeaderGeneratorUtil.getInstance().getPromeetsTHeader(Constant.FETCH_MY_WISH_LIST));\n header.put(\"accessToken\", ServiceHeaderGeneratorUtil.getInstance().getAccessToken());\n header.put(\"API_VERSION\", Utility.getVersionCode());\n new GenericServiceHandler(Constant.ServiceType.WISH_LIST, this, PromeetsUtils.buildURL(Constant.FETCH_MY_WISH_LIST, key, value), null, header, IServiceResponseHandler.GET, false, \"Please wait!\", \"Processing..\").execute();\n }\n }", "public static MozuUrl updateWishlistItemUrl(String responseFields, String wishlistId, String wishlistItemId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}?responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"responseFields\", responseFields);\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\tformatter.formatUrl(\"wishlistItemId\", wishlistItemId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "public static MozuUrl addItemToWishlistUrl(String responseFields, String wishlistId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items?responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"responseFields\", responseFields);\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "public List<Integer> getWishList() {\n\t\treturn wishList;\n\t}", "public List<ShelfItem> getAllWishlist(String filter, String username, Integer from, Integer to);", "@POST\n\t@Path(\"/getWishlist\")\n\t@Consumes(\"application/json\")\n\t@Produces(\"application/json\")\n\tpublic String getWishlist(WishlistProduct user_data) {\n\t\t\n\t\tWishlistProductDAO WishlistProductDao = new WishlistProductDAO();\n\t\tList<WishlistProduct> wishlistedProducts = WishlistProductDao.getWishlistProductsByWishlistID(user_data.getWishlist_id());\n\t\t\n\t\tWishlistDAO WishlistDao = new WishlistDAO();\n\t\tWishlist wishlist = WishlistDao.getWishlistDetailsByID(user_data.getWishlist_id());\n\t\t\n\t\tJSONArray products = new JSONArray();\n\t\t\n\t\tfor(int i=0; i<wishlistedProducts.size();i++)\n\t\t{\n\t\t\tJSONObject product = new JSONObject();\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tproduct.put(\"wishlist_name\", wishlist.getName());\n\t\t\t\tproduct.put(\"req_qty\", wishlistedProducts.get(i).getQuantity());\n\t\t\t\tproduct.put(\"remaining_qty\", wishlistedProducts.get(i).getRemaining_qty());\n\t\t\t\tproduct.put(\"address\", wishlistedProducts.get(i).getAddress());\n\t\t\t\tproduct.put(\"reason\", wishlistedProducts.get(i).getReason());\n\t\t\t\t\t\n\t\t\t\tCatalogDAO CatalogDao = new CatalogDAO();\n\t\t\t\tCatalog productDetails = CatalogDao.getProductByID(wishlistedProducts.get(i).getProduct_id());\n\t\t\t\t\n\t\t\t\tproduct.put(\"product_id\", productDetails.getProduct_id());\n\t\t\t\tproduct.put(\"product_name\", productDetails.getProduct_name());\n\t\t\t\tproduct.put(\"product_qty\", productDetails.getQuantity());\n\t\t\t\tproduct.put(\"brand\", productDetails.getBrand());\n\t\t\t\tproduct.put(\"description\", productDetails.getDescription());\n\t\t\t\tproduct.put(\"price\", productDetails.getPrice());\n\t\t\t\tproduct.put(\"pic_location\", productDetails.getPic_location());\n\t\t\t\t\n\t\t\t\tproducts.put(product);\n\t\t\t\t\n\t\t\t}\n\t\t\tcatch (JSONException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} \n\t\t}\n\t\t\n\t\treturn products.toString();\n\t\t\n\t}", "private void getWishListInfo(final long productId) {\n User user = SettingsMy.getActiveUser();\n if (user != null) {\n // determine if product is in wishlist\n //String wishlistUrl = String.format(EndPoints.WISHLIST_IS_IN_WISHLIST, SettingsMy.getActualNonNullShop(getActivity()).getId(), productId);\n String wishlistUrl = String.format(EndPoints.WISHLIST);\n GsonRequest<WishlistResponse> getWishlistInfo = new GsonRequest<WishlistResponse>(Request.Method.GET, wishlistUrl, null, WishlistResponse.class, new Response.Listener<WishlistResponse>() {\n @Override\n public void onResponse(@NonNull WishlistResponse response) {\n if(response != null) {\n if(response.getStatusText() != null && response.getStatusCode() != null) {\n if (response.getStatusCode().toLowerCase().equals(CONST.RESPONSE_CODE) || response.getStatusText().toLowerCase().equals(CONST.RESPONSE_UNAUTHORIZED)) {\n LoginDialogFragment.logoutUser(true);\n DialogFragment loginExpiredDialogFragment = new LoginExpiredDialogFragment();\n loginExpiredDialogFragment.show(getFragmentManager(), LoginExpiredDialogFragment.class.getSimpleName());\n }\n }\n else\n prepareWishListButton(response, productId);\n }\n else\n Timber.d(\"returned null response during getWishListInfo\");\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n MsgUtils.logAndShowErrorMessage(getActivity(), error);\n }\n }, getFragmentManager(), \"\");\n getWishlistInfo.setRetryPolicy(MyApplication.getDefaultRetryPolice());\n getWishlistInfo.setShouldCache(false);\n MyApplication.getInstance().addToRequestQueue(getWishlistInfo, CONST.PRODUCT_REQUESTS_TAG);\n }\n }", "@POST\n\t@Path(\"/getSharedWishlists/{id}\")\n\t@Produces(\"application/json\")\n\tpublic String getSharedWishlists(@PathParam(\"id\") String fullfiller_id) throws JSONException{\n\t\t\n\t\tWishlistFullfillersDAO wfdao = new WishlistFullfillersDAO();\n\t\tArrayList<Integer> wishlists = wfdao.getWishlistsByFullfillerID(fullfiller_id);\n\t\tJSONArray result = new JSONArray();\n\t\t\n\t\tif(wishlists!=null) {\n\t\t\tfor(int i=0; i<wishlists.size();i++) {\n\t\t\t\tJSONObject details = new JSONObject();\n\t\t\t\tdetails.put(\"wishlist_id\", wishlists.get(i));\n\t\t\t\t\n\t\t\t\tWishlistDAO wdao = new WishlistDAO();\n\t\t\t\tWishlist wishlist = wdao.getWishlistDetailsByID(wishlists.get(i));\n\t\t\t\t\n\t\t\t\tif(wishlist.getStatus().equals(\"ONGOING\")) {\n\t\t\t\t\tdetails.put(\"wishlist_name\", wishlist.getName());\n\t\t\t\t\tdetails.put(\"creator_id\", wishlist.getCreator_id());\n\t\t\t\t\t\n\t\t\t\t\tCustomerDAO cdao = new CustomerDAO();\n\t\t\t\t\tCustomer customer = cdao.getCustomerByID(wishlist.getCreator_id());\n\t\t\t\t\tdetails.put(\"creator_name\", customer.getName());\n\t\n\t\t\t\t\tresult.put(details);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn result.toString();\n\t\t}\n\t\treturn null;\n\t}", "public static MozuUrl deleteWishlistItemUrl(String wishlistId, String wishlistItemId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}\");\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\tformatter.formatUrl(\"wishlistItemId\", wishlistItemId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "public static URL getUrlForGetAppList()\r\n {\r\n String idCountry = P.getCountryId(); \r\n String strUrl = getBaseURL() +\"account_services/api/1.0/static_content/apps/client_type/3/country_code/\"+idCountry+\"/language_code/\"+\r\n \t\tA.getContext().getString( R.string.backend_language_code );\r\n return str2url( strUrl );\r\n }", "java.lang.String getBookingURL();", "public static Integer getWishListNumber() {\n return wishListNumber;\n }", "public void clickWishlistLink()\n\t{\n \telementUtils.performElementClick(wbWishlistLink);\n\t}", "public ArrayList<String> readAllWishlistID() {\n db = helper.getReadableDatabase();\n ArrayList<String> list = new ArrayList<>();\n Cursor cursor = db.rawQuery(\"select * from \" + DatabaseConstant.TABLE_NAME_WISHLIST, null);\n while (cursor.moveToNext()) {\n String id = cursor.getString(0);\n list.add(id);\n }\n return list;\n }", "public String setUrl() throws JSONException {\n url = baseUrl + searchName;\n for(int i = 0; i < typesCheckList.size(); i++) {\n if(typesObj.has(typesCheckList.get(i))){\n url += typesObj.getString(typesCheckList.get(i));\n }\n }\n if(V)System.out.println(url);\n return url;\n }", "public HashMap<String, ProductDTO> displayProductInWishlist() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\treturn WishlistDaoImpl.wlist ;\n\t}", "public List<Wish> getAllWishes() {\n List<Wish> wishes = new ArrayList<Wish>();\n String selectQuery = \"SELECT * FROM \" + TABLE_WISH;\n\n Log.e(LOG, selectQuery);\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (c.moveToFirst()) {\n do {\n Wish wh = new Wish();\n wh.setId(c.getLong((c.getColumnIndex(KEY_ID))));\n wh.setWishName((c.getString(c.getColumnIndex(KEY_WISHNAME))));\n wh.setStatus(c.getInt(c.getColumnIndex(KEY_STATUS)));\n\n // adding to wish list\n wishes.add(wh);\n } while (c.moveToNext());\n }\n c.close();\n return wishes;\n }", "public Integer getId() {\n\t\treturn wishlistItemId;\n\t}", "public static String getUrlList(Context context) {\n return CommonConstants.THEMOVIEDB_URL_LIST\n .replace(\"#sort#\",\n PreferenceManager.getDefaultSharedPreferences(context).getString(\n context.getString(R.string.key_pref_sort),\n CommonConstants.THEMOVIEDB_SORT_POPULARITY_DES)\n )\n .replace(\"#page#\", String.valueOf(((MainActivity) context).mPage));\n }", "public ArrayList<ProductDetail> readAllWishlist() {\n db = helper.getReadableDatabase();\n ArrayList<ProductDetail> list = new ArrayList<>();\n Cursor cursor = db.rawQuery(\"select * from \" + DatabaseConstant.TABLE_NAME_WISHLIST, null);\n while (cursor.moveToNext()) {\n String id = cursor.getString(0);\n String title = cursor.getString(1);\n String price = cursor.getString(2);\n String order_quantity = cursor.getString(3);\n String quantity_type = cursor.getString(4);\n String min_quantity = cursor.getString(5);\n String availability = cursor.getString(6);\n String discount = cursor.getString(7);\n String image = cursor.getString(8);\n String rating = cursor.getString(9);\n String description = cursor.getString(10);\n String type = cursor.getString(11);\n int qty = cursor.getInt(12);\n\n list.add(new ProductDetail(id, title, price, order_quantity, quantity_type, min_quantity, availability, discount, image, rating, description\n ,type, qty));\n }\n return list;\n }", "@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/GuardarSustento\";\r\n\t}", "@Override\r\n public String getFriendlyURI() {\r\n return createURI(false, false);\r\n }", "public List<IWarInfo> getWarsList() {\n\t\treturn null;\n\t}", "public String getRelatedProductsURL(Context context){\n return this.getURL(context.getResources().getString(R.string.related_products))+\"&product_id=%1$s\";\n }", "protected void handleRestlessPath(UrlMappingResource resource, List<String> elementList) {\n }", "public WishlistItem getWishlistItem(String wishID){\n\n //Get a document reference to the item\n DocumentReference docRef = fStore.collection(\"user_profiles\").document(fUser.getUid()).collection(\"wishlist\").document(wishID);\n\n //Get snapshot of document and change into Wishlist item and return value\n docRef.get().addOnSuccessListener(new OnSuccessListener<DocumentSnapshot>() {\n @Override\n public void onSuccess(DocumentSnapshot documentSnapshot) {\n returnItem = documentSnapshot.toObject(WishlistItem.class);\n }\n });\n\n if(returnItem == null){\n //returnItem = new WishlistItem(0,\"Null\",\"Null\",\"Null\");\n }\n\n return returnItem;\n }", "@Override\r\n\tpublic List<Book> getWishList(User user) {\n\t\tTypedQuery<Book> query = sessionFactory.getCurrentSession().createNativeQuery(\"select USER_ID, BOOK_ID from WISH_USER_BOOK where USER_ID = \" + user.getId());\r\n\t\treturn query.getResultList();\r\n\t}", "private String getWish(NodoAvl tmp){\n StringBuilder sb = new StringBuilder();\n sb.append(tmp.whish.graphBigQueue(tmp.nom+\"W\",\"Whislist\"));\n sb.append(tmp.nom).append(\"->\").append(tmp.nom).append(\"W0\")\n .append(\";\\n\");\n return sb.toString();\n }", "@GET\n @Path(\"/addwl/{beerId}\")\n @Produces({MediaType.TEXT_XML, MediaType.APPLICATION_JSON , MediaType.APPLICATION_XML })\n public long addBeerToWishList( @PathParam(\"beerId\") Long beerId) {\n\t\t\n \t\n \thelper = new Helper();\n\t\tsoapService = helper.getSoapService();\n\t\tUser user = helper.getUserByUsername(username);\n Beer beer = soapService.readBeer(beerId);\n \n soapService.addBeerToUser(user, beer);\n \n System.out.println(\"beer added to wishlist...\");\n \n \treturn beerId;\n \t \t\n }", "public String getUrlForGradebookItemHelper(Long gradeableObjectId,\n String gradebookItemName, String returnViewId, String contextId, Date dueDate)\n {\n return null;\n }", "public WishlistItemTbl (\n\t\t Integer in_wishlistItemId\n ) {\n\t\tthis.setWishlistItemId(in_wishlistItemId);\n }", "private String getPingUri() {\n\t\treturn BASE_URI + \"?_wadl\";\n\t}", "public static MozuUrl updateWishlistItemQuantityUrl(Integer quantity, String responseFields, String wishlistId, String wishlistItemId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}/{quantity}?responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"quantity\", quantity);\r\n\t\tformatter.formatUrl(\"responseFields\", responseFields);\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\tformatter.formatUrl(\"wishlistItemId\", wishlistItemId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "public static String getPlaylistUrl(String stationName){\n\t\tString entry = JSON.getString(radioStationsPlaylist, stationName);\n\t\treturn entry;\n\t}", "@GET\n @Path(\"itemlist\")\n @Produces(MediaType.TEXT_PLAIN)\n public String getItemList(@QueryParam(\"jsonpcallback\") String jsonpcallback) {\n return jsonpcallback + \"(\" + is.getAllItems().toJSONString() + \")\";\n }", "@XmlElement\r\n\tpublic String getMyUrl() {\r\n\t\tString ret = null;\r\n\t\tif (null != getId()) {\r\n\t\t\tret = String.format(\"%s/category/%s-%s\", SuperContainer.BaseUrl, getId() + \"\", getUrl());\r\n\t\t\t\r\n\t\t\t// Always add html to the end\r\n\t\t\tif(!getUrl().endsWith(\".html\")) {\r\n\t\t\t\tret = ret + \".html\";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn ret;\r\n\t}", "URL getWuicXmlPath() {\n return wuicXmlPath;\n }", "Collection<? extends Object> getHadithBookUrl();", "protected String getListingParameter() {\n if (!isMono) {\n return listing ? \"/listing\" : \"/nolisting\";\n }\n return null;\n }", "@Override\r\n\tprotected String getUrl() {\n\t\tif(tipo==PROFIT_DATOS_COMERCIALES){\r\n\t\t\treturn urlWS + \"/ProfitResumen\";\r\n\t\t}else{\r\n\t\t\treturn urlWS + \"/ProfitDataAdicional\";\r\n\t\t}\r\n\t}", "public void updateCourseList(WishResponse mWishResponse) {\n try {\n coursePictureURLstatic = mWishResponse.getPictureUrl();\n\n mWishListAdapter.addItems(mWishResponse.getWishList());\n\n if (LogWriter.isValidLevel(Log.INFO))\n LogWriter.write(\"ItemCount : \" + mWishListAdapter.getItemCount());\n\n mEmptyTextView.setVisibility((mWishListAdapter.getItemCount() == 0) ? View.VISIBLE : View.GONE);\n mEmptyButton.setVisibility((mWishListAdapter.getItemCount() == 0) ? View.VISIBLE : View.GONE);\n } catch (Exception e) {\n LogWriter.err(e);\n }\n }", "@Override\n\tpublic String getUrlName() {\n\t\treturn URL_NAME;\n\t}", "String getLearnMoreHelpPageUrl();", "public void listWashers() {\r\n\t\tSystem.out.println(store.listWashers());\r\n\t}", "public String formURL(){\n String target = feedURL + \"?s=\" + marketInformation.getTickers().stream().reduce( (a, b) -> a + \",\" + b).get();\n // p0 is just the prices ordered the same as the request\n target += \"&f=p0\";\n return target;\n }", "public String getOrderItemUrl() {\n return orderItemUrl;\n }", "java.lang.String getCouponIconUrl();", "public void addWishlistItem(WishlistItem wishItem){\n fStore.collection(\"user_profiles\").document(fUser.getUid()).collection(\"wishlist\").document(wishItem.getWishID()).set(wishItem).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n\n }\n });\n }", "private String getUriForSelf(UriInfo uriInfo,OrderRepresentation ordRep){\r\n\t\tString url = uriInfo.getBaseUriBuilder()\r\n\t\t\t\t\t\t\t.path(OrderResource.class)\r\n\t\t\t\t\t\t\t.path(\"order\")\r\n\t\t\t\t\t\t\t.path(\"Order_ID\" +ordRep.getOrderID())\r\n\t\t\t\t\t\t\t.build()\r\n\t\t\t\t\t\t\t.toString();\r\n\t\treturn url;\r\n\t\t\r\n\t}", "public static URL getUrlForGetCountries()\r\n {\r\n String strUrl = getBaseURL() + \"account_services/api/1.0/static_content/countries/client_type/3/language/\"+\r\n \t\tA.getContext().getString( R.string.backend_language_code )+\"?brand=\"+Config.BRAND_NAME_URL;\r\n return str2url( strUrl );\r\n }", "String getQueryResultsUrl();", "private String generateUrl(List<String> codes) {\n StringBuilder builder = new StringBuilder();\n for (String code : codes) {\n builder.append(\",\");\n builder.append(recognizeType(code));\n builder.append(code);\n }\n builder = builder.delete(0, 1);\n return prefix + builder.toString();\n }", "ListWorkerFleetsResult listWorkerFleets(ListWorkerFleetsRequest listWorkerFleetsRequest);", "@Override\n\tpublic String buidWfsURL(WrapperFilter filter) {\n\t\treturn null;\n\t}", "String webSocketUri();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "String getUrl(String key);", "@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/ConsultarIndiceEjecucionAnio\";\r\n\t}", "String getJoinUrl();", "java.lang.String getHotelImageURLs(int index);", "public Integer getAllWishlistCount(String filter, String username);", "String getURL(FsItem f);", "public String getUrlForSharing() {\n PostData pd = getAdapter().getPost(mPager.getCurrentItem());\n return pd.getUrl();\n }", "public synchronized void clickOnWishList(WebDriver driver) throws Exception {\n\n\t\tutils.isElementPresent(driver, \"Add_To_WishList\");\n\n\t\ttry {\n\n\t\t\tWebElement elem = utils.findElementByLocator(driver, \"Add_To_WishList\", \"Add To Wishlist not clicked\");\n\t\t\telem.click();\n\t\t\tReporterLog.actionMsg(\"Add To WishList clicked\");\n\n\t\t} catch (Exception e) {\n\n\t\t\tCustomException.throwExceptionError(e, \"PDP\", \"Add To WishList action failed\", driver);\n\t\t}\n\t}", "@PostMapping(\"/wishLists/{custId}/{prodId}\")\r\n\tpublic ResponseEntity<WishList> createWishList(@PathVariable(\"custId\") Integer custId, @PathVariable(\"prodId\") Integer prodId,@PathVariable(\"category3\") String category3) {\r\n\t\tList<Inventory> inventory= inventoryService.getAllInventory();\r\n\t\tList<Inventory> inventory1=new ArrayList();\r\n\t\t\r\n\t\tcategory3=\"Books\";\r\n\t\tfor (Inventory c : inventory) {\r\n\t\t\tCategory category= c.getCategory();\r\n\t\t\tString cat=category.getCategoryName();\r\n\t\t\tif(cat.equals(category3)) {\r\n\t\t\t\r\n\t\t\t\tInventory inv=new Inventory();\r\n\t\t\t\tinv.setProductId(c.getProductId());\r\n\t\t\t\tinv.setProductName(c.getProductName());\r\n\t\t\t\tinv.setPrice(c.getPrice());\r\n\t\t\t\tinv.setCategory(c.getCategory());\r\n\t\t\t\tinv.setDescription(c.getDescription());\r\n\t\t\t\t\r\n\t\t\t\tinventory1.add(inv);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(inventory1==null)\r\n\t\t\treturn new ResponseEntity\r\n\t\t\t\t(\"Sorry! Inventory details not available!\",HttpStatus.NOT_FOUND);\r\n\t\treturn new ResponseEntity<WishList>(HttpStatus.OK);\r\n\t\r\n\t\t\r\n}", "public String getUrl();", "public String getUrl();", "public String getUrl();", "public String getUrl();", "public Url getUrlByName(String name) {\n\t\treturn getUrl(\"name\", name);\n\t}", "Path getRequestListFilePath();", "public static URL getUrlForPolicySync(){\r\n\t\tString strUrl = getBaseURL() + \"mip_services/core/api/1.0/policy\";\r\n\t\treturn str2url(strUrl);\r\n\t}", "Collection<? extends Object> getHadithUrl();", "public String generateURL(XYDataset dataset, int series, int item) { return getURL(series, item); }", "public String getListingWay() {\r\n return listingWay;\r\n }", "String getUrl();", "String getUrl();", "String getUrl();", "String getUrl();", "String getUrl();", "public String getFeedPathPrefix();", "public String revealDiscoveredWRelationships(ArrayList<Vertex> discoveredWList) {\n\t\tString w = \"\";\n\t\tfor (int i = 0; i < discoveredWList.size(); i++) {\n\t\t\t// find w_i and print it with all its neighbors\n\t\t\tw += discoveredWList.get(i).toString() + \": \" + discoveredWList.get(i).getWNeighbors() + \"\\n\";\n\t\t}\n\n\t\treturn \"\\nDiscovered Relationships between targeted vertices (W): \\n\" + w;\n\t}", "public String getBonusUrl() {\n return bonusUrl;\n }", "@Override\n\tpublic int getCount() {\n\t\tIOUtils.printLogInfo(modelWishlist.size()+\"modelWishlist_SIZE\");\n\t\treturn modelWishlist.size();\n\t}", "private String getURL() {\n\t\t// TODO : Generate URL\n\t\treturn null;\n\t}", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\tpublic static String marshal(Marshaller marshaller, List<?> list, String name)\n throws JAXBException {\n \tStringWriter sw = new StringWriter();\n QName qName = new QName(name);\n Wrapper wrapper = new Wrapper(list);\n JAXBElement<Wrapper> jaxbElement = new JAXBElement<Wrapper>(qName,\n Wrapper.class, wrapper);\n marshaller.marshal(jaxbElement, sw);\n return sw.toString() ;\n }", "@GET\n\t@Produces(MediaType.TEXT_XML)\n\tpublic String getXMLList()\n\t{\n\t\tString myStr = \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\" + \"<parent>\" + \"<policy>\" + \" Hello, World\" + \"</policy>\" + \"<hello>\" + \" Hello, World\" + \"</hello>\" + \"</parent>\";\n\t\t// iterate via \"New way to loop\"\n\t\t/*System.out.println(\"Looping through the list to build the xml string\");\n\t\tfor (String policy : _policyList) \n\t\t{\n\t\t\tmyStr += \"<Policy>\" + policy + \"</Policy>\";\n\t\t}*/\n\n\t\treturn myStr;\n\t}", "public String getResourceOWL()\r\n {\r\n return getSemanticObject().getProperty(swb_resourceOWL);\r\n }", "protected abstract String getUrl();", "public List<WebElement> getProductHeaderInWishList()throws Exception{\r\n SearchPageFactory pageFactory = new SearchPageFactory(driver);\r\n List<WebElement> productList = pageFactory.wishListProductList;\r\n return productList;\r\n }", "public static String listplaylists() { \r\n MPDRequest mpdRequest = new MPDRequest(LISTPLAYLISTS);\r\n return mpdRequest.getRequest();\r\n }", "@Override\n\tprotected String getWebServiceUri() {\n\t\treturn this.uri;\n\t}" ]
[ "0.6932229", "0.6235097", "0.56843895", "0.56806874", "0.56524044", "0.53536355", "0.53278494", "0.53071046", "0.529591", "0.52524287", "0.52267504", "0.52078235", "0.52000916", "0.5139739", "0.51293296", "0.5024458", "0.48959634", "0.48643264", "0.48567435", "0.4846993", "0.47798562", "0.47451562", "0.47445524", "0.4741888", "0.47343934", "0.4732806", "0.47316456", "0.47272453", "0.46746093", "0.4669721", "0.4666073", "0.46403703", "0.4639345", "0.46316257", "0.46284837", "0.46188325", "0.46084854", "0.4599752", "0.45701095", "0.4566979", "0.45539293", "0.45465738", "0.4530235", "0.45266673", "0.45114526", "0.45103297", "0.45035592", "0.44978607", "0.4492325", "0.44835484", "0.44779682", "0.44773653", "0.44731113", "0.44658634", "0.4456906", "0.4451811", "0.4447647", "0.4445709", "0.44298524", "0.44298524", "0.44298524", "0.44298524", "0.44298524", "0.44298524", "0.4427937", "0.441237", "0.44053194", "0.4393681", "0.43905327", "0.43857616", "0.43840978", "0.4380175", "0.43644357", "0.43596694", "0.43596694", "0.43596694", "0.43596694", "0.43459815", "0.43380582", "0.4336597", "0.4329704", "0.4322036", "0.43062255", "0.43038157", "0.43038157", "0.43038157", "0.43038157", "0.43038157", "0.4298919", "0.42939466", "0.42936483", "0.42921823", "0.42875203", "0.42852893", "0.4282209", "0.4264433", "0.42558256", "0.42527452", "0.42520362", "0.42500725" ]
0.6492417
1
Get Resource Url for AddItemToWishlist
public static MozuUrl addItemToWishlistUrl(String responseFields, String wishlistId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/wishlists/{wishlistId}/items?responseFields={responseFields}"); formatter.formatUrl("responseFields", responseFields); formatter.formatUrl("wishlistId", wishlistId); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static MozuUrl getWishlistItemUrl(String responseFields, String wishlistId, String wishlistItemId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}?responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"responseFields\", responseFields);\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\tformatter.formatUrl(\"wishlistItemId\", wishlistItemId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "private String getUriForAdd(UriInfo uriInfo, OrderRepresentation ordRep) {\r\n\t\tString url = uriInfo.getBaseUriBuilder()\r\n\t\t\t\t.path(OrderResource.class)\r\n\t\t\t\t.path(\"order\")\r\n\t\t\t\t.build()\r\n\t\t\t\t.toString();\r\n\t\treturn url;\r\n\t}", "public static MozuUrl updateWishlistItemUrl(String responseFields, String wishlistId, String wishlistItemId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}?responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"responseFields\", responseFields);\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\tformatter.formatUrl(\"wishlistItemId\", wishlistItemId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "public void addWishlistItem(WishlistItem wishItem){\n fStore.collection(\"user_profiles\").document(fUser.getUid()).collection(\"wishlist\").document(wishItem.getWishID()).set(wishItem).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n\n }\n });\n }", "public static MozuUrl deleteWishlistItemUrl(String wishlistId, String wishlistItemId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}\");\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\tformatter.formatUrl(\"wishlistItemId\", wishlistItemId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "@GET\n @Path(\"/addwl/{beerId}\")\n @Produces({MediaType.TEXT_XML, MediaType.APPLICATION_JSON , MediaType.APPLICATION_XML })\n public long addBeerToWishList( @PathParam(\"beerId\") Long beerId) {\n\t\t\n \t\n \thelper = new Helper();\n\t\tsoapService = helper.getSoapService();\n\t\tUser user = helper.getUserByUsername(username);\n Beer beer = soapService.readBeer(beerId);\n \n soapService.addBeerToUser(user, beer);\n \n System.out.println(\"beer added to wishlist...\");\n \n \treturn beerId;\n \t \t\n }", "public String getOrderItemUrl() {\n return orderItemUrl;\n }", "java.lang.String getBookingURL();", "public String getBonusUrl() {\n return bonusUrl;\n }", "public static MozuUrl getWishlistItemsUrl(String filter, Integer pageSize, String responseFields, String sortBy, Integer startIndex, String wishlistId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items?startIndex={startIndex}&pageSize={pageSize}&sortBy={sortBy}&filter={filter}&responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"filter\", filter);\r\n\t\tformatter.formatUrl(\"pageSize\", pageSize);\r\n\t\tformatter.formatUrl(\"responseFields\", responseFields);\r\n\t\tformatter.formatUrl(\"sortBy\", sortBy);\r\n\t\tformatter.formatUrl(\"startIndex\", startIndex);\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "@XmlElement\r\n\tpublic String getMyUrl() {\r\n\t\tString ret = null;\r\n\t\tif (null != getId()) {\r\n\t\t\tret = String.format(\"%s/category/%s-%s\", SuperContainer.BaseUrl, getId() + \"\", getUrl());\r\n\t\t\t\r\n\t\t\t// Always add html to the end\r\n\t\t\tif(!getUrl().endsWith(\".html\")) {\r\n\t\t\t\tret = ret + \".html\";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn ret;\r\n\t}", "public URL getURL()\n/* */ {\n/* 135 */ return ResourceUtils.getResourceAsURL(this, this);\n/* */ }", "private String getUriForSelf(UriInfo uriInfo,OrderRepresentation ordRep){\r\n\t\tString url = uriInfo.getBaseUriBuilder()\r\n\t\t\t\t\t\t\t.path(OrderResource.class)\r\n\t\t\t\t\t\t\t.path(\"order\")\r\n\t\t\t\t\t\t\t.path(\"Order_ID\" +ordRep.getOrderID())\r\n\t\t\t\t\t\t\t.build()\r\n\t\t\t\t\t\t\t.toString();\r\n\t\treturn url;\r\n\t\t\r\n\t}", "@Schema(description = \"Link to get this item\")\n public String getUrl() {\n return url;\n }", "@Override\r\n public String getFriendlyURI() {\r\n return createURI(false, false);\r\n }", "public String getRelatedProductsURL(Context context){\n return this.getURL(context.getResources().getString(R.string.related_products))+\"&product_id=%1$s\";\n }", "public String generateURL(XYDataset dataset, int series, int item) { return getURL(series, item); }", "private static String placeOrderResource() {\n return \"/store/order\";\n }", "public static MozuUrl removeAllWishlistItemsUrl(String wishlistId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items\");\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "private String getURL() {\n\t\t// TODO : Generate URL\n\t\treturn null;\n\t}", "java.lang.String getCouponIconUrl();", "public String getResourceUrl() {\n\t\treturn resourceUrl;\n\t}", "String getURL(FsItem f);", "public Integer getId() {\n\t\treturn wishlistItemId;\n\t}", "@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/GuardarSustento\";\r\n\t}", "@Override\n\tpublic String getURLPath() {\n\t\treturn AMConstants.URL_SF_CASE_CREATE_CONSUMER_FEEDBACK;\n\t}", "public String getUrlForSharing() {\n PostData pd = getAdapter().getPost(mPager.getCurrentItem());\n return pd.getUrl();\n }", "public static URL getUrlForGetAppList()\r\n {\r\n String idCountry = P.getCountryId(); \r\n String strUrl = getBaseURL() +\"account_services/api/1.0/static_content/apps/client_type/3/country_code/\"+idCountry+\"/language_code/\"+\r\n \t\tA.getContext().getString( R.string.backend_language_code );\r\n return str2url( strUrl );\r\n }", "public void clickWishlistLink()\n\t{\n \telementUtils.performElementClick(wbWishlistLink);\n\t}", "public String getResourceUrl() {\n return this.resourceUrl;\n }", "WebURL createURL()\n {\n String url = getDir().getURL().getString() + \"!/\" + _cmt._rev.getId().getName();\n return WebURL.getURL(url);\n }", "String getLearnMoreHelpPageUrl();", "public String setUrl() throws JSONException {\n url = baseUrl + searchName;\n for(int i = 0; i < typesCheckList.size(); i++) {\n if(typesObj.has(typesCheckList.get(i))){\n url += typesObj.getString(typesCheckList.get(i));\n }\n }\n if(V)System.out.println(url);\n return url;\n }", "@Override\n\tpublic String getUrl()\n\t{\n\t\treturn url;\n\t}", "public static MozuUrl getWishlistItemsByWishlistNameUrl(Integer customerAccountId, String filter, Integer pageSize, String responseFields, String sortBy, Integer startIndex, String wishlistName)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/customers/{customerAccountId}/{wishlistName}/items?startIndex={startIndex}&pageSize={pageSize}&sortBy={sortBy}&filter={filter}&responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"customerAccountId\", customerAccountId);\r\n\t\tformatter.formatUrl(\"filter\", filter);\r\n\t\tformatter.formatUrl(\"pageSize\", pageSize);\r\n\t\tformatter.formatUrl(\"responseFields\", responseFields);\r\n\t\tformatter.formatUrl(\"sortBy\", sortBy);\r\n\t\tformatter.formatUrl(\"startIndex\", startIndex);\r\n\t\tformatter.formatUrl(\"wishlistName\", wishlistName);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "public String getPostURI() {\n return host + postResource;\n }", "public MethodLinkBuilderFactory<GamesItemThymeleafController> getItemLink() {\n return itemLink;\n }", "void addHadithBookUrl(Object newHadithBookUrl);", "public URI getHref() {\n return entityLinks.linkForItemResource(Hunt.class, id).toUri();\n }", "public static URL getUrlForAddCar()\r\n {\r\n String strUrl = getBaseURL() +\"account_services/api/1.0/vehicle\";\r\n return str2url( strUrl );\r\n }", "@java.lang.Override\n public java.lang.String getUrl() {\n return instance.getUrl();\n }", "@java.lang.Override\n public java.lang.String getUrl() {\n return instance.getUrl();\n }", "public String getUrlForGradebookItemHelper(Long gradeableObjectId,\n String gradebookItemName, String returnViewId, String contextId, Date dueDate)\n {\n return null;\n }", "@Override\n public String generateResourceLink(SoapEvent soapEvent) {\n return SLASH + WEB + SLASH + SOAP + SLASH + PROJECT + SLASH + soapEvent.getProjectId() + SLASH + PORT + SLASH +\n soapEvent.getPortId() + SLASH + OPERATION + SLASH + soapEvent.getOperationId();\n }", "public String getResourceurl() {\n return resourceurl;\n }", "java.lang.String getResourceUri();", "public static MozuUrl updateWishlistItemQuantityUrl(Integer quantity, String responseFields, String wishlistId, String wishlistItemId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}/{quantity}?responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"quantity\", quantity);\r\n\t\tformatter.formatUrl(\"responseFields\", responseFields);\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\tformatter.formatUrl(\"wishlistItemId\", wishlistItemId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "@Override\r\n\tpublic SweetItem addSweetItem(SweetItem SweetItem) {\n\t\treturn null;\r\n\t}", "@Schema(description = \"The URL of the worklog item.\")\n public String getSelf() {\n return self;\n }", "Builder addUrl(String value);", "public static String getPlaylistUrl(String stationName){\n\t\tString entry = JSON.getString(radioStationsPlaylist, stationName);\n\t\treturn entry;\n\t}", "@Override\n\tprotected String getWebServiceUri() {\n\t\treturn this.uri;\n\t}", "private String getPingUri() {\n\t\treturn BASE_URI + \"?_wadl\";\n\t}", "String getJoinUrl();", "@Override\r\n\tpublic java.lang.String toString()\r\n\t{\r\n\t\treturn \"appendParamToUrl\";\r\n\t}", "private String generateURL(Integer instanceID, String key) {\n\t\treturn \"http://\" + databaseInstances[instanceID] + \"/target?targetID=\" + key;\n\t}", "public WishlistItemTbl (\n\t\t Integer in_wishlistItemId\n ) {\n\t\tthis.setWishlistItemId(in_wishlistItemId);\n }", "@Override\r\n\tpublic String getUrl() {\n\t\treturn null;\r\n\t}", "private void getWishListInfo(final long productId) {\n User user = SettingsMy.getActiveUser();\n if (user != null) {\n // determine if product is in wishlist\n //String wishlistUrl = String.format(EndPoints.WISHLIST_IS_IN_WISHLIST, SettingsMy.getActualNonNullShop(getActivity()).getId(), productId);\n String wishlistUrl = String.format(EndPoints.WISHLIST);\n GsonRequest<WishlistResponse> getWishlistInfo = new GsonRequest<WishlistResponse>(Request.Method.GET, wishlistUrl, null, WishlistResponse.class, new Response.Listener<WishlistResponse>() {\n @Override\n public void onResponse(@NonNull WishlistResponse response) {\n if(response != null) {\n if(response.getStatusText() != null && response.getStatusCode() != null) {\n if (response.getStatusCode().toLowerCase().equals(CONST.RESPONSE_CODE) || response.getStatusText().toLowerCase().equals(CONST.RESPONSE_UNAUTHORIZED)) {\n LoginDialogFragment.logoutUser(true);\n DialogFragment loginExpiredDialogFragment = new LoginExpiredDialogFragment();\n loginExpiredDialogFragment.show(getFragmentManager(), LoginExpiredDialogFragment.class.getSimpleName());\n }\n }\n else\n prepareWishListButton(response, productId);\n }\n else\n Timber.d(\"returned null response during getWishListInfo\");\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n MsgUtils.logAndShowErrorMessage(getActivity(), error);\n }\n }, getFragmentManager(), \"\");\n getWishlistInfo.setRetryPolicy(MyApplication.getDefaultRetryPolice());\n getWishlistInfo.setShouldCache(false);\n MyApplication.getInstance().addToRequestQueue(getWishlistInfo, CONST.PRODUCT_REQUESTS_TAG);\n }\n }", "public String getSubscribeEndpoint() {\n \t\treturn this.subscriptionsTarget.getUri().toString();\n \t}", "private URL getResourceAsUrl(final String path) throws IOException {\n\t\treturn appContext.getResource(path).getURL();\n\t}", "public String getURL();", "public static URL getUrlForMisc()\r\n {\r\n String idCountry = P.getCountryId();\r\n int idBrand = Config.BRAND_ID_BE;\r\n //String strUrl = getBaseURL() + \"account_services/api/1.0/static_content/misc/client_type/3/country/\"+idCountry;\r\n String strUrl = getBaseURL() + \"account_services/api/1.0/static_content/misc/client_type/3/brand_id/\"+idBrand+\"/country/\"+idCountry;\r\n return str2url( strUrl );\r\n }", "String webSocketUri();", "public String formURL(){\n String target = feedURL + \"?s=\" + marketInformation.getTickers().stream().reduce( (a, b) -> a + \",\" + b).get();\n // p0 is just the prices ordered the same as the request\n target += \"&f=p0\";\n return target;\n }", "public String getURL() { return (String)get(\"RMShapeURL\"); }", "public String link() {\n return DevRant.BASE_URL + DevRant.RANT_URL + '/' + getId();\n }", "@Override\n\tpublic String generateUrl(String keyName) {\n\t\treturn null;\n\t}", "String getNoticeFileUrl();", "@Override\r\n public String getUrl()\r\n {\n return null;\r\n }", "public String getBuyLink() {\n return buyLink;\n }", "public String getURL(int position){\n Item current = getItem(position);\n return current.URL();\n }", "String getPreviewUrlTemplate();", "Builder addAdditionalType(URL value);", "java.lang.String getPaymentUrl();", "public URI getExplicitlyProvidedUri() {\n return wsRce.getUri();\n }", "String getRequestedUrl();", "private static URL buildURL(List<String> args) throws MalformedURLException {\n\n\t\tfinal String IDList = args.stream().map(id -> id.toString() + \",\").reduce(\"\", String::concat);\n\n\t\treturn new URL(String.format(BASE_URL, IDList));\n\t}", "@DisplayName(\"The URL for the Marketcetera Exchange Server\")\n public String getURL();", "public void requestWishList() {\n if (!hasInternetConnection()) {\n PromeetsDialog.show(this, getString(R.string.no_internet));\n } else {\n UserPOJO userPOJO = (UserPOJO) PromeetsUtils.getUserData(PromeetsPreferenceUtil.USER_OBJECT_KEY, UserPOJO.class);\n if (userPOJO == null) finish();\n String[] key = {Constant.USERID, Constant.PAGENUMBER};\n String[] value = {userPOJO.id + \"\", page + \"\"};\n\n PromeetsDialog.showProgress(this);\n HashMap<String, String> header = new HashMap<>();\n header.put(\"ptimestamp\", ServiceHeaderGeneratorUtil.getInstance().getPTimeStamp());\n header.put(\"promeetsT\", ServiceHeaderGeneratorUtil.getInstance().getPromeetsTHeader(Constant.FETCH_MY_WISH_LIST));\n header.put(\"accessToken\", ServiceHeaderGeneratorUtil.getInstance().getAccessToken());\n header.put(\"API_VERSION\", Utility.getVersionCode());\n new GenericServiceHandler(Constant.ServiceType.WISH_LIST, this, PromeetsUtils.buildURL(Constant.FETCH_MY_WISH_LIST, key, value), null, header, IServiceResponseHandler.GET, false, \"Please wait!\", \"Processing..\").execute();\n }\n }", "public String getPreViewUrl();", "public String getItemURL() {\n String shownAt = jsonParent.getString(\"isShownAt\");\n println(shownAt);\n return shownAt;\n }", "public String getUrl();", "public String getUrl();", "public String getUrl();", "public String getUrl();", "@Override\r\n\tpublic String resourceAddress(int augID) {\n\t\treturn Main.MODID + \":skills/novice/Rejuvenate.png\";\r\n\t}", "public synchronized void clickOnWishList(WebDriver driver) throws Exception {\n\n\t\tutils.isElementPresent(driver, \"Add_To_WishList\");\n\n\t\ttry {\n\n\t\t\tWebElement elem = utils.findElementByLocator(driver, \"Add_To_WishList\", \"Add To Wishlist not clicked\");\n\t\t\telem.click();\n\t\t\tReporterLog.actionMsg(\"Add To WishList clicked\");\n\n\t\t} catch (Exception e) {\n\n\t\t\tCustomException.throwExceptionError(e, \"PDP\", \"Add To WishList action failed\", driver);\n\t\t}\n\t}", "String makePlanCommunityParticipationUrl();", "public String getResourceLink() {\n\t\treturn resourceLink;\n\t}", "private String getUriForCancel(UriInfo uriInfo, OrderRepresentation ordRep) {\r\n\t\tString url = uriInfo.getBaseUriBuilder()\r\n\t\t\t\t.path(OrderResource.class)\r\n\t\t\t\t.path(\"order\")\r\n\t\t\t\t.path(\"cancel\")\r\n\t\t\t\t.path(Integer.toString(ordRep.getOrderID()))\r\n\t\t\t\t.build()\r\n\t\t\t\t.toString();\r\n\t\treturn url;\r\n\t}", "public WishlistItem getWishlistItem(String wishID){\n\n //Get a document reference to the item\n DocumentReference docRef = fStore.collection(\"user_profiles\").document(fUser.getUid()).collection(\"wishlist\").document(wishID);\n\n //Get snapshot of document and change into Wishlist item and return value\n docRef.get().addOnSuccessListener(new OnSuccessListener<DocumentSnapshot>() {\n @Override\n public void onSuccess(DocumentSnapshot documentSnapshot) {\n returnItem = documentSnapshot.toObject(WishlistItem.class);\n }\n });\n\n if(returnItem == null){\n //returnItem = new WishlistItem(0,\"Null\",\"Null\",\"Null\");\n }\n\n return returnItem;\n }", "public static void addToWishList(String item, String messageOnFailure) {\n String wishlistCount = getText(WISHLIST_UPPER_MENU);\n System.out.println(\"Current wishlist count: \" + wishlistCount);\n\n type(SEARCH_FIELD_INPUT, item);\n click(SEARCH_ICON);\n List<WebElement> wishlistButtons = Browser.driver.findElements(ADD_TO_WISHLIST_BUTTON);\n wishlistButtons.get(0).click();\n Browser.driver.navigate().refresh();\n\n String wishlistCountAfterItemAdded = getText(WISHLIST_UPPER_MENU);\n System.out.println(\"Wishlist count after item is added: \" + wishlistCountAfterItemAdded);\n assertFalse(wishlistCountAfterItemAdded.matches(wishlistCount), messageOnFailure);\n }", "public static Integer getWishListNumber() {\n return wishListNumber;\n }", "private URL getFeedUrl() throws MalformedURLException{\n String feedUrl = \"http://\" + host + \":\" + port + \"/xmlfeed\";\n URL url = new URL(feedUrl);\n return url;\n }", "java.lang.String getApiUrl();", "public final String getUrl() {\n return properties.get(URL_PROPERTY);\n }", "@Override\n\tpublic String getUrlName() {\n\t\treturn URL_NAME;\n\t}", "public void generateEnquireLink();", "void addHadithUrl(Object newHadithUrl);" ]
[ "0.6618655", "0.60519904", "0.58104604", "0.56835645", "0.5398415", "0.5358091", "0.5357011", "0.5316823", "0.52394474", "0.52264214", "0.52227515", "0.52033335", "0.51751006", "0.51635724", "0.5160002", "0.5129924", "0.511621", "0.50956506", "0.509454", "0.50291926", "0.5021462", "0.50095665", "0.5008134", "0.4998847", "0.49876562", "0.49659365", "0.49658903", "0.49657175", "0.49381286", "0.49247113", "0.4923284", "0.49194825", "0.49148953", "0.49080768", "0.4904143", "0.48985702", "0.48782888", "0.48778653", "0.4849852", "0.48307785", "0.48099214", "0.48099214", "0.4801791", "0.47903728", "0.47795466", "0.47707582", "0.47692153", "0.47659767", "0.47502863", "0.4749767", "0.47234195", "0.469841", "0.46969676", "0.46919903", "0.46872097", "0.468289", "0.46821055", "0.46810833", "0.46806198", "0.4679605", "0.4663638", "0.4655051", "0.46474892", "0.46314412", "0.462676", "0.46104455", "0.46024218", "0.4597838", "0.45974702", "0.45952174", "0.4594486", "0.45907468", "0.45891243", "0.45856574", "0.4584779", "0.4583624", "0.458201", "0.45817065", "0.45787135", "0.45776817", "0.45731688", "0.4572367", "0.45660526", "0.45660526", "0.45660526", "0.45660526", "0.4564967", "0.45598316", "0.4558496", "0.45578915", "0.45513564", "0.45484534", "0.4548086", "0.45460165", "0.4544839", "0.45426238", "0.45394585", "0.45376006", "0.45290318", "0.45267627" ]
0.65463305
1
Get Resource Url for UpdateWishlistItemQuantity
public static MozuUrl updateWishlistItemQuantityUrl(Integer quantity, String responseFields, String wishlistId, String wishlistItemId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}/{quantity}?responseFields={responseFields}"); formatter.formatUrl("quantity", quantity); formatter.formatUrl("responseFields", responseFields); formatter.formatUrl("wishlistId", wishlistId); formatter.formatUrl("wishlistItemId", wishlistItemId); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static MozuUrl updateWishlistItemUrl(String responseFields, String wishlistId, String wishlistItemId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}?responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"responseFields\", responseFields);\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\tformatter.formatUrl(\"wishlistItemId\", wishlistItemId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "public static MozuUrl getWishlistItemUrl(String responseFields, String wishlistId, String wishlistItemId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}?responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"responseFields\", responseFields);\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\tformatter.formatUrl(\"wishlistItemId\", wishlistItemId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "@PUT\n @Path(\"{id}\")\n @Produces(MediaType.APPLICATION_XML)\n @Consumes(MediaType.APPLICATION_FORM_URLENCODED)\n public ShoppingList updateQuantityInShoppingList(@PathParam(\"id\") Long id, @QueryParam(\"idItem\") Long idItem, @QueryParam(\"quantityItem\") int quantityItem) throws WebApplicationException {\n boolean b = sls.updateQuantityItemShoppingList(id, idItem, quantityItem);\n if (b == true) {\n return sls.getShoppingList(id);\n } else {\n throw new WebApplicationException(Response.Status.BAD_REQUEST);\n\n }\n }", "public static MozuUrl deleteWishlistItemUrl(String wishlistId, String wishlistItemId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}\");\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\tformatter.formatUrl(\"wishlistItemId\", wishlistItemId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "public static MozuUrl addItemToWishlistUrl(String responseFields, String wishlistId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items?responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"responseFields\", responseFields);\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "public static Integer getWishListNumber() {\n return wishListNumber;\n }", "private String buildXPathToUpdateQty(int row) {\n\t\tStringBuilder sb=new StringBuilder();\n\t\tsb.append(XPATH_UPDATE_QTY_BUTTON_FOR_ITEM_ON_ROW_PREFIX).append(String.valueOf(row)).append(XPATH_UPDATE_QTY_BUTTON_FOR_ITEM_ON_ROW_SUFFIX);\n\t\treturn sb.toString();\n\t}", "public static MozuUrl getWishlistItemsUrl(String filter, Integer pageSize, String responseFields, String sortBy, Integer startIndex, String wishlistId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items?startIndex={startIndex}&pageSize={pageSize}&sortBy={sortBy}&filter={filter}&responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"filter\", filter);\r\n\t\tformatter.formatUrl(\"pageSize\", pageSize);\r\n\t\tformatter.formatUrl(\"responseFields\", responseFields);\r\n\t\tformatter.formatUrl(\"sortBy\", sortBy);\r\n\t\tformatter.formatUrl(\"startIndex\", startIndex);\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "public Integer getId() {\n\t\treturn wishlistItemId;\n\t}", "public static MozuUrl removeAllWishlistItemsUrl(String wishlistId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items\");\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "public int getWeight() {\n\t\treturn quantity*weight; \n\t}", "public String getOrderItemUrl() {\n return orderItemUrl;\n }", "@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/ActualizarCompromiso\";\r\n\t}", "private static String placeOrderResource() {\n return \"/store/order\";\n }", "@Override\r\n\tprotected String getPath() {\n\t\treturn \"/product/detail.do?param=\";\r\n\t}", "private String getUriForAdd(UriInfo uriInfo, OrderRepresentation ordRep) {\r\n\t\tString url = uriInfo.getBaseUriBuilder()\r\n\t\t\t\t.path(OrderResource.class)\r\n\t\t\t\t.path(\"order\")\r\n\t\t\t\t.build()\r\n\t\t\t\t.toString();\r\n\t\treturn url;\r\n\t}", "ResponseEntity<Cart> updateCartItemQuantity(CartFormData formData);", "@ResponseBody\n\t@RequestMapping(value=\"/update\", method={RequestMethod.GET,\n\t\t\tRequestMethod.POST})\n\tpublic String updateBoost(HttpServletRequest request, String skuId, String boost){\n\t\tsignatureHandler.setPrivateKeyString(rsaResource.get());\n\t\tJSONObject messageBody = new JSONObject();\n\t\tmessageBody.put(\"skuId\", skuId);\n\t\tmessageBody.put(\"boost\", boost);\n\t\tString signatureJson = null;\n\t\ttry {\n\t\t\tsignatureJson = signatureHandler.sign(messageBody, CookieUtil.getUserName(request));\n\t\t} catch (Exception e1) {\n\t\t\tlogger.error(e1.getMessage(), e1);\n\t\t}\n\t\t\n\t\tString resultJson = null;\n\t\ttry {\n\t\t\tresultJson = HttpRequester.httpPostString(weightBoostConfig.getWeight_path() + weightBoostConfig.getWeight_save(),\n\t\t\t\t\tsignatureJson);\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t} catch (HttpRequestException e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t} catch (URISyntaxException e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\n\t\treturn resultJson;\n\t}", "String getQuantity() {\n return Integer.toString(quantity);\n }", "public void update() {\n\t\tthis.quantity = item.getRequiredQuantity();\n\t}", "public String updateShopQuantity() throws Exception {\n\t\tList<PromotionShopMap> lstCheckPromotionShopMap = new ArrayList<PromotionShopMap>();\n\t\tList<PromotionShopJoin> lstCheckPromotionShopJoin = new ArrayList<PromotionShopJoin>();\n\t\tactionStartTime = new Date();\n\t\tresetToken(result);\n\t\tresult.put(ERROR, true);\n\t\tif (promotionId == null || promotionId < 1 || lstShopQttAdd == null || lstShopQttAdd.size() == 0) {\n\t\t\tresult.put(ERR_MSG, ValidateUtil.getErrorMsg(ConstantManager.ERR_NOT_DATA_CORRECT));\n\t\t\treturn JSON;\n\t\t}\n\t\ttry {\n\t\t\tstaff = getStaffByCurrentUser();\n\t\t\tif (staff == null || staff.getShop() == null || staff.getStaffType() == null) {\n\t\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_NOT_PERMISSION, \"\"));\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tPromotionProgram pro = promotionProgramMgr.getPromotionProgramById(promotionId);\n\t\t\tif (pro == null) {\n\t\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_NOT_EXIST_DB, \"CTKM\"));\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tif (!ActiveType.WAITING.equals(pro.getStatus()) && !ActiveType.RUNNING.equals(pro.getStatus())) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.incorrect\"));\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tList<PromotionShopMap> lstNewPromotionShopMap = new ArrayList<PromotionShopMap>();\n\t\t\tList<PromotionShopJoin> lstNewPromotionShopJoin = new ArrayList<PromotionShopJoin>();\n\t\t\tlstCheckPromotionShopMap = promotionProgramMgr.getListPromotionChildShopMapWithShopAndPromotionProgram(staff.getShop().getId(), promotionId);\n\t\t\tlstCheckPromotionShopJoin = promotionProgramMgr.getListPromotionChildShopJoinWithShopAndPromotionProgram(staff.getShop().getId(), promotionId);\n\t\t\tfor (int i = 0, sz = lstShopQttAdd.size(); i < sz; i++) {\n\t\t\t\tPromotionShopQttVO promotionShopQttVO = lstShopQttAdd.get(i);\n\t\t\t\tif (promotionShopQttVO != null) {\n\t\t\t\t\tPromotionShopMap psm = null;\n\t\t\t\t\tPromotionShopJoin psj = null;\n\t\t\t\t\tshopId = promotionShopQttVO.getShopId();\n\t\t\t\t\tif (super.getMapShopChild().get(shopId) == null) {\n\t\t\t\t\t\tresult.put(ERR_MSG, R.getResource(\"common.cms.shop.undefined\"));\n\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t}\n\t\t\t\t\tShop shop = shopMgr.getShopById(shopId);\n\t\t\t\t\tif (shop == null) {\n\t\t\t\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_NOT_EXIST_DB, Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.shop.name.lable\")));\n\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t}\n\t\t\t\t\tif (!ActiveType.RUNNING.equals(shop.getStatus())) {\n\t\t\t\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_STATUS_INACTIVE, shop.getShopCode()));\n\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t}\n\t\t\t\t\tif (shop.getType() != null && shop.getType().getSpecificType() != null && (ShopSpecificType.NPP.getValue().equals(shop.getType().getSpecificType().getValue()) || ShopSpecificType.NPP_MT.getValue().equals(shop.getType()\n\t\t\t\t\t\t\t.getSpecificType().getValue()))) {\n\t\t\t\t\t\tfor (int j = 0, size = lstCheckPromotionShopMap.size(); j < size; j++) {\n\t\t\t\t\t\t\tPromotionShopMap item = lstCheckPromotionShopMap.get(j);\n\t\t\t\t\t\t\tif (item.getShop() != null && item.getShop().getId().equals(shopId)) {\n\t\t\t\t\t\t\t\tpsm = item;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (psm == null) {\n\t\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.shop.not.exist\"));\n\t\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (promotionShopQttVO.getQuantityMax() != null && psm.getQuantityReceivedTotal() != null && promotionShopQttVO.getQuantityMax().compareTo(psm.getQuantityReceivedTotal()) < 0) {\n\t\t\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.shop.quantity.max.not.less.than.quantity.received\"));\n\t\t\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t\t\t} else if (promotionShopQttVO.getAmountMax() != null && psm.getAmountReceivedTotal() != null && promotionShopQttVO.getAmountMax().compareTo(psm.getAmountReceivedTotal()) < 0) {\n\t\t\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.shop.amount.max.not.less.than.amount.received\"));\n\t\t\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t\t\t} else if (promotionShopQttVO.getNumMax() != null && psm.getNumReceivedTotal() != null && promotionShopQttVO.getNumMax().compareTo(psm.getNumReceivedTotal()) < 0) {\n\t\t\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.shop.num.max.not.less.than.num.received\"));\n\t\t\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpsm.setQuantityMax(promotionShopQttVO.getQuantityMax());\n\t\t\t\t\t\tpsm.setIsQuantityMaxEdit(promotionShopQttVO.getIsEdit());\n\t\t\t\t\t\tpsm.setAmountMax(promotionShopQttVO.getAmountMax());\n\t\t\t\t\t\tpsm.setNumMax(promotionShopQttVO.getNumMax());\n\t\t\t\t\t\tlstNewPromotionShopMap.add(psm);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfor (int j = 0, size = lstCheckPromotionShopJoin.size(); j < size; j++) {\n\t\t\t\t\t\t\tPromotionShopJoin item = lstCheckPromotionShopJoin.get(j);\n\t\t\t\t\t\t\tif (item.getShop() != null && item.getShop().getId().equals(shopId)) {\n\t\t\t\t\t\t\t\tpsj = item;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (psj == null) {\n\t\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.shop.not.exist\"));\n\t\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (promotionShopQttVO.getQuantityMax() != null && psj.getQuantityReceivedTotal() != null && promotionShopQttVO.getQuantityMax().compareTo(psj.getQuantityReceivedTotal()) < 0) {\n\t\t\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.shop.quantity.max.not.less.than.quantity.received\"));\n\t\t\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t\t\t} else if (promotionShopQttVO.getAmountMax() != null && psj.getAmountReceivedTotal() != null && promotionShopQttVO.getAmountMax().compareTo(psj.getAmountReceivedTotal()) < 0) {\n\t\t\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.shop.amount.max.not.less.than.amount.received\"));\n\t\t\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t\t\t} else if (promotionShopQttVO.getNumMax() != null && psj.getNumReceivedTotal() != null && promotionShopQttVO.getNumMax().compareTo(psj.getNumReceivedTotal()) < 0) {\n\t\t\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.shop.num.max.not.less.than.num.received\"));\n\t\t\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpsj.setQuantityMax(promotionShopQttVO.getQuantityMax());\n\t\t\t\t\t\tpsj.setIsQuantityMaxEdit(promotionShopQttVO.getIsEdit());\n\t\t\t\t\t\tpsj.setAmountMax(promotionShopQttVO.getAmountMax());\n\t\t\t\t\t\tpsj.setNumMax(promotionShopQttVO.getNumMax());\n\t\t\t\t\t\tlstNewPromotionShopJoin.add(psj);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (ActiveType.RUNNING.equals(pro.getStatus())) {\n\t\t\t\t// lay cau hinh bat buoc cac node NPP phai duoc phan bo\n\t\t\t\tList<ApParam> allocationPromotionShopConfigs = apParamMgr.getListApParam(ApParamType.ALLOCATION_PROMOTION_SHOP, ActiveType.RUNNING);\n\t\t\t\tisAllocationPromotionShop = (allocationPromotionShopConfigs == null || allocationPromotionShopConfigs.size() == 0 || Constant.ONE_TEXT.equals(allocationPromotionShopConfigs.get(0).getValue()));\n\t\t\t\tif (isAllocationPromotionShop) {\n\t\t\t\t\terrMsg = validateQuantityAmountNumPromotionShop(lstCheckPromotionShopMap);\n\t\t\t\t\tif (!StringUtil.isNullOrEmpty(errMsg)) {\n\t\t\t\t\t\tresult.put(\"errMsg\", errMsg);\n\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// 1. kiem tra cha phan bo con phai phan bo: chi kiem tra khi chuyen trang thai sang hoat dong. khi luu chi kiem tra tong con <= cha. \n\t\t\t\terrMsg = validateAllocateParentChildPromotionShop(lstCheckPromotionShopMap, lstCheckPromotionShopJoin);\n\t\t\t\tif (!StringUtil.isNullOrEmpty(errMsg)) {\n\t\t\t\t\tresult.put(\"errMsg\", errMsg);\n\t\t\t\t\treturn JSON;\n\t\t\t\t}\n\t\t\t}\n\t\t\terrMsg = validatePromotionShop(lstCheckPromotionShopMap, lstCheckPromotionShopJoin);\n\t\t\tif (!StringUtil.isNullOrEmpty(errMsg)) {\n\t\t\t\tresult.put(\"errMsg\", errMsg);\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tpromotionProgramMgr.updatePromotionShop(lstNewPromotionShopMap, lstNewPromotionShopJoin, getLogInfoVO());\n\t\t\tresult.put(ERROR, false);\n\t\t} catch (Exception ex) {\n\t\t\tLogUtility.logErrorStandard(ex, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.updateShopQuantity\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t\treturn JSON;\n\t\t} finally {\n\t\t\tlstCheckPromotionShopMap.clear();\n\t\t\tlstCheckPromotionShopMap = null;\n\t\t\tlstCheckPromotionShopJoin.clear();\n\t\t\tlstCheckPromotionShopJoin = null;\n\t\t}\n\t\treturn JSON;\n\t}", "private String getUriForSelf(UriInfo uriInfo,OrderRepresentation ordRep){\r\n\t\tString url = uriInfo.getBaseUriBuilder()\r\n\t\t\t\t\t\t\t.path(OrderResource.class)\r\n\t\t\t\t\t\t\t.path(\"order\")\r\n\t\t\t\t\t\t\t.path(\"Order_ID\" +ordRep.getOrderID())\r\n\t\t\t\t\t\t\t.build()\r\n\t\t\t\t\t\t\t.toString();\r\n\t\treturn url;\r\n\t\t\r\n\t}", "public String getBonusUrl() {\n return bonusUrl;\n }", "@Override\n public void onClick(View view) {\n if (quantity > 0) {\n int decrementedQuantity = quantity - 1;\n\n //Get the URI with the ID for the row\n Uri quantityUri = ContentUris.withAppendedId(BookEntry.CONTENT_URI, currentBookId);\n\n //Update the database with the new quantity value\n ContentValues values = new ContentValues();\n values.put(BookEntry.COLUMN_BOOK_QUANTITY, decrementedQuantity);\n context.getContentResolver().update(quantityUri, values, null, null);\n } else {\n //Show an error when the quantity reaches 0\n Toast.makeText(context, R.string.out_of_stock_message, Toast.LENGTH_SHORT).show();\n }\n }", "public String getQuantity() {\n return quantity;\n }", "@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/actualizarCliente\";\r\n\t}", "public String saveShopSupportQuantity() {\n\t\tList<PromotionShopMap> lstCurrentPromotionShopMap = new ArrayList<PromotionShopMap>();\n\t\tList<PromotionShopJoin> lstCurrentPromotionShopJoin = new ArrayList<PromotionShopJoin>();\n\t\tresetToken(result);\n\t\tactionStartTime = DateUtil.now();\n\t\tresult.put(ERROR, true);\n\t\ttry {\n\t\t\tif (currentUser == null || currentUser.getShopRoot() == null) {\n\t\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_NOT_PERMISSION, \"\"));\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tif (promotionId == null || promotionId < 1 || lstShopQttAdd == null || lstShopQttAdd.size() == 0) {\n\t\t\t\tresult.put(ERR_MSG, ValidateUtil.getErrorMsg(ConstantManager.ERR_NOT_DATA_CORRECT));\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tPromotionProgram pro = promotionProgramMgr.getPromotionProgramById(promotionId);\n\t\t\tif (pro == null) {\n\t\t\t\tresult.put(ERR_MSG, ValidateUtil.getErrorMsg(ConstantManager.ERR_NOT_EXIST_DB, \"CTKM\"));\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tif (!ActiveType.RUNNING.equals(pro.getStatus())) {\n\t\t\t\tresult.put(ERR_MSG, Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.incorrect\"));\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tlstCurrentPromotionShopMap = promotionProgramMgr.getListPromotionChildShopMapWithShopAndPromotionProgram(currentUser.getShopRoot().getShopId(), promotionId);\n\t\t\tlstCurrentPromotionShopJoin = promotionProgramMgr.getListPromotionChildShopJoinWithShopAndPromotionProgram(currentUser.getShopRoot().getShopId(), promotionId);\n\t\t\tList<PromotionShopMap> lstNewShopMap = new ArrayList<PromotionShopMap>();\n\t\t\tList<PromotionShopMap> lstNewShopMapNewTree = new ArrayList<PromotionShopMap>(); // chua shop nam trong cay moi\n\t\t\tList<PromotionShopMap> lstNewShopMapOldTree = new ArrayList<PromotionShopMap>(); // chua shop nam trong cay da them\n\t\t\tList<PromotionShopJoin> lstNewShopJoin = new ArrayList<PromotionShopJoin>();\n\t\t\tPromotionShopMap psmAdd = null;\n\t\t\tShop shT = null;\n\t\t\tDate now = commonMgr.getSysDate();\n\t\t\tLong idt = null;\n\t\t\tfor (int i = 0, sz = lstShopQttAdd.size(); i < sz; i++) {\n\t\t\t\tPromotionShopQttVO promotionShopQttVO = lstShopQttAdd.get(i);\n\t\t\t\tif (promotionShopQttVO != null) {\n\t\t\t\t\tidt = promotionShopQttVO.getShopId();\n\t\t\t\t\tif (super.getMapShopChild().get(idt) == null) {\n\t\t\t\t\t\tresult.put(ERR_MSG, R.getResource(\"common.cms.shop.undefined\"));\n\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t}\n\t\t\t\t\tshT = shopMgr.getShopById(idt);\n\t\t\t\t\tif (shT == null || shT.getType() == null || (!ShopSpecificType.NPP.equals(shT.getType().getSpecificType()) && !ShopSpecificType.NPP_MT.equals(shT.getType().getSpecificType()))) {\n\t\t\t\t\t\tresult.put(ERR_MSG, R.getResource(\"common.cms.shop.undefined\"));\n\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t}\n\t\t\t\t\tif (!ActiveType.RUNNING.equals(shT.getStatus())) {\n\t\t\t\t\t\tresult.put(ERR_MSG, ValidateUtil.getErrorMsg(ConstantManager.ERR_STATUS_INACTIVE, shT.getShopCode()));\n\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t}\n\t\t\t\t\tPromotionShopMap psm = promotionProgramMgr.getPromotionShopMap(idt, promotionId);\n\t\t\t\t\tif (psm != null && ActiveType.RUNNING.equals(psm.getStatus())) {\n\t\t\t\t\t\tresult.put(ERR_MSG, Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.shop.exist.shop.map.view\", shT.getShopCode()));\n\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t}\n\t\t\t\t\tpsmAdd = new PromotionShopMap();\n\t\t\t\t\tpsmAdd.setPromotionProgram(pro);\n\t\t\t\t\tpsmAdd.setShop(shT);\n\t\t\t\t\tpsmAdd.setStatus(ActiveType.RUNNING);\n\t\t\t\t\tpsmAdd.setCreateDate(now);\n\t\t\t\t\tpsmAdd.setCreateUser(currentUser.getUserName());\n\t\t\t\t\tpsmAdd.setFromDate(pro.getFromDate());\n\t\t\t\t\tpsmAdd.setToDate(pro.getToDate());\n\t\t\t\t\tif (promotionShopQttVO.getQuantityMax() != null) {\n\t\t\t\t\t\tif (!ValidateUtil.validateNumber(promotionShopQttVO.getQuantityMax().toString()) || promotionShopQttVO.getQuantityMax().intValue() < 0) {\n\t\t\t\t\t\t\tresult.put(ERR_MSG, R.getResource(\"catalog.promotion.shop.add.map.quantity.max.error\", shT.getShopCode()));\n\t\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpsmAdd.setQuantityMax(promotionShopQttVO.getQuantityMax());\n\t\t\t\t\t}\n\t\t\t\t\tif (promotionShopQttVO.getNumMax() != null) {\n\t\t\t\t\t\tif (!ValidateUtil.validateNumber(promotionShopQttVO.getNumMax().toString()) || promotionShopQttVO.getNumMax().intValue() < 0) {\n\t\t\t\t\t\t\tresult.put(ERR_MSG, R.getResource(\"catalog.promotion.shop.add.map.num.max.error\", shT.getShopCode()));\n\t\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpsmAdd.setNumMax(promotionShopQttVO.getNumMax());\n\t\t\t\t\t}\n\t\t\t\t\tif (promotionShopQttVO.getAmountMax() != null) {\n\t\t\t\t\t\tif (!ValidateUtil.validateNumber(promotionShopQttVO.getAmountMax().toString()) || promotionShopQttVO.getAmountMax().intValue() < 0) {\n\t\t\t\t\t\t\tresult.put(ERR_MSG, R.getResource(\"catalog.promotion.shop.add.map.amount.max.error\", shT.getShopCode()));\n\t\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpsmAdd.setAmountMax(promotionShopQttVO.getAmountMax());\n\t\t\t\t\t}\n\t\t\t\t\t// ktra co cha phan bo k\n\t\t\t\t\tList<Shop> listParentShop = shopMgr.getListParentShopId(ActiveType.RUNNING.getValue(), idt);\n\t\t\t\t\tPromotionShopJoin parentAllotion = getParentPromotionShopJoinAllcation(listParentShop, lstCurrentPromotionShopJoin);\n\t\t\t\t\tif (parentAllotion == null) {\n\t\t\t\t\t\tlstNewShopMapNewTree.add(psmAdd);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlstNewShopMapOldTree.add(psmAdd);\n\t\t\t\t\t\t// them cac shop cha con thieu\n\t\t\t\t\t\tfor (Shop shop : listParentShop) {\n\t\t\t\t\t\t\tif (shop.getId() != null && parentAllotion.getShop() != null && shop.getId().equals(parentAllotion.getShop().getId())) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tPromotionShopJoin shopAdded = getParentPromotionShopJoin(lstNewShopJoin, shop.getId());\n\t\t\t\t\t\t\tif (shopAdded != null) {\n\t\t\t\t\t\t\t\tshopAdded.setQuantityMax(shopAdded.getQuantityMax() == null ? promotionShopQttVO.getQuantityMax() : (shopAdded.getQuantityMax() + promotionShopQttVO.getQuantityMax()));\n\t\t\t\t\t\t\t\tshopAdded.setNumMax(shopAdded.getNumMax() == null ? promotionShopQttVO.getNumMax() : shopAdded.getNumMax().add(promotionShopQttVO.getNumMax()));\n\t\t\t\t\t\t\t\tshopAdded.setAmountMax(shopAdded.getAmountMax() == null ? promotionShopQttVO.getAmountMax() : shopAdded.getAmountMax().add(promotionShopQttVO.getAmountMax()));\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tPromotionShopJoin newShopJoin = new PromotionShopJoin();\n\t\t\t\t\t\t\t\tnewShopJoin.setPromotionProgram(pro);\n\t\t\t\t\t\t\t\tnewShopJoin.setShop(shop);\n\t\t\t\t\t\t\t\tnewShopJoin.setStatus(ActiveType.RUNNING);\n\t\t\t\t\t\t\t\tnewShopJoin.setCreateDate(now);\n\t\t\t\t\t\t\t\tnewShopJoin.setCreateUser(currentUser.getUserName());\n\t\t\t\t\t\t\t\tnewShopJoin.setFromDate(pro.getFromDate());\n\t\t\t\t\t\t\t\tnewShopJoin.setToDate(pro.getToDate());\n\t\t\t\t\t\t\t\tnewShopJoin.setQuantityMax(promotionShopQttVO.getQuantityMax());\n\t\t\t\t\t\t\t\tnewShopJoin.setNumMax(promotionShopQttVO.getNumMax());\n\t\t\t\t\t\t\t\tnewShopJoin.setAmountMax(promotionShopQttVO.getAmountMax());\n\t\t\t\t\t\t\t\tlstNewShopJoin.add(newShopJoin);\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\tlstNewShopMap.add(psmAdd);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// validate cac shop thuoc nhanh moi\n\t\t\tif (lstNewShopMapNewTree.size() > 0) {\n\t\t\t\t// lay cau hinh bat buoc cac node NPP phai duoc phan bo\n\t\t\t\tList<ApParam> allocationPromotionShopConfigs = apParamMgr.getListApParam(ApParamType.ALLOCATION_PROMOTION_SHOP, ActiveType.RUNNING);\n\t\t\t\tisAllocationPromotionShop = (allocationPromotionShopConfigs == null || allocationPromotionShopConfigs.size() == 0 || Constant.ONE_TEXT.equals(allocationPromotionShopConfigs.get(0).getValue()));\n\t\t\t\tif (isAllocationPromotionShop) {\n\t\t\t\t\terrMsg = validateQuantityAmountNumPromotionShop(lstCurrentPromotionShopMap, lstNewShopMapNewTree);\n\t\t\t\t\tif (!StringUtil.isNullOrEmpty(errMsg)) {\n\t\t\t\t\t\tresult.put(\"errMsg\", errMsg);\n\t\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// validate cac shop thuoc nhanh da them\n\t\t\tif (lstNewShopMapOldTree.size() > 0) {\n\t\t\t\tlstCurrentPromotionShopMap.addAll(lstNewShopMapOldTree);\n\t\t\t\tlstCurrentPromotionShopJoin.addAll(lstNewShopJoin);\n\t\t\t\terrMsg = validateQuantityAmountNumPromotionShop(lstCurrentPromotionShopMap, lstNewShopMapOldTree);\n\t\t\t\tif (!StringUtil.isNullOrEmpty(errMsg)) {\n\t\t\t\t\tresult.put(\"errMsg\", errMsg);\n\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\treturn JSON;\n\t\t\t\t}\n\t\t\t\terrMsg = validateAllocateParentChildPromotionShop(lstCurrentPromotionShopMap, lstCurrentPromotionShopJoin);\n\t\t\t\tif (!StringUtil.isNullOrEmpty(errMsg)) {\n\t\t\t\t\tresult.put(\"errMsg\", errMsg);\n\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\treturn JSON;\n\t\t\t\t}\n\t\t\t\terrMsg = validatePromotionShop(lstCurrentPromotionShopMap, lstCurrentPromotionShopJoin);\n\t\t\t\tif (!StringUtil.isNullOrEmpty(errMsg)) {\n\t\t\t\t\tresult.put(\"errMsg\", errMsg);\n\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\treturn JSON;\n\t\t\t\t}\n\t\t\t}\n\t\t\tpromotionProgramMgr.addPromotionShop(lstNewShopMap, lstNewShopJoin, getLogInfoVO());\n\t\t\tresult.put(ERROR, false);\n\t\t} catch (BusinessException ex) {\n\t\t\tLogUtility.logErrorStandard(ex, \"vnm.web.action.program.ProgramCatalogAction.saveShopSupportQuantity\", createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(ERROR, true);\n\t\t\tresult.put(ERR_MSG, ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t} finally {\n\t\t\tlstCurrentPromotionShopMap.clear();\n\t\t\tlstCurrentPromotionShopMap = null;\n\t\t\tlstCurrentPromotionShopJoin.clear();\n\t\t\tlstCurrentPromotionShopJoin = null;\n\t\t}\n\t\treturn JSON;\n\t}", "public static MozuUrl getWishlistItemsByWishlistNameUrl(Integer customerAccountId, String filter, Integer pageSize, String responseFields, String sortBy, Integer startIndex, String wishlistName)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/customers/{customerAccountId}/{wishlistName}/items?startIndex={startIndex}&pageSize={pageSize}&sortBy={sortBy}&filter={filter}&responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"customerAccountId\", customerAccountId);\r\n\t\tformatter.formatUrl(\"filter\", filter);\r\n\t\tformatter.formatUrl(\"pageSize\", pageSize);\r\n\t\tformatter.formatUrl(\"responseFields\", responseFields);\r\n\t\tformatter.formatUrl(\"sortBy\", sortBy);\r\n\t\tformatter.formatUrl(\"startIndex\", startIndex);\r\n\t\tformatter.formatUrl(\"wishlistName\", wishlistName);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "@PutMapping(\"/{id}/update\")\n\tpublic boolean updateItemQuantity(@PathVariable Long id, @NotBlank @RequestParam Integer quantity) {\n\t\treturn itemService.updateItemQuantity(id, quantity);\n\t}", "long getQuantity();", "long getQuantity();", "@GetMapping(\"/update_to_cart\")\n\t@ResponseBody\n\tpublic String updateQuantity(@RequestParam(name = \"productId\") int id, @RequestParam(name = \"qty\", required = false) Integer qty, HttpSession session) {\n\t\tObject obj = session.getAttribute(Constant.CART_INFOR);\n\t\tMap<Integer, OrderItem> map;\n\t\tif(obj!=null) {\n\t\t\tmap = (Map<Integer, OrderItem>) obj;\n\t\t\tOrderItem orderItem = map.get(id);\n\t\t\torderItem.setQuantity(qty);\n\t\t\tsession.setAttribute(Constant.CART_INFOR, map);\n\t\t}\n\t\treturn \"\";\n\t}", "private String getResourcePath() {\n\t\tString reqResource = getRequest().getResourceRef().getPath();\n\t\treqResource = actualPath(reqResource, 1);\n\t\tLOGGERS.info(\"reqResourcePath---->\" + reqResource);\n\t\treturn reqResource;\n\t}", "public int updateWish(Wish wish) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(KEY_WISHNAME, wish.getWishName());\n values.put(KEY_STATUS, wish.getStatus());\n\n // updating row\n return db.update(TABLE_WISH, values, KEY_ID + \" = ?\",\n new String[] { String.valueOf(wish.getId()) });\n }", "int getQuantity();", "public int getRefundQuantity() {\n return refundQuantity;\n }", "int getBuyQuantity();", "public int getQuantity() {\r\n return quantity;\r\n }", "private void getWishListInfo(final long productId) {\n User user = SettingsMy.getActiveUser();\n if (user != null) {\n // determine if product is in wishlist\n //String wishlistUrl = String.format(EndPoints.WISHLIST_IS_IN_WISHLIST, SettingsMy.getActualNonNullShop(getActivity()).getId(), productId);\n String wishlistUrl = String.format(EndPoints.WISHLIST);\n GsonRequest<WishlistResponse> getWishlistInfo = new GsonRequest<WishlistResponse>(Request.Method.GET, wishlistUrl, null, WishlistResponse.class, new Response.Listener<WishlistResponse>() {\n @Override\n public void onResponse(@NonNull WishlistResponse response) {\n if(response != null) {\n if(response.getStatusText() != null && response.getStatusCode() != null) {\n if (response.getStatusCode().toLowerCase().equals(CONST.RESPONSE_CODE) || response.getStatusText().toLowerCase().equals(CONST.RESPONSE_UNAUTHORIZED)) {\n LoginDialogFragment.logoutUser(true);\n DialogFragment loginExpiredDialogFragment = new LoginExpiredDialogFragment();\n loginExpiredDialogFragment.show(getFragmentManager(), LoginExpiredDialogFragment.class.getSimpleName());\n }\n }\n else\n prepareWishListButton(response, productId);\n }\n else\n Timber.d(\"returned null response during getWishListInfo\");\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n MsgUtils.logAndShowErrorMessage(getActivity(), error);\n }\n }, getFragmentManager(), \"\");\n getWishlistInfo.setRetryPolicy(MyApplication.getDefaultRetryPolice());\n getWishlistInfo.setShouldCache(false);\n MyApplication.getInstance().addToRequestQueue(getWishlistInfo, CONST.PRODUCT_REQUESTS_TAG);\n }\n }", "private void updateProductQnt(List<Product> productList) {\n if (productList != null) {\n productList.forEach(product -> {\n Product productToSave = productService.findOne(product.getId());\n productToSave.setQuantity(productToSave.getQuantity() - product.getQuantity());\n productService.save(productToSave);\n });\n }\n }", "@ResponseBody\n\t@RequestMapping(value=\"/getList\", method={RequestMethod.GET,\n\t\t\tRequestMethod.POST})\n\tpublic String getWeightList(HttpServletRequest request,String skuId){\n\t\tInteger size = request.getParameter(\"pageSize\") == null ? null\n\t\t\t\t: Integer.parseInt(request.getParameter(\"pageSize\"));\n\t\tif (size == null || size == 0) {\n\t\t\tsize = 5;\n\t\t}\n\t\tInteger currPage = Integer.parseInt(request.getParameter(\"page\"));\n\t\tint start = (currPage - 1) * size;\n\t\t//PrivateSignatureHandler handler = new PrivateSignatureHandler();\n\t\tsignatureHandler.setPrivateKeyString(rsaResource.get());\n\t\tif(skuId==\"\"||skuId==null){\n\t\t\tskuId = null;\n\t\t}\n\t\tJSONObject messageBody = new JSONObject();\n\t\tmessageBody.put(\"limit\", size);\n\t\tmessageBody.put(\"start\", start);\n\t\tmessageBody.put(\"skuId\", skuId);\n\t\tString signatureJson = null;\n\t\ttry {\n\t\t\tsignatureJson = signatureHandler.sign(messageBody, CookieUtil.getUserName(request));\n\t\t} catch (Exception e1) {\n\t\t\tlogger.error(e1.getMessage(), e1);\n\t\t}\n\t\tString resultJson = null;\n\t\ttry {\n\t\t\tresultJson = HttpRequester.httpPostString(weightBoostConfig.getWeight_path() + weightBoostConfig.getWeight_read(),\n\t\t\t\t\tsignatureJson);\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t} catch (HttpRequestException e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t} catch (URISyntaxException e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t\tJSONObject Json = JSONObject.parseObject(resultJson);\n\t\tInteger total = Json.getInteger(\"total\");\n\t\tint pageCount = total % size == 0 ? total / size : (total / size + 1);\n\t\tJson.put(\"pageCount\", pageCount);\n\t\treturn Json.toString();\n\t}", "@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/ConsultarIndiceEjecucionAnio\";\r\n\t}", "private String getUriForOrderStatus(UriInfo uriInfo, OrderRepresentation ordRep) {\r\n\t\tString url = uriInfo.getBaseUriBuilder()\r\n\t\t\t\t.path(OrderResource.class)\r\n\t\t\t\t.path(\"order\")\r\n\t\t\t\t.path(\"status\")\r\n\t\t\t\t.path(Integer.toString(ordRep.getOrderID()))\r\n\t\t\t\t.build()\r\n\t\t\t\t.toString();\r\n\t\treturn url;\r\n\t}", "@Override\n\tprotected String getWebServiceUri() {\n\t\treturn this.uri;\n\t}", "private void save_to_wishlist(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws Exception {\n\t\t\n\t\tSystem.out.println(\"inside save to wishlist\");\n\t\tString cart_type = request.getParameter(\"cart_type\");\n\t\tSystem.out.println(cart_type);\n\t\tString quantity[] = request.getParameterValues(\"qty_name\");\n\t\tList lqty = new ArrayList();\n\t\tfor(int i=0;i<quantity.length;i++)\n\t\t{\n\t\t\tSystem.out.println(quantity[i]);\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tUaddToCartMstVO mstVO = new UaddToCartMstVO();\n\t\tSystem.out.println(\"cart typw3333333333333333333333333333333\"+cart_type);\n\t\tmstVO.setCart_type(cart_type);\n\t\t\n\t\tHttpSession hs = request.getSession();\n\t\tint user_id=Integer.parseInt(hs.getAttribute(\"userID\").toString());\n\t\tSystem.out.println(\"User............\"+user_id);\n\t\t\n\t\tUaddToCartDAO addCartDAO;\n\t\taddCartDAO=new UaddToCartDAO();\n\n\t\tint BuyerregId = -1;\n\t\tloginVO logVo=new loginVO();\n\t\tlogVo.setLogin_id(user_id);\n\t\tList luser=addCartDAO.search_user_id(logVo);\n\t\tif(luser!=null && luser.size()>0)\n\t\t{\n\t\t\tUregistrationVO regVo=(UregistrationVO)luser.get(0);\n\t\t\tBuyerregId=regVo.getBuyer_user_id();\n\t\t\tSystem.out.println(\"Buyer user Id======================================================\"+BuyerregId);\n\t\t}\n\t\t\n\t\tUregistrationVO regVo=new UregistrationVO();\n\t\tregVo.setBuyer_user_id(BuyerregId);\n\t\t//System.out.println(\"User login id....\"+ regVo.getLoginVoObj().getLogin_id());\n\t\t\n\t\tmstVO.setBuyer_user_id(regVo);\n\t\t\n\t\t\t\t\n\t\taddCartDAO.save_to_wishlist(mstVO);\n\t\t\n\t\tSystem.out.println(\"--------------------------------------------------child Data insertion---------------------------------\");\n\t\t\n\t\t\n\t\tList l= (List)hs.getAttribute(\"product_data_wishlist\");\n\t\t\n\t\tSystem.out.println(\"LIST value::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::\"+l.toString());\n\t\t\n\t\t\n\t\tUaddToCartVO addCartVO[]=new UaddToCartVO[l.size()];\n\t\t\n\t\tUaddToCartVO temp=new UaddToCartVO();\n\t\t\n\t\t\n\t\t\n\t\tfor(int i=0;i<l.size();i++)\n\t\t{\n\t\t\t\n\t\t\ttemp=(UaddToCartVO)l.get(i);\n\t\t\taddCartVO[i]=new UaddToCartVO();\n\t\t\taddCartVO[i].setCloth_id(temp.getCloth_id());\n\t\t\taddCartVO[i].setColor_code(temp.getColor_code());\n\t\t\taddCartVO[i].setPrice(temp.getPrice());\n\t\t\taddCartVO[i].setProduct_name(temp.getProduct_name());\n\t\t\taddCartVO[i].setSize(temp.getSize());\n\t\t\taddCartVO[i].setQuantity(Integer.parseInt(quantity[i]));\n\t\t\taddCartVO[i].setDesigner_user_id(temp.getDesigner_user_id());\n\t\t\taddCartVO[i].setCartMstVOObj(mstVO);\n\t\t\taddCartDAO.save_to_cart(addCartVO[i]);\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t/*String type=mstVO.getCart_type();\n\t\tint userId=((UregistrationVO)mstVO.getBuyer_user_id()).getBuyer_user_id();\n\t\t\n\t\tSystem.out.println(\"---------------------------------------------------------------------------------------------------------------\");\n\t\tSystem.out.println(\"TYPE value is ::::::::::::::\"+type);\n\t\tSystem.out.println(\"USERID value is ::::::::::::::\"+userId);\n\n\t\tSystem.out.println(\"---------------------------------------------------------------------------------------------------------------\");\n\t\t\n*/\t\t\n\t\tresponse.sendRedirect(request.getContextPath()+\"/user/add_to_wishlist.jsp\");\n\t}", "public int getQuantity() {\r\n return quantity;\r\n }", "public int getQuantity() {\r\n return quantity;\r\n }", "public int getQuantity();", "public void setQuantity(int value) {\n this.quantity = value;\n }", "public void setQuantity(int value) {\n this.quantity = value;\n }", "public void setQuantity(int value) {\n this.quantity = value;\n }", "java.lang.String getCouponIconUrl();", "public int getQuantity() {\n return quantity;\n }", "public int getQuantity() {\n return quantity;\n }", "public int getQuantity() {\n return quantity;\n }", "public int getQuantity() {\n return quantity;\n }", "public int getQuantity() {\n return quantity;\n }", "public int getQuantity() {\n return quantity;\n }", "@RequestMapping(\"/{cartId}\")\n public String getNewUrl(@PathVariable (value = \"cartId\") int cartId, Model model) {\n \tSystem.out.println(\"hello user Cart Controller func 2===\"+cartId);\n model.addAttribute(\"cartId\", cartId);\n\n return \"cart\";\n }", "public static URL getUrlForPolicySync(){\r\n\t\tString strUrl = getBaseURL() + \"mip_services/core/api/1.0/policy\";\r\n\t\treturn str2url(strUrl);\r\n\t}", "public Long getQuantity() {\r\n return quantity;\r\n }", "@Override\r\n public void ItemQuantity(int quantity) {\n this.quantity = quantity;\r\n }", "public String getExchangeRateUrl() {\n return exchangeRateUrl;\n }", "@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/GuardarSustento\";\r\n\t}", "public int getQuantity()\n {\n return quantity;\n }", "public Long getQuantity() {\n return quantity;\n }", "public int getQty() {\n return qty;\n }", "private String getPingUri() {\n\t\treturn BASE_URI + \"?_wadl\";\n\t}", "public String formURL(){\n String target = feedURL + \"?s=\" + marketInformation.getTickers().stream().reduce( (a, b) -> a + \",\" + b).get();\n // p0 is just the prices ordered the same as the request\n target += \"&f=p0\";\n return target;\n }", "public Integer getQuantity();", "public void setQuantity(int qty) {\r\n\t\tthis.quantity = qty;\r\n\t}", "public WishlistItemTbl (\n\t\t Integer in_wishlistItemId\n ) {\n\t\tthis.setWishlistItemId(in_wishlistItemId);\n }", "Quantity getQuantity();", "public void updateWorkerUri(Worker worker) throws IOException {\n String uri = worker.getNotificationUri();\n //String action = worker.getNextAction().toString();\n\n OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\n MediaType mediaType = MediaType.parse(\"text/plain\");\n RequestBody body = RequestBody.create(mediaType, \"\");\n Request request = new Request.Builder()\n .url(uri)\n .method(\"PATCH\", body)\n .build();\n Response response = client.newCall(request).execute();\n //System.out.println(\"POST sent to worker \"+uri);\n\n }", "@Override\r\n\tprotected String getUrl() {\n\t\tif(tipo==PROFIT_DATOS_COMERCIALES){\r\n\t\t\treturn urlWS + \"/ProfitResumen\";\r\n\t\t}else{\r\n\t\t\treturn urlWS + \"/ProfitDataAdicional\";\r\n\t\t}\r\n\t}", "public Integer getQuantity() {\n return quantity;\n }", "public Integer getQuantity() {\n return quantity;\n }", "public void setQuantity(int quantity) {\r\n this.quantity = quantity;\r\n }", "public int getQuantity()\r\n {\r\n return _quantity;\r\n }", "public int getQuantity() {\r\n\t\treturn quantity;\r\n\t}", "public long getQuantity() {\n return quantity_;\n }", "public long getQuantity() {\n return quantity_;\n }", "public long getQuantity() {\n return quantity_;\n }", "public long getQuantity() {\n return quantity_;\n }", "@Schema(description = \"Number of units consumed\")\n public Long getQuantity() {\n return quantity;\n }", "public int getQuantity(){\n\t\treturn quantity;\n\t}", "public int getQuantity() \n\t{\n\t\treturn quantity;\n\t}", "public String getProductUrl() {\n\t\treturn productUrl;\n\t}", "public static URL getUrlForPostSetCheckout()\r\n {\r\n String strUrl = getBaseURL() +\"account_services/api/1.0/payment/paypal/set-checkout\";\r\n return str2url( strUrl );\r\n }", "public void setQuantity(String quantity) {\n this.quantity = quantity;\n }", "public static JSONObject updateSubscription( ArrayList<OrderItems> orderItemList, String subscriptionOrder) throws JSONException{\n\t\tJSONObject updatedObject = new JSONObject();\n\t\tboolean updated= false, deleted = false, mealTypesInserted=false, itemDetailsInserted=false;\n\t\tdouble totPrice = 0;\n\t\tSubscriptionBean subscriptionBean = new SubscriptionBean();\n\t\tsubscriptionBean.subscriptionId = getSubcriptionId(subscriptionOrder);\n\t\tsubscriptionBean.subscriptionNo = subscriptionOrder;\n\n\t\tList<Integer> dealingKitchenIds = new ArrayList<Integer>();\n\t\tArrayList<KitchenDetailsBean> kitchenDetailsBeanList = getKitchenDetails(getSubcriptionAreaId(subscriptionOrder));\n\n\t\tint listSize = kitchenDetailsBeanList.size();\n\t\tfor(int i=0; i< orderItemList.size() ; i++){\n\t\t\tfor(int j=0 ; j< listSize ;j++){\n\t\t\t\tif(orderItemList.get(i).cuisineId.equals(kitchenDetailsBeanList.get(j).getCuisineId()) \n\t\t\t\t\t\t&& orderItemList.get(i).categoryId.equals(kitchenDetailsBeanList.get(j).getCategoryId())){\n\t\t\t\t\tSystem.out.println(\"Selected kitchen id->\"+kitchenDetailsBeanList.get(j).getKitchenId() );\n\t\t\t\t\tdealingKitchenIds.add(kitchenDetailsBeanList.get(j).getKitchenId());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"Dealing kitchens-\"+dealingKitchenIds);\n\n\t\tfor(int i=0;i<orderItemList.size();i++){\n\t\t\ttotPrice += orderItemList.get(i).price;\n\t\t}\n\n\n\t\tArrayList<Integer> idlist = getSubscriptionMealIdList(subscriptionOrder);\n\t\ttry {\n\t\t\tConnection connection = DBConnection.createConnection();\n\t\t\tSQLDELETEITEMS:{\n\t\t\t\tPreparedStatement preparedStatement = null;\n\t\t\t\tString sql =\"UPDATE fapp_subscription_meals_details SET is_delete = 'Y' WHERE subscription_meal_id = ?\";\n\t\t\t\ttry {\n\t\t\t\t\tpreparedStatement = connection.prepareStatement(sql);\n\t\t\t\t\tfor(int i=0;i<idlist.size();i++){\n\t\t\t\t\t\tpreparedStatement.setInt(1, idlist.get(i));\n\t\t\t\t\t\tpreparedStatement.addBatch();\n\t\t\t\t\t}\n\t\t\t\t\tint [] count = preparedStatement.executeBatch();\n\n\t\t\t\t\tfor(Integer integer : count){\n\t\t\t\t\t\tdeleted = true;\n\t\t\t\t\t}\n\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}finally{\n\t\t\t\t\tif(preparedStatement!=null){\n\t\t\t\t\t\tpreparedStatement.close();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(deleted){\n\t\t\t\tSystem.out.println(\"1.Updation complete in fapp_subscription_meals_details !!!\");\t\n\t\t\t}\n\n\t\t\tSQLDELETEMEALTYPE:{\n\t\t\t\tPreparedStatement preparedStatement = null;\n\t\t\t\tString sql =\"UPDATE fapp_subscription_meals SET is_delete='Y' WHERE subscription_no = ?\";\n\t\t\t\ttry {\n\t\t\t\t\tpreparedStatement = connection.prepareStatement(sql);\n\t\t\t\t\tpreparedStatement.setString(1, subscriptionOrder);\n\t\t\t\t\tint count = preparedStatement.executeUpdate();\n\t\t\t\t\tif(count>0){\n\t\t\t\t\t\tupdated = true;\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}finally{\n\t\t\t\t\tif(preparedStatement!=null){\n\t\t\t\t\t\tpreparedStatement.close();\n\t\t\t\t\t}\n\t\t\t\t\tif(connection!=null){\n\t\t\t\t\t\tconnection.close();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\n\t\t\tif(updated){\n\t\t\t\tSystem.out.println(\"2.Updation complete in fapp_subscription_meals with sub no- \"+subscriptionOrder+\"!!!\");\t\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\n\n\t\tArrayList<Integer> mealTypeIdList = saveMealWithDay(subscriptionBean, orderItemList);\n\t\tif(mealTypeIdList.size()>0){\n\t\t\tmealTypesInserted = true;\n\t\t}\n\n\t\titemDetailsInserted = saveMealItems(mealTypeIdList, orderItemList,dealingKitchenIds,subscriptionBean.subscriptionId);\n\n\t\tif(updated && deleted && mealTypesInserted && itemDetailsInserted){\n\t\t\tupdatedObject.put(\"success\", true);\n\t\t}else{\n\t\t\tupdatedObject.put(\"success\", false);\n\t\t}\n\t\tSystem.out.println(\"Edit subscription JSON response from web service is--->\"+updatedObject);\n\t\treturn updatedObject;\n\t}", "public void updateQuantityProduct(List<ItemCart> list) {\n\t\tfor (ItemCart i : list) {\n\t\t\tProduct p = i.getP();\n\t\t\t// b1: lay quantity khach hang mua\n\t\t\tint quatity = i.getQuantity();\n\t\t\t// b2: lay quantity cua Product duoi DB\n\t\t\tProduct pDB = new ProductDAO().lookUp(p.getId());\n\t\t\tint quantityNew = pDB.getSoLuongTrongKho() - quatity;\n\t\t\tnew ProductDAO().updateQuatity(p.getId(), quantityNew);\n\n\t\t}\n\n\t}", "public void setQuantity(int quantity) {\n this.quantity = quantity;\n }", "public void setQuantity(int quantity) {\n this.quantity = quantity;\n }", "public int getQuantity()\n {\n \treturn quantity;\n }", "public String getRelatedProductsURL(Context context){\n return this.getURL(context.getResources().getString(R.string.related_products))+\"&product_id=%1$s\";\n }", "int getSellQuantity();", "java.lang.String getPaymentUrl();", "public int getQuantity() {\n\t\treturn quantity;\n\t}", "public int getQuantity() {\n\t\treturn quantity;\n\t}" ]
[ "0.60686344", "0.5645764", "0.52476954", "0.5118859", "0.50274974", "0.49718592", "0.49355993", "0.4926755", "0.4864948", "0.48187044", "0.48010218", "0.4794511", "0.47869402", "0.47734886", "0.4747583", "0.47351152", "0.4706875", "0.46719882", "0.46646774", "0.46390784", "0.4615043", "0.46080562", "0.45911607", "0.45748997", "0.45419648", "0.45219156", "0.45143953", "0.45058677", "0.45021594", "0.44828814", "0.44828814", "0.44819", "0.44768128", "0.44697943", "0.4466189", "0.4450684", "0.44483483", "0.44382882", "0.4433665", "0.4430626", "0.44256625", "0.44173104", "0.4417081", "0.441696", "0.44169468", "0.44123313", "0.43903804", "0.4390114", "0.43874395", "0.43874395", "0.43874395", "0.43870336", "0.43849084", "0.43849084", "0.43849084", "0.43849084", "0.43849084", "0.43849084", "0.43803167", "0.4378901", "0.4374206", "0.43734306", "0.43694136", "0.4362829", "0.43595678", "0.43556806", "0.4352885", "0.43528515", "0.43404266", "0.43366465", "0.43298477", "0.43267775", "0.43240395", "0.432292", "0.43221137", "0.43170896", "0.43170896", "0.43125913", "0.43113273", "0.43097687", "0.43076214", "0.43076214", "0.4296488", "0.4296488", "0.4294116", "0.4291871", "0.42916647", "0.42876616", "0.42803624", "0.42798328", "0.42795783", "0.42749155", "0.4270084", "0.4270084", "0.42670524", "0.42654032", "0.4263756", "0.42616287", "0.42610034", "0.42610034" ]
0.7145164
0
Get Resource Url for UpdateWishlistItem
public static MozuUrl updateWishlistItemUrl(String responseFields, String wishlistId, String wishlistItemId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}?responseFields={responseFields}"); formatter.formatUrl("responseFields", responseFields); formatter.formatUrl("wishlistId", wishlistId); formatter.formatUrl("wishlistItemId", wishlistItemId); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static MozuUrl getWishlistItemUrl(String responseFields, String wishlistId, String wishlistItemId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}?responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"responseFields\", responseFields);\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\tformatter.formatUrl(\"wishlistItemId\", wishlistItemId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "public static MozuUrl updateWishlistItemQuantityUrl(Integer quantity, String responseFields, String wishlistId, String wishlistItemId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}/{quantity}?responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"quantity\", quantity);\r\n\t\tformatter.formatUrl(\"responseFields\", responseFields);\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\tformatter.formatUrl(\"wishlistItemId\", wishlistItemId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "public static MozuUrl addItemToWishlistUrl(String responseFields, String wishlistId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items?responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"responseFields\", responseFields);\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "public static MozuUrl deleteWishlistItemUrl(String wishlistId, String wishlistItemId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}\");\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\tformatter.formatUrl(\"wishlistItemId\", wishlistItemId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/ActualizarCompromiso\";\r\n\t}", "@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/GuardarSustento\";\r\n\t}", "@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/actualizarCliente\";\r\n\t}", "public static MozuUrl getWishlistItemsUrl(String filter, Integer pageSize, String responseFields, String sortBy, Integer startIndex, String wishlistId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items?startIndex={startIndex}&pageSize={pageSize}&sortBy={sortBy}&filter={filter}&responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"filter\", filter);\r\n\t\tformatter.formatUrl(\"pageSize\", pageSize);\r\n\t\tformatter.formatUrl(\"responseFields\", responseFields);\r\n\t\tformatter.formatUrl(\"sortBy\", sortBy);\r\n\t\tformatter.formatUrl(\"startIndex\", startIndex);\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "public static MozuUrl removeAllWishlistItemsUrl(String wishlistId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items\");\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "java.lang.String getBookingURL();", "public static URL getUrlForPolicySync(){\r\n\t\tString strUrl = getBaseURL() + \"mip_services/core/api/1.0/policy\";\r\n\t\treturn str2url(strUrl);\r\n\t}", "public void clickWishlistLink()\n\t{\n \telementUtils.performElementClick(wbWishlistLink);\n\t}", "private String getPingUri() {\n\t\treturn BASE_URI + \"?_wadl\";\n\t}", "@Override\n\tprotected String getWebServiceUri() {\n\t\treturn this.uri;\n\t}", "public void addWishlistItem(WishlistItem wishItem){\n fStore.collection(\"user_profiles\").document(fUser.getUid()).collection(\"wishlist\").document(wishItem.getWishID()).set(wishItem).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n\n }\n });\n }", "private void getWishListInfo(final long productId) {\n User user = SettingsMy.getActiveUser();\n if (user != null) {\n // determine if product is in wishlist\n //String wishlistUrl = String.format(EndPoints.WISHLIST_IS_IN_WISHLIST, SettingsMy.getActualNonNullShop(getActivity()).getId(), productId);\n String wishlistUrl = String.format(EndPoints.WISHLIST);\n GsonRequest<WishlistResponse> getWishlistInfo = new GsonRequest<WishlistResponse>(Request.Method.GET, wishlistUrl, null, WishlistResponse.class, new Response.Listener<WishlistResponse>() {\n @Override\n public void onResponse(@NonNull WishlistResponse response) {\n if(response != null) {\n if(response.getStatusText() != null && response.getStatusCode() != null) {\n if (response.getStatusCode().toLowerCase().equals(CONST.RESPONSE_CODE) || response.getStatusText().toLowerCase().equals(CONST.RESPONSE_UNAUTHORIZED)) {\n LoginDialogFragment.logoutUser(true);\n DialogFragment loginExpiredDialogFragment = new LoginExpiredDialogFragment();\n loginExpiredDialogFragment.show(getFragmentManager(), LoginExpiredDialogFragment.class.getSimpleName());\n }\n }\n else\n prepareWishListButton(response, productId);\n }\n else\n Timber.d(\"returned null response during getWishListInfo\");\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n MsgUtils.logAndShowErrorMessage(getActivity(), error);\n }\n }, getFragmentManager(), \"\");\n getWishlistInfo.setRetryPolicy(MyApplication.getDefaultRetryPolice());\n getWishlistInfo.setShouldCache(false);\n MyApplication.getInstance().addToRequestQueue(getWishlistInfo, CONST.PRODUCT_REQUESTS_TAG);\n }\n }", "public static MozuUrl getWishlistItemsByWishlistNameUrl(Integer customerAccountId, String filter, Integer pageSize, String responseFields, String sortBy, Integer startIndex, String wishlistName)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/customers/{customerAccountId}/{wishlistName}/items?startIndex={startIndex}&pageSize={pageSize}&sortBy={sortBy}&filter={filter}&responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"customerAccountId\", customerAccountId);\r\n\t\tformatter.formatUrl(\"filter\", filter);\r\n\t\tformatter.formatUrl(\"pageSize\", pageSize);\r\n\t\tformatter.formatUrl(\"responseFields\", responseFields);\r\n\t\tformatter.formatUrl(\"sortBy\", sortBy);\r\n\t\tformatter.formatUrl(\"startIndex\", startIndex);\r\n\t\tformatter.formatUrl(\"wishlistName\", wishlistName);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "public String getBonusUrl() {\n return bonusUrl;\n }", "public void updateWorkerUri(Worker worker) throws IOException {\n String uri = worker.getNotificationUri();\n //String action = worker.getNextAction().toString();\n\n OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\n MediaType mediaType = MediaType.parse(\"text/plain\");\n RequestBody body = RequestBody.create(mediaType, \"\");\n Request request = new Request.Builder()\n .url(uri)\n .method(\"PATCH\", body)\n .build();\n Response response = client.newCall(request).execute();\n //System.out.println(\"POST sent to worker \"+uri);\n\n }", "public String getResourceUrl() {\n\t\treturn resourceUrl;\n\t}", "public String getCorrectURL() {\n\t\treturn defineCorrectURL(); \t\r\n\t}", "java.lang.String getApiUrl();", "private String getUriForAdd(UriInfo uriInfo, OrderRepresentation ordRep) {\r\n\t\tString url = uriInfo.getBaseUriBuilder()\r\n\t\t\t\t.path(OrderResource.class)\r\n\t\t\t\t.path(\"order\")\r\n\t\t\t\t.build()\r\n\t\t\t\t.toString();\r\n\t\treturn url;\r\n\t}", "@Override\r\n public String getFriendlyURI() {\r\n return createURI(false, false);\r\n }", "public Integer getId() {\n\t\treturn wishlistItemId;\n\t}", "private String getResourcePath() {\n\t\tString reqResource = getRequest().getResourceRef().getPath();\n\t\treqResource = actualPath(reqResource, 1);\n\t\tLOGGERS.info(\"reqResourcePath---->\" + reqResource);\n\t\treturn reqResource;\n\t}", "@Override\n\tpublic String buidWfsURL(WrapperFilter filter) {\n\t\treturn null;\n\t}", "public int updateWish(Wish wish) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(KEY_WISHNAME, wish.getWishName());\n values.put(KEY_STATUS, wish.getStatus());\n\n // updating row\n return db.update(TABLE_WISH, values, KEY_ID + \" = ?\",\n new String[] { String.valueOf(wish.getId()) });\n }", "public String getWebhookUrl() {\n return webhookUrl;\n }", "public String getResourceUrl() {\n return this.resourceUrl;\n }", "private String getURL() {\n\t\t// TODO : Generate URL\n\t\treturn null;\n\t}", "public String getPostURI() {\n return host + postResource;\n }", "public String getApiUrl();", "String webSocketUri();", "@GET\n @Path(\"/addwl/{beerId}\")\n @Produces({MediaType.TEXT_XML, MediaType.APPLICATION_JSON , MediaType.APPLICATION_XML })\n public long addBeerToWishList( @PathParam(\"beerId\") Long beerId) {\n\t\t\n \t\n \thelper = new Helper();\n\t\tsoapService = helper.getSoapService();\n\t\tUser user = helper.getUserByUsername(username);\n Beer beer = soapService.readBeer(beerId);\n \n soapService.addBeerToUser(user, beer);\n \n System.out.println(\"beer added to wishlist...\");\n \n \treturn beerId;\n \t \t\n }", "public int updateById(WeChatPublic wp);", "public static Integer getWishListNumber() {\n return wishListNumber;\n }", "public URL getURL()\n/* */ {\n/* 135 */ return ResourceUtils.getResourceAsURL(this, this);\n/* */ }", "@java.lang.Override\n public java.lang.String getUrl() {\n return instance.getUrl();\n }", "@java.lang.Override\n public java.lang.String getUrl() {\n return instance.getUrl();\n }", "private String getUriForSelf(UriInfo uriInfo,OrderRepresentation ordRep){\r\n\t\tString url = uriInfo.getBaseUriBuilder()\r\n\t\t\t\t\t\t\t.path(OrderResource.class)\r\n\t\t\t\t\t\t\t.path(\"order\")\r\n\t\t\t\t\t\t\t.path(\"Order_ID\" +ordRep.getOrderID())\r\n\t\t\t\t\t\t\t.build()\r\n\t\t\t\t\t\t\t.toString();\r\n\t\treturn url;\r\n\t\t\r\n\t}", "@RequestMapping(method = RequestMethod.GET, value = \"/{id}\")\r\n\t@PreAuthorize(\"hasRole('ROLE_MODERATOR') or hasPermission(#id,'WebItem','edit')\")\r\n\tpublic String getWebItem(@PathVariable long id, Model model) throws IOException, URISyntaxException {\r\n\t\tWebItem webItem = webItemService.getWebItemById(id);\r\n\t\tString uri = webItem.getSourceURL();\r\n\t\tArrayList<String> ImageUrls = new ArrayList<String>();\r\n\r\n\t\tWebItemMapper webItemMapper=WebItemMapperFactory.getMapper(uri);\r\n\t\tImageUrls=webItemMapper.getImageUrls();\r\n\r\n\t\tmodel.addAllAttributes(initializeModelForEntryForm());\r\n\t\tmodel.addAttribute(\"webItem\", webItem);\r\n\t\tmodel.addAttribute(\"actionTitle\", \"Edit\");\r\n\t\tmodel.addAttribute(\"imageUrls\", ImageUrls);\r\n\r\n\t\treturn \"webItemView\";\r\n\t}", "String getPreviewUrlTemplate();", "public static URL getUrlForGetAppList()\r\n {\r\n String idCountry = P.getCountryId(); \r\n String strUrl = getBaseURL() +\"account_services/api/1.0/static_content/apps/client_type/3/country_code/\"+idCountry+\"/language_code/\"+\r\n \t\tA.getContext().getString( R.string.backend_language_code );\r\n return str2url( strUrl );\r\n }", "@Override\r\n\tpublic SweetItem updateSweetItem(SweetItem SweetItem) throws SweetItemNotFoundException {\n\t\treturn null;\r\n\t}", "public String getRelatedProductsURL(Context context){\n return this.getURL(context.getResources().getString(R.string.related_products))+\"&product_id=%1$s\";\n }", "public String getUrlForSharing() {\n PostData pd = getAdapter().getPost(mPager.getCurrentItem());\n return pd.getUrl();\n }", "URL getWuicXmlPath() {\n return wuicXmlPath;\n }", "@Schema(description = \"Link to get this item\")\n public String getUrl() {\n return url;\n }", "java.lang.String getCouponIconUrl();", "public WishlistItemTbl (\n\t\t Integer in_wishlistItemId\n ) {\n\t\tthis.setWishlistItemId(in_wishlistItemId);\n }", "public static URL getUrlForPostSetAppState()\r\n {\r\n String strUrl = getBaseURL() +\"account_services/api/1.0/application/app_status\";\r\n return str2url( strUrl );\r\n }", "String getURL(FsItem f);", "@Override\n\tpublic String getUrl()\n\t{\n\t\treturn url;\n\t}", "public String getOrderItemUrl() {\n return orderItemUrl;\n }", "public String setUrl() throws JSONException {\n url = baseUrl + searchName;\n for(int i = 0; i < typesCheckList.size(); i++) {\n if(typesObj.has(typesCheckList.get(i))){\n url += typesObj.getString(typesCheckList.get(i));\n }\n }\n if(V)System.out.println(url);\n return url;\n }", "public String getResourceurl() {\n return resourceurl;\n }", "@Override\n\tpublic String getURLPath() {\n\t\treturn AMConstants.URL_SF_CASE_CREATE_CONSUMER_FEEDBACK;\n\t}", "public void updateCourseList(WishResponse mWishResponse) {\n try {\n coursePictureURLstatic = mWishResponse.getPictureUrl();\n\n mWishListAdapter.addItems(mWishResponse.getWishList());\n\n if (LogWriter.isValidLevel(Log.INFO))\n LogWriter.write(\"ItemCount : \" + mWishListAdapter.getItemCount());\n\n mEmptyTextView.setVisibility((mWishListAdapter.getItemCount() == 0) ? View.VISIBLE : View.GONE);\n mEmptyButton.setVisibility((mWishListAdapter.getItemCount() == 0) ? View.VISIBLE : View.GONE);\n } catch (Exception e) {\n LogWriter.err(e);\n }\n }", "public URI getExplicitlyProvidedUri() {\n return wsRce.getUri();\n }", "@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/GuardarMotivo\";\r\n\t}", "@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/ConsultarIndiceEjecucionAnio\";\r\n\t}", "protected void handleRestlessPath(UrlMappingResource resource, List<String> elementList) {\n }", "void updateList(ShoppingList _ShoppingList);", "@Override\r\n\tprotected String getUrl() {\n\t\tif(tipo==PROFIT_DATOS_COMERCIALES){\r\n\t\t\treturn urlWS + \"/ProfitResumen\";\r\n\t\t}else{\r\n\t\t\treturn urlWS + \"/ProfitDataAdicional\";\r\n\t\t}\r\n\t}", "String getRequestedUrl();", "protected void setEditUrl(EditingPolicyHelper policyHelper, ObjectPropertyStatement ops) {\n RequestedAction action = new EditObjPropStmt(ops);\n if ( ! policyHelper.isAuthorizedAction(action) ) {\n return;\n }\n \n if (propertyUri.equals(VitroVocabulary.IND_MAIN_IMAGE)) {\n editUrl = ObjectPropertyTemplateModel.getImageUploadUrl(subjectUri, \"edit\");\n } else {\n ParamMap params = new ParamMap(\n \"subjectUri\", subjectUri,\n \"predicateUri\", propertyUri,\n \"objectUri\", objectUri);\n \n if ( deleteUrl.isEmpty() ) {\n params.put(\"deleteProhibited\", \"prohibited\");\n }\n \n params.putAll(UrlBuilder.getModelParams(vreq));\n \n editUrl = UrlBuilder.getUrl(EDIT_PATH, params);\n } \n }", "public String formURL(){\n String target = feedURL + \"?s=\" + marketInformation.getTickers().stream().reduce( (a, b) -> a + \",\" + b).get();\n // p0 is just the prices ordered the same as the request\n target += \"&f=p0\";\n return target;\n }", "private String generateURL(Integer instanceID, String key) {\n\t\treturn \"http://\" + databaseInstances[instanceID] + \"/target?targetID=\" + key;\n\t}", "public void deleteWishlistItem(WishlistItem wishItem){\n fStore.collection(\"user_profiles\").document(fUser.getUid()).collection(\"wishlist\").document(wishItem.getWishID()).delete().addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n return;\n }\n });\n }", "public String getUrlForGradebookItemHelper(Long gradeableObjectId,\n String gradebookItemName, String returnViewId, String contextId, Date dueDate)\n {\n return null;\n }", "@Override\r\n\tpublic String getUrl() {\n\t\treturn null;\r\n\t}", "public URI getHref() {\n return entityLinks.linkForItemResource(Hunt.class, id).toUri();\n }", "String getLearnMoreHelpPageUrl();", "@Override\r\n public List<String> buildRequestUrl(String resource, Endpoint endpoint) {\r\n //log = LoggerFactory.getLogger(ScopusAuthorSearchProvider.class);\r\n namespaceDC = Namespace.getNamespace(\"dc\", \"http://purl.org/dc/elements/1.1/\");\r\n namespacePRISM = Namespace.getNamespace(\"prism\", \"http://prismstandard.org/namespaces/basic/2.0/\");\r\n namespaceATOM = Namespace.getNamespace(\"atom\", \"http://www.w3.org/2005/Atom\");\r\n String url = null;\r\n Matcher m = Pattern.compile(PATTERN).matcher(resource);\r\n if (m.find()) {\r\n url = resource;\r\n apiKeyParam = m.group(4);\r\n } else {\r\n Preconditions.checkState(StringUtils.isNotBlank(resource));\r\n String id = resource.substring(resource.lastIndexOf('/') + 1);\r\n url = String.format(API, id.replace('_', '+'));\r\n }\r\n return Collections.singletonList(url);\r\n }", "public static URL getUrlForProfileAndPolicySync(){\r\n\t\tString strUrl = getBaseURL() + \"mip_services/core/api/1.0/sync\";\r\n\t\treturn str2url(strUrl);\r\n\t}", "@ZAttr(id=674)\n public String getHelpAdminURL() {\n return getAttr(Provisioning.A_zimbraHelpAdminURL, null);\n }", "@ZAttr(id=675)\n public String getHelpDelegatedURL() {\n return getAttr(Provisioning.A_zimbraHelpDelegatedURL, null);\n }", "private static String placeOrderResource() {\n return \"/store/order\";\n }", "private String getUriForOrderStatus(UriInfo uriInfo, OrderRepresentation ordRep) {\r\n\t\tString url = uriInfo.getBaseUriBuilder()\r\n\t\t\t\t.path(OrderResource.class)\r\n\t\t\t\t.path(\"order\")\r\n\t\t\t\t.path(\"status\")\r\n\t\t\t\t.path(Integer.toString(ordRep.getOrderID()))\r\n\t\t\t\t.build()\r\n\t\t\t\t.toString();\r\n\t\treturn url;\r\n\t}", "public String getSubscribeEndpoint() {\n \t\treturn this.subscriptionsTarget.getUri().toString();\n \t}", "String getSpecUrl();", "private String getEndPointUrl()\r\n\t{\r\n\t\t// TODO - Get the URL from WSRR\r\n\t\treturn \"http://localhost:8093/mockCustomerBinding\";\r\n\t}", "@DisplayName(\"The URL for the Marketcetera Exchange Server\")\n public String getURL();", "@Override\r\n public String getUrl()\r\n {\n return null;\r\n }", "@Schema(description = \"The URL of the worklog item.\")\n public String getSelf() {\n return self;\n }", "public String link() {\n return DevRant.BASE_URL + DevRant.RANT_URL + '/' + getId();\n }", "String getServerUrl();", "protected void setEditUrls(EditingPolicyHelper policyHelper) {\n if (policyHelper != null) {\n ObjectPropertyStatement ops = new ObjectPropertyStatementImpl(subjectUri, propertyUri, objectUri);\n \n // Do delete url first, since used in building edit url\n setDeleteUrl(policyHelper, ops);\n setEditUrl(policyHelper, ops);\n } \n }", "public static URL getUrlForPostAccChange()\r\n {\r\n String strUrl = getBaseURL() +\"account_services/api/1.0/account/user\";\r\n return str2url( strUrl );\r\n }", "@XmlElement\r\n\tpublic String getMyUrl() {\r\n\t\tString ret = null;\r\n\t\tif (null != getId()) {\r\n\t\t\tret = String.format(\"%s/category/%s-%s\", SuperContainer.BaseUrl, getId() + \"\", getUrl());\r\n\t\t\t\r\n\t\t\t// Always add html to the end\r\n\t\t\tif(!getUrl().endsWith(\".html\")) {\r\n\t\t\t\tret = ret + \".html\";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn ret;\r\n\t}", "public String getUpdateActionRequest() {\n return updateActionRequest;\n }", "public String getUpdateActionRequest() {\n return updateActionRequest;\n }", "public String getUpdateActionRequest() {\n return updateActionRequest;\n }", "String getNoticeFileUrl();", "String getServiceUrl();", "java.lang.String getResourceUri();", "@Override\r\n\tprotected String getPath() {\n\t\treturn \"/product/detail.do?param=\";\r\n\t}", "@Override\n\tpublic String getUrlName() {\n\t\treturn URL_NAME;\n\t}", "public String getPreViewUrl();" ]
[ "0.6518625", "0.57631475", "0.5662305", "0.5572539", "0.52504677", "0.5200434", "0.51752883", "0.5169645", "0.51514256", "0.51456785", "0.4980814", "0.4951073", "0.49321485", "0.49222142", "0.49213243", "0.49128538", "0.49083322", "0.48952374", "0.48941404", "0.4850119", "0.4841084", "0.48049432", "0.47979793", "0.4785539", "0.4775585", "0.47748742", "0.47653463", "0.47612253", "0.47502467", "0.47502297", "0.47367996", "0.4734542", "0.47319573", "0.47262505", "0.47191125", "0.47042575", "0.47034854", "0.47026098", "0.46925765", "0.46925765", "0.46874228", "0.46718177", "0.46678552", "0.46647197", "0.46449825", "0.46417665", "0.46384466", "0.46328437", "0.46314716", "0.46254116", "0.46242085", "0.4623204", "0.46226752", "0.46213654", "0.46179268", "0.4585494", "0.45751622", "0.45731947", "0.45585528", "0.45536307", "0.45482224", "0.45386547", "0.4535495", "0.45353293", "0.45348445", "0.4531923", "0.45015082", "0.4496714", "0.44946542", "0.44925272", "0.44656494", "0.44655702", "0.44621298", "0.44583306", "0.44524017", "0.44482088", "0.4438", "0.4436653", "0.44362053", "0.4429106", "0.44246972", "0.44215924", "0.44173205", "0.44170862", "0.44156817", "0.44131503", "0.44119984", "0.4409149", "0.44052255", "0.44021437", "0.44004077", "0.4399794", "0.4399794", "0.4399794", "0.43984893", "0.43976566", "0.43954983", "0.43940157", "0.43939707", "0.43909514" ]
0.69776183
0
Get Resource Url for RemoveAllWishlistItems
public static MozuUrl removeAllWishlistItemsUrl(String wishlistId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/wishlists/{wishlistId}/items"); formatter.formatUrl("wishlistId", wishlistId); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static MozuUrl deleteWishlistItemUrl(String wishlistId, String wishlistItemId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}\");\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\tformatter.formatUrl(\"wishlistItemId\", wishlistItemId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "public static MozuUrl getWishlistItemUrl(String responseFields, String wishlistId, String wishlistItemId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}?responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"responseFields\", responseFields);\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\tformatter.formatUrl(\"wishlistItemId\", wishlistItemId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "@Override\r\n\tpublic void deleteWishList(int wishNo) throws Exception {\n\r\n\t}", "public void deleteallWishlist() {\n db = helper.getWritableDatabase();\n db.execSQL(\"delete from \" + DatabaseConstant.TABLE_NAME_WISHLIST);\n db.close();\n }", "public void deleteWishlistItem(WishlistItem wishItem){\n fStore.collection(\"user_profiles\").document(fUser.getUid()).collection(\"wishlist\").document(wishItem.getWishID()).delete().addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n return;\n }\n });\n }", "public static MozuUrl updateWishlistItemUrl(String responseFields, String wishlistId, String wishlistItemId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}?responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"responseFields\", responseFields);\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\tformatter.formatUrl(\"wishlistItemId\", wishlistItemId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "@RequestMapping(value = \"/delete\", method = RequestMethod.GET)\r\n\tpublic String deleteList(){\r\n\t\tClearList list = clearListRepository.findById(getActiveListId()).get();\r\n\t\tString listN = list.getListName();\r\n\t\tclearListRepository.deleteById(getActiveListId());\r\n\t\t\r\n\t\treturn String.format(\"The Clearlist %s has been deleted\",listN);\r\n\t}", "@GET\n @Path(\"/removewl/{beerId}\")\n @Produces({MediaType.TEXT_XML, MediaType.APPLICATION_JSON , MediaType.APPLICATION_XML })\n public long removeBeerFromWishList( @PathParam(\"beerId\") Long beerId) {\n\t\t\n \t\n \t\thelper = new Helper();\n\t\tsoapService = helper.getSoapService();\n\t\tUser user = helper.getUserByUsername(username);\n Beer beer = soapService.readBeer(beerId);\n \n soapService.removeBeerToUser(user, beer);\n \n System.out.println(\"beer removed to wishlist...\"); \n \t\treturn beerId;\n \t\n \t\n }", "@DELETE\n @Path(\"{id}/{idItem}\")\n @Produces(MediaType.APPLICATION_XML)\n @Consumes(MediaType.APPLICATION_FORM_URLENCODED)\n public void deleteItemInShoppingList(@PathParam(\"id\") Long id, @PathParam(\"idItem\") Long idItem) throws WebApplicationException {\n boolean b = sls.deleteItemShoppingList(id, idItem);\n if (b == false) {\n throw new WebApplicationException(Response.Status.NOT_FOUND);\n\n }\n }", "private String removeResourceURL(String sbSubsrequst) {\n String sbrequestString = \"\";\n try {\n JSONObject objJSONObject = new JSONObject(sbSubsrequst);\n JSONObject objSubscriptionRequest = (JSONObject) objJSONObject.get(\"subscription\");\n objSubscriptionRequest.remove(\"resourceURL\");\n\n sbrequestString = objSubscriptionRequest.toString();\n } catch (JSONException ex) {\n log.error(\"Error in removeResourceURL\" + ex.getMessage());\n throw new AxiataException(\"POL0299\", \"\", new String[]{\"Error registering subscription\"});\n }\n return \"{\\\"subscription\\\":\" + sbrequestString + \"}\";\n }", "public static MozuUrl getWishlistItemsUrl(String filter, Integer pageSize, String responseFields, String sortBy, Integer startIndex, String wishlistId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items?startIndex={startIndex}&pageSize={pageSize}&sortBy={sortBy}&filter={filter}&responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"filter\", filter);\r\n\t\tformatter.formatUrl(\"pageSize\", pageSize);\r\n\t\tformatter.formatUrl(\"responseFields\", responseFields);\r\n\t\tformatter.formatUrl(\"sortBy\", sortBy);\r\n\t\tformatter.formatUrl(\"startIndex\", startIndex);\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "public static URL getUrlForRequestDeleteAccRop()\r\n {\r\n String strUrl = getBaseURL() +\"account_services/api/1.0/account/rop_cancellation_request\";\r\n return str2url( strUrl );\r\n }", "Optional<URI> getForgetURI() {\n return getCompensatorLink(\"forget\");\n }", "@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/GuardarSustento\";\r\n\t}", "@FXML\r\n\tpublic void deleteItem() {\r\n\t\tcontroller.deleteWishlistItem(listView.getSelectionModel().getSelectedItem().getId());\r\n\t\tlistView.setItems(controller.getWishlistWatchesForCurrentUser());\r\n\t\tlistView.getSelectionModel().select(-1);\r\n\t}", "void removeList(ShoppingList _ShoppingList);", "public static MozuUrl addItemToWishlistUrl(String responseFields, String wishlistId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items?responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"responseFields\", responseFields);\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "public static MozuUrl discardDraftsUrl()\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/catalog/admin/publishing/discarddrafts\");\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "public static void emptyWishlist() {\n click(WISHLIST_UPPER_MENU);\n click(REMOVE_FROM_WISHLIST_BUTTON);\n }", "public void deletesingleWishlist(ProductDetail productDetail) {\n SQLiteDatabase db = helper.getWritableDatabase();\n db.delete(DatabaseConstant.TABLE_NAME_WISHLIST, DatabaseConstant.TABLE_WISHLIST_ID + \" = ?\",\n new String[]{String.valueOf(productDetail.getId())});\n db.close();\n }", "@DELETE\n @Path(\"{id}\")\n @Produces(MediaType.APPLICATION_XML)\n public void deleteShoppingList(@PathParam(\"id\") Long id) throws WebApplicationException {\n boolean b = sls.deleteShoppingList(id);\n if (b == false) {\n throw new WebApplicationException(Response.Status.NOT_FOUND);\n }\n\n }", "@Source(\"images/deleteButton.png\")\n @ImageOptions(flipRtl = true)\n ImageResource removeIcon();", "java.lang.String getCouponIconUrl();", "public List<Integer> getWishList() {\n\t\treturn wishList;\n\t}", "@Override\n public void onComplete(@NonNull Task<Void> task) {\n if(task.isSuccessful()){\n\n if(wishlistModelList.size() !=0 ){\n wishlistModelList.remove(index);\n MyWishlistFragment.wishlistAdapter.notifyDataSetChanged();\n }\n ProductDetailsActivity.ALREADY_ADDED_TO_WISHLIST = false;\n Toast.makeText(context, \"removed successfully!!\", Toast.LENGTH_SHORT).show();\n\n }\n else{\n if (ProductDetailsActivity.addToWishListBtn != null) {\n ProductDetailsActivity.addToWishListBtn.setSupportImageTintList(context.getResources().getColorStateList(R.color.colorPrimary));\n }\n wishList.add(index,removedProductId);\n String error = task.getException().getMessage();\n Toast.makeText(context, error, Toast.LENGTH_SHORT).show();\n }\n// if (ProductDetailsActivity.addToWishListBtn != null) {\n// ProductDetailsActivity.addToWishListBtn.setEnabled(true);\n// }\n\n ProductDetailsActivity.running_wishlist_query = false;\n }", "@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/actualizarCliente\";\r\n\t}", "public void _unlinkClient(ModelElement client1);", "private String getUriForCancel(UriInfo uriInfo, OrderRepresentation ordRep) {\r\n\t\tString url = uriInfo.getBaseUriBuilder()\r\n\t\t\t\t.path(OrderResource.class)\r\n\t\t\t\t.path(\"order\")\r\n\t\t\t\t.path(\"cancel\")\r\n\t\t\t\t.path(Integer.toString(ordRep.getOrderID()))\r\n\t\t\t\t.build()\r\n\t\t\t\t.toString();\r\n\t\treturn url;\r\n\t}", "@Action( ACTION_CONFIRM_REMOVE_REFERENCE )\r\n public String getConfirmRemoveReference( HttpServletRequest request )\r\n {\r\n int nId = Integer.parseInt( request.getParameter( PARAMETER_ID_REFERENCE ) );\r\n UrlItem url = new UrlItem( getActionUrl( ACTION_REMOVE_REFERENCE ) );\r\n url.addParameter( PARAMETER_ID_REFERENCE, nId );\r\n String strMessageUrl = AdminMessageService.getMessageUrl( request, MESSAGE_CONFIRM_REMOVE_REFERENCE, url.getUrl( ), AdminMessage.TYPE_CONFIRMATION );\r\n return redirect( request, strMessageUrl );\r\n }", "@Override\r\n public String getUrl()\r\n {\n return null;\r\n }", "@Override\r\n\tpublic String getUrl() {\n\t\treturn null;\r\n\t}", "public static URL getUrlForRequestSubCancel()\r\n {\r\n String rop = P.isCountryNop() ? \"rop_\" : \"\";\r\n String strUrl = getBaseURL() +\"account_services/api/1.0/subscription/subscription_and_vehicle/\"+rop+\"cancellation_request\";\r\n return str2url( strUrl );\r\n }", "@Source(\"gr/grnet/pithos/resources/editdelete.png\")\n ImageResource delete();", "@Override\r\n\tpublic int deleteResources(List<String> list) {\n\t\treturn resourcesDao.deleteResources(list);\r\n\t}", "public void clickWishlistLink()\n\t{\n \telementUtils.performElementClick(wbWishlistLink);\n\t}", "public static MozuUrl getWishlistItemsByWishlistNameUrl(Integer customerAccountId, String filter, Integer pageSize, String responseFields, String sortBy, Integer startIndex, String wishlistName)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/customers/{customerAccountId}/{wishlistName}/items?startIndex={startIndex}&pageSize={pageSize}&sortBy={sortBy}&filter={filter}&responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"customerAccountId\", customerAccountId);\r\n\t\tformatter.formatUrl(\"filter\", filter);\r\n\t\tformatter.formatUrl(\"pageSize\", pageSize);\r\n\t\tformatter.formatUrl(\"responseFields\", responseFields);\r\n\t\tformatter.formatUrl(\"sortBy\", sortBy);\r\n\t\tformatter.formatUrl(\"startIndex\", startIndex);\r\n\t\tformatter.formatUrl(\"wishlistName\", wishlistName);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "void removeSWFURL(String toRemove);", "@Override\n\tprotected String getWebServiceUri() {\n\t\treturn this.uri;\n\t}", "@After(value = \"@deleteList\", order = 1)\n public void deleteList() {\n String listId = context.getDataCollection((\"list\")).get(\"id\");\n context.setRequestSpec(AuthenticationUtils.getLoggedReqSpec());\n given(context.getRequestSpecification()).when().delete(\"/lists/\".concat(listId));\n }", "@Action( ACTION_CONFIRM_REMOVE_FEATURE )\r\n public String getConfirmRemoveFeature( HttpServletRequest request )\r\n {\r\n int nId = Integer.parseInt( request.getParameter( PARAMETER_ID_FEATURE ) );\r\n UrlItem url = new UrlItem( getActionUrl( ACTION_REMOVE_FEATURE ) );\r\n url.addParameter( PARAMETER_ID_FEATURE, nId );\r\n\r\n String strMessageUrl = AdminMessageService.getMessageUrl( request, MESSAGE_CONFIRM_REMOVE_FEATURE, url.getUrl( ), AdminMessage.TYPE_CONFIRMATION );\r\n\r\n return redirect( request, strMessageUrl );\r\n }", "public void removeAllPaymentURL() {\r\n\t\tBase.removeAll(this.model, this.getResource(), PAYMENTURL);\r\n\t}", "@DELETE\t\n\t@Produces(\"application/json\")\n\t@Path(\"/{ID}\")\n\tpublic List<Site> deleteSite(@PathParam(\"ID\") int siteId){\n\t\treturn siteDaoObj.removeSite(siteId);\t\t\n\t}", "public List<ShelfItem> getAllWishlist(String filter, String username, Integer from, Integer to);", "public static URL getUrlForGetAppList()\r\n {\r\n String idCountry = P.getCountryId(); \r\n String strUrl = getBaseURL() +\"account_services/api/1.0/static_content/apps/client_type/3/country_code/\"+idCountry+\"/language_code/\"+\r\n \t\tA.getContext().getString( R.string.backend_language_code );\r\n return str2url( strUrl );\r\n }", "@RequestMapping(method=RequestMethod.DELETE, value = \"/item\", produces = \"application/json\")\n public void clearItems()\n {\n this.itemRepository.clearItems();\n }", "void delete(List<ViewResourcesMappingPK> list) throws Exception;", "public com.google.protobuf.ProtocolStringList\n getNonResourceUrlsList() {\n return nonResourceUrls_;\n }", "public String getCancel() {\n Navigation nav = (Navigation) BeanHelper.getApplicationBean(Navigation.class);\n return nav.getCollectionUrl() + ObjectHelper.getId(getCollection().getId()) + \"/\"\n + nav.getInfosPath() + \"?init=1\";\n }", "public String ajaxRemoveFromList() throws Exception {\n\t\tJSONObject json = new JSONObject(Constant.getObjectBean().getData());\n\t\tString groupId = json.getString(ApplyItemConstant.KEY_GROUP_ID);\n\t\tString playerId = json.getString(ApplyItemConstant.KEY_PLAYER_ID);\n\t\tXMLCREATE = XmlService.adminRemoveSTBOutToGroup(playerId);\n\t\tModelService.adminRemoveSTBOutToGroup(XMLCREATE);\n\t\t// reload group DB\n\t\treturn getSetupBox(groupId);\n\t}", "public static Integer getWishListNumber() {\n return wishListNumber;\n }", "public static MozuUrl updateWishlistItemQuantityUrl(Integer quantity, String responseFields, String wishlistId, String wishlistItemId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}/{quantity}?responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"quantity\", quantity);\r\n\t\tformatter.formatUrl(\"responseFields\", responseFields);\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\tformatter.formatUrl(\"wishlistItemId\", wishlistItemId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "@Override\n public String getUrlContextPath() {\n return \"\";\n }", "public void requestWishList() {\n if (!hasInternetConnection()) {\n PromeetsDialog.show(this, getString(R.string.no_internet));\n } else {\n UserPOJO userPOJO = (UserPOJO) PromeetsUtils.getUserData(PromeetsPreferenceUtil.USER_OBJECT_KEY, UserPOJO.class);\n if (userPOJO == null) finish();\n String[] key = {Constant.USERID, Constant.PAGENUMBER};\n String[] value = {userPOJO.id + \"\", page + \"\"};\n\n PromeetsDialog.showProgress(this);\n HashMap<String, String> header = new HashMap<>();\n header.put(\"ptimestamp\", ServiceHeaderGeneratorUtil.getInstance().getPTimeStamp());\n header.put(\"promeetsT\", ServiceHeaderGeneratorUtil.getInstance().getPromeetsTHeader(Constant.FETCH_MY_WISH_LIST));\n header.put(\"accessToken\", ServiceHeaderGeneratorUtil.getInstance().getAccessToken());\n header.put(\"API_VERSION\", Utility.getVersionCode());\n new GenericServiceHandler(Constant.ServiceType.WISH_LIST, this, PromeetsUtils.buildURL(Constant.FETCH_MY_WISH_LIST, key, value), null, header, IServiceResponseHandler.GET, false, \"Please wait!\", \"Processing..\").execute();\n }\n }", "public Integer getId() {\n\t\treturn wishlistItemId;\n\t}", "public String deleteUrl(String id)\r\n\t{\n\t\treturn null;\r\n\t}", "protected void handleRestlessPath(UrlMappingResource resource, List<String> elementList) {\n }", "@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/ActualizarCompromiso\";\r\n\t}", "public com.google.protobuf.ProtocolStringList\n getNonResourceUrlsList() {\n return nonResourceUrls_.getUnmodifiableView();\n }", "@Override\n\tpublic void deleteWorkItemList(List<HongXunWorkItem> hongXunWorkItems) {\n\t\tgetHibernateTemplate().deleteAll(hongXunWorkItems);\n\t}", "@Override\n\tpublic String buidWfsURL(WrapperFilter filter) {\n\t\treturn null;\n\t}", "@Test\n public void testDeleteList() throws Exception {\n System.out.println(\"deleteList\");\n String permalink = testList.getPermalink();\n\n WordListApi.deleteList(token, permalink);\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdispose();\n\t\t\t\tWishlistHandler.ViewWishlist(userID);\n\t\t\t}", "@XmlElement\r\n\tpublic String getMyUrl() {\r\n\t\tString ret = null;\r\n\t\tif (null != getId()) {\r\n\t\t\tret = String.format(\"%s/category/%s-%s\", SuperContainer.BaseUrl, getId() + \"\", getUrl());\r\n\t\t\t\r\n\t\t\t// Always add html to the end\r\n\t\t\tif(!getUrl().endsWith(\".html\")) {\r\n\t\t\t\tret = ret + \".html\";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn ret;\r\n\t}", "public java.lang.String getNonResourceUrls(int index) {\n return nonResourceUrls_.get(index);\n }", "@Test\r\n\tpublic void test_9and10_DeleteItemFromWishList() throws Exception {\n\t\tdriver.findElement(By.name(\"submit.deleteItem\")).click();\r\n\t\tThread.sleep(3000);\r\n\t\t\r\n\t\t// check whether the item exists on g-items removed class\r\n\t\tboolean itemExists = false;\r\n\t\t\r\n\t\t// create an array of product titles under g-item-sortable removed\r\n\t\t// get the product title in this list and compare it with selected item\r\n\t\tList<WebElement> productTitles = driver.findElements(By.xpath(\"//div[@id='g-items']//div[@class = 'a-section a-spacing-none g-item-sortable g-item-sortable-removed']/div/div[1]\"));\r\n\t\tfor(WebElement productTitle : productTitles) {\r\n\t\t\t// compare selected item and any item in wish list\r\n\t\t\t// try to find selected item in the list of removed items\r\n\t\t\tString listedItem = productTitle.getText();\r\n\t\t\tif (listedItem.equals(selectedItem)) {\r\n\t\t\t\titemExists = true;\r\n\t\t\t\tSystem.out.println(selectedItem + \" is deleted from wish list\");\r\n\t\t\t\tAssert.assertTrue(itemExists);\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void getWishListInfo(final long productId) {\n User user = SettingsMy.getActiveUser();\n if (user != null) {\n // determine if product is in wishlist\n //String wishlistUrl = String.format(EndPoints.WISHLIST_IS_IN_WISHLIST, SettingsMy.getActualNonNullShop(getActivity()).getId(), productId);\n String wishlistUrl = String.format(EndPoints.WISHLIST);\n GsonRequest<WishlistResponse> getWishlistInfo = new GsonRequest<WishlistResponse>(Request.Method.GET, wishlistUrl, null, WishlistResponse.class, new Response.Listener<WishlistResponse>() {\n @Override\n public void onResponse(@NonNull WishlistResponse response) {\n if(response != null) {\n if(response.getStatusText() != null && response.getStatusCode() != null) {\n if (response.getStatusCode().toLowerCase().equals(CONST.RESPONSE_CODE) || response.getStatusText().toLowerCase().equals(CONST.RESPONSE_UNAUTHORIZED)) {\n LoginDialogFragment.logoutUser(true);\n DialogFragment loginExpiredDialogFragment = new LoginExpiredDialogFragment();\n loginExpiredDialogFragment.show(getFragmentManager(), LoginExpiredDialogFragment.class.getSimpleName());\n }\n }\n else\n prepareWishListButton(response, productId);\n }\n else\n Timber.d(\"returned null response during getWishListInfo\");\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n MsgUtils.logAndShowErrorMessage(getActivity(), error);\n }\n }, getFragmentManager(), \"\");\n getWishlistInfo.setRetryPolicy(MyApplication.getDefaultRetryPolice());\n getWishlistInfo.setShouldCache(false);\n MyApplication.getInstance().addToRequestQueue(getWishlistInfo, CONST.PRODUCT_REQUESTS_TAG);\n }\n }", "@Override\r\n public String getFriendlyURI() {\r\n return createURI(false, false);\r\n }", "public ArrayList<String> readAllWishlistID() {\n db = helper.getReadableDatabase();\n ArrayList<String> list = new ArrayList<>();\n Cursor cursor = db.rawQuery(\"select * from \" + DatabaseConstant.TABLE_NAME_WISHLIST, null);\n while (cursor.moveToNext()) {\n String id = cursor.getString(0);\n list.add(id);\n }\n return list;\n }", "public java.lang.String getNonResourceUrls(int index) {\n return nonResourceUrls_.get(index);\n }", "public UserItem getUserItemByIdsForRemove(UserItem ui);", "@POST\n\t@Path(\"/getWishlist\")\n\t@Consumes(\"application/json\")\n\t@Produces(\"application/json\")\n\tpublic String getWishlist(WishlistProduct user_data) {\n\t\t\n\t\tWishlistProductDAO WishlistProductDao = new WishlistProductDAO();\n\t\tList<WishlistProduct> wishlistedProducts = WishlistProductDao.getWishlistProductsByWishlistID(user_data.getWishlist_id());\n\t\t\n\t\tWishlistDAO WishlistDao = new WishlistDAO();\n\t\tWishlist wishlist = WishlistDao.getWishlistDetailsByID(user_data.getWishlist_id());\n\t\t\n\t\tJSONArray products = new JSONArray();\n\t\t\n\t\tfor(int i=0; i<wishlistedProducts.size();i++)\n\t\t{\n\t\t\tJSONObject product = new JSONObject();\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tproduct.put(\"wishlist_name\", wishlist.getName());\n\t\t\t\tproduct.put(\"req_qty\", wishlistedProducts.get(i).getQuantity());\n\t\t\t\tproduct.put(\"remaining_qty\", wishlistedProducts.get(i).getRemaining_qty());\n\t\t\t\tproduct.put(\"address\", wishlistedProducts.get(i).getAddress());\n\t\t\t\tproduct.put(\"reason\", wishlistedProducts.get(i).getReason());\n\t\t\t\t\t\n\t\t\t\tCatalogDAO CatalogDao = new CatalogDAO();\n\t\t\t\tCatalog productDetails = CatalogDao.getProductByID(wishlistedProducts.get(i).getProduct_id());\n\t\t\t\t\n\t\t\t\tproduct.put(\"product_id\", productDetails.getProduct_id());\n\t\t\t\tproduct.put(\"product_name\", productDetails.getProduct_name());\n\t\t\t\tproduct.put(\"product_qty\", productDetails.getQuantity());\n\t\t\t\tproduct.put(\"brand\", productDetails.getBrand());\n\t\t\t\tproduct.put(\"description\", productDetails.getDescription());\n\t\t\t\tproduct.put(\"price\", productDetails.getPrice());\n\t\t\t\tproduct.put(\"pic_location\", productDetails.getPic_location());\n\t\t\t\t\n\t\t\t\tproducts.put(product);\n\t\t\t\t\n\t\t\t}\n\t\t\tcatch (JSONException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} \n\t\t}\n\t\t\n\t\treturn products.toString();\n\t\t\n\t}", "public void removeAllOfficialArtistWebpage() {\r\n\t\tBase.removeAll(this.model, this.getResource(), OFFICIALARTISTWEBPAGE);\r\n\t}", "public String destroy() {\n performDestroy();\n //recreatePagination();\n //recreateModel();\n return \"ListAdmin\";\n }", "@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/GuardarMotivo\";\r\n\t}", "public void deleteWish(long wish_id) {\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(TABLE_WISH, KEY_ID + \" = ?\",\n new String[] { String.valueOf(wish_id) });\n }", "public void onCancelFavouriteDeletion();", "public boolean removeProductFromWishlist(String productId) {\n\t\t// TODO Auto-generated method stub\n\t\tboolean result=false;\n\t\tif(WishlistDaoImpl.wlist.get(productId) != null)\n\t\t{\n\t\t\n\t\t\tresult=WishlistDaoImplObj.removeProductFromWishlist(productId);\n\t\t\treturn result;\n\t\t}\n\t\telse\n\t\t{ \n\t\t\tint x=3;\n\t\t\tint y=0;\n\t\t\tint z=x/y;\n\t\t\treturn false;\n\t\t\n\t\t\t//throw new WishListException(\"Product ID not found in Wishlist to REMOVE\");\n\t\t}\n\t\n}", "@Override\n\tpublic ResultMessage deleteMany(ArrayList<String> idList) {\n\t\tString sql=\"delete from paymentlist where ID=?\";\n\t\ttry {\n\t\t\tfor(int i=0;i<idList.size();i++){\n\t\t\tstmt=con.prepareStatement(sql);\n\t\t\tstmt.setString(1, idList.get(i));\n\t\t\tstmt.executeUpdate();\n\t\t\t}\n\t\t\treturn ResultMessage.Success;\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn ResultMessage.NotExist;\n\t\t}\t\t\t\n\t}", "public String remove(){\n ListIterator<String> iter = bookkeeper.listIterator();\n int random = (int)(Math.random()*bookkeeper.size());\n System.out.println(\"\\n\\n***RANDOM = \" + random);\n String retrieve = bookkeeper.get(random);\n int i = -1; while (i<random){ i++; iter.next(); } iter.remove();\n return retrieve;\n }", "public void removeAllPublishersWebpage() {\r\n\t\tBase.removeAll(this.model, this.getResource(), PUBLISHERSWEBPAGE);\r\n\t}", "public abstract RepositoryOperation getRemoveOperation(URI[] repoLocations);", "void removeHadithBookUrl(Object oldHadithBookUrl);", "@Override\r\n\tpublic java.lang.String toString()\r\n\t{\r\n\t\treturn \"DeleteListAsync\";\r\n\t}", "private void notifyWishlists(String title) {\n\t\tfor(User u:LibrarySystem.getInstance().users) {\n\t\t\tfor(String wish:u.getWishlist()) {\n\t\t\t\tif(wish.equalsIgnoreCase(title)) {\n\t\t\t\t\tu.notify(\"An item from your wishlist had been added: \" + title + \"!\");\n\t\t\t\t\t//u.getWishlist().remove(title);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "private void deleteResource() {\n }", "String webSocketUri();", "public void showDeleteCourseWarning(final Context context, final String courseID, final WishListAdapter mAdapter, final WishableCourses wishableCourses) {\n\n final Handler dialogHandler = new Handler(Looper.getMainLooper()) {\n @Override\n public void handleMessage(Message message) {\n // Gets the task from the incoming Message object.\n switch (message.what) {\n case Flinnt.SUCCESS:\n stopProgressDialog();\n if (LogWriter.isValidLevel(Log.INFO))\n LogWriter.write(\"SUCCESS_RESPONSE : \" + message.obj.toString());\n mAdapter.remove(courseID);\n // Delete Item from offline database\n Helper.showToast(context.getString(R.string.successfully_deleted), Toast.LENGTH_SHORT);\n break;\n\n case Flinnt.FAILURE:\n stopProgressDialog();\n if (LogWriter.isValidLevel(Log.INFO))\n LogWriter.write(\"FAILURE_RESPONSE : \" + message.obj.toString());\n if (((WishResponse) message.obj).errorResponse != null) {\n Helper.showAlertMessage(WishlistActivity.this, \"Error\", ((WishResponse) message.obj).errorResponse.getMessage(), \"CLOSE\");\n }\n\n break;\n default:\n super.handleMessage(message);\n }\n }\n };\n\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(context);\n TextView titleText = new TextView(context);\n // You Can Customise your Title here\n titleText.setText(\"Delete Wish\");\n titleText.setPadding(40, 40, 40, 0);\n titleText.setGravity(Gravity.CENTER_VERTICAL);\n titleText.setTextColor(context.getResources().getColor(R.color.ColorPrimary));\n titleText.setTextSize(20);\n titleText.setTypeface(Typeface.DEFAULT_BOLD);\n alertDialogBuilder.setCustomTitle(titleText);\n // set dialog message\n alertDialogBuilder.setMessage(R.string.want_to_delete);\n alertDialogBuilder.setPositiveButton(\"Delete\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n if (Helper.isConnected()) {\n new WishList(dialogHandler, courseID, 1).sendWishListRequest();\n startProgressDialog();\n } else {\n Helper.showNetworkAlertMessage(WishlistActivity.this);\n }\n }\n });\n alertDialogBuilder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }\n });\n // create alert dialog\n AlertDialog alertDialog = alertDialogBuilder.create();\n // show it\n if (!Helper.isFinishingOrIsDestroyed(WishlistActivity.this)) {\n alertDialog.show();\n alertDialog.getButton(AlertDialog.BUTTON_POSITIVE).setTextColor(context.getResources().getColor(R.color.ColorPrimary));\n alertDialog.getButton(AlertDialog.BUTTON_NEGATIVE).setTextColor(context.getResources().getColor(R.color.ColorPrimary));\n }\n }", "public static URL getUrlForMisc()\r\n {\r\n String idCountry = P.getCountryId();\r\n int idBrand = Config.BRAND_ID_BE;\r\n //String strUrl = getBaseURL() + \"account_services/api/1.0/static_content/misc/client_type/3/country/\"+idCountry;\r\n String strUrl = getBaseURL() + \"account_services/api/1.0/static_content/misc/client_type/3/brand_id/\"+idBrand+\"/country/\"+idCountry;\r\n return str2url( strUrl );\r\n }", "public String getOrderItemUrl() {\n return orderItemUrl;\n }", "@DELETE\r\n\t@Path(\"/\")\r\n\t@Consumes(MediaType.APPLICATION_XML)\r\n\t@Produces(MediaType.TEXT_PLAIN)\r\n\tpublic String deleteItem(String itemData)\r\n\t{\n\t Document doc = Jsoup.parse(itemData, \" \", Parser.xmlParser());\r\n\r\n\t//Read the value from the element <itemID>\r\n\t String funderID = doc.select(\"funderID\").text();\r\n\t String output = FunderObj.deleteItem(funderID);\r\n\treturn output;\r\n\t}", "@GetMapping(\"/deleteItem\")\n\tpublic String deleteItem(HttpServletRequest servletRequest) {\n\t\t\n\t\ttoDoListService.deleteById(Long.parseLong(servletRequest.getParameter(\"itemId\"))); // Delete the to do list item record.\n\t\t\n\t\treturn \"redirect:/welcome\";\n\t}", "private String getUriForAdd(UriInfo uriInfo, OrderRepresentation ordRep) {\r\n\t\tString url = uriInfo.getBaseUriBuilder()\r\n\t\t\t\t.path(OrderResource.class)\r\n\t\t\t\t.path(\"order\")\r\n\t\t\t\t.build()\r\n\t\t\t\t.toString();\r\n\t\treturn url;\r\n\t}", "public void removeResourceCollection()\r\n {\r\n getSemanticObject().removeProperty(swb_resourceCollectionInv);\r\n }", "public void removeWorkoutItem(String item) {\n\n String toDelete = KEY_WORKOUT + \"=?\";\n String[] deleteArguments = new String[]{item};\n db.delete(DATABASE_TABLE_WORKOUTS, toDelete, deleteArguments);\n }", "public static URL getUrlForRequestDeleteAccAir()\r\n {\r\n String strUrl = getBaseURL() +\"account_services/api/1.0/account/cancellation_request\";\r\n return str2url( strUrl );\r\n }", "public void updateCourseList(WishResponse mWishResponse) {\n try {\n coursePictureURLstatic = mWishResponse.getPictureUrl();\n\n mWishListAdapter.addItems(mWishResponse.getWishList());\n\n if (LogWriter.isValidLevel(Log.INFO))\n LogWriter.write(\"ItemCount : \" + mWishListAdapter.getItemCount());\n\n mEmptyTextView.setVisibility((mWishListAdapter.getItemCount() == 0) ? View.VISIBLE : View.GONE);\n mEmptyButton.setVisibility((mWishListAdapter.getItemCount() == 0) ? View.VISIBLE : View.GONE);\n } catch (Exception e) {\n LogWriter.err(e);\n }\n }", "@ZAttr(id=507)\n public String getWebClientLogoutURL() {\n return getAttr(Provisioning.A_zimbraWebClientLogoutURL, null);\n }", "@Override\r\n public List<String> getMatchedURIs() {\n return null;\r\n }", "public void removeFriendList(FriendList list);", "public Builder clearNonResourceUrls() {\n nonResourceUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY;\n bitField0_ = (bitField0_ & ~0x00000010);\n onChanged();\n return this;\n }" ]
[ "0.6096256", "0.5781074", "0.5691987", "0.5532088", "0.53166366", "0.5251808", "0.5245408", "0.52023435", "0.5145778", "0.5132027", "0.50785196", "0.49641258", "0.49432802", "0.49415296", "0.49053344", "0.48870957", "0.486953", "0.4868934", "0.48525742", "0.48276138", "0.4794569", "0.47783342", "0.47591516", "0.47575584", "0.4748267", "0.47077128", "0.46951663", "0.46870884", "0.46849895", "0.46392542", "0.46360824", "0.46121755", "0.46098417", "0.46007758", "0.4596015", "0.45948565", "0.45897192", "0.45896512", "0.45888805", "0.45881546", "0.45816317", "0.4579891", "0.45738718", "0.45675123", "0.45649627", "0.4548499", "0.45383468", "0.4522958", "0.4520882", "0.45206317", "0.4518562", "0.45145494", "0.4513494", "0.45130417", "0.45115173", "0.44992152", "0.44970348", "0.44841647", "0.44797903", "0.4465518", "0.4463334", "0.44619852", "0.44610208", "0.44533962", "0.44494203", "0.44490466", "0.44354492", "0.44354486", "0.44351003", "0.4428464", "0.4425099", "0.4421883", "0.4420157", "0.4419441", "0.4418253", "0.44157383", "0.44124284", "0.4405401", "0.4397009", "0.4395283", "0.4394664", "0.43937886", "0.43898565", "0.43875077", "0.43847597", "0.43812388", "0.4380455", "0.43721604", "0.43631577", "0.4361095", "0.43581918", "0.43520173", "0.4347016", "0.43376958", "0.43331105", "0.43287668", "0.4323908", "0.4322602", "0.4320934", "0.4317406" ]
0.691488
0
Get Resource Url for DeleteWishlistItem
public static MozuUrl deleteWishlistItemUrl(String wishlistId, String wishlistItemId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}"); formatter.formatUrl("wishlistId", wishlistId); formatter.formatUrl("wishlistItemId", wishlistItemId); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static MozuUrl getWishlistItemUrl(String responseFields, String wishlistId, String wishlistItemId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}?responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"responseFields\", responseFields);\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\tformatter.formatUrl(\"wishlistItemId\", wishlistItemId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "public void deleteWishlistItem(WishlistItem wishItem){\n fStore.collection(\"user_profiles\").document(fUser.getUid()).collection(\"wishlist\").document(wishItem.getWishID()).delete().addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n return;\n }\n });\n }", "@Override\r\n\tpublic void deleteWishList(int wishNo) throws Exception {\n\r\n\t}", "public static MozuUrl removeAllWishlistItemsUrl(String wishlistId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items\");\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "@RequestMapping(value = \"/delete\", method = RequestMethod.GET)\r\n\tpublic String deleteList(){\r\n\t\tClearList list = clearListRepository.findById(getActiveListId()).get();\r\n\t\tString listN = list.getListName();\r\n\t\tclearListRepository.deleteById(getActiveListId());\r\n\t\t\r\n\t\treturn String.format(\"The Clearlist %s has been deleted\",listN);\r\n\t}", "public String deleteUrl(String id)\r\n\t{\n\t\treturn null;\r\n\t}", "@FXML\r\n\tpublic void deleteItem() {\r\n\t\tcontroller.deleteWishlistItem(listView.getSelectionModel().getSelectedItem().getId());\r\n\t\tlistView.setItems(controller.getWishlistWatchesForCurrentUser());\r\n\t\tlistView.getSelectionModel().select(-1);\r\n\t}", "public static URL getUrlForRequestDeleteAccRop()\r\n {\r\n String strUrl = getBaseURL() +\"account_services/api/1.0/account/rop_cancellation_request\";\r\n return str2url( strUrl );\r\n }", "@Source(\"gr/grnet/pithos/resources/editdelete.png\")\n ImageResource delete();", "public void deletesingleWishlist(ProductDetail productDetail) {\n SQLiteDatabase db = helper.getWritableDatabase();\n db.delete(DatabaseConstant.TABLE_NAME_WISHLIST, DatabaseConstant.TABLE_WISHLIST_ID + \" = ?\",\n new String[]{String.valueOf(productDetail.getId())});\n db.close();\n }", "public static MozuUrl updateWishlistItemUrl(String responseFields, String wishlistId, String wishlistItemId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}?responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"responseFields\", responseFields);\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\tformatter.formatUrl(\"wishlistItemId\", wishlistItemId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "@DELETE\n @Path(\"{id}/{idItem}\")\n @Produces(MediaType.APPLICATION_XML)\n @Consumes(MediaType.APPLICATION_FORM_URLENCODED)\n public void deleteItemInShoppingList(@PathParam(\"id\") Long id, @PathParam(\"idItem\") Long idItem) throws WebApplicationException {\n boolean b = sls.deleteItemShoppingList(id, idItem);\n if (b == false) {\n throw new WebApplicationException(Response.Status.NOT_FOUND);\n\n }\n }", "protected void setDeleteUrl(EditingPolicyHelper policyHelper, ObjectPropertyStatement ops) {\n RequestedAction action = new DropObjectPropStmt(subjectUri, propertyUri, objectUri);\n if ( ! policyHelper.isAuthorizedAction(action) ) { \n return;\n }\n \n if (propertyUri.equals(VitroVocabulary.IND_MAIN_IMAGE)) {\n deleteUrl = ObjectPropertyTemplateModel.getImageUploadUrl(subjectUri, \"delete\");\n } else {\n ParamMap params = new ParamMap(\n \"subjectUri\", subjectUri,\n \"predicateUri\", propertyUri,\n \"objectUri\", objectUri,\n \"cmd\", \"delete\");\n \n for ( String key : data.keySet() ) {\n String value = data.get(key);\n // Remove an entry with a null value instead of letting it get passed\n // as a param with an empty value, in order to align with behavior on\n // profile page. E.g., if statement.moniker is null, a test for \n // statement.moniker?? will yield different results if null on the \n // profile page but an empty string on the deletion page.\n if (value != null) {\n params.put(\"statement_\" + key, data.get(key));\n }\n }\n \n params.put(\"templateName\", templateName);\n \n params.putAll(UrlBuilder.getModelParams(vreq));\n \n deleteUrl = UrlBuilder.getUrl(EDIT_PATH, params);\n } \n }", "@GetMapping(\"/deleteItem\")\n\tpublic String deleteItem(HttpServletRequest servletRequest) {\n\t\t\n\t\ttoDoListService.deleteById(Long.parseLong(servletRequest.getParameter(\"itemId\"))); // Delete the to do list item record.\n\t\t\n\t\treturn \"redirect:/welcome\";\n\t}", "private void deleteResource() {\n }", "@RequestMapping(\"/delete\")\n\tpublic String delete(HttpServletRequest request, Model model) {\n\t\tdao.delete(request.getParameter(\"bId\"));\n\t\treturn \"redirect:list\"; \n\t}", "private String getUriForCancel(UriInfo uriInfo, OrderRepresentation ordRep) {\r\n\t\tString url = uriInfo.getBaseUriBuilder()\r\n\t\t\t\t.path(OrderResource.class)\r\n\t\t\t\t.path(\"order\")\r\n\t\t\t\t.path(\"cancel\")\r\n\t\t\t\t.path(Integer.toString(ordRep.getOrderID()))\r\n\t\t\t\t.build()\r\n\t\t\t\t.toString();\r\n\t\treturn url;\r\n\t}", "@PreAuthorize(\"hasAuthority('PARENT')\")\n\t@RequestMapping(value = \"/delete/{id}\", method = RequestMethod.GET)\n\tpublic String deleteItem(@PathVariable(\"id\") Long itemId, Model model) {\n\t\trepository.deleteById(itemId);\n\t\treturn \"redirect:../itemlist\";\n\t}", "public void showDeleteCourseWarning(final Context context, final String courseID, final WishListAdapter mAdapter, final WishableCourses wishableCourses) {\n\n final Handler dialogHandler = new Handler(Looper.getMainLooper()) {\n @Override\n public void handleMessage(Message message) {\n // Gets the task from the incoming Message object.\n switch (message.what) {\n case Flinnt.SUCCESS:\n stopProgressDialog();\n if (LogWriter.isValidLevel(Log.INFO))\n LogWriter.write(\"SUCCESS_RESPONSE : \" + message.obj.toString());\n mAdapter.remove(courseID);\n // Delete Item from offline database\n Helper.showToast(context.getString(R.string.successfully_deleted), Toast.LENGTH_SHORT);\n break;\n\n case Flinnt.FAILURE:\n stopProgressDialog();\n if (LogWriter.isValidLevel(Log.INFO))\n LogWriter.write(\"FAILURE_RESPONSE : \" + message.obj.toString());\n if (((WishResponse) message.obj).errorResponse != null) {\n Helper.showAlertMessage(WishlistActivity.this, \"Error\", ((WishResponse) message.obj).errorResponse.getMessage(), \"CLOSE\");\n }\n\n break;\n default:\n super.handleMessage(message);\n }\n }\n };\n\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(context);\n TextView titleText = new TextView(context);\n // You Can Customise your Title here\n titleText.setText(\"Delete Wish\");\n titleText.setPadding(40, 40, 40, 0);\n titleText.setGravity(Gravity.CENTER_VERTICAL);\n titleText.setTextColor(context.getResources().getColor(R.color.ColorPrimary));\n titleText.setTextSize(20);\n titleText.setTypeface(Typeface.DEFAULT_BOLD);\n alertDialogBuilder.setCustomTitle(titleText);\n // set dialog message\n alertDialogBuilder.setMessage(R.string.want_to_delete);\n alertDialogBuilder.setPositiveButton(\"Delete\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n if (Helper.isConnected()) {\n new WishList(dialogHandler, courseID, 1).sendWishListRequest();\n startProgressDialog();\n } else {\n Helper.showNetworkAlertMessage(WishlistActivity.this);\n }\n }\n });\n alertDialogBuilder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }\n });\n // create alert dialog\n AlertDialog alertDialog = alertDialogBuilder.create();\n // show it\n if (!Helper.isFinishingOrIsDestroyed(WishlistActivity.this)) {\n alertDialog.show();\n alertDialog.getButton(AlertDialog.BUTTON_POSITIVE).setTextColor(context.getResources().getColor(R.color.ColorPrimary));\n alertDialog.getButton(AlertDialog.BUTTON_NEGATIVE).setTextColor(context.getResources().getColor(R.color.ColorPrimary));\n }\n }", "@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/GuardarSustento\";\r\n\t}", "@GetMapping(\"/deleteItem/{id}\")\n\tpublic String deleteItemById(@PathVariable(value=\"id\") long id) {\n\t\titemService.deleteItemById(id);\t\n\t\t\n\t\treturn \"redirect:/\";\n\t}", "@RequestMapping(value = \"/shopressource/{id}\", method = RequestMethod.DELETE)\n String deleteShopRessourceById(@PathVariable Integer id);", "@Override\n public int deleteByExample(JurUrlExample example) {\n return jurUrlMapper.deleteByExample(example);\n }", "@Test\n public void testDeleteList() throws Exception {\n System.out.println(\"deleteList\");\n String permalink = testList.getPermalink();\n\n WordListApi.deleteList(token, permalink);\n }", "@Override\n \tpublic Representation deleteResource() {\n \t\tString interId = (String) this.getRequestAttributes().get(\"interId\");\n \t\tString srcId = (String) this.getRequestAttributes().get(\"sourceId\");\n \t\t\n \t\t// On s'assure qu'il n'est plus prsent en base de donnes\n \t\n \t\tIntervention inter = Interventions.getInstance().getIntervention(interId);\n \t\tList<Source> sources = inter.getSources();\n \t\tfor (int i = 0; i < sources.size(); i++) {\n \t\t\tif (sources.get(i).getUniqueID().equals(srcId)) {\n \t\t\t\tsources.remove(sources.get(i));\n \t\t\t}\n \t\t}\n \t\t\n \t\treturn null;\n \t}", "@Override\r\n\tpublic String delete() {\n\t\treturn \"delete\";\r\n\t}", "public void deleteWish(long wish_id) {\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(TABLE_WISH, KEY_ID + \" = ?\",\n new String[] { String.valueOf(wish_id) });\n }", "@Override\n public void delete(SideDishEntity entity) {\n\n }", "public static URL getUrlForRequestDeleteAccAir()\r\n {\r\n String strUrl = getBaseURL() +\"account_services/api/1.0/account/cancellation_request\";\r\n return str2url( strUrl );\r\n }", "public static MozuUrl addItemToWishlistUrl(String responseFields, String wishlistId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items?responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"responseFields\", responseFields);\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "java.lang.String getCouponIconUrl();", "@Override\r\n\tpublic java.lang.String toString()\r\n\t{\r\n\t\treturn \"DeleteListAsync\";\r\n\t}", "@DeleteMapping(\"/product/{productid}\") \nprivate void deleteProduct(@PathVariable(\"productid\") int productid) \n{ \nproductsService.delete(productid); \n}", "void delete(List<ViewResourcesMappingPK> list) throws Exception;", "@Source(\"images/deleteButton.png\")\n @ImageOptions(flipRtl = true)\n ImageResource removeIcon();", "@GetMapping(\"/deleteLike\")\n\tpublic void deleteLike(@RequestBody Likes deleteLike) {\n\t\tlikeRepo.deleteLike(deleteLike);\n\t}", "@DELETE\r\n\t@Path(\"/\")\r\n\t@Consumes(MediaType.APPLICATION_XML)\r\n\t@Produces(MediaType.TEXT_PLAIN)\r\n\tpublic String deleteItem(String itemData)\r\n\t{\n\t Document doc = Jsoup.parse(itemData, \" \", Parser.xmlParser());\r\n\r\n\t//Read the value from the element <itemID>\r\n\t String funderID = doc.select(\"funderID\").text();\r\n\t String output = FunderObj.deleteItem(funderID);\r\n\treturn output;\r\n\t}", "Optional<URI> getForgetURI() {\n return getCompensatorLink(\"forget\");\n }", "@Override\n public void onDeleteClick(PrescriptionPost prescriptionPost, int position) {\n String id = adapter.getItemAt(position).getId();\n Log.d(\"ID\",\"Id is \"+id);\n Call<Void> call1= jsonPlaceholderApi.deletePrescription(id,\"Bearer \"+token);\n call1.enqueue(new Callback<Void>() {\n @Override\n public void onResponse(Call<Void> call, Response<Void> response) {\n\n mlistview.remove(position);\n adapter.notifyItemRemoved(position);\n //Log.d(\"body\",response.body().toString());\n }\n\n @Override\n public void onFailure(Call<Void> call, Throwable t) {\n Toast.makeText(getContext(), t.getMessage(), Toast.LENGTH_SHORT).show();\n }\n });\n\n }", "public void deleteallWishlist() {\n db = helper.getWritableDatabase();\n db.execSQL(\"delete from \" + DatabaseConstant.TABLE_NAME_WISHLIST);\n db.close();\n }", "@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/actualizarCliente\";\r\n\t}", "public void clickWishlistLink()\n\t{\n \telementUtils.performElementClick(wbWishlistLink);\n\t}", "@DELETE\n\tResponse delete();", "int deleteByExample(ResourceExample example);", "@Override\n\t@Action(\"delete\")\n\t@LogInfo(optType=\"删除\")\n\tpublic String delete() throws Exception {\n\t\ttry {\n\t\t\tString str=sampleManager.deleteEntity(deleteIds);\n\t\t\tStruts2Utils.getRequest().setAttribute(LogInfo.MESSAGE_ATTRIBUTE, \"删除数据:单号:\"+str);\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\trenderText(\"删除失败:\" + e.getMessage());\n\t\t\tlog.error(\"删除数据信息失败\",e);\n\t\t}\n\t\treturn null;\n\t}", "@GET\n @Path(\"/removewl/{beerId}\")\n @Produces({MediaType.TEXT_XML, MediaType.APPLICATION_JSON , MediaType.APPLICATION_XML })\n public long removeBeerFromWishList( @PathParam(\"beerId\") Long beerId) {\n\t\t\n \t\n \t\thelper = new Helper();\n\t\tsoapService = helper.getSoapService();\n\t\tUser user = helper.getUserByUsername(username);\n Beer beer = soapService.readBeer(beerId);\n \n soapService.removeBeerToUser(user, beer);\n \n System.out.println(\"beer removed to wishlist...\"); \n \t\treturn beerId;\n \t\n \t\n }", "void delete(E entity, RequestContext context)\n throws TechnicalException, ResourceNotFoundException;", "@RequestMapping(\"/hotel/delete/{id}\")\r\n public String deleteTrip(@PathVariable(\"id\") String hotelId) {\r\n Long idhotel = Long.parseLong(hotelId);\r\n this.hotel.removeById(idhotel);\r\n\r\n return \"redirect:/hotel/list\";\r\n }", "public Integer getId() {\n\t\treturn wishlistItemId;\n\t}", "@Override\r\n\tpublic int deleteResources(List<String> list) {\n\t\treturn resourcesDao.deleteResources(list);\r\n\t}", "@RequestMapping(value = \"/delete\", method = RequestMethod.GET) \n public RedirectView deleteBuku(@RequestParam(required = true) Long id){ //Pake RequestParam klo ada kirim/minta data, disini kita tulis name dri inputannnya dan type datanya apa.\n this.bukuService.delete(new Buku (id));\n //this.bukuService.delete(id);\n return new RedirectView(\"/admin/buku/list\", true); \n }", "@Override\n\tpublic ClientResponse delete(Integer id) {\n\t\tWebResource webResource = this.webResource.path(\"/location/\" + id);\t\t\n\t\tBuilder builder = getBuilder (webResource);\n\t\t\n\t\t// Invocation de la méthode DELETE HTTP\n\t\tClientResponse clientResponse = builder.delete(ClientResponse.class);\n\t\t\t\t\n\t\treturn clientResponse;\n\t}", "@Override\r\n public String getUrl()\r\n {\n return null;\r\n }", "@Override\r\n\tpublic String getUrl() {\n\t\treturn null;\r\n\t}", "void deleteLike(long mediaId);", "@Test\r\n\tpublic void test_9and10_DeleteItemFromWishList() throws Exception {\n\t\tdriver.findElement(By.name(\"submit.deleteItem\")).click();\r\n\t\tThread.sleep(3000);\r\n\t\t\r\n\t\t// check whether the item exists on g-items removed class\r\n\t\tboolean itemExists = false;\r\n\t\t\r\n\t\t// create an array of product titles under g-item-sortable removed\r\n\t\t// get the product title in this list and compare it with selected item\r\n\t\tList<WebElement> productTitles = driver.findElements(By.xpath(\"//div[@id='g-items']//div[@class = 'a-section a-spacing-none g-item-sortable g-item-sortable-removed']/div/div[1]\"));\r\n\t\tfor(WebElement productTitle : productTitles) {\r\n\t\t\t// compare selected item and any item in wish list\r\n\t\t\t// try to find selected item in the list of removed items\r\n\t\t\tString listedItem = productTitle.getText();\r\n\t\t\tif (listedItem.equals(selectedItem)) {\r\n\t\t\t\titemExists = true;\r\n\t\t\t\tSystem.out.println(selectedItem + \" is deleted from wish list\");\r\n\t\t\t\tAssert.assertTrue(itemExists);\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static MozuUrl getWishlistItemsUrl(String filter, Integer pageSize, String responseFields, String sortBy, Integer startIndex, String wishlistId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items?startIndex={startIndex}&pageSize={pageSize}&sortBy={sortBy}&filter={filter}&responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"filter\", filter);\r\n\t\tformatter.formatUrl(\"pageSize\", pageSize);\r\n\t\tformatter.formatUrl(\"responseFields\", responseFields);\r\n\t\tformatter.formatUrl(\"sortBy\", sortBy);\r\n\t\tformatter.formatUrl(\"startIndex\", startIndex);\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "@RequestMapping(method=RequestMethod.DELETE, value = \"/item/{id}\")\n public void deleteItem(@PathVariable (name = \"id\") UUID id)\n {\n this.itemRepository.deleteItem(id);\n }", "public String getOrderItemUrl() {\n return orderItemUrl;\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}", "public int getReferentialActionDeleteRule();", "private String getUriForAdd(UriInfo uriInfo, OrderRepresentation ordRep) {\r\n\t\tString url = uriInfo.getBaseUriBuilder()\r\n\t\t\t\t.path(OrderResource.class)\r\n\t\t\t\t.path(\"order\")\r\n\t\t\t\t.build()\r\n\t\t\t\t.toString();\r\n\t\treturn url;\r\n\t}", "private String removeResourceURL(String sbSubsrequst) {\n String sbrequestString = \"\";\n try {\n JSONObject objJSONObject = new JSONObject(sbSubsrequst);\n JSONObject objSubscriptionRequest = (JSONObject) objJSONObject.get(\"subscription\");\n objSubscriptionRequest.remove(\"resourceURL\");\n\n sbrequestString = objSubscriptionRequest.toString();\n } catch (JSONException ex) {\n log.error(\"Error in removeResourceURL\" + ex.getMessage());\n throw new AxiataException(\"POL0299\", \"\", new String[]{\"Error registering subscription\"});\n }\n return \"{\\\"subscription\\\":\" + sbrequestString + \"}\";\n }", "private String getUriForSelf(UriInfo uriInfo,OrderRepresentation ordRep){\r\n\t\tString url = uriInfo.getBaseUriBuilder()\r\n\t\t\t\t\t\t\t.path(OrderResource.class)\r\n\t\t\t\t\t\t\t.path(\"order\")\r\n\t\t\t\t\t\t\t.path(\"Order_ID\" +ordRep.getOrderID())\r\n\t\t\t\t\t\t\t.build()\r\n\t\t\t\t\t\t\t.toString();\r\n\t\treturn url;\r\n\t\t\r\n\t}", "@PostMapping(\"/adminDeleteShows\")\n public String adminDeleteShows(@RequestParam(required = false, value=\"deleteList\") Long[] deleteList, Model model){\n String nextPage = \"adminShowList\";\n\n if (deleteList != null && deleteList.length > 0){\n for (Long showId : deleteList) {\n Show show = showRepo.findById(showId).get();\n if (show != null){\n List<Watching> watchings = watchingRepo.findByShow(show);\n if (watchings != null){\n for (Watching watch : watchings) {\n watchingRepo.delete(watch);\n }\n }\n showRepo.delete(show);\n }\n }\n }\n model.addAttribute(\"showList\", showRepo.findAll());\n return nextPage;\n }", "@DELETE \r\n @Path(\"/delete\") \r\n @Consumes(MediaType.APPLICATION_XML) \r\n @Produces(MediaType.TEXT_PLAIN) \r\n public String deleteItem(String itemData) {\n \tDocument doc = Jsoup.parse(itemData, \"\", Parser.xmlParser()); \r\n \t\r\n \t//Read the value from the element <itemID> \r\n \tString appointmentID = doc.select(\"appointmentID\").text(); \r\n \r\n \tString output = appObj.deleteAppointment(appointmentID); \r\n \r\n \treturn output; \r\n \t\r\n }", "int deleteByExample(WxNewsExample example);", "public abstract boolean deleteResource(String name);", "@After(value = \"@deleteList\", order = 1)\n public void deleteList() {\n String listId = context.getDataCollection((\"list\")).get(\"id\");\n context.setRequestSpec(AuthenticationUtils.getLoggedReqSpec());\n given(context.getRequestSpecification()).when().delete(\"/lists/\".concat(listId));\n }", "@Transactional\r\n\t@RequestMapping(\"deleteIngredient\")\r\n\t@Override\r\n\tpublic String delete(Integer ingredientKey ) {\n\t\treturn null;\r\n\t}", "@Override\n\tprotected String onDelete(HttpServletRequest req, HttpServletResponse resp, FunctionItem fi,\n\t\t\tHashtable<String, String> params, String action, L l, S s) throws Exception {\n\t\treturn null;\n\t}", "int deleteByExample(PageItemCfgExample example);", "@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/GuardarMotivo\";\r\n\t}", "@Override\n\tpublic void delete(Recipe entity) {\n\t\t\n\t}", "public void _unlinkClient(ModelElement client1);", "@RequestMapping(\"/delete\")\n\tpublic String delete(@RequestParam Long bookingId) {\n\t\tbookingRepository.delete(bookingId);\n\t return \"booking #\"+bookingId+\" deleted successfully\";\n\t}", "public static MozuUrl discardDraftsUrl()\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/catalog/admin/publishing/discarddrafts\");\r\n\t\treturn new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;\r\n\t}", "@DELETE\t\n\t@Produces(\"application/json\")\n\t@Path(\"/{ID}\")\n\tpublic List<Site> deleteSite(@PathParam(\"ID\") int siteId){\n\t\treturn siteDaoObj.removeSite(siteId);\t\t\n\t}", "int deleteByExample(HpItemParamItemExample example);", "@Override\n public int deleteByPrimaryKey(Integer id) {\n return jurUrlMapper.deleteByPrimaryKey(id);\n }", "@RequestMapping(value=\"/delete/{id}\")\n\tpublic String delete(@PathVariable(\"id\") Integer id)\n\t{\n\t\tItemMap.remove(id);\n\t\tSystem.out.println(\"Item number \"+id+\" is Removed\");\n\t\t\n\t\treturn \"Item number \"+ id+\" is Removed\";\n\t}", "@Override\n\tpublic void Delete(Warehouse wid) {\n\n\t\ttry {\n\t\t\t success=0;\n\t\t\t success=1;\n\t\t\t// getSqlMapClientTemplate().delete(\"Warehouse.deleteWarehouse\", wid);\n\t\t\tgetSqlMapClientTemplate().update(\"Warehouse.deleteWarehouse\",wid);\n\t\t\t\n\t\t\t\n\t\t} catch (Exception ex) {\n\t\t\t\n\t\t\t success=0;\n\n\t\t}\n\n\t}", "@Override\n protected void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n String urisToDelete = req.getPathInfo();\n\n if(logger.isDebugEnabled()){\n logger.debug(\"delete uris: \"+urisToDelete);\n }\n\n FileDAO fileDao;\n try {\n fileDao = createFileDao(req);\n fileDao.delete(Arrays.asList(urisToDelete.split(\" \")));\n fileDao.commit();\n } catch (Exception e) {\n throw new IOException(\"an exception stopped us\", e);\n }\n }", "@Override\r\n\tpublic String deleteDeal() {\n\t\tif(!SysFun.isNullOrEmpty(id)) {\r\n\t\t\tLong iId=SysFun.parseLong(id);\r\n\t\t\tHeadLine headLine = headLineService.load(iId);\r\n\t\t\tString filePath = ServletActionContext.getServletContext().getRealPath(\"/\");\r\n\t\t\tnew File(filePath+headLine.getLineImg()).delete();\r\n\t\t\tLong result=headLineService.delete(iId);\r\n\t\t\tif(result>0) {\r\n\t\t\t\treturn \"go_ok\";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn \"go_ok\";\r\n\t}", "boolean delete(DishCategory dishCategory);", "void afterDelete(T resource);", "HttpResponse httpDelete(URI uri, String id);", "@DELETE\n @Path(\"{id}\")\n @Produces(MediaType.APPLICATION_XML)\n public void deleteShoppingList(@PathParam(\"id\") Long id) throws WebApplicationException {\n boolean b = sls.deleteShoppingList(id);\n if (b == false) {\n throw new WebApplicationException(Response.Status.NOT_FOUND);\n }\n\n }", "public URI getHref() {\n return entityLinks.linkForItemResource(Hunt.class, id).toUri();\n }", "@RequestMapping(\"/recipe/delete/{id}\")\n public String deleteRecipe(@PathVariable String id){\n recipeService.deleteById(new Long(id));\n \n return \"redirect:/\";\n }", "@Action( ACTION_CONFIRM_REMOVE_REFERENCE )\r\n public String getConfirmRemoveReference( HttpServletRequest request )\r\n {\r\n int nId = Integer.parseInt( request.getParameter( PARAMETER_ID_REFERENCE ) );\r\n UrlItem url = new UrlItem( getActionUrl( ACTION_REMOVE_REFERENCE ) );\r\n url.addParameter( PARAMETER_ID_REFERENCE, nId );\r\n String strMessageUrl = AdminMessageService.getMessageUrl( request, MESSAGE_CONFIRM_REMOVE_REFERENCE, url.getUrl( ), AdminMessage.TYPE_CONFIRMATION );\r\n return redirect( request, strMessageUrl );\r\n }", "void deleteByIdWithResponse(String id, String referer, Context context);", "public DeleteItemOutcome deleteItem(DeleteItemSpec spec);", "public String getRelatedProductsURL(Context context){\n return this.getURL(context.getResources().getString(R.string.related_products))+\"&product_id=%1$s\";\n }", "@DELETE\n @Path(\"/\")\n public Response delete() {\n\n if (entityDefinition == null) {\n return Response.status(Status.NOT_FOUND).build();\n }\n entityDefinition.getService().deleteCustom(entityId);\n return Response.status(Status.NO_CONTENT).build();\n }", "public void deleteItem() {\n\t\t\tAsyncCallback<BmUpdateResult> callback = new AsyncCallback<BmUpdateResult>() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\tstopLoading();\n\t\t\t\t\tshowErrorMessage(this.getClass().getName() + \"-deleteItem(): ERROR \" + caught.toString());\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onSuccess(BmUpdateResult result) {\n\t\t\t\t\tstopLoading();\n\t\t\t\t\tprocessItemDelete(result);\n\t\t\t\t}\n\t\t\t};\n\n\t\t\t// Llamada al servicio RPC\n\t\t\ttry {\n\t\t\t\tif (!isLoading()) {\n\t\t\t\t\tstartLoading();\n\t\t\t\t\tgetUiParams().getBmObjectServiceAsync().delete(bmoRequisitionItem.getPmClass(), bmoRequisitionItem, callback);\n\t\t\t\t}\n\t\t\t} catch (SFException e) {\n\t\t\t\tstopLoading();\n\t\t\t\tshowErrorMessage(this.getClass().getName() + \"-deleteItem(): ERROR \" + e.toString());\n\t\t\t}\n\t\t}", "void delete(String resourceGroupName, String serviceEndpointPolicyName, Context context);", "@GetMapping(\"/delete/{id}\")\n public String deletegetRestaurant(@PathVariable String id) {\n restaurantServiceImpl.delete(id);\n return \"data deleted\";\n }", "String webSocketUri();", "public DeleteResourceAction() {\r\n super(\"Delete Safi Resources\");\r\n setToolTipText(\"Deletes physical resources from the current workspace\");\r\n // PlatformUI.getWorkbench().getHelpSystem().setHelp(this,\r\n // IIDEHelpContextIds.DELETE_RESOURCE_ACTION);\r\n setId(ID);\r\n }" ]
[ "0.61157453", "0.590372", "0.5882707", "0.5801222", "0.56345135", "0.5484697", "0.5480993", "0.5452026", "0.5360074", "0.5348521", "0.53249943", "0.52332556", "0.51900685", "0.50888014", "0.5068462", "0.5061046", "0.5055746", "0.5027098", "0.5016009", "0.5004396", "0.4980341", "0.49208367", "0.49072522", "0.48923928", "0.48860595", "0.48736376", "0.4870162", "0.48599407", "0.48489326", "0.4837765", "0.48316938", "0.48088956", "0.4800744", "0.47878355", "0.4786457", "0.47860962", "0.47728652", "0.47643435", "0.47551307", "0.4754053", "0.47499654", "0.47478244", "0.47472706", "0.47442675", "0.47435662", "0.47307372", "0.47220233", "0.47214994", "0.47188604", "0.47177535", "0.4716258", "0.47159207", "0.4714054", "0.47129172", "0.47008467", "0.46941635", "0.4690453", "0.46898866", "0.46877992", "0.46834126", "0.46740124", "0.46734348", "0.46689075", "0.46673796", "0.46666038", "0.4665784", "0.46639752", "0.4663424", "0.4655107", "0.46506903", "0.46488714", "0.46484348", "0.46455416", "0.46447846", "0.4635244", "0.46263713", "0.46239144", "0.46231648", "0.46222693", "0.46056452", "0.46048838", "0.45970783", "0.4594229", "0.45940542", "0.45838958", "0.45796254", "0.45750815", "0.4574039", "0.45728132", "0.45623106", "0.4562039", "0.4560337", "0.45584065", "0.45581168", "0.45501032", "0.45441127", "0.4537621", "0.4536462", "0.4526305", "0.4523448" ]
0.7040652
0
Created by yuboyang on 10/8/17.
public interface MoviesListingInteractor { Observable<List<Movie>> fetchMovies(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public void init() {\n\n }", "@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 func_104112_b() {\n \n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@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 dormir() {\n\t\t\r\n\t}", "public void mo38117a() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n public void init() {\n }", "private void poetries() {\n\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "private void init() {\n\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}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n protected void init() {\n }", "@Override\n void init() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "private void m50366E() {\n }", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n public void init() {}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n public void initialize() { \n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\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 }", "private void init() {\n\n\n\n }", "public void mo6081a() {\n }", "private void strin() {\n\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\n public void init() {\n }", "@Override\n\tprotected void update() {\n\t\t\n\t}", "public void method_4270() {}", "private void initialize() {\n\t\t\n\t}", "@Override\n\t\tpublic void init() {\n\t\t}", "public void mo21877s() {\n }" ]
[ "0.6207563", "0.6061318", "0.6056123", "0.60133874", "0.5918954", "0.5918954", "0.587573", "0.5860392", "0.58594203", "0.5850995", "0.5848125", "0.5827135", "0.5827135", "0.5827135", "0.5827135", "0.5827135", "0.58054054", "0.58044595", "0.5797656", "0.57930243", "0.57841796", "0.5780419", "0.5780009", "0.5773193", "0.5773193", "0.5741016", "0.57402605", "0.573896", "0.5738793", "0.5726164", "0.571684", "0.5693527", "0.5693527", "0.5693527", "0.5693527", "0.5693527", "0.5693527", "0.56900966", "0.568307", "0.568307", "0.568307", "0.56796753", "0.56796294", "0.5678237", "0.5674743", "0.567373", "0.56729895", "0.5672602", "0.5672602", "0.5671739", "0.5670139", "0.5666825", "0.5664336", "0.5662736", "0.5662736", "0.5662736", "0.5647557", "0.56455696", "0.5644422", "0.56428224", "0.56428224", "0.56428224", "0.56394434", "0.5638598", "0.56382644", "0.56378776", "0.5634699", "0.5634699", "0.5619717", "0.56116", "0.56061643", "0.55949557", "0.55916965", "0.5582485", "0.5573025", "0.55608916", "0.5558953", "0.5551468", "0.5550191", "0.5550191", "0.5537701", "0.55148745", "0.5504217", "0.55016863", "0.55016863", "0.55016863", "0.55016863", "0.55016863", "0.55016863", "0.55016863", "0.5497993", "0.54816467", "0.54811305", "0.5474654", "0.5474654", "0.54578716", "0.54544514", "0.5448994", "0.5447193", "0.54448724", "0.5441673" ]
0.0
-1
Initialize the contents of the frame.
private void initialize() { frame = new JFrame(); frame.setBounds(100, 100, 450, 300); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JPanel panel = new JPanel(); frame.getContentPane().add(panel, BorderLayout.CENTER); panel.setLayout(null); JLabel lblNewLabel = new JLabel("\u8D27\u7269\u7F16\u53F7\uFF1A"); lblNewLabel.setBounds(75, 79, 71, 15); panel.add(lblNewLabel); JLabel lblNewLabel_1 = new JLabel("\u66F4\u6539\u8D27\u7269\u5355\u4EF7\u4E3A\uFF1A"); lblNewLabel_1.setBounds(79, 147, 104, 15); panel.add(lblNewLabel_1); textField = new JTextField(); textField.setBounds(193, 76, 66, 21); panel.add(textField); textField.setColumns(10); JButton button = new JButton("\u786E\u5B9A"); button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { String ID=textField.getText(); String num=textField_2.getText(); Connection con=Linkdb.getcon(); int resule=0; String sql="update 货物 set 货物单价= "+num+" where 货物编号="+ID; try { PreparedStatement ps=con.prepareStatement(sql); resule=ps.executeUpdate(); if(resule>0) { JOptionPane.showMessageDialog(null, "更改成功!"); }else{ JOptionPane.showMessageDialog(null, "更改出错!"); } } catch (HeadlessException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } catch (SQLException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } } }); button.setBounds(156, 196, 93, 23); panel.add(button); textField_2 = new JTextField(); textField_2.setBounds(193, 144, 66, 21); panel.add(textField_2); textField_2.setColumns(10); JMenuBar menuBar = new JMenuBar(); frame.setJMenuBar(menuBar); JMenu menu = new JMenu("\u8FD4\u56DE"); menu.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent arg0) { HomeScreen rw=new HomeScreen(); rw.run(); frame.setVisible(false); } }); menuBar.add(menu); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BreukFrame() {\n super();\n initialize();\n }", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}", "public SiscobanFrame() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1100, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tsetUIComponents();\n\t\tsetControllers();\n\n\t}", "private void initialize() {\r\n\t\tthis.setSize(530, 329);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}", "private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\taddSampleData();\n\t\tsetDefaultSettings();\n\t\topenHomePage();\n\t\tframe.setVisible(true);\n\t}", "private void initialize() {\n\t\tframe = new JFrame(\"Media Inventory\");\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1000, 700);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tframeContent = new JPanel();\n\t\tframe.getContentPane().add(frameContent);\n\t\tframeContent.setBounds(10, 10, 700, 640);\n\t\tframeContent.setLayout(null);\n\t\t\n\t\tinfoPane = new JPanel();\n\t\tframe.getContentPane().add(infoPane);\n\t\tinfoPane.setBounds(710, 10, 300, 640);\n\t\tinfoPane.setLayout(null);\n\t}", "private void initialize() {\n\t\tframe = new JFrame(\"BirdSong\");\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t\tframe.setBounds(100, 100, 400, 200);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tabc = new BirdPanel();\n\t\ttime = new TimePanel();\n\t\tgetContentPane().setLayout(new BoxLayout(frame, BoxLayout.Y_AXIS));\n\n\t\tframe.getContentPane().add(abc, BorderLayout.NORTH);\n\t\tframe.getContentPane().add(time, BorderLayout.CENTER);\n\t}", "private void initialize() {\r\n\t\tthis.setSize(311, 153);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tsetCancelButton( btnCancel );\r\n\t}", "public Frame() {\n initComponents();\n }", "public Frame() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(497, 316);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tthis.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "protected HFrame(){\n\t\tinit();\n\t}", "private void initializeFields() {\r\n myFrame = new JFrame();\r\n myFrame.setSize(DEFAULT_SIZE);\r\n }", "private void initialize() {\n\t\tthis.setSize(329, 270);\n\t\tthis.setContentPane(getJContentPane());\n\t}", "private void initialize() {\r\n\t\t//setFrame\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(125,175, 720, 512);\r\n\t\tframe.setTitle(\"Periodic Table\");\r\n\t\tframe.setResizable(false);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "private void initFrame() {\n setLayout(new BorderLayout());\n }", "private void initialize() {\n\t\tthis.setSize(300, 300);\n\t\tthis.setIconifiable(true);\n\t\tthis.setClosable(true);\n\t\tthis.setTitle(\"Sobre\");\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setFrameIcon(new ImageIcon(\"images/16x16/info16x16.gif\"));\n\t}", "public FrameControl() {\n initComponents();\n }", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "public MainFrame() {\n initComponents();\n \n }", "private void init(Element frame) {\n\t\tthis.frameWidth = Integer.parseInt(frame.attributeValue(\"width\"));\n\t\tthis.frameHeight = Integer.parseInt(frame.attributeValue(\"height\"));\n\t\tthis.paddle = Integer.parseInt(frame.attributeValue(\"paddle\"));\n\t\tthis.size = Integer.parseInt(frame.attributeValue(\"size\"));\n\t}", "public MainFrame() {\n \n initComponents();\n \n this.initNetwork();\n \n this.render();\n \n }", "public internalFrame() {\r\n initComponents();\r\n }", "private void initialize() {\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setSize(810, 600);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\tthis.setModal(true);\n\t\tthis.setResizable(false);\n\t\tthis.setName(\"FramePrincipalLR\");\n\t\tthis.setTitle(\"CR - Lista de Regalos\");\n\t\tthis.setLocale(new java.util.Locale(\"es\", \"VE\", \"\"));\n\t\tthis.setUndecorated(false);\n\t}", "public Mainframe() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(392, 496);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"Informações\");\r\n\t}", "private void initialize() {\n this.setSize(253, 175);\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setContentPane(getJContentPane());\n this.setTitle(\"Breuken vereenvoudigen\");\n }", "private void initialize() {\r\n\t\t// Initialize main frame\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(Constants.C_MAIN_PREFERED_POSITION_X_AT_START, Constants.C_MAIN_PREFERED_POSITION_Y_AT_START, \r\n\t\t\t\tConstants.C_MAIN_PREFERED_SIZE_X, Constants.C_MAIN_PREFERED_SIZE_Y);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.setTitle(Constants.C_MAIN_WINDOW_TITLE);\r\n\t\t\r\n\t\t// Tab panel and their panels\r\n\t\tmainTabbedPane = new JTabbedPane(JTabbedPane.TOP);\r\n\t\tframe.getContentPane().add(mainTabbedPane, BorderLayout.CENTER);\r\n\t\t\r\n\t\tpanelDecision = new DecisionPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_DECISION_TITLE, null, panelDecision, null);\r\n\t\t\r\n\t\tpanelCalculation = new CalculationPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_CALCULATION_TITLE, null, panelCalculation, null);\r\n\t\t\r\n\t\tpanelLibrary = new LibraryPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_LIBRARY_TITLE, null, panelLibrary, null);\r\n\t\t\r\n\t\t// Menu bar\r\n\t\tmenuBar = new JMenuBar();\r\n\t\tframe.setJMenuBar(menuBar);\r\n\t\tcreateMenus();\r\n\t}", "public void initializeFrame() {\n frame.getContentPane().removeAll();\n createComponents(frame.getContentPane());\n// frame.setSize(new Dimension(1000, 600));\n }", "private void initialize() {\r\n\t\t// this.setSize(271, 295);\r\n\t\tthis.setSize(495, 392);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(ResourceBundle.getBundle(\"Etiquetas\").getString(\"MainTitle\"));\r\n\t}", "private void initializeFrame() {\n add(container);\n setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n pack();\n }", "private void initialize() {\n this.setSize(300, 200);\n this.setContentPane(getJContentPane());\n this.pack();\n }", "private void initialize() {\n\t\tframe = new JFrame(\"DB Filler\");\n\t\tframe.setBounds(100, 100, 700, 500);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tdbc = new DataBaseConnector();\n\t\tcreateFileChooser();\n\n\t\taddTabbedPane();\n\t\tsl_panel = new SpringLayout();\n\t\taddAddFilePanel();\n\t}", "public mainframe() {\n initComponents();\n }", "public FrameDesign() {\n initComponents();\n }", "public Jframe() {\n initComponents();\n setIndice();\n loadTextBoxs();\n }", "public JGSFrame() {\n\tsuper();\n\tinitialize();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n try {\n initComponents();\n initElements();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Error \" + e.getMessage());\n }\n }", "private void initialize() {\n this.setSize(495, 276);\n this.setTitle(\"Translate Frost\");\n this.setContentPane(getJContentPane());\n }", "private void initialize() {\r\n\t\t// set specific properties and add inner components.\r\n\t\tthis.setBorder(BorderFactory.createEtchedBorder());\r\n\t\tthis.setSize(300, 400);\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\taddComponents();\r\n\t}", "private void initialize() {\r\n\t\tthis.setBounds(new Rectangle(0, 0, 670, 576));\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setTitle(\"数据入库 \");\r\n\t\tthis.setLocationRelativeTo(getOwner());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "public void initializePanelToFrame() {\n\t\tnew ColorResources();\n\t\tnew TextResources().changeLanguage();\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setPreferredSize(new Dimension(375, 812));\n\n\t\tconfigureLabels();\n\t\tconfigureButtons();\n\t\taddListeners();\n\t\taddComponentsToPanel();\n\n\t\tthis.setContentPane(panel);\n\t\tthis.pack();\n\t}", "private void initialize() {\n this.setLayout(new BorderLayout());\n this.setSize(new java.awt.Dimension(564, 229));\n this.add(getMessagePanel(), java.awt.BorderLayout.NORTH);\n this.add(getBalloonSettingsListBox(), java.awt.BorderLayout.CENTER);\n this.add(getBalloonSettingsButtonPane(), java.awt.BorderLayout.SOUTH);\n\n editBalloonSettingsFrame = new EditBalloonSettingsFrame();\n\n }", "public SMFrame() {\n initComponents();\n updateComponents();\n }", "private void initialize() {\n m_frame = new JFrame(\"Video Recorder\");\n m_frame.setResizable(false);\n m_frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n m_frame.setLayout(new BorderLayout());\n m_frame.add(buildContentPanel(), BorderLayout.CENTER);\n\n JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 5, 5));\n JButton startButton = new JButton(\"Start\");\n startButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent ae) {\n listen();\n }\n });\n buttonPanel.add(startButton);\n\n m_connectionLabel = new JLabel(\"Disconnected\");\n m_connectionLabel.setOpaque(true);\n m_connectionLabel.setBackground(Color.RED);\n m_connectionLabel.setBorder(BorderFactory.createLineBorder(Color.BLACK, 3));\n m_connectionLabel.setPreferredSize(new Dimension(100, 26));\n m_connectionLabel.setHorizontalAlignment(SwingConstants.CENTER);\n buttonPanel.add(m_connectionLabel);\n\n m_frame.add(buttonPanel, BorderLayout.PAGE_END);\n }", "public FirstNewFrame() {\n\t\tjbInit();\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Play\");\n\t\tbtnNewButton.setFont(new Font(\"Bodoni 72\", Font.BOLD, 13));\n\t\tbtnNewButton.setBounds(frame.getWidth() / 2 - 60, 195, 120, 30);\n\t\tframe.getContentPane().add(btnNewButton);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Space Escape\");\n\t\tlblNewLabel.setForeground(Color.WHITE);\n\t\tlblNewLabel.setFont(new Font(\"Bodoni 72\", Font.BOLD, 24));\n\t\tlblNewLabel.setBounds(frame.getWidth() / 2 - 60, 30, 135, 25);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"New label\");\n\t\tlblNewLabel_1.setBounds(0, 0, frame.getWidth(), frame.getHeight());\n\t\tframe.getContentPane().add(lblNewLabel_1);\n\t}", "private void initializeFrame()\r\n\t{\r\n\t\tthis.setResizable(false);\r\n\r\n\t\tsetSize(DIMENSIONS); // set the correct dimensions\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\tsetLayout( new GridLayout(1,1) );\r\n\t}", "private void setupFrame()\n\t{\n\t\tthis.setContentPane(botPanel);\n\t\tthis.setSize(800,700);\n\t\tthis.setTitle(\"- Chatbot v.2.1 -\");\n\t\tthis.setResizable(true);\n\t\tthis.setVisible(true);\n\t}", "public MainFrame() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public EmulatorFrame() {\r\n\t\tsuper(\"Troyboy Chip8 Emulator\");\r\n\t\t\r\n\t\tsetNativeLAndF();\r\n\t\tinitComponents();\r\n\t\tinitMenubar();\r\n\t\tsetupLayout();\r\n\t\tinitFrame();\r\n\t\t//frame is now ready to run a game\r\n\t\t//running of any games must be started by loading a ROM\r\n\t}", "public void init()\n {\n buildUI(getContentPane());\n }", "private void initialize()\n {\n this.setTitle( \"SerialComm\" ); // Generated\n this.setSize( 500, 300 );\n this.setContentPane( getJContentPane() );\n }", "public launchFrame() {\n \n initComponents();\n \n }", "private void initialize() {\r\n\t\tthis.setSize(378, 283);\r\n\t\tthis.setJMenuBar(getMenubar());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JAVIER\");\r\n\t}", "private void initialize() {\n\t\tthis.setSize(430, 280);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setUndecorated(true);\n\t\tthis.setModal(true);\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setTitle(\"Datos del Invitado\");\n\t\tthis.addComponentListener(this);\n\t}", "public PilaFrame() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 900, 900);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tgame = new Game();\n\t\t\n\t\tGameTable puzzle = new GameTable(game.getPuzzle());\n\t\tpuzzle.setBounds(100, 100, 700, 700);\n\t\t\n\t\tframe.add(puzzle);\n\t\t\n\t\tSystem.out.println(\"SAD\");\n\t\t\n\t}", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setResizable(false);\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tPanel mainFramePanel = new Panel();\r\n\t\tmainFramePanel.setBounds(10, 10, 412, 235);\r\n\t\tframe.getContentPane().add(mainFramePanel);\r\n\t\tmainFramePanel.setLayout(null);\r\n\t\t\r\n\t\tfinal TextField textField = new TextField();\r\n\t\ttextField.setBounds(165, 62, 79, 24);\r\n\t\tmainFramePanel.add(textField);\r\n\t\t\r\n\t\tButton changeTextButt = new Button(\"Change Text\");\r\n\t\tchangeTextButt.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\ttextField.setText(\"Domograf\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tchangeTextButt.setBounds(165, 103, 79, 24);\r\n\t\tmainFramePanel.add(changeTextButt);\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setResizable(false);\n\t\tframe.setAlwaysOnTop(true);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t}", "StudentFrame() {\n \tgetContentPane().setFont(new Font(\"Times New Roman\", Font.PLAIN, 11));\n s1 = null; // setting to null\n initializeComponents(); // causes frame components to be initialized\n }", "private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setTitle(\"Error\");\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "public NewFrame() {\n initComponents();\n }", "public SerialCommFrame()\n {\n super();\n initialize();\n }", "public LoginFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public BaseFrame() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(733, 427);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"jProxyChecker\");\r\n\t}", "public frame() {\r\n\t\tadd(createMainPanel());\r\n\t\tsetTitle(\"Lunch Date\");\r\n\t\tsetSize(FRAME_WIDTH, FRAME_HEIGHT);\r\n\r\n\t}", "public MercadoFrame() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 800, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJPanel browserPanel = new JPanel();\n\t\tframe.getContentPane().add(browserPanel, BorderLayout.CENTER);\n\t\t\n\t\t// create javafx panel for browser\n browserFxPanel = new JFXPanel();\n browserPanel.add(browserFxPanel);\n \n // create JavaFX scene\n Platform.runLater(new Runnable() {\n public void run() {\n createScene();\n }\n });\n\t}", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(X_FRAME, Y_FRAME, WIDTH_FRAME, HEIGHT_FRAME);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJButton btnAddSong = new JButton(\"Add song\");\r\n\t\tbtnAddSong.setBounds(X_BTN, Y_ADDSONG, WIDTH_BTN, HEIGHT_BTN);\r\n\t\tframe.getContentPane().add(btnAddSong);\r\n\t\t\r\n\t\tJTextPane txtpnBlancoYNegro = new JTextPane();\r\n\t\ttxtpnBlancoYNegro.setText(\"Blanco y negro\\r\\nThe Spectre\\r\\nGirasoles\\r\\nFaded\\r\\nTu Foto\\r\\nEsencial\");\r\n\t\ttxtpnBlancoYNegro.setBounds(X_TXT, Y_TXT, WIDTH_TXT, HEIGHT_TXT);\r\n\t\tframe.getContentPane().add(txtpnBlancoYNegro);\r\n\t\t\r\n\t\tJLabel lblSongs = new JLabel(\"Songs\");\r\n\t\tlblSongs.setBounds(X_LBL, Y_LBL, WIDTH_LBL, HEIGHT_LBL);\r\n\t\tframe.getContentPane().add(lblSongs);\r\n\t\t\r\n\t\tJButton btnAddAlbum = new JButton(\"Add album\");\r\n\t\tbtnAddAlbum.setBounds(X_BTN, Y_ADDALBUM, WIDTH_BTN, HEIGHT_BTN);\r\n\t\tframe.getContentPane().add(btnAddAlbum);\r\n\t}", "public holdersframe() {\n initComponents();\n }", "public void init() {\n\t\tsetSize(500,300);\n\t}", "private void setupFrame()\n\t\t{\n\t\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\tthis.setResizable(false);\n\t\t\tthis.setSize(800, 600);\n\t\t\tthis.setTitle(\"SEKA Client\");\n\t\t\tthis.setContentPane(panel);\n\t\t\tthis.setVisible(true);\n\t\t}", "public addStFrame() {\n initComponents();\n }", "public JFrame() {\n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame(\"View Report\");\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\n\t\tJButton backButton = new JButton(\"Back\");\n\t\tbackButton.setBounds(176, 227, 89, 23);\n\t\tframe.getContentPane().add(backButton);\n\t\tbackButton.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tframe.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJTextArea textArea = new JTextArea();\n\t\ttextArea.setBounds(50, 30, 298, 173);\n\t\tframe.getContentPane().add(textArea);\n\t\ttextArea.append(control.seeReport());\n\t\tframe.setVisible(true);\n\t}", "private void initialize() {\r\n this.setSize(new Dimension(666, 723));\r\n this.setContentPane(getJPanel());\r\n\t\t\t\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblSubmission = new JLabel(\"Submission\");\n\t\tlblSubmission.setForeground(Color.WHITE);\n\t\tlblSubmission.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 16));\n\t\tlblSubmission.setBounds(164, 40, 83, 14);\n\t\tframe.getContentPane().add(lblSubmission);\n\t\t\n\t\tJLabel lblTitle = new JLabel(\"Title:\");\n\t\tlblTitle.setForeground(Color.WHITE);\n\t\tlblTitle.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tlblTitle.setBounds(77, 117, 41, 14);\n\t\tframe.getContentPane().add(lblTitle);\n\t\t\n\t\tJLabel lblPath = new JLabel(\"Path:\");\n\t\tlblPath.setForeground(Color.WHITE);\n\t\tlblPath.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tlblPath.setBounds(85, 155, 33, 14);\n\t\tframe.getContentPane().add(lblPath);\n\t\t\n\t\ttitle = new JTextField();\n\t\ttitle.setBounds(128, 116, 197, 20);\n\t\tframe.getContentPane().add(title);\n\t\ttitle.setColumns(10);\n\t\t\n\t\tpath = new JTextField();\n\t\tpath.setBounds(128, 154, 197, 20);\n\t\tframe.getContentPane().add(path);\n\t\tpath.setColumns(10);\n\t\t\n\t\tbtnSubmit = new JButton(\"Submit\");\n\t\tbtnSubmit.setBackground(Color.BLACK);\n\t\tbtnSubmit.setForeground(Color.WHITE);\n\t\tbtnSubmit.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tbtnSubmit.setBounds(158, 210, 89, 23);\n\t\tframe.getContentPane().add(btnSubmit);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tframe.setVisible(true);\n\t}", "public void init() {\r\n\t\t\r\n\t\tsetSize(WIDTH, HEIGHT);\r\n\t\tColor backgroundColor = new Color(60, 0, 60);\r\n\t\tsetBackground(backgroundColor);\r\n\t\tintro = new GImage(\"EvilMehranIntroGraphic.png\");\r\n\t\tintro.setLocation(0,0);\r\n\t\tadd(intro);\r\n\t\tplayMusic(new File(\"EvilMehransLairThemeMusic.wav\"));\r\n\t\tinitAnimationArray();\r\n\t\taddKeyListeners();\r\n\t\taddMouseListeners();\r\n\t\twaitForClick();\r\n\t\tbuildWorld();\r\n\t}", "public FrameIntroGUI() {\n\t\ttry {\n\t\t\tjbInit();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void initialize() {\n\t\tthis.setBounds(100, 100, 950, 740);\n\t\tthis.setLayout(null);\n\n\t\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblCoisa = new JLabel(\"Coisa\");\n\t\tlblCoisa.setBounds(10, 11, 46, 14);\n\t\tframe.getContentPane().add(lblCoisa);\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setBounds(39, 8, 86, 20);\n\t\tframe.getContentPane().add(textField);\n\t\ttextField.setColumns(10);\n\t}", "private void initialize() {\n\t\tthis.setExtendedState(Frame.MAXIMIZED_BOTH);\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setResizable(true);\n\t\tthis.screenDimensions = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tthis.getContentPane().setLayout(new BorderLayout());\n\t\t// Initialize SubComponents and GUI Commands\n\t\tthis.initializeSplitPane();\n\t\tthis.initializeExplorer();\n\t\tthis.initializeConsole();\n\t\tthis.initializeMenuBar();\n\t\tthis.pack();\n\t\tthis.hydraExplorer.refreshExplorer();\n\t}" ]
[ "0.77704835", "0.75652915", "0.7442664", "0.7369101", "0.7366378", "0.7358479", "0.73146075", "0.73096764", "0.72987294", "0.72978777", "0.7278321", "0.72729623", "0.7269468", "0.7269468", "0.7215727", "0.7180792", "0.71682984", "0.7140954", "0.7140953", "0.7126852", "0.7107974", "0.7100368", "0.7092515", "0.708178", "0.70652425", "0.70630395", "0.70621413", "0.7060283", "0.70517516", "0.7043992", "0.6996167", "0.6978269", "0.6971387", "0.6956391", "0.6938475", "0.6929829", "0.6929629", "0.69251114", "0.6921989", "0.6920365", "0.6914633", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.69020075", "0.68911743", "0.6886017", "0.6873457", "0.6870402", "0.68686837", "0.68669385", "0.686311", "0.68616706", "0.68552315", "0.68537515", "0.681551", "0.68141145", "0.68094325", "0.67992085", "0.67930394", "0.6782133", "0.6765297", "0.6748138", "0.6731745", "0.6716807", "0.6711878", "0.6706194", "0.6697453", "0.6692831", "0.66927665", "0.6689213", "0.66724384", "0.66606426", "0.664954", "0.6642464", "0.6640775", "0.6638488", "0.663824", "0.663545", "0.66264987", "0.6625419", "0.6611392", "0.6608291", "0.6600817", "0.66005784", "0.6591052", "0.65869486", "0.65862876", "0.65753394", "0.6575285", "0.6570335", "0.655961" ]
0.0
-1
/ Obtains the referenced object.
public Object getObject() throws javax.naming.NamingException { if (ThreadContext.isValid()) { ThreadContext cntx = ThreadContext.getThreadContext(); byte operation = cntx.getCurrentOperation(); checkOperation(operation); } return ref.getObject(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ObjectReference getObject();", "public Object getObject() {\n return getObject(null);\n }", "public Object getObject() {\r\n\t\treturn this.object;\r\n\t}", "public Object getObject() {\n\t\treturn object;\n\t}", "public Object getObject() {\n return this.object;\n }", "public Object getObject()\n {\n return m_object;\n }", "protected BusinessObject getReferencedObject () {\n\t\treturn this;\n\t}", "public Object getObject() ;", "public Object getObject();", "public IDfPersistentObject getObject() {\n\t\treturn object;\n\t}", "public ObjectReferenceImpl getObjectReferenceImpl() {\n return (ObjectReferenceImpl) objectReference;\n }", "public T getObject()\n\t{\n\t\treturn object;\n\t}", "public ObjectReference getObjectReference() {\n return new ObjectReferenceBuilder()\n .withApiVersion(getApiVersion())\n .withKind(getKind())\n .withName(getMetaName())\n .withNamespace(getMetaspace())\n .withUid(getMetadata().getUid())\n .build();\n }", "public Object getObject() {\n return getSource();\n }", "Object getObject();", "Object getObject();", "Object getObject();", "Object getObject();", "public Object getObject() {\r\n/* 109 */ return this.object;\r\n/* */ }", "private Object retrieveObject(String name)\r\n {\r\n Object retVal = null;\r\n\r\n // retrieve the object that the weak reference refers to, if any\r\n WeakReference ref = (WeakReference) nameObjects.get(name);\r\n if (ref != null)\r\n {\r\n retVal = ref.get();\r\n }\r\n \r\n return retVal;\r\n }", "PIMBankObject getDomainObjectRef();", "Reference owner();", "public Object getObject() {\n\t\treturn this.currentAction.getObject();\n\t}", "public Object getObject()\n {\n initialize();\n\n if (_invariant)\n return _cachedValue;\n\n return resolveProperty();\n }", "public Object getLocalReference()\n {\n return m_localInstance;\n }", "public Object getObject()\n {\n if (currentObject == null)\n \t return null;\n else\n return AL.indexOf(currentObject);\n }", "public NetObject getObject();", "public Object get() {\n synchronized (lock) {\n if (!set) { throw new IllegalStateException(\"Reference has not been set\"); }\n\n return ref;\n }\n }", "public Reference getReference() throws NamingException\n {\n return ref;\n }", "public Object getObjectInstance(\n Object object, Name name, Context context, Hashtable environment) {\n if (object instanceof Reference) {\n Reference reference = (Reference) object;\n RefAddr url = reference.get(URL_PARAMETER);\n if (url != null && url.getContent() != null) {\n try {\n return getRepository(url.getContent().toString());\n } catch (Exception e) {\n return null;\n }\n }\n }\n return null;\n }", "@Override\n public Object getObject()\n {\n return null;\n }", "public Object getObject() {\n return getGroup();\n }", "public Object getTargetObject() {\n return targetObject;\n }", "public Object obj()\n\t{\n\t\treturn object;\n\t}", "@Override\n public Object getReferenced(Optional<?> reference) {\n return reference.orElse(null);\n }", "public ReferenceRemote getReferenceLocal()\n throws RemoteException, IOException {\n refObj = new ReferenceAdapter();\n return refObj;\n }", "public DynamicObject getObject() {\r\n\t\treturn _dynamicObject;\r\n\t}", "public abstract Reference getReference() throws NamingException ;", "@Override\r\n\tpublic Ref getRef() {\n\t\treturn ref;\r\n\t}", "public String getObject() {\n return mObject;\n }", "GameObject getObject();", "public Object getObjectInstance(Object obj, Name name, Context ctx, Hashtable environment) throws Exception {\r\n//\t\tContext ctx = getInitialContext(environment);\r\n\t\tReference ref = (Reference)obj;\r\n\t\tString url_string = (String)ref.get(\"URL\").getContent();\r\n\t\tURL url = new URL(url_string);\r\n\t\treturn url.getContent();\r\n }", "@Override\n\t\tpublic Object getObject() throws Throwable {\n\t\t\treturn this;\n\t\t}", "@java.lang.Override\n public com.google.protobuf2.Any getObject() {\n return object_ == null ? com.google.protobuf2.Any.getDefaultInstance() : object_;\n }", "public PrimObject reference(String name) {\n return resolveObject(name);\n }", "public String getReference();", "public String getReference();", "Object getRefid();", "public String reference(Object obj) {\n return null;\n }", "String getObjectRefName();", "String getReference();", "String getReference();", "private Object deref(Object o) {\r\n if (o != null && o instanceof WeakReference)\r\n return ((WeakReference)o).get();\r\n else\r\n return null;\r\n }", "public IDatatype getReference() { \n\t\treturn myReference;\n\t}", "public INamedReference<IEntity> getEntityRef();", "public String getAssociatedObject() {\n return associatedObject;\n }", "public Object elGetReference(Object bean);", "private ObsolescenceReference retrieveReference() {\n \n if (StringUtil.isEmptyOrNull(selectedReferenceName)) {\n return null;\n }\n \n switch (referenceTypeChosen) {\n case MANUFACTURERPN_TYPEARTICLE:\n ManufacturerPN lManufacturerPN =\n articleBean.findManufacturerPNByName(selectedReferenceName);\n if (lManufacturerPN != null && selectedTypeArticle != null) {\n return new ObsolescenceReference(lManufacturerPN,\n selectedTypeArticle);\n }\n else {\n return null;\n }\n \n case AIRBUSPN_TYPEARTICLE:\n AirbusPN lAirbusPN =\n articleBean.findAirbusPNByName(selectedReferenceName);\n if (lAirbusPN != null && selectedTypeArticle != null) {\n return new ObsolescenceReference(lAirbusPN, selectedTypeArticle);\n }\n else {\n return null;\n }\n \n case SOFTWARE:\n return new ObsolescenceReference(\n softBean.findByCompleteName(selectedReferenceName));\n \n case TYPEPC:\n return new ObsolescenceReference(\n articleBean.findTypePCByName(selectedReferenceName));\n default:\n }\n return null;\n }", "public E get(Object key) {\n WeakReference<E> weakRef = _obj2Ref.get(key);\n return weakRef != null ? weakRef.get() : null;\n }", "RefClass getOwnerClass();", "public com.vmware.converter.ManagedObjectReference getObj() {\r\n return obj;\r\n }", "public T getRefer() {\n return refer;\n }", "@Override\n\tpublic GamePiece getObject() {\n\t\treturn null;\n\t}", "Object getFrom();", "public Object getObjectToVerify() {\r\n\t\treturn objectToVerify;\r\n\t}", "@Override\n\tpublic IBasicObject getAccessedObject() {\n\t\treturn heldObj.getAccessedObject();\n\t}", "public com.google.protobuf2.Any getObject() {\n if (objectBuilder_ == null) {\n return object_ == null ? com.google.protobuf2.Any.getDefaultInstance() : object_;\n } else {\n return objectBuilder_.getMessage();\n }\n }", "@java.lang.Override\n public com.google.protobuf2.AnyOrBuilder getObjectOrBuilder() {\n return getObject();\n }", "protected TopicMapObject getReference(Object o, String identifier)\n throws JellyTagException {\n\n if (o == null)\n return null;\n\n if (!(o instanceof TopicMapObject)) {\n // the identifier was bound to an object\n // other than a topic.\n // This is a failure\n String msg = identifier\n + \" does not refer to an instace of TopicMapObject but to an \";\n msg += \"instance of \" + o.getClass();\n throw new JellyTagException(msg);\n }\n\n // success\n return (TopicMapObject) o;\n\n }", "public SoftReference getReference ()\r\n {\r\n return _reference;\r\n }", "public static Reference getReference() {\n return getRequest() == null ? null : getRequest().getResourceRef();\n }", "public Object getObject() {\n return getWildcard();\n }", "java.lang.String getRef();", "protected Object readResolve() {\r\n\t\treturn getInstance();\r\n\t}", "protected Object readResolve() {\r\n\t\treturn getInstance();\r\n\t}", "public ReferenceHelper getReferenceHelper();", "public final String getReference() {\n return reference;\n }", "public Git.Entry getObject() { return ent; }", "private Object readResolve() {\n\t\treturn singletonObj;\n\t}", "T getObject() {\n\t\t\treturn data;\n\t\t}", "public Object getUserObject();", "public String getReference() {\n return reference;\n }", "eu.learnpad.transformations.metamodel_corpus.xwiki.Object getObject();", "EReference getModelReference();", "public abstract Object getUnderlyingObject();", "public Object getUserObject()\n\t{\n\t\treturn userObject;\n\t}", "public Object getCurrentObject()\r\n\t{\r\n\t\tif (newState != null)\r\n\t\t{\r\n\t\t\t// Not applied yet\r\n\t\t\treturn newState.unmodifiedObject;\r\n\t\t}\r\n\r\n\t\treturn propertyBrowser.getObject();\r\n\t}", "public OwObject getObject()\r\n {\r\n return m_clipobject;\r\n }", "public String getReference() {\n return reference;\n }", "public String getReference() {\n return reference;\n }", "public String getReference() {\n return reference;\n }", "private Object readResolve() \r\n { \r\n return instance; \r\n }", "public final Object getObject() \n\t{\n\tif (fTop > 0)\n\t\t{\n\t\tfTop--;\n\t\tObject result = fBin[fTop];\n\t\tfBin[fTop] = null;\n\t\treturn result;\n\t\t}\n\n\tfUnderflowCounter++;\n\tif (fHasOverflowed && (fBin.length < MAX_BIN_SIZE))\n\t\t{\n\t\tcreateBin(fBin.length + BIN_GROW_SIZE);\n\t\tfHasOverflowed = false;\n\t\t}\n\t\t\n\ttry\n\t\t{\n\t\treturn fClass.newInstance();\n\t\t}\n\tcatch (Exception e)\n\t\t{\n\t\treturn null;\n\t\t}\n\t}", "public com.google.protobuf2.AnyOrBuilder getObjectOrBuilder() {\n if (objectBuilder_ != null) {\n return objectBuilder_.getMessageOrBuilder();\n } else {\n return object_ == null ?\n com.google.protobuf2.Any.getDefaultInstance() : object_;\n }\n }", "public java.lang.String getReference() {\n return reference;\n }", "@Override\n\tpublic <T> T getReference(Class<T> entityClass, Object primaryKey) {\n\t\treturn null;\n\t}", "public Object getObject() {\n\t\ttry {\n\t\t\tByteArrayInputStream istream = new ByteArrayInputStream(mStoredObjectArray);\n\t\t\tObjectInputStream p;\n\t\t\tObject toReturn = null;\n\t\t\tif (mIsJython) {\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\ttoReturn = null;\n\t\t\t}\n\t\t\tistream.close();\n\t\t\treturn toReturn;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "public Object read(Object object) {\n EntityManager em = getEntityManager();\n em.getTransaction().begin();\n Object result = null;\n try {\n result = em.find(object.getClass(), \"id\");\n LOG.debug(\"Found \" + object);\n } catch (Exception e) {\n LOG.error(\"Could not find Object\", e);\n } finally {\n em.close();\n }\n return result;\n }", "public Object getTarget()\n {\n return __m_Target;\n }", "public User getObjectOwner() {\r\n\t\treturn objectOwner;\r\n\t}" ]
[ "0.8467903", "0.74675065", "0.7364269", "0.733283", "0.7328839", "0.7285592", "0.72720903", "0.7262881", "0.7229945", "0.7212059", "0.70897627", "0.70536834", "0.69777167", "0.6882415", "0.6869121", "0.6869121", "0.6869121", "0.6869121", "0.6864215", "0.6782727", "0.67825353", "0.67472523", "0.67303103", "0.67016405", "0.6674703", "0.6663491", "0.660049", "0.65820843", "0.65166724", "0.64827126", "0.6470209", "0.646784", "0.64262176", "0.641423", "0.6367052", "0.63599586", "0.63578653", "0.63490367", "0.6344418", "0.63425153", "0.6336724", "0.63344985", "0.63122046", "0.6306155", "0.6304948", "0.6300038", "0.6300038", "0.629814", "0.62927634", "0.6265061", "0.62647635", "0.62647635", "0.622915", "0.6220911", "0.6204949", "0.6192585", "0.6174891", "0.6140307", "0.6136275", "0.6110508", "0.60845816", "0.6074621", "0.60555303", "0.6052022", "0.60406923", "0.6032689", "0.60272497", "0.6019552", "0.60169196", "0.59845304", "0.59759575", "0.5966007", "0.59624916", "0.5951301", "0.5951301", "0.5940282", "0.5932448", "0.5930563", "0.5923207", "0.5912998", "0.5906847", "0.5897023", "0.5894067", "0.5893662", "0.58885497", "0.5885654", "0.58759356", "0.58529085", "0.58497286", "0.58497286", "0.58497286", "0.5844811", "0.5835349", "0.5831827", "0.5824149", "0.58181906", "0.581807", "0.57911104", "0.5783787", "0.5783455" ]
0.71524817
10
/ renamed from: a
public final /* bridge */ /* synthetic */ Object mo2541a() { return Boolean.valueOf(byi.m4371a(byl.f5017a, this.f5018b, ((Boolean) this.f5019c).booleanValue())); }
{ "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
Sets a subscription for an event, defined per client (or for all clients using ), for a particular statistic that satisfies a particular relation with a defined value.
public void setSubscription(String client, String stat, Relation rel, double val) { // Sanity checking try { MACAddress.valueOf(client); } catch (IllegalArgumentException e) { if (!client.equals(WILD_CARD)) { throw new IllegalArgumentException(); } } this.client = client; this.statistic = stat; this.relation = rel; this.value = val; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSubscription(double value) {\n\t this.subscriptions = value;\n\t}", "public void smqOnChange(final long subscribers, final long tid);", "public abstract void setIncSubscribePolicy(SubscribePolicy paramSubscribePolicy);", "public void setWeightSubjectiveValue(Criterion criterion, double value) {\n checkNotNull(criterion);\n this.weight.put(criterion, value);\n }", "public void setAnalysisSubscriptions(Map<AnalysisService, List<String>> subscriptions);", "IPayerEntry setSubscriber(IPolicySubscriber value);", "public Builder setClientSampling(\n io.envoyproxy.envoy.type.v3.FractionalPercent.Builder builderForValue) {\n if (clientSamplingBuilder_ == null) {\n clientSampling_ = builderForValue.build();\n onChanged();\n } else {\n clientSamplingBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "@Override\n public void subscribe(final Set<ValueSpecification> valueSpecifications) {\n LOGGER.debug(\"Added subscriptions to {}\", valueSpecifications);\n subscriptionsSucceeded(valueSpecifications);\n }", "public Builder setClientSampling(io.envoyproxy.envoy.type.v3.FractionalPercent value) {\n if (clientSamplingBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n clientSampling_ = value;\n onChanged();\n } else {\n clientSamplingBuilder_.setMessage(value);\n }\n\n return this;\n }", "@Override\n public void onSubscribe(Subscription s) {\n s.request(10);\n\n // Should not produce anymore data\n s.request(10);\n }", "bool setFrequency(double newFrequency);", "public void setCentreFrequency(double value, int subsystem) {\n _avTable.set(ATTR_CENTRE_FREQUENCY, value, subsystem);\n }", "public void setSignal(double signal) {_signal = signal;}", "IPolicySubscriber withSubscriber();", "public void subscribeActual(s<? super U> sVar) {\n this.f13338b.subscribe(new b(new e(sVar), this.f13894d, this.f13893c));\n }", "public void value(double value) {\n client.histogram(name, value, tags);\n }", "bool setFrequency(double newFrequency)\n {\n if (newFrequency > 534 && newFrequency < 1606)\n {\n frequency = newFrequency\n return true;\n }\n return false;\n }", "void setValue(Endpoint endpoint, double value) {\n endpoint.setValue(this, value);\n }", "public void setEvents(final Collection<SapEvent> value)\n\t{\n\t\tsetEvents( getSession().getSessionContext(), value );\n\t}", "public interface IntfOnChange\n{\n /**\n The method is called when the broker sends a change notification event.\n\n @param subscribers the number of clients subscribed to the topic.\n @param tid the topic name requested or the ephemeral topic ID\n requested to be observed.\n */\n public void smqOnChange(final long subscribers, final long tid);\n}", "public void setSubscriber(SubscriberAndDeviceInformation subscriber) {\n this.subscriber = subscriber;\n }", "public interface SubscriptionManager {\n\n void subscribe(Subscription subscription);\n\n void updateMetric(String tenant, String metricId, Metric.Update update);\n void updateForecaster(String tenant, String metricId, org.hawkular.datamining.forecast.Forecaster.Update update);\n\n boolean isSubscribed(String tenant, String metricId);\n Subscription subscription(String tenant, String metricId);\n Set<Subscription> subscriptionsOfTenant(String tenant);\n\n void unsubscribeAll(String tenant, String metricId);\n void unsubscribe(String tenant, String metricId, Subscription.SubscriptionOwner subscriptionOwner);\n void unsubscribe(String tenant, String metricId, Set<Subscription.SubscriptionOwner> subscriptionOwners);\n\n void setPredictionListener(PredictionListener predictionListener);\n}", "void update(Subscriber record);", "interface ClientSubscriptionManager {\n /**\n * return how many subscriptions this manager has.\n */\n int getSubscriptionCount();\n\n /**\n * Adds the given subscription for the given client to this manager.\n * If this manager already has a subscription\n * for that client then the old subscription is\n * removed and the new one is added.\n *\n * @return true if added or already added; false if caller should retry\n */\n boolean add(Client client, Subscription subscription);\n\n /**\n * Remove any subscription added for the given client.\n *\n * @return true if removed false if not removed\n */\n boolean remove(Client client);\n\n /**\n * The returned collection MUST be a live view of the subscriptions\n * in the manager. This means that if a subscription is added or\n * removed to the manager in the future then the returned Collection\n * will know about that change.\n */\n Collection<Subscription> getSubscriptions();\n}", "void clientData(final int index, final int data, final double value);", "public void setSubscriptionTypeId(Integer value) {\n this.subscriptionTypeId = value;\n }", "private void setConditionAndListener(ObjectProperty<ConditionViewModel> property) {\n setCondition(property.get());\n\n // Update for new values\n property.addListener((observable, oldValue, newValue) -> setCondition(newValue));\n }", "public void set(float signal);", "public void listen(int UPDATE_VALUE){\n \tif(this.filterType.filter(UPDATE_VALUE)) {\n \t\tthis.setBNumber(this.getBNumber() + UPDATE_VALUE);\n \t}\n }", "public final void setSub(final Subscriber sub)\r\n {\r\n this.sub_ = sub;\r\n }", "public void notifyObservers(int UPDATE_VALUE){\n\t\tfor(int i = 0; i < observerNodes.size();i++){\n\t\t\tNode currentNode = observerNodes.get(i);\n\t\t\tif(currentNode.filterType.filter(UPDATE_VALUE)) {\n\t\t\t\t\tcurrentNode.listen(UPDATE_VALUE);\n\t\t }\n\t\t}\n\t}", "boolean add(Client client, Subscription subscription);", "public void changed(ObservableValue ov, Number value, Number new_value)\n {\n\n String dsEstoque = optionsEstoques.get(new_value.intValue());\n String[] campoEstoque = dsEstoque.split(\"-\");\n estoque = new Estoque();\n estoque.setCdEstoque(campoEstoque[0]);\n estoque.setDsEstoque(campoEstoque[1]);\n }", "public final void setInterceptor(Predicate<? extends Event> value)\n {\n myInterceptorProperty.set(value);\n }", "public Builder setSubscribe(messages.Facademessages.Subscribe value) {\n if (subscribeBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n subscribe_ = value;\n onChanged();\n } else {\n subscribeBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000008;\n return this;\n }", "public void changed(ObservableValue ov, Number value, Number new_value)\n\t {\n\n\t String dsConexao = optionsConexao.get(new_value.intValue());\n\t conexao = dao.consultar(dsConexao);\n\t carregarEmpresas(consultas.listar(conexao));\n\t carregarConfigSuprii(conexao);\n\t }", "@Override\n public void onNext(final SubscribeRequest value) {\n\n Map<FieldDescriptor, Object> notification = value.getAllFields();\n try {\n Thread.sleep(1000L);\n } catch (InterruptedException e) {\n Thread.currentThread().interrupt();\n }\n Update contents = FileResponse.from(\"subscribeResponse.gnmi\");\n Notification serverNotification = Notification.newBuilder().addUpdate(contents).build();\n final SubscribeResponse.Builder builder = SubscribeResponse.newBuilder()\n .mergeUpdate(serverNotification);\n responseObserver.onNext(builder.build());\n }", "void addNewSubscription(Subscription newSubscription);", "@Override\n public void measurementPatient(int value, int timestamp) {\n }", "public void setValuePerConversionManyPerClick(Double valuePerConversionManyPerClick) {\r\n this.valuePerConversionManyPerClick = valuePerConversionManyPerClick;\r\n }", "public void subscribeActual(s<? super T> sVar) {\n this.f13338b.subscribe(new a(sVar));\n }", "Subscriptions() {\n // Will get filled in with set methods\n }", "public void setEvents(final SessionContext ctx, final Collection<SapEvent> value)\n\t{\n\t\tEVENTSHANDLER.setValues( ctx, this, value );\n\t}", "public void changed(ObservableValue ov, Number value, Number new_value)\n {\n\n String dsMultiEmpresa = optionsEmpresa.get(new_value.intValue());\n String[] cdMultiEmpresa = dsMultiEmpresa.split(\"-\");\n carregarEstoques(consultas.listarEstoques(conexao,cdMultiEmpresa[0]));\n }", "public void setMessageFired(final String value)\r\n\t{\r\n\t\tsetMessageFired( getSession().getSessionContext(), value );\r\n\t}", "private static void ClientObserver() {\n NewsAgency agency = new NewsAgency();\n\n // il canale televisivo le osserva, rilancia\n agency.addObserver( new NewsChannel( \"rai1\") );\n agency.addObserver( new NewsChannel( \"rai2\") );\n\n agency.setNews( \"30 e lode a tutti\" );\n agency.setNews( \"Data test\" );\n }", "public Builder mergeClientSampling(io.envoyproxy.envoy.type.v3.FractionalPercent value) {\n if (clientSamplingBuilder_ == null) {\n if (clientSampling_ != null) {\n clientSampling_ =\n io.envoyproxy.envoy.type.v3.FractionalPercent.newBuilder(clientSampling_).mergeFrom(value).buildPartial();\n } else {\n clientSampling_ = value;\n }\n onChanged();\n } else {\n clientSamplingBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public void setQualifyingValueAndBundleDiscounts(final Collection<PromotionValueAndDiscountRow> value)\r\n\t{\r\n\t\tsetQualifyingValueAndBundleDiscounts( getSession().getSessionContext(), value );\r\n\t}", "public void subscribe() {\n Fitness.getRecordingClient(this, GoogleSignIn.getLastSignedInAccount(this))\r\n .subscribe(DataType.TYPE_STEP_COUNT_CUMULATIVE)\r\n .addOnCompleteListener(\r\n new OnCompleteListener<Void>() {\r\n @Override\r\n public void onComplete(@NonNull Task<Void> task) {\r\n if (task.isSuccessful()) {\r\n Log.i(TAGFit, \"Successfully subscribed!\");\r\n } else {\r\n Log.w(TAGFit, \"There was a problem subscribing.\", task.getException());\r\n }\r\n }\r\n });\r\n }", "public void setServerSubscriptions(List<ServerService> subscriptions);", "public final void onChanged(PeopleSubscriptions peopleSubscriptions) {\n this.f53753a.f53736n = peopleSubscriptions;\n }", "@Override\n\tpublic void onSubscribe(String arg0, int arg1) {\n\t\t\n\t}", "public SubscriptionsInner(Retrofit retrofit, ApiManagementClientImpl client) {\n this.service = retrofit.create(SubscriptionsService.class);\n this.client = client;\n }", "@Override\n\tpublic void update(Observable arg0, Object arg1) {\n\t\tif (arg1 instanceof Object[]) {\n\t\t\tObject[] arg2 = (Object[]) arg1;\n\t\t\tConnectionToClient client = (ConnectionToClient) arg2[0];\n\t\t\tif (arg2[1] instanceof Object[]) {\n\t\t\t\tObject[] arg3 = (Object[]) arg2[1];\n\t\t\t\tString keymessage = (String) arg3[0];\n\t\t\t\tif (keymessage.equals(\"send the report\")) {\n\t\t\t\t\tEvaluationReport er = (EvaluationReport) arg3[1];\n\t\t\t\t\tConnection con = mysqlConnection.makeAndReturnConnection();\n\t\t\t\t\tmysqlConnection.insertReport(con, er);\n\t\t\t\t\tObject[] send = new Object[2];\n\t\t\t\t\tsend[0] = \"send the report\";\n\t\t\t\t\ttry {\n\t\t\t\t\t\tclient.sendToClient(send);\n\t\t\t\t\t} catch (IOException 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\tEmployee chairman = mysqlConnection.getChairman(con);\n\t\t\t\t\tArrayList<Employee> committeMember = mysqlConnection.getEmployees(con, \"comittee member\");\n\t\t\t\t\tlong millis = System.currentTimeMillis();\n\t\t\t\t\tString notifcation = \"you have new Request: request with id \" + \" \" + er.getRequestID()\n\t\t\t\t\t\t\t+ \" start work\";\n\t\t\t\t\tNotification not = new Notification(notifcation, new java.sql.Date(millis),\n\t\t\t\t\t\t\t\"new request for committe\");\n\t\t\t\t\tnot = mysqlConnection.insertNotificationToDB(con, not);\n\t\t\t\t\tmysqlConnection.insertNotificationForUserToDB(con, not, chairman);\n\t\t\t\t\tmysqlConnection.insertNotificationForUserToDB(con, not, committeMember.get(0));\n\t\t\t\t\tmysqlConnection.insertNotificationForUserToDB(con, not, committeMember.get(1));\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public StockEvent setValue(Double value) {\n this.value = value;\n return this;\n }", "public abstract void setValue(R1Interval interval, double value);", "public void subscribe( Observer< S, Info > obs );", "@Override\n public void agg(double newVal)\n {\n aggVal += newVal;\n firstTime = false;\n }", "public void setFrequency(java.lang.Integer value) {\n this.frequency = value;\n }", "@Override\n\t\t\t\tpublic void subscriptionStateChanged(LinphoneCore lc, LinphoneEvent ev,\n\t\t\t\t\t\tSubscriptionState state) {\n\t\t\t\t\t\n\t\t\t\t}", "public void evel_threshold_cross_data_collector_set(String sheader)\r\n\t {\r\n\t\t EVEL_ENTER();\r\n\r\n\t\t /***************************************************************************/\r\n\t\t /* Check preconditions. */\r\n\t\t /***************************************************************************/\r\n\t\t assert(event_domain == EvelHeader.DOMAINS.EVEL_DOMAIN_THRESHOLD_CROSSING);\r\n\t\t \r\n\t\t assert(sheader != null);\r\n\r\n\t\t dataCollector.SetValuePr(\r\n\t\t sheader,\r\n\t\t \"Datacollector value\");\r\n\t\t EVEL_EXIT();\r\n\t }", "private void setAccelFrequency(String f, BandInfo bandInfo) {\n accManager.setFrequency(f, bandInfo);\n\n // Unsubscribe and resubscribe if necessary\n if (bandStreams.containsKey(bandInfo) && bandStreams.get(bandInfo).contains(ACCEL_REQ_EXTRA)) {\n accManager.unSubscribe(bandInfo);\n try {\n Thread.sleep(100);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n accManager.subscribe(bandInfo);\n }\n\n }", "void setValueMixerSound(int value);", "private void setStats(\n int index, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureStatsIsMutable();\n stats_.set(index, value);\n }", "public abstract double set\r\n ( DataID dID // input\r\n , double value // input\r\n );", "private SubscribePolicy(int value, String stringValue)\n/* 48: */ {\n/* 49:59 */ this.mValue = value;\n/* 50:60 */ values.addElement(this);\n/* 51:61 */ this.mStringValue = stringValue;\n/* 52: */ }", "public void subscribeActual(Observer<? super Response<T>> observer) {\r\n Call clone = this.originalCall.clone();\r\n CallCallback callCallback = new CallCallback(clone, observer);\r\n observer.onSubscribe(callCallback);\r\n clone.enqueue(callCallback);\r\n }", "private void setConditionalResponses(\n int index, com.google.search.now.wire.feed.mockserver.MockServerProto.ConditionalResponse value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureConditionalResponsesIsMutable();\n conditionalResponses_.set(index, value);\n }", "public void setAdditionalstatistics(Double v){\n\t\ttry{\n\t\tsetProperty(SCHEMA_ELEMENT_NAME + \"/additionalStatistics\",v);\n\t\t_Additionalstatistics=null;\n\t\t} catch (Exception e1) {logger.error(e1);}\n\t}", "public interface SettingListener<U> {\n void onSettingValueChanged(Setting setting, U value);\n}", "@Override\r\n public void changed(final ObservableValue<? extends Wave.Status> arg0, final Wave.Status arg1, final Wave.Status arg2) {\n \r\n }", "public void updateStatisticsHandler(Object sender, Object arg) {\n\t\tif (sender.getClass() == CustomerArrivalEvent.class) {\n\t\t\tupdateStatsCAE();\n\t\t}else if(sender.getClass() == ServiceCompletionEvent.class){\n\t\t\tupdateStatsSCE((Customer) arg);\n\t\t}\n\t}", "public void showPurchase(String value) {\n cateringCustomerObservable.firePropertyChange(\"cateringCustomer\", this.toBeObserved, value);\n this.toBeObserved = value;\n }", "public void setRestFrequency(double value, int subsystem) {\n _avTable.set(ATTR_REST_FREQUENCY, value, subsystem);\n }", "public interface MovieSubscription {\n\n void subscribe(double amount);\n}", "void setValue(double value);", "void subscribe(Long subscriptionId, ApplicationProperties.VendorConfiguration configuration);", "void stockPriceChanged(Stock stock, double oldValue, double newValue);", "public void setValuePerConvertedClick(Double valuePerConvertedClick) {\r\n this.valuePerConvertedClick = valuePerConvertedClick;\r\n }", "public void sendTrialLogMessage(String gameId, String event, String screenId, String value, Long clientTimeStamp) {\n\n\t\ttry {\n\t\t\tserverRemoteObject.receiveTrialLogMessage(clientId, gameId, event, screenId, value, clientTimeStamp);\n\t\t} catch (RemoteException e) {\n\t\t\tJOptionPane.showInternalMessageDialog(MainFrame.getInstance(), e.getMessage(), \"Error\",\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t}\n\n\t}", "public Builder setSubscribe(\n messages.Facademessages.Subscribe.Builder builderForValue) {\n if (subscribeBuilder_ == null) {\n subscribe_ = builderForValue.build();\n onChanged();\n } else {\n subscribeBuilder_.setMessage(builderForValue.build());\n }\n bitField0_ |= 0x00000008;\n return this;\n }", "private void setAddFriendAToServer(AddFriend.AToServer value) {\n if (value == null) {\n throw new NullPointerException();\n }\n req_ = value;\n reqCase_ = 1;\n }", "private static void notify( final BindingDistributor distributor, final BindingEvent event,\n final BindingPublisher publisher, final int rank )\n {\n switch ( event )\n {\n case ADD:\n distributor.add( publisher, rank );\n break;\n case REMOVE:\n distributor.remove( publisher );\n break;\n case CLEAR:\n distributor.clear();\n break;\n }\n }", "@Override\n public void onSubscribe(String s, int i) {\n }", "public void setHigh(double value){high = value;}", "private void setSeenAToServer(Seen.AToServer value) {\n if (value == null) {\n throw new NullPointerException();\n }\n req_ = value;\n reqCase_ = 15;\n }", "@Override\n\tpublic void update(Observable subject, Object info) {\n\t\tif (info != null)\n\t\t\tSystem.out.println(info);\n\t\tif (subject instanceof ProductsSales) {\n\t\t\tProductsSales productsSales = (ProductsSales) subject;\n\t\t\tdisplayStatistic(productsSales);\n\t\t}\n\t}", "public void setPeriodicRateChange(float value) {\n this.periodicRateChange = value;\n }", "public void update(Observable obs, Object value)\n {\n\tif (log.isDebugEnabled())\n\t log.debug(\"CommunityFinder \" +obs+ \" callback returned \" \n\t\t + value);\n\tif (obs instanceof CommunityFinder) {\n\t CommunityFinder finder = (CommunityFinder) obs;\n\t this.communityName = (String) value;\n\t this.community = finder.getCommunity();\n\t this.aba = makeABA(communityName);\n\t linkPlayer();\n\t}\n }", "public void setCentreFrequency(String value, int subsystem) {\n setCentreFrequency(Format.toDouble(value), subsystem);\n }", "public void evel_threshold_cross_networkservice_set(String sheader)\r\n\t {\r\n\t\t EVEL_ENTER();\r\n\r\n\t\t /***************************************************************************/\r\n\t\t /* Check preconditions. */\r\n\t\t /***************************************************************************/\r\n\t\t assert(event_domain == EvelHeader.DOMAINS.EVEL_DOMAIN_THRESHOLD_CROSSING);\r\n\t\t \r\n\t\t assert(sheader != null);\r\n\r\n\t\t networkService.SetValuePr(\r\n\t\t sheader,\r\n\t\t \"Networking service value\");\r\n\t\t EVEL_EXIT();\r\n\t }", "public void createSubscription(Subscription sub);", "public void setVertexProperty(Agent ag, Object key, Object value) {\n\tVertex vertex = getVertexFor(ag);\n\n\tsynchronized(vertex) {\n\t while(vertexPropertiesLocked(vertex) \n\t\t && (getVertexPropertiesOwner(vertex) != ag)) {\n\t\ttry {\n\t\t vertex.wait();\n\t\t} catch(InterruptedException e) {\n\t\t throw new SimulationAbortError(e);\n\t\t}\n\t }\t\n stats.add(new VertexWBChangeStat(ag.getClass()));\n\n\n\t vertex.setProperty(key, value);\n\n\t if(key.equals(\"label\")) {\n Long num = new Long(numGen.alloc());\n LabelChangeEvent lce;\n lce = new LabelChangeEvent(num,vertex.identity(),\n (String)value);\n try{\n evtQ.put(lce);\t\t \n }catch(InterruptedException e){\n throw new SimulationAbortError(e);\n }\n }\n\t}\n }", "@Override\n\tpublic void addListenEventCondition(EventType type,\n\t\t\tEventSubscriptionInfo condition) {\n\n\t}", "public void setAllMessageFired(final Map<Language,String> value)\r\n\t{\r\n\t\tsetAllMessageFired( getSession().getSessionContext(), value );\r\n\t}", "void vpaid_fireEvent(String type, String value);", "private void updateSubscription(RoutingContext routingContext) {\n LOGGER.debug(\"Info: updateSubscription method started\");\n HttpServerRequest request = routingContext.request();\n HttpServerResponse response = routingContext.response();\n String domain = request.getParam(JSON_DOMAIN);\n String usersha = request.getParam(JSON_USERSHA);\n String alias = request.getParam(JSON_ALIAS);\n String subsId = domain + \"/\" + usersha + \"/\" + alias;\n JsonObject requestJson = routingContext.getBodyAsJson();\n String instanceID = request.getHeader(HEADER_HOST);\n String subHeader = request.getHeader(HEADER_OPTIONS);\n String subscrtiptionType =\n subHeader != null && subHeader.contains(SubsType.STREAMING.getMessage())\n ? SubsType.STREAMING.getMessage()\n : SubsType.CALLBACK.getMessage();\n requestJson.put(SUB_TYPE, subscrtiptionType);\n JsonObject authInfo = (JsonObject) routingContext.data().get(\"authInfo\");\n if (requestJson != null && requestJson.containsKey(SUB_TYPE)) {\n if (requestJson.getString(JSON_NAME).equalsIgnoreCase(alias)) {\n JsonObject jsonObj = requestJson.copy();\n jsonObj.put(SUBSCRIPTION_ID, subsId);\n jsonObj.put(JSON_INSTANCEID, instanceID);\n jsonObj.put(JSON_CONSUMER, authInfo.getString(JSON_CONSUMER));\n Future<JsonObject> subsReq = subsService.updateSubscription(jsonObj, databroker, database);\n subsReq.onComplete(subsRequestHandler -> {\n if (subsRequestHandler.succeeded()) {\n handleSuccessResponse(response, ResponseType.Created.getCode(),\n subsRequestHandler.result().toString());\n } else {\n LOGGER.error(\"Fail: Bad request\");\n processBackendResponse(response, subsRequestHandler.cause().getMessage());\n }\n });\n } else {\n LOGGER.error(\"Fail: Bad request\");\n handleResponse(response, ResponseType.BadRequestData, MSG_INVALID_NAME);\n }\n } else {\n LOGGER.error(\"Fail: Bad request\");\n handleResponse(response, ResponseType.BadRequestData, MSG_SUB_TYPE_NOT_FOUND);\n }\n\n\n }", "public void subscribe(SubscriberInterface subscriber, UUID clientId) throws RemoteException;", "public void setOfficialAudioSourceWebpage(org.ontoware.rdfreactor.schema.rdfs.Resource value) {\r\n\t\tBase.set(this.model, this.getResource(), OFFICIALAUDIOSOURCEWEBPAGE, value);\r\n\t}", "public void subscribe(Player spectator) {\r\n\t\tspectators.add(spectator);\r\n\t}" ]
[ "0.63962096", "0.52008647", "0.51039064", "0.49282843", "0.4896153", "0.48948583", "0.48870057", "0.48830134", "0.48738423", "0.48635304", "0.4680665", "0.4561001", "0.45325667", "0.45310158", "0.45171678", "0.4509821", "0.44721183", "0.44556263", "0.44554195", "0.44533435", "0.44503504", "0.44479337", "0.44373292", "0.44286108", "0.44283998", "0.4418415", "0.4418069", "0.44162497", "0.44143882", "0.44107565", "0.44094092", "0.43960685", "0.43956092", "0.4393449", "0.4387369", "0.43642458", "0.43614227", "0.43522063", "0.43457982", "0.4342902", "0.4336506", "0.43307546", "0.4321533", "0.43153304", "0.43082583", "0.4289807", "0.42882785", "0.42856964", "0.4284399", "0.42803076", "0.4278666", "0.427249", "0.4264738", "0.42546552", "0.4251875", "0.42506838", "0.4249925", "0.42472", "0.42466632", "0.42422158", "0.42406702", "0.42378056", "0.42317763", "0.42302418", "0.42109373", "0.42003304", "0.41996682", "0.41951472", "0.41912407", "0.419012", "0.41898778", "0.41875", "0.4185232", "0.4185086", "0.41844487", "0.4182814", "0.4182629", "0.41818473", "0.41794747", "0.41755578", "0.41708934", "0.41705158", "0.41694385", "0.4156715", "0.4153463", "0.414997", "0.4149857", "0.41450366", "0.41421366", "0.41399172", "0.4138137", "0.41374975", "0.41363737", "0.41288924", "0.4128674", "0.41284364", "0.412741", "0.4126791", "0.4126752", "0.4120454" ]
0.66561687
0
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof TblSpecimenOld)) { return false; } TblSpecimenOld other = (TblSpecimenOld) object; if ((this.specimenId == null && other.specimenId != null) || (this.specimenId != null && !this.specimenId.equals(other.specimenId))) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void setId(int id) { this.id = id; }", "public void setId(int id) { this.id = id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public void setId(long id) { this.id = id; }", "public void setId(long id) { this.id = id; }", "public int getId(){ return id; }", "public int getId() {return id;}", "public int getId() {return Id;}", "public int getId(){return id;}", "public void setId(long id) {\n id_ = id;\n }", "private int getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId(){return id;}", "public int id() {return id;}", "public long getId(){return this.id;}", "public int getId(){\r\n return this.id;\r\n }", "@Override public String getID() { return id;}", "public Long id() { return this.id; }", "public Integer getId() { return id; }", "@Override\n\tpublic Integer getId() {\n return id;\n }", "@Override\n public Long getId () {\n return id;\n }", "@Override\n public long getId() {\n return id;\n }", "public Long getId() {return id;}", "public Long getId() {return id;}", "public String getId(){return id;}", "@Override\r\n\tpublic Long getId() {\n\t\treturn null;\r\n\t}", "public Integer getId() { return this.id; }", "@Override\r\n public int getId() {\n return id;\r\n }", "@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}", "public int getId() {\n return id;\n }", "public long getId() { return _id; }", "public int getId() {\n/* 35 */ return this.id;\n/* */ }", "public long getId() { return id; }", "public long getId() { return id; }", "public void setId(Long id) \n {\n this.id = id;\n }", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "public void setId(String id) {\n this.id = id;\n }", "@Override\n\tpublic void setId(Long id) {\n\t}", "public Long getId() {\n return id;\n }", "public long getId() { return this.id; }", "public int getId()\n {\n return id;\n }", "public void setId(int id){\r\n this.id = id;\r\n }", "@Test\r\n\tpublic void testSetId() {\r\n\t\tbreaku1.setId(5);\r\n\t\texternu1.setId(6);\r\n\t\tmeetingu1.setId(7);\r\n\t\tteachu1.setId(8);\r\n\r\n\t\tassertEquals(5, breaku1.getId());\r\n\t\tassertEquals(6, externu1.getId());\r\n\t\tassertEquals(7, meetingu1.getId());\r\n\t\tassertEquals(8, teachu1.getId());\r\n\t}", "protected abstract String getId();", "@Override\n\tpublic int getId(){\n\t\treturn id;\n\t}", "public int getID() {return id;}", "public int getID() {return id;}", "public String getId() { return id; }", "public String getId() { return id; }", "public String getId() { return id; }", "@Override\n public int getField(int id) {\n return 0;\n }", "public int getId ()\r\n {\r\n return id;\r\n }", "public int getId(){\r\n return localId;\r\n }", "public void setId(Long id)\n/* */ {\n/* 66 */ this.id = id;\n/* */ }", "void setId(int id) {\n this.id = id;\n }", "@Override\n public Integer getId() {\n return id;\n }", "@Override\n\tpublic Object selectById(Object id) {\n\t\treturn null;\n\t}", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "@Override\n public int getId() {\n return id;\n }", "@Override\n public int getId() {\n return id;\n }", "public void setId(int id)\n {\n this.id=id;\n }", "@Override\r\n public int getID()\r\n {\r\n\treturn id;\r\n }", "@Override\n\tpublic Integer getId() {\n\t\treturn null;\n\t}", "public int getId()\r\n {\r\n return id;\r\n }", "public void setId(Long id){\n this.id = id;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "private void clearId() {\n \n id_ = 0;\n }", "final protected int getId() {\n\t\treturn id;\n\t}", "public abstract Long getId();", "public void setId(Long id) \r\n {\r\n this.id = id;\r\n }", "@Override\n public long getId() {\n return this.id;\n }", "public String getId(){ return id.get(); }", "@SuppressWarnings ( \"unused\" )\n private void setId ( final Long id ) {\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(Integer id)\r\n/* */ {\r\n/* 122 */ this.id = id;\r\n/* */ }", "public Long getId() \n {\n return id;\n }", "@Override\n\tpublic void setId(int id) {\n\n\t}", "public void test_getId() {\n assertEquals(\"'id' value should be properly retrieved.\", id, instance.getId());\n }", "@Override\r\n\tpublic Object getId() {\n\t\treturn null;\r\n\t}", "public int getID(){\n return id;\n }", "public int getId()\n {\n return id;\n }", "public String getID(){\n return Id;\n }" ]
[ "0.6892953", "0.68367153", "0.67017436", "0.66378665", "0.66378665", "0.658794", "0.65751237", "0.65751237", "0.6572061", "0.6572061", "0.6572061", "0.6572061", "0.6572061", "0.6572061", "0.65581834", "0.65581834", "0.65417314", "0.65221244", "0.6513472", "0.6485106", "0.6473513", "0.64241105", "0.6416767", "0.6414444", "0.63993895", "0.6364304", "0.6352091", "0.6349065", "0.63453704", "0.6321635", "0.6316362", "0.6298603", "0.62911385", "0.62911385", "0.62800306", "0.626818", "0.62642974", "0.6262545", "0.6260095", "0.62566966", "0.62533915", "0.62486917", "0.62448215", "0.62448215", "0.62409675", "0.623601", "0.623601", "0.6227701", "0.6220245", "0.6217794", "0.6217149", "0.6209125", "0.62057644", "0.6198095", "0.61980474", "0.6189871", "0.61868435", "0.61868435", "0.6186071", "0.6186071", "0.6186071", "0.61832285", "0.61815506", "0.6171357", "0.6170965", "0.61640227", "0.6163231", "0.6159539", "0.61550325", "0.61550325", "0.61550325", "0.61550325", "0.61550325", "0.61550325", "0.61550325", "0.6152799", "0.6152799", "0.6138922", "0.61313164", "0.6125618", "0.6125084", "0.610216", "0.6101231", "0.6101231", "0.6100786", "0.6100199", "0.6099533", "0.6096824", "0.60965383", "0.60913044", "0.60896015", "0.6089144", "0.6089144", "0.6087085", "0.6086792", "0.6072943", "0.6069622", "0.60679966", "0.60674655", "0.60672426", "0.6066196" ]
0.0
-1
/ map[xWumpus][yWumpus] = 2; if(xPit == gridSize) if(xWumpus1 =0) map[xWumpus1][yWumpus] = 32; // il y'a courant d'air if(xWumpus + 1 =0) map[xWumpus+1][yWumpus] = 32; // il y'a courant d'air X+1, Y if(yWumpus 1 =0) map[xWumpus][yWumpus1] = 32; if(yPit2 + 1 =0) map[xWumpus][yWumpus+1] = 32;
public void KillWumpus() { liveWumpus = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void generateMap(){\n int[] blockStepX = {X_STEP, 0, -X_STEP, -X_STEP, 0, X_STEP};\n int[] blockStepY = {Y_STEP_ONE, Y_STEP_TWO, Y_STEP_ONE, -Y_STEP_ONE, -Y_STEP_TWO, -Y_STEP_ONE};\n int blockSpecialValue = 0;\n int cellSpecial = 0;\n\n mapCells[origin.x/10][origin.y/10] = new EschatonCell(new CellPosition(0, 0, 0),\n new Point(origin.x, origin.y), blockSpecialValue);\n\n cellGrid[0][0][0] = new EschatonCell(new CellPosition(0, 0, 0),\n new Point(origin.x, origin.y), blockSpecialValue);\n\n for (int distanceFromOrigin = 0; distanceFromOrigin < config.getSizeOfMap();\n distanceFromOrigin++){\n\n int[] blockXVals = {origin.x,\n origin.x + X_STEP * distanceFromOrigin,\n origin.x + X_STEP * distanceFromOrigin,\n origin.x,\n origin.x - X_STEP * distanceFromOrigin,\n origin.x - X_STEP * distanceFromOrigin};\n\n int[] blockYVals = {origin.y - Y_STEP_TWO * distanceFromOrigin,\n origin.y - Y_STEP_ONE * distanceFromOrigin,\n origin.y + Y_STEP_ONE * distanceFromOrigin,\n origin.y + Y_STEP_TWO * distanceFromOrigin,\n origin.y + Y_STEP_ONE * distanceFromOrigin,\n origin.y - Y_STEP_ONE * distanceFromOrigin};\n\n blockSpecialValue = getRandomNumber(distanceFromOrigin, 0, 0);\n\n for (int block = 0; block < NUMBER_OF_BLOCKS; block ++){\n\n int blockXOrdinal = blockXVals[block];\n int blockYOrdinal = blockYVals[block];\n\n for (int blockSize = 0; blockSize < distanceFromOrigin; blockSize++){\n if(blockSpecialValue == blockSize){\n cellSpecial = getRandomNumber(2, 1, 1);\n }else {\n cellSpecial = 0;\n }\n cellGrid [distanceFromOrigin][block+1][blockSize+1] = makeNewCell(\n new CellPosition(distanceFromOrigin,block+1, blockSize+1),\n new Point(blockXOrdinal + blockStepX[block] * (blockSize + 1),\n blockYOrdinal + blockStepY[block] * (blockSize + 1)), cellSpecial);\n }\n }\n }\n }", "private static BufferedImage getMap(int art, GameModel gameModel, Color mapC, Color skyC){\n\n BufferedImage image = new BufferedImage(2800,1800,BufferedImage.TYPE_4BYTE_ABGR);\n\n int genauigkeit = 400;\n\n int[] mapX = new int[genauigkeit + 2];\n int[] mapY = new int[genauigkeit + 2];\n\n mapX[genauigkeit + 1] = 0;\n mapX[genauigkeit] = GameLoop.imgW;\n\n mapY[genauigkeit + 1] = GameLoop.imgH;\n mapY[genauigkeit] = GameLoop.imgH;\n\n double[] rnd = new double[8];\n\n for(int i = 0;i < 4;i++){\n rnd[i] = Math.random() * 0.1;\n rnd[i+4] = Math.random();\n }\n\n for(int i = 0;i < genauigkeit;i++){\n mapX[i] = (int) (GameLoop.imgW/(double)genauigkeit * (i));\n\n switch(art){\n case 1:\n mapY[i] = (int) (gameModel.getHeight()/(double)2 + Math.sin(i * 0.1) * gameModel.getHeight()/8);\n break;\n case 2:\n mapY[i] = (int) (gameModel.getHeight()/(double)2 + Math.sin(i * 0.01) * gameModel.getHeight()/8);\n break;\n case 3:\n mapY[i] = (int) (gameModel.getHeight()/(double)2 + Math.sin(i * 0.1) * gameModel.getHeight()/12 + i);\n break;\n case 4:\n mapY[i] = (int) (gameModel.getHeight()*0.8 - 1/(2000 + Math.pow(i - (genauigkeit - 2)/2.0,2)) * 1500000);\n break;\n case 5:\n mapY[i] = (int) (gameModel.getHeight()/(double)2 + Math.pow(Math.sin(i * 0.03),3) * gameModel.getHeight()/4);\n break;\n case 6:\n mapY[i] = (int) (gameModel.getHeight()/2.0);\n mapY[i] += Math.sin(i * (rnd[0])) * rnd[4] * gameModel.getHeight()*0.1;\n mapY[i] += Math.sin(i * (rnd[1])) * rnd[5] * gameModel.getHeight()*0.1;\n mapY[i] += Math.sin(i * (rnd[2])) * rnd[6] * gameModel.getHeight()*0.1;\n mapY[i] += Math.sin(i * (rnd[3])) * rnd[7] * gameModel.getHeight()*0.1;\n\n\n\n\n\n }\n\n }\n\n Polygon map = new Polygon(mapX,mapY,genauigkeit+2);\n\n Graphics2D g2d = image.createGraphics();\n\n g2d.setColor(skyC);\n\n g2d.fillRect(0,0,2800,1800);\n\n g2d.setColor(mapC);\n\n g2d.setRenderingHint(RenderingHints.KEY_INTERPOLATION,RenderingHints.VALUE_INTERPOLATION_BILINEAR);\n\n g2d.fillPolygon(map);\n\n return image;\n }", "public static void drawMap(Graphics g, int[][] grid){\n for(int i = 0; i < 480; i++)\n {\n for(int j = 0; j < 840; j++)\n {\n Color gray = new Color(grid[i][j] / 17, grid[i][j] / 17, grid[i][j] / 17);\n g.setColor(gray);\n \n g.drawRect(j, i, 1, 1);\n }\n }\n }", "public void adjustMap(MapData mapd){\n int[][] map = mapd.getMap();\n int mx=mapd.getX();\n int my=mapd.getY();\n for(int y=0;y<my;y++){\n for(int x=0;x<mx;x++){\n boolean l = false;\n boolean r = false;\n boolean t = false;\n boolean b = false;\n boolean tl = false;\n boolean tr = false;\n boolean bl = false;\n boolean br = false;\n \n\n if(map[x][y]>0 && map[x][y]<26) {\n int mustSet = 0;\n //LEFT\n if (x > 0 && map[x - 1][y] > 0 && map[x-1][y]<26) {\n l = true;\n }\n //RIGHT\n if (x < mx - 1 && map[x + 1][y] > 0 && map[x+1][y]<26) {\n r = true;\n }\n //TOP\n if (y > 0 && map[x][y - 1] > 0 && map[x][y-1]<26) {\n t = true;\n }\n //Bottom\n if (y < my - 1 && map[x][y + 1] > 0 && map[x][y+1]<26) {\n b = true;\n }\n //TOP LEFT\n if (x > 0 && y > 0 && map[x - 1][y - 1] > 0 && map[x-1][y-1]<26) {\n tl = true;\n }\n //TOP RIGHT\n if (x < mx - 1 && y > 0 && map[x + 1][y - 1] > 0 && map[x+1][y-1]<26) {\n tr = true;\n }\n //Bottom LEFT\n if (x > 0 && y < my - 1 && map[x - 1][y + 1] > 0 && map[x-1][y+1]<26) {\n bl = true;\n }\n //Bottom RIGHT\n if (x < mx - 1 && y < my - 1 && map[x + 1][y + 1] > 0 && map[x+1][y+1]<26) {\n br = true;\n }\n\n //Decide Image to View\n if (!r && !l && !t && !b) {\n mustSet = 23;\n }\n if (r && !l && !t && !b) {\n mustSet = 22;\n }\n if (!r && l && !t && !b) {\n mustSet = 25;\n }\n if (!r && !l && t && !b) {\n mustSet = 21;\n }\n if (!r && !l && !t && b) {\n mustSet = 19;\n }\n if (r && l && !t && !b) {\n mustSet = 24;\n }\n if (!r && !l && t && b) {\n mustSet = 20;\n }\n if (r && !l && t && !b && !tr) {\n mustSet = 11;\n }\n if (r && !l && t && !b && tr) {\n mustSet = 2;\n }\n if (!r && l && t && !b && !tl) {\n mustSet = 12;\n }\n if (!r && l && t && !b && tl) {\n mustSet = 3;\n }\n if (r && !l && !t && b && br) {\n mustSet = 1;\n }\n if (r && !l && !t && b && !br) {\n mustSet = 10;\n }\n if (!r && l && !t && b && bl) {\n mustSet = 4;\n }\n if (r && !l && t && b && !tr) {\n mustSet = 15;\n }\n if (r && !l && t && b && tr) {\n mustSet = 6;\n }\n if (!r && l && t && b && !tl) {\n mustSet = 17;\n }\n if (!r && l && t && b && tl) {\n mustSet = 8;\n }\n if (r && l && !t && b && !br) {\n mustSet = 14;\n }\n if (r && l && !t && b && br) {\n mustSet = 5;\n }\n if (r && l && t && !b && !tr) {\n mustSet = 16;\n }\n if (r && l && t && !b && tr) {\n mustSet = 7;\n }\n if (!r && l && !t && b && !bl) {\n mustSet = 13;\n }\n if (r && l && t && b && br && tl) {\n mustSet = 9;\n }\n if (r && l && t && b && !br && !tl) {\n mustSet = 18;\n }\n\n //System.out.println(\"MAP SEGMENT : \" + mustSet);\n map[x][y] = mustSet;\n }\n mapd.setMap(map);\n }\n }\n System.out.println(\"Map Adjust OK !\");\n }", "private void calculateMaps() {\n\tsrcrows = new int[destHeight + 1];\n\tfor (int y = 0; y <= destHeight; y++) {\n\t srcrows[y] = (2 * y * srcHeight + srcHeight) / (2 * destHeight);\n\t}\n\tsrccols = new int[destWidth + 1];\n\tfor (int x = 0; x <= destWidth; x++) {\n\t srccols[x] = (2 * x * srcWidth + srcWidth) / (2 * destWidth);\n\t}\n\n float xscale = ( ( float ) srcWidth - 1 ) / ( ( float ) destWidth );\n float yscale = ( ( float ) srcHeight - 1 ) / ( ( float ) destHeight ) ;\n\n srcxlarr = new int[destWidth+1];\n srcxuarr = new int[destWidth+1];\n srcxarr = new int[destWidth+1];\n\n for (int x = 0 ; x <= destWidth;x++) {\n float tmp = x * xscale ;\n srcxlarr[x] = (int) Math.floor( tmp ) ;\n srcxuarr[x] = (int) Math.ceil( tmp ) ;\n srcxarr[x] = (int) ( ( tmp - srcxlarr[x] ) * 255f );\n }\n\n srcylarr = new int[destHeight+1];\n srcyuarr = new int[destHeight+1];\n srcyarr = new int[destHeight+1];\n\n for (int y = 0 ; y <= destHeight;y++) {\n float tmp = y * yscale ;\n srcylarr[y] = (int) Math.floor( tmp ) ;\n srcyuarr[y] = (int) Math.ceil( tmp ) ;\n srcyarr[y] = (int) ( ( tmp - srcylarr[y] ) * 255f );\n }\n\n /*\n System.out.println( \"srcrows\" );\n for (int i=0;i<srcrows.length;i++) {\n System.out.print( srcrows[i] + \" \" );\n }\n\n System.out.println( \"\\nsrccols\" );\n for (int i=0;i<srccols.length;i++) {\n System.out.print( srccols[i] + \" \" );\n }\n\n System.out.println( \"\\nsrcxlarr\" );\n for (int i=0;i<srcxlarr.length;i++) {\n System.out.print( srcxlarr[i] + \" \" );\n }\n\n System.out.println( \"\\nsrcxuarr\" );\n for (int i=0;i<srcxuarr.length;i++) {\n System.out.print( srcxuarr[i] + \" \" );\n }\n\n System.out.println( \"\\nsrcylarr\" );\n for (int i=0;i<srcxlarr.length;i++) {\n System.out.print( srcylarr[i] + \" \" );\n }\n\n System.out.println( \"\\nsrcyuarr\" );\n for (int i=0;i<srcxuarr.length;i++) {\n System.out.print( srcyuarr[i] + \" \" );\n }\n */\n }", "public void createMap() {\n\t\tArrayList<String>boardMap = new ArrayList<String>(); //boardmap on tiedostosta ladattu maailman malli\n\t\t\n\t\t//2. try catch blocki, ei jaksa laittaa metodeja heittämään poikkeuksia\n\t\ttry {\n\t\t\tboardMap = loadMap(); //ladataan data boardMap muuttujaan tiedostosta\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t\t\n\t\t// 3. j=rivit, i=merkit yksittäisellä rivillä\n\t\tfor(int j=0; j<boardMap.size();j++){ \t\t//..rivien lkm (boardMap.size) = alkioiden lkm. \n\t\t\tfor(int i=0; i<boardMap.get(j).length(); i++){\t\t//..merkkien lkm rivillä (alkion Stringin pituus .length)\n\t\t\t\tCharacter hexType = boardMap.get(j).charAt(i);\t//tuodaan tietyltä riviltä, yksittäinen MERKKI hexType -muuttujaan\n\t\t\t\tworld.add(new Hex(i, j, hexType.toString()));\t//Luodaan uusi HEXa maailmaan, Character -merkki muutetaan Stringiksi että Hex konstructori hyväksyy sen.\n\t\t\t}\n\t\t}\n\t\tconvertEmptyHex();\n\t}", "private int[][] fillMap(int[][] map, ArrayList<ArrayList<Cell>> cells) {\n\t\tfor (int y = 0; y < cells.size(); y++) {\n\t\t\tfor (int x = 0; x < cells.get(y).size(); x++) {\n\t\t\t\tif (cells.get(y).get(x).getType().equals(\"ground\")) {\n\t\t\t\t\tmap[x][y] = 0;\n\t\t\t\t} else {\n\t\t\t\t\tmap[x][y] = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn map;\n\t}", "public void drawMap() {\n\t\tRoad[] roads = map.getRoads();\r\n\t\tfor (Road r : roads) {\r\n\t\t\tif (r.turn) {\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].oneway_road = true;\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].oneway_road_vert = true;\r\n\t\t\t} else if (r.direction == Direction.NORTH)\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].oneway_road_north = true;\r\n\t\t\telse if (r.direction == Direction.SOUTH)\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].oneway_road_south = true;\r\n\t\t\telse if (r.direction == Direction.WEST)\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].oneway_road_west = true;\r\n\t\t\telse if (r.direction == Direction.EAST)\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].oneway_road_east = true;\r\n\t\t\ttry {\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].updateImage();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void createMapOfFourthType() {\n\n this.typeOfMap=4;\n matrixOfSquares[0][0] = createSquare( ColorOfFigure_Square.RED, true,0,0);\n matrixOfSquares[0][1] = createSquare( ColorOfFigure_Square.BLUE, true,0,1);\n matrixOfSquares[0][2] = createSquare(true, ColorOfFigure_Square.BLUE, true,0,2);\n matrixOfSquares[0][3] = null;\n matrixOfSquares[1][0] = createSquare(true, ColorOfFigure_Square.RED, true,1,0);\n matrixOfSquares[1][1] = createSquare( ColorOfFigure_Square.PURPLE, true,1,1);\n matrixOfSquares[1][2] = createSquare( ColorOfFigure_Square.PURPLE, true,1,2);\n matrixOfSquares[1][3] = createSquare( ColorOfFigure_Square.YELLOW, true,1,3);\n matrixOfSquares[2][0] = createSquare( ColorOfFigure_Square.GREY, true,2,0);\n matrixOfSquares[2][1] = createSquare( ColorOfFigure_Square.GREY, true,2,1);\n matrixOfSquares[2][2] = createSquare( ColorOfFigure_Square.GREY, true,2,2);\n matrixOfSquares[2][3] = createSquare(true, ColorOfFigure_Square.YELLOW, true,2,3);\n }", "private void updateMowerCords() {\n\t\tfor (int i = 0; i < this.map.size(); i++) {\r\n\t\t\tfor (int j = 0; j < this.map.get(i).size(); j++) {\r\n\t\t\t\tif (this.map.get(i).get(j) == this.mower) {\r\n\t\t\t\t\tthis.x = j;\r\n\t\t\t\t\tthis.y = i;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public MapGrid(){\n\t\tthis.cell = 25;\n\t\tthis.map = new Node[this.width][this.height];\n\t}", "private void drawMap(final Graphics2D theGraphics) {\n for (int y = 0; y < myGrid.length; y++) {\n final int topy = y * SQUARE_SIZE;\n\n for (int x = 0; x < myGrid[y].length; x++) {\n final int leftx = x * SQUARE_SIZE;\n\n switch (myGrid[y][x]) {\n case STREET:\n theGraphics.setPaint(Color.LIGHT_GRAY);\n theGraphics.fillRect(leftx, topy, SQUARE_SIZE, SQUARE_SIZE);\n drawStreetLines(theGraphics, x, y);\n break;\n\n case WALL:\n theGraphics.setPaint(Color.BLACK);\n theGraphics.fillRect(leftx, topy, SQUARE_SIZE, SQUARE_SIZE);\n break;\n\n case TRAIL:\n theGraphics.setPaint(Color.YELLOW.darker().darker());\n theGraphics.fillRect(leftx, topy, SQUARE_SIZE, SQUARE_SIZE);\n break;\n\n case LIGHT:\n // draw a circle of appropriate color\n theGraphics.setPaint(Color.LIGHT_GRAY);\n theGraphics.fillRect(leftx, topy, SQUARE_SIZE, SQUARE_SIZE);\n theGraphics.setPaint(myLightColor);\n theGraphics.fillOval(leftx, topy, SQUARE_SIZE, SQUARE_SIZE);\n break;\n \n case CROSSWALK:\n theGraphics.setPaint(Color.LIGHT_GRAY);\n theGraphics.fillRect(leftx, topy, SQUARE_SIZE, SQUARE_SIZE);\n \n drawCrossWalkLines(theGraphics, x, y);\n \n // draw a small circle of appropriate color centered in the square\n theGraphics.setPaint(myLightColor);\n theGraphics.fillOval(leftx + (int) (SQUARE_SIZE * CROSSWALK_SCALE),\n topy + (int) (SQUARE_SIZE * CROSSWALK_SCALE),\n SQUARE_SIZE / 2, SQUARE_SIZE / 2);\n break;\n\n default:\n }\n\n drawDebugInfo(theGraphics, x, y);\n }\n }\n }", "private void createMaps() {\r\n\t\tint SIZE = 100;\r\n\t\tint x = 0, y = -1;\r\n\t\tfor (int i = 0; i < SIZE; i++) {\r\n\t\t\tif (i % 10 == 0) {\r\n\t\t\t\tx = 0;\r\n\t\t\t\ty = y + 1;\r\n\t\t\t}\r\n\t\t\tshipStateMap.put(new Point(x, y), 0);\r\n\t\t\tshipTypeMap.put(new Point(x, y), 0);\r\n\t\t\tx++;\r\n\t\t}\r\n\t}", "private void generate()\r\n {\r\n mapPieces = myMap.Generate3();\r\n mapWidth = myMap.getMapWidth();\r\n mapHeight = myMap.getMapHeight();\r\n }", "public static void createInfluenceMap(Map<Pickup, Boolean> pickupStates) {\n mapWidth = Constants.screenWidth / CELL_SIZE;\n mapHeight = Constants.screenHeight / CELL_SIZE;\n influenceMap = new double[mapWidth][mapHeight];\n\n lowestValue = Double.MAX_VALUE;\n highestValue = -Double.MAX_VALUE;\n\n Vector2d cellCenter = new Vector2d();\n for (int y = 0; y < mapHeight; y++) {\n for (int x = 0; x < mapWidth; x++) {\n // get sum of all proximities to pickups here\n for (Pickup p : pickupStates.keySet()) {\n if (!pickupStates.get(p)) {\n // existing pickup\n cellCenter.set(CELL_SIZE * (x + 0.5), CELL_SIZE * (y + 0.5));\n double dist = cellCenter.dist(p.pos);\n //// use exponential dropoff instead of linear dropoff\n double value = 5 + Math.log1p(dist) * -1;\n //double value = (MAX_DIST - dist)/MAX_DIST;\n if (p.type == PickupType.MINE) value *= 0;\n\n influenceMap[x][y] += value * 50;\n }\n }\n }\n }\n\n // go through map and establish ranges\n for (int y = 0; y < mapHeight; y++) {\n for (int x = 0; x < mapWidth; x++) {\n double value = influenceMap[x][y];\n if (value > highestValue) highestValue = value;\n if (value < lowestValue) lowestValue = value;\n }\n }\n\n }", "public void revisaColisionMapa() {\n\t\tactualCol = (int)x / tamTile;\n\t\tactualRen = (int)y / tamTile;\n\t\t\n\t\txdest = x + dx;\n\t\tydest = y + dy;\n\t\t\n\t\txtemp = x;\n\t\tytemp = y;\n\t\t\n\t\tcalcularEsquinas(x, ydest);\n\t\tif(dy < 0) {\n\t\t\tif(arribaIzq || arribaDer) {\n\t\t\t\tdy = 0;\n\t\t\t\tytemp = actualRen * tamTile + claltura / 2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tytemp += dy;\n\t\t\t}\n\t\t}\n\t\tif(dy > 0) {\n\t\t\tif(abajoIzq || abajoDer) {\n\t\t\t\tdy = 0;\n\t\t\t\tcayendo = false;\n\t\t\t\tytemp = (actualRen + 1) * tamTile - claltura / 2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tytemp += dy;\n\t\t\t}\n\t\t}\n\t\t\n\t\tcalcularEsquinas(xdest, y);\n\t\tif(dx < 0) {\n\t\t\tif(arribaIzq || abajoIzq) {\n\t\t\t\tdx = 0;\n\t\t\t\txtemp = actualCol * tamTile + clanchura / 2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\txtemp += dx;\n\t\t\t}\n\t\t}\n\t\tif(dx > 0) {\n\t\t\tif(arribaDer || abajoDer) {\n\t\t\t\tdx = 0;\n\t\t\t\txtemp = (actualCol + 1) * tamTile - clanchura / 2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\txtemp += dx;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(!cayendo) {\n\t\t\tcalcularEsquinas(x, ydest + 1);\n\t\t\tif(!abajoIzq && !abajoDer) {\n\t\t\t\tcayendo = true;\n\t\t\t}\n\t\t}\n\t}", "private void generateMap() {\n\n\t\t//Used to ensure unique locations of each Gameboard element\n\t\tboolean[][] spaceUsed = new boolean[12][12];\n\n\t\t//A running total of fences generated\n\t\tint fencesGenerated = 0;\n\n\t\t//A running total of Mhos generated\n\t\tint mhosGenerated = 0;\n\n\t\t//Fill the board with spaces and spikes on the edge\n\t\tfor (int i = 0; i < 12; i++) {\n\t\t\tfor (int j = 0; j < 12; j++) {\n\t\t\t\tmap[i][j] = new BlankSpace(i, j, board);\n\t\t\t\tif (i == 0 || i == 11 || j ==0 || j == 11) {\n\t\t\t\t\tmap[i][j] = new Fence(i, j, board);\n\t\t\t\t\tspaceUsed[i][j] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//Generate 20 spikes in unique locations\n\t\twhile (fencesGenerated < 20) {\n\t\t\tint x = 1+(int)(Math.random()*10);\n\t\t\tint y = 1+(int)(Math.random()*10);\n\n\t\t\tif(spaceUsed[x][y]==false) {\n\t\t\t\tmap[x][y] = new Fence(x, y, board);\n\t\t\t\tspaceUsed[x][y] = true;\n\t\t\t\tfencesGenerated++;\n\t\t\t}\n\t\t}\n\n\t\t//Generate 12 mhos in unique locations\n\t\twhile (mhosGenerated < 12) {\n\t\t\tint x = 1+(int)(Math.random()*10);\n\t\t\tint y = 1+(int)(Math.random()*10);\n\n\t\t\tif(spaceUsed[x][y]==false) {\n\t\t\t\tmap[x][y] = new Mho(x, y, board);\n\n\t\t\t\tmhoLocations.add(x);\n\t\t\t\tmhoLocations.add(y);\n\n\t\t\t\tspaceUsed[x][y] = true;\n\n\t\t\t\tmhosGenerated++;\n\t\t\t}\n\t\t}\n\n\t\t//Generate a player in a unique location\n\t\twhile (true) {\n\t\t\tint x = 1+(int)(Math.random()*10);\n\t\t\tint y = 1+(int)(Math.random()*10);\n\n\t\t\tif(spaceUsed[x][y]==false) {\n\t\t\t\tmap[x][y] = new Player(x, y, board);\n\t\t\t\tplayerLocation[0] = x;\n\t\t\t\tplayerLocation[1] = y;\n\t\t\t\tnewPlayerLocation[0] = x;\n\t\t\t\tnewPlayerLocation[1] = y;\n\t\t\t\tspaceUsed[x][y] = true;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "private void createMapOfThirdType(){\n\n this.typeOfMap=3;\n matrixOfSquares[0][0] = createSquare( ColorOfFigure_Square.RED, true,0,0);\n matrixOfSquares[0][1] = createSquare( ColorOfFigure_Square.BLUE, true,0,1);\n matrixOfSquares[0][2] = createSquare(true, ColorOfFigure_Square.BLUE, true,0,2);\n matrixOfSquares[0][3] = createSquare( ColorOfFigure_Square.GREEN, true,0,3);\n matrixOfSquares[1][0] = createSquare(true, ColorOfFigure_Square.RED, true,1,0);\n matrixOfSquares[1][1] = createSquare( ColorOfFigure_Square.PURPLE, true,1,1);\n matrixOfSquares[1][2] = createSquare( ColorOfFigure_Square.YELLOW, true,1,2);\n matrixOfSquares[1][3] = createSquare( ColorOfFigure_Square.YELLOW, true,1,3);\n matrixOfSquares[2][0] = createSquare( ColorOfFigure_Square.GREY, true,2,0);\n matrixOfSquares[2][1] = createSquare( ColorOfFigure_Square.GREY, true,2,1);\n matrixOfSquares[2][2] = createSquare( ColorOfFigure_Square.YELLOW, true,2,2);\n matrixOfSquares[2][3] = createSquare(true, ColorOfFigure_Square.YELLOW, false,2,3);\n\n }", "public void setNeighbors(){\t\t\t\t\n\t\tint row = position[0];\n\t\tint column = position[1];\t\t\n\t\tif(column+1 < RatMap.SIDELENGTH){\n\t\t\teastCell = RatMap.getMapCell(row,column+1);\t\t\t\n\t\t}else{\n\t\t\teastCell = null;\n\t\t}\t\n\t\tif(row+1 < RatMap.SIDELENGTH){\n\t\t\tnorthCell = RatMap.getMapCell(row+1,column);\n\t\t}else{\n\t\t\tnorthCell = null;\n\t\t}\t\n\t\tif(column-1 > -1){\n\t\t\twestCell = RatMap.getMapCell(row, column-1);\t\t\t\n\t\t}else{\n\t\t\twestCell = null;\n\t\t}\n\t\tif(row-1 > -1){\n\t\t\tsouthCell = RatMap.getMapCell(row-1, column);\n\t\t}else{\n\t\t\tsouthCell = null;\n\t\t}\n\t}", "private void createMapOfSecondType(){\n\n this.typeOfMap=2;\n matrixOfSquares[0][0] = createSquare( ColorOfFigure_Square.BLUE, true,0,0);\n matrixOfSquares[0][1] = createSquare( ColorOfFigure_Square.BLUE, false,0,1);\n matrixOfSquares[0][2] = createSquare(true, ColorOfFigure_Square.BLUE, true,0,2);\n matrixOfSquares[0][3] = createSquare( ColorOfFigure_Square.GREEN, true,0,3);\n matrixOfSquares[1][0] = createSquare(true, ColorOfFigure_Square.RED, true,1,0);\n matrixOfSquares[1][1] = createSquare( ColorOfFigure_Square.RED, true,1,1);\n matrixOfSquares[1][2] = createSquare( ColorOfFigure_Square.YELLOW, true,1,2);\n matrixOfSquares[1][3] = createSquare( ColorOfFigure_Square.YELLOW, true,1,3);\n matrixOfSquares[2][0] = null;\n matrixOfSquares[2][1] = createSquare( ColorOfFigure_Square.GREY, true,2,1);\n matrixOfSquares[2][2] = createSquare( ColorOfFigure_Square.YELLOW, true,2,2);\n matrixOfSquares[2][3] = createSquare(true, ColorOfFigure_Square.YELLOW, false,2,3);\n\n\n }", "public void setAdjacent()\r\n {\n \t\r\n adjacentTiles = new Tile[6];\r\n \r\n \r\n //Driver.map[VERT][HOR]\r\n \r\n if(verticalPos < Driver.map.length && horizontalPos > 1) //topleft\r\n {\r\n \ttopLeft = Driver.map[verticalPos + 1][horizontalPos - 1];\r\n }\r\n else\r\n {\r\n \ttopLeft = null;\r\n }\r\n \r\n if(verticalPos < Driver.map.length - 2) //top\r\n {\r\n \ttop = Driver.map[verticalPos + 2][horizontalPos];\r\n }\r\n else\r\n {\r\n \ttop = null;\r\n }\r\n \r\n if(verticalPos < Driver.map.length && horizontalPos < Driver.map[0].length) //topright\r\n {\r\n \ttopRight = Driver.map[verticalPos + 1][horizontalPos + 1];\r\n }\r\n else\r\n {\r\n \ttopRight = null;\r\n }\r\n \r\n if(verticalPos > 1 && horizontalPos < Driver.map[0].length) //bottomright\r\n {\r\n \tbottomRight = Driver.map[verticalPos - 1][horizontalPos + 1];\r\n }\r\n else\r\n {\r\n \tbottomRight = null;\r\n }\r\n \r\n if(verticalPos > 2) //bottom\r\n {\r\n \tbottom = Driver.map[verticalPos - 2][horizontalPos];\r\n }\r\n else\r\n {\r\n \tbottom = null;\r\n }\r\n \r\n if(verticalPos > 1 && horizontalPos > 1) //botttomLeft\r\n {\r\n \tbottomLeft = Driver.map[verticalPos - 1][horizontalPos - 1];\r\n }\r\n else\r\n {\r\n \tbottomLeft = null;\r\n }\r\n \t\r\n \r\n adjacentTiles[0] = topLeft;\r\n adjacentTiles[1] = top;\r\n adjacentTiles[2] = topRight;\r\n adjacentTiles[3] = bottomRight;\r\n adjacentTiles[4] = bottom;\r\n adjacentTiles[5] = bottomLeft;\r\n \r\n \r\n// System.out.print(\"main tile \" + getHor() + \", \" + getVert() + \" \");\r\n// for(int i = 0; i < adjacentTiles.length; i++)\r\n// {\r\n// \tif( adjacentTiles[i] != null)\r\n// \t\tSystem.out.print(adjacentTiles[i].getHor() + \", \" + adjacentTiles[i].getVert() + \" | \");\r\n// \telse\r\n// \t\tSystem.out.print(\"null \");\r\n// }\r\n// System.out.println();\r\n \r\n }", "public void update_map(Player player) \n\t{\n\t\tfor (int i = 0; i < this.map.length; i++) \n\t\t{\n\t\t\tfor (int j = 0; j < this.map[i].length;j++) \n\t\t\t{\n\t\t\t\tswitch (map[i][j]) \n\t\t\t\t{\n\t\t\t\tcase GRASS:\n\t\t\t\t\tthis.gc.drawImage(GRASS_IMAGE, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase PATH:\n\t\t\t\t\tthis.gc.drawImage(PATH_IMAGE, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase CROSS_ROADS:\n\t\t\t\t\tthis.gc.drawImage(PATH_IMAGE, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase TA:\n\t\t\t\t\tthis.gc.drawImage(TA_IMAGE, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase RESEARCHER:\n\t\t\t\t\tthis.gc.drawImage(RESEARCHER_IMAGE, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase FIRST_YEAR:\n\t\t\t\t\tthis.gc.drawImage(FIRST_YEAR_IMAGE, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase SECOND_YEAR:\n\t\t\t\t\tthis.gc.drawImage(SECOND_YEAR_IMAGE, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase SCORE_AREA:\n\t\t\t\t\tthis.gc.drawImage(GRASS_IMAGE, j*64, i*64);\n\t\t\t\t\tFont titleFont = Font.font(\"arial\", FontWeight.EXTRA_BOLD, 25);\n\t\t\t this.gc.setFont(titleFont);\n\t\t\t\t\tString text = \"GPA: \" + player.getGPA();\n\t\t\t\t\tthis.gc.fillText(text, j*64, i*64);\n\t\t\t\t\tthis.gc.strokeText(text, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\tcase TUITION_AREA:\n\t\t\t\t\tthis.gc.drawImage(GRASS_IMAGE, j*64, i*64);\n\t\t\t\t\tFont title = Font.font(\"arial\", FontWeight.EXTRA_BOLD, 25);\n\t\t\t this.gc.setFont(title);\n\t\t\t\t\tString Tuition = \"Tuition: \" + (player.getTuition());\n\t\t\t\t\tthis.gc.fillText(Tuition, j*64, i*64);\n\t\t\t\t\tthis.gc.strokeText(Tuition, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void fillMap(Grid tablero) { // reads the board and fill auxiliary map\n for (int i = 0; i < 10; i++) {\n for (int j = 0; j < 10; j++) {\n if (tablero.getCell(i, j) == 0) {\n Cell c = new Cell(i, j);\n ArrayList<Integer> elements = fillDomain();\n map.put(c, elements);\n } else {\n Cell c = new Cell(i, j);\n ArrayList<Integer> elements = new ArrayList<>();\n elements.add(tablero.getCell(i, j));\n map.put(c, elements);\n }\n }\n }\n }", "private void createMapOfFirstType() {\n\n this.typeOfMap=1;\n matrixOfSquares[0][0] = createSquare( ColorOfFigure_Square.BLUE, true, 0, 0);\n matrixOfSquares[0][1] = createSquare( ColorOfFigure_Square.BLUE, false, 0, 1);\n matrixOfSquares[0][2] = createSquare(true, ColorOfFigure_Square.BLUE, true,0,2);\n matrixOfSquares[0][3] = null;\n matrixOfSquares[1][1] = createSquare( ColorOfFigure_Square.RED, true,1,1);\n matrixOfSquares[1][0] = createSquare(true, ColorOfFigure_Square.RED, true,1,0);\n matrixOfSquares[1][2] = createSquare( ColorOfFigure_Square.RED, true,1,2);\n matrixOfSquares[1][3] = createSquare( ColorOfFigure_Square.YELLOW, true,1,3);\n matrixOfSquares[2][0] = null;\n matrixOfSquares[2][1] = createSquare( ColorOfFigure_Square.GREY, true,2,1);\n matrixOfSquares[2][2] = createSquare( ColorOfFigure_Square.GREY, true,2,2);\n matrixOfSquares[2][3] = createSquare(true, ColorOfFigure_Square.YELLOW, true,2,3);\n\n }", "private void updateMap() {\n\t\tfor (int i = 0; i < 12; i++) {\n\t\t\tfor (int j = 0; j < 12; j++) {\n\t\t\t\tif (newMap[i][j] instanceof Player) {\n\t\t\t\t\tmap[i][j] = new Player(i, j, board);\n\t\t\t\t} else if (newMap[i][j] instanceof BlankSpace) {\n\t\t\t\t\tmap[i][j] = new BlankSpace(i, j, board);\n\t\t\t\t} else if (newMap[i][j] instanceof Mho) {\n\t\t\t\t\tmap[i][j] = new Mho(i, j, board);\n\t\t\t\t} else if (newMap[i][j] instanceof Fence) {\n\t\t\t\t\tmap[i][j] = new Fence(i, j, board);\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t}", "public void doScan() {\n\t\tSystemMapObject[] results = scan();\r\n\t\t// add to its current map.\r\n\t\t// System.out.println(toStringInternalMap());\r\n\t\tupdateMowerCords();\r\n\t\t// NorthWest\r\n\t\tif (y + 1 >= this.map.size()) {\r\n\t\t\tthis.map.add(new ArrayList<SystemMapObject>());\r\n\t\t\tthis.map.get(y + 1).add(0, results[7]);\r\n\t\t} else if (x - 1 <= 0) {\r\n\t\t\tthis.map.get(y + 1).add(x, results[7]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y + 1).set(x - 1, results[7]);\r\n\t\t}\r\n\t\tupdateMowerCords();\r\n\t\t// West\r\n\t\tif (this.map.get(y).size() < 2) {\r\n\t\t\tthis.map.get(y).add(0, results[6]);\r\n\t\t} else if (x - 1 < 0) {\r\n\t\t\tthis.map.get(y).add(0, results[6]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y).set(x - 1, results[6]);\r\n\t\t}\r\n\t\t// SouthWest\r\n\t\tupdateMowerCords();\r\n\t\tif (y - 1 < 0) {\r\n\t\t\tthis.map.add(0, new ArrayList<SystemMapObject>());\r\n\t\t\tthis.map.get(0).add(0, results[5]);\r\n\t\t} else if (this.map.get(y - 1).size() < 2) {\r\n\t\t\tthis.map.get(y - 1).add(0, results[5]);\r\n\t\t} else if (this.map.get(y - 1).size() <= x - 1) {\r\n\t\t\tthis.map.get(y - 1).add(results[5]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y - 1).set(x - 1, results[5]);\r\n\t\t}\r\n\t\tupdateMowerCords();\r\n\t\t// North\r\n\t\tif (y + 1 < this.map.size() && x >= this.map.get(y + 1).size()) {\r\n\t\t\tif (x >= this.map.get(y + 1).size()) {\r\n\t\t\t\tthis.map.get(y+1).add(results[0]);\r\n\t\t\t} else {\r\n\t\t\t\tthis.map.get(y + 1).add(x, results[0]);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tthis.map.get(y + 1).set(x, results[0]);\r\n\t\t}\r\n\t\tupdateMowerCords();\r\n\t\t// NorthEast\r\n\t\tif (this.map.get(y + 1).size() <= x + 1) {\r\n\t\t\tthis.map.get(y + 1).add(results[1]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y + 1).set(x + 1, results[1]);\r\n\t\t}\r\n\t\tupdateMowerCords();\r\n\t\t// East\r\n\t\tif (this.map.get(y).size() <= x + 1) {\r\n\t\t\tthis.map.get(y).add(results[2]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y).set(x + 1, results[2]);\r\n\t\t}\r\n\t\tupdateMowerCords();\r\n\r\n\t\t// South\r\n\t\tif (y - 1 < 0) {\r\n\t\t\tthis.map.add(0, new ArrayList<SystemMapObject>());\r\n\t\t\tthis.map.get(0).add(results[4]);\r\n\t\t} else if (x >= this.map.get(y - 1).size()) {\r\n\t\t\tthis.map.get(y - 1).add(results[4]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y - 1).set(x, results[4]);\r\n\t\t}\r\n\t\tupdateMowerCords();\r\n\t\t// South East\r\n\t\tif (this.map.get(y - 1).size() <= x + 1) {\r\n\t\t\tthis.map.get(y - 1).add(results[3]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y - 1).set(x + 1, results[3]);\r\n\t\t}\r\n\r\n\t\tupdateMowerCords();\r\n\t\t// System.out.println(\"This is your X:\" + this.x);\r\n\t\t// System.out.println(\"This is your Y:\" + this.y);\r\n\t\t//\r\n\t\t// System.out.println(toStringInternalMap());\r\n\t\t// System.out.println(\"-------------------------------------------------------------------------------------\");\r\n\r\n\t}", "protected void calculatePathfindingGrid(Tile[] tiles) {\n \n if(tiles == null) {\n return;\n }\n \n /**\n * Problem:\n * Because the tile size used by the path finding engine will most likely be\n * different from that of the visual effect size, we have to\n * look at all the visual tiles and judge whether they are blocking of\n * particular kinds of unit.\n * \n * Algorithm:\n * For land, air and sea take a look at the number of blocking/non-blocking\n * tiles there are and if there is over 50% either way then that will be the\n * PathTiles result.\n */\n \n // First get the size of the map in PathTile(s)\n int rows = getActualHeightInTiles();\n int cols = getActualWidthInTiles();\n \n // Calculate the number of tiles to a PathTile\n int tilesPerActualTilesX = getActualTileWidth() / getTileWidth();\n int tilesPerActualTilesY = getActualTileHeight() / getTileHeight();\n int tileCount = tilesPerActualTilesX * tilesPerActualTilesY;\n \n int tileCols = getWidthInTiles();\n \n // Create an array\n mPathTiles = new PathTile[ rows * cols ];\n \n // Iterate through these tiles\n for(int x = 0; x < cols ; x++) {\n for(int y = 0; y < rows; y++) {\n \n // Setup some variables\n int blockSea, blockAir, blockLand;\n blockAir = blockLand = blockSea = 0;\n \n // Figure out the percentage of each block\n for(int tx = 0; tx < tilesPerActualTilesX; tx++) {\n for(int ty = 0; ty < tilesPerActualTilesY; ty++) {\n \n int tileX = (x * tilesPerActualTilesX) + tx;\n int tileY = (y * tilesPerActualTilesY) + ty;\n \n Tile thisTile = tiles[ (tileY * tileCols) + tileX ];\n \n if(thisTile.blockAir()) {\n blockAir++;\n }\n \n if(thisTile.blockLand()) {\n blockLand++;\n }\n \n if(thisTile.blockSea()) {\n blockSea++;\n }\n \n }\n }\n \n // Calculate percentage\n float a,b,c;\n a = (float)blockAir / (float)tileCount;\n b = (float)blockLand / (float)tileCount;\n c = (float)blockSea / (float)tileCount;\n \n // Set the new tile\n mPathTiles[ (y * cols) + x ] = new PathTile( (a >= .5f), (b >= .5f), (c >= .5f) );\n \n // System.out.println(\"Grid \" + ((y * cols) + x) + \" (\" + x + \", \" + y + \") Air: \" + a + \" Land: \" + b + \" Sea: \" + c);\n \n }\n }\n \n }", "private static void createMap()\r\n {\r\n position = new String[8][8];\r\n for(int i=0;i<8;i++)\r\n {\r\n int z=0;\r\n for(int j=72;j>=65;j--)\r\n {\r\n position[i][z]=(char)j+\"\"+(i+1); //uses ascii char placement for letters\r\n z++;\r\n }\r\n }\r\n \r\n }", "public void createWorldMap() {\r\n\t\tdo {\r\n\t\t\t//\t\t@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Recursive map generation method over here@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r\n\t\t\t//Generation loop 1 *ADDS VEIN STARTS AND GRASS*\r\n\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\r\n\t\t\t\t\tif (Math.random()*10000>9999) { //randomly spawn a conore vein start\r\n\t\t\t\t\t\ttileMap[i][j] = new ConoreTile (conore, true);\r\n\t\t\t\t\t\tconoreCount++;\r\n\t\t\t\t\t}else if (Math.random()*10000>9999){\r\n\t\t\t\t\t\ttileMap[i][j] = new KannaiteTile(kanna, true);\r\n\t\t\t\t\t\tkannaiteCount++;\r\n\t\t\t\t\t}else if(Math.random()*10000>9999){\r\n\t\t\t\t\t\ttileMap[i][j] = new FuelTile(fuel, true);\r\n\t\t\t\t\t\tfuelCount++;\r\n\t\t\t\t\t}else if(Math.random()*10000>9999) {\r\n\t\t\t\t\t\ttileMap[i][j] = new ForestTile(forest, true);\r\n\t\t\t\t\t\tforestCount++;\r\n\t\t\t\t\t}else if(Math.random()*10000>9999){\r\n\t\t\t\t\t\ttileMap[i][j] = new OilTile(oil,true);\r\n\t\t\t\t\t}else if(Math.random()*10000>9997) {\r\n\t\t\t\t\t\ttileMap[i][j] = new MountainTile(mountain, true);\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\ttileMap[i][j] = new GrassTile(dirt);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} // End for loop \r\n\t\t\t} // End for loop\r\n\t\t\t//End generation loop 1\r\n\r\n\t\t\t//Generation loop 2 *EXPANDS ON THE VEINS*\r\n\t\t\tdo {\r\n\t\t\t\tif (conoreCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new ConoreTile (conore,true);\r\n\t\t\t\t\tconoreCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tconorePass = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (kannaiteCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new KannaiteTile (kanna,true);\r\n\t\t\t\t\tkannaiteCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tkannaitePass = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (fuelCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new FuelTile (fuel,true);\r\n\t\t\t\t\tfuelCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tfuelPass = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (forestCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new ForestTile (forest,true);\r\n\t\t\t\t\tforestCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tforestPass = true;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tSystem.out.println(\"Conore: \" + conoreCount + \" - \" + conorePass);\r\n\t\t\t\tSystem.out.println(\"Kannaite: \" + kannaiteCount + \" - \" + kannaitePass);\r\n\t\t\t\tSystem.out.println(\"Fuel: \" + fuelCount + \" - \" + fuelPass);\r\n\t\t\t\tSystem.out.println(\"Forest: \" + forestCount + \" - \" + forestPass);\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t}while(!conorePass || !kannaitePass || !fuelPass || !forestPass);\r\n\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\tbuildConore(i,j);\r\n\t\t\t\t\tbuildKannaite(i,j);\r\n\t\t\t\t\tbuildFuel(i,j);\r\n\t\t\t\t\tbuildForest(i,j);\r\n\t\t\t\t}//End of for loop\r\n\t\t\t}//End of for loop\r\n\t\t\t//End of generation loop 2\r\n\r\n\t\t\t//Generation loop 3 *COUNT ORES*\r\n\t\t\tint loop3Count = 0;\r\n\t\t\tconorePass = false;\r\n\t\t\tkannaitePass = false;\r\n\t\t\tfuelPass = false;\r\n\t\t\tforestPass = false;\r\n\t\t\tdo {\r\n\t\t\t\tconoreCount = 0;\r\n\t\t\t\tkannaiteCount = 0;\r\n\t\t\t\tfuelCount = 0;\r\n\t\t\t\tforestCount = 0;\r\n\t\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\t\tif (tileMap[i][j] instanceof ConoreTile) {\r\n\t\t\t\t\t\t\tconoreCount++;\r\n\t\t\t\t\t\t}else if(tileMap[i][j] instanceof KannaiteTile) {\r\n\t\t\t\t\t\t\tkannaiteCount++;\r\n\t\t\t\t\t\t}else if(tileMap[i][j] instanceof FuelTile) {\r\n\t\t\t\t\t\t\tfuelCount++;\r\n\t\t\t\t\t\t}else if(tileMap[i][j] instanceof ForestTile) {\r\n\t\t\t\t\t\t\tforestCount++;\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\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\t\tif (conoreCount < 220) {\r\n\t\t\t\t\t\t\tbuildConore(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tconorePass = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (kannaiteCount < 220) {\r\n\t\t\t\t\t\t\tbuildKannaite(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tkannaitePass = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (fuelCount< 220) {\r\n\t\t\t\t\t\t\tbuildFuel(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tfuelPass = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (forestCount < 220) {\r\n\t\t\t\t\t\t\tbuildForest(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tforestPass = true;\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\tSystem.out.println(\"Conore: \" + conoreCount + \" - \" + conorePass);\r\n\t\t\t\tSystem.out.println(\"Kannaite: \" + kannaiteCount + \" - \" + kannaitePass);\r\n\t\t\t\tSystem.out.println(\"Fuel: \" + fuelCount + \" - \" + fuelPass);\r\n\t\t\t\tSystem.out.println(\"Forest: \" + forestCount + \" - \" + forestPass);\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tloop3Count++;\r\n\t\t\t\tif (loop3Count > 100) {\r\n\t\t\t\t\tSystem.out.println(\"map generation failed! restarting\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}while(!conorePass || !kannaitePass || !fuelPass || !forestPass);\r\n\t\t\t//END OF LOOP 3\r\n\r\n\t\t\t//LOOP 4: THE MOUNTAIN & OIL LOOP\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\tbuildMountain(i,j);\r\n\t\t\t\t\tbuildOil(i,j);\r\n\t\t\t\t}\r\n\t\t\t}//End of THE Mountain & OIL LOOP\r\n\r\n\t\t\t//ADD MINIMUM AMOUNT OF ORES\r\n\r\n\t\t\t//Generation Loop 5 *FINAL SETUP*\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\r\n\t\t\t\t\tif(i == 1 || j == 1 || i == tileMap.length-2 || j == tileMap[i].length-2) {\r\n\t\t\t\t\t\ttileMap[i][j] = new DesertTile(desert);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (i == 0 || j == 0 || i == tileMap.length-1 || j == tileMap[i].length-1) {\r\n\t\t\t\t\t\ttileMap[i][j] = new WaterTile(water);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}//End of for loop\r\n\t\t\t}//End of for loop\r\n\t\t\t//End of generation loop 5\r\n\t\t\t//mapToString();//TEST RUN\r\n\t\t} while(!conorePass || !kannaitePass || !fuelPass || !forestPass); // End createWorldMap method\r\n\t}", "private void addToMap(int x, int y, MapBox piece){\n\t\tBoxContainer type;\r\n\t\t\n\t\t// determine the type of this square\n\t\ttype = BoxContainer.Open;\r\n\t\t\n\t\tif (piece.hasKey()){\n\t\t\t// this is a key so mark it as such and add it to our array\n\t\t\ttype = BoxContainer.Key;\n\t\t\tPoint thisPoint = new Point(x, y, BoxContainer.Key);\n\t\t\tif (!checkForPointInArr(keys, thisPoint)){ // make sure it's not already in the array\n\t\t\t\tkeys.add(thisPoint); // add this to our key array\n\t\t\t}\n\t\t} else if (piece.isEnd()){\n\t\t\t// this is an exit so mark it as such and add it to our array\n\t\t\ttype = BoxContainer.Exit;\n\t\t\tPoint thisPoint = new Point(x, y, BoxContainer.Exit);\n\t\t\tif (!checkForPointInArr(exits, thisPoint)){ // make sure it's not already in the array\n\t\t\t\texits.add(new Point(x, y, BoxContainer.Exit)); // add this to our exit array\n\t\t\t}\n\t\t}\r\n\t\t\n\t\t// add it to the map\r\n\t\t\n\t\tmap.addElement(x, y, type);\n\t\t\n\t\t// add its surroundings to the map\n\t\tPoint[] surrondings = new Point[4];\r\n\t\t\n\t\tsurrondings[0] = new Point(x, y + 1, castToBoxContainer(piece.North)); // add the north piece\n\t\tsurrondings[1] = new Point(x, y - 1, castToBoxContainer(piece.South)); // add the south piece\n\t\tsurrondings[2] = new Point(x + 1, y, castToBoxContainer(piece.East)); // add the east piece\n\t\tsurrondings[3] = new Point(x - 1, y, castToBoxContainer(piece.West)); // add the west piece\n\t\t\n\t\tfor (int i = 0; i < surrondings.length; i++){\n\t\t\t// check if this is a key or an exit and if so add it to the respective arrays if it not already there\n\t\t\tif (surrondings[i].type == BoxContainer.Exit){\n\t\t\t\tif (!checkForPointInArr(exits, surrondings[i])){ // make sure it's not already there\n\t\t\t\t\texits.add(surrondings[i]);\n\t\t\t\t}\n\t\t\t} else if (surrondings[i].type == BoxContainer.Key){\n\t\t\t\tif (!checkForPointInArr(keys, surrondings[i])){ // make sure it's not already there\n\t\t\t\t\tkeys.add(surrondings[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tmap.addElement(surrondings[i].x, surrondings[i].y, surrondings[i].type);\n\t\t}\n\t}", "public Map(int r, int c){\r\n try {\r\n bomb = new Image(new FileInputStream(\"Minesweeper_Images/bomb.png\"));\r\n zero = new Image(new FileInputStream(\"Minesweeper_Images/zero.png\"));\r\n one = new Image(new FileInputStream(\"Minesweeper_Images/one.png\"));\r\n two = new Image(new FileInputStream(\"Minesweeper_Images/two.png\"));\r\n three = new Image(new FileInputStream(\"Minesweeper_Images/three.png\"));\r\n four = new Image(new FileInputStream(\"Minesweeper_Images/four.png\"));\r\n five = new Image(new FileInputStream(\"Minesweeper_Images/five.png\"));\r\n six = new Image(new FileInputStream(\"Minesweeper_Images/six.png\"));\r\n seven = new Image(new FileInputStream(\"Minesweeper_Images/seven.png\"));\r\n eight = new Image(new FileInputStream(\"Minesweeper_Images/eight.png\"));\r\n flag = new Image(new FileInputStream(\"Minesweeper_Images/flag.png\"));\r\n square = new Image(new FileInputStream(\"Minesweeper_Images/square.png\"));\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n map = new Square[r][c];\r\n for(int row = 0; row<map.length; row++){\r\n for(int col = 0; col<map[0].length; col++){\r\n map[row][col] = new Square();\r\n //map[row][col].setVisual(\" \");\r\n int x = row;\r\n int y = col;\r\n map[row][col].setVisual(square);\r\n map[row][col].getSquareButton().setOnMouseClicked(e->{\r\n if(e.getButton() == MouseButton.PRIMARY){\r\n revealArea(x, y);\r\n }\r\n if(e.getButton() == MouseButton.SECONDARY){\r\n flag(x, y);\r\n if(win() == true){\r\n System.out.println(\"WIN\");\r\n EndBox.end(\"Win\", \"YOU WIN!!!\");\r\n System.exit(0);\r\n }\r\n }\r\n });\r\n\r\n\r\n }\r\n\r\n }\r\n }", "public static void createInfluenceMap(Spaceship predator, Spaceship prey) {\n mapWidth = Constants.screenWidth / CELL_SIZE;\n mapHeight = Constants.screenHeight / CELL_SIZE;\n influenceMap = new double[mapWidth][mapHeight];\n lowestValue = Double.MAX_VALUE;\n highestValue = -Double.MAX_VALUE;\n\n Vector2d cellCenter = new Vector2d();\n for (int y = 0; y < mapHeight; y++) {\n for (int x = 0; x < mapWidth; x++) {\n cellCenter.set(CELL_SIZE * (x + 0.5), CELL_SIZE * (y + 0.5));\n double dist = cellCenter.dist(prey.pos);\n // use exponential dropoff instead of linear dropoff\n //double value = 5 + Math.log1p(dist) * -1;\n double value = (MAX_DIST - dist)/MAX_DIST;\n influenceMap[x][y] += value;\n }\n }\n\n // go through map and establish ranges\n for (int y = 0; y < mapHeight; y++) {\n for (int x = 0; x < mapWidth; x++) {\n double value = influenceMap[x][y];\n if (value > highestValue) highestValue = value;\n if (value < lowestValue) lowestValue = value;\n }\n }\n\n }", "public static void spreadDust() {\n newMap = new int[R][C];\n\n for (int i = 0; i < R; i++) {\n for (int j = 0; j < C; j++) {\n if (map[i][j] > 0) {\n int cnt = 0;\n for (int d = 0; d < 4; d++) {\n int ny = i + dy[d];\n int nx = j + dx[d];\n\n if (ny < 0 || ny > R - 1 || nx < 0 || nx > C - 1 || map[ny][nx] == -1)\n continue;\n\n newMap[ny][nx] += map[i][j] / 5;\n cnt++;\n }\n newMap[i][j] += map[i][j] - (map[i][j] / 5) * cnt;\n } else if (map[i][j] == -1) {// 공기청정기 위치.\n newMap[i][j] = -1;\n// airCleaner.add(new Point4(j, i));\n }\n }\n }\n\n for (int i = 0; i < R; i++) {\n map[i] = Arrays.copyOf(newMap[i], C);\n }\n\n cleanAir(airCleaner.get(0), airCleaner.get(1));\n\n }", "public static void main(String[] args) {\n int[][] map = new int[N][N];\r\n // 1D to 2D index map\r\n CustomPair[] indToVal = new CustomPair[(N * N) + 1];\r\n // 2D to value map\r\n Map<CustomPair, Integer> gridToValue = new HashMap<>();\r\n // Direction to start\r\n Direction dir = Direction.RIGHT;\r\n int j = 1;\r\n int y = N / 2;\r\n // shift left for even n's\r\n int x = (N % 2 == 0) ? y - 1 : y;\r\n /**\r\n * We use y, x here because the grid is sort of turned around.\r\n * */\r\n while(j <= ((N * N))) {\r\n CustomPair currentIndex = new CustomPair(y, x);\r\n // if the number is not prime it is traversable\r\n if (!isPrime(j)) {\r\n map[y][x] = 1;\r\n gridToValue.put(currentIndex, j);\r\n } else {\r\n map[y][x] = -1;\r\n }\r\n // add the value to 1d to 2d index values\r\n indToVal[j] = currentIndex;\r\n switch(dir){\r\n case RIGHT:\r\n if(x <= (N - 1) && map[y - 1][x] == 0 && j > 1)\r\n dir = Direction.UP;\r\n break;\r\n case UP:\r\n if(map[y][x - 1] == 0)\r\n dir = Direction.LEFT;\r\n break;\r\n case LEFT:\r\n if(x == 0 || map[y + 1][x] == 0)\r\n dir = Direction.DOWN;\r\n break;\r\n case DOWN:\r\n if(map[y][x + 1] == 0)\r\n dir = Direction.RIGHT;\r\n break;\r\n }\r\n // update the grid index\r\n switch(dir){\r\n case RIGHT:\r\n x++;\r\n break;\r\n case UP:\r\n y--;\r\n break;\r\n case LEFT:\r\n x--;\r\n break;\r\n case DOWN:\r\n y++;\r\n break;\r\n }\r\n // update 1D index\r\n j++;\r\n }\r\n\r\n Scanner sc = new Scanner(System.in);\r\n int caseNum = 1;\r\n while (sc.hasNextInt()) {\r\n int start = sc.nextInt();\r\n int goal = sc.nextInt();\r\n // find the shortest path\r\n Queue<CustomPair> q = new LinkedList<>();\r\n // 2D grid to distance values\r\n Map<CustomPair, Integer> distMap = new HashMap<>();\r\n // start is 0\r\n distMap.put(indToVal[start], 0);\r\n q.add(indToVal[start]);\r\n while (!q.isEmpty()) {\r\n CustomPair cur = q.remove();\r\n // for each neighbour (4 potential moves)\r\n for (int i = 0; i < 4; i++) {\r\n int nx = cur.a + X_NEIG_INDEX[i];\r\n int ny = cur.b + Y_NEIG_INDEX[i];\r\n CustomPair neighP = new CustomPair(nx, ny);\r\n // if the value is not in the grid\r\n if (!gridToValue.containsKey(neighP))\r\n continue;\r\n // if the value is already visited\r\n if (distMap.containsKey(neighP))\r\n continue;\r\n distMap.put(neighP, distMap.get(cur) + 1);\r\n q.add(neighP);\r\n }\r\n }\r\n // print for Kattis reasons\r\n String msg = \"Case \" + caseNum + \": \";\r\n if (!distMap.containsKey(indToVal[goal]) ||\r\n distMap.getOrDefault(indToVal[goal], -1) == -1 && start != goal)\r\n System.out.println(msg + \" impossible\");\r\n else\r\n System.out.println(msg + \"\" + distMap.get(indToVal[goal]));\r\n caseNum++;\r\n }\r\n }", "public static int[][] generateMap(int mines, int width, int height, int fcX, int fcY) {\n\t\tif(mines>width*height-1){\n\t\t\treturn null;\n\t\t}\n\t\tint[][] meowfield = new int[height][width];\n\t\tmeowfield[fcY][fcX] = (int)Math.random()*10;\n\t\tint[] RNGesus = new int[mines];\n\t\tfor(int i=0; i<meowfield.length;i++){\t\n\t\t\tArrays.fill(meowfield[i], -1);\n\t\t}\n\t\tArrays.fill(RNGesus, -1);\n\t\tfor (int i = 0; i < mines; i++) {\n\t\t\tint ranNum = (int) (Math.random() * width * height);\n\t\t\tSystem.out.println(ranNum);\n\t\t\tif (!contains(RNGesus, ranNum)) {\n\t\t\t\tRNGesus[i] = ranNum;\n\t\t\t} else {\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(Arrays.toString(RNGesus));\n\t\tfor (int i = 0; i < RNGesus.length; i++) {\n\t\t\tmeowfield[RNGesus[i] %width][RNGesus[i]/height] = 10;\n\t\t}\n\t\treturn meowfield;\n\t}", "public Gridder()\n\t{\n grid = new Cell[MapConstant.MAP_X][MapConstant.MAP_Y];\n for (int row = 0; row < grid.length; row++) {\n for (int col = 0; col < grid[0].length; col++) {\n grid[row][col] = new Cell(row, col);\n\n // Set the virtual walls of the arena\n if (row == 0 || col == 0 || row == MapConstant.MAP_X - 1 || col == MapConstant.MAP_Y - 1) {\n grid[row][col].setVirtualWall(true);\n }\n }\n }\n\t}", "private void recalculateNeighbours(int x, int y) {\r\n\t\tTile t = map.getTile(x, y + 1, 0);\r\n\t\tif (t != null) {\r\n\t\t\tt.toMap(this, x, y + 1, false);\r\n\t\t}\r\n\t\tt = map.getTile(x + 1, y, 0);\r\n\t\tif (t != null) {\r\n\t\t\tt.toMap(this, x + 1, y, false);\r\n\t\t}\r\n\t\tt = map.getTile(x, y - 1, 0);\r\n\t\tif (t != null) {\r\n\t\t\tt.toMap(this, x, y - 1, false);\r\n\t\t}\r\n\t\tt = map.getTile(x - 1, y, 0);\r\n\t\tif (t != null) {\r\n\t\t\tt.toMap(this, x - 1, y, false);\r\n\t\t}\r\n\t}", "private void fillBoard() {\n\n boardMapper.put(1, new int[]{0, 0});\n boardMapper.put(2, new int[]{0, 1});\n boardMapper.put(3, new int[]{0, 2});\n boardMapper.put(4, new int[]{1, 0});\n boardMapper.put(5, new int[]{1, 1});\n boardMapper.put(6, new int[]{1, 2});\n boardMapper.put(7, new int[]{2, 0});\n boardMapper.put(8, new int[]{2, 1});\n boardMapper.put(9, new int[]{2, 2});\n\n }", "protected void computeGridParameters() {\n float padding = 0.02f * overlay.getScalingValue();\n boolean flipX = x2 < x1;\n float xx1 = flipX ? (x1 + padding) : (x1 - padding);\n float xx2 = flipX ? (x2 - padding) : (x2 + padding);\n boolean flipY = y2 < y1;\n float yy1 = flipY ? (y1 + padding) : (y1 - padding);\n float yy2 = flipY ? (y2 - padding) : (y2 + padding);\n \n xGrid1 = xx1; yGrid1 = yy1;\n xGrid2 = xx2; yGrid2 = yy1;\n xGrid3 = xx1; yGrid3 = yy2;\n xGrid4 = xx2; yGrid4 = yy2;\n horizGridCount = 3; vertGridCount = 3;\n }", "private void setup()\r\n {\r\n \r\n char[][] examplemap = {\r\n { 'e','w','e','e','e','e','e','e','e','e' },\r\n { 'e','w','e','w','w','w','w','e','w','w' },\r\n { 'e','w','e','w','e','w','w','e','w','e' },\r\n { 'e','e','e','w','e','w','e','e','w','e' },\r\n { 'e','w','e','e','e','w','e','e','w','e' },\r\n { 'e','w','w','w','e','w','e','w','w','e' },\r\n { 'e','e','e','e','e','e','e','w','e','e' },\r\n { 'e','w','w','e','w','e','w','w','w','e' },\r\n { 'e','e','w','e','e','w','w','e','e','e' },\r\n { 'e','e','w','e','e','e','e','e','e','w' }};\r\n for (int i=0; i<map.length; i++)\r\n {\r\n for (int n=0; n<map[i].length; n++)\r\n {\r\n if (examplemap[n][i] == 'e')\r\n map[i][n].setBackground(Color.white);\r\n else\r\n map[i][n].setBackground(Color.black);\r\n }\r\n }\r\n \r\n map[0][0].setBackground(Color.red);\r\n this.Playerpos[0]=0;\r\n this.Playerpos[1]=0;\r\n \r\n \r\n map[9][8].setBackground(Color.blue);\r\n this.Goalpos[0]=9;\r\n this.Goalpos[1]=8;\r\n \r\n \r\n \r\n \r\n }", "private void fillMap() {\n\t\tObject tile = new Object();\n\t\tfor(int x = 0; x < map.length; x++) {\n\t\t\tfor(int y = 0; y < map.length; y++) {\n\t\t\t\tmap[x][y] = tile;\n\t\t\t}\n\t\t}\n\t}", "private void genShotMap(int[] shotMapGlob, int[] board, int xShot, int yShot){\n\t\tint i, xOff, yOff;\n\t\tfor(i = 0; i < shotMapGlob.length; i++){\n\t\t\tshotMapGlob[i] = -1;\n\t\t}\n\n\t\tshotMapGlob[yShot*GRID+xShot] = -99999;\n\t\tfor(int[] offset : MATRIX){\n\t\t\tfor(yOff = yShot+offset[0], xOff = xShot+offset[1]; (yOff > -1 && yOff < 10) && (xOff > -1 && xOff < 10); yOff += offset[0], xOff += offset[1]){\n\t\t\t\tif(board[yOff*GRID+xOff] == 0){\n\t\t\t\t\tshotMapGlob[yOff*GRID+xOff] = (((yOff&0xf) << 4) | xOff&0xf); // Rather than calling encode, doing it inline\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void adjustRight() {\n\n for (int y = 0; y < MAP_HEIGHT; y++)\n for (int x = 0; x < MAP_WIDTH; x++) {\n tiles[x][y].x = tiles[x][y].x + 4;\n backGroundTiles[x][y].x = backGroundTiles[x][y].x + 4;\n grassTiles[x][y].x = grassTiles[x][y].x + 4;\n }\n\n }", "private void fillImageMap() {\n Image shipImage;\n try {\n shipImage = ImageIO.read(getClass().getResource(\"img/patrol_boat.png\"));\n imageMap.put(ShipType.PATROL_BOAT, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/patrol_boat_sunken.png\"));\n imageMap.put(ShipType.PATROL_BOAT_SUNKEN, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/cruiser_horizontal.gif\"));\n imageMap.put(ShipType.CRUISER_HORIZONTAL, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/cruiser_horizontal_sunken.gif\"));\n imageMap.put(ShipType.CRUISER_HORIZONTAL_SUNKEN, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/cruiser_vertical.gif\"));\n imageMap.put(ShipType.CRUISER_VERTICAL, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/cruiser_vertical_sunken.gif\"));\n imageMap.put(ShipType.CRUISER_VERTICAL_SUNKEN, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/submarine_horizontal.gif\"));\n imageMap.put(ShipType.SUBMARINE_HORIZONTAL, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/submarine_horizontal_sunken.gif\"));\n imageMap.put(ShipType.SUBMARINE_HORIZONTAL_SUNKEN, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/submarine_vertical.gif\"));\n imageMap.put(ShipType.SUBMARINE_VERTICAL, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/submarine_vertical_sunken.gif\"));\n imageMap.put(ShipType.SUBMARINE_VERTICAL_SUNKEN, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/battleship_horizontal.gif\"));\n imageMap.put(ShipType.BATTLESHIP_HORIZONTAL, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/battleship_horizontal_sunken.gif\"));\n imageMap.put(ShipType.BATTLESHIP_HORIZONTAL_SUNKEN, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/battleship_vertical.gif\"));\n imageMap.put(ShipType.BATTLESHIP_VERTICAL, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/battleship_vertical_sunken.gif\"));\n imageMap.put(ShipType.BATTLESHIP_VERTICAL_SUNKEN, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/aircraft_carrier_horizontal.gif\"));\n imageMap.put(ShipType.AIRCRAFT_CARRIER_HORIZONTAL, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/aircraft_carrier_horizontal_sunken.gif\"));\n imageMap.put(ShipType.AIRCRAFT_CARRIER_HORIZONTAL_SUNKEN, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/aircraft_carrier_vertical.gif\"));\n imageMap.put(ShipType.AIRCRAFT_CARRIER_VERTICAL, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/aircraft_carrier_vertical_sunken.gif\"));\n imageMap.put(ShipType.AIRCRAFT_CARRIER_VERTICAL_SUNKEN, shipImage);\n } catch(IOException e) {\n e.printStackTrace();\n }\n }", "public void draw() {\n PImage grid = loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/tile.png\");\n for(int i = 0 ; i < 10 ; i++){\n for(int j = 0 ; j < 6 ; j++){\n image(grid, i*grid.width, j*grid.height);\n if(gridPlane.get(List.of(i, j)).getOwner() != null){\n if(gridPlane.get(List.of(i, j)).getOwner().getColor().equals(\"Red\")){\n if(gridPlane.get(List.of(i, j)).getAtomCount() == 1){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/red1.png\"), i*grid.width, j*grid.height);\n }else if(gridPlane.get(List.of(i, j)).getAtomCount() == 2){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/red2.png\"), i*grid.width, j*grid.height);\n }else if(gridPlane.get(List.of(i, j)).getAtomCount() == 3){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/red3.png\"), i*grid.width, j*grid.height);\n }\n }else if(gridPlane.get(List.of(i, j)).getOwner().getColor().equals(\"Green\")){\n if(gridPlane.get(List.of(i, j)).getAtomCount() == 1){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/green1.png\"), i*grid.width, j*grid.height);\n }else if(gridPlane.get(List.of(i, j)).getAtomCount() == 2){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/green2.png\"), i*grid.width, j*grid.height);\n }else if(gridPlane.get(List.of(i, j)).getAtomCount() == 3){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/green3.png\"), i*grid.width, j*grid.height);\n }\n }\n }\n }\n }\n if(this.finish == true){\n System.exit(0);\n }\n }", "public MiniMap(Grid grid) {\n\t\tcurrent = this;\n\t\timg = new PImage(grid.cols, grid.rows);\n\t\tint x = Rogue.stage.width - WIDTH;\n\t\tthis.grid = grid;\n\t\tthis.pos = new Int2D(x, 0);\n\t\tbg = createBG();\n\t\tupdate();\n\t\tignoreDiscovered = Registry.getBoolean(\"game.clear_minimap\");\n\t}", "@Override\n public Map<Direction, List<Coordinate>> getPossibleMoves() {\n\n Map<Direction, List<Coordinate>> moves = new HashMap<>();\n\n Coordinate coordinate = this.getCoordinate();\n int row = coordinate.getRow();\n int col = coordinate.getCol();\n\n //Jumps\n List<Coordinate> jumps = new ArrayList<>();\n\n //\n //\n ////\n int tempRow1 = row - 2;\n int tempCol1 = col - 1;\n Coordinate tempCoordinate1 = new Coordinate(tempRow1, tempCol1);\n if (Board.inBounds(tempCoordinate1)) {\n jumps.add(tempCoordinate1);\n }\n\n ////\n //\n //\n int tempRow2 = row + 2;\n int tempCol2 = col - 1;\n Coordinate tempCoordinate2 = new Coordinate(tempRow2, tempCol2);\n if (Board.inBounds(tempCoordinate2)) {\n jumps.add(tempCoordinate2);\n }\n\n //////\n //\n int tempRow3 = row - 1;\n int tempCol3 = col - 2;\n Coordinate tempCoordinate3 = new Coordinate(tempRow3, tempCol3);\n if (Board.inBounds(tempCoordinate3)) {\n jumps.add(tempCoordinate3);\n }\n\n ///////\n //\n int tempRow4 = row - 1;\n int tempCol4 = col + 2;\n Coordinate tempCoordinate4 = new Coordinate(tempRow4, tempCol4);\n if (Board.inBounds(tempCoordinate4)) {\n jumps.add(tempCoordinate4);\n }\n\n ////\n //\n //\n int tempRow5 = row + 2;\n int tempCol5 = col + 1;\n Coordinate tempCoordinate5 = new Coordinate(tempRow5, tempCol5);\n if (Board.inBounds(tempCoordinate5)) {\n jumps.add(tempCoordinate5);\n }\n\n //\n //\n ////\n int tempRow6 = row - 2;\n int tempCol6 = col + 1;\n Coordinate tempCoordinate6 = new Coordinate(tempRow6, tempCol6);\n if (Board.inBounds(tempCoordinate6)) {\n jumps.add(tempCoordinate6);\n }\n\n //\n //////\n int tempRow7 = row + 1;\n int tempCol7 = col - 2;\n Coordinate tempCoordinate7 = new Coordinate(tempRow7, tempCol7);\n if (Board.inBounds(tempCoordinate7)) {\n jumps.add(tempCoordinate7);\n }\n\n //\n //////\n int tempRow8 = row + 1;\n int tempCol8 = col + 2;\n Coordinate tempCoordinate8 = new Coordinate(tempRow8, tempCol8);\n if (Board.inBounds(tempCoordinate8)) {\n jumps.add(tempCoordinate8);\n }\n\n if (!jumps.isEmpty()) {\n moves.put(Direction.Jump, jumps);\n }\n return moves;\n }", "public void setMap(int idRoom, int x, int y, Stack<AuxiliarElement> cjtElem, String nameRoom, int[][] doors, int[][] windows){ \r\n int key = sequence.getValue();\r\n sequence.increase();\r\n Map map = new Map(x, y, idRoom, nameRoom, doors, windows);\r\n map.setCjtElement(cjtElem);\r\n cjtMap.put(key, map);\r\n }", "public void checkwarp(){\n\t\tif(pacman.ypos > (colours[0].length*interval)-2){\r\n\t\t\tpacman.ypos = interval+2;\r\n\t\t}\r\n\t\telse if(pacman.xpos > (colours.length*interval)-2){\r\n\t\t\tpacman.xpos = interval+2;\r\n\t\t}\r\n\t\telse if(pacman.ypos < interval+2){\r\n\t\t\tpacman.ypos = (colours[0].length*interval)-2;\r\n\t\t}\r\n\t\telse if(pacman.xpos < interval+2){\r\n\t\t\tpacman.xpos = (colours.length*interval)-2;\r\n\t\t}\r\n\t\t\r\n\t}", "public static Tile[][] setUpMap() {\n\n Tile[][] tiles = new Tile[5][9];\n String[][] defaultMapLayout = GameMap.getMapLayout();\n\n for (int i = 0; i < 5; i++) {\n\n for (int j = 0; j < 9; j++) {\n\n String tileType = defaultMapLayout[i][j];\n\n if (tileType.equals(\"P\")) {\n Tile newTileName = new Plain();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"R\")) {\n Tile newTileName = new River();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"M1\")) {\n Tile newTileName = new Mountain1();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"M2\")) {\n Tile newTileName = new Mountain2();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"M3\")) {\n Tile newTileName = new Mountain3();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"SM\")) {\n Tile newTileName = new SwampMonster();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"O\")) {\n Tile newTileName = new Ocean();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"G\")) {\n Tile newTileName = new Grass();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"V\")) {\n Tile newTileName = new Volcano();\n tiles[i][j] = newTileName;\n\n }else {\n Tile newTileName = new Plain();\n tiles[i][j] = newTileName;\n newTileName.setOwner(null);\n }\n\n }\n }\n return tiles;\n }", "public void LoadSecondMap(int up_offset, int down_offset, int left_offset,\n int right_offset) {\n int counter = 0;\n for (int y = 0; y < MAP_HEIGHT; y++) {\n for (int x = 0; x < MAP_WIDTH; x++) {\n tiles[x][y] = new Tile(x * TILE_SIZE, y * TILE_SIZE,\n Constants.waterMap[counter], true);\n backGroundTiles[x][y] = new Tile(x * TILE_SIZE, y * TILE_SIZE,\n Constants.waterMap_base[counter], true);\n grassTiles[x][y] = new Tile(x * TILE_SIZE, y * TILE_SIZE,\n Constants.waterMap_grass[counter], true);\n counter++;\n }\n }\n\n for (int i = 0; i < up_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustUp();\n }\n }\n for (int i = 0; i < down_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustDown();\n }\n }\n for (int i = 0; i < left_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustLeft();\n }\n }\n for (int i = 0; i < right_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustRight();\n }\n }\n\n this.setGrassTileRaw(Constants.waterMap_grass); // used for IsInGrass\n this.id = 2;\n\n }", "private item[][] newMap() \r\n\t{\n\t\tinitialItems=50;\r\n\t\t\r\n\t\titem cReg = new item(\"cash register\");\r\n\t\titem door = new item(\"door\");\r\n\t\t\r\n\t\titem[][] array = new item[][] {\r\n\t\t {wall(), wall(), wall(), wall(), wall(), wall(), wall(), wall(), wall(), wall()},\r\n\t\t {wall(), path(), path(), path(), path(), path(), path(), path(), path(), wall()},\r\n\t\t {wall(), path(), hPhn(), hPhn(), hPhn(), hPhn(), hPhn(), hPhn(), path(), wall()},\r\n\t\t {wall(), path(), path(), path(), path(), path(), path(), path(), path(), wall()},\r\n\t\t {wall(), path(), hPhn(), hPhn(), hPhn(), hPhn(), hPhn(), hPhn(), path(), wall()},\r\n\t\t {wall(), path(), path(), path(), path(), path(), path(), path(), path(), wall()},\r\n\t\t {wall(), path(), path(), path(), hPhn(), path(), hPhn(), path(), hPhn(), wall()},\r\n\t\t {wall(), path(), path(), path(), hPhn(), path(), hPhn(), path(), hPhn(), wall()},\r\n\t\t {wall(), cReg, cReg, path(), path(), path(), hPhn(), path(), hPhn(), wall()},\r\n\t\t {wall(), wall(), wall(), wall(), wall(), wall(), wall(), door, wall(), wall()},\r\n\t\t {wall(), wall(), wall(), wall(), wall(), wall(), wall(), wall(), wall(), wall()},\r\n\t\t};\r\n\t\t\r\n\t\tdoorX=7;\r\n\t\tdoorY=9;\r\n\t\t\r\n\t\treturn array;\r\n\t}", "public void drawMap() {\r\n\t\tfor (int x = 0; x < map.dimensionsx; x++) {\r\n\t\t\tfor (int y = 0; y < map.dimensionsy; y++) {\r\n\t\t\t\tRectangle rect = new Rectangle(x * scalingFactor, y * scalingFactor, scalingFactor, scalingFactor);\r\n\t\t\t\trect.setStroke(Color.BLACK);\r\n\t\t\t\tif (islandMap[x][y]) {\r\n\t\t\t\t\tImage isl = new Image(\"island.jpg\", 50, 50, true, true);\r\n\t\t\t\t\tislandIV = new ImageView(isl);\r\n\t\t\t\t\tislandIV.setX(x * scalingFactor);\r\n\t\t\t\t\tislandIV.setY(y * scalingFactor);\r\n\t\t\t\t\troot.getChildren().add(islandIV);\r\n\t\t\t\t} else {\r\n\t\t\t\t\trect.setFill(Color.PALETURQUOISE);\r\n\t\t\t\t\troot.getChildren().add(rect);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void initialiseMap(ArrayList<Sprite> allSprites){\n\t\tint x = (allSprites.get(0).getXOffset()*-2) + App.COLUMNS;\n\t\tint y = (allSprites.get(0).getYOffset()*-2) + App.ROWS;\n\t\t\n\t\tgameMap = new MapCell[x][y];\n\t\t\n\t\t//initialise the gameMap\n\t\tfor (int i = 0; i < x; i++) {\n\t\t\tfor( int j = 0; j < y; j++) {\n\t\t\t\tthis.gameMap[i][j] = new MapCell();\n\t\t\t}\n\t\t}\n\t}", "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}", "public abstract int[][] setupBattleships(int[] ships, int gridSize);", "public void set_map(int[][] map, Random_map_generator generator) \n\t{\n\t\tthis.start_edge_coord_x = generator.get_start_x();\n\t\tthis.start_edge_coord_y = generator.get_start_y();\n\t\tthis.end_edge_coord_x = generator.get_end_x();\n\t\tthis.end_edge_coord_y = generator.get_end_y();\n\t\tthis.random_map = true;\n\t\tthis.map = map;\n\t\tif ((map[1][2] == 0) && (map[2][2] == 0)) \n\t\t{\n\t\t\tmap[1][2] = SCORE_AREA;\n\t\t\tmap[2][2] = TUITION_AREA;\n\t\t}\n\t\telse if ((map[1][14] == 0) && (map[2][14] == 0)) \n\t\t{\n\t\t\tmap[1][14] = SCORE_AREA;\n\t\t\tmap[2][14] = TUITION_AREA;\n\t\t}\n\t\telse if ((map[10][2] == 0) && (map[11][2] == 0)) \n\t\t{\n\t\t\tmap[10][2] = SCORE_AREA;\n\t\t\tmap[11][2] = TUITION_AREA;\n\t\t}\n\t\telse if ((map[10][14] == 0) && (map[11][14] == 0)) \n\t\t{\n\t\t\tmap[10][14] = SCORE_AREA;\n\t\t\tmap[11][14] = TUITION_AREA;\n\t\t}\n\t}", "public int[] updateMap() {\r\n\t\tint[] isObstacle = super.updateMap();\r\n\t\tsmap.setMap(map);\r\n\t\treturn isObstacle;\r\n\t}", "public TiledMap createMap() {\n map_inter = new MapTile[g_logic.MAP_WIDTH][g_logic.MAP_HEIGHT];\n \n //drawing stuff\n tiles = new Texture(Gdx.files.internal(\"packed/terrain.png\"));\n TextureRegion[][] splitTiles = TextureRegion.split(tiles, 54, 54);\n map = new TiledMap();\n MapLayers layers = map.getLayers();\n TiledMapTileLayer new_layer = new TiledMapTileLayer(g_logic.MAP_WIDTH, g_logic.MAP_HEIGHT, g_logic.ISO_WIDTH, g_logic.ISO_HEIGHT);\n \n //actual generation\n for (int x = 0; x < g_logic.MAP_WIDTH; x++) \n {\n for (int y = 0; y < g_logic.MAP_HEIGHT; y++) \n {\n char chara = '.';\n int ty = 0;\n int tx;\n if (x == 0 || x == g_logic.MAP_WIDTH-1)\n {\n tx = 1;\n chara = '#';\n }\n else\n {\n tx = 0; \n chara = '.';\n }\n \n //set up map tiles\n MapTile tile = new MapTile(x, y, tx, ty, chara);\n Gdx.app.log(\"Map gen\", \"Created a map tile @\" + x + \",\" + y + \" \" + tx + \" \" + ty + \" \" + chara);\n \n //put them in the internal map\n putInterMap(tile, x, y);\n \n //set up renderer cells\n TiledMapTileLayer.Cell cell = new TiledMapTileLayer.Cell();\n //y,x\n cell.setTile(new StaticTiledMapTile(splitTiles[tile.getTextureY()][tile.getTextureX()]));\n new_layer.setCell(x, y, cell);\n }\n }\n \n \n float y_off = g_logic.getYOffset();\n new_layer.setOffsetY(y_off);\n layers.add(new_layer);\n \n g_logic.setInterMap(map_inter);\n\n return map;\n }", "protected void createMaps() {\n\t\tBlueSchellingCell bCell = new BlueSchellingCell();\n\t\tOrangeSchellingCell oCell = new OrangeSchellingCell();\n\t\tEmptyCell eCell = new EmptyCell();\n\t\tTreeCell tCell = new TreeCell();\n\t\tBurningTreeCell bTCell = new BurningTreeCell();\n\t\tEmptyLandCell eLCell = new EmptyLandCell();\n\n\t\tLiveCell lCell = new LiveCell();\n\t\tDeadCell dCell = new DeadCell();\n\t\tGreenRPSCell gcell = new GreenRPSCell();\n\t\tRedRPSCell rcell = new RedRPSCell();\n\t\tBlueRPSCell blcell = new BlueRPSCell();\n\t\tWhiteRPSCell wcell = new WhiteRPSCell();\n\n\t\tFishCell fCell = new FishCell();\n\t\tSharkCell sCell = new SharkCell();\n\n\t\tAntGroupCell aCell = new AntGroupCell();\n\n\t\tsegregation.put('b', bCell);\n\t\tsegregation.put('o', oCell);\n\t\tsegregation.put('e', eCell);\n\n\t\tgameOfLife.put('l', lCell);\n\t\tgameOfLife.put('d', dCell);\n\n\t\trps.put('g', gcell);\n\t\trps.put('r', rcell);\n\t\trps.put('b', blcell);\n\t\trps.put('w', wcell);\n\n\t\tspreadingWildfire.put('t', tCell);\n\t\tspreadingWildfire.put('b', bTCell);\n\t\tspreadingWildfire.put('e', eLCell);\n\n\t\twaTor.put('f', fCell);\n\t\twaTor.put('s', sCell);\n\t\twaTor.put('e', eCell);\n\n\t\tforagingAnts.put('a', aCell);\n\t\tforagingAnts.put('e', eCell);\n\t\tinitExportMap();\n\n\t\tinitCountMap();\n\t}", "public void setBoard(){\n \n\t m_Pieces[3][3]= WHITE_PIECE;\n m_Pieces[4][4]= WHITE_PIECE;\n m_Pieces[3][4]= BLACK_PIECE;\n m_Pieces[4][3]= BLACK_PIECE;\n for(int x=0;x<WIDTH;x++){\n for(int y=0;y<HEIGHT;y++){\n if(m_Pieces[x][y]==null){\n m_Pieces[x][y]=NONE_PIECE;\n }\n }\n }\n }", "private void findGrid(int x, int y) {\n\tgx = (int) Math.floor(x / gs);\n\tgy = (int) Math.floor(y / gs);\n\n\tif (debug){\n\tSystem.out.print(\"Actual: (\" + x + \",\" + y + \")\");\n\tSystem.out.println(\" Grid square: (\" + gx + \",\" + gy + \")\");\n\t}\n }", "private void mapContinents() {\n\t\tElevationMap elevs = mRegion.getElevationMap();\r\n\t\tif (elevs.w != w || elevs.h != h)\r\n\t\t\tthrow new RuntimeException(\"Elevation map and continent map are not the same size.\");\r\n\t\t\r\n\t\t// Create continent map\r\n\t\tthis.mContinents = new int[w][h];\r\n\t\t// Set points below sea level to 0, all else to 2\r\n\t\tfor (int x = 0; x < w; ++x) {\r\n\t\t\tfor (int y = 0; y < h; ++y) {\r\n\t\t\t\t// MUST CHANGE THIS; SEA LEVEL HARD CODED TO 5\r\n\t\t\t\tif (elevs.getElev(x, y) < 5) mContinents[x][y] = 0;\r\n\t\t\t\telse mContinents[x][y] = 2;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Previous step separated land and water; now we distinguish unique land masses\r\n\t\tfor (int x = 0; x < w; ++x) {\r\n\t\t\tfor (int y = 0; y < h; ++y) {\r\n\t\t\t\t// \r\n\t\t\t\tif (mContinents[x][y] == 0) continue;\r\n\t\t\t\telse if (mContinents[x][y] == 2) {\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}", "private static void mapCheck(){\n\t\tfor(int x = 0; x < Params.world_width; x = x + 1){\n\t\t\tfor(int y = 0; y < Params.world_height; y = y + 1){\n\t\t\t\tif(map[x][y] > 1){\n\t\t\t\t\t//System.out.println(\"Encounter Missing. Position: (\" + x + \",\" + y + \").\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public SpaceHulkWorldModel(TiledMap map, int players)\r\n/* 49: */ {\r\n/* 50: 49 */ super(map);\r\n/* 51: 50 */ this.mission = false;\r\n/* 52: 51 */ this.reachablePlaces = 0;\r\n/* 53: 52 */ this.highlight = new int[getWidthInTiles()][getHeightInTiles()];\r\n/* 54: 53 */ this.walkable = new boolean[getWidthInTiles()][getHeightInTiles()];\r\n/* 55: 54 */ this.blocked = new boolean[getWidthInTiles()][getHeightInTiles()];\r\n/* 56: 55 */ this.finish = new boolean[getWidthInTiles()][getHeightInTiles()];\r\n/* 57: 56 */ this.door = new boolean[getWidthInTiles()][getHeightInTiles()];\r\n/* 58: 57 */ this.rock = new boolean[getWidthInTiles()][getHeightInTiles()];\r\n/* 59: 58 */ this.fire = new boolean[getWidthInTiles()][getHeightInTiles()];\r\n/* 60: 59 */ this.grass = new boolean[getWidthInTiles()][getHeightInTiles()];\r\n/* 61: 60 */ this.sand = new boolean[getWidthInTiles()][getHeightInTiles()];\r\n/* 62: */ \r\n/* 63: 62 */ this.reach = new boolean[getWidthInTiles()][getHeightInTiles()];\r\n/* 64: 64 */ for (int x = 0; x < getWidthInTiles(); x++) {\r\n/* 65: 66 */ for (int y = 0; y < getHeightInTiles(); y++) {\r\n/* 66: 69 */ this.walkable[x][y] = checkTileProperty(x, y, \"walkable\", \"true\");\r\n/* 67: */ }\r\n/* 68: */ }\r\n/* 69: */ }", "private void positionMinimap(){\n\t\tif(debutX<0)//si mon debutX est negatif(ca veut dire que je suis sorti de mon terrain (ter))\n\t\t\tdebutX=0;\n\t\tif(debutX>ter.length)//si debutX est plus grand que la taille de mon terrain(ter).\n\t\t\tdebutX=ter.length-100;\n\t\tif(debutY<0)\n\t\t\tdebutY=0;\n\t\tif(debutY>ter.length)\n\t\t\tdebutY=ter.length-100;\n\t\tif(debutX+100>ter.length)\n\t\t\tdebutX=ter.length-100;\n\t\tif(debutY+100>ter.length)\n\t\t\tdebutY=ter.length-100;\n\t\t//cette fonction est appelee uniquement si le terrain est strictement Superieur a 100\n\t\t// Donc je sais que ma fin se situe 100 cases apres.\n\t\tfinX=debutX+100;\n\t\tfinY=debutY+100;\n\t}", "public void drawTextualMap(){\n\t\tfor(int i=0; i<grid.length; i++){\n\t\t\tfor(int j=0; j<grid[0].length; j++){\n\t\t\t\tif(grid[i][j] instanceof Room){\n\t\t\t\t\tif(((Room)grid[i][j]).getItems().size()>0)\n\t\t\t\t\t\tSystem.out.print(\" I \");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\" R \");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\" = \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\tSystem.out.println(\"rows = \"+grid.length+\" cols = \"+grid[0].length);\n\t\tSystem.out.println(\"I = Room has Item, R = Room has no Item, '=' = Is a Hallway\");\n\n\t}", "void setNeighbors(int x, int y, Map<Location, SurfaceEntity> map, SurfaceEntity[] fragments) {\r\n\t\tfragments[0] = map.get(Location.of(x - 1, y + 1));\r\n\t\tfragments[1] = map.get(Location.of(x, y + 1));\r\n\t\tfragments[2] = map.get(Location.of(x + 1, y + 1));\r\n\t\t\r\n\t\tfragments[3] = map.get(Location.of(x - 1, y));\r\n\t\tfragments[4] = map.get(Location.of(x, y));\r\n\t\tfragments[5] = map.get(Location.of(x + 1, y));\r\n\t\t\r\n\t\tfragments[6] = map.get(Location.of(x - 1, y - 1));\r\n\t\tfragments[7] = map.get(Location.of(x, y - 1));\r\n\t\tfragments[8] = map.get(Location.of(x + 1, y - 1));\r\n\t}", "private void multiply_shotmap(Node parent, int valueMove, int[] shotmap){\n\t\t//Account for shooting back at the starting position\n\t\tfor(int x = 0; x <= 9; x++){\n\t\t\tfor(int y = 0; y <= 9; y++){\n\t\t\t\tif(shotmap[y*GRID+x] >= 0){ // need 0 because orign point is 0*65536 = 0\n\t\t\t\t\tint move = (((shotmap[y*GRID+x]&0xffff) << 16) | valueMove);\n\t\t\t\t\tif(move != 0) {\n\t\t\t\t\t\tparent.addChild(new Node(move,parent));\n//\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void initializeMaps() {\n\t\t//can use any map\n\n\t\t//left map\n\t int x = 0, y = 0;\n\t int Lvalue;\n\t \n\t try {\n\t \t//***change to your local path for the map you want to test\n\t \tBufferedReader input = new BufferedReader(new FileReader(\"/Users/NeeCee/Classes/4444/MirrorUniverse/maps/g6maps/lessEasyLeft.txt\"));\n\t \tString line;\n\t \twhile((line = input.readLine()) != null) {\n\t \t\tString[] vals = line.split(\" \");\n\t \t\tfor(String str : vals) {\n\t \t\t\tLvalue = Integer.parseInt(str);\n\t \t\t\tleftMap[x][y] = Lvalue;\n\t \t\t\t++y;\n\t \t\t}\n\t \t\t\n\t \t\t++x;\n\t \t\ty = 0;\n\t \t}\n\t \t\n\t \tinput.close();\n\t } catch (IOException ioex) {\n\t \tSystem.out.println(\"error reading in map for testing\");\n\t }\n\t \n\t //right map\n\t x = 0;\n\t y = 0;\n\t int Rvalue;\n\t \n\t try {\n\t \t//***change to your local path for the map you want to test\n\t \t//change to map you want to test\n\t \tBufferedReader input = new BufferedReader(new FileReader(\"/Users/NeeCee/Classes/4444/MirrorUniverse/maps/g6maps/lessEasyRight.txt\"));\n\t \tString line;\n\t \twhile((line = input.readLine()) != null) {\n\t \t\tString[] vals = line.split(\" \");\n\t \t\tfor(String str : vals) {\n\t \t\t\tRvalue = Integer.parseInt(str);\n\t \t\t\trightMap[x][y] = Rvalue;\n\t \t\t\t++y;\n\t \t\t}\n\t \t\t++x;\n\t \t\ty = 0;\n\t \t}\n\t \t\n\t \tinput.close();\n\t } catch (IOException ioex) {\n\t \tSystem.out.println(\"error reading in map for testing\");\n\t }\n\t \n\t //print each map for testing\n\t for(int i = 0; i < leftMap.length; i++ )\n\t \tfor(int j = 0; j < leftMap[i].length; j++ )\n\t \t\tSystem.out.println(leftMap[i][j]);\n\t System.out.println(\"*-----------------*\");\n\t for(int i = 0; i < rightMap.length; i++ )\n\t \tfor(int j = 0; j < rightMap[i].length; j++ )\n\t \t\tSystem.out.println(rightMap[i][j]);\n\t}", "public static Bitmap CreateBitmapFromGridOfCells(TrafficCell[][] i_grid,int i_mode, boolean i_drawVehicles) {\n// The first index is the y coordinate measured from the top; the second\n// index is the x coordinate measured from the left.\nint t_height = i_grid.length;\nint t_width = 0;\nif (i_grid[0] != null)\nt_width = i_grid[0].length;\n\nBitmap.Config t_conf = Bitmap.Config.ARGB_8888;\nBitmap t_bitmap = Bitmap.createBitmap(t_width, t_height, t_conf);\n\n// this is a slow method\n// TODO: change this to setPixels or to copyPixelsFrom...\nfor (int i = 0; i < t_height; i++) {\nfor (int j = 0; j < t_width; j++) {\nt_bitmap.setPixel(j, i,\nCalulateColorFromTrafficCell(i_grid[i][j], i_mode,i_drawVehicles));\n}\n}\nreturn t_bitmap;\n}", "public static void updateGrid(int grid[][])\n {\n\n int tempGrid [][] = new int [10][10];\n for (int i =0; i<10;i++)\n {\n for (int j = 0; j<10;j++)\n {\n tempGrid[i][j] = grid[i][j];\n }\n }\n for (int i =1; i<9;i++)\n {\n for (int j = 1; j<9;j++)\n {\n //check neighbors\n int neighbors = grid[i-1][j-1]+grid[i-1][j]+grid[i-1][j+1]+grid[i][j-1]+grid[i][j+1]+grid[i+1][j-1]+grid[i+1][j]+grid[i+1][j+1];\n if (grid[i][j]==1 && ((neighbors>=4 || neighbors<=1))) // check rules\n {\n tempGrid[i][j] =0;\n }\n else if (grid[i][j]==0 && neighbors==3) //check rules\n {\n tempGrid[i][j] =1;\n }\n }\n }\n displayGrid(tempGrid); //display the grid\n for (int i =0; i<10;i++)\n {\n for (int j = 0; j<10;j++)\n {\n grid[i][j]=tempGrid[i][j]; //change the original grid\n }\n }\n \n }", "private void initialiseBoard() {\r\n\t\t//Set all squares to EMPTY\r\n\t\tfor(int x = 0; x < board.getWidth(); x++) {\r\n\t\t\tfor(int y = 0; y < board.getHeight(); y++) {\r\n\t\t\t\tboard.setSquare(new GridSquare(GridSquare.Type.EMPTY), x, y);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Assign player tiles\r\n\t\tsetFixedTile(new PlayerTile(GridSquare.Type.PLAYER_ONE_TILE), Board.PLAYER_ONE_POSITION_X, Board.PLAYER_ONE_POSITION_Y);\r\n\t\tsetFixedTile(new PlayerTile(GridSquare.Type.PLAYER_TWO_TILE), Board.PLAYER_TWO_POSITION_X, Board.PLAYER_TWO_POSITION_Y);\r\n\t\t\r\n\t\t//Assign Creation tiles\r\n\t\tsetFixedTile(new CreationTile(GridSquare.Type.CREATION_TILE), Board.PLAYER_ONE_POSITION_X+3, Board.PLAYER_ONE_POSITION_Y+3);\r\n\t\tsetFixedTile(new CreationTile(GridSquare.Type.CREATION_TILE), Board.PLAYER_TWO_POSITION_X-3, Board.PLAYER_TWO_POSITION_Y-3);\r\n\t\t\r\n\t\t//Assign Out of Bounds tiles\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X-3, Board.PLAYER_ONE_POSITION_Y);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X, Board.PLAYER_ONE_POSITION_Y-3);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X-3, Board.PLAYER_ONE_POSITION_Y-3);\r\n\t\t\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X+3, Board.PLAYER_TWO_POSITION_Y);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X, Board.PLAYER_TWO_POSITION_Y+3);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X+3, Board.PLAYER_TWO_POSITION_Y+3);\r\n\t\t\r\n\t\t\r\n\t}", "public void generate()\n {\n System.out.println(\"Initial allocated space for Set: Not supported\");\n// System.out.println(\"Initial allocated space for Set: \" + theMap.capacity());\n final long startTime = TimeUtils.nanoTime();\n Mnemonic m = new Mnemonic(123456789L);\n// GridPoint2 gp = new GridPoint2(0, 0);\n for (int x = -width; x < width; x++) {\n for (int y = -height; y < height; y++) {\n// for (int z = -height; z < height; z++) {\n\n// long z = (x & 0xFFFFFFFFL) << 32 | (y & 0xFFFFFFFFL);\n// z = ((z & 0x00000000ffff0000L) << 16) | ((z >>> 16) & 0x00000000ffff0000L) | (z & 0xffff00000000ffffL);\n// z = ((z & 0x0000ff000000ff00L) << 8 ) | ((z >>> 8 ) & 0x0000ff000000ff00L) | (z & 0xff0000ffff0000ffL);\n// z = ((z & 0x00f000f000f000f0L) << 4 ) | ((z >>> 4 ) & 0x00f000f000f000f0L) | (z & 0xf00ff00ff00ff00fL);\n// z = ((z & 0x0c0c0c0c0c0c0c0cL) << 2 ) | ((z >>> 2 ) & 0x0c0c0c0c0c0c0c0cL) | (z & 0xc3c3c3c3c3c3c3c3L);\n// z = ((z & 0x2222222222222222L) << 1 ) | ((z >>> 1 ) & 0x2222222222222222L) | (z & 0x9999999999999999L);\n// theMap.put(z, null); // uses 23312536 bytes of heap\n// long z = szudzik(x, y);\n// theMap.put(z, null); // uses 18331216 bytes of heap?\n// unSzudzik(pair, z);\n// theMap.put(0xC13FA9A902A6328FL * x ^ 0x91E10DA5C79E7B1DL * y, null); // uses 23312576 bytes of heap\n// theMap.put((x & 0xFFFFFFFFL) << 32 | (y & 0xFFFFFFFFL), null); // uses 28555456 bytes of heap\n theMap.add(new Vector2(x - width * 0.5f, y - height * 0.5f)); // crashes out of heap with 720 Vector2\n// gp.set(x, y);\n// theMap.add(gp.hashCode());\n// long r, s;\n// r = (x ^ 0xa0761d65L) * (y ^ 0x8ebc6af1L);\n// s = 0xa0761d65L * (z ^ 0x589965cdL);\n// r -= r >> 32;\n// s -= s >> 32;\n// r = ((r ^ s) + 0xeb44accbL) * 0xeb44acc8L;\n// theMap.add((int)(r - (r >> 32)));\n\n// theMap.add(m.toMnemonic(szudzik(x, y)));\n }\n }\n// }\n// final GridPoint2 gp = new GridPoint2(x, y);\n// final int gpHash = gp.hashCode(); // uses the updated GridPoint2 hashCode(), not the current GDX code\n// theMap.put(gp, gpHash | 0xFF000000); //value doesn't matter; this was supposed to test ObjectMap\n //theMap.put(gp, (53 * 53 + x + 53 * y) | 0xFF000000); //this is what the hashCodes would look like for the current code\n \n //final int gpHash = x * 0xC13F + y * 0x91E1; // updated hashCode()\n //// In the updated hashCode(), numbers are based on the plastic constant, which is\n //// like the golden ratio but with better properties for 2D spaces. These don't need to be prime.\n \n //final int gpHash = 53 * 53 + x + 53 * y; // equivalent to current hashCode()\n long taken = TimeUtils.timeSinceNanos(startTime);\n System.out.println(taken + \"ns taken, about 10 to the \" + Math.log10(taken) + \" power.\");\n// System.out.println(\"Post-assign allocated space for Set: \" + theMap.capacity());\n System.out.println(\"Post-assign allocated space for Set: Not supported\");\n }", "public void update()\n {\n // get the GridSquare object from the world\n Terrain terrain = game.getTerrain(row, column);\n boolean squareVisible = game.isVisible(row, column);\n boolean squareExplored = game.isExplored(row, column);\n \n \n Color color;\n ImageIcon image;\n \n switch ( terrain )\n {\n case SAND : image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/sand.jpg\")); break;\n case FOREST : image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grass.jpg\")); break;\n case WETLAND : image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/forest.jpg\")); break;\n case SCRUB : image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scrub.jpg\")); break;\n case WATER : image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/water.jpg\")); break;\n case BRICK : image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/brick.jpg\")); break;\n default : image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/gray.jpg\")); break; \n }\n \n if ( squareExplored || squareVisible )\n {\n // Set the text of the JLabel according to the occupant\n lblText.setText(game.getOccupantStringRepresentation(row,column));\n lblText.setHorizontalTextPosition((int) CENTER_ALIGNMENT);\n lblText.setVerticalTextPosition((int) CENTER_ALIGNMENT);\n \n setVisible(true);\n \n //Kiwifruit\n if( row == 6 && column == 2) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/brick2.jpg\"));\n }\n \n if( row == 0 && column == 7) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scrubk.jpg\"));\n }\n \n if( row == 7 && column == 0 || row == 7 && column == 7 || row == 6 && column == 6 || row == 8 && column == 3 || row == 9 && column == 3 || row == 9 && column == 4 || row == 9 && column == 6) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grassk.jpg\"));\n }\n \n if( row == 2 && column == 8) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scrubk.jpg\"));\n }\n //Trap\n if(\"T\".equals(game.getOccupantStringRepresentation(row, column))){\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/trap.jpg\"));\n lblText.setIcon(image);\n }\n //Food\n //if(game.getOccupantStringRepresentation(row, column) == \"apple\" ) {\n //image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scruba.jpg\"));\n //}\n if( row == 6 && column == 7) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scruba.jpg\"));\n if(game.getOccupantStringRepresentation(row, column) == \"\") {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scrub.jpg\"));\n }\n }\n \n if( row == 5 && column == 4) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grassm.jpg\"));\n if(game.getOccupantStringRepresentation(row, column) == \"\") {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grass.jpg\"));\n }\n }\n \n if( row == 2 && column == 4) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scrubs.jpg\"));\n if(game.getOccupantStringRepresentation(row, column) == \"\") {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scrub.jpg\"));\n }\n }\n \n if( row == 8 && column == 2) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grasso.jpg\"));\n if(game.getOccupantStringRepresentation(row, column) == \"\") {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grass.jpg\"));\n }\n }\n //Predator\n if( row == 2 && column == 6) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scrubr.jpg\"));\n if(game.getOccupantStringRepresentation(row, column) == \"\") {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scrub.jpg\"));\n }\n }\n \n if( row == 9 && column == 7 ||row == 5 && column == 2 ) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grassp.jpg\"));\n if(game.getOccupantStringRepresentation(row, column) == \"\") {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grass.jpg\"));\n }\n }\n \n if( row == 3 && column == 4 || row == 6 && column == 4 ) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grassr.jpg\"));\n if(game.getOccupantStringRepresentation(row, column) == \"\") {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grass.jpg\"));\n }\n }\n \n if( row == 4 && column == 1) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/waters.jpg\"));\n if(game.getOccupantStringRepresentation(row, column) == \"\") {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/water.jpg\"));\n }\n }\n //Mystical Creature\n if( row == 7 && column == 3) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/brickf.jpg\"));\n }\n \n if( row == 4 && column == 0) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/sandph.jpg\"));\n }\n \n if( row == 0 && column == 3) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/sandm.jpg\"));\n }\n \n if( row == 4 && column == 6 || row == 6 && column == 8) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scrubp.jpg\"));\n }\n \n if( row == 8 && column == 8) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grassd.jpg\"));\n }\n \n \n //Hazard\n if( squareExplored && row == 2 && column == 2) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grass2.jpg\"));\n lblText.setHorizontalAlignment((int) CENTER_ALIGNMENT);\n lblText.setVerticalAlignment((int) CENTER_ALIGNMENT);\n setVisible(true);\n }\n\n \n if( squareExplored && row == 3 && column == 5 || squareExplored && row == 7 && column == 4 || squareExplored && row == 6 && column == 5 || squareExplored && row == 7 && column == 6) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grass2.jpg\"));\n lblText.setHorizontalAlignment((int) CENTER_ALIGNMENT);\n lblText.setVerticalAlignment((int) CENTER_ALIGNMENT);\n setVisible(true);\n }\n \n if( squareExplored && row == 1 && column == 4) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grass2.jpg\"));\n lblText.setHorizontalAlignment((int) CENTER_ALIGNMENT);\n lblText.setVerticalAlignment((int) CENTER_ALIGNMENT);\n setVisible(true);\n }\n \n if( squareExplored && row == 5 && column == 0) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grass2.jpg\"));\n lblText.setHorizontalAlignment((int) CENTER_ALIGNMENT);\n lblText.setVerticalAlignment((int) CENTER_ALIGNMENT);\n setVisible(true);\n }\n \n if ( squareVisible && !squareExplored ) \n {\n\n }\n lblText.setIcon(image);\n \n // set border colour according to \n // whether the player is in the grid square or not\n setBorder(game.hasPlayer(row,column) ? activeBorder : normalBorder);\n }\n else\n {\n lblText.setText(\"\");\n lblText.setIcon(null);\n setBorder(normalBorder);\n }\n }", "Map<BoardCellCoordinates, Set<Integer>> getWinningCoordinates();", "public void buildMap() {\n // CUBES ENGINE INITIALIZATION MOVED TO APPSTATE METHOD\n // Here we init cubes engine\n CubesTestAssets.registerBlocks();\n CubesSettings blockSettings = CubesTestAssets.getSettings(this.app);\n blockSettings.setBlockSize(5);\n //When blockSize = 5, global coords should be multiplied by 3 \n this.blockScale = 3.0f;\n this.halfBlockStep = 0.5f;\n \n testTerrain = new BlockTerrainControl(CubesTestAssets.getSettings(this.app), new Vector3Int(4, 1, 4));\n testNode = new Node();\n int wallHeight = 3;\n //testTerrain.setBlockArea(new Vector3Int(0, 0, 0), new Vector3Int(32, 1, 64), CubesTestAssets.BLOCK_STONE);\n this.testTerrain.setBlockArea( new Vector3Int(3,0,43), new Vector3Int(10,1,10), CubesTestAssets.BLOCK_STONE); // Zone 1 Floor\n this.testTerrain.setBlockArea( new Vector3Int(3,1,43), new Vector3Int(10,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // South Wall\n this.testTerrain.setBlockArea( new Vector3Int(3,1,52), new Vector3Int(10,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // North Wall\n this.testTerrain.setBlockArea( new Vector3Int(3,1,43), new Vector3Int(1,wallHeight,10), CubesTestAssets.BLOCK_WOOD); // West Wall\n this.testTerrain.setBlockArea( new Vector3Int(12,1,43), new Vector3Int(1,wallHeight,10), CubesTestAssets.BLOCK_WOOD); // East Wall\n \n this.testTerrain.removeBlockArea( new Vector3Int(12,1,46), new Vector3Int(1,wallHeight,4)); // Door A\n \n this.testTerrain.setBlockArea( new Vector3Int(12,0,45), new Vector3Int(13,1,6), CubesTestAssets.BLOCK_STONE); // Zone 2 Floor A\n this.testTerrain.setBlockArea( new Vector3Int(12,1,45), new Vector3Int(8,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // South Wall\n this.testTerrain.setBlockArea( new Vector3Int(12,1,50), new Vector3Int(13,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // North Wall\n this.testTerrain.setBlockArea(new Vector3Int(19,0,42), new Vector3Int(6,1,3), CubesTestAssets.BLOCK_STONE); // Zone 2 Floor B\n this.testTerrain.setBlockArea( new Vector3Int(19,1,42), new Vector3Int(1,wallHeight,3), CubesTestAssets.BLOCK_WOOD); //\n this.testTerrain.setBlockArea( new Vector3Int(24,1,42), new Vector3Int(1,wallHeight,9), CubesTestAssets.BLOCK_WOOD); //\n \n this.testTerrain.setBlockArea( new Vector3Int(15,0,26), new Vector3Int(18,1,17), CubesTestAssets.BLOCK_STONE); // Zone 3 Floor\n this.testTerrain.setBlockArea( new Vector3Int(15,1,42), new Vector3Int(18,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // South Wall\n this.testTerrain.setBlockArea( new Vector3Int(15,1,26), new Vector3Int(18,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // North Wall\n this.testTerrain.setBlockArea( new Vector3Int(15,1,26), new Vector3Int(1,wallHeight,17), CubesTestAssets.BLOCK_WOOD); // West Wall\n this.testTerrain.setBlockArea( new Vector3Int(32,1,26), new Vector3Int(1,wallHeight,17), CubesTestAssets.BLOCK_WOOD); // East Wall\n \n this.testTerrain.removeBlockArea( new Vector3Int(20,1,42), new Vector3Int(4,wallHeight,1)); // Door B\n this.testTerrain.removeBlockArea( new Vector3Int(15,1,27), new Vector3Int(1,wallHeight,6)); // Door C\n \n this.testTerrain.setBlockArea( new Vector3Int(10,0,26), new Vector3Int(5,1,8), CubesTestAssets.BLOCK_STONE); // Zone 4 Floor A\n this.testTerrain.setBlockArea( new Vector3Int(10,1,26), new Vector3Int(5,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // South Wall\n this.testTerrain.setBlockArea( new Vector3Int(3,0,18), new Vector3Int(8,1,16), CubesTestAssets.BLOCK_STONE); // Zone 4 Floor B\n this.testTerrain.setBlockArea( new Vector3Int(3,1,18), new Vector3Int(1,wallHeight,16), CubesTestAssets.BLOCK_WOOD); // East Wall\n this.testTerrain.setBlockArea( new Vector3Int(10,1,18), new Vector3Int(1,wallHeight,9), CubesTestAssets.BLOCK_WOOD); // West Wall\n this.testTerrain.setBlockArea( new Vector3Int(3,1,33), new Vector3Int(13,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // North Wall\n \n this.testTerrain.setBlockArea( new Vector3Int(1,0,5), new Vector3Int(26,1,14), CubesTestAssets.BLOCK_STONE); // Zone 5\n this.testTerrain.setBlockArea( new Vector3Int(1,1,18), new Vector3Int(26,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // South Wall\n this.testTerrain.setBlockArea( new Vector3Int(1,1,5), new Vector3Int(26,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // North Wall\n this.testTerrain.setBlockArea( new Vector3Int(1,1,5), new Vector3Int(1,wallHeight,14), CubesTestAssets.BLOCK_WOOD); // West Wall\n this.testTerrain.setBlockArea( new Vector3Int(26,1,5), new Vector3Int(1,wallHeight,14), CubesTestAssets.BLOCK_WOOD); // East Wall\n \n this.testTerrain.removeBlockArea( new Vector3Int(4,1,18), new Vector3Int(6,wallHeight,1)); // Door E\n \n // Populate the world with spawn points\n this.initSpawnPoints();\n \n //Add voxel world/map to collisions\n testTerrain.addChunkListener(new BlockChunkListener(){\n @Override\n public void onSpatialUpdated(BlockChunkControl blockChunk){\n Geometry optimizedGeometry = blockChunk.getOptimizedGeometry_Opaque();\n phyTerrain = optimizedGeometry.getControl(RigidBodyControl.class);\n if(phyTerrain == null){\n phyTerrain = new RigidBodyControl(0);\n optimizedGeometry.addControl(phyTerrain);\n bulletAppState.getPhysicsSpace().add(phyTerrain);\n }\n phyTerrain.setCollisionShape(new MeshCollisionShape(optimizedGeometry.getMesh()));\n }\n });\n \n testNode.addControl(testTerrain);\n rootNode.attachChild(testNode);\n }", "private void addWater() {\n for (int i = 0; i < MAP_LENGTH; i++) {\n for (int j = 0; j < MAP_LENGTH; j++) {\n if (tileMap[i][j] == null) {\n tileMap[i][j] = new Space(new Water(i, j));\n }\n }\n }\n }", "public MapPath(int w, int h)\n\t{\n\t\t//Dependant on constants outlined above, divide screen up\n\t\tPIXEL_WIDTH = w/LAND_X_COUNT;\n\t\tPIXEL_HEIGHT = h/LAND_Y_COUNT;\n\t\tpathCo = new int[LAND_X_COUNT][LAND_Y_COUNT];\n\t\t\n\t\tfor (int x = 0; x < LAND_X_COUNT; x++) { //initialise screen to 0 (free to put towers anywhere at this point)\n\t\t\tfor (int y = 0; y < LAND_Y_COUNT; y++) {\n\t\t\t\tpathCo[x][y] = 0;\n\t\t\t}\n\t\t}\n\t}", "public void SpiritBomb()\r\n {\r\n\r\n\t \r\n\t\tLocation loc = new Location(userRow+1, userCol);\r\n\t\tLocation loc1 = new Location(userRow+1, userCol1);\r\n\t\tLocation loc2 = new Location(userRow+1, userCol2);\r\n\t\tLocation loc3 = new Location(userRow+1, userCol3);\r\n\t\t\r\n\t\tLocation loc4 = new Location(userRow, userCol);\r\n\t\tLocation loc5 = new Location(userRow, userCol1);\r\n\t\tLocation loc6 = new Location(userRow, userCol2);\r\n\t\tLocation loc7 = new Location(userRow, userCol3);\r\n\t\t\r\n\t\tLocation loc8 = new Location(userRow-1, userCol);\r\n\t\tLocation loc9 = new Location(userRow-1, userCol1);\r\n\t\tLocation loc10 = new Location(userRow-1, userCol2);\r\n\t\tLocation loc11 = new Location(userRow-1, userCol3);\r\n\t\t\r\n\t\tLocation loc12 = new Location(userRow-2, userCol);\r\n\t\tLocation loc13= new Location(userRow-2, userCol1);\r\n\t\tLocation loc14 = new Location(userRow-2, userCol2);\r\n\t\tLocation loc15 = new Location(userRow-2, userCol3);\r\n\r\n\t \r\n\r\n\r\n\r\n\t\t\r\n\t\tLocation base1 = new Location(userRow,0);\r\n\t\t\r\n\t\t\tgrid.setImage(base1, \"FSpiritHold.png\");\r\n\t\t\t\r\n\t\tfor(int a = 0; a<9; a++) {\r\n\t\tif(userCol>0 && userCol3 !=15 && userCol2!=15 && userCol1!=15 && userCol!=15 && userRow>0)\r\n\t\t{\r\n\t\r\n\t\t\t Location next101 = new Location(userRow+1,userCol);\r\n\t\t\t Location next102 = new Location(userRow+1,userCol1);\r\n\t\t\t Location next103 = new Location(userRow+1,userCol2);\r\n\t\t\t Location next104 = new Location(userRow+1,userCol3);\r\n\r\n\t\t\t\tLocation next201 = new Location(userRow,userCol);\r\n\t\t\t\tLocation next202 = new Location(userRow,userCol1);\r\n\t\t\t\tLocation next203 = new Location(userRow,userCol2);\r\n\t\t\t\tLocation next204 = new Location(userRow,userCol3);\r\n\t\t\t\t\r\n\t\t\t\tLocation next301 = new Location(userRow-1,userCol);\r\n\t\t\t\tLocation next302 = new Location(userRow-1,userCol1);\r\n\t\t\t\tLocation next303 = new Location(userRow-1,userCol2);\r\n\t\t\t\tLocation next304 = new Location(userRow-1,userCol3);\r\n\t\t\t\t\r\n\t\t\t Location next401 = new Location(userRow-2,userCol);\r\n\t\t\t Location next402 = new Location(userRow-2,userCol1);\r\n\t\t\t Location next403 = new Location(userRow-2,userCol2);\r\n\t\t\t Location next404 = new Location(userRow-2,userCol3);\r\n\t\t\t userCol+=1;\r\n\t\t\t userCol1+=1;\r\n\t\t\t\tuserCol2+=1;\r\n\t\t\t\tuserCol3+=1;\r\n\t\t\t grid.setImage(next101, \"SB401.png\");\r\n\t\t\t grid.setImage(loc1, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next102, \"SB402.png\");\r\n\t\t\t grid.setImage(loc2, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next103, \"SB403.png\");\r\n\t\t\t grid.setImage(loc2, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next104, \"SB404.png\");\r\n\t\t\t grid.setImage(loc3, null);\r\n\r\n\t\t\t\t\r\n\t\t\t\tgrid.setImage(next201, \"SB301.png\");\r\n\t\t\t grid.setImage(loc4, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next202, \"SB302.png\");\r\n\t\t\t grid.setImage(loc5, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next203, \"SB303.png\");\r\n\t\t\t grid.setImage(loc6, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next204, \"SB304.png\");\r\n\t\t\t grid.setImage(loc7, null);\r\n\r\n\t\t\t\t\r\n\t\t\t\tgrid.setImage(next301, \"SB201.png\");\r\n\t\t\t grid.setImage(loc8, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next302, \"SB202.png\");\r\n\t\t\t grid.setImage(loc9, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next303, \"SB203.png\");\r\n\t\t\t grid.setImage(loc10, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next304, \"SB204.png\");\r\n\t\t\t grid.setImage(loc11, null);\r\n\r\n\t\t\t\t\r\n\t\t\t\tgrid.setImage(next401, \"SB101.png\");\r\n\t\t\t grid.setImage(loc12, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next402, \"SB102.png\");\r\n\t\t\t grid.setImage(loc13, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next403, \"SB103.png\");\r\n\t\t\t grid.setImage(loc14, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next404, \"SB104.png\");\r\n\t\t\t grid.setImage(loc15, null);\r\n\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t \r\n\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n }\r\n }", "public void getTile_B8();", "public void setTile(int x, int y) {\n/* 748 */ this.e.setTile(x, y);\n/* 749 */ this.k = getTileIdx();\n/* */ \n/* */ \n/* 752 */ String str = (String)this.f.f(this.k);\n/* 753 */ if (str.equals(\"none\")) {\n/* 754 */ this.h = 0;\n/* */ }\n/* 756 */ else if (str.equals(\"rct\")) {\n/* 757 */ this.h = 1;\n/* 758 */ c();\n/* */ }\n/* 760 */ else if (str.equals(\"ict\")) {\n/* 761 */ this.h = 2;\n/* 762 */ d();\n/* */ } else {\n/* */ \n/* 765 */ throw new IllegalArgumentException(\"Component transformation not recognized\");\n/* */ } \n/* */ }", "private void aretes_aW(){\n\t\tthis.cube[4] = this.cube[16]; \n\t\tthis.cube[16] = this.cube[23];\n\t\tthis.cube[23] = this.cube[37];\n\t\tthis.cube[37] = this.cube[30];\n\t\tthis.cube[30] = this.cube[4];\n\t}", "public abstract void createEmptyMap(Game game, boolean[][] landMap);", "public abstract void createEmptyMap(Game game, boolean[][] landMap);", "@Test\n\tvoid testToPixel() {\n\t\t\n\t\t// read the image map of ariel \n\t\tBufferedImage map = null;\n\t\ttry {\n\t\t\tmap = ImageIO.read(new File(\"Ariel1.png\"));\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tMap m= new Map(map,Width,Height,start,end);\n\n\n\t\tPoint3D ans1 =m.toPixel(start);\n\t\tassertTrue(ans1.equals(pixelStart));\n\n\t\tPoint3D ans2 =m.toPixel(end);\n\t\tassertTrue(ans2.equals(pixelEnd));\n\n\n\t\tPoint3D ans3 = m.toPixel(p);\n\t\tassertTrue(ans3.equals(p1));\n\n\t}", "public void adjustUp() {\n\n for (int y = 0; y < MAP_HEIGHT; y++)\n for (int x = 0; x < MAP_WIDTH; x++) {\n tiles[x][y].y = tiles[x][y].y - 4;\n backGroundTiles[x][y].y = backGroundTiles[x][y].y - 4;\n grassTiles[x][y].y = grassTiles[x][y].y - 4;\n }\n }", "public void initializeGameboard() {\r\n\t\t\r\n\t\t for (int row=0 ; row<gameBoard.length; row++)\r\n\t\t { \r\n\t\t \t \r\n\t\t \t for(int column=0;column<gameBoard[row].length;column++ )\t \r\n\t\t \t { \r\n\t\t \t\t if( row==0|| row ==1)\r\n\t\t \t\t { \r\n\t\t \t\t\t if (column==0) {gameBoard[row][column]=\"2\";}\r\n\t\t \t\t\t else if (column==1) {gameBoard[row][column]=\"3\";}\t \r\n\t\t \t\t\t else if (column==2) {gameBoard[row][column]=\"4\";} \r\n\t\t \t\t\t else if (column==3) {gameBoard[row][column]=\"5\";} \r\n\t\t \t\t\t else if (column==4) {gameBoard[row][column]=\"6\";} \r\n\t\t \t\t\t else if (column==5) {gameBoard[row][column]=\"7\";}\r\n\t\t \t\t\t else if (column==6) {gameBoard[row][column]=\"8\";} \r\n\t\t \t\t\t else if (column==7) {gameBoard[row][column]=\"9\";}\r\n\t\t \t\t\t else if (column==8) {gameBoard[row][column]=\"10\";} \r\n\t\t \t\t\t else if (column==9) {gameBoard[row][column]=\"11\";} \r\n\t\t \t\t\t else if (column==10) {gameBoard[row][column]=\"12\";} \r\n\t\t \t\t }\r\n\t\t \t\t \r\n\t\t\t \t else if(row ==2 || row==3) \r\n\t\t\t \t {\r\n\t\t\t \t\t if (column==0) {gameBoard[row][column]=\"12\";}\r\n\t\t \t\t\t else if (column==1) {gameBoard[row][column]=\"11\";}\t \r\n\t\t \t\t\t else if (column==2) {gameBoard[row][column]=\"10\";} \r\n\t\t \t\t\t else if (column==3) {gameBoard[row][column]=\"9\";} \r\n\t\t \t\t\t else if (column==4) {gameBoard[row][column]=\"8\";} \r\n\t\t \t\t\t else if (column==5) {gameBoard[row][column]=\"7\";}\r\n\t\t \t\t\t else if (column==6) {gameBoard[row][column]=\"6\";} \r\n\t\t \t\t\t else if (column==7) {gameBoard[row][column]=\"5\";}\r\n\t\t \t\t\t else if (column==8) {gameBoard[row][column]=\"4\";} \r\n\t\t \t\t\t else if (column==9) {gameBoard[row][column]=\"3\";} \r\n\t\t \t\t\t else if (column==10) {gameBoard[row][column]=\"2\";} \r\n\t\t\t \t }\r\n\t\t }\r\n\t\t }\r\n\t }", "public void setObjectives(TiledMap map)\r\n/* 72: */ {\r\n/* 73: 80 */ this.mission = true;\r\n/* 74: 81 */ for (int x = 0; x < getWidthInTiles(); x++) {\r\n/* 75: 83 */ for (int y = 0; y < getHeightInTiles(); y++)\r\n/* 76: */ {\r\n/* 77: 85 */ this.reach[x][y] = checkTileProperty(x, y, \"reach\", \"true\");\r\n/* 78: 86 */ if (this.reach[x][y] != 0) {\r\n/* 79: 88 */ this.reachablePlaces += 1;\r\n/* 80: */ }\r\n/* 81: 90 */ this.fire[x][y] = checkTileProperty(x, y, \"fire\", \"true\");\r\n/* 82: 91 */ if (this.fire[x][y] != 0) {\r\n/* 83: 93 */ this.burnPlaces += 1;\r\n/* 84: */ }\r\n/* 85: */ }\r\n/* 86: */ }\r\n/* 87: */ }", "interface WorldmapBuffer2 {\n final static byte[] image2 = {\n -125, 47, -3, 77, 51, 29, -45, -103, -120, 119, 76, -122, -82, -22, -106, 61, 113, 4, -59, 124, -116, 59, 115, -26, -44,\n 56, -115, 34, 106, -124, 98, 83, -115, 70, 9, -67, -116, 99, 92, -127, 89, -23, -68, -11, -41, 72, -15, -68, -48, 4,\n 29, 85, -30, 4, -79, -56, -20, 126, 69, 119, -119, -115, -116, 60, -37, -53, -107, 68, 90, -45, 79, -99, 108, 109, 45,\n 84, -65, -93, -44, -79, -23, -40, 23, -40, -48, 98, -92, -50, 125, -104, -52, -58, 50, -97, -119, 13, -78, -81, 82, -86,\n 15, -71, -92, 77, -115, -48, 48, 77, -88, 6, 61, 104, -117, -51, 103, -90, 5, -71, -52, 42, 76, -68, 113, 79, -7,\n 43, -42, -84, 38, -56, -100, 93, -44, 34, 71, -113, 100, -116, 64, 42, 88, -40, 94, 93, -83, -118, -115, 99, -32, -27,\n 72, -26, 43, -104, 35, 7, 37, 101, 12, -66, 107, -104, -128, -106, -116, 54, -93, -83, -119, -50, 23, -47, -117, 39, 89,\n 6, -9, 41, 47, 10, -37, -124, -2, 115, -40, -55, -67, -37, -118, -118, 92, 108, 24, -41, 35, -43, -61, 45, 44, 118,\n 87, 92, 70, -14, 108, -37, -22, -106, -41, -127, 124, -92, -70, -99, -42, 22, -38, 106, 43, -8, -84, -97, -99, -39, -48,\n -6, -62, 78, -10, -98, -38, 109, -98, -23, -87, -45, 112, -67, 73, 42, 21, 99, -25, 109, -40, -21, 10, 120, -88, -110,\n -99, 105, -37, -97, 68, -70, -112, 15, 54, -99, 111, 77, 37, 108, 52, -33, 113, 93, 59, -33, 56, -78, 124, -85, 42,\n 107, -3, -54, -94, 29, -37, 97, -53, -54, -24, 8, -113, -18, 45, 108, 61, 122, -124, 19, 102, 118, -65, -14, -31, 32,\n 30, -30, -8, 35, -40, 102, -106, -109, -33, -115, -58, -27, 38, -37, 43, 88, 106, -11, -104, -51, -16, 11, -39, 116, 24,\n -123, -48, -6, 107, 73, -39, -31, -107, 109, -98, 85, -36, 39, 115, 61, -37, -33, 53, -61, -49, 103, -119, -73, 84, -35,\n -64, -6, 97, -72, -85, -98, -94, 58, -33, 127, 77, -34, 96, 90, -127, 58, -22, -118, -61, -83, 58, 96, 59, 95, 27,\n 11, -29, -123, 76, 79, -108, 11, -48, -35, -100, -40, 82, 4, 97, 57, -18, -36, -63, -94, -28, -105, -87, -76, -57, -84,\n 122, -13, -40, -60, -37, -6, -28, -105, -42, -34, -105, 76, 61, 59, -2, -27, -103, -125, -76, 111, 39, -39, 118, -88, -119,\n 56, 43, 116, 50, 22, -87, 44, 43, -91, 63, -21, -51, -2, -14, -26, -38, -76, 36, -26, -52, -122, -26, 100, -61, -75,\n -108, 7, 24, -24, 92, -37, -28, -116, -51, 52, 126, -33, -103, -102, 114, -27, 77, -24, -124, 87, 68, -13, -119, -28, 99,\n -71, -33, 25, 88, -49, 120, 41, -24, -125, -82, -62, 102, -25, -49, -119, 25, -82, 111, 38, 63, -52, 76, 26, 81, 71,\n 118, -115, 39, 125, -58, -94, -26, 29, -109, -25, -4, -92, -80, 43, -42, -83, -108, -66, -86, -65, 43, -25, 19, 70, -23,\n -80, -68, -54, -72, -3, -43, 32, -117, -93, 102, -93, 27, -29, -77, 56, -70, -38, -34, 27, -67, -94, 52, -75, -119, -73,\n -5, -45, 58, 120, -48, 107, 125, -112, 109, -84, -25, 40, 78, -21, -8, 69, -27, -117, -36, 108, 57, 93, -114, 52, 120,\n -32, 100, 68, -48, -51, 65, -35, -42, 78, 82, 58, -88, 96, -121, 126, -39, 104, 34, -123, -6, 9, 66, -35, 40, 107,\n 66, -120, -65, 127, -125, -19, -75, 6, 122, -30, -21, -74, 42, 126, -121, 2, 3, -19, 22, 20, 53, 85, 89, 61, -21,\n -25, -95, 94, 18, -18, -35, 70, -101, 33, 10, -80, 18, 35, 94, 99, -98, -18, 40, -66, 87, 54, -18, -23, -36, 107,\n -24, 8, 47, -28, -113, -61, -87, -20, -98, -19, -71, 45, -35, -128, -82, -80, -23, -121, -38, 99, -117, -70, 7, 104, -20,\n 52, 122, -18, 76, -115, -40, 36, -6, -16, 88, -59, -72, 127, -58, -111, 59, 126, -2, 82, -17, -68, -49, -18, -63, -118,\n 111, -109, -33, 120, -118, -50, -52, 52, -29, -121, -2, -62, 126, 26, -124, -46, -18, -112, -115, 92, -65, 117, 125, -16, -74,\n 74, 90, -9, 27, -61, 0, 111, 110, 2, -72, -125, -102, 30, 22, 42, -33, 115, 23, -6, -24, 124, -102, -57, -16, 78,\n -62, 76, -119, 91, -48, -87, -65, -71, 126, -118, -123, -89, -18, -31, -92, -13, -95, -68, -35, -63, -100, 55, 88, -68, -47,\n -69, 55, -12, 99, 33, -16, -34, -22, -63, 66, 78, -11, -93, 78, 66, 17, 12, -75, -115, 6, -109, 34, 9, 114, -108,\n -72, -103, 8, -76, 112, 58, 126, -16, -74, -34, 102, 29, -56, -64, 88, 103, 123, -91, 100, 55, 61, -55, -50, 59, -33,\n -22, 90, 55, -90, -106, -3, -20, -79, -35, 53, -112, -2, -47, 49, -114, -23, 30, 95, -16, 25, 70, -17, 75, 53, -9,\n -38, 73, 109, 53, 38, -10, 106, -102, 55, -17, -31, 76, -26, -6, -128, -110, -1, -44, 25, 7, -56, 86, -56, -9, -6,\n 9, -10, -57, -66, -20, 5, 125, -8, 106, -83, -8, -1, -89, -13, -114, 31, -97, -88, -120, 75, -21, 42, -22, -19, -111,\n 101, -117, 107, -30, -71, 121, -11, -99, 23, 88, -68, -8, -88, -85, 25, -128, 72, 47, -95, -122, -125, -87, 50, -82, 50,\n -14, -34, -92, 112, 102, -29, -87, -113, -106, -64, -18, 108, 26, 107, 32, 69, -37, 120, 10, -113, 118, -20, -2, 38, -46,\n 93, -116, -63, 23, 126, -19, 25, -55, -113, -95, -99, 121, -55, 106, -122, 29, 72, -32, 117, 103, -106, 86, -52, 104, -37,\n 15, -14, -122, -27, -33, 77, 79, 96, 4, 27, 34, -87, -6, 69, -69, -69, -93, 113, 3, -49, 69, -75, 56, 101, 106,\n 78, 57, 62, -15, -16, 92, -8, -63, -114, -48, -59, -82, 95, 52, 116, 108, 104, 11, -69, 78, 6, 16, 1, 4, 14,\n 36, 88, -48, -32, 65, -124, 9, 21, 46, 100, 56, 80, 0, 0, 1, 7, 35, 10, -96, 8, 49, 98, -61, -126, 15,\n 1, 108, -28, -40, -47, -29, 71, -112, 33, 69, -114, 36, 89, -46, -28, 73, -108, 41, 47, 98, 76, -88, 113, 100, -59,\n -115, 43, 9, -62, -20, 72, 49, -128, 77, -121, 11, 93, -106, -92, 72, 83, -92, -52, -101, 61, 29, -6, -12, -120, 51,\n -88, -48, -116, 10, -127, 74, 100, 57, 115, 105, 83, -88, 45, -97, 10, -20, 57, 53, 42, 84, -93, 59, 85, 62, 20,\n -86, 53, -27, 87, -80, 97, -59, -114, 37, 91, -42, 108, 88, -85, 87, -43, -82, 101, -120, 52, -93, 70, -93, 87, -67,\n -98, -91, 91, -41, -82, -39, -86, 108, -25, 22, -35, 25, 119, -24, -57, -117, 50, -105, 86, 37, 10, 56, 110, -31, -102,\n 84, -111, 30, -2, -23, 23, -95, 85, -57, 65, 115, 98, -115, -52, 118, 109, 86, -73, -106, -43, 10, 30, -37, -109, 35,\n -30, -69, -2, -95, 69, -113, 38, 93, 58, 100, 90, -51, -87, 85, 27, -52, -85, 23, -76, 105, -40, -79, -47, 14, 69,\n -51, 122, 47, 95, -61, -84, 1, 83, 117, 74, -8, -90, 83, -117, 46, 43, 7, -83, 73, 24, -13, -17, -103, -89, 99,\n 54, -100, -24, -72, -7, 98, -29, -61, 21, -41, 94, -51, 50, 115, 117, -21, -103, 111, -13, -12, 44, -37, -5, 119, -16,\n -31, 65, 82, -57, 94, -34, -68, -50, -18, -30, -43, -81, 79, 60, 25, -29, -21, -94, 55, 79, -21, 110, -1, -5, -16,\n 68, -38, -48, -87, -73, 126, 59, 84, -30, 120, -72, -104, -29, -115, 53, -34, -116, -21, -17, 49, -14, -50, 83, -80, 41,\n -56, -2, -21, 108, 34, -10, 34, -108, 112, 66, -80, 18, 92, -16, -62, -43, -46, -93, 112, 67, -39, 4, -77, 78, 37,\n -86, 78, 3, -118, -90, -107, 112, 10, 44, -90, -86, -118, -77, -112, -71, 18, 31, -37, 77, -70, -57, -108, -102, 46, 58,\n 4, 49, -76, -47, -75, -89, 42, -37, -114, 39, -30, 56, -12, -15, 71, 9, 87, -68, 113, 72, -84, -128, 52, 114, 52,\n 15, -33, -5, -22, -60, -58, 104, 91, 14, 57, -59, -28, -5, -52, 64, 5, 3, 67, 48, -66, -53, 90, -126, 18, 61,\n 24, -119, -12, 50, -71, 39, -35, 123, -85, -84, 18, -113, 52, -13, 76, -46, -124, -4, 114, 77, 7, -47, 116, -77, -77,\n -103, 62, 4, 81, -54, -105, 66, -2, -124, 9, 63, -121, 32, -30, 107, -56, -25, -24, -29, 75, -51, 40, 9, -108, -18,\n 58, 54, 11, 5, 46, -52, -93, 108, -61, 11, -52, 55, 27, 117, 116, 73, 67, 35, 109, -53, -90, 29, 31, -75, 52,\n -52, 4, 43, 125, -47, 36, 38, -21, -53, 19, 75, 27, -97, -93, -76, 83, 80, 47, 27, 49, 63, 26, 37, 85, -107,\n -50, 39, 73, 100, -108, -52, 87, 47, -107, 117, 86, 64, 87, 93, -112, 43, -8, 102, -75, -76, 69, 37, -105, -52, -75,\n -43, -15, 14, 45, -11, -42, 1, 41, 101, 117, 79, -53, -4, 66, -83, 86, 91, 85, 35, -86, -71, 97, 53, -27, 49,\n 68, 93, -85, -107, -107, -39, 102, -85, -85, 8, 66, 107, -83, 53, -111, 65, -76, 78, -30, 118, -73, -93, -126, -67, 49,\n 48, -63, -74, -61, -42, 63, 49, 109, 91, 55, -37, -88, -26, 42, 108, -80, -77, -54, -20, -10, -34, 55, -33, -123, 87,\n -77, -82, -16, -11, 118, 75, -99, 68, 51, -18, 37, 19, -5, -22, -46, -39, -106, -22, -20, 109, -77, 1, -37, 117, 120,\n -33, 42, 81, 26, 76, -38, -97, 62, -11, -9, -30, 35, -7, -125, -40, 75, 13, 49, -34, 21, -32, -124, -21, -30, -17,\n -41, -32, -114, -123, -24, 92, -91, 42, 30, 89, -56, -26, -100, -118, 113, -29, 80, -59, 45, -40, 100, 72, -87, -11, -8,\n 102, 31, -11, -123, -103, 50, -118, 113, -34, -48, 74, -26, -2, 66, 51, -111, 83, 81, -55, 13, 85, 42, 17, -91, 34,\n 15, -49, -55, -46, -43, 121, -25, -128, -125, 123, -115, -79, 37, 17, -19, -39, 103, -84, -45, -124, -102, -29, -85, -77, -114,\n -80, -27, -74, -46, 36, -103, -44, -8, 8, -115, 55, 58, -115, 37, -14, -86, 54, -77, 103, 76, 21, 74, -96, -73, -66,\n 80, -39, -67, 56, -37, 74, 89, -81, -13, 86, -17, 105, -71, 83, -42, -37, -51, 59, -89, -22, -72, 49, -76, 83, 28,\n 79, 102, -102, -91, 62, 85, 109, -76, -109, 114, 92, 41, -31, 14, -114, 44, -45, -103, -5, 38, 114, -22, -116, 36, 6,\n 57, -15, -65, 59, 23, -38, 114, 12, -69, -10, -4, 107, 116, 65, 43, -4, 101, -50, 125, 37, -102, -72, -126, -17, -44,\n -119, 41, 22, 87, 84, -106, 103, 116, 65, -97, 123, -57, 17, 53, 119, 113, 116, -34, -111, -76, -3, -68, -63, 123, -49,\n -8, -74, -74, -75, -76, -7, 59, -83, -26, 125, 29, 118, -32, -29, -52, -82, 70, -105, 127, -41, 107, -38, -52, -87, -9,\n 83, 120, -20, -21, -107, 30, -8, -20, -49, 36, 12, 89, -84, 98, 37, 51, 120, -18, -124, 91, -98, -7, -14, -66, 101,\n 16, 61, -55, 54, -33, 62, 108, -21, -113, 87, 88, -47, -18, -21, 39, -117, 111, -23, 73, -74, 95, -68, 17, -45, 94,\n 95, -4, 7, 125, -81, 124, -84, 74, 75, 1, -101, -41, -66, -1, 65, -18, 113, -2, -17, -21, 21, 73, 114, 7, 32,\n -33, 108, -55, 112, -5, -93, -96, -18, 24, -104, -84, 10, 2, 73, 112, 122, 1, 96, 120, -58, -123, 40, 2, 25, 47,\n 125, 28, -20, -115, -1, -16, -73, 49, 105, -107, 14, 64, 74, -109, -110, -24, 50, 88, -65, -30, 93, 48, 106, 47, -4,\n -103, 8, -49, 102, -79, 32, -127, -49, 54, 54, -44, 22, 9, -99, -57, 67, 25, -50, -112, 96, 117, 43, -99, 91, -32,\n 66, 67, 36, 110, 37, -120, -17, 113, 97, 18, 5, 38, -93, 120, 9, 43, 103, 13, 99, 23, 16, 17, 38, 23, -25,\n 64, 113, -119, 65, -69, -33, 4, -115, -24, 68, 48, 90, 112, -117, 109, 10, -29, 122, 96, 4, -88, -2, -3, -120, 105,\n -127, 58, 31, 118, -48, -120, 58, -12, -115, -47, 111, 104, 73, 79, 119, -56, 87, 70, 60, 126, 70, -114, -41, -53, 35,\n 120, -10, -109, -91, -73, 52, -15, 46, -38, -79, -48, -63, -62, 119, -74, 28, 105, 113, -113, 33, -85, -48, -119, -122, -90,\n -89, 62, 70, -46, 92, 123, -44, -97, 36, 69, -74, 52, 64, -70, 103, -126, 14, 20, 100, -46, 2, 37, 59, 55, -54,\n 69, -127, 112, 92, 36, 25, 37, 118, 50, -55, 84, -46, -110, 97, 124, -37, -5, 58, -71, -54, -102, 89, 39, -109, -101,\n -53, -107, 10, -75, -89, 49, -106, -123, -14, -112, -118, -100, 78, 41, -123, 40, 46, 84, 114, 5, -106, -61, -2, 4, 85,\n -23, -74, -9, 74, 98, -118, 107, 82, -2, -5, 95, 1, 43, 22, -56, -15, 49, -82, -112, -70, 124, 30, 47, -87, -24,\n -53, 64, -118, -114, 108, -55, 36, -90, 49, -39, -120, -86, 19, -14, -117, -101, -90, 97, 91, 15, -35, 39, 63, 79, 101,\n 115, -120, 125, -111, -32, 125, 100, -103, -95, -3, 116, 105, -125, -40, 68, -112, 42, -127, 53, 78, 110, 50, -55, 105, -124,\n 10, -25, 101, -16, 89, -102, 114, 102, -24, -100, 127, 25, 86, 8, 55, -103, 21, 20, -127, -19, -102, -67, 108, -29, 21,\n -95, 39, 32, 82, -46, -77, -125, -100, -76, -25, 63, -111, -88, -49, 4, -50, -115, -117, 22, -3, 28, -5, -32, -55, 68,\n -72, 24, -48, 93, -3, 3, 90, -110, 30, 26, 71, 126, 89, -77, 45, -11, -108, 40, -3, 56, -6, -46, 105, 5, 40,\n -93, -38, 58, -35, -18, 96, 42, -78, 81, -102, -109, 65, 1, -35, -52, 96, 60, -54, 56, -121, -94, -76, -95, -46, -108,\n 104, 69, 111, -118, -49, 113, -127, -110, 123, -122, -71, 14, 50, -113, 42, 56, 67, 70, -47, 60, -52, -102, -35, 74, -43,\n 6, 66, 44, 102, 83, -87, -25, 99, -90, 12, 7, 118, 84, -80, 98, -55, 124, 9, -116, 33, 56, 35, 88, 41, -124,\n -122, -11, 126, 59, 36, -42, 84, 119, -7, -55, -91, -111, 52, -99, 88, -20, 42, 68, -83, 122, 32, -41, 64, -52, -87,\n 106, -59, -2, 99, 29, 17, -7, -80, -22, -119, 40, -123, 56, -28, 43, -30, -94, -89, 81, -73, -18, 114, 84, -120, -52,\n 11, 59, 125, -8, 88, -107, 2, -106, 69, 3, 53, -44, 94, 11, 91, 70, 87, 37, 11, 114, 56, 69, -25, 101, -97,\n -7, -61, -48, 29, 112, -89, 11, -107, -86, 98, -26, 90, 90, -122, 49, -47, -118, 92, 2, -19, -86, 44, -21, 89, 86,\n -114, 21, -78, -90, -75, -117, -35, 96, -21, -55, 5, -74, 53, -79, -76, -101, -22, 105, -33, -6, -37, -55, 10, -107, -95,\n 8, 92, -104, -83, 94, 123, 91, 26, 62, 18, -107, -77, -20, -47, 32, 39, 10, -37, 8, -110, 86, -76, 35, -116, -105,\n 69, 122, -21, -37, -103, 114, -87, 86, -109, 107, -36, 112, 89, 42, -87, -29, 34, 55, -125, -117, -63, -18, 123, -98, -69,\n -42, -13, -14, -107, -92, 101, 21, -24, 116, -63, -75, 92, 109, -23, 16, -75, 67, 53, 85, -125, 22, 39, -62, 126, 54,\n 80, -68, 96, -91, 84, 121, -19, 26, 94, -85, -19, 87, -113, 44, 68, -20, 110, -85, 11, -33, 12, -27, 102, 70, -26,\n -67, 43, 77, 103, 87, -94, -74, 25, 49, 82, 0, 22, -16, 11, 63, -120, 45, -27, 58, -105, -80, -73, 21, 41, 101,\n 83, -22, -34, -9, 34, 56, 53, 68, 116, 108, 100, 67, 88, -91, -82, -12, 73, 42, 39, 94, 19, -123, 43, 108, 97,\n 2, -14, -53, -88, -54, 76, 93, -2, 97, 33, 76, 37, -23, 6, -107, -102, 114, 25, 112, 124, -43, 37, 98, 22, -45,\n 119, -86, 107, -116, 104, -114, 67, -9, -30, -53, -6, 68, 95, 20, -34, 38, 116, 91, -85, -74, 42, 69, -39, -97, 64,\n -106, 113, 99, 18, 90, -28, -43, 38, 118, 89, -62, 61, 23, -110, 109, 76, -89, 119, -71, 56, 56, 21, 54, -87, -112,\n 71, 12, -30, 16, -29, -49, 116, -57, -117, -18, -115, 35, -52, 39, -17, 2, 54, -65, -65, -12, -14, 83, 109, -74, 46,\n 49, 35, -7, -66, -11, -116, 42, 112, 117, 124, 96, 42, -69, 6, -126, -60, -5, -22, 105, -25, -20, 48, -19, 112, 57,\n 102, 9, -83, 51, 76, -19, 21, -24, -115, 54, 90, -61, 79, 94, 96, -97, -33, -71, 99, 30, -9, -40, 89, 107, 67,\n -50, -116, -105, 27, -35, 2, -117, 105, -98, 45, 30, 112, -98, 37, -35, 59, 82, 89, 122, -61, -89, 94, 84, 110, -125,\n -20, 97, 81, 98, 58, -45, 88, 77, 22, -114, 33, 44, 22, 34, -93, -84, -75, -119, 84, 117, -83, 19, 99, 106, 86,\n -13, -82, -65, -2, -75, 105, -80, 91, 125, -40, 34, -97, 16, -44, -20, 125, 53, -96, 105, -51, 92, 68, -29, -102, 77,\n -89, -118, 91, 127, 14, 77, -48, 82, 27, -5, -91, -54, 115, -10, 32, 55, -23, -39, 61, -81, -74, -41, 39, 61, 10,\n -124, -77, -37, 109, -66, -31, -46, -108, -70, 27, 119, -84, -2, -93, -73, -27, -97, -10, -44, 92, -64, -42, -10, -24, -28,\n -43, -19, 122, -47, -51, -55, -82, 86, 116, -104, 121, 105, 72, -86, 126, 16, -46, 56, 18, 92, 0, 57, -106, 31, 88,\n 67, -75, 118, -17, -124, -113, -64, -21, 109, -25, 16, -25, -69, -36, 99, -6, 50, -65, -5, -67, 93, 120, -29, 53, -53,\n 13, 46, 49, -102, 59, -53, 41, -74, 74, 57, 64, -110, 115, -77, -94, -109, -13, 43, 79, 63, 92, -110, -78, -69, 100,\n -32, 8, -87, -42, 68, -38, 117, -29, 51, -49, -15, -96, 10, 119, 115, -25, 104, -38, -29, 77, -28, 76, 63, 83, -68,\n -100, 66, -30, 9, -86, 124, -82, -102, -54, -43, 91, 36, -94, 21, -70, 124, -24, -30, 47, -86, 24, 28, -17, 6, -101,\n -8, -101, -108, -34, -116, -50, 13, -68, -22, 57, 109, 107, -87, -49, -54, -22, 64, -47, 102, -12, 122, -77, 28, -28, -127,\n 85, 98, 115, 45, 10, -22, 75, 71, -99, -36, 102, -82, -94, 100, -99, 61, 103, 122, -31, 69, -74, -15, -3, 108, -38,\n -35, 103, 48, -80, -121, 125, -42, 117, -1, 56, -115, -51, -114, -44, -39, 74, 29, -42, -51, 14, -7, -32, 35, -99, -33,\n -72, 79, -102, -18, 124, -49, 41, -78, 77, 70, -17, -68, 3, 6, -77, 123, -97, 15, -39, 99, 41, -64, 127, 110, -105,\n 50, 80, 118, -9, 50, -37, 77, -58, -49, -1, -37, 119, 110, 28, -5, 40, 71, -2, 45, -81, -56, -17, 45, -27, 127,\n 83, -109, -70, -42, 45, -79, -114, 21, 14, -106, -102, 71, -19, -25, -73, -102, -32, -126, 18, -36, -14, -100, -59, 125, -4,\n 52, 14, -78, 71, -85, 8, -14, -87, 63, -39, -22, -11, 102, 105, -41, -13, -111, 46, -58, -62, 118, 31, 105, -49, -40,\n 15, -37, 125, -60, 70, -21, 105, -15, 0, -84, 51, 85, 54, 40, -73, -63, -49, 54, -15, -3, -24, -4, -96, 79, 50,\n -67, -72, 110, -22, -16, -15, -11, -4, -50, -89, -10, -36, 24, -92, 62, 72, 115, 45, -59, -114, -78, 63, -106, -108, -10,\n -23, -29, 29, -82, 58, -17, -13, 55, -24, 56, -98, -114, -73, -65, 117, -48, 111, -125, 49, -11, 75, 63, 2, 84, -69,\n -23, -53, -67, 21, -77, -72, 60, -61, 48, -98, 107, 54, 115, 75, -91, -61, -127, 21, -29, -53, 63, 48, 10, -67, 68,\n -103, 64, -63, 34, -94, -66, -126, -74, -11, -21, 64, -102, -85, 58, 4, 36, -68, 28, -119, 13, -86, -126, -107, 87, 3,\n -101, -1, -117, 63, -13, -93, 64, 97, 107, -67, 20, 124, 56, -86, -30, 64, 63, 99, -69, -22, 107, 63, 44, 3, 24,\n 12, -12, 61, 57, 65, -81, -100, -104, 24, -125, -86, -79, 10, 25, 63, 22, -20, -90, 92, -94, 45, -67, 11, -68, -89,\n -109, 65, -63, 43, 45, 78, 91, 48, -73, -77, -113, 28, 44, -67, -99, -46, 30, 118, -7, 35, 35, 92, -2, 62, 33,\n 28, 66, 34, -52, -88, 21, -76, 36, 111, -14, 64, 26, 52, 64, 49, -52, 36, 78, 115, 39, -54, -118, 66, 49, -46,\n 47, 19, 108, -95, -63, -77, -110, -67, -78, 45, 45, 12, -85, -5, -96, -101, -32, -61, 60, 61, -53, -118, 25, -108, -71,\n -7, -110, 62, -51, -38, 48, 94, -93, 51, -17, 8, -65, 75, 2, 51, 35, -45, 36, 32, -12, -69, 46, -116, 67, -20,\n 57, -88, -121, 73, -101, 68, 20, -64, -57, 57, -93, 1, -36, 67, -43, 106, 47, 63, -28, -68, 57, -30, 31, 53, 20,\n -103, -10, -64, -92, 78, -93, -62, 67, 84, 68, 57, 92, 40, 103, 122, -79, 13, 42, -94, -18, 114, -65, 62, -52, 67,\n 104, 75, 30, -109, 67, -61, -39, -128, 31, 114, 50, 60, 94, 65, -90, -5, 19, 69, 14, -117, -71, -111, 34, -77, 37,\n 116, -65, 37, 43, -64, -24, -117, -107, 112, -21, 13, 10, -39, -113, 14, -15, 68, -14, 90, -108, 71, -60, -59, 10, -86,\n 42, -68, 90, -58, -3, -47, -66, -68, 122, -102, 94, 83, -74, 98, 27, -58, -65, -101, 16, -74, 57, 70, -91, 57, -85,\n -66, -125, -108, 59, 98, 70, 27, 51, -106, -61, -40, 61, 14, -21, -59, -121, -62, 62, 92, 1, -61, 73, -92, -72, -2,\n 113, 18, 13, -110, -59, 89, -44, 69, -40, 113, -86, -42, -127, 70, 113, -20, 30, 3, -55, 57, 83, -76, -75, -82, -93,\n 58, -10, -2, 74, -58, 76, -71, -70, -1, 48, -73, 0, -100, 34, 64, 124, -94, 106, 19, 41, 91, -60, -107, 97, -53,\n 71, 61, 43, 54, -15, -22, -86, -96, 75, 64, 77, -62, 37, -68, 25, 72, -126, 44, 72, 59, -12, -98, -124, 124, 34,\n 40, -84, -74, 19, 107, -56, -104, -80, 8, -120, -84, -77, 17, -108, -69, 97, -62, 57, -24, -24, 69, -95, -29, 51, -117,\n 28, 67, 36, 100, -100, 107, -55, 68, -40, -128, -106, 86, -63, -81, 124, 43, -118, -109, 68, 73, -27, -13, -107, 22, 90,\n -91, -38, -15, -63, 14, 123, 29, -37, -101, 38, -99, 90, 38, -40, -29, -112, 82, -20, 16, 54, -45, -111, 44, -28, -92,\n -98, 100, -75, -60, 107, -92, 79, -127, 69, -42, -29, 21, 44, -117, -89, 39, 52, 74, 62, 84, -62, -85, -94, -88, 91,\n 52, 35, 70, 34, 65, 116, -14, -63, -88, -92, -88, -87, -108, -76, 7, 2, -54, -65, 120, -56, 72, 82, -88, -83, 28,\n 41, 34, -93, 61, -92, 60, 51, -43, 34, 49, 115, 100, 15, -56, 64, -98, 108, -124, -81, 52, -70, -97, 78, 92, -53,\n 70, 83, 58, -65, -93, 13, 0, -6, 58, 124, 100, -54, -89, -61, -56, 22, -87, 63, 38, 100, -57, 36, 52, 47, -105,\n 43, 56, -124, -4, 73, -128, -86, 27, 81, 123, -91, 103, 17, 38, -62, -116, -56, -88, -100, 24, -47, -60, 72, 20, 105,\n 70, 1, -63, 67, 68, -61, -58, -2, 36, -116, 43, -68, 84, -84, 109, -68, -52, -67, 20, 27, -62, 73, 75, 17, -111,\n 60, -84, -4, 76, 47, 76, -85, -61, -76, -113, -127, -109, -90, -15, -6, 61, -32, 83, -97, 30, -92, 58, -114, 99, 27,\n -111, 4, 70, -103, -116, -51, -81, 113, -87, 99, 116, -96, 43, -124, 19, 121, 73, 30, -36, 20, -80, -126, -103, 18, 110,\n -117, 19, -82, -112, -73, -33, 108, 31, -43, 76, 20, -20, 36, -50, -27, -111, 28, -16, -100, -52, -81, 124, 61, 109, 4,\n -114, -37, -100, 15, -41, -13, -52, -15, -87, -51, 41, -103, 78, 50, -13, 38, 47, 26, -55, -23, -79, -80, 50, 59, -61,\n -92, -72, -49, -43, -20, 70, -62, 43, -49, 101, -6, -56, -13, 36, 68, 96, 107, -78, -30, 88, 62, 7, -22, 62, -8,\n -100, 72, -6, 72, 17, 122, -84, -81, -59, 100, -52, 3, -111, 68, -115, 107, 61, -128, -124, 58, -55, -44, -82, -86, 84,\n -93, 24, 27, 80, -84, 43, -55, 122, -31, -114, 79, 75, 80, -22, -84, 67, -30, 26, -49, -25, 121, -48, 26, 26, 78,\n 15, -13, 41, -83, -108, 62, -76, 12, 67, -109, -93, -85, 111, 44, 70, -79, 50, -53, 25, 117, 74, 9, 18, -47, -8,\n 60, -106, -116, -101, 37, 20, 13, -48, 78, 43, 81, -108, 122, -55, 61, 44, -94, 11, 109, 59, 75, -4, 81, 101, 26,\n 80, 2, -11, -53, -74, -44, -47, -3, -46, 16, -29, -116, -2, -63, 14, 109, -63, 78, 123, 63, -6, 11, -46, 25, 108,\n 55, -106, -95, -58, 42, 53, -109, 38, -3, -100, -12, 76, -70, 79, 83, 82, 40, -75, 31, -54, -23, 41, -38, -52, 26,\n -56, -100, 75, 44, -91, -53, 27, 36, 79, 61, 36, 67, 90, -71, -47, -38, 58, 72, 3, -3, -119, 30, 27, -45, 51,\n 21, 74, -38, -111, -89, -108, -116, -58, -18, -68, -69, 84, -20, -49, -82, 76, -50, 56, 77, 59, 51, -107, -103, -31, -61,\n 15, -84, -84, 36, 8, 89, -44, 62, 93, -60, -103, 4, -56, 112, -12, -100, 114, -116, 40, -52, 49, -44, 67, 69, -44,\n 24, 109, 35, 73, -27, 20, -43, 11, 83, -85, -4, 75, 0, -103, -44, 83, 67, 63, 43, -38, 39, 24, 58, -50, -51,\n 116, 78, 78, 53, 60, 79, -75, -72, -55, 12, 85, 51, -38, 84, 59, -35, 77, 83, -27, 73, 84, 45, 76, -80, 68,\n 76, 57, -29, -45, 70, 33, 36, -33, -48, -97, 116, -103, 83, -57, -29, -77, -37, -85, -90, 47, 21, -98, -25, 104, 63,\n -50, -124, -86, 94, -115, -68, 55, -126, 28, -83, -100, 39, 97, -51, -105, -125, -20, 25, -90, -77, 46, 33, 91, 56, -73,\n -95, 67, -49, 83, 69, -52, -124, -95, 75, 108, 86, 78, 10, -53, 105, -51, -69, 106, 37, 48, -72, 121, -103, 108, 5,\n -100, 109, -51, -70, -112, 18, 67, 112, 45, -73, -14, -101, -46, -72, -102, -100, -117, -2, 58, -41, 92, 109, 18, -26, 92,\n 87, -107, 107, 87, -89, 115, 28, 105, 12, -59, 60, -70, -50, -71, 68, -72, 74, 44, 88, 39, 116, 88, -13, -116, 70,\n -62, -126, -61, 32, 68, 69, -127, -91, -42, 86, -76, 33, 122, 28, 75, -64, 11, -49, -70, -6, 83, -55, -14, 70, -101,\n 76, -82, -26, -93, 88, 49, -30, -66, -117, -123, -63, -116, 37, 37, -56, 36, -43, 124, 90, 41, -3, -28, 64, -115, -108,\n -56, 36, -78, 45, -109, -27, -114, 74, 75, 89, -93, -93, 82, 5, 116, -75, 107, 109, -70, -88, -13, 82, 90, 29, 90,\n 91, -115, 71, -117, -55, 48, -100, -35, 62, -99, 29, -40, -22, 19, -51, 56, 114, 51, -68, -71, -87, -101, 3, -83, 116,\n -5, -44, -66, -116, 75, 97, -31, 88, 27, 4, -66, -50, 88, 90, -104, -5, 43, 82, 60, 61, -76, 43, -41, -105, -107,\n -96, 11, 52, -47, 115, -13, 68, -78, 117, -94, -64, -68, 84, -83, 19, 65, 81, -27, 85, -81, -107, 90, 10, 125, -73,\n 101, 81, -75, -94, -83, -106, -123, 124, -64, 66, -12, 51, -75, 93, 83, 10, -102, 24, 15, 37, -100, 23, 13, 44, 59,\n -20, -52, -68, -99, -37, 107, 113, 85, -6, -78, -64, -78, -28, 40, 19, 74, -44, -76, 117, -47, 110, -94, 89, 114, 41,\n 84, 104, 90, -81, 50, 84, -36, -77, 27, 90, 119, -71, -100, -89, 58, 88, -76, -83, -43, -88, 122, -46, -2, -39, 115,\n 23, 88, -115, 56, -100, 99, 42, -50, -51, 60, 56, 69, -57, -34, 115, 52, -47, -19, -37, 75, -13, 43, -103, 75, -36,\n 124, -79, 92, 98, -13, 19, -83, 45, -48, -42, 29, -89, -69, -123, -35, 3, -108, -38, -58, 77, 82, -7, 66, 29, -36,\n 29, -42, -120, -75, -70, 76, -20, 93, -21, -124, -96, -33, 77, 88, 40, 42, -54, 35, -5, -109, -28, 5, -45, -30, 61,\n 51, 70, 100, -80, -21, 85, 94, -27, 124, 54, 83, -46, -89, 112, 76, -98, 91, -117, -34, 10, -44, -94, -39, -67, -107,\n 82, -119, 87, -84, -95, 94, 89, 101, -97, -92, 18, 82, -90, -24, 94, -17, -3, -34, 76, 17, 43, 60, 5, 88, -84,\n 99, 95, -13, 69, -109, -94, 28, -75, 80, 25, -37, 93, 101, 37, 40, 27, 84, -87, -30, -106, -104, 93, -37, -107, 92,\n -34, -91, 89, 95, -98, -93, -40, -22, -20, -33, 69, -52, -111, -47, 28, -35, 17, 19, 78, 5, 102, 91, -125, 77, 96,\n -122, -7, -71, 119, 124, 92, -56, 101, -32, 72, 3, 76, -71, -109, -46, -128, -107, 96, 76, 77, -42, -111, -46, -85, -114,\n 36, -32, -102, -93, -87, 2, -71, 59, -35, 117, -35, -120, 21, -32, -57, -117, 18, -118, -23, -52, -109, -125, -116, 25, -93,\n 95, 20, -74, -102, -47, -38, 26, -61, 36, 89, 25, -42, 37, -82, 4, -36, -107, -101, 97, 61, -46, -114, -53, 117, 94,\n -91, 43, -2, 41, -104, -67, 84, -61, -8, -31, -113, -95, 93, 96, -75, 29, 31, -10, -93, 115, 82, 51, 89, -67, -39,\n 109, 83, -30, -46, 68, -111, -65, 68, -63, -69, 89, -30, -103, 125, 78, 16, -91, 98, 121, -19, 84, 36, -75, 28, -2,\n -83, -55, 15, -36, -68, -51, -53, -30, 58, -51, 96, -55, 83, -49, -30, 35, 19, 49, 54, -64, 28, 54, 73, 53, -58,\n 94, -26, 107, 88, 87, -46, -32, -62, -77, 68, 124, 27, -59, -17, -83, -40, -30, 123, -61, 65, 1, -29, -46, 124, -29,\n 63, -66, 60, -42, 92, 34, 41, 118, 86, -2, -109, -75, 29, 76, 50, 47, -122, -50, -63, -11, -74, 27, 36, -76, -2,\n -94, 99, -50, 93, -42, 45, -126, 100, 109, -43, -75, 67, -82, 56, -124, 101, 84, 18, 108, 83, -44, -107, 26, 36, -114,\n 100, -65, 60, -46, -33, 17, 101, -128, -126, -40, 77, -93, 60, -24, 26, 98, -63, -60, -47, 67, 117, -71, 127, -107, -27,\n -27, -108, -45, 82, 78, -82, -90, 114, -93, -42, 51, -59, 18, -86, -28, 32, -119, 85, 30, -75, -27, -2, -75, 66, 108,\n -126, 102, -112, 124, 90, 102, -61, -60, 76, 86, 80, 107, 13, 85, 3, 94, 101, 97, 54, 90, 24, -67, 32, 106, -82,\n -26, 74, -77, 96, 21, -106, -57, -119, 52, 70, -28, 73, -61, -41, -4, -26, 58, -114, 99, 113, 38, -30, 122, -20, 102,\n 108, -34, -60, 116, -74, 62, 102, -2, -18, 34, 70, 125, -78, 47, 114, 103, 93, 113, 95, 74, -22, -41, -104, 100, -29,\n 115, 6, -48, 123, 94, -74, 20, 93, -116, -84, -19, 86, 127, -66, 20, -128, 30, -93, 113, 38, 103, -1, -28, 60, -28,\n -37, 89, 0, -52, 95, -42, -19, -94, -56, 65, -39, 16, 109, -24, 42, -42, 84, -120, -82, 89, 74, 4, 42, -32, 28,\n 89, 106, 77, -95, 22, 94, 62, -14, -39, 100, -113, -50, 24, -45, 107, 100, 55, 38, -28, 11, 29, 14, 102, -117, 104,\n -74, 101, -24, -67, -127, -65, -106, -58, 94, -113, 82, -72, -104, -106, -23, -119, 110, 99, 21, 69, 103, 113, -60, -55, 32,\n 73, -58, -99, -10, 95, 23, 101, -36, 125, -79, -23, 91, -98, -23, 2, 2, -44, -75, 92, 84, -116, 78, -22, 98, -52,\n -114, -59, 50, -25, 66, 113, -22, -89, 102, -72, 8, -117, -22, -88, -10, -26, 81, -74, -22, -117, -23, -46, 79, 5, -81,\n 13, -36, 41, 55, 44, 92, 69, -39, 39, -114, -18, -45, 124, -58, 13, -78, -10, 23, 82, -98, 58, 120, -31, 106, -83,\n -15, 33, 35, -126, 74, -121, -44, -111, -117, -75, 88, -112, -61, -21, -99, 46, -62, 122, 54, 46, -23, -99, -83, 76, -51,\n -49, -34, -20, 26, -63, 14, 92, -25, 104, 56, 116, -99, -21, -36, 101, 69, -7, -83, 44, -25, 91, -59, 64, -94, 37,\n -7, 104, 103, -103, -55, -57, -78, 74, 62, -79, -106, 108, -2, -105, 14, 106, -69, -98, -74, -53, 102, -84, 51, -86, -65,\n -20, 52, -23, 58, 105, -20, -20, 81, -25, -49, 114, -19, -122, -66, -53, -32, -78, -20, -61, -90, -20, -1, 90, -106, 57,\n 9, -19, 35, 52, -24, -73, 22, 109, -121, 38, 109, -83, -66, -82, -55, 67, 78, -84, -10, 78, 71, -82, 15, -39, 102,\n 83, -82, 27, 97, -22, 91, 110, 119, 62, 99, 98, -26, -109, -37, -58, 109, -104, 116, 27, 16, -98, 31, -24, -58, -103,\n -14, -19, -51, 26, 11, 76, -32, -42, 91, -98, -94, 101, -30, 118, -31, -111, 110, -68, 31, -78, -52, -92, 13, 102, -97,\n -36, 97, -40, -82, 60, -118, 11, -17, 127, 14, 107, -21, -114, -104, -76, 54, -18, 79, -106, 51, 41, 68, -29, -34, 118,\n 30, -110, 99, 60, -10, -106, 111, 35, -111, 86, -62, -2, -110, -19, -58, -62, 118, -60, -48, 31, 92, -34, -110, 57, -31,\n -2, 38, -24, -3, -51, 110, 1, 127, 20, -88, 68, 109, -114, -87, -18, -6, -50, -41, -90, 97, -32, -85, 29, -40, 6,\n -33, -76, -83, 13, -16, 9, 7, -25, -31, -10, -36, -12, -71, 111, -4, 22, -22, 118, 114, -16, -14, 58, -16, 110, 105,\n 25, 53, 11, 65, 23, -9, -25, -60, -2, -43, 19, -57, 44, -52, 69, -17, -110, -90, -38, 68, -42, 109, -90, 117, 92,\n -101, -14, -15, 17, -9, 22, -71, -76, -15, -59, 59, 95, 105, 26, 91, 37, 71, -2, 86, 59, 21, -14, 35, 68, -68,\n -43, -106, -16, 33, 15, 110, 127, -93, 110, 20, -9, -68, -77, -78, 97, -72, -35, -17, 68, 110, -17, -93, 49, -24, 41,\n -9, 94, 60, -77, -14, 43, 23, 100, 12, 70, -42, 28, 102, -19, 84, -67, -21, 48, -1, -105, -9, 61, -21, -31, 45,\n -13, 49, -92, 109, -2, -98, 31, 59, -26, 69, 54, 111, -13, 127, -122, -16, -58, 34, 115, 12, 103, 114, 43, -58, -63,\n 88, -68, 115, 60, -65, -21, 25, -113, -18, 78, 37, 36, 63, -1, 115, 26, -4, 91, 23, 82, -17, 96, -69, -26, -83,\n 62, 116, 97, 102, 106, 126, -69, 54, 17, 55, 87, 118, -108, -26, 71, -105, -14, 40, -3, -40, 60, -41, 115, 71, -79,\n 116, 57, -21, 50, 63, 13, -22, -15, -18, -12, -28, 30, 71, 76, 47, 111, 81, 7, 28, -38, 5, 96, -11, 61, -11,\n -23, 30, 79, -106, 6, -16, 76, 119, 52, -81, 122, -11, -6, 109, 81, -30, 60, 52, 74, 87, -68, 112, -114, -36, 46,\n -105, -15, 59, 12, -94, 96, 87, -29, 90, -28, -50, 55, 69, 110, 87, 79, -30, -1, -28, -103, 104, -37, 109, 6, -105,\n 67, -17, -2, 105, 94, -9, -56, 98, -87, -62, 35, 38, -67, 100, 26, -17, 102, -30, 87, 106, 47, -10, -48, -107, -93,\n -72, -50, 118, 45, -66, 98, 42, -110, -89, 11, -82, 106, 70, 55, -15, 66, 14, -44, 52, -116, 108, -120, -2, 11, 104,\n 116, 39, -15, -66, 5, 119, -54, -48, -11, 112, 110, -60, 85, 103, 94, -34, -18, -40, 82, 74, 118, -13, 117, -27, -75,\n 43, 104, 48, 95, -32, 126, -81, 112, 66, -89, 50, -126, -65, 106, 95, 122, -8, -33, -3, -32, -38, -122, -13, 58, 23,\n -8, 56, 126, 104, -58, 110, -8, 47, -98, -26, 123, -65, -52, 106, -124, -25, -128, -57, 90, -105, 12, 90, 109, -30, -8,\n 16, -90, 39, -119, 87, 92, 95, 15, 98, 120, 31, -32, -50, -43, 113, 120, -65, -11, -44, 53, 101, 72, -12, -8, -113,\n 111, 102, 8, 63, 65, -25, 6, -38, -127, -66, 100, -29, 49, 62, -25, 85, 101, -100, -49, 121, -78, -36, 121, -97, 61,\n 35, 112, -13, -54, 64, 87, -20, 60, 61, -10, -94, 50, 122, -66, 44, 113, 68, 43, -60, -107, 79, 119, 45, 105, -7,\n -55, -70, 122, -113, 105, 118, 74, -106, -6, -93, 111, 122, -98, 63, -61, 125, -117, 17, 80, 55, 123, -101, -105, -61, 86,\n -97, 48, -80, -49, 105, -79, 95, -31, 119, -11, 116, -30, 21, -7, -96, -9, -20, -106, 26, -7, -74, -105, -74, -73, 39,\n 48, 39, 39, 122, 103, -74, -25, 56, 92, 123, -74, -49, -5, 64, 68, 122, 64, -89, -9, -104, -73, -8, -124, -49, 63,\n -63, -33, 106, -62, 47, -4, -67, -9, 84, -82, -41, 68, -125, -97, 50, -69, -113, -6, -57, -73, -47, 55, -105, 124, -22,\n 52, -37, -2, 27, 34, 119, -17, 107, 124, -45, -50, -4, -101, -116, 124, -105, -60, -13, -77, -81, 71, -48, 15, 125, -52,\n 39, -3, -89, -82, -38, -98, 47, 123, -11, -93, 121, 45, 20, 125, 3, 119, -3, 89, -36, -4, -116, 7, -51, 1, 68,\n 90, -120, -76, -3, 11, -57, -3, -68, -58, -66, -54, 70, 124, 68, 22, -91, 126, 38, 76, -32, 95, 116, -31, -81, 45,\n -35, 71, 94, -71, -105, -3, 34, -59, -51, -27, 55, -11, -26, 23, -45, -92, -124, 116, -34, 23, -89, -23, -84, -2, -22,\n -67, 126, -25, 34, -2, -33, -101, 124, 8, -27, -2, -18, 31, 50, 73, 127, 118, -16, -65, 37, 67, 78, -17, 72, 55,\n -1, -13, -105, -79, 111, 75, -3, 35, 95, 127, -100, 18, 127, -125, 122, 127, 65, 19, -47, -128, -53, -31, -54, 7, -120,\n 0, 2, 7, 18, 44, 104, 112, -96, 0, 0, 10, 23, 50, 108, -24, -16, 33, -60, -120, 18, 39, 82, -84, 104, -15,\n 34, -58, -116, 26, 55, 114, -20, -24, -15, 35, -56, -123, 2, 4, -114, 60, 104, -14, 100, -128, -110, 7, 71, 38, 12,\n -23, -14, 37, -52, -104, 27, 85, -94, 60, -39, 82, 38, -50, -100, 58, 119, -30, -92, 89, -45, -96, -128, -101, 24, 125,\n 6, -3, 105, 20, 40, -49, -92, 74, -105, 50, 109, -22, 84, 105, 73, -97, 71, -127, -94, 12, -6, -12, 42, -42, -105,\n 82, -89, 10, -51, -22, -11, 43, -2, 88, -122, 91, 127, 90, -19, 72, -77, -24, -44, -93, 93, -61, -78, 109, -21, -10,\n -19, 85, -107, 99, -45, -90, -84, 10, -9, 46, -40, -71, 85, -41, -30, -19, -21, 87, -93, -34, -96, -126, 7, -125, -108,\n 11, 64, 47, 93, -110, 127, 23, 51, 110, -36, 88, 110, -30, -107, 104, 11, -14, 117, 108, 57, 36, 98, -54, -107, 47,\n 115, -10, 59, -103, -14, -50, -88, -103, 19, 111, -18, 108, -6, 52, 106, -114, 103, 35, 35, 61, 44, 88, 113, -22, -40,\n 67, 7, -45, -82, 93, 90, 54, 110, -84, -97, -53, -22, 20, 124, -72, 46, -21, -107, 95, 121, -25, 46, 110, -4, 35,\n -28, -32, -96, -59, -34, 62, -18, -4, 57, 116, -73, 69, -101, 107, 117, 61, 90, 109, 88, -33, -47, -73, 115, -1, -115,\n 80, -7, -14, -18, -30, -57, -109, 127, 74, 61, -26, -21, -49, -84, -49, -13, -116, 90, -2, 125, -22, -43, -32, 9, -78,\n -121, 111, -1, 62, -2, -20, 9, -81, -37, -51, -98, 50, 63, -128, -98, 81, 54, 31, 125, 1, 26, 120, 32, -126, -70,\n -127, 87, 95, 123, 12, 38, -8, 32, 122, -12, 17, 24, 30, -124, 21, 90, 120, -31, 80, 11, 74, -73, 31, -122, 29,\n -54, 68, -44, -124, 5, 122, 56, 34, -119, 24, -14, -41, 90, 91, -124, -107, -72, -30, 76, 3, -122, -8, 31, -117, 49,\n -54, 120, -33, -119, 20, -78, 53, -35, -116, 57, 70, 4, -2, 98, -120, 14, -22, -8, 35, -112, -114, -115, 53, -105, 118,\n -46, -111, 68, 91, -112, 51, -14, 56, -95, -113, 73, 58, -7, 100, -118, 72, -99, 85, 36, 92, 91, 53, 9, 37, -115,\n 18, 46, -88, 34, -106, 93, 122, -23, 25, 90, 55, -79, 116, 37, 83, 86, 126, 57, -94, 124, 116, 33, 121, 38, -101,\n 109, -34, 69, -100, 107, -116, -103, -23, -90, -123, 105, -90, 69, 38, -99, 121, -22, 25, -38, 98, 86, -30, -71, -25, 113,\n 75, -34, 9, 40, -95, -123, -42, -87, -103, -95, 7, 10, -54, 85, -94, -115, 58, -118, -33, 89, -113, 2, -72, 40, 118,\n -110, 90, 122, 41, 116, -122, 97, 106, 31, -91, -110, -123, -71, 41, -88, -95, 50, 39, -26, -97, -24, 53, -28, -98, -88,\n -28, 117, -118, 34, -107, -87, -70, -22, -88, 104, 44, 25, -39, 82, 122, -81, -114, 87, 91, -91, -74, -22, 42, -23, -100,\n -2, -91, 52, 38, -100, -69, 58, 71, 106, -91, -91, 10, 123, -84, -116, 82, 25, 91, 24, -118, -56, 102, -86, 16, 75,\n -40, 5, -21, 44, -75, 94, 42, 123, 35, 125, -53, 86, 91, 37, -83, -64, -111, -43, -22, -74, -31, 62, 25, -87, -81,\n -80, -119, 27, 104, -73, -4, 77, 123, 46, -69, 57, 106, 58, 28, -71, -19, 26, -105, 110, -82, -14, -38, -85, 35, -72,\n 113, 53, 123, 47, 110, -55, -43, -92, 45, -65, 1, -17, -87, -34, -111, 2, -9, -2, -5, 29, 89, 6, 43, -84, -85,\n -97, 11, -53, -26, -81, 77, 14, 75, 28, -22, -112, 19, -57, 22, 109, -62, 22, 107, 12, -85, 73, 0, 111, -36, 84,\n 84, -33, 126, 60, 50, -95, 21, -109, 124, 89, -56, 54, 121, 124, 50, -53, -121, 10, -41, -14, 95, 86, 65, 108, 35,\n -52, 53, -113, -37, -80, -51, 111, 30, -119, 112, -57, 57, -5, 124, -77, 104, 63, -65, -7, 26, -49, 61, 11, 125, -12,\n -113, -21, 34, -99, -105, -117, -3, 45, -3, 52, -44, -37, -38, -23, 116, -44, 85, 91, -3, 106, -104, 70, -83, 124, 53,\n -41, 93, 39, 61, -104, -42, 94, -117, 61, -74, -95, -109, -115, -74, 53, -39, 105, -85, -99, -96, -39, 25, -81, -3, 54,\n -36, 73, -18, -25, 109, -60, 113, -37, 125, 119, -78, -45, -3, -117, 55, -33, 125, -93, 73, 55, 85, 104, -5, 61, 56,\n -31, -90, 17, -35, -79, -32, -123, 43, -66, -72, -100, -121, 35, -60, 56, -28, -111, -33, 90, -76, -71, -110, 91, 126, 121,\n 110, -47, 18, 53, -45, -102, -104, 123, -2, -71, 110, 41, 87, 126, -111, -52, -7, -126, 126, 58, -22, -24, 77, 71, 52,\n -125, -76, 38, -98, 58, -20, -96, 59, -2, -85, -46, -79, -37, 126, 59, 84, -23, 117, -114, 59, -17, -67, -73, 71, -69,\n 92, -81, -5, 62, 124, -22, -91, 3, -1, 43, -15, -55, 43, 111, 86, -23, -34, -115, -71, 60, -12, -47, 59, 83, -124,\n -85, -73, -75, 75, 127, 61, -15, -70, 3, 110, 61, -10, -35, -13, -98, 30, 66, 92, 122, 63, -66, -14, -69, -109, 127,\n 126, -10, -74, -95, -65, 126, -7, -36, -77, -1, 62, -4, -15, -53, 63, 63, -3, -11, -37, 127, 63, -2, -7, -21, -65,\n 63, -1, -3, -81, 24, 16, 0, 0, 59\n };\n}", "private void computeXY(int x, int y){\n\n for (int x1 = x-1; x1 <= x+1; x1++) {\n for (int y1 = y-1; y1 <= y+1; y1++) {\n switch ((int)generator.cellHashes.get(ccells.cell2Hash(x1,y1))){\n case 3:\n ncells.set(x1,y1,false);\n break;\n case 1:\n ncells.set(x1,y1,true);\n break;\n case 0:\n ncells.set(x1,y1,ccells.get(x1,y1));\n break;\n }\n }\n }\n }", "@Test\n public void test() {\n char[][] map = new char[][] {\n new char[]{ '1', '1', '1', '1', '0' },\n new char[]{ '1', '1', '0', '1', '0' },\n new char[]{ '1', '1', '0', '0', '0' },\n new char[]{ '0', '0', '0', '0', '0' },\n };\n assertThat(numIslands(map), equalTo(1));\n\n //11000\n //11000\n //00100\n //00011\n char[][] map2 = new char[][] {\n new char[]{ '1', '1', '0', '0', '0' },\n new char[]{ '1', '1', '0', '0', '0' },\n new char[]{ '0', '0', '1', '0', '0' },\n new char[]{ '0', '0', '0', '1', '1' },\n };\n assertThat(numIslands(map2), equalTo(3));\n }", "public void create(int [][] arr) {\n //default background image\n gc.drawImage(bg0, 0, 0);\n gc.drawImage(bg0, 1024,0);\n\n // traverses 2D array to creat map\n for(int i = 0; i < arr.length; i++) {\n for(int j = 0; j < arr[0].length; j++) {\n if(arr[i][j] == 0) {\n //blank space, for reference\n } else if(arr[i][j] == 1) { // make IndestructibleObject\n IndestructibleObject object = new IndestructibleObject(img0, j*64, i*64);\n mapList.add(object);\n } else if(arr[i][j] == 2) { // make DestructibleObject\n DestructibleObject object = new DestructibleObject(img1, j*64, i*64);\n mapList.add(object);\n } else if(arr[i][j] == 3) { // make power up\n PowerUpObject object = new PowerUpObject(img2, j*64+1, i*64, 1);\n powerList.add(object);\n } else if(arr[i][j] == 4) { // make power up\n PowerUpObject object = new PowerUpObject(img3, j*64+1, i*64, 2);\n powerList.add(object);\n } else if(arr[i][j] == 5) { // make power up\n PowerUpObject object = new PowerUpObject(img4, j*64+1, i*64, 3);\n powerList.add(object);\n } else if(arr[i][j] == 6) { // make power up\n PowerUpObject object = new PowerUpObject(img5, j*64+1, i*64, 4);\n powerList.add(object);\n }\n }\n }\n }", "private void intElementCoordinates() throws InvalidLevelCharacterException, NoGhostSpawnPointException, NoPacmanSpawnPointException, NoItemsException {\n\n\t\tint ps = 0;// player spawn point counter\n\t\tint gs = 0;// ghost spawn point counter\n\t\tint item = 0;// item counter\n\t\t\n\t\t\tfor (int i = 0; i < height; i++) {\n\t\t\t\tfor (int j = 0; j < width; j++) {\n\t\t\t\t\t// j*MAPDENSITY as x coordinate, i*MAPDENSITY as y\n\t\t\t\t\t// coordinate\n\t\t\t\t\tfloat[] xy = { j * MAPDENSITY, i * MAPDENSITY };\n\t\t\t\t\t// add coordinates in to right category\n\t\t\t\t\tif (mapElementStringArray[i][j].equals(\"X\")) {\n\t\t\t\t\t\tmapElementArray[i][j] = new Wall(new Vector2f(xy), getWallType(\n\t\t\t\t\t\t\t\ti, j));\n\t\t\t\t\t} else if (mapElementStringArray[i][j].equals(\" \")) {\n\t\t\t\t\t\tmapElementArray[i][j] = new Dot(new Vector2f(xy), getForksForPacman(i, j), getForksForGhost(i, j));\n\t\t\t\t\t\tdots.add((Dot)mapElementArray[i][j]);\n\t\t\t\t\t\titem++;\n\t\t\t\t\t} else if (mapElementStringArray[i][j].equals(\"P\")) {\n\t\t\t\t\t\tmapElementArray[i][j] = new PlayerSpawnPoint(new Vector2f(xy), getForksForPacman(i, j), getForksForGhost(i, j));\n\t\t\t\t\t\tplayerSpawnPoints.add((PlayerSpawnPoint)mapElementArray[i][j]);\n\t\t\t\t\t\taPlayerSpawnPointRow=i;\n\t\t\t\t\t\taPlayerSpawnPointCol=j;\n\t\t\t\t\t\tps++;\n\t\t\t\t\t} else if (mapElementStringArray[i][j].equals(\"G\")) {\n\t\t\t\t\t\tmapElementArray[i][j] = new GhostSpawnPoint(new Vector2f(xy),getForksForPacman(i, j), getForksForGhost(i, j));\n\t\t\t\t\t\tghostSpawnPoints.add((GhostSpawnPoint)mapElementArray[i][j]);\n\t\t\t\t\t\tgs++;\n\t\t\t\t\t} else if (mapElementStringArray[i][j].equals(\"B\"))\n\t\t\t\t\t\tmapElementArray[i][j] = new InvisibleWall(new Vector2f(xy), getForksForPacman(i, j), getForksForGhost(i, j));\n\t\t\t\t\telse if (mapElementStringArray[i][j].equals(\"S\")) {\n\t\t\t\t\t\tmapElementArray[i][j] = new SpeedUp(new Vector2f(xy), getForksForPacman(i, j), getForksForGhost(i, j));\n\t\t\t\t\t\tspeedUps.add((SpeedUp)mapElementArray[i][j]);\n\t\t\t\t\t\titem++;\n\t\t\t\t\t} else if (mapElementStringArray[i][j].equals(\"T\")){\n\t\t\t\t\t\tmapElementArray[i][j] = new Teleporter(new Vector2f(xy),getForksForPacman(i, j), getForksForGhost(i, j));\n\t\t\t\t\t\tteleporters.add((Teleporter)mapElementArray[i][j]);\n\t\t\t\t\t}\n\t\t\t\t\telse if (mapElementStringArray[i][j].equals(\"U\")) {\n\t\t\t\t\t\tmapElementArray[i][j] = new PowerUp(new Vector2f(xy), getForksForPacman(i, j), getForksForGhost(i, j));\n\t\t\t\t\t\tpowerUps.add((PowerUp)mapElementArray[i][j]);\n\t\t\t\t\t\titem++;\n\t\t\t\t\t} else\n\t\t\t\t\t\t// thrwo invalidLevelCharacterException\n\t\t\t\t\t\tthrow new InvalidLevelCharacterException(\n\t\t\t\t\t\t\t\tmapElementStringArray[i][j].charAt(0));\n\n\t\t\t\t}\n\t\t\t}\n\t\t\t// check for PacmanSpawnPoint, GhostSpawnPoint and item exceptions\n\t\t\tif (gs == 0)\n\t\t\t\tthrow new NoGhostSpawnPointException();\n\t\t\tif (ps == 0)\n\t\t\t\tthrow new NoPacmanSpawnPointException();\n\t\t\tif (item == 0)\n\t\t\t\tthrow new NoItemsException();\n\t\t\n\t}", "public void deployComputerShips() {\r\n\r\n\t\ttry {\r\n\t\t\tRandom rand = new Random();\r\n\t\t\tint carrierX = rand.nextInt(9);\r\n\t\t\tint carrierY = rand.nextInt(11);\r\n\r\n\t\t\tHashMap<Integer, Integer> Carrier = new HashMap<>();\r\n\t\t\tBoolean placed = false;\r\n\r\n\t\t\twhile (!placed) {\r\n\t\t\t\tif (check(carrierX, carrierY, \"horizontal\", 5)) {\r\n\t\t\t\t\tif ((carrierY + 5) <= 11) {\r\n\r\n\t\t\t\t\t\tfor (int i = 0; i < 5; i++) {\r\n\t\t\t\t\t\t\tCarrier.put((carrierY + i), carrierX);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tfor (int i = 0; i < 5; i++) {\r\n\t\t\t\t\t\t\tCarrier.put((carrierY - i), carrierX);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tplaced = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcarrierX = rand.nextInt(9);\r\n\t\t\t\t\tcarrierY = rand.nextInt(11);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tfor (Map.Entry<Integer, Integer> entry : Carrier.entrySet()) {\r\n\t\t\t\trandomGrid[entry.getValue()][entry.getKey()] = 1;\r\n\t\t\t}\r\n\r\n\t\t\tint battleShipX = rand.nextInt(9);\r\n\t\t\tint battleShipY = rand.nextInt(11);\r\n\r\n\t\t\tHashMap<Integer, Integer> BattleShip = new HashMap<>();\r\n\r\n\t\t\tplaced = false;\r\n\t\t\twhile (!placed) {\r\n\t\t\t\tif (check(battleShipX, battleShipY, \"vertical\", 4)) {\r\n\t\t\t\t\tif ((battleShipX + 4) < 9) {\r\n\r\n\t\t\t\t\t\tfor (int i = 0; i < 4; i++) {\r\n\t\t\t\t\t\t\tBattleShip.put((battleShipX + i), battleShipY);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tfor (int i = 0; i < 4; i++) {\r\n\t\t\t\t\t\t\tBattleShip.put((battleShipX - i), battleShipY);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tplaced = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tbattleShipX = rand.nextInt(9);\r\n\t\t\t\t\tbattleShipY = rand.nextInt(11);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tfor (Map.Entry<Integer, Integer> entry : BattleShip.entrySet()) {\r\n\r\n\t\t\t\trandomGrid[entry.getKey()][entry.getValue()] = 1;\r\n\t\t\r\n\t\t\t}\r\n\r\n\t\t\tint cruiserX = rand.nextInt(9);\r\n\t\t\tint cruiserY = rand.nextInt(11);\r\n\r\n\t\t\tHashMap<Integer, Integer> Cruiser = new HashMap<>();\r\n\t\t\tplaced = false;\r\n\t\t\twhile (!placed) {\r\n\t\t\t\tif (check(cruiserX, cruiserY, \"vertical\", 3)) {\r\n\t\t\t\t\tif ((cruiserX + 3) < 9) {\r\n\r\n\t\t\t\t\t\tfor (int i = 0; i < 3; i++) {\r\n\t\t\t\t\t\t\tCruiser.put((cruiserX + i), cruiserY);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tfor (int i = 0; i < 3; i++) {\r\n\t\t\t\t\t\t\tCruiser.put((cruiserX - i), cruiserY);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tplaced = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcruiserX = rand.nextInt(9);\r\n\t\t\t\t\tcruiserY = rand.nextInt(11);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tfor (Map.Entry<Integer, Integer> entry : Cruiser.entrySet()) {\r\n\r\n\t\t\t\trandomGrid[entry.getKey()][entry.getValue()] = 1;\r\n\t\t\r\n\t\t\t}\r\n\r\n\t\t\tint subX = rand.nextInt(9);\r\n\t\t\tint subY = rand.nextInt(11);\r\n\t\t\tHashMap<Integer, Integer> Submarine = new HashMap<>();\r\n\r\n\t\t\tplaced = false;\r\n\t\t\twhile (!placed) {\r\n\t\t\t\tif (check(subX, subY, \"vertical\", 3)) {\r\n\t\t\t\t\tif ((subX + 3) < 9) {\r\n\r\n\t\t\t\t\t\tfor (int i = 0; i < 3; i++) {\r\n\t\t\t\t\t\t\tSubmarine.put((subX + i), subY);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tfor (int i = 0; i < 3; i++) {\r\n\t\t\t\t\t\t\tSubmarine.put((subX - i), subY);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tplaced = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsubX = rand.nextInt(9);\r\n\t\t\t\t\tsubY = rand.nextInt(11);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (Map.Entry<Integer, Integer> entry : Submarine.entrySet()) {\r\n\r\n\t\t\t\trandomGrid[entry.getKey()][entry.getValue()] = 1;\r\n\t\t\r\n\t\t\t}\r\n\r\n\t\t\tint destroyerX = rand.nextInt(9);\r\n\t\t\tint destroyerY = rand.nextInt(11);\r\n\r\n\t\t\tHashMap<Integer, Integer> Destroyer = new HashMap<>();\r\n\r\n\t\t\tplaced = false;\r\n\t\t\twhile (!placed) {\r\n\t\t\t\tif (check(destroyerX, destroyerY, \"horizontal\", 2)) {\r\n\t\t\t\t\tif ((destroyerY + 2) < 11) {\r\n\r\n\t\t\t\t\t\tfor (int i = 0; i < 2; i++) {\r\n\t\t\t\t\t\t\tDestroyer.put((destroyerY + i), destroyerX);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tfor (int i = 0; i < 2; i++) {\r\n\t\t\t\t\t\t\tDestroyer.put((destroyerY - i), destroyerX);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tplaced = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tdestroyerX = rand.nextInt(9);\r\n\t\t\t\t\tdestroyerY = rand.nextInt(11);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tfor (Map.Entry<Integer, Integer> entry : Destroyer.entrySet()) {\r\n\r\n\t\t\t\trandomGrid[entry.getValue()][entry.getKey()] = 1;\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t}\r\n\r\n\t}", "private void generateMap () {\n for (int i = 0 ; i < n ; i++) {\n mapCoordinate[i] = new CoordinateInfo(100 * random.nextFloat(), 100 * random.nextFloat());\n\n for (int j = 0 ; j <= i ; j++) {\n mapDistance[i][j] = mapDistance[j][i] = getDistance(mapCoordinate[i], mapCoordinate[j]);\n }\n }\n }", "public void testing(){\n //-2 because the last one has the double bracket\n finalSites = new String[(sites.length -1)][10]; //the final 2d array to hold onto the sites\n for(int i = 0; i < (sites.length -1); i++) { //for all of the sites\n String temp = sites[i];\n String temp1 = temp.replaceAll(\"\\\"\", \"\"); // get rid of the \"\" around each thing\n String temp2 = temp1.replaceAll(\"\\\\[\", \"\"); //get rid of the brackets\n tempSites = temp2.split(\",\"); //split site info by comma\n for (int j = 0; j < tempSites.length; j++) { //from 0 -->10 (id, site id, lat, long....)\n finalSites[i][j] = tempSites[j]; //put the value into the final array\n if(i == (sites.length-2) && j == (tempSites.length -1)){ //sites.length - 2 && tempSites.length.\n makeMap(); //new method to help break up the code...\n break; //redundant\n }\n } //end j for\n } //end i for\n }", "protected abstract void setTile( int tile, int x, int y );", "public void loadStartingMap(int up_offset, int down_offset, int left_offset,\n int right_offset) {\n int counter = 0;\n for (int y = 0; y < MAP_HEIGHT; y++) {\n for (int x = 0; x < MAP_WIDTH; x++) {\n tiles[x][y] = new Tile(x * TILE_SIZE, y * TILE_SIZE,\n Constants.testMap[counter], true);\n backGroundTiles[x][y] = new Tile(x * TILE_SIZE, y * TILE_SIZE,\n Constants.testMap_base[counter], true);\n grassTiles[x][y] = new Tile(x * TILE_SIZE, y * TILE_SIZE,\n Constants.testMap_grass[counter], true);\n counter++;\n }\n }\n\n for (int i = 0; i < up_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustUp();\n }\n }\n for (int i = 0; i < down_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustDown();\n }\n }\n for (int i = 0; i < left_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustLeft();\n }\n }\n for (int i = 0; i < right_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustRight();\n }\n }\n\n this.setGrassTileRaw(Constants.testMap_grass); // used for IsInGrass\n this.id = 1;\n }", "public void adjustDown() {\n\n for (int y = 0; y < MAP_HEIGHT; y++)\n for (int x = 0; x < MAP_WIDTH; x++) {\n tiles[x][y].y = tiles[x][y].y + 4;\n backGroundTiles[x][y].y = backGroundTiles[x][y].y + 4;\n grassTiles[x][y].y = grassTiles[x][y].y + 4;\n }\n }", "void randomBlock() {\n\t\t// map generate (int map)\n\t\tfor (int i = 0; i < mapX; i += 2) {\n\t\t\tfor (int j = 0; j < mapY; j += 2) {\n\t\t\t\tint r = (int) Math.random() * 4;\n\t\t\t\tif (r == 0) {\n\t\t\t\t\ttileMap[i][j] = new Tile(i, j, 1);\n\t\t\t\t\ttileMap[i + 1][j] = new Tile(i + 1, j, 1);\n\t\t\t\t\ttileMap[i][j + 1] = new Tile(i, j + 1, 1);\n\t\t\t\t\ttileMap[i + 1][j + 1] = new Tile(i + 1, j + 1, 1);\n\n\t\t\t\t} else {\n\t\t\t\t\ttileMap[i][j] = new Tile(i, j, 0);\n\t\t\t\t\ttileMap[i + 1][j] = new Tile(i + 1, j, 0);\n\t\t\t\t\ttileMap[i][j + 1] = new Tile(i, j + 1, 0);\n\t\t\t\t\ttileMap[i + 1][j + 1] = new Tile(i + 1, j + 1, 0);\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.6573425", "0.64252716", "0.6412392", "0.633834", "0.63296705", "0.63097024", "0.6292321", "0.62848854", "0.62714887", "0.6263542", "0.62324727", "0.6217001", "0.620895", "0.6191016", "0.61800283", "0.6163542", "0.61543345", "0.6124065", "0.6096439", "0.6093784", "0.60786", "0.60715145", "0.6045653", "0.6039345", "0.6024796", "0.60221267", "0.6015224", "0.60023403", "0.5989975", "0.5987201", "0.5984484", "0.5952615", "0.5943153", "0.5935122", "0.59179574", "0.5893577", "0.58858424", "0.5874694", "0.587275", "0.58726937", "0.58708584", "0.58650076", "0.5826532", "0.58171195", "0.58020514", "0.5801649", "0.58009326", "0.5791359", "0.57912517", "0.5790537", "0.5783656", "0.5780559", "0.57795435", "0.57647073", "0.5756462", "0.575474", "0.5734056", "0.57335925", "0.57229793", "0.5718056", "0.57157046", "0.5710102", "0.57023144", "0.5699607", "0.5693214", "0.5693114", "0.56667435", "0.5662601", "0.56616986", "0.5657979", "0.5657282", "0.56519073", "0.5651816", "0.5647449", "0.56397325", "0.5637681", "0.5627514", "0.5622795", "0.56220824", "0.56201965", "0.5619413", "0.56135046", "0.5612645", "0.56072676", "0.56072676", "0.5598524", "0.5589338", "0.55844074", "0.55837333", "0.5581074", "0.55792344", "0.55785805", "0.55768263", "0.5567463", "0.55637395", "0.5561945", "0.55610883", "0.55570513", "0.554953", "0.5549525", "0.5547351" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { Scanner scan = new Scanner(System.in); System.out.println("Enter string"); String input1 = scan.next(); String input2 = scan.next(); checkPermutations(input1,input2); }
{ "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
loading methods Method to load categories from server.
private void loadCategories(CategoriesCallback callback) { CheckItemsActivity context = this; makeRestGetRequest(RestClient.CATEGORIES_URL, (success, response) -> { if (!success) { Toast.makeText(context, LOAD_CATEGORIES_FAIL, Toast.LENGTH_SHORT).show(); // TODO: finish activity } else { try { categories = ModelsBuilder.getCategoriesFromJSON(response); // set categories list to spinner (common category spinner) and listener for it ArrayAdapter<String> spinnerAdapter = new ArrayAdapter<>(context, android.R.layout.simple_spinner_item, categories); spinnerAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); categorySpinner.setAdapter(spinnerAdapter); categorySpinner.setOnItemSelectedListener(new OnCommonCategorySelected()); } catch (JSONException e) { success = false; Log.d(DEBUG_TAG, "Load categories parsing fail"); } } // inform waiting entities (e.g. waiting for items list loading start) callback.onLoadedCategories(success); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void loadCategories() {\n loadCategories(mFirstLoad, true);\n mFirstLoad = false;\n }", "private void loadCategories() {\n\t\tcategoryService.getAllCategories(new CustomResponseListener<Category[]>() {\n\t\t\t@Override\n\t\t\tpublic void onHeadersResponse(Map<String, String> headers) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onErrorResponse(VolleyError error) {\n\t\t\t\tLog.e(\"EditTeamProfileActivity\", \"Error while loading categories\", error);\n\t\t\t\tToast.makeText(EditTeamProfileActivity.this, \"Error while loading categories \" + error.getMessage(), Toast.LENGTH_LONG).show();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onResponse(Category[] response) {\n\t\t\t\tCollections.addAll(categories, response);\n\n\t\t\t\tif (null != categoryRecyclerAdapter) {\n\t\t\t\t\tcategoryRecyclerAdapter.setSelected(0);\n\t\t\t\t\tcategoryRecyclerAdapter.notifyDataSetChanged();\n\t\t\t\t}\n\n\t\t\t\tupdateSelectedCategory();\n\t\t\t}\n\t\t});\n\t}", "void loadCategoriesAsync(OnCategoryLoad onCategoryLoad);", "public void getRemoteCategories() {\n //check for connection if true go to apihelper and get model else check if these model cached so get it\n url = getAllCategoriesWithoutItems;\n params = new HashMap<>();\n params.put(param_securitykey, param_securitykey);\n if (ApiHelper.checkInternet(mContext)) {\n mApiHelper.getCategories(mIRestApiCallBack, true, url, params);\n } else {\n //Toast.makeText(mContext, mContext.getString(R.string.noInternetConnection), Toast.LENGTH_LONG).show();\n mIRestApiCallBack.onNoInternet();\n CacheApi cacheApi = loadCacheData(url, params);\n mSqliteCallBack.onDBDataObjectLoaded(cacheApi);\n }\n\n }", "public synchronized ActionCategories loadMedicalActionCategories()\n\t{\n\t\t// if action categories is null\n\t\tif (medicalActionCategories == null)\n\t\t{\n\t\t\t// create an xml serializator\n\t\t\tSimpleXMLSerializator serializator = new SimpleXMLSerializator();\n\t\t\t// Open categories file\n\t\t\tFile categoriesFile = new File(StorageModule.getInstance().getBasePath() + \"/\" + CATEGORIES_RELATIVE_PATH);\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// load medicalactions categories\n\t\t\t\tmedicalActionCategories = (ActionCategories) serializator.deserialize(categoriesFile, ActionCategories.class);\n\t\t\t} catch (Exception e)\n\t\t\t{\n\t\t\t\tlog.error(\"An error ocurred while reading categories file.\", e);\n\t\t\t\tmedicalActionCategories = new ActionCategories();\n\t\t\t}\n\t\t}\n\t\treturn medicalActionCategories;\n\t}", "private void loadData() {\r\n\t\talert(\"Loading data ...\\n\");\r\n \r\n // ---- categories------\r\n my.addCategory(new Category(\"1\", \"VIP\"));\r\n my.addCategory(new Category(\"2\", \"Regular\"));\r\n my.addCategory(new Category(\"3\", \"Premium\"));\r\n my.addCategory(new Category(\"4\", \"Mierder\"));\r\n \r\n my.loadData();\r\n \r\n\t }", "private void getCategoryList() {\n jsonArray = dataBaseHelper.getCategoriesFromDB();\n if (jsonArray != null && jsonArray.length() > 0) {\n rvCategories.setVisibility(View.VISIBLE);\n setupCategoryListAdapter(jsonArray);\n }else {\n rvCategories.setVisibility(View.GONE);\n Toast.makeText(getActivity(), Constants.ERR_NO_CATEGORY_FOUND, Toast.LENGTH_SHORT).show();\n }\n }", "@GetMapping(\"/categoriesfu\")\n public synchronized List<Category> getAllCategories() {\n log.debug(\"REST request to get a page of Categories\");\n //fu\n final String user =SecurityUtils.getCurrentUserLogin().get();\n final UserToRestaurant userToRestaurant=userToRestaurantRepository.findOneByUserLogin(user);\n final Restaurant restaurant=userToRestaurant.getRestaurant();\n return categoryRepository.findAllByRestaurant(restaurant);\n }", "public List<Categorie> getAllCategories();", "private void populateCategories() {\n\n AsyncHttpClient client = new AsyncHttpClient();\n client.addHeader(\"Authorization\", \"Token token=\" + user.getToken().getAccess_token());\n client.get(LoginActivity.API_ROOT + \"events/\" + currEvent.getId() + \"/categories\",\n new BaseJsonHttpResponseHandler<Category[]>() {\n @Override\n public void onSuccess(int statusCode, Header[] headers, String rawJsonResponse,\n Category[] response) {\n categories_lv = (ListView) findViewById(R.id.categories_lv);\n// categoriesArr = response;\n\n // Make the first Category as \"All\" so that all teams can be shown\n // All retrieved categories will be put after \"All\"\n categoriesArr = new Category[response.length + 1];\n categoriesArr[0] = new Category(0, currEvent.getId(), \"All\", null, 0, null,\n teamsArr);\n System.arraycopy(response, 0, categoriesArr, 1, response.length);\n\n categories_lv.setAdapter(new CategoryAdapter(SelectionActivity.this,\n categoriesArr));\n categories_lv.setOnItemClickListener(new CategoryClickListener());\n\n Log.d(\"GET CATEGORIES\", \"success\");\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, Throwable error,\n String rawJsonData, Category[] errorResponse) {\n Log.d(\"GET CATEGORIES\", \"failure\");\n }\n\n @Override\n protected Category[] parseResponse(String rawJsonData, boolean isFailure)\n throws Throwable {\n\n if (!isFailure) {\n // Need to extract array from the first/outer JSON object\n JSONArray teamsJSONArr = new JSONObject(rawJsonData)\n .getJSONArray(\"event_categories\");\n return new Gson().fromJson(teamsJSONArr.toString(), Category[].class);\n } else return null;\n }\n });\n }", "List<Category> getAllCategories();", "public Category loadCategoryTree() {\n Category categoryTree = null;\n try {\n DataBaseBroker dbb = new DataBaseBroker();\n dbb.loadDriver();\n dbb.establishConnection();\n categoryTree = dbb.loadCategoryTree();\n dbb.commit();\n dbb.closeConnection();\n } catch (Exception ex) {\n Logger.getLogger(GameDBLogic.class.getName()).log(Level.SEVERE, null, ex);\n }\n return categoryTree;\n }", "private void initialiseCategories() {\n\t\t_nzCategories = BashCmdUtil.bashCmdHasOutput(\"ls categories/nz\");\n\t\t_intCategories = BashCmdUtil.bashCmdHasOutput(\"ls categories/international\");\n\t}", "private void _loadCatalog() {\n if (discoveryEndpoint != null) {\n try {\n ResponseEntity<String> response = restTemplate.getForEntity(discoveryEndpoint, String.class);\n\n if (response.getStatusCode() == HttpStatus.OK) {\n String body = response.getBody();\n this.catalog = CdsHooksUtil.GSON.fromJson(body, CdsHooksCatalog.class);\n startPendingRequests();\n return;\n }\n } catch (Exception e) {\n log.warn(\"Failed to load CDS catalog for \" + discoveryEndpoint\n + \".\\nRetries remaining: \" + retries + \".\");\n }\n\n retry();\n }\n }", "private void getAnimalCategory() {\n mProgressBar.setVisibility(View.VISIBLE);\n VolleyInvokeWebService volleyClient = new VolleyInvokeWebService(this, VolleyInvokeWebService.JSON_TYPE_REQUEST, this, Request.Method.GET);\n volleyClient.hitWithOutTokenService(Constants.GET_ANIMAL_CATEGORY, null, GET_ANIMAL_CATEGORY_TAG);\n }", "@RequestMapping(value = \"/categories\", method = RequestMethod.GET, produces = \"application/json\")\n public Collection<String> getCategories() {\n return this.datasetService.getCategories();\n }", "public void Categories() {\n final ProgressDialog dialog = new ProgressDialog(getActivity());\n dialog.setCanceledOnTouchOutside(false);\n dialog.setMessage(\"Please Wait...\");\n dialog.show();\n\n Call<Categories> logincall = apiInterface.categoriespojo();\n logincall.enqueue(new Callback<Categories>() {\n @Override\n public void onResponse(Call<Categories> call, Response<Categories> response) {\n dialog.dismiss();\n if (response.body().getStatus() == 1) {\n if (Constants.categoriesData != null) {\n Constants.categoriesData.clear();\n }\n if (!Constants.categoriesData.equals(\"\") && Constants.categoriesData != null) {\n Constants.categoriesData.addAll(response.body().getData());\n CategoryAdapter adapter = new CategoryAdapter(getActivity());\n recycler_view.setAdapter(adapter);\n if (adapter != null)\n adapter.notifyDataSetChanged();\n } else {\n Toast.makeText(getActivity(), response.body().getMsg(), Toast.LENGTH_SHORT).show();\n }\n }\n }\n\n @Override\n public void onFailure(Call<Categories> call, Throwable t) {\n dialog.dismiss();\n Helper.showToastMessage(activity, \"No Internet Connection\");\n }\n });\n }", "@Override\n\n // If the request is succesfull\n public void onResponse(JSONObject response) {\n try {\n JSONArray categoriesArray = response.getJSONArray(\"categories\");\n for (int i = 0; i < categoriesArray.length(); i++){\n categories.add(categoriesArray.getString(i));\n }\n }\n catch (JSONException e) {\n Log.e(\"Request\", e.getMessage());\n }\n activity.gotCategories(categories);\n }", "public void loadCategoryAdapter() {\n categoryAdapter = new CategoryAdapter(context, sectionItemsWithHeaders);\n listView.setAdapter(categoryAdapter);\n }", "@Override\n protected ArrayList<Categorie> doInBackground(String... urls) {\n Log.i(\"smart\", \"DoInBackground\");\n ArrayList<Categorie> categories = CategorieSQL.selectAll();\n return categories;\n }", "private void readCategories() throws Exception {\n\t\t//reads files in nz category\n\t\tif (_nzCategories.size() > 0) {\n\t\t\tfor (String category: _nzCategories) {\n\t\t\t\t// read each individual line from the category files and store it\n\t\t\t\ttry {\n\t\t\t\t\tFile file = new File(\"categories/nz/\", category);\n\t\t\t\t\tScanner myReader = new Scanner(file);\n\t\t\t\t\tList<String> allLines = new ArrayList<String>();\n\t\t\t\t\twhile(myReader.hasNextLine()) {\n\t\t\t\t\t\tString fileLine = myReader.nextLine();\n\t\t\t\t\t\tallLines.add(fileLine);\n\t\t\t\t\t}\n\t\t\t\t\tList<String> copy = new ArrayList<String>(allLines);\n\t\t\t\t\t_nzData.put(category, copy);\n\t\t\t\t\tallLines.clear();\n\t\t\t\t\tmyReader.close();\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//reads file in international categories\n\t\tif (_intCategories.size() > 0) {\n\t\t\tfor (String category: _intCategories) {\n\t\t\t\t// read each individual line from the category files and store it\n\t\t\t\ttry {\n\t\t\t\t\tFile file = new File(\"categories/international/\", category);\n\t\t\t\t\tScanner myReader = new Scanner(file);\n\t\t\t\t\tList<String> allLines = new ArrayList<String>();\n\t\t\t\t\twhile(myReader.hasNextLine()) {\n\t\t\t\t\t\tString fileLine = myReader.nextLine();\n\t\t\t\t\t\tallLines.add(fileLine);\n\t\t\t\t\t}\n\t\t\t\t\tList<String> copy = new ArrayList<String>(allLines);\n\t\t\t\t\t_intData.put(category, copy);\n\t\t\t\t\tallLines.clear();\n\t\t\t\t\tmyReader.close();\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void loadCatalog() {\n try {\n log.info(\"Attempting to retrieve CDS Hooks catalog from \" + discoveryEndpoint + \"...\");\n ThreadUtil.getApplicationThreadPool().execute(createThread());\n } catch (Exception e) {\n log.error(\"Error attempting to retrieve CDS Hooks catalog from \" + discoveryEndpoint, e);\n retry();\n }\n }", "@Override\n public List<Category> getCategoriesFromUrl(long companyId, long groupId, CategoryType categoryType, String otherFeedTypeUrl, String languageId, String userName) {\n\n String categoriesUrl = categoryType.equals(CategoryType.OTHER) ? otherFeedTypeUrl : getCommonConfigurationService().getCasinoCategoriesUrl(companyId, groupId, categoryType);\n String categoriesBackupUrl = getCommonConfigurationService().getCasinoCategoriesBackupUrl(companyId, groupId, categoryType);\n String casinoFeedsAPIBaseURL = getCommonConfigurationService().getCasinoFeedsAPIBaseUrl(companyId, groupId);\n String gamesURL = getCommonConfigurationService().getCasinoGamesUrl(companyId, groupId);\n\n boolean noCategoriesUrl = StringUtils.isEmpty(categoriesUrl) && StringUtils.isEmpty(casinoFeedsAPIBaseURL) && StringUtils.isEmpty(categoriesBackupUrl);\n if (noCategoriesUrl || StringUtils.isEmpty(gamesURL)) {\n return Collections.emptyList();\n }\n\n List<Category> categories = Collections.emptyList();\n\n try {\n\n if (StringUtils.isNotEmpty(categoriesUrl)) {\n categories = getCategoriesByURL(categoriesUrl, groupId);\n }\n\n if (StringUtils.isNotEmpty(casinoFeedsAPIBaseURL) && CollectionUtils.isEmpty(categories)) {\n\n Validate.notEmpty(languageId, \"Language can't be null or empty!\");\n Validate.notEmpty(casinoFeedsAPIBaseURL, \"Base url can't be null or empty!\");\n String casinoId = getCommonConfigurationService().getCasinoId(companyId, groupId);\n Validate.notEmpty(casinoId, \"Casino name can't be null or empty!\");\n String serviceURL = casinoAPIHelper.getCategoriesUrl(companyId, groupId, casinoFeedsAPIBaseURL, casinoId,\n categoryType);\n Validate.notEmpty(serviceURL, \"Categories service url can't be null or empty!\");\n log.debug(\"baseURL = {}\", casinoFeedsAPIBaseURL);\n log.debug(\"serviceURL = {}\", serviceURL);\n\n categories = getCategories(HttpClientUtil.doGet(serviceURL, PlayerMode.REAL.getName(), userName, \"\", languageId));\n\n }\n } catch (Exception e) {\n log.error(e.getMessage(), e);\n String backupURL = getCommonConfigurationService().getCasinoCategoriesBackupUrl(companyId, groupId, categoryType);\n if (StringUtils.isNotEmpty(backupURL)) {\n try {\n categories = getCategoriesByURL(backupURL, groupId);\n } catch (Exception e1) {\n throw new PlatformException(e1);\n }\n }\n }\n\n return categories;\n }", "public com.google.common.util.concurrent.ListenableFuture<io.reactivesw.catalog.grpc.CategoryList> getCategories(\n io.reactivesw.catalog.grpc.Empty request) {\n return futureUnaryCall(\n getChannel().newCall(METHOD_GET_CATEGORIES, getCallOptions()), request);\n }", "public List<String> getCategories();", "void getCategories(Callback activity){\n this.activity = activity;\n String url = \"https://resto.mprog.nl/categories\";\n\n RequestQueue queue = Volley.newRequestQueue(context);\n try {\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(url, null, this, this);\n queue.add(jsonObjectRequest);\n }\n catch (Exception error){\n\n // Return an error message if the request is not succesfull\n Log.e(\"Request\", error.getMessage());\n }\n }", "private interface CategoriesCallback {\n void onLoadedCategories(boolean success);\n }", "public controladorCategorias() {\r\n }", "public void librosPorCategorian() {\n\t\tJDBCTemplate mysql = MysqlConnection.getConnection();\n\t\ttry {\n\t\t\tmysql.connect();\n\t\t\tCategoriaDAO OwlDAO = new CategoriaDAO();\n\t\t\tList<LibroVO> resultado = new ArrayList();\n\t\t\tOwlDAO.actualizarCategorian(mysql);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace(System.err);\n\n\t\t} finally {\n\t\t\tmysql.disconnect();\n\t\t}\n\t}", "List<Category> lisCat() {\n return dao.getAll(Category.class);\n }", "List<Category> getAllCategories() throws DataBaseException;", "public void getCategories(String uri) {\n StringRequest request = new StringRequest(uri,\n response -> {\n JSONObject responseObject;\n JSONArray responseArray;\n\n try {\n // Get JSON object and array of data\n responseObject = new JSONObject(response);\n responseArray = responseObject.getJSONArray(\"categories\");\n ArrayList<String> categories = new ArrayList<>();\n\n // Add every found string to the ArrayList\n for (int i = 0; i < responseArray.length(); i++) {\n String category = responseArray.getString(i);\n categories.add(category);\n }\n // Use an adapter and the ArrayList to feed the list\n CategoryAdapter adapter = new CategoryAdapter(mContext, R.layout.list_item_category, categories);\n lv.setAdapter(adapter);\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n },\n error -> Toast.makeText(mContext, R.string.error_network, Toast.LENGTH_SHORT).show());\n RequestQueue queue = Volley.newRequestQueue(this);\n queue.add(request);\n }", "public void fetchCategories(final IViewCallback<JSONObject> callback) {\n Payload payload = new Payload();\n payload.add(\"key\", \"ajkT14Asdfe526fasdfJKCckecsdps\");\n payload.add(\"command\", \"fetch_categories\");\n\n Request request = RequestFactory.createRequest(\n HttpMethod.POST, \"http://stage.overboxd.com/index.php/generalqcapi\", null, payload, null, 60000, null, null);\n\n VolleyQueueUtils.getGeneralRequestQueue().add(new VolleyStringRequest(request, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n try {\n\n HttpResponse<JSONObject> httpResponse = new HttpResponse<>(\n new HttpResponseStatus(),\n new JSONObject(response)\n );\n\n notifyResponse(httpResponse, callback);\n\n } catch (JSONException e) {\n Log.d(\"Tag\",\"fetchcategory mein prob\");\n\n\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n }));\n }", "public ArrayList<TagCategory> loadTaglist() {\n\t\tFile src = new File(directory, FILENAME_TAGS);\n\t\treturn storageReader.loadTaglist(src);\n\t}", "public synchronized static void loadCategoryCatch(GoodsService goodsService) {\n\tList<CategoryForShow> tempList = goodsService.selectShowCategory();\r\n\tCache t= new Cache();\r\n\tt.setValue(tempList);\r\n\tt.setTimeOut(System.currentTimeMillis()+3600000);\r\n\tCacheManager.clearOnly(\"category\");\r\n\tCacheManager.putCache(\"category\", t);\r\n\t//t=null;\r\n}", "public final void readCategoria() {\n cmbCategoria.removeAllItems();\n cmbCategoria.addItem(\"\");\n categoryMapCategoria.clear();\n AtividadePreparoDAO atvprepDAO = new AtividadePreparoDAO();\n for (AtividadePreparo atvprep : atvprepDAO.readMotivoRetrabalho(\"Categoria\")) {\n Integer id = atvprep.getMotivo_retrabalho_id();\n String name = atvprep.getMotivo_retrabalho();\n cmbCategoria.addItem(name);\n categoryMapCategoria.put(id, name);\n }\n }", "@GetMapping(\"/category\")\n\t public ResponseEntity<List<Category>> getcategorys() {\n\n\t List<Category> list = categoryService.getAllcategorys();\n\t if (list.size() <= 0) {\n\t return ResponseEntity.status(HttpStatus.NOT_FOUND).build();\n\t }\n\t return ResponseEntity.status(HttpStatus.CREATED).body(list);\n\t }", "public void readInCategories() {\n // read CSV file for Categories\n allCategories = new ArrayList<Category>();\n InputStream inputStream = getResources().openRawResource(R.raw.categories);\n CSVFile csvFile = new CSVFile(inputStream);\n List scoreList = csvFile.read();\n // ignore first row because it is the title row\n for (int i = 1; i < scoreList.size(); i++) {\n String[] categoryInfo = (String[]) scoreList.get(i);\n\n // inputs to Category constructor:\n // String name, int smallPhotoID, int bannerPhotoID\n\n // get all image IDs according to the names\n int smallPhotoID = context.getResources().getIdentifier(categoryInfo[1], \"drawable\", context.getPackageName());\n int bannerPhotoID = context.getResources().getIdentifier(categoryInfo[2], \"drawable\", context.getPackageName());\n allCategories.add(new Category(categoryInfo[0],smallPhotoID, bannerPhotoID));\n\n //System.out.println(\"categoryInfo: \" + categoryInfo[0] + \" \" + categoryInfo[1] + \" \" + categoryInfo[2]);\n }\n }", "List<ProductCategory> getAll();", "private void loadData()\n {\n if (isAdded() && !getActivity().isFinishing())\n {\n // progress.show();\n RestClient.GitApiInterface service = RestClient.getClient();\n\n Call<CategoryHolder> call = service.getCategory(helper.getB64Auth(getActivity()),\"application/json\", \"application/json\");\n //Call call1=service.getCategory();\n call.enqueue(new Callback<CategoryHolder>() {\n @Override\n public void onResponse(Response<CategoryHolder> response) {\n // progress.dismiss();\n Log.d(\"NewCheckout\", \"Status Code = \" + response.code());\n if (response.isSuccess()) {\n try {\n CategoryHolder result = response.body();\n categoryObject = new JSONObject(result.getCategories().getAsJsonObject().toString());\n idCat = new String[categoryObject.length()];\n catName = new String[categoryObject.length()];\n Iterator<?> keys = categoryObject.keys();\n ArrayList<String> keyList = new ArrayList();\n while (keys.hasNext()) {\n keyList.add((String) keys.next());\n }\n Collections.sort(keyList);\n\n for (String key : keyList) {\n int rootCount = 0;\n\n JSONObject object = categoryObject.getJSONObject(key);\n String name = object.getString(\"category\");\n String id = object.getString(\"category_id\");\n\n String url = \"\";\n if (object.has(\"main_pair\")) {\n JSONObject js = object.getJSONObject(\"main_pair\");\n JSONObject js_obj = js.getJSONObject(\"detailed\");\n url = js_obj.getString(\"http_image_path\");\n }\n\n if (object.has(\"subcategories\")) {\n\n JSONArray parentObject = object.getJSONArray(\"subcategories\");\n int parentCount = 0;\n for (int i = 0; i < parentObject.length(); i++) {\n JSONObject objectChild = parentObject.getJSONObject(i);\n//\n if (objectChild.has(\"subcategories\")) {\n int childCount = 0;\n JSONArray childObject = objectChild.getJSONArray(\"subcategories\");\n for (int j = 0; j < childObject.length(); j++) {\n // String childKey = (String) parentKeys.next();\n JSONObject child = childObject.getJSONObject(j);\n int count = child.optInt(\"product_count\");\n childCount += count;\n\n\n }\n parentCount += childCount;\n }\n\n\n }\n if (parentCount == 0)\n rootCount += 1;\n else\n rootCount += parentCount;\n }\n final GridRow gridRow = new GridRow(url, name, id);\n gridRow.id = id;\n gridRow.setCount(rootCount);\n gridRow.subCategories = object.has(\"subcategories\");\n if (getActivity() != null) {\n getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mAdapter.add(gridRow);\n }\n });\n }\n\n //Log.i(\"CATEGORY--\", name);\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n } else {\n // response received but request not successful (like 400,401,403 etc)\n //Handle errors\n\n }\n }\n\n @Override\n public void onFailure(Throwable t) {\n progress.dismiss();\n\n if (getActivity() != null && !getActivity().isFinishing()) {\n new AlertDialogManager().showAlertDialog(getActivity(),\n getString(R.string.error),\n getString(R.string.server_error));\n }\n }\n });\n }\n\n }", "public void setCategories(Categories categories) {\n this.categories = categories;\n }", "TrackerListCategory loadTrackerListCategory(final Integer id);", "List<Category> getCategories() throws DAOExceptionHandler;", "WebBookNewsCateListResult listAllBookNewsCategories();", "public void initialize() {\n category = new LocalSessionCategory();\n\n Object object = getObject(CATEGORY_ID);\n\n if(object instanceof Integer) {\n category.setCategoryId((Integer) object);\n }else {\n Log.e(CLASS_NAME, \"Attempting to retrieve category ID failed, as the database returned a non-string data type\");\n }\n\n object = getObject(CATEGORY_NAME);\n\n if(object instanceof String) {\n category.setCategoryName((String) object);\n }else {\n Log.e(CLASS_NAME, \"Attempting to retrieve category name failed, as the database returned a non-string data type\");\n }\n\n object = getObject(SESSIONS);\n\n if(object instanceof JSONArray) {\n try {\n JSONArray jsonPresenters = (JSONArray) object;\n int[] sessions = new int[jsonPresenters.length()];\n for (int i = 0; i < jsonPresenters.length(); i++) {\n sessions[i] = jsonPresenters.getInt(i);\n }\n category.setSessions(sessions);\n }catch (Exception e){\n category.setSessions(new int[0]);\n }\n }else {\n Log.e(CLASS_NAME, \"Attempting to retrieve list of session IDs failed, as the database returned a non-string data type\");\n }\n }", "public io.reactivesw.catalog.grpc.CategoryList getCategories(io.reactivesw.catalog.grpc.Empty request) {\n return blockingUnaryCall(\n getChannel(), METHOD_GET_CATEGORIES, getCallOptions(), request);\n }", "private void renderCategories(){\n int[] arr = {1, 3, 6, 8, 10};\r\n for (int i : arr) requestQueue.add(getDataFromServer(webURL, String.valueOf(i)));\r\n }", "public static void showCategories() throws IOException {\n Main.FxmlLoader(CATEGORY_PATH);\n }", "ListCategoryResponse listCategories(ListCategoryRequest request);", "public static List<Category> getAllCategory() {\n\n List<Category> categoryList = new ArrayList<>();\n try {\n categoryList = Category.listAll(Category.class);\n } catch (Exception e) {\n\n }\n return categoryList;\n\n }", "private void loadItems() {\n CheckItemsActivity context = this;\n makeRestGetRequest(String.format(Locale.getDefault(),\n RestClient.ITEMS_URL, checkId), (success, response) -> {\n if (!success) {\n Log.d(DEBUG_TAG, \"Load items fail\");\n Toast.makeText(context, LOAD_ITEMS_FAIL, Toast.LENGTH_SHORT).show();\n } else {\n try {\n items = ModelsBuilder.buildItemsFromJSON(response);\n // pass loaded items and categories to adapter and set adapter to Recycler View\n itemsListAdapter = new ItemsListAdapter(items, categories, context);\n recyclerView.setAdapter(itemsListAdapter);\n } catch (JSONException e) {\n Log.d(DEBUG_TAG, \"Load items parsing fail\");\n }\n }\n // set loading progress bar to invisible when loading is finished\n progressBar.setVisibility(View.INVISIBLE);\n });\n }", "@Override\n\t\tprotected void onPostExecute(List<Category> categories) {\n\t\t\tsuper.onPostExecute(categories);\n\t\t\t\n\t\t\tLog.d(Constants.AppName, \"CategoryActivity->GetCategories->onPostExecute\");\n\t\t\t\n\t\t\tListView listView = (ListView) findViewById(R.id.listViewCategories);\n\t\t\tCategoriesAdapter categoriesAdapter = new CategoriesAdapter(categories);\n\t\t\tlistView.setAdapter(categoriesAdapter);\n\t\t}", "@Override\r\n\tpublic List<Category> getAllCategory() {\n\t\treturn categoryDao.getAll();\r\n\t}", "@RequestMapping(value = \"/categories\", method = RequestMethod.GET)\n\tpublic @ResponseBody List<Category> categoryListRest() {\n\t\treturn (List<Category>) CatRepo.findAll();\n\t}", "public interface Categories {\n List<String> all();\n List<String> getAdCategories(Ad ad);\n void linkCategories(long id, String[] categories);\n}", "void updateUsedCategoriesContent() {\n try{\n InputStream inputStream = DMOZCrawler.class.getResourceAsStream(\"Used_categories.txt\");\n InputStreamReader inputStreamReader = new InputStreamReader(inputStream);\n BufferedReader bufferedReader = new BufferedReader(inputStreamReader);\n HashSet<String> usedCategories = new HashSet<>();\n\n String currentLine;\n while ((currentLine = bufferedReader.readLine()) != null){\n usedCategories.add(currentLine.toLowerCase());\n System.out.println(\"Used category added :: \" + currentLine);\n }\n\n System.out.println(usedCategories);\n\n for(String id : usedCategories){\n categoryContent(Integer.parseInt(id));\n }\n } catch (Exception exception){\n exception.printStackTrace();\n }\n }", "@GET\n @Path(\"/list\")\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.APPLICATION_JSON)\n public Response getCategories(@javax.ws.rs.core.Context UriInfo uriInfo) {\n List categoryList = categoryRepository.selectAllVisible();\n Category category;\n SuccessMessage successMessage = new SuccessMessage();\n successMessage.setCode(Response.Status.OK.getStatusCode());\n successMessage.setStatus(\"success\");\n String url = uriInfo.getAbsolutePath().toString();\n successMessage.addLink(url, \"self\");\n\n if (categoryList.size() != 0) {\n successMessage.setMessage(\"categories retrieved\");\n for (int i = 0; i < categoryList.size(); i++) {\n JSONObject jsonObject = new JSONObject();\n category = (Category) categoryList.get(i);\n jsonObject.put(\"name\", category.getCategoryName());\n jsonObject.put(\"description\", category.getCatDescription());\n successMessage.addData(jsonObject);\n successMessage.addLink(BASE_URL + \"subcategories/category/\" + category.getCategoryName().replaceAll(\" \", \"%20\"), \"subcategories of \" + category.getCategoryName().toString());\n }\n } else {\n successMessage.setMessage(\"no categories to retrieve\");\n }\n return Response.status(Response.Status.OK).entity(successMessage)\n .header(\"Access-Control-Allow-Origin\", propertyReader.readProperty(\"Access-Control-Allow-Origin\"))\n .build();\n }", "public Category() {\n\t\tsuper();\n\t\t/* Pour obtenir le chemin de fichier vers la catégorie */\n\t\tpath = \"src/\"+this.getClass().getPackage().getName().replace('.', '/');\n\t\twindowspath = \"src\\\\\"+this.getClass().getPackage().getName().replace('.', '\\\\');\n\t\t\n\t\timages = this.getPhotos();\n\t}", "public List<ProductCatagory> getAllCategory() throws BusinessException;", "public static void loopCategories() throws IOException {\n //If all of the categories haven't been checked yet check the response at the current index (count).\n if (count < CATEGORY_ARRAY_SIZE) {\n //If that response if equal to TRUE (1).\n if (currentUser.getSingleCategory(count) == TRUE) {\n //Adjust the start index.\n startIndex = count * LOCATIONS_PER_CATEGORY;\n //Call the locaitons view.\n Main.FxmlLoader(LOCATIONS_PATH);\n }\n //Otherwise increment count and check the next index recursively.\n else {\n count++;\n loopCategories();\n }\n }\n }", "public void LoadTexts(String idCategory, String nameCategory, String imageCategory) {\n textViewCategory.setText(nameCategory);\n Picasso.with(getActivity())\n .load(imageCategory)\n .error( R.drawable.logo_circular )\n .placeholder( R.drawable.logo_circular )\n .into( imageViewCategory );\n LoadSubcategory(idCategory);\n LoadProducts(idCategory);\n }", "@Override\n\tpublic List<Category> getAllCategory() {\n\t\treturn dao.getAllCategory();\n\t}", "List<Category> getAllCategories() throws DaoException;", "@Override\n\tpublic List<Category> getAllCategory() {\n\t\treturn category.selectAllCategory();\n\t}", "private void listadoCategorias() {\r\n sessionProyecto.getCategorias().clear();\r\n sessionProyecto.setCategorias(itemService.buscarPorCatalogo(CatalogoEnum.CATALOGOPROYECTO.getTipo()));\r\n }", "public String getCategoryListing(){\n\t\tCategoryDAO daoObject = new CategoryDAO();\n\t\tString result = \"\";\n\t\t/*if(requestCall.equalsIgnoreCase(\"table\")){\n\t\t\t//System.out.println(\"in getCategoryListing service call table\");\n\t\t\tresult = daoObject.getCategoriesAndSubCategories();\n\t\t}else{\n\t\t\tresult = daoObject.getCategories(); \n\t\t}*/\n\t\t//result = daoObject.getCategoriesAndSubCategories();\n\t\tresult = daoObject.getCategories();\n\t\treturn result;\n\t}", "public interface ICategoryService {\n /*添加品类 即添加节点*/\n ServerResponse addCategory(String categoryName, Integer parentId);\n\n /*修改品类名字*/\n ServerResponse updateCategoryName(Integer categoryId,String categoryName);\n\n /*获取品类子节点(平级)*/\n ServerResponse<List<Category>> getChildrenParallelCategory(Integer categoryId);\n\n /*递归查询本节点的id及孩子节点的id*/\n ServerResponse<List<Integer>> selectCategoryAndChildrenById(Integer categoryId);\n}", "@Override\n public List<Category> getAll()\n {\n \n ResultSet rs = DataService.getData(\"SELECT * FROM Categories\");\n \n List<Category> categories = new ArrayList<Category>();\n \n try\n {\n while (rs.next())\n {\n categories.add(convertResultSetToCategory(rs));\n }\n }\n catch (SQLException e)\n {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n \n return categories;\n }", "public void getCategories(io.reactivesw.catalog.grpc.Empty request,\n io.grpc.stub.StreamObserver<io.reactivesw.catalog.grpc.CategoryList> responseObserver) {\n asyncUnimplementedUnaryCall(METHOD_GET_CATEGORIES, responseObserver);\n }", "@RequestMapping(value = \"/allCategory\", method = RequestMethod.POST)\r\n\tpublic ModelAndView loadallCategory() {\r\n\t\tModelAndView modelAndView = null;\r\n\t\tList<Category> categoryObjLst = chooseAssessmentService.fetchAssessmentCategory();\r\n\t\tChooseAssessment assessment = new ChooseAssessment();\r\n\t\tassessment.setCategoryObjList(categoryObjLst);\r\n\t\tmodelAndView = new ModelAndView(\"attemptsQuestionsPage\", \"assessment\", assessment);\r\n\r\n\t\tmodelAndView.addObject(\"categoryObjs\", categoryObjLst);\r\n\t\treturn modelAndView;\r\n\t}", "@Override\n public void gotCategories(ArrayList<String> categories) {\n ArrayAdapter<String> categoryAdapter = new ArrayAdapter<>(this,\n android.R.layout.simple_list_item_1 , categories);\n categoriesListView.setAdapter(categoryAdapter);\n }", "@Override\n public Single<List<CategoryModel>> getCategories() {\n return api.getCategories().map(categories -> iVmMapper.mapToViewModel(categories));\n }", "private void loadDefaultCategory() {\n CategoryTable category = new CategoryTable();\n String categoryId = category.generateCategoryID(db.getLastCategoryID());\n String categoryName = \"Food\";\n String type = \"Expense\";\n db.insertCategory(new CategoryTable(categoryId,categoryName,type));\n categoryId = category.generateCategoryID(db.getLastCategoryID());\n categoryName = \"Study\";\n type = \"Expense\";\n db.insertCategory(new CategoryTable(categoryId,categoryName,type));\n db.close();\n }", "@GetMapping(\"category\")\n\t\tpublic List<String> getCategory(){\n\t\t\tList<String> list = repo.findByCat();\n\t\t\treturn list;\n\t\t\t\n\t\t\t\n\t\t}", "public void getRemoteCategoryById(long category_id) {\n url = Constants.getCategoryById;\n params = new HashMap<>();\n params.put(param_category_id, \"\" + category_id);\n\n if (ApiHelper.checkInternet(mContext)) {\n mApiHelper.getCategoryById(category_id, mIRestApiCallBack, true, url, params);\n } else {\n\n //Toast.makeText(mContext, mContext.getString(R.string.noInternetConnection),\n // Toast.LENGTH_LONG).show();\n mIRestApiCallBack.onNoInternet();\n CacheApi cacheApi = loadCacheData(url, params);\n mSqliteCallBack.onDBDataObjectLoaded(cacheApi);\n }\n\n }", "@Override\n\tpublic List<Categories> getListCat() {\n\t\treturn categoriesDAO.getListCat();\n\t}", "@Override\n\tpublic List<Category> getAllCategories() {\n\t\tQuery query = sessionFactory.getCurrentSession().createQuery(\"FROM \"+Category.class.getName());\n\t\treturn (List<Category>)query.list();\t\t\n\t}", "public void loadBooksOfCategory(){\n long categoryId=mainActivityViewModel.getSelectedCategory().getMcategory_id();\n Log.v(\"Catid:\",\"\"+categoryId);\n\n mainActivityViewModel.getBookofASelectedCategory(categoryId).observe(this, new Observer<List<Book>>() {\n @Override\n public void onChanged(List<Book> books) {\n if(books.isEmpty()){\n binding.emptyView.setVisibility(View.VISIBLE);\n }\n else {\n binding.emptyView.setVisibility(View.GONE);\n }\n\n booksAdapter.setmBookList(books);\n }\n });\n }", "public void getCategories(io.reactivesw.catalog.grpc.Empty request,\n io.grpc.stub.StreamObserver<io.reactivesw.catalog.grpc.CategoryList> responseObserver) {\n asyncUnaryCall(\n getChannel().newCall(METHOD_GET_CATEGORIES, getCallOptions()), request, responseObserver);\n }", "public List<CategoriaVO> mostrarCategorias() {\n\t\tJDBCTemplate mysql = MysqlConnection.getConnection();\n\t\ttry {\n\t\t\tmysql.connect();\n\t\t\tCategoriaDAO OwlDAO = new CategoriaDAO();\n\t\t\tList<CategoriaVO> resultado = new ArrayList();\n\t\t\tresultado = OwlDAO.obtenerCategorias(mysql);\n\t\t\treturn resultado;\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace(System.err);\n\t\t\treturn null;\n\n\t\t} finally {\n\t\t\tmysql.disconnect();\n\t\t}\n\t}", "public 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}", "public abstract String getCategory();", "public abstract String getCategory();", "public Categories getCategories() {\n return this.categories;\n }", "@GET(\"/empresa/listaCategoria\")\n public void listacategoria(Callback<List<Categoria>> callback);", "@Override\n\tpublic Iterable<Category> findAllCategory() {\n\t\treturn categoryRepository.findAll();\n\t}", "private void buildCategories() {\n List<Category> categories = categoryService.getCategories();\n if (categories == null || categories.size() == 0) {\n throw new UnrecoverableApplicationException(\n \"no item types found in database\");\n }\n\n Map<Category, List<Category>> categoriesMap = new HashMap<Category, List<Category>>();\n for (Category subCategory : categories) {\n Category parent = subCategory.getParentCategory();\n if (categoriesMap.get(parent) == null) {\n categoriesMap.put(parent, new ArrayList<Category>());\n categoriesMap.get(parent).add(subCategory);\n } else {\n categoriesMap.get(parent).add(subCategory);\n }\n }\n\n this.allCategories = categories;\n this.sortedCategories = categoriesMap;\n }", "@Override\n\tpublic List<Category> findAllCategory() {\n\t\treturn categoryRepository.findAllCategory();\n\t}", "public static ArrayList<String> getCategories() {\n String query;\n ArrayList<String> categories = new ArrayList<String>();\n\n try {\n Connection con = Database.createDBconnection();\n Statement stmt = con.createStatement();\n query = \"SELECT category FROM category;\";\n ResultSet rs = stmt.executeQuery(query);\n\n while(rs.next()) {\n categories.add(rs.getString(\"category\"));\n }\n\n Database.closeDBconnection(con);\n }\n catch(Exception e) {\n e.printStackTrace();\n }\n return categories;\n }", "public List<LibroVO> librosPorCategoria(String cat) {\n\t\tJDBCTemplate mysql = MysqlConnection.getConnection();\n\t\ttry {\n\t\t\tmysql.connect();\n\t\t\tCategoriaDAO OwlDAO = new CategoriaDAO();\n\t\t\tList<LibroVO> resultado = new ArrayList();\n\t\t\tresultado = OwlDAO.obtenerLibrosInCategoria(cat, mysql, \"lecturas\");\n\t\t\tif (resultado.isEmpty()) {\n\t\t\t\tmysql.disconnect();\n\t\t\t\treturn null;\n\n\t\t\t} else {\n\t\t\t\tmysql.disconnect();\n\t\t\t\treturn resultado;\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace(System.err);\n\t\t\treturn null;\n\t\t} finally {\n\t\t\tmysql.disconnect();\n\t\t}\n\t}", "String getCategory();", "String getCategory();", "@Override\r\n\tpublic List<Category> getAllCategories() throws CategoryRetrievalException {\n\t\ttry {\r\n\t\t\treturn categoryDao.getAllCategories();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tthrow new CategoryRetrievalException(\"error in retriving Category\");\r\n\t\t}\r\n\t}", "public static List<Categorias> obtenerCategorias(){\n List<Categorias> categorias = new ArrayList<>();\n \n Categorias c = new Categorias();\n \n c.conectar();\n \n c.crearQuery(\"select * from categoria_libro\");\n \n ResultSet informacion = c.getResultSet();\n \n try {\n while (informacion.next())\n categorias.add(new Categorias(informacion));\n } catch (Exception error) {}\n \n c.desconectar();\n \n return categorias;\n }", "private void handleActionGetCategory(String id) {\n\n Log.i(\"getcountry\",\"Thread service name : \"+Thread.currentThread().getName());\n URL url = null;\n\n try {\n\n url = new URL(\"http://binouze.fabrigli.fr/categories/\"+id+\".json\");\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setRequestMethod(\"GET\");\n conn.connect();\n\n if(HttpURLConnection.HTTP_OK == conn.getResponseCode()){\n copyInputStreamToFile(conn.getInputStream(), new File(getCacheDir(),\"category.json\"));\n Log.d(\"getcategory\",\"Country json downloaded\");\n }\n else{\n Log.d(\"getcategory\",\"Country json NOT downloaded. HttpURLConnection.HTTP_OK = \"+HttpURLConnection.HTTP_OK+ \" et conn.getResponseCode() = \"+conn.getResponseCode());\n }\n\n //lance un intent pour signaler l'update\n LocalBroadcastManager.getInstance(this).sendBroadcast(new Intent(SecondeActivity.CATEGORY_UPDATE));\n\n }catch(MalformedURLException e){\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public List<Categoria> listarCategorias(){\n //este metodo devuelve una lista.\n return categoriaRepo.findAll(); \n\n }", "public ArrayList<Categories> getAllCategories() {\n\t\t\n\t\tCategories cg;\n\t\tArrayList<Categories> list=new ArrayList<Categories>();\n\t\t\n\t\ttry {\n\t\t\t String query=\"select * from categories;\";\n\t\t\tPreparedStatement pstm=con.prepareStatement(query);\n\t\t\tResultSet set= pstm.executeQuery();\n\t\t\t\n\t\t\twhile(set.next()) {\n\t\t\t\tint cid=set.getInt(1);\n\t\t\t\tString cname=set.getString(2);\n\t\t\t\tString cdes=set.getString(3);\n\t\t\t\t\n\t\t\t\tcg=new Categories(cid, cname, cdes);\n\t\t\t\tlist.add(cg);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn list;\n\t}", "@Override\r\n\tpublic List<Categorie> getAllCategorie() {\n\t\treturn cateDao.getAllCategorie();\r\n\t}", "@Test\n public void testGetCategoriesAction() throws ClientException, IOException, ProcessingException {\n CloudResponse response = this.actions.getCategoriesAction(\"{sort}\", -1, -1, \"{type}\", -1);\n List<Integer> expectedResults = Arrays.asList(200);\n LOG.info(\"Got status {}\", response.getStatusLine());\n Assert.assertTrue(expectedResults.contains(response.getStatusLine().getStatusCode()));\n\n if(response.getStatusLine().getStatusCode() == 200) {\n this.actions.checkResponseJSONSchema(\"#/definitions/PagedResponseCategory\", response.getContent());\n }\n \n }", "public void loadCatalog() throws BasicException {\n m_jProducts.removeAll();\n \n m_productsset.clear(); \n m_subgroupsset.clear();\n \n showingsubgr = null;\n m_index = 0;\n\n // Select the first category\n m_jListSubgroups.setCellRenderer(new SmallSubgroupRenderer());\n \n // Display catalog panel\n showRootSubgroupsPanel();\n }" ]
[ "0.77575475", "0.7587894", "0.7180861", "0.6804693", "0.6672274", "0.6601643", "0.63165355", "0.628422", "0.62446356", "0.62083626", "0.61780727", "0.6169578", "0.6166685", "0.61404985", "0.6107926", "0.60919863", "0.6064599", "0.60484934", "0.60465413", "0.604277", "0.6029018", "0.6028695", "0.596083", "0.59384173", "0.5901119", "0.58930004", "0.58372515", "0.5798205", "0.57969254", "0.57832295", "0.57729584", "0.573592", "0.5724175", "0.57189065", "0.570438", "0.5696537", "0.56832564", "0.5680109", "0.5659888", "0.5658652", "0.5655364", "0.56402534", "0.5639762", "0.56361896", "0.56265545", "0.5623222", "0.56186277", "0.5601961", "0.55837053", "0.5579743", "0.5578188", "0.55686873", "0.5567152", "0.55636793", "0.5563072", "0.55595475", "0.5558476", "0.5549843", "0.5543682", "0.553724", "0.5535344", "0.55301344", "0.5519967", "0.5512291", "0.551108", "0.5510638", "0.5499873", "0.54979134", "0.5489761", "0.5482901", "0.5477886", "0.5474646", "0.5473617", "0.5462666", "0.54604477", "0.5447865", "0.54431045", "0.5442936", "0.5431498", "0.54308873", "0.5423518", "0.54179615", "0.54179615", "0.54151636", "0.54140157", "0.54026455", "0.5392482", "0.5390363", "0.537628", "0.5351124", "0.53450614", "0.53450614", "0.53396887", "0.53335035", "0.5332921", "0.5329615", "0.5326232", "0.53221273", "0.5321086", "0.53133434" ]
0.69587964
3
Method to load items from server.
private void loadItems() { CheckItemsActivity context = this; makeRestGetRequest(String.format(Locale.getDefault(), RestClient.ITEMS_URL, checkId), (success, response) -> { if (!success) { Log.d(DEBUG_TAG, "Load items fail"); Toast.makeText(context, LOAD_ITEMS_FAIL, Toast.LENGTH_SHORT).show(); } else { try { items = ModelsBuilder.buildItemsFromJSON(response); // pass loaded items and categories to adapter and set adapter to Recycler View itemsListAdapter = new ItemsListAdapter(items, categories, context); recyclerView.setAdapter(itemsListAdapter); } catch (JSONException e) { Log.d(DEBUG_TAG, "Load items parsing fail"); } } // set loading progress bar to invisible when loading is finished progressBar.setVisibility(View.INVISIBLE); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void loadItemsInternal();", "@Override\n\tpublic void load() {\n\t\tsuper.load();\n\t\t\n\t\tUriAdapter adapter = new UriAdapter(config);\n\t\tbnetMap = loadBnetMap(adapter, config.getStoreUri(), getName());\n\t\tadapter.close();\n\t\t\n\t\titemIds = bnetMap.keySet();\n\t}", "@Override\n public void loadItems(){\n Log.d(\"Presenter\",\"Loading Items\");\n mRepository.getItems(new DataSource.LoadItemsCallback() {\n @Override\n public void onItemsLoaded(List<Session> sessions) {\n Log.d(\"PRESENTER\",\"Loaded\");\n\n //mView.showItems(Items);\n }\n\n @Override\n public void onDataNotAvailable() {\n Log.d(\"PRESENTER\",\"Not Loaded\");\n }\n });\n }", "private void loadItems() {\n try {\n if (ServerIdUtil.isServerId(memberId)) {\n if (ServerIdUtil.containsServerId(memberId)) {\n memberId = ServerIdUtil.getLocalId(memberId);\n } else {\n return;\n }\n }\n List<VideoReference> videoReferences = new Select().from(VideoReference.class).where(VideoReference_Table.userId.is(memberId)).orderBy(OrderBy.fromProperty(VideoReference_Table.date).descending()).queryList();\n List<String> videoIds = new ArrayList<>();\n for (VideoReference videoReference : videoReferences) {\n videoIds.add(videoReference.getId());\n }\n itemList = new Select().from(Video.class).where(Video_Table.id.in(videoIds)).orderBy(OrderBy.fromProperty(Video_Table.date).descending()).queryList();\n } catch (Throwable t) {\n itemList = new ArrayList<>();\n }\n }", "public void getRemoteItems() {\n url = getAllItemsOrderedByCategory;\n params = new HashMap<>();\n params.put(param_securitykey, param_securitykey);\n\n if (ApiHelper.checkInternet(mContext)) {\n mApiHelper.getItems(mIRestApiCallBack, true, url, params);\n } else {\n //Toast.makeText(mContext, mContext.getString(R.string.noInternetConnection), Toast.LENGTH_LONG).show();\n mIRestApiCallBack.onNoInternet();\n CacheApi cacheApi = loadCacheData(url, params);\n mSqliteCallBack.onDBDataObjectLoaded(cacheApi);\n }\n\n }", "@Override\n\tpublic void load() throws RemoteException {\n\t\tsuper.load();\n\t\t\n\t\tUriAdapter adapter = new UriAdapter(config);\n\t\tbnetMap = loadBnetMap(adapter, config.getStoreUri(), getName());\n\t\tadapter.close();\n\t\t\n\t\titemIds = bnetMap.keySet();\n\t}", "public void loadData(){\n JsonArrayRequest request = new JsonArrayRequest(\"http://www.efstratiou.info/projects/newsfeed/getList.php\", netListener, errorListener);\n\n //submit request\n ArticlesApp.getInstance().getRequestQueue().add(request);\n\n }", "public static List<Item> getItems() {\n\n HttpRequest request = HttpRequest.newBuilder().GET().uri(URI.create(\"http://localhost:8080/item/all\")).setHeader(\"Cookie\", Authenticator.SESSION_COOKIE).build();\n HttpResponse<String> response = null;\n try {\n response = client.send(request, HttpResponse.BodyHandlers.ofString());\n } catch (Exception e) {\n e.printStackTrace();\n //return \"Communication with server failed\";\n }\n if (response.statusCode() != 200) {\n System.out.println(\"Status: \" + response.statusCode());\n }\n\n ObjectMapper mapper = new ObjectMapper();\n mapper.registerModule(new JavaTimeModule());\n List<Item> items = null;\n // TODO handle exception\n try {\n items = mapper.readValue(response.body(), new TypeReference<List<Item>>(){});\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return items;\n }", "public final void load( ) throws Exception\n\t{\n\t\tDatastore.getInstance( ).loadFromServer( this, this.getHref( ) );\n\t}", "@Override\n public void loadData(final List<Integer> allCommerceItemIds) {\n if (allCommerceItemIds.size() == 0) {\n return;\n }\n int pos = 0;\n // initiates the loading of items and their price via REST. Since each item must\n // be loaded in a single request, this loop loads the items in chunks (otherwise\n // we might have too many requests at once)\n while (pos < allCommerceItemIds.size()) {\n try {\n Log.i(TAG, \"loaded items: \" + mDatabaseAccess.itemsDAO().selectItemCount());\n Log.i(TAG, \"loaded item prices: \" +\n mDatabaseAccess.itemsDAO().selectItemPriceCount());\n // creates a \",\" separated list of item IDs for the GET parameter\n String ids = RestHelper.splitIntToGetParamList(allCommerceItemIds,\n pos, ITEM_PROCESS_SIZE);\n // all prices to the \",\" separated ID list.\n List<Price> prices = mCommerceAccess.getPricesWithWifi(ids);\n\n processPrices(prices);\n pos += ITEM_PROCESS_SIZE;\n\n // to prevent too many request at once, wait every 1000 processed items\n if (pos % ITEM_PROCESS_WAIT_COUNT == 0) {\n waitMs(TOO_MANY_REQUEST_DELAY_MS);\n }\n } catch (ResponseException ex) {\n Log.e(TAG, \"An error has occurred while trying to load the commerce data from the\" +\n \" server side!\",\n ex);\n } catch (Exception ex) {\n Log.e(TAG, \"A general failure has occurred while trying to load commerce data.\",\n ex);\n }\n }\n }", "private void LoadItems() {\n\n Call<NewsResponce> callNews = null;\n\n if (SourceId != null && DateTo != null && DateAt != null) {\n callNews = newsApiInterface.GetEverything(NewsClient.API_KEY, DateAt, DateTo, currentPage, SourceId);\n\n } else if (SourceId != null && DateAt != null) {\n callNews = newsApiInterface.GetEverything(NewsClient.API_KEY, DateAt, currentPage, SourceId);\n\n } else if (SourceId != null && DateTo != null) {\n callNews = newsApiInterface.GetEverythingDateTo(NewsClient.API_KEY, DateTo, currentPage, SourceId);\n\n } else {\n DialogAlert(R.string.dialog_title_no_criterias, R.string.dialog_message_no_criterias);\n }\n\n if (callNews != null)\n callNews.enqueue(new Callback<NewsResponce>() {\n @Override\n public void onResponse(Call<NewsResponce> call, final Response<NewsResponce> response) {\n if (response.body() != null) {\n if (response.body().getTotalResults() > articleList.size()) {\n articleList.addAll(response.body().getArticles());\n newsAdapter.notifyDataSetChanged();\n ++currentPage;\n }\n } else\n articleList.clear();\n\n Log.d(TAG, articleList.size() + \"\");\n }\n\n @Override\n public void onFailure(Call<NewsResponce> call, Throwable t) {\n Log.e(TAG, t.getMessage());\n }\n });\n }", "@Override\n\tpublic List<Item> loadItems(int start, int count) {\n\t\treturn null;\n\t}", "@Override\n public List< Item > loadInBackground() {\n Cursor cursor = resolver.query( ItemContentProvider.CONTENT_URI, projection, \"isDeleted=?\",\n new String[]{ \"0\" }, ItemTable.COLUMN_ITEM + \" ASC\" );\n\n //TODO: Check if cursor actually contains data\n // Also close it\n return ItemUtils.cursorToList( cursor );\n }", "private void loadList() {\n new MyAsyncTask(this, username, mainUsername, authHead, pageType,\n userList, view).execute(\"\");\n this.swipeContainer.setRefreshing(false);\n }", "private void loadItemList() {\n this.presenter.initialize();\n }", "@Override\n protected void loadData() {\n setUpLoadingViewVisibility(true);\n callImageList = RetrofitGenerator.createService(ApiService.class)\n .getAllPubImage();\n callImageList.enqueue(callbackImageList);\n }", "private void fetchData() {\n if (!isNetworkAvailable()){\n Toast.makeText(this, getString(R.string.no_internet_connection), Toast.LENGTH_SHORT).show();\n swipeRefreshLayout.setRefreshing(false);\n return;\n }\n\n apiInterface = ApiUtils.getApi();\n Call<List<Item>> call = apiInterface.getItems();\n call.enqueue(new Callback<List<Item>>() {\n @Override\n public void onResponse(Call<List<Item>> call, Response<List<Item>> response) {\n if (response.isSuccessful()){\n DatabaseController.getInstance(getApplicationContext()).clearDatabase();\n PicassoTools.clearCache(Picasso.with(getApplicationContext()));\n List<Item> items = response.body();\n for (Item item : items) {\n DatabaseController.getInstance(getApplicationContext()).addItem(item);\n// Log.d(TAG, \"add in list items \" + item.getId().toString());\n }\n updateUI();\n }else {\n Log.d(TAG, response.errorBody().toString());\n Toast.makeText(MainActivity.this, R.string.error, Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onFailure(Call<List<Item>> call, Throwable t) {\n Log.d(TAG, \"onFailure: \" + t.getMessage());\n swipeRefreshLayout.setRefreshing(false);\n }\n });\n }", "private void loadDataFromMemory(String filename){\n shoppingList.clear();\n new ReadFromMemoryAsync(filename, getCurrentContext(), new ReadFromMemoryAsync.AsyncResponse(){\n\n @Override\n public void processFinish(List<ShoppingItem> output) {\n shoppingList.addAll(output);\n sortItems();\n }\n }).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n// for (ShoppingItem item: items) {\n// shoppingList.add(item);\n// }\n// sortItems();\n }", "public void LoadNews()\n {\n String url = \"https://newsapi.org/v1/articles?source=the-next-web&apiKey=533af958594143758318137469b41ba9\";\n Load_News = new StringRequest(Request.Method.GET,url,Success,Error);\n rQueue = ApplicationSingleton.getInstance().getQueue();\n rQueue.add(Load_News);\n\n\n }", "private void loadData() {\n RetrofitHelper.getInstance().getNearbyItems(new Observer<MainItemListBean>() {\n @Override\n public void onSubscribe(Disposable d) {\n\n }\n\n @Override\n public void onNext(MainItemListBean mainItemListBean) {\n if (refreshLayout.getState() == RefreshState.Refreshing) {\n dataBeans.clear();\n }\n dataBeans.addAll(mainItemListBean.getData());\n if (dataBeans.isEmpty()) {\n emptyView.setVisibility(View.VISIBLE);\n } else {\n emptyView.setVisibility(View.GONE);\n }\n adapter.setData(dataBeans);\n }\n\n @Override\n public void onError(Throwable e) {\n e.printStackTrace();\n endLoading();\n }\n\n @Override\n public void onComplete() {\n endLoading();\n }\n }, longitude, latitude, maxDistance, page, category);\n }", "private Runnable loadItems() {\n File file = new File(getFilesDir(), \"data.txt\");\n\n try {\n // Clears and adds appropriate items\n this._items.clear();\n this._items.addAll(FileUtils.readLines(file, Charset.defaultCharset()));\n } catch (IOException e) {\n Log.e(\"MainActivity\", \"Error reading items\", e);\n }\n\n // Return a callback function for saving items\n return () -> {\n try {\n FileUtils.writeLines(file, this._items);\n } catch (IOException e) {\n Log.e(\"MainActivity\", \"Error writing items\", e);\n }\n };\n }", "@Override\n public List<News> loadInBackground() {\n if (mUrl == null) {\n return null;\n }\n // Perform the network request, parse the response, and extract a list of articles.\n List<News> news = QueryUtils.fetchNewsData(mUrl);\n return news;\n }", "@Override\n public List<Item> retrieveAllItems() throws VendingMachinePersistenceException {\n loadItemFile();\n List<Item> itemList = new ArrayList<>();\n for (Item currentItem: itemMap.values()) {\n itemList.add(currentItem);\n }\n\n return itemList;\n }", "private void getSongs() {\n new SongContent(this, Constants.URL).execute();\n }", "@Override\n public List<Story> loadInBackground() {\n // This method is called on a background thread and should generate a\n // new set of data to be delivered back to the client.\n String jsonDocumentAsString = \"{}\";\n\n // use URL to query API and return STRING(of JSON data)\n try {\n jsonDocumentAsString = makeHttpRequest(queryUrl);\n Log.v(LOG_TAG, \"HttpRequest done answer has size \" + jsonDocumentAsString.length());\n } catch (IOException e) {\n Log.e(LOG_TAG,\"HTTP error\", e);\n }\n\n // use STRING to pull out and DECODE JSON return ArrayList<Story>\n List<Story> listOfStory = QueryUtils.extractStories(jsonDocumentAsString);\n\n return listOfStory;\n }", "private void loadSingers() {\n swipeRefreshLayout.setRefreshing(true);\n api.getArtists().subscribeOn(Schedulers.newThread())\n .doOnEach(notification -> getActivity().runOnUiThread(() -> swipeRefreshLayout.setRefreshing(false)))\n .doOnError(err -> {\n Log.wtf(Consts.TAG, err.getMessage());\n Snackbar.make(getView(), err.getLocalizedMessage(), Snackbar.LENGTH_SHORT).show();\n })\n .onErrorReturn(err -> null)\n .doOnNext(singers -> {\n if (singers == null) return;\n\n SP.edit(getContext()).putString(Consts.SINGERS_CACHE, new Gson().toJson(singers)).apply();\n getActivity().runOnUiThread(() -> {\n setSingersToAdapter(singers, singers);\n });\n }\n )\n .subscribe();\n }", "public void loadItems() {\n\t\tArrayList<String> lines = readData();\n\t\tfor (int i = 1; i < lines.size(); i++) {\n\t\t\tString line = lines.get(i);\n\t\t\t\n\t\t\tString[] parts = line.split(\",\");\n\t\t\t\n//\t\t\tSystem.out.println(\"Name: \" + parts[0]);\n//\t\t\tSystem.out.println(\"Amount: \" + parts[1]);\n//\t\t\tSystem.out.println(\"Price: \" + parts[2]);\n//\t\t\tSystem.out.println(\"-------\");\n\t\t\t\n\t\t\tString name = parts[0].trim();\n\t\t\tint amount = Integer.parseInt(parts[1].trim());\n\t\t\tdouble price = Double.parseDouble(parts[2].trim());\n\t\t\t\n\t\t\tItem item = new Item(name, amount, price);\n\t\t\titemsInStock.add(item);\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic static ArrayList<Item> loadItems(String filename)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tObjectInputStream ois = new ObjectInputStream(new FileInputStream(new File(filename)));\r\n\t\t\tArrayList<Item> items = (ArrayList<Item>)ois.readObject();\r\n\t\t\tois.close();\r\n\t\t\tSystem.out.println(\"Loaded items from disk: \" + items.size());\r\n\t\t\treturn items;\r\n\t\t} \r\n\t\tcatch (FileNotFoundException e2) \r\n\t\t{\r\n\t\t\tSystem.err.println(\"No locally saved \" + filename + \" - creating a new one: \" + e2.getMessage());\r\n\t\t}\r\n\t\tcatch (IOException e2) \r\n\t\t{\r\n\t\t\tSystem.err.println(\"IO Error: \" + e2.getMessage());\r\n\t\t} \r\n\t\tcatch (ClassNotFoundException e1) \r\n\t\t{\r\n\t\t\tSystem.err.println(\"This copy of the program is missing some files: \" + e1.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "private void additems() {\n MaVolleyRequest.getInstance(getApplicationContext()).GetMethodRequest(getLink(), null, new VolleyRequestOnResultListener() {\n @Override\n public void onSucces(String result) {\n Log.d(\"qwerty\", getLink());\n ResearchResultBeanz item = (new Gson()).fromJson((new Gson()).fromJson(result, JsonObject.class).getAsJsonObject(\"data\"), ResearchResultBeanz.class);\n if (adapter == null) {\n adapter = new GridViewAdapter2(ImageGridViewActivity.this, Utils.fromArrayToList(item.items));\n gridView.setAdapter(adapter);\n } else {\n adapter.appendData (Utils.fromArrayToList(item.items));\n }\n flag_loading = false;\n }\n @Override\n public void onFailure(String error) {\n makeToast(\"Loading failure\");\n flag_loading = false;\n }\n });\n }", "private void populateList() {\n new AsyncTask<Void, Void, Boolean>() {\n @Override\n protected Boolean doInBackground(Void... params) {\n List<Item> list = TodoApplication.getDbHelper().getAllItems();\n if(list == null) {\n Log.d(TAG, \"doInBackground: no items in the database.\");\n return false;\n } else {\n itemsList = list;\n adapter.setUpdatedList(itemsList);\n }\n // Successfully loaded the list.\n return true;\n }\n\n @Override\n protected void onPostExecute(Boolean isSuccess) {\n super.onPostExecute(isSuccess);\n if(isCancelled()) {\n return;\n }\n if(isSuccess) {\n if(adapter != null) {\n adapter.notifyDataSetChanged();\n }\n if(itemsList == null || itemsList.size() == 0) {\n setEmptyScreen();\n } else {\n emptyText.setVisibility(View.GONE);\n todoRecyclerView.setVisibility(View.VISIBLE);\n }\n } else {\n setEmptyScreen();\n }\n }\n }.execute();\n }", "private void fillFromServer(String response)\n {\n Gson gson = new Gson();\n ItemResponse ir = gson.fromJson(response, ItemResponse.class);\n Item[] items = ir.getItems();\n Log.e(\"Items\", response);\n\n\n for(Item i : items)\n {\n if(i.getImage().equalsIgnoreCase(\"directory_icon\"))\n continue;\n\n String extenstion = FilenameUtils.getExtension(i.getPath());\n\n if(MainActivity.this.getResources().getIdentifier(extenstion, \"drawable\", MainActivity.this.getPackageName()) == 0)\n i.setImage(\"_blank\");\n\n }\n\n List<Item> itms = new ArrayList<>(Arrays.asList(items));\n\n if(!currentServerDir.equalsIgnoreCase(\"server\")) {\n itms.add(0, new Item(\"\", \"Parent Directory\", \"\", ir.getParent(), \"directory_up\"));\n }\n\n adapter = new FileArrayAdapter(MainActivity.this,R.layout.file_view,itms);\n MainActivity.this.setListAdapter(adapter);\n }", "@Override\n public void setItemsResponse(Context context) {\n // Load string from the given all.json file.\n String jsonString = JSONUtils.loadJSONFromAsset(context, DATA_FILE_NAME);\n\n try {\n // Create JSONObject of the response.\n JSONObject jsonObject = new JSONObject(jsonString);\n\n // Retrieve \"result\" and \"data\" from the response.\n String result = jsonObject.getString(\"result\");\n\n JSONArray dataArray = jsonObject.getJSONArray(\"data\");\n List<Item> dataList = new ArrayList<>();\n\n for (int i = 0; i < dataArray.length(); ++i) {\n JSONObject object = dataArray.getJSONObject(i);\n Item item = new Item(\n object.getString(\"id\"),\n object.getString(\"name\"),\n object.getLong(\"num_likes\"),\n object.getLong(\"num_comments\"),\n object.getLong(\"price\"),\n object.getString(\"photo\"),\n object.getString(\"status\")\n );\n dataList.add(item);\n }\n\n // Instantiate the response object with the \"result\" and \"data\".\n mItemsResponse = new Response(result, dataList);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "public void loadData() {\n SharedPreferences sharedPreferences = getSharedPreferences(SHARED_PREFS, MODE_PRIVATE);\n Gson gson = new Gson();\n String jsonItem = sharedPreferences.getString(REMINDER_ITEM, null);\n\n Type typeItem = new TypeToken<ArrayList<ReminderItem>>() {}.getType();\n\n reminderItems = gson.fromJson(jsonItem, typeItem);\n\n // In case reminderItems is null, reassign it.\n if (reminderItems == null) {\n reminderItems = new ArrayList<>();\n }\n }", "public void loadIngredients(){\n LoadIngredientsService service = new LoadIngredientsService();\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 //When the service has successfully run set the return ingredients to various listViews and comboBoxs where\n //ingredients from database are saved\n service.setOnSucceeded(new EventHandler<WorkerStateEvent>() {\n @Override\n public void handle(WorkerStateEvent workerStateEvent) {\n ingredientsFromDatabase = service.getValue();\n ingredientsList.setItems(ingredientsFromDatabase);\n ingredientsBrowseCombo.setItems(ingredientsFromDatabase);\n allIngredientsCupboardPane.setItems(ingredientsFromDatabase);\n }\n });\n }", "@Override\n\tpublic void sendItemListRequest() {\n\t\ttry {\n\t\t\tString xml = \"\";\n\t\t\tif (this.servType.equals(SERVICE_TYPE_SOAP)){\n\t\t\t\txml = server.getItems();\n\t\t\t} else {\n\t\t\t\tWebResource itemListReqService = service.path(URI_GETITEMS);\n\t\t\t\txml = itemListReqService.accept(MediaType.TEXT_XML).get(String.class);\n\t\t\t}\n\t\t\n\t\t\tArrayList<ItemObject> items = XMLParser.parseToListItemObject(xml);\n\t\t\tgui.setTableContent(items);\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}", "private void loadListView() {\n\t\tList<ClientData> list = new ArrayList<ClientData>();\n\t\ttry {\n\t\t\tlist = connector.get();\n\t\t\tlView.updateDataView(list);\n\t\t} catch (ClientException e) {\n\t\t\tlView.showErrorMessage(e);\n\t\t}\n\n\t}", "private void loadLists() {\n }", "private void loadData() {\n\n if (mIsLoading) {\n return;\n }\n\n String url = mSiteData.getUrl();\n\n if (!mIsRefreshMode) {\n //if (mMaxPage > 0 && mCurrentPage > mMaxPage) {\n // return;\n //}\n //Log.e(mTag, \"mMaxPage: \" + mMaxPage);\n\n if (mCurrentPage > 1) {\n switch (mSiteData.getId()) {\n case Config.BLOG_ID_AKB48_TEAM8:\n url = url + \"?p=\" + mCurrentPage;\n break;\n case Config.BLOG_ID_NGT48_MANAGER:\n url = url + \"lite/?p=\" + mCurrentPage;\n break;\n case Config.BLOG_ID_SKE48_SELECTED:\n case Config.BLOG_ID_NMB48_OFFICIAL:\n url = url + \"page-\" + mCurrentPage + \".html\";\n break;\n }\n //showToolbarProgressBar();\n }\n }\n\n String userAgent = Config.USER_AGENT_WEB;\n switch (mSiteData.getId()) {\n case Config.BLOG_ID_SKE48_SELECTED:\n case Config.BLOG_ID_NMB48_OFFICIAL:\n case Config.BLOG_ID_NGT48_MANAGER:\n case Config.BLOG_ID_NGT48_PHOTOLOG:\n userAgent = Config.USER_AGENT_MOBILE;\n break;\n }\n\n mIsLoading = true;\n\n if (!mIsFirst && !mIsRefreshMode) {\n mLoLoadingMore.setVisibility(View.VISIBLE);\n }\n\n //Log.e(mTag, url);\n requestData(url, userAgent);\n }", "@Override\n public void onLoadMoreItems() {\n if (mAdapter.hasMoreItems()) {\n requestData(mAdapter.getItems() == null ? 0 : mAdapter.getItems().size(), false);\n } else {\n mAdapter.onFinishLoading(false);\n }\n }", "@Override\n\tpublic void onLoad() {\n\t\trequestTime++;\n\t\trefreshFromServer(ListViewCompat.LOAD);\n\t}", "public DesktopClient printItemList() {\n String uri = \"http://localhost:8080/api/items\";\n RestTemplate restTemplate = new RestTemplate();\n ResponseEntity<Item[]> result = restTemplate.getForEntity(uri, Item[].class);\n Item[] items = result.getBody();\n List<Item> itemList = new ArrayList<>();\n if (items != null) {\n itemList.addAll(Arrays.asList(items));\n\n for (Item item :\n itemList) {\n System.out.println(item.toString());\n }\n } else {\n System.out.println(\"Didn't get items.\");\n }\n\n return this;\n }", "private void loadaspirasirt(){\n String m_idwarga = getSp().getString(\"id_warga\",null);\n Call<ResponModel>viewmypost = getApi().rtaspirasi();\n viewmypost.enqueue(new Callback<ResponModel>() {\n @Override\n public void onResponse(Call<ResponModel> call, Response<ResponModel> response) {\n refresh.setRefreshing(false);\n Log.d(\"RESPON\",\"Hasil\"+response.body());\n mItem= response.body().getResult();\n mAdapter = new AdapterRT(mItem,AspirasiRTActivity.this);\n mylistpost.setAdapter(mAdapter);\n mAdapter.notifyDataSetChanged();\n\n }\n\n @Override\n public void onFailure(Call<ResponModel> call, Throwable t) {\n refresh.setRefreshing(false);\n Log.d(\"RESPON\",\"GAGAL\");\n }\n });\n }", "public void loadAllLists(){\n }", "public static List<DataItem> importFromResource(Context context){\n InputStreamReader reader = null;\n InputStream inputStream = null;\n\n try {\n //Instantiate InputStream with static raw file the assign it to InputStreamReader\n inputStream = context.getResources().openRawResource(R.raw.menuitems);\n reader = new InputStreamReader(inputStream);\n //Populate DataItems class and return result\n Gson gson = new Gson();\n DataItems dataItems = gson.fromJson(reader, DataItems.class);\n return dataItems.getDataItems();\n }finally {\n //close both classes\n if (reader != null) {\n try {\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if (inputStream != null) {\n try {\n inputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n }\n }", "@Override\n\t\t\tpublic void onSuccess(List<ShopItem> arg0) {\n\t\t\t\tif (arg0 != null) {\n\t\t\t\t\tadapter.loadData(arg0);\n\t\t\t\t}\n\t\t\t}", "@Override\n\t\t\tpublic void onStart() {\n\t\t\t\tif (listitem != null || listitem.size() > 0) {\n\t\t\t\t\tlistitem.clear();\n\t\t\t\t}\n\t\t\t\tnew AsyncTask<Void, Void, Void>() {\n\t\t\t\t\tprotected Void doInBackground(Void... params) {\n\t\t\t\t\t\tgetdata(1);\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tprotected void onPostExecute(Void result) {\n\t\t\t\t\t\tif (count >= 19) {\n\t\t\t\t\t\t\txlistview.startLoadMore();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\txlistview.stopLoadMore();\n\t\t\t\t\t\t}\n\t\t\t\t\t\txlistview.setRefreshSuccess();\n\t\t\t\t\t\tadapter.notifyDataSetChanged();\n\t\t\t\t\t\tLog.d(TAG, \"jieshu\");\n\t\t\t\t\t}\n\t\t\t\t}.execute(null, null, null);\n\t\t\t}", "public void loadShoppingList(){\n try{\n //load the shopping list from the external file\n List<Ingredient> returnedList = Data.<Ingredient>loadList(shoppingListFile);\n if (returnedList != null){\n //convert list to an observableList\n shoppingListIngredients = FXCollections.observableList(returnedList);\n //set to the shopping list\n shoppingList.setItems(shoppingListIngredients);\n } else {\n System.out.println(\"No Shopping List Loaded \");\n }\n } catch (Exception e){\n System.out.println(\"Unable to load shopping list from file \" + shoppingListFile +\n \", the file may not exist\");\n e.printStackTrace();\n }\n }", "@Override\n public Cursor loadInBackground() {\n try {\n return getActivity().getContentResolver().query(TaskItemsContract.TaskItemsColumns.CONTENT_URI,\n null,\n null,\n null,\n null);\n\n } catch (Exception e) {\n Log.e(TAG, \"Failed to asynchronously load data.\");\n e.printStackTrace();\n return null;\n }\n }", "public void invokeViewItem(String itemToSearch){\n AsyncHttpClient client = new AsyncHttpClient();\n client.setBasicAuth(globalUsername, globalPassword);\n client.get(\"http://\" + globalURL + \"/Auction_Server/items/\"+itemToSearch, new AsyncHttpResponseHandler() { // deleted params\n\n @Override\n public void onSuccess(int i, Header[] headers, byte[] bytes)\n {\n try {\n String response = new String(bytes, \"UTF-8\");\n JSONObject obj = new JSONObject(response);\n String itemId = obj.get(\"item_id\").toString();\n String itemName = obj.get(\"item_name\").toString();\n String itemCategory = obj.get(\"item_category\").toString();\n String itemDescription = obj.get(\"item_desc\").toString();\n String itemStartPrice = obj.get(\"item_start_price\").toString();\n String itemLastBidPrice = obj.get(\"item_latest_bid_price\").toString();\n String itemPictureString = \"\";\n if (!obj.isNull(\"item_picture\")) { // displaying the picture from string to byte[] to bitmap and display\n itemPictureString = obj.get(\"item_picture\").toString();\n byte[] itemPictureBytes = new BASE64Decoder().decodeBuffer(itemPictureString);\n Bitmap itemPictureBitmap = BitmapFactory.decodeByteArray(itemPictureBytes, 0, itemPictureBytes.length);\n ImageView showItemPicture = (ImageView) findViewById(R.id.viewItemImageViewId);\n showItemPicture.setImageBitmap(itemPictureBitmap);\n }\n TextView fillUserInfo = (TextView) findViewById(R.id.viewItemInfoTextViewId);\n fillUserInfo.setText(\"Item Name: \" + obj.get(\"item_name\") + \"\\nItem Description: \" + obj.get(\"item_desc\") +\n \"\\nCategory: \" + obj.get(\"item_category\") + \"\\nCurrent Bid: \" + obj.get(\"item_latest_bid_price\") +\n \"\\nStarting price: \" + obj.get(\"item_start_price\") + \"\\nNumber of Bids: \" + obj.get(\"item_num_bids\") +\n \"\\nLatest bid username: \" + obj.get(\"item_latest_bid_username\") + \"\\nLast Bid Time: \" + obj.get(\"item_latest_bid_time\").toString().substring(0,16));\n } catch (Exception e) {\n Toast.makeText(getApplicationContext(), \"Error Occured [Server's JSON response might be invalid]!\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n }\n }\n\n @Override\n public void onFailure(int i, Header[] headers, byte[] bytes, Throwable throwable)\n {\n String response = \"\";\n try {\n response = new String(bytes, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n Toast.makeText(getApplicationContext(), response, Toast.LENGTH_LONG).show();\n }\n\n });\n }", "private void loadContent()\n {\n // locking the function to prevent the adapter\n // from calling multiples async requests with\n // the same definitions which produces duplicate\n // data.\n locker.lock();\n\n // this function contruct a GraphRequest to the next paging-cursor from previous GraphResponse.\n GraphRequest nextGraphRequest = lastGraphResponse.getRequestForPagedResults(GraphResponse.PagingDirection.NEXT);\n\n // if we reached the end of our pages, the above method 'getRequestForPagedResults'\n // return 'null' object\n if(nextGraphRequest != null)\n {\n // for clarificating and formatting purposes\n // I declared the callback besides the members\n // variables.\n nextGraphRequest.setCallback(callback);\n nextGraphRequest.executeAsync();\n }\n }", "@Override\n public void run() {\n EndpointServer random = Preferences.getEndpointServer(mContext);\n\n /** no server found -- notify to user */\n if (random == null) {\n Log.i(TAG, \"no list to pick a random server from - aborting\");\n\n // notify to UI\n if (mListener != null)\n mListener.nodata();\n\n return;\n }\n\n try {\n // TODO\n /*\n mConnection = new ClientHTTPConnection(null, mContext, random, null);\n Protocol.ServerList data = mConnection.serverList();\n if (data != null) {\n // write down to cache\n OutputStream out = new FileOutputStream(getCachedListFile(mContext));\n data.writeTo(out);\n out.close();\n }\n\n // parse cached list :)\n sCurrentList = parseList(data);\n if (mListener != null)\n mListener.updated(sCurrentList);\n\n // restart message center\n MessageCenterService.restartMessageCenter(mContext.getApplicationContext());\n */\n throw new IOException();\n }\n catch (IOException e) {\n if (mListener != null)\n mListener.error(e);\n }\n finally {\n mConnection = null;\n }\n }", "public void loadList() {\n // Run the query.\n nodes = mDbNodeHelper.getNodeListData();\n }", "@Nullable\n @Override\n public Movie[] loadInBackground() {\n if (mUrl == null) {\n return null;\n }\n try {\n URL movieRequestUrl = new URL(mUrl);\n // get json response in a string\n String jsonMovieResponse = NetworkUtils\n .getResponseFromHttpUrl(movieRequestUrl);\n return MovieJsonUtils.getMovies(jsonMovieResponse);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n return null;\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n } catch (JSONException e) {\n e.printStackTrace();\n return null;\n }\n }", "private void readItems() {\n }", "public List<String> load();", "void getDataFromServer();", "@Override\n protected Void doInBackground(Void... params) {\n if (this.mAdapter == null) {\n return null;\n }\n Storage storage = new Storage(this.mContext);\n List<TongueTwister> list = storage.retrieveAllTT();\n this.mAdapter.setItems(list);\n return null;\n }", "public HashMap<String, Item> loadItems() {\n HashMap<String, Item> items = null;\n Gson gson = new Gson();\n try {\n BufferedReader reader = new BufferedReader(new FileReader(DEPOSITED_PATH));\n Type type = new TypeToken<HashMap<String, Item>>() {\n }.getType();\n items = gson.fromJson(reader, type);\n } catch (FileNotFoundException fnfe) {\n System.out.println(fnfe);\n }\n return items;\n }", "@Override\r\n\tpublic void init() {\n\t\tint numOfItems = loader.getNumOfItems();\r\n\t\tsetStoreSize(numOfItems);\r\n\r\n\t\tfor (int i = 0; i < numOfItems; i++) {\r\n DrinksStoreItem item = (DrinksStoreItem) loader.getItem(i);\r\n\t\t\tStoreObject brand = item.getContent();\r\n\t\t\tStoreObject existingBrand = findObject(brand.getName());\r\n\t\t\tif (existingBrand != null) {\r\n\t\t\t item.setContent(existingBrand);\r\n\t\t\t}\r\n\t\t\taddItem(i, item);\t\r\n\t\t}\r\n\t}", "public static ArrayList<InventoryItem> getInventoryItems() {\n\n String itemUrl = REST_BASE_URL + ITEMS;\n String inventoryUrl = REST_BASE_URL + INVENTORIES;\n String availableUrl = REST_BASE_URL + INVENTORIES + AVAILABLE + CATEGORIZED;\n\n // List of items\n ArrayList<InventoryItem> items = new ArrayList<>();\n ArrayList<String> itemNames = new ArrayList<>();\n\n URL url = null;\n\n /* Fetch items from \"items\" table. */\n try {\n url = new URL(itemUrl);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n JSONArray itemJsonArray = null;\n try {\n Log.d(TAG, \"getInventoryItems: getting items\");\n itemJsonArray = getResponseFromHttpUrl(url);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n // Store each item into <items>. Store each item name into <itemNames>.\n for (int i = 0; i < itemJsonArray.length(); i++) {\n JSONObject jo = (JSONObject) itemJsonArray.get(i);\n InventoryItem newItem = new InventoryItem(\n jo.getString(ITEM_IMAGE_URL),\n jo.getString(ITEM_NAME),\n jo.getString(ITEM_DESCRIPTION),\n 0,\n 0);\n items.add(newItem);\n itemNames.add(jo.getString(ITEM_NAME));\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n /* Fetch inventory items from \"inventories\" */\n try {\n url = new URL(inventoryUrl);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n JSONArray jaResult = null;\n try {\n Log.d(TAG, \"getInventoryItems: getting ivnentories\");\n jaResult = getResponseFromHttpUrl(url);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n for (int i = 0; i < jaResult.length(); i++) {\n JSONObject jo = (JSONObject) jaResult.get(i);\n int index = itemNames.indexOf(jo.getString(ITEM_NAME));\n if (index > -1) {\n InventoryItem currItem = items.get(index);\n currItem.setItemQuantity(currItem.getItemQuantity()+1);\n items.set(index, currItem);\n } else {\n // TODO: throw an exception here?\n Log.e(TAG, \"getInventoryItems: There is an item in the inventory but not in the item table!\");\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n /* get inventory stocks from \"/available/categorized\" */\n try {\n url = new URL(availableUrl);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n\n try {\n Log.d(TAG, \"getInventoryItems: getting inventory stocks\");\n jaResult = getResponseFromHttpUrl(url);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n for (int i = 0; i < jaResult.length(); i++) {\n JSONObject jo = (JSONObject) jaResult.get(i);\n int index = itemNames.indexOf(jo.getString(ITEM_NAME));\n if (index > -1) {\n InventoryItem currItem = items.get(index);\n currItem.setItemStock(jo.getInt(ITEM_COUNT));\n items.set(index, currItem);\n } else {\n // TODO: throw an exception here?\n Log.e(TAG, \"getInventoryItems: There is an item in the stock but not in the item table!\");\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n return items;\n }", "@Override\n public TvShowDetailsBundle loadInBackground() {\n if (mUrl == null) {\n return null;\n }\n /* Perform the network request, parse the response, and extract a list of news. */\n TvShowDetailsBundle tvShows = TvShowDetailsQueryUtils.fetchTvShowData(mUrl);\n return tvShows;\n }", "private void loadLists() {\n loadSavedCourses();\n loadSavedSchedules();\n }", "public ArrayList<Product> loadProducts(String username ,String userType);", "private void getMasechtotListFromServer() {\n\n\n RequestManager.getMasechtotList().subscribe(new Observer<Result<MasechetList>>() {\n @Override\n public void onSubscribe(Disposable d) {\n\n }\n\n @Override\n public void onNext(Result<MasechetList> masechetListResult) {\n\n saveMasechtotList(masechetListResult.getData());\n mMasechtotList = masechetListResult.getData();\n\n }\n\n @Override\n public void onError(Throwable e) {\n\n }\n\n @Override\n public void onComplete() {\n\n }\n });\n\n\n }", "public static void load() {\n\n\t\ttry {\n\t\t\tnew Thread() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tObjectDef.loadConfig();\n\t\t\t\t\t\tObjectConstants.declare();\n\t\t\t\t\t\tMapLoading.load();\n\t\t\t\t\t\tRegion.sort();\n\t\t\t\t\t\tObjectManager.declare();\n\t\t\t\t\t\tGameDefinitionLoader.loadNpcSpawns();\n\t\t\t\t\t\tNpc.spawnBosses();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}.start();\n\n\t\t\tGlobalItemHandler.spawn();\n\t\t\tTriviaBot.start();\n\t\t\tAchievements.declare();\n\n\t\t\tGameDefinitionLoader.loadItemValues();\n\t\t\tGameDefinitionLoader.loadNpcDefinitions();\n\t\t\tGameDefinitionLoader.loadItemDefinitions();\n\t\t\tGameDefinitionLoader.loadEquipmentDefinitions();\n\t\t\tGameDefinitionLoader.loadShopDefinitions();\n\t\t\tGameDefinitionLoader.setRequirements();\n\t\t\tGameDefinitionLoader.loadWeaponDefinitions();\n\t\t\tGameDefinitionLoader.loadSpecialAttackDefinitions();\n\t\t\tGameDefinitionLoader.loadRangedStrengthDefinitions();\n\t\t\tGameDefinitionLoader.loadSpecialAttackDefinitions();\n\t\t\tGameDefinitionLoader.loadCombatSpellDefinitions();\n\t\t\tGameDefinitionLoader.loadRangedWeaponDefinitions();\n\t\t\tGameDefinitionLoader.loadNpcCombatDefinitions();\n\t\t\tGameDefinitionLoader.loadItemBonusDefinitions();\n\n\t\t\tNPCDrops.parseDrops().load();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void retrieveData(){\n\t\tloaderImage.loadingStart();\n\t\tJsonClient js = new JsonClient();\n\t\tjs.retrieveData(JSON_URL, this);\n\t}", "private void loadData() {\n Log.d(LOG_TAG, \"loadData()\");\n /* If the device does not have an internet connection, then... */\n if (!NetworkUtils.hasInternetConnection(this)){\n showErrorMessage(true);\n return;\n }\n /* Make the View for the data visible and hide the error message */\n showDataView();\n\n /* Fetch the data from the web asynchronous using Retrofit */\n TMDBApi the_movie_database_api = new TMDBApi(new FetchDataTaskCompleteListener());\n /* Start the network transactions */\n the_movie_database_api.start(sortOrderCurrent);\n\n /* Display the loading indicator */\n displayLoadingIndicator(true);\n }", "private void initiateLoader() {\n ConnectivityManager connMgr = (ConnectivityManager)\n getSystemService(Context.CONNECTIVITY_SERVICE);\n\n // Get details on the currently active default data network\n NetworkInfo networkInfo = null;\n if (connMgr != null) {\n networkInfo = connMgr.getActiveNetworkInfo();\n }\n\n // If there is a network connection, fetch data\n if (networkInfo != null && networkInfo.isConnected()) {\n // Get a reference to the LoaderManager, in order to interact with loaders.\n avi.show();\n loadingIndicator.setVisibility(View.VISIBLE);\n errorContainer.setVisibility(View.GONE);\n LoaderManager loaderManager = getSupportLoaderManager();\n String url = BASE_URL + \"&from=\" + fromDate;\n url += \"&to=\" + toDate;\n url += \"&page=\" + currentPageNo;\n url += \"&sortBy=\" + sortPreference;\n if (queryText != null) {\n url += \"&q=\" + queryText;\n }\n\n Bundle args = new Bundle();\n args.putString(URL_KEY, url);\n if (forceLoad) {\n loaderManager.restartLoader(LAST_LOADER_ID, args, this);\n forceLoad = false;\n } else {\n LAST_LOADER_ID = NEWS_LOADER_ID;\n }\n if (!loaderInitiated) {\n loaderManager.initLoader(NEWS_LOADER_ID, args, this);\n loaderInitiated = true;\n } else {\n loaderManager.restartLoader(NEWS_LOADER_ID, args, this);\n }\n } else {\n avi.hide();\n loadingIndicator.setVisibility(View.GONE);\n ((TextView) errorContainer.findViewById(R.id.tvErrorDesc)).setText(R.string.no_conn_error_message);\n errorContainer.setVisibility(View.VISIBLE);\n }\n }", "@Override\n public List<Movie> loadInBackground() {\n\n // obtain the Url, used for the http request\n URL url = AppUtilities.buildUrl(pageNumberBeingQueried, sortOrderOfResults,\n searchQuerySubmitted, preferredMovieGenre, preferredStartYear,\n preferredEndYear, preferenceValuesAreDefault);\n\n // perform the url request\n String jsonResponseString = null;\n try {\n jsonResponseString = AppUtilities.getResponseFromHttpUrl(url);\n } catch (IOException io_exception) {\n io_exception.printStackTrace();\n }\n\n // initialise the return object\n List<Movie> movieList = null;\n\n // if the response String is not null - parse it\n if (jsonResponseString != null) {\n // call helper method to parse JSON\n Pair<List<Movie>, Integer> result = JsonUtilities.extractFromJSONString(jsonResponseString);\n movieList = result.first;\n jsonResponseCode = result.second;\n }\n return movieList;\n }", "protected abstract void loadData();", "private void loadData() {\n\t\tOptional<ServerData> loaded_data = dataSaver.load();\n\t\tif (loaded_data.isPresent()) {\n\t\t\tdata = loaded_data.get();\n\t\t} else {\n\t\t\tdata = new ServerData();\n\t\t}\n\t}", "private void loadMovies(String uri){\n showNothing();\n progressBar.setVisibility(View.VISIBLE);\n\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, uri,\n null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n try {\n progressBar.setVisibility(View.INVISIBLE);\n\n movieArrayList = Movie.getAllMovies(response.toString());\n\n loadRecyclerViewWithMovies(movieArrayList);\n\n showMovies();\n } catch (JSONException | NullPointerException e) {\n if(sortBy == Order.TOP_RATED || sortBy == Order.POPULARITY)\n showError();\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n if(sortBy == Order.TOP_RATED || sortBy == Order.POPULARITY)\n showError();\n }\n });\n\n requestQueue.add(jsonObjectRequest);\n }", "@Override\n\t\t\tpublic void onStart() {\n\t\t\t\tlistitem.clear();\n\t\t\t\tnew AsyncTask<Void, Void, Void>() {\n\t\t\t\t\tprotected Void doInBackground(Void... params) {\n\t\t\t\t\t\tgetmessage_list(1);\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tprotected void onPostExecute(Void result) {\n\t\t\t\t\t\tif (count >= 19) {\n\t\t\t\t\t\t\txListView.startLoadMore();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\txListView.stopLoadMore();\n\t\t\t\t\t\t}\n\t\t\t\t\t\txListView.setRefreshSuccess();\n\t\t\t\t\t\tadapter.notifyDataSetChanged();\n\t\t\t\t\t\tLog.d(TAG, \"jieshu\");\n\t\t\t\t\t}\n\t\t\t\t}.execute(null, null, null);\n\t\t\t}", "private void load(){\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\n Gson gson = new Gson();\n\n String json = preferences.getString(LISTS_DOWNLOADED,null);\n Type type =new TypeToken<ArrayList<String>>() {}.getType();\n downloadedBooks = gson.fromJson(json,type);\n\n json = preferences.getString(LISTS_PROGRESS,null);\n type =new TypeToken<ArrayList<Integer>>() {}.getType();\n progress=gson.fromJson(json,type);\n\n if(downloadedBooks == null){\n downloadedBooks = new ArrayList<>();\n }\n if(progress == null){\n progress = new ArrayList<>();\n }\n\n }", "@Override\n public ArrayList<Movie> loadInBackground() {\n\n\n URL movieRequestUrl = JsonUtils.createUrl(searchUrl);\n String movieSearchResults = null;\n ArrayList<Movie> movieResultData = new ArrayList<>();\n\n try {\n movieSearchResults = JsonUtils\n .getResponseFromHttpUrl(movieRequestUrl);\n movieResultData.addAll(OpenMovieJsonUtils.parseMovieJson(movieSearchResults));\n\n return movieResultData;\n\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n\n }", "@RequestMapping(method=RequestMethod.GET, value = \"/item\", produces = \"application/json\")\n public List<Item> getItems()\n {\n return this.itemRepository.getItems();\n }", "public LoadRestItem(int fno,String fname,int masterno,String mastername,int itemCode,String itemName,double dUnitPrice,double dTaxPrice,\n int dtaxClass,double mUnitPrice,double mTaxPrice,int mTaxClass,int currencyId,int subMenu){\n this.familyNno = fno;\n this.familyName = fname;\n this.masterNo = masterno;\n this.masterName = mastername;\n this.itemCode = itemCode;\n this.itemName = itemName;\n this.dUnitPrice = dUnitPrice;\n this.dTaxPrice = dTaxPrice;\n this.dtaxClass = dtaxClass;\n this.mUnitPrice = mUnitPrice;\n this.mTaxPrice = mTaxPrice;\n this.mTaxClass = mTaxClass; \n this.currencyId = currencyId;\n this.subMenu = subMenu;\n }", "public MusicData load(Long id) throws MusicAppException;", "@GET\r\n\t@Path(\"/all\")\r\n\t@Produces(\"application/json\")\r\n\tpublic JsonArray getAllItems(){\r\n\t\t \tConnection database = DBConnecter.getConnection();\r\n\t\t Statement stat = null;\r\n\t\t ResultSet rs = null;\r\n\t\t\ttry {\r\n\t\t\t\tstat = database.createStatement();\r\n\t\t\t\tString sqlQueryString = \"select * from item;\";\r\n\t\t\t\trs = stat.executeQuery(sqlQueryString);\r\n\t\t\t\tstat.executeQuery(sqlQueryString);\r\n\t\t\t\twhile(rs.next()){\r\n\t\t\t\t\tItem itemNew = new Item(\r\n\t\t \t\trs.getInt(idTagString),\r\n\t\t \t\trs.getInt(binNumString),\r\n\t\t \t\trs.getString(departmentString),\r\n\t\t \t\trs.getString(descriptionString),\r\n\t\t \t\trs.getFloat(replacementCostString),\r\n\t\t \t\trs.getFloat(priceString),\r\n\t\t \t\trs.getString(dimensionsString),\r\n\t\t \t\trs.getInt(lengthString),\r\n\t\t \t\trs.getFloat(weightString),\r\n\t\t \t\trs.getString(modelNumberString),\r\n\t\t \t\trs.getInt(purchaseDateString),\r\n\t\t \t\trs.getInt(warrantyEndDateString),\r\n\t\t \t\trs.getString(categoryString)\r\n\t\t \t\t);\r\n\t\t items.add(itemNew);\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\te.printStackTrace();\r\n\t\t\t}finally{\r\n\t\t\t\ttry {\r\n\t\t\t\t\trs.close();\r\n\t\t\t\t\tstat.close();\r\n\t\t\t\t\tdatabase.close();\r\n\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\t \r\n\t\t\t}\r\n\t\t\treturn getListAsJson(items);\r\n\t}", "public void loadHotels();", "public void loadData () {\n // create an ObjectInputStream for the file we created before\n ObjectInputStream ois;\n try {\n ois = new ObjectInputStream(new FileInputStream(\"DB/Guest.ser\"));\n\n int noOfOrdRecords = ois.readInt();\n Guest.setMaxID(ois.readInt());\n System.out.println(\"GuestController: \" + noOfOrdRecords + \" Entries Loaded\");\n for (int i = 0; i < noOfOrdRecords; i++) {\n guestList.add((Guest) ois.readObject());\n //orderList.get(i).getTable().setAvailable(false);\n }\n } catch (IOException | ClassNotFoundException e1) {\n // TODO Auto-generated catch block\n e1.printStackTrace();\n }\n }", "public void load(){\n\t\n\t\ttry {\n\t\t\t\n\t\t\t// Open Streams\n\t\t\tFileInputStream inFile = new FileInputStream(\"user.ser\");\n\t\t\tObjectInputStream objIn = new ObjectInputStream(inFile);\n\t\t\t\n\t\t\t// Load the existing UserList at the head\n\t\t\tthis.head = (User)objIn.readObject();\n\t\t\t\n\t\t\t// Close Streams\n\t\t\tobjIn.close();\n\t\t\tinFile.close();\n\t\t}\n\n\t\tcatch(Exception d) {\n\t\t System.out.println(\"Error loading\");\n\t\t}\n\n\t}", "private void getNewsList() {\n // While the app fetched data we are displaying a progress dialog\n\n if (isOnline(mContext)) {\n showProgressDialog();\n\n ApiInterface apiService = ApiRequest.getClient().create(ApiInterface.class);\n\n Call<News> call = apiService.loadNewsList();\n call.enqueue(new Callback<News>() {\n @Override\n public void onResponse(Call<News> call, retrofit2.Response<News> response) {\n dismissProgressDialog();\n\n news.setTitle(response.body().getTitle());\n\n newsList.addAll(response.body().getRows());\n showList();\n ActionBar actionBar = getActionBar();\n actionBar.setDisplayHomeAsUpEnabled(true);\n actionBar.setDisplayShowHomeEnabled(false);\n actionBar.setDisplayShowTitleEnabled(true);\n actionBar.setTitle(news.getTitle());\n actionBar.setDisplayUseLogoEnabled(false);\n }\n\n @Override\n public void onFailure(Call<News> call, Throwable t) {\n dismissProgressDialog();\n displayMessage(t.getMessage());\n setTextMessage();\n\n }\n });\n } else {\n\n displayMessage(getString(R.string.no_network));\n setTextMessage();\n }\n\n }", "public SubscriptionList load() throws ClassNotFoundException, IOException {\n SharedPreferences setting = context.getSharedPreferences(prefFile, Context.MODE_PRIVATE);\n String sub = setting.getString(slKey, \"\");\n //Check if sub is empty\n if (sub.equals(\"\")) {\n return (new SubscriptionList());\n }\n else {\n return SubFromString(sub);\n }\n\n }", "public void init(List<ClientDownloadItem> list) {\n if (list != null) {\n mItemlist.clear();\n mItemlist.addAll(list);\n Log.i(TAG, \"mItemlist.size = \" + mItemlist.size());\n notifyDataSetChanged();\n }\n }", "@Override\n\tpublic void load() {\n\t\thandler.postDelayed(new Runnable() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\trefreshListView.stopLoad();\n\t\t\t}\n\t\t}, 2000);\n\t}", "private void requestServerToGetInformation() {\n Net net = Net.getInstance();\n Log.i(TAG, \"requestServerToGetInformation: Start connect server\");\n net.get(AppConstant.SERVER_COMBO_URL, new Callback() {\n @Override\n public void onFailure(Call call, IOException e) {\n Log.i(TAG, \"onFailure: connect error; \" + e.getMessage());\n }\n @Override\n public void onResponse(Call call, Response response) throws IOException {\n // get the JSON from responses.\n String jsonStr = response.body().string();\n Log.i(TAG, \"onResponse: --------------------------------\" + jsonStr);\n parseJsonAndUpdateView(jsonStr.trim());\n }\n });\n }", "public void loadItem() {\n if (items == maxLoad) {\n throw new IllegalArgumentException(\"The dishwasher is full\");\n } else if (dishwasherState != State.ON) {\n throw new InvalidStateException(\"You cannot load dishes while the dishwasher is running/unloading\");\n }\n items++;\n }", "private void populateItems (ObservableList<Item> itemList) throws ClassNotFoundException {\n\t\ttblResult.setItems(itemList);\n\t}", "@Test\r\n\tpublic void loaderTest() {\r\n\t\tItem item = new Item();\r\n\t\tassertNotSame(item.getId(), 1);\r\n\t\ttry {\r\n\t\t\titem.loadById(1);\r\n\t\t\tassertEquals(item.getId(), 1);\r\n\t\t} catch (Exception e) {\r\n\t\t\tfail(\"Failed to load item id 1: Exception\");\r\n\t\t\t//e.printStackTrace();\r\n\t\t}\r\n\t}", "@RequestMapping(value = \"/items\", method = RequestMethod.GET)\n\tpublic @ResponseBody List<Item> itemListRest() {\n\t\treturn (List<Item>) repository.findAll();\n\t}", "private void loadMovies() {\n try {\n SharedPreferences prefs = getActivity().getSharedPreferences(\n PREFS_NAME, 0);\n if (prefs.contains(SP_FEED)) {\n\n JSONObject jsonObject = new JSONObject(prefs.getString(SP_FEED,\n \"\"));\n\n JSONArray jsonMovieArray;\n jsonMovieArray = (JSONArray) ((JSONObject) jsonObject\n .get(\"feed\")).get(\"entry\");\n\n if (jsonMovieArray != null) {\n int len = jsonMovieArray.length();\n for (int i = 0; i < len; i++) {\n JSONObject jsonMovie = (JSONObject) jsonMovieArray\n .get(i);\n mList.add(new Movie(jsonMovie));\n }\n }\n }\n\n } catch (JSONException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n // Update adapter\n mArrayAdapter.notifyDataSetChanged();\n }", "private void loadMoreItems() {\n isLoading = true;\n\n currentPage += 1;\n\n Call findMyFeedVideosCall = vimeoService.findMyFeedVideos(currentPage, PAGE_SIZE);\n calls.add(findMyFeedVideosCall);\n findMyFeedVideosCall.enqueue(findMyFeedVideosNextFetchCallback);\n }", "private void LoadContent()\n {\n \n }", "public T load(String ServerID)\r\n\t{\r\n\t\tFile f = new File(root,ServerID+\"/\"+instances.get(ServerID).path());\r\n\t\tT obj = instances.get(ServerID);\r\n\t\tif(f.exists() && obj != null)\r\n\t\t{\r\n\t\t\ttry {\r\n\t\t\t\tScanner s = new Scanner(f,\"UTF-8\");\r\n\t\t\t\tString txt=\"\";\r\n\t\t\t\twhile(s.hasNextLine())\r\n\t\t\t\t{\r\n\t\t\t\t\ttxt = txt+s.nextLine();\r\n\t\t\t\t}\r\n\t\t\t\ts.close();\r\n\t\t\t\treturn (T) obj.fromText(txt, gson);\r\n\t\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\r\n\t}", "private void loadRecyclerViewItem() {\n for (int i = 0; i < mySongs.size(); i++) {\n Song song = new Song(\n mySongs.get(i),\n mySongs.get(i).getName(),\n getTimeSong(mySongs.get(i))\n );\n songsList.add(song);\n }\n songAdapter = new TheAdapter(songsList,this);\n recyclerView.setAdapter(songAdapter);\n songAdapter.notifyDataSetChanged();\n\n }", "public void readData() {\n ConnectivityManager connMgr = (ConnectivityManager)\n this.getSystemService(Context.CONNECTIVITY_SERVICE);\n\n // Get details on the currently active default data network\n NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();\n\n // If there is a network connection, fetch data\n if (networkInfo != null && networkInfo.isConnected()) {\n // Get a reference to the LoaderManager, in order to interact with loaders.\n LoaderManager loaderManager = getLoaderManager();\n\n // number the loaderManager with mPage as may be requesting up to three lots of JSON for each tab\n loaderManager.restartLoader(FETCH_STOCK_PICKING_LOADER_ID, null, loadStockDetailFromServerListener);\n } else {\n // Otherwise, display error\n // First, hide loading indicator so error message will be visible\n View loadingIndicator = findViewById(R.id.loading_spinner);\n loadingIndicator.setVisibility(View.GONE);\n\n // Update empty state with no connection error message\n TextView noConnectionView = (TextView) findViewById(R.id.empty_view);\n noConnectionView.setText(getString(R.string.error_no_internet_connection));\n noConnectionView.setVisibility(View.VISIBLE);\n }\n }", "public void getRemoteItemById(long item_id) {\n url = Constants.getItemById;\n params = new HashMap<>();\n params.put(param_item_id, \"\" + item_id);\n\n if (ApiHelper.checkInternet(mContext)) {\n mApiHelper.getItemById(item_id, mIRestApiCallBack, true, url, params);\n } else {\n //Toast.makeText(mContext, mContext.getString(R.string.noInternetConnection), Toast.LENGTH_LONG).show();\n mIRestApiCallBack.onNoInternet();\n CacheApi cacheApi = loadCacheData(url, params);\n mSqliteCallBack.onDBDataObjectLoaded(cacheApi);\n }\n\n }", "private void _loadCatalog() {\n if (discoveryEndpoint != null) {\n try {\n ResponseEntity<String> response = restTemplate.getForEntity(discoveryEndpoint, String.class);\n\n if (response.getStatusCode() == HttpStatus.OK) {\n String body = response.getBody();\n this.catalog = CdsHooksUtil.GSON.fromJson(body, CdsHooksCatalog.class);\n startPendingRequests();\n return;\n }\n } catch (Exception e) {\n log.warn(\"Failed to load CDS catalog for \" + discoveryEndpoint\n + \".\\nRetries remaining: \" + retries + \".\");\n }\n\n retry();\n }\n }", "@Override\n protected void load(ScanningContext context) {\n ResourceItem item = getRepository().getResourceItem(mType, mResourceName);\n\n // add this file to the list of files generating this resource item.\n item.add(this);\n\n // Ask for an ID refresh since we're adding an item that will generate an ID\n context.requestFullAapt();\n }" ]
[ "0.70878154", "0.6799593", "0.67336434", "0.6684812", "0.66632485", "0.6526749", "0.6462015", "0.636916", "0.6316389", "0.63125575", "0.6277165", "0.6228814", "0.6216656", "0.6196266", "0.614395", "0.6117208", "0.60867244", "0.60644394", "0.604046", "0.6018807", "0.5989972", "0.592607", "0.59027785", "0.5888969", "0.5883901", "0.58515316", "0.5846736", "0.58236665", "0.57856303", "0.57504135", "0.57420254", "0.5726824", "0.57149845", "0.5703712", "0.5696371", "0.56824225", "0.56771004", "0.56518304", "0.5645267", "0.5644601", "0.56279254", "0.5619089", "0.56110954", "0.55925685", "0.55823886", "0.55811214", "0.5574329", "0.55728", "0.5565349", "0.55646485", "0.5558852", "0.55532783", "0.5553047", "0.5534113", "0.5523372", "0.5512497", "0.55053395", "0.5494732", "0.54927164", "0.5492097", "0.5487975", "0.54835546", "0.5472205", "0.5471652", "0.5460224", "0.545547", "0.5454999", "0.545321", "0.5443521", "0.5430535", "0.542955", "0.5429144", "0.54253066", "0.54215056", "0.5417753", "0.53928", "0.53856444", "0.5382519", "0.5377755", "0.53766614", "0.53757614", "0.5372393", "0.53709966", "0.53676903", "0.53650975", "0.53632426", "0.53610873", "0.5360535", "0.53492725", "0.53492343", "0.5341358", "0.53406656", "0.5339825", "0.53372526", "0.5334115", "0.53272456", "0.5322047", "0.5319641", "0.53147304", "0.53127444" ]
0.73141974
0
help methods Method to make REST GET request and then get response by callback using.
private void makeRestGetRequest(String url, OnJSONResponseCallback callback) { CheckItemsActivity context = this; RestClient.get(url, context.username, context.password, new JsonHttpResponseHandler() { @Override public void onSuccess(int statusCode, Header[] headers, JSONObject response) { callback.onJSONResponse(true, response); } @Override public void onFailure(int statusCode, Header[] headers, Throwable throwable, JSONObject errorResponse) { callback.onJSONResponse(false, errorResponse); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected String doInBackground(String... params) {\n\t\t RESTClient request=new RESTClient(getURL());\n\t try {\n\t\t\t\trequest.Execute(RequestMethod.GET);\n\t\t\t\treturn request.getResponse();\n\t\t\t} \n\t catch (Exception e) \n\t\t\t{\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn null;\n\t\t\t}\n\t \n\t}", "public void get(final ICallback<? super EntityType2> callback) {\n send(HttpMethod.GET, callback, null);\n }", "public void get(final ICallback<? super PersonName> callback) {\n send(HttpMethod.GET, callback, null);\n }", "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "Request getGeneralData(AsyncCallback<GeneralData> callback);", "public void doGet( )\n {\n \n }", "GetResponse() {\n\t}", "public Result get(Get get) throws IOException;", "ServiceBoxActionParameters onGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response,\n\t\t\tServiceBoxActionParameters callbackResult) throws IOException;", "public void sendGetRequest(String urlResource,RequestCallback callback){\t\t\r\n\t\trequestBuilder = new RequestBuilder(RequestBuilder.GET, dispatcherURL + urlResource);\r\n\t\trequestBuilder.setHeader(\"Content-Type\", \"application/x-www-form-urlencoded\");\r\n\t\ttry {\t\t\t\r\n\t\t\trequestBuilder.sendRequest(\"\", callback);\r\n\t\t} catch (RequestException e) {\r\n\t\t\tWindow.alert(e.getMessage());\r\n\t\t}\r\n\t}", "@GET(\"/api/users\")\n public void getUser(Callback<List<User>> callback);", "public void startgetYYT_DTXYJCBG(\r\n org.tempuri.HISWebServiceStub.GetYYT_DTXYJCBG getYYT_DTXYJCBG40,\r\n final org.tempuri.HISWebServiceCallbackHandler callback)\r\n throws java.rmi.RemoteException {\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[20].getName());\r\n _operationClient.getOptions()\r\n .setAction(\"http://tempuri.org/GetYYT_DTXYJCBG\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n addPropertyToOperationClient(_operationClient,\r\n org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\r\n \"&\");\r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n //Style is Doc.\r\n env = toEnvelope(getFactory(_operationClient.getOptions()\r\n .getSoapVersionURI()),\r\n getYYT_DTXYJCBG40,\r\n optimizeContent(\r\n new javax.xml.namespace.QName(\"http://tempuri.org/\",\r\n \"getYYT_DTXYJCBG\")),\r\n new javax.xml.namespace.QName(\"http://tempuri.org/\",\r\n \"GetYYT_DTXYJCBG\"));\r\n\r\n // adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // create message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message context to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\r\n public void onMessage(\r\n org.apache.axis2.context.MessageContext resultContext) {\r\n try {\r\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\r\n\r\n java.lang.Object object = fromOM(resultEnv.getBody()\r\n .getFirstElement(),\r\n org.tempuri.HISWebServiceStub.GetYYT_DTXYJCBGResponse.class);\r\n callback.receiveResultgetYYT_DTXYJCBG((org.tempuri.HISWebServiceStub.GetYYT_DTXYJCBGResponse) object);\r\n } catch (org.apache.axis2.AxisFault e) {\r\n callback.receiveErrorgetYYT_DTXYJCBG(e);\r\n }\r\n }\r\n\r\n public void onError(java.lang.Exception error) {\r\n if (error instanceof org.apache.axis2.AxisFault) {\r\n org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n\r\n if (faultElt != null) {\r\n if (faultExceptionNameMap.containsKey(\r\n new org.apache.axis2.client.FaultMapKey(\r\n faultElt.getQName(),\r\n \"GetYYT_DTXYJCBG\"))) {\r\n //make the fault by reflection\r\n try {\r\n java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(\r\n faultElt.getQName(),\r\n \"GetYYT_DTXYJCBG\"));\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(\r\n faultElt.getQName(),\r\n \"GetYYT_DTXYJCBG\"));\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,\r\n messageClass);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[] { messageClass });\r\n m.invoke(ex,\r\n new java.lang.Object[] { messageObject });\r\n\r\n callback.receiveErrorgetYYT_DTXYJCBG(new java.rmi.RemoteException(\r\n ex.getMessage(), ex));\r\n } catch (java.lang.ClassCastException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetYYT_DTXYJCBG(f);\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetYYT_DTXYJCBG(f);\r\n } catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetYYT_DTXYJCBG(f);\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetYYT_DTXYJCBG(f);\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetYYT_DTXYJCBG(f);\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetYYT_DTXYJCBG(f);\r\n } catch (org.apache.axis2.AxisFault e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetYYT_DTXYJCBG(f);\r\n }\r\n } else {\r\n callback.receiveErrorgetYYT_DTXYJCBG(f);\r\n }\r\n } else {\r\n callback.receiveErrorgetYYT_DTXYJCBG(f);\r\n }\r\n } else {\r\n callback.receiveErrorgetYYT_DTXYJCBG(error);\r\n }\r\n }\r\n\r\n public void onFault(\r\n org.apache.axis2.context.MessageContext faultContext) {\r\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\r\n onError(fault);\r\n }\r\n\r\n public void onComplete() {\r\n try {\r\n _messageContext.getTransportOut().getSender()\r\n .cleanup(_messageContext);\r\n } catch (org.apache.axis2.AxisFault axisFault) {\r\n callback.receiveErrorgetYYT_DTXYJCBG(axisFault);\r\n }\r\n }\r\n });\r\n\r\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\r\n\r\n if ((_operations[20].getMessageReceiver() == null) &&\r\n _operationClient.getOptions().isUseSeparateListener()) {\r\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\r\n _operations[20].setMessageReceiver(_callbackReceiver);\r\n }\r\n\r\n //execute the operation client\r\n _operationClient.execute(false);\r\n }", "public ResponseTranslator get() {\n setMethod(\"GET\");\n return doRequest();\n }", "public Response callback() throws Exception;", "@GET\n @Produces(MediaType.TEXT_PLAIN)\n public Response getIt() {\n logger.info(\"Hello World method called.\");\n\n return Response\n .status(Response.Status.OK)\n .entity(\"Hello World\")\n .build();\n }", "@Test\n\t \n\t public void getApi() {\n\t\t \n\t\t Response getIt=get(\"https://reqres.in/api/users?page=2\");\n\t\t getIt.prettyPrint();\n\t\t System.out.println(getIt.getStatusCode());\n\t\t System.out.println(getIt.getTime());\n\t\t \n\t\t //to validate\n\t\t int validGstatus=getIt.getStatusCode();\n\t\t Assert.assertEquals(validGstatus,200);\n\t\t \n\t }", "public void getData (final String request, final APIResponseCallable callback) {\n\n Log.d(\"API\", \"Sending get request to URL (\" + SERVICE_URL + request + \")\");\n\n executorService.execute(new Runnable() {\n @Override\n public void run() {\n\n try {\n URL url = new URL(SERVICE_URL + request);\n // Open a connection using HttpURLConnection\n HttpURLConnection con = (HttpURLConnection) url.openConnection();\n\n con.setRequestMethod(\"GET\");\n con.setReadTimeout(10000);\n con.setConnectTimeout(10000);\n\n // Send\n InputStream in = con.getInputStream();\n\n con.connect();\n\n BufferedReader br = null;\n if (con.getResponseCode() != HttpURLConnection.HTTP_OK) {\n br = new BufferedReader(new InputStreamReader(con.getErrorStream()));\n\n } else {\n br = new BufferedReader(new InputStreamReader(con.getInputStream()));\n }\n\n JSONObject resp = bufferToJson(br);\n\n callback.setResponse(resp);\n callback.call();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }\n });\n }", "R get() throws IOException, ClientProtocolException;", "public void get (final NodeID nodeID, GetCallBack listener);", "public void GetData(String uri,String id ,String type){\n RequestPackage p = new RequestPackage();\n p.setUri(uri);\n p.setMethod(\"GET\");\n p.setParam(\"id\",id);\n p.setParam(\"type\",type);\n\n GetTask getTask = new GetTask();\n getTask.execute(p);\n\n\n\n }", "public void get(final ICallback<? super DeviceManagementScriptDeviceState> callback) {\n send(HttpMethod.GET, callback, null);\n }", "public void startgetYYT_ZQGSZSYBG(\r\n org.tempuri.HISWebServiceStub.GetYYT_ZQGSZSYBG getYYT_ZQGSZSYBG18,\r\n final org.tempuri.HISWebServiceCallbackHandler callback)\r\n throws java.rmi.RemoteException {\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[9].getName());\r\n _operationClient.getOptions()\r\n .setAction(\"http://tempuri.org/GetYYT_ZQGSZSYBG\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n addPropertyToOperationClient(_operationClient,\r\n org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\r\n \"&\");\r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n //Style is Doc.\r\n env = toEnvelope(getFactory(_operationClient.getOptions()\r\n .getSoapVersionURI()),\r\n getYYT_ZQGSZSYBG18,\r\n optimizeContent(\r\n new javax.xml.namespace.QName(\"http://tempuri.org/\",\r\n \"getYYT_ZQGSZSYBG\")),\r\n new javax.xml.namespace.QName(\"http://tempuri.org/\",\r\n \"GetYYT_ZQGSZSYBG\"));\r\n\r\n // adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // create message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message context to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\r\n public void onMessage(\r\n org.apache.axis2.context.MessageContext resultContext) {\r\n try {\r\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\r\n\r\n java.lang.Object object = fromOM(resultEnv.getBody()\r\n .getFirstElement(),\r\n org.tempuri.HISWebServiceStub.GetYYT_ZQGSZSYBGResponse.class);\r\n callback.receiveResultgetYYT_ZQGSZSYBG((org.tempuri.HISWebServiceStub.GetYYT_ZQGSZSYBGResponse) object);\r\n } catch (org.apache.axis2.AxisFault e) {\r\n callback.receiveErrorgetYYT_ZQGSZSYBG(e);\r\n }\r\n }\r\n\r\n public void onError(java.lang.Exception error) {\r\n if (error instanceof org.apache.axis2.AxisFault) {\r\n org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n\r\n if (faultElt != null) {\r\n if (faultExceptionNameMap.containsKey(\r\n new org.apache.axis2.client.FaultMapKey(\r\n faultElt.getQName(),\r\n \"GetYYT_ZQGSZSYBG\"))) {\r\n //make the fault by reflection\r\n try {\r\n java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(\r\n faultElt.getQName(),\r\n \"GetYYT_ZQGSZSYBG\"));\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(\r\n faultElt.getQName(),\r\n \"GetYYT_ZQGSZSYBG\"));\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,\r\n messageClass);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[] { messageClass });\r\n m.invoke(ex,\r\n new java.lang.Object[] { messageObject });\r\n\r\n callback.receiveErrorgetYYT_ZQGSZSYBG(new java.rmi.RemoteException(\r\n ex.getMessage(), ex));\r\n } catch (java.lang.ClassCastException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetYYT_ZQGSZSYBG(f);\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetYYT_ZQGSZSYBG(f);\r\n } catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetYYT_ZQGSZSYBG(f);\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetYYT_ZQGSZSYBG(f);\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetYYT_ZQGSZSYBG(f);\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetYYT_ZQGSZSYBG(f);\r\n } catch (org.apache.axis2.AxisFault e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetYYT_ZQGSZSYBG(f);\r\n }\r\n } else {\r\n callback.receiveErrorgetYYT_ZQGSZSYBG(f);\r\n }\r\n } else {\r\n callback.receiveErrorgetYYT_ZQGSZSYBG(f);\r\n }\r\n } else {\r\n callback.receiveErrorgetYYT_ZQGSZSYBG(error);\r\n }\r\n }\r\n\r\n public void onFault(\r\n org.apache.axis2.context.MessageContext faultContext) {\r\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\r\n onError(fault);\r\n }\r\n\r\n public void onComplete() {\r\n try {\r\n _messageContext.getTransportOut().getSender()\r\n .cleanup(_messageContext);\r\n } catch (org.apache.axis2.AxisFault axisFault) {\r\n callback.receiveErrorgetYYT_ZQGSZSYBG(axisFault);\r\n }\r\n }\r\n });\r\n\r\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\r\n\r\n if ((_operations[9].getMessageReceiver() == null) &&\r\n _operationClient.getOptions().isUseSeparateListener()) {\r\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\r\n _operations[9].setMessageReceiver(_callbackReceiver);\r\n }\r\n\r\n //execute the operation client\r\n _operationClient.execute(false);\r\n }", "static String sendGET(String GET_URL) throws IOException, JSONException {\n\t\t// Check URL is valid or not.\n\t\tif (isValidURL(GET_URL)) {\n\t\t\ttry {\n\t\t\t\tURL obj = new URL(GET_URL);\n\t\t\t\tHttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\t\t\t\tcon.setRequestMethod(\"GET\");\n\t\t\t\tcon.setRequestProperty(\"User-Agent\", USER_AGENT);\n\t\t\t\tint responseCode = con.getResponseCode();\n\t\t\t\tSystem.out.println(\"GET Response Code :: \" + responseCode);\n\t\t\t\tif (responseCode == HttpURLConnection.HTTP_OK) { // success\n\t\t\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n\t\t\t\t\tString inputLine;\n\t\t\t\t\tStringBuffer response = new StringBuffer();\n\n\t\t\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\t\t\tresponse.append(inputLine);\n\t\t\t\t\t}\n\t\t\t\t\tin.close();\n\t\t\t\t\t// Convert to json object and get specified data from it. Then you can print if the response is json type.\n\t\t\t\t\tString list = getList(response.toString());\n\t\t\t\t\tSystem.out.println(list);\n\t\t\t\t\t// print result\n\t\t\t\t\tSystem.out.println(response.toString());\n\t\t\t\t\treturn \"GET request worked\"; // Added for testing.\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"GET request not worked\");\n\t\t\t\t\treturn \"GET request not worked\";\n\t\t\t\t}\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\treturn \"URL is valid but connection could not be established.\";\n\t\t\t} catch (IOException e) {\n\t\t\t\treturn \"URL is valid but connection could not be established.\";\n\t\t\t}\n\t\t} else {\n\t\t\treturn \"URL is not valid.\";\n\t\t}\n\t}", "@GET\n\n\t@Produces(MediaType.TEXT_PLAIN)\n\n\t//@Path(\"test\")\n\tpublic String getIt() {\n\n\t\treturn \"Got it!\";\n\t}", "@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}", "public void get(final ICallback<? super SalesOrderLine> callback) {\n send(HttpMethod.GET, callback, null);\n }", "@Override\n public final void doGet() {\n try {\n checkPermissions(getRequest());\n // GET one\n if (id != null) {\n output(api.runGet(id, getParameterAsList(PARAMETER_DEPLOY), getParameterAsList(PARAMETER_COUNTER)));\n } else if (countParameters() == 0) {\n throw new APIMissingIdException(getRequestURL());\n }\n // Search\n else {\n\n final ItemSearchResult<?> result = api.runSearch(Integer.parseInt(getParameter(PARAMETER_PAGE, \"0\")),\n Integer.parseInt(getParameter(PARAMETER_LIMIT, \"10\")), getParameter(PARAMETER_SEARCH),\n getParameter(PARAMETER_ORDER), parseFilters(getParameterAsList(PARAMETER_FILTER)),\n getParameterAsList(PARAMETER_DEPLOY), getParameterAsList(PARAMETER_COUNTER));\n\n head(\"Content-Range\", result.getPage() + \"-\" + result.getLength() + \"/\" + result.getTotal());\n\n output(result.getResults());\n }\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n }\n }", "public String getResultFromGET() \r\n\t{\r\n\t\tString resultstring = null;\r\n\t\t\r\n\t\t// Use BasicNameValuePair to create GET data\r\n\t\tList<NameValuePair> pairs = new ArrayList<NameValuePair>();\r\n\t\tpairs.add(new BasicNameValuePair(\"token\", user.getTokenkey()));\r\n\t\tpairs.add(new BasicNameValuePair(\"method\", \"accountapi.getNotifications\"));\r\n\t\t\r\n\t\t// url request\r\n\t\tString URL = null;\r\n\t\tif (Config.CORE_URL == null) {\r\n\t\t\tURL = Config.makeUrl(user.getCoreUrl(), null, false);\t\r\n\t\t} else {\r\n\t\t\tURL = Config.makeUrl(Config.CORE_URL, null, false);\r\n\t\t}\r\n\t\t\r\n\t\t// request GET method to server\r\n\t\tresultstring = networkUntil.makeHttpRequest(URL, \"GET\", pairs);\r\n\t\t\r\n\t\tLog.i(\"DEBUG\", resultstring);\r\n\t\t\r\n\t\treturn resultstring;\r\n\t}", "@GET\n @Produces(MediaType.TEXT_PLAIN)\n public String getIt() {\n return \"Got it!\";\n }", "public static int doGet(String id, Result r) {\n r.setValue(\"\");\n String response = \"\";\n HttpURLConnection conn;\n int status = 0;\n try {\n // pass the name on the URL line\n URL url = new URL(\"https://intense-lake-93564.herokuapp.com/menusection/\" + \"//\"+id);\n conn = (HttpURLConnection) url.openConnection();\n conn.setRequestMethod(\"GET\");\n // tell the server what format we want back\n conn.setRequestProperty(\"Accept\", \"text/plain\");\n // wait for response\n status = conn.getResponseCode();\n // If things went poorly, don't try to read any response, just return.\n if (status != 200) {\n // not using msg\n String msg = conn.getResponseMessage();\n return conn.getResponseCode();\n }\n String output = \"\";\n // things went well so let's read the response\n BufferedReader br = new BufferedReader(new InputStreamReader(\n (conn.getInputStream())));\n while ((output = br.readLine()) != null) {\n response += output;\n }\n conn.disconnect(); \n }\n catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n // return value from server\n // set the response object\n r.setValue(response);\n // return HTTP status to caller\n return status;\n }", "public interface OnRestCallback {\n void onNetSuccess(int requestCode, int responseCode, String data);\n void onNetError(int requestCode, int responseCode, String error);\n}", "private void getResponse(final String url, final String user, final String pass,final String restPath){\n \n \t\ttry{\n \t\t\t\tHttpHost targetHost = new HttpHost(url, 80, \"http\");\n \t\t\t\t\n \t\t\t\tHttpClient httpClient = new DefaultHttpClient();\n \t\t\t\t\n \t\t\t\t((AbstractHttpClient) httpClient).getCredentialsProvider().setCredentials(\n \t\t\t\t\t\tnew AuthScope(targetHost.getHostName(),targetHost.getPort()), \n \t\t\t\t\t\tnew UsernamePasswordCredentials(user,pass));\n \t\t\t\t\n \t\t\t\t\n \t\t\t\tHttpGet httpGet = new HttpGet(\"http://\"+url+ restPath);\n \t\t\t\tHttpResponse httpResponse;\n \t\t\t\thttpResponse = httpClient.execute(httpGet);\n \t\t\t\tStringBuilder resp = inputStreamToString(httpResponse.getEntity().getContent());\n \t\t\t\t\n \t\t\t\tif(restPath.contains(RESTBUILDTYPEPATH)){\n \t\t\t\t\tArrayList<TeamCityBuilds> respXml = (ArrayList<TeamCityBuilds>) ParseXMLResponse(resp, new BuildsDataHandler());\n \t\t\t\t\tnew ShowBuildNames().execute(respXml);\n \t\t\t\t}\n \t\t\t\telse if(restPath.contains(RESTPROJECTSPATH)){\n \t\t\t\t\tArrayList<TeamCityProject> respXml = (ArrayList<TeamCityProject>) ParseXMLResponse(resp, new TCDataHandler());\n \t\t\t\t\tnew ShowProjectList().execute(respXml);\n \t\t\t\t}else{\n \t\t\t\t\t//gets you build name and status information\n \t\t\t\t\tArrayList<TeamCityBuilds> respXml = (ArrayList<TeamCityBuilds>) ParseXMLResponse(resp, new BuildsDataHandler());\n \t\t\t\t\tnew ShowBuildStatusList().execute(respXml);\n \t\t\t\t}\n \t\t\t\t\t\n \t\t\t}catch (ClientProtocolException e){\n \t\t\t\te.printStackTrace();\n \t\t\t\tshowAlertDialog(\"Oh Oh! We are having trouble connecting to the server with those credentials! Please recheck your url, username and password.\");\t\t \n \t\t\t} catch (IOException e) {\n \t\t\t\te.printStackTrace();\n \t\t\t\tshowAlertDialog(\"Oh Oh! We are having trouble connecting to the server with those credentials! Please recheck your url, username and password.\");\n \t\t\t}\n \t\t\n \t}", "private void getBooks(){\n final ProgressDialog loading = ProgressDialog.show(this,\"Fetching Data\",\"Please wait...\",false,false);\n\n //Creating a rest adapter\n RestAdapter adapter = new RestAdapter.Builder()\n .setEndpoint(ROOT_URL)\n .build();\n\n //Creating an object of our api interface\n BooksAPI api = adapter.create(BooksAPI.class);\n\n //Defining the method\n api.getBooks(new Callback<List<Book>>() {\n @Override\n public void success(List<Book> list, Response response) {\n //Dismissing the loading progressbar\n loading.dismiss();\n Log.e(\"response\", response.getReason());\n //Storing the data in our list\n books = (ArrayList<Book>) list;\n lv.setAdapter(listAdapter);\n //Calling a method to show the list\n //showList();\n }\n\n @Override\n public void failure(RetrofitError error) {\n //you can handle the errors here\n Log.e(\"error\",error.getResponse().getReason());\n }\n });\n }", "@GET(Url.END_POINT)\n Call<ArrayList<Recipe>> getRecipes();", "public interface Api {\n\n @GET(Constants.DATA)\n void getData(Callback<FiveHundResponse> callback);\n\n}", "@GET\n @Path(\"/help\")\n @Produces(MediaType.APPLICATION_JSON)\n public Response getHelp(@HeaderParam(\"authorization\") String authString, @HeaderParam(\"userid\") String userid) {\n\n\t\t/*if(!APIHConfig.getInstance().validateUser(authString,userid,\"GET\")){\n return Response.status(401).entity(UNAUTHORIZED).build();\n\t\t}*/\n\n String result = cloudifyHelp.getHelp();\n logger.info(\"Handled get help API Request\");\n return Response.status(200).entity(result)\n .build();\n }", "public abstract void actionReal(HttpResponseCallback callback);", "private void requestServerToGetInformation() {\n Net net = Net.getInstance();\n Log.i(TAG, \"requestServerToGetInformation: Start connect server\");\n net.get(AppConstant.SERVER_COMBO_URL, new Callback() {\n @Override\n public void onFailure(Call call, IOException e) {\n Log.i(TAG, \"onFailure: connect error; \" + e.getMessage());\n }\n @Override\n public void onResponse(Call call, Response response) throws IOException {\n // get the JSON from responses.\n String jsonStr = response.body().string();\n Log.i(TAG, \"onResponse: --------------------------------\" + jsonStr);\n parseJsonAndUpdateView(jsonStr.trim());\n }\n });\n }", "@Test\n void getTest() {\n URI uri = URI.create(endBody + \"/get\");\n\n // get the response\n HttpResponse<String> response = HttpMethods.get(uri);\n\n // check if it received OK\n assertEquals(200, response.statusCode());\n }", "public interface AllCareerInterface {\n @GET(\"/retrieveCareer.php\")\n void getCareer(Callback<List<AllCareer>> callback);\n}", "public void GetCall(String url) throws ClientProtocolException, IOException {\n\t\tCloseableHttpClient httpclient=HttpClients.createDefault();\n\t\tHttpGet httpget=new HttpGet(url);\n\t//lohith\n\t\tCloseableHttpResponse closeablehttpresponse=httpclient.execute(httpget);\n\t\tint responsestatuscode=closeablehttpresponse.getStatusLine().getStatusCode();\n\t\tSystem.out.println(\"responsestatuscode: \"+responsestatuscode);\n\t\t\n\t\tString response=EntityUtils.toString(closeablehttpresponse.getEntity(),\"UTF-8\");\n\t\tSystem.out.println(\"ClientResponse: \"+response);\n\t\tJSONObject jsonobject= new JSONObject(response);\n\t\t\n\t\tSystem.out.println(\"jsonobject: \"+jsonobject);\n\t\t\n\t\t\n\t}", "Response get(URL target, QueryInput input, List<? extends HttpAuthentication> auth)\n throws IOException, DataRetrievalException;", "public void read(IServerCallback callback) {\n ServerCall sc = new ServerCall(ServiceName.matchMaking, ServiceOperation.READ, null, callback);\n _client.sendRequest(sc);\n }", "public void doGet() throws IOException {\n\n // search ressource\n byte[] contentByte = null;\n try {\n contentByte = ToolBox.readFileByte(RESOURCE_DIRECTORY, this.url);\n this.statusCode = OK;\n ContentType contentType = new ContentType(this.extension);\n sendHeader(statusCode, contentType.getContentType(), contentByte.length);\n } catch (IOException e) {\n System.out.println(\"Ressource non trouvé\");\n statusCode = NOT_FOUND;\n contentByte = ToolBox.readFileByte(RESPONSE_PAGE_DIRECTORY, \"pageNotFound.html\");\n sendHeader(statusCode, \"text/html\", contentByte.length);\n }\n\n this.sendBodyByte(contentByte);\n }", "public abstract RestURL getURL();", "public void getAllBook(){\n Call<Book> call = api.testBooks();\n call.enqueue(\n new Callback<Book>() {\n @Override\n public void onResponse(Call<Book> call, Response<Book> response) {\n Log.e(\"Test API\", \"on Response \"+response.body());\n Book book = response.body();\n Log.e(\"Test API\", \"on Response \"+book.getAuthor());\n Log.e(\"Test API\", \"on Response \"+book.getTitle());\n Log.e(\"Test API\", \"on Response \"+book.getLanguage());\n Log.e(\"Test API\", \"on Response \"+book.getDescription());\n view.onGetSuccess(book);\n }\n\n @Override\n public void onFailure(Call<Book> call, Throwable t) {\n Log.i(\"Test API\", \"on Failure \"+t.getLocalizedMessage());\n }\n }\n );\n }", "public abstract String getResponse();", "java.lang.String getResponse();", "public static int doGetList(Result r) {\n // Make an HTTP GET passing the name on the URL line\n r.setValue(\"\");\n String response = \"\";\n HttpURLConnection conn;\n int status = 0;\n try {\n \n URL url = new URL(\"https://intense-lake-93564.herokuapp.com/menusection/\");\n conn = (HttpURLConnection) url.openConnection();\n conn.setRequestMethod(\"GET\");\n // tell the server what format we want back\n conn.setRequestProperty(\"Accept\", \"text/plain\");\n // wait for response\n status = conn.getResponseCode();\n // If things went poorly, don't try to read any response, just return.\n if (status != 200) {\n // not using msg\n String msg = conn.getResponseMessage();\n return conn.getResponseCode();\n }\n String output = \"\";\n // things went well so let's read the response\n BufferedReader br = new BufferedReader(new InputStreamReader(\n (conn.getInputStream()))); \n while ((output = br.readLine()) != null) {\n response += output; \n } \n conn.disconnect();\n \n }\n catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } \n // return value from server\n // set the response object\n r.setValue(response);\n // return HTTP status to caller\n return status;\n }", "public interface AgendaMedicaAPI {\n\n @GET(\"agendaMedica/listarAgendaMedica\")\n Call<List<AgendaMedica>> listarAgendaMedica();\n// void listarAgendaMedica(Callback<List<AgendaMedica>> agendaMedica);\n\n}", "public void run() {\n\t\t\t\tHttpURLConnection connection = null;\r\n\t\t\t\tStringBuilder response = new StringBuilder();\r\n\t\t\t\ttry{\r\n\t\t\t\t\tURL url = new URL(address);\r\n\t\t\t\t\tconnection = (HttpURLConnection) url.openConnection();\r\n\t\t\t\t\tconnection.setRequestMethod(\"GET\");\r\n\t\t\t\t\tconnection.setConnectTimeout(8000);\r\n\t\t\t\t\tconnection.setReadTimeout(8000);\r\n\t\t\t\t\tconnection.setDoInput(true);\r\n\t\t\t\t\t//connection.setDoOutput(true);\r\n\t\t\t\t\tint responseCode = connection.getResponseCode();\r\n\t\t\t\t\tLog.d(\"HttpUtil\", String.valueOf(responseCode));\r\n\t\t\t\t\tif(responseCode != 200){\r\n\t\t\t\t\t\tLog.d(\"HttpUtil\", \"Get Fail\");\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tInputStream in = connection.getInputStream();\r\n\t\t\t\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(in));\r\n\t\t\t\t\t\tString line;\r\n\t\t\t\t\t\twhile((line = reader.readLine()) != null){\r\n\t\t\t\t\t\t\tresponse.append(line);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tLog.d(\"HttpUtil\", \"Get Success\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(listener != null){\r\n\t\t\t\t\t\tlistener.onFinish(response.toString());\r\n\t\t\t\t\t}\r\n\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\tif(listener != null){\r\n\t\t\t\t\t\tlistener.onError(e);\r\n\t\t\t\t\t}\r\n\t\t\t\t}finally{\r\n\t\t\t\t\tif(connection != null){\r\n\t\t\t\t\t\tconnection.disconnect();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}", "public void makeCallGetWithToken(String url, Context context, String token, CompleteListener<String> mCompleteTaskListener) {\n //Instantiate the RequestQueue\n mCompleteTaskListener.setProgressBar(true);\n RequestQueue queue = Volley.newRequestQueue(context);\n //Request a string response from the provided URL\n StringRequest stringRequest = new StringRequest(Request.Method.GET, url,\n response -> {\n Log.v(TAG, \"Json result: > \" + response);\n //Listeners for use methods of activity\n mCompleteTaskListener.setProgressBar(false);\n mCompleteTaskListener.onTaskComplete(true, response);\n }, error -> {\n Log.e(TAG, context.getResources().getString(R.string.error_label));\n //Listeners for use methods of activity\n mCompleteTaskListener.setProgressBar(false);\n mCompleteTaskListener.onTaskComplete(false, context.getResources().getString(R.string.error_label));\n }) {\n //Set the header of the request\n @Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headerMap = new HashMap<String, String>();\n headerMap.put(\"Content-Type\", \"application/json\");\n headerMap.put(\"Authorization\", \"Bearer \" + token);\n return headerMap;\n }\n };\n //Add the request to the RequestQueue\n queue.add(stringRequest);\n }", "String getResponse();", "@GET\r\n @Produces(MediaType.APPLICATION_JSON)\r\n public String getIt() {\r\n // return \"Got it!\";\r\n \treturn appObj.readAppointment();\r\n }", "public void get(final ICallback<? super WorkbookChart> callback) {\n send(HttpMethod.GET, callback, null);\n }", "@GET\n\t@Path(\"/{param}\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\t//@Consumes(MediaType.TEXT_XML)\n\tpublic Response sampleResourceGet(@PathParam(\"param\") String msg) {\n\t\t\n\t\tSystem.out.println(\"msg:::: \"+msg);\n\t\t\n\t\t//String result = \"<RestfulExample><H1>\" + msg + \"</H1></RestfulExample>\";\n\n\t\t\t\n\t\treturn Response.status(200).entity(msg).build();\n\n\t}", "public interface MovieApiService {\n @GET(\"/movie/popular\")\n void getPopularMovies(Callback<Movie.MovieResult> cb);\n}", "protected abstract void makeRequest(@NonNull final C callback);", "public interface GetVersionInterface {\n\n @GET\n Call<NativeVersionResBean> getVersionRes(@Url String url, @QueryMap Map<String, String> params);\n\n}", "public interface RestInterface {\n\n @GET(\"{currency}/\")\n Call<List<ResponseModel>> geCurrency(@Path(\"currency\") String currency);\n}", "public interface LooksoftMainApi {\n @GET(\"main\")\n Call<Data> loadData();\n}", "private void requestGet(String endpoint, Map<String, String> params, RequestListener listener) throws Exception {\n String requestUri = Constant.API_BASE_URL + ((endpoint.indexOf(\"/\") == 0) ? endpoint : \"/\" + endpoint);\n get(requestUri, params, listener);\n }", "private static String sendGET(String getURL) throws IOException {\n\t\tURL obj = new URL(getURL);\n\t\tHttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\t\tcon.setRequestMethod(\"GET\");\n\t\tString finalResponse = \"\";\n\n\t\t//This way we know if the request was processed successfully or there was any HTTP error message thrown.\n\t\tint responseCode = con.getResponseCode();\n\t\tSystem.out.println(\"GET Response Code : \" + responseCode);\n\t\tif (responseCode == HttpURLConnection.HTTP_OK) { // success\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n\t\t\tString inputLine;\n\t\t\tStringBuffer buffer = new StringBuffer();\n\n\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\tbuffer.append(inputLine);\n\t\t\t}\n\t\t\tin.close();\n\n\t\t\t// print result\n\t\t\tfinalResponse = buffer.toString();\n\t\t} else {\n\t\t\tSystem.out.println(\"GET request not worked\");\n\t\t}\n\t\treturn finalResponse;\n\t}", "public DResult get(Get get, long startId) throws IOException;", "@SuppressWarnings(\"unchecked\")\n\t@GET\n @Path(\"get/{hash}\")\n @Produces(\"application/json\")\n public Response getIt(@PathParam(\"hash\") String curHash) {\n \t\n \tJSONObject resp = new JSONObject();\n \t\n \tOnlineStatus on = OnlineStatus.getInstance(); \n \t\n \t// Find SA\n \tint saID = SADAO.hashToId(curHash);\n \t\n \tif (saID == 0) {\n \t\tresp.put(\"Error\", \"Hash not in database\");\n \t\treturn Response.status(200).entity(resp.toJSONString()).build();\n \t}\n \t\n \t//if SA is set for exit\n \tif(on.isForExit(curHash)){\n \t\tresp.put(\"Signal\" , \"Kill\");\n \t\ton.exited(curHash);\n \t\t\n \t\treturn Response.status(200).entity(resp.toJSONString()).build();\n \t}\n \t\n \t// Update SAs Online Status\n \ton.update(curHash);\n \t\n \t// Find jobs for SA\n \tLinkedList<Job> jobsToSendToSa = JobDAO.getAllSAJobs(saID);\n \t\n \tif(jobsToSendToSa.size() > 0){\n \t\tSystem.out.println(\"Sending to SA \"+curHash+\" the following job(s) :\");\n \t}\n \tfor (Job j : jobsToSendToSa) {\n \t\tj.print();\n \t}\n \t\n \t// Create JSON and Sent\n \tObjectMapper mapper = new ObjectMapper();\n \t\n \ttry{\n \t\t\n \t\tString jsonInString = mapper.writeValueAsString(jobsToSendToSa);\n \t\t\n \t\treturn Response.status(200).entity(jsonInString).build();\n \t\n \t}catch (JsonProcessingException ex){\n \t\t\n \t\tSystem.out.println(ex.getMessage());\n \t\t\n \t\tresp.put(\"Error\", ex.getMessage());\n \t\treturn Response.status(200).entity(resp.toJSONString()).build();\n \t}\n }", "public interface AppService {\n @GET(\"/words.json\")\n void getVocabListApiCall(Callback<BaseVocabResponseParser> vocabResponseParserCallback);\n}", "public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException {\r\n\tlogTrace( req, \"GET log\" );\r\n\tString requestId = req.getQueryString();\r\n\tif (requestId == null) return;\r\n\tif (\"get-response\".equals( requestId )) {\r\n\t try {\r\n\t\tonMEVPollsForResponse( req, resp );\r\n\t } catch (Exception e) {\r\n\t\tlogError( req, resp, e, \"MEV polling error\" );\r\n\t\tsendError( resp, \"MEV polling error: \" + e.toString() );\r\n\t }\r\n\t}\r\n }", "public HttpResponseWrapper invokeGET(String path) {\n\t\treturn invokeHttpMethod(HttpMethodType.HTTP_GET, path, \"\");\n\t}", "public String getBalance(String accountNo ,String bank) {\r\n\t ClientBuilder clientBuilder = ClientBuilder.newBuilder();\r\n\t String message = null;\r\n\t //creating empty Client\r\n\t Client client = clientBuilder.build(); \r\n\t WebTarget target = client.target(JERSEY_BASE_URI).path(\"/account\").path(\"/balance\").queryParam(\"bank\", bank);\r\n\t System.out.println(\"base uri \"+target.toString());\r\n\t Invocation.Builder invocationBuilder = target.request();\r\n\t invocationBuilder.header(\"accountNo\",accountNo);\r\n\t /*After creation of invocation Builder Object we need to pass header or cookie parameter values to it \r\n\t * There are Two parts of the request is there\r\n\t * 1)Address part or WebAddress(Url with query and path and matrix paramters available)\r\n\t * 2)Request Part\r\n\t * Again it was divided into two more parts \r\n\t * 1)Cokkie or Requesty Headers \r\n\t * 2)Request Body(Here you can pass your own object or text or any thing as Entity class)\r\n\t * ## Once after completion of request object means after providing the webaddress to it we can able to send the \r\n\t * Header Parameters and cookie parameters to it \r\n\t * \r\n\t * Here Invocation invocation = invocationBuilder.build(\"GET\");\r\n\t * or\r\n\t * Invocation invocation = invocationBuilder.buildGet();\r\n\t * Then invocation.invoke() or invocation.invoke(ClassType) so that it will invoke the target class resource \r\n\t * \r\n\t * or \r\n\t * Response response = invocationBuilder.get() \r\n\t * Here This class contains one builder method that internally creates Invoke object and and it will invoke on it and \r\n\t * it will return Response to us directly\r\n\t * \r\n\t * \r\n\t * */\r\n\t Invocation invocation = invocationBuilder.buildGet();\r\n\t Response response = invocation.invoke();\r\n\t if(response.getStatus() == 200) {\r\n\t\t System.out.println(\"inside if block\");\r\n\t\t response.bufferEntity(); //To strore in buffer before closing outputstream \r\n\t\t message = response.readEntity(String.class);\r\n\t }\r\n\t return message;\r\n }", "void getRequests();", "private String doHttpClientGet() {\n\t\t\r\n\t\tHttpGet httpGet=new HttpGet(url);\r\n\t\tHttpClient client=new DefaultHttpClient();\r\n\t\ttry {\r\n\t\t\tHttpResponse response=client.execute(httpGet);\r\n\t\t\tif(response.getStatusLine().getStatusCode()==HttpStatus.SC_OK){\r\n\t\t\t\tresult=EntityUtils.toString(response.getEntity());\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"content----->\"+result);\r\n\t\t} catch (ClientProtocolException e) {\r\n\t\t\te.printStackTrace();\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 result;\r\n\t}", "public Response get(Cluster c, String path, Header[] headers) \n throws IOException {\n GetMethod method = new GetMethod();\n try {\n int code = execute(c, method, headers, path);\n headers = method.getResponseHeaders();\n byte[] body = method.getResponseBody();\n InputStream in = method.getResponseBodyAsStream();\n return new Response(code, headers, body, in);\n } finally {\n method.releaseConnection();\n }\n }", "public interface GeneralService {\n\n /**\n * Returns general server data\n */\n Request getGeneralData(AsyncCallback<GeneralData> callback);\n\n}", "private void getBooks(){\n String ROOT_URL =\"http://projects.yogeemedia.com/preview/embassy\";\n\n //Creating a rest adapter\n RestAdapter adapter = new RestAdapter.Builder()\n .setEndpoint(ROOT_URL)\n .build();\n\n //Creating an object of our api interface\n Interface api = adapter.create(Interface.class);\n\n //Defining the method\n api.getBooks( new Callback<Response>() {\n @Override\n public void success(Response detailsResponse, Response response2) {\n\n String detailsString = getStringFromRetrofitResponse(detailsResponse);\n\n try {\n JSONObject object = new JSONObject(detailsString);\n\n Log.e(\"List\", String.valueOf(object.getJSONArray(\"contacts\")));\n\n writeToFile(object);\n\n //In here you can check if the \"details\" key returns a JSONArray or a String\n\n } catch (JSONException e) {\n\n }\n\n }\n\n @Override\n public void failure(RetrofitError error) {\n Log.e(\"List\",error.toString());\n\n }});}", "private void get_fastaid(){\n String ROOT_URL =\"http://projects.yogeemedia.com/preview/embassy\";\n\n //Creating a rest adapter\n RestAdapter adapter = new RestAdapter.Builder()\n .setEndpoint(ROOT_URL)\n .build();\n\n //Creating an object of our api interface\n Interface api = adapter.create(Interface.class);\n\n //Defining the method\n api.getfasttaid( new Callback<Response>() {\n @Override\n public void success(Response detailsResponse, Response response2) {\n\n String detailsString = getStringFromRetrofitResponse(detailsResponse);\n\n try {\n JSONObject object = new JSONObject(detailsString);\n\n Log.e(\"List\", String.valueOf(object.getJSONArray(\"contacts\")));\n\n writeToFile_fest(object);\n\n //In here you can check if the \"details\" key returns a JSONArray or a String\n\n } catch (JSONException e) {\n\n }\n\n }\n\n @Override\n public void failure(RetrofitError error) {\n Log.e(\"List\",error.toString());\n\n }});}", "public void accessWebService() {\n\r\n JsonReadTask task = new JsonReadTask();\r\n // passes values for the urls string array\r\n task.execute(new String[] { url });\r\n }", "void fetchRestaurantsListData(RepositoryContract.GetRestaurantsListCallback callback);", "@GET(\"/empresa/lista\")\n public void listaempresa(Callback<List<Empresa>> callback);", "@GET(\"user\")\n Call<User> getUser();", "void get(String id, AsyncCallback<RoutingDomainDTO> callback);", "public interface GetProductionDataApi {\n @GET(\"/api/Production/GetProductionData\")\n public void getProductionData(@Query(NetWorkConstant.stid) String stid,@Query(NetWorkConstant.apikey)String apikey,NetCallback<NetWorkResultBean<ProductionDataPackge>> NetCallback);\n\n @GET(\"/api/Production/GetProductionState/\")\n public void getProductionState(@Query(NetWorkConstant.stid) String stid, @Query(NetWorkConstant.apikey) String apikey, NetCallback<NetWorkResultBean<ProductionStatePackge>> callback);\n\n}", "public static String executeGet(String targetURL) {\t\n\t\t HttpURLConnection connection = null; \n\t\t try {\n\t\t //Create connection\n\t\t URL url = new URL(targetURL);\n\t\t connection = (HttpURLConnection)url.openConnection();\n\t\t connection.setRequestMethod(\"GET\");\n\t\t connection.setRequestProperty(\"Content-Type\", \"application/json\");\n\t\t connection.setRequestProperty(\"Content-Language\", \"en-US\"); \n\n\t\t connection.setUseCaches(false);\n\t\t connection.setDoOutput(true);\n\n\n\t\t //Get Response \n\t\t InputStream is = connection.getInputStream();\n\t\t BufferedReader rd = new BufferedReader(new InputStreamReader(is));\n\t\t StringBuilder response = new StringBuilder(); // or StringBuffer if not Java 5+ \n\t\t String line;\n\t\t while((line = rd.readLine()) != null) {\n\t\t response.append(line);\n\t\t response.append('\\r');\n\t\t }\n\t\t rd.close();\n\t\t return response.toString();\n\t\t } catch (Exception e) {\n\t\t return e.getMessage();\n\t\t } finally {\n\t\t if(connection != null) {\n\t\t connection.disconnect(); \n\t\t }\n\t\t }\n\t\t}", "public interface ApiService {\n @GET(\"/lista_pokemons.php\")\n void getPokemons(Callback<List<PokemonEntity>> response);\n\n\n}", "private Object callGetRESTCall(String methodName,\n Class returnClass,\n String urlTemplate,\n Object... params) throws PropertyServerException\n {\n try\n {\n RestTemplate restTemplate = new RestTemplate();\n\n return restTemplate.getForObject(urlTemplate, returnClass, params);\n }\n catch (Throwable error)\n {\n ConnectedAssetErrorCode errorCode = ConnectedAssetErrorCode.CLIENT_SIDE_REST_API_ERROR;\n String errorMessage = errorCode.getErrorMessageId() + errorCode.getFormattedErrorMessage(methodName,\n omasServerURL,\n error.getMessage());\n\n throw new PropertyServerException(errorCode.getHTTPErrorCode(),\n this.getClass().getName(),\n methodName,\n errorMessage,\n errorCode.getSystemAction(),\n errorCode.getUserAction(),\n error);\n }\n }", "public <T> T GET(String relativeURL, Type returnType) throws APIException {\n\t\tcheckBaseURL();\n\n\t\ttry {\n\t\t\tString completeURL = url + relativeURL;\n\t\t\tLOGGER.log(Level.INFO, \"request: [GET] \" + completeURL);\n\t\t\tHttpClient httpClient = new DefaultHttpClient();\n\t\t\tHttpGet request = new HttpGet(completeURL);\n\n\t\t\t// add request header like OAuth? request.addHeader(...);\n\t\t\tHttpResponse response = httpClient.execute(request);\n\t\t\tLOGGER.log(Level.INFO, \"response code:\" + response.getStatusLine().getStatusCode());\n\n\t\t\tBufferedReader reader = new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(response.getEntity().getContent()));\n\n\t\t\tStringBuilder result = new StringBuilder();\n\t\t\tString line;\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tresult.append(line);\n\t\t\t}\n\n\t\t\treturn convert(result.toString(), returnType);\n\t\t} catch (IOException e) {\n\t\t\tthrow new APIException(e.getMessage(), e);\n\t\t}\n\t}", "public interface RestCall {\n\n String query();\n\n String delete();\n\n String put();\n\n String get();\n\n String keys();\n\n}", "private HttpResponse executeHttpGet(String apiUrl) throws OAuthMessageSignerException,\r\n\t\t\tOAuthExpectationFailedException, OAuthCommunicationException, IOException {\r\n\t\tHttpGet httprequest = new HttpGet(apiUrl);\r\n\t\tgetOAuthConsumer().sign(httprequest);\r\n\t\tHttpClient client = new DefaultHttpClient();\r\n\t\tHttpResponse httpresponse = client.execute(httprequest);\r\n\t\tint statusCode = httpresponse.getStatusLine().getStatusCode();\r\n\t\tSystem.out.println(statusCode + \":\" + httpresponse.getStatusLine().getReasonPhrase());\r\n\t\treturn httpresponse;\r\n\t}", "public char[] uri_GET()\n {return uri_GET(new char[120], 0);}", "public void get__role( Boolean refresh, RestAdapter restAdapter, final ObjectCallback<Role> callback) {\n //Call the onBefore callback method..\n callback.onBefore();\n\n //Define methods here..\n final RoleMappingRepository roleMappingRepo = restAdapter.createRepository(RoleMappingRepository.class);\n \n \n \n \n \n\n\n\n roleMappingRepo.get__role( (String)that.getId(), refresh, new ObjectCallback<Role> (){\n \n\n \n @Override\n \n public void onSuccess(Role object) {\n if(object != null){\n //now add relation to this recipe.\n addRelation(object);\n //Also add relation to child type for two way communication..Removing two way communication for cyclic error\n //object.addRelation(that);\n callback.onSuccess(object);\n //Calling the finally..callback\n callback.onFinally();\n }else{\n callback.onSuccess(null);\n //Calling the finally..callback\n callback.onFinally();\n }\n\n }\n \n \n\n\n \n\n @Override\n public void onError(Throwable t) {\n //Now calling the callback\n callback.onError(t);\n //Calling the finally..callback\n callback.onFinally();\n }\n\n });\n }", "public GrizzletResponse getResponse();", "public interface RestClientInt {\n\n /**\n * It performs a GET request\n * \n * @param client registration ID\n * \t\t\t (can be null\n * @param url\n * @param headers\n * (can be null)\n * @param queryParameters\n * (can be null)\n * @return\n */\n public ClientResponse performGetRequest(String clientRegistrationID, URL url, Map<String, String> headers, Map<String, String> queryParameters);\n\n /**\n * It returns the body representation of the HTTP response\n * \n * @param <T>\n * @param response\n * @param clazz\n * -> Class to use when parsing the response body\n * @return\n */\n public <T> T getBodyFromResponse(ClientResponse response, Class<T> clazz);\n\n}", "public static void GET(String url, RequestParams params, RestResponseHandler responseHandler) {\n client.get(getAbsoluteUrl(url), params, responseHandler);\n }", "private void getVideo() {\n // create the url\n String temp = movie.getId().toString();\n String url = API_BASE_URL+\"/movie/\"+temp+\"/videos\";\n // set the request parameters\n RequestParams params = new RequestParams();\n params.put(API_KEY_PARAM, getString(R.string.api_key)); // Always needs API key\n // request a GET response expecting a JSON object response\n\n client.get(url,params, new JsonHttpResponseHandler() {\n\n @Override\n public void onSuccess(int statusCode, Header[] headers, JSONObject response) {\n // load the results into movies list\n\n try {\n JSONArray results = response.getJSONArray(\"results\");\n JSONObject curMovie = results.getJSONObject(0);\n key = curMovie.getString(\"key\");\n\n } catch (JSONException e) {\n logError(\"Failed to parse play_video endpoint\", e, true);\n }\n\n\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable) {\n logError(\"Failed to get data from Now_playing endpoint\", throwable, true);\n }\n });\n\n }", "public static void sendGetWebservice(Activity activity, String url, Response.Listener responseListener, Response.ErrorListener errorListener) {\n StringRequest stringRequest = new StringRequest(Request.Method.GET, url, responseListener, errorListener);\n// Add the request to the RequestQueue.\n handler.addToRequestQueue(stringRequest);\n }", "public interface GalleryApiInterface {\n @GET(\"/gallery.json\")\n\n void getStreams(Callback<List<GalleryImage>>callback);\n}", "private static String get_request(String uri, boolean isChecking, String token) throws IOException {\r\n URL url = new URL(uri);\r\n HttpURLConnection connection = (HttpURLConnection) url.openConnection();\r\n connection.setRequestProperty(\"Content-Type\", \"application/json\");\r\n connection.setRequestProperty(\"User-Agent\", \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36 Edg/88.0.705.74\");\r\n if (isChecking) {\r\n connection.setRequestProperty(\"Authorization\", token);\r\n }\r\n connection.setRequestMethod(\"GET\");\r\n InputStream responseStream = connection.getInputStream();\r\n if (debug) {\r\n System.out.println(\"GET - \"+connection.getResponseCode());\r\n }\r\n try (Scanner scanner = new Scanner(responseStream)) {\r\n String responseBody = scanner.useDelimiter(\"\\\\A\").next();\r\n if (debug) {\r\n System.out.println(responseBody);\r\n }\r\n return responseBody;\r\n } catch (Exception e) {\r\n return \"ERROR\";\r\n }\r\n }", "public interface EPAsyncResponseListener {\n public void getJokesfromEndpoint(String result);\n}", "public interface SkateParks_API {\n String BASE_URL = \"http://danielburkedev.com/isa\";\n\n @GET(\"/isa_skateparksdb.php\")\n void getSkateParks( Callback<Skateparks_Model> cb);\n\n\n\n\n\n}", "public interface ApiInterface {\n\n @GET(\"android_task.php\")\n Call<JsonResponse> getRecepies();\n}", "public <T> CustomResponse getResponse(String url);" ]
[ "0.679388", "0.6563997", "0.65437174", "0.65112084", "0.6504468", "0.6392205", "0.6375407", "0.6374822", "0.632885", "0.62703836", "0.6231484", "0.6154859", "0.6111016", "0.6087768", "0.60373074", "0.6025025", "0.6021135", "0.6020886", "0.60128176", "0.5991703", "0.5970644", "0.5969153", "0.5964028", "0.58929807", "0.5872578", "0.58701205", "0.5862286", "0.5848006", "0.5830506", "0.5820035", "0.58096415", "0.5807814", "0.5802065", "0.58016485", "0.57958066", "0.57919705", "0.57902616", "0.576942", "0.57668716", "0.57587844", "0.57455164", "0.5743646", "0.5727665", "0.5724919", "0.572003", "0.57120764", "0.5703343", "0.5702502", "0.5699033", "0.5698875", "0.5697428", "0.56801766", "0.566508", "0.56571037", "0.5640464", "0.5637244", "0.5634294", "0.56327325", "0.56286776", "0.5628532", "0.5627789", "0.5627472", "0.56193554", "0.5606944", "0.5601063", "0.56005764", "0.5597207", "0.5595789", "0.55758345", "0.55689687", "0.55680776", "0.5566844", "0.5557579", "0.55523", "0.5549971", "0.5538409", "0.55367935", "0.55326414", "0.5531254", "0.5527871", "0.55234146", "0.5520605", "0.5512484", "0.55123436", "0.5485098", "0.5484809", "0.5484283", "0.5472841", "0.5472126", "0.5470071", "0.5464044", "0.5458891", "0.5458614", "0.54471636", "0.5445107", "0.5441894", "0.5430515", "0.5422075", "0.54204005", "0.5416192" ]
0.661326
1
Method to upload to server items categories changes/
private void uploadCategoriesChanges(JSONObject json) throws UnsupportedEncodingException { RestClient.put(this, RestClient.UPDATE_CATEGORY_URL, json, username, password, new JsonHttpResponseHandler() { @Override public void onFailure(int statusCode, Header[] headers, Throwable throwable, JSONObject errorResponse) { Log.d(DEBUG_TAG, "updating category failure " + errorResponse.toString()); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateCategory(String category){}", "@Override\n public void updateCategories(List<String> categories) {\n //Update the Category Spinner with the new data\n mCategorySpinnerAdapter.clear();\n //Add the Prompt as the first item\n categories.add(0, mSpinnerProductCategory.getPrompt().toString());\n mCategorySpinnerAdapter.addAll(categories);\n //Trigger data change event\n mCategorySpinnerAdapter.notifyDataSetChanged();\n\n if (!TextUtils.isEmpty(mCategoryLastSelected)) {\n //Validate and Update the Category selection if previously selected\n mPresenter.updateCategorySelection(mCategoryLastSelected, mCategoryOtherText);\n }\n }", "void updateUsedCategoriesContent() {\n try{\n InputStream inputStream = DMOZCrawler.class.getResourceAsStream(\"Used_categories.txt\");\n InputStreamReader inputStreamReader = new InputStreamReader(inputStream);\n BufferedReader bufferedReader = new BufferedReader(inputStreamReader);\n HashSet<String> usedCategories = new HashSet<>();\n\n String currentLine;\n while ((currentLine = bufferedReader.readLine()) != null){\n usedCategories.add(currentLine.toLowerCase());\n System.out.println(\"Used category added :: \" + currentLine);\n }\n\n System.out.println(usedCategories);\n\n for(String id : usedCategories){\n categoryContent(Integer.parseInt(id));\n }\n } catch (Exception exception){\n exception.printStackTrace();\n }\n }", "void updateCategory(Category category);", "void updateCategory(Category category);", "void modifyRadarTechnologiesInformation(List<CategoryUpdate> updateList);", "private void saveNewCategory() {\n String name = newCategory_name.getText()\n .toString();\n int defaultSizeType = categoryDefaultSize.getSelectedItemPosition() - 1;\n String color = String.format(\"%06X\", (0xFFFFFF & categoryColor.getExactColor()));\n int parentCategoryId = -1;\n if (parentCategory != null) {\n parentCategoryId = parentCategory.getId();\n }\n String icon = categoryIcon.getSelectedItem();\n categoryDataSource.editCategory(categoryId, name, name, parentCategoryId, defaultSizeType,\n icon, color);\n\n setResult(Activity.RESULT_OK);\n this.finish();\n }", "UpdateCategoryResponse updateCategory(UpdateCategoryRequest request) throws RevisionException;", "@Override\n\tpublic void update(Category entity) {\n\n\t}", "public void UpdateCategoriesCheckRepeats(){\n dbHandler.OpenDatabase();\n ArrayList<Category> CategoryObjectList = dbHandler.getAllCategory();\n // Create Category String List\n ArrayList<String> CategoryStringList = new ArrayList<>();\n for (int i = 0; i < CategoryObjectList.size(); i++) {\n CategoryStringList.add( CategoryObjectList.get(i).getName() );\n }\n\n Category category;\n // cycle through object list\n for (int i = 0; i < CategoryObjectList.size(); i++) {\n category = CategoryObjectList.get(i);\n CategoryObjectList.remove(i);\n CategoryStringList.remove(i); // remove so it doesn't find itself\n\n // find name in Category List\n int index = CategoryStringList.indexOf( category.getName() );\n\n if (index == -1){\n CategoryObjectList.add(category);\n CategoryStringList.add(category.getName());\n }else{\n CategoryObjectList.get(index).increaseCounter( category.getCounter() );\n CategoryObjectList.get(index).increaseAmount( category.getAmount() );\n i--;\n }\n }\n\n // Add back to database\n dbHandler.deleteAllCategory();\n for (int i = 0; i < CategoryObjectList.size(); i++) {\n dbHandler.addCategory(CategoryObjectList.get(i));\n }\n\n dbHandler.CloseDatabase();\n }", "Collection</* IInstallableUnit */?> publishCategories( File categoryDefinition )\n throws FacadeException, IllegalStateException;", "@PostMapping(path = \"menus/{id}/categories\")\n ResponseEntity<?> post(@RequestBody Category body, @PathVariable String id) {\n Menu findMenu = menuRepository.findById(id)\n .orElseThrow(() -> new CategoryNotFound(\"Category with id: \" + id + \" Not Found\"));\n Category newCategory = repository.save(body);\n findMenu.getCategories().add(newCategory);\n Menu SavedMenu = menuRepository.save(findMenu);\n // must be created\n return ResponseEntity.ok(SavedMenu);\n }", "public Categorie updateCategorie(Categorie c);", "@Override\n\tpublic ZuelResult modifyContentCategory(TbContentCategory contentCategory) throws ServiceException {\n\t\ttry{\n contentCategory.setUpdated(new Date());\n boolean isModified = service.modifyContentCategory(contentCategory);\n if(isModified){ \n return ZuelResult.ok();\n }\n }catch(ServiceException e){\n e.printStackTrace();\n throw e;\n }\n return ZuelResult.error(\"服务器忙,请稍后重试\");\n\t}", "public void newCategory() {\n btNewCategory().push();\n }", "public void setCategory(String newCategory) {\n category = newCategory;\n }", "@Override\n\tpublic void updateCategory(Category cat) {\n\t\tdao.updateCategory(cat);\n\t\t\n\t}", "public void updatePortletCategory(PortletCategory category);", "public void setCategories(Categories categories) {\n this.categories = categories;\n }", "public int saveNewCatalog(String catName) throws BackendException;", "private void updateCategoryTree() {\n categoryTree.removeAll();\r\n fillTree(categoryTree);\r\n\r\n }", "private void saveCategory(MerchantStore store, Category category, Category parent) throws ServiceException {\n\t\tif (parent != null) {\n\t\t\tcategory.setParent(category);\n\n\t\t\tString lineage = parent.getLineage();\n\t\t\tint depth = parent.getDepth();\n\n\t\t\tcategory.setDepth(depth + 1);\n\t\t\tcategory.setLineage(new StringBuilder().append(lineage).toString());// service\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// will\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// adjust\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// lineage\n\t\t}\n\n\t\tcategory.setMerchantStore(store);\n\n\t\t// remove children\n\t\tList<Category> children = category.getCategories();\n\t\tList<Category> saveAfter = children.stream().filter(c -> c.getId() == null || c.getId().longValue()==0).collect(Collectors.toList());\n\t\tList<Category> saveNow = children.stream().filter(c -> c.getId() != null && c.getId().longValue()>0).collect(Collectors.toList());\n\t\tcategory.setCategories(saveNow);\n\n\t\t/** set parent * */\n\t\tif (parent != null) {\n\t\t\tcategory.setParent(parent);\n\t\t}\n\n\t\tcategoryService.saveOrUpdate(category);\n\n\t\tif (!CollectionUtils.isEmpty(saveAfter)) {\n\t\t\tparent = category;\n\t\t\tfor(Category c: saveAfter) {\n\t\t\t\tif(c.getId() == null || c.getId().longValue()==0) {\n\t\t\t\t\tfor (Category sub : children) {\n\t\t\t\t\t\tsaveCategory(store, sub, parent);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "private void saveTags() {\n SavedFolders.editFolder(this.folder);\n }", "public static void updateCategoryRequest(final Context context, final String businessId, final String oldCategory, final String newCategory) {\n final RequestQueue httpRequestQueue = Volley.newRequestQueue(context);\n final StringRequest httpRequest = new StringRequest(Request.Method.POST, (MainActivity.serverURL + \"update/update_category.php\"),\n //success, the request responded successfully!\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n httpRequestQueue.stop();\n }\n },\n //error, the request responded with a failure...\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(context, \"An error occurred with your internet...\", Toast.LENGTH_LONG).show();\n error.printStackTrace();\n httpRequestQueue.stop();\n }\n }\n ) {\n //POST variables to send to the request\n @Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"businessId\", businessId);\n params.put(\"oldCategory\", oldCategory);\n params.put(\"newCategory\", newCategory);\n return params;\n }\n //header values to send to the request\n @Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Content-Type\",\"application/x-www-form-urlencoded\");\n return params;\n }\n };\n httpRequestQueue.add(httpRequest);\n }", "@PostMapping(\"/saveCategories\")\n public String saveCategories(@ModelAttribute(\"categories\") Categories theCategories) {\n List<Product> products =null;\n if(theCategories.getId()!= 0)\n {\n products= categoriesService.getProducts(theCategories.getId());\n }\n theCategories.setProducts(products);\n categoriesService.saveCategories(theCategories);\t\n return \"redirect:/admin/loaisanpham/list\";\n }", "@Override\n public CommandResult execute() {\n if (exceedLengthLimit()) {\n return new CommandResult(MESSAGE_CATEGORY_EXCEED_LIMIT);\n }\n try {\n Module parentModule = DirectoryTraverser.getModuleDirectory(moduleCode);\n Category toAdd = new Category(parentModule, categoryName, categoryPriority);\n parentModule.getCategories().add(toAdd);\n StorageManager.setIsSave();\n return new CommandResult(messageAddCategorySuccess(categoryName));\n } catch (ModuleManager.ModuleNotFoundException e) {\n return new CommandResult(MESSAGE_MODULE_NOT_FOUND);\n } catch (CategoryManager.DuplicateCategoryException e) {\n return new CommandResult(MESSAGE_DUPLICATE_CATEGORY);\n } catch (IncorrectDirectoryLevelException e) {\n return new CommandResult(MESSAGE_INCORRECT_DIRECTORY_LEVEL);\n }\n }", "private void buildCategories() {\n List<Category> categories = categoryService.getCategories();\n if (categories == null || categories.size() == 0) {\n throw new UnrecoverableApplicationException(\n \"no item types found in database\");\n }\n\n Map<Category, List<Category>> categoriesMap = new HashMap<Category, List<Category>>();\n for (Category subCategory : categories) {\n Category parent = subCategory.getParentCategory();\n if (categoriesMap.get(parent) == null) {\n categoriesMap.put(parent, new ArrayList<Category>());\n categoriesMap.get(parent).add(subCategory);\n } else {\n categoriesMap.get(parent).add(subCategory);\n }\n }\n\n this.allCategories = categories;\n this.sortedCategories = categoriesMap;\n }", "public void addRemoteCategory(String name) {\n url = Constants.addCategory;\n params = new HashMap<>();\n params.put(param_category_name, \"\" + name);\n\n if (ApiHelper.checkInternet(mContext)) {\n mApiHelper.addCategory(name, mIRestApiCallBack, false, url, params);\n } else {\n mIRestApiCallBack.onNoInternet();\n }\n\n }", "@RequestMapping(value = \"/kategorien\", method = RequestMethod.POST)\n @ResponseBody\n public void kategorien(\n HttpServletResponse response) throws IOException {\n\n try {\n List<Kategorie> kategorien = kategorieDao.findRootKategorien();\n kategorien.addAll(kategorieDao.getKategorien());\n sendOk(response, mapper.writeValueAsString(kategorien));\n } catch (Exception ex) {\n java.util.logging.Logger.getLogger(BackendController.class.getName()).log(Level.SEVERE, null, ex);\n sendError(response, ex);\n }\n }", "public void addRemoteItem(String name, String description, long category_id) {\n url = Constants.addItem;\n params = new HashMap<>();\n params.put(param_item_name, \"\" + name);\n params.put(param_item_description, \"\" + description);\n params.put(param_category_id, \"\" + category_id);\n\n if (ApiHelper.checkInternet(mContext)) {\n mApiHelper.addItem(name, description, category_id,\n mIRestApiCallBack, false, url, params);\n } else {\n mIRestApiCallBack.onNoInternet();\n }\n\n }", "private void storeLastCategoryItemDate() {\n Cursor categories = this.writableDatabase.query(TABLE_CATEGORIES, new String[] { CATEGORIES_ID }, null, null,\n null, null, null);\n\n int count = ApplicationConstants.NEWSCATEGORY_LIMIT;\n if (categories.getCount() > 0) {\n while (categories.moveToNext()) {\n long categoryId = categories.getLong(0);\n String where = \"feeds.\" + FEEDS_CID + \"=\" + categoryId + \" AND \" + \"feeds.\" + FEEDS_ID + \"=\" + \"news.\"\n + NEWS_FID + \" AND \" + TABLE_FEEDS + \".\" + FEEDS_ACTIVATED + \"=1\";\n Cursor query = this.writableDatabase.query(TABLE_FEEDS + \" feeds, \" + TABLE_NEWS + \" news\",\n new String[] { NEWS_DATE, NEWS_TITLE }, where, null, null, null, NEWS_DATE + \" DESC\",\n String.valueOf(count));\n long lastDate = 0;\n if (query.getCount() > 0 && !(query.getCount() < 50)) {\n query.moveToLast();\n lastDate = query.getLong(0);\n }\n this.lastCategoryItemDate.put(categoryId, lastDate);\n query.close();\n }\n }\n categories.close();\n }", "@Override\n protected void onOk(Category category) {\n if (getPart().getCategory() != null) {\n getCurrentConversation().getEntityManager().detach(getPart().getCategory());\n }\n\n getPart().setCategory(category);\n messageUtil.infoEntity(\"status_created_ok\", category);\n }", "public static void updateCategoryItemRequest(final Context context, final String businessId, final String category, final String oldCategoryItem, final String newCategoryItem, final Double price, final int quantity, final String externalities) {\n final RequestQueue httpRequestQueue = Volley.newRequestQueue(context);\n final StringRequest httpRequest = new StringRequest(Request.Method.POST, (MainActivity.serverURL + \"update/update_category_item.php\"),\n //success, the request responded successfully!\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n httpRequestQueue.stop();\n }\n },\n //error, the request responded with a failure...\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(context, \"An error occurred with your internet...\", Toast.LENGTH_LONG).show();\n error.printStackTrace();\n httpRequestQueue.stop();\n }\n }\n ) {\n //POST variables to send to the request\n @Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"businessId\", businessId);\n params.put(\"category\", category);\n params.put(\"oldCategoryItem\", oldCategoryItem);\n params.put(\"newCategoryItem\", newCategoryItem);\n params.put(\"price\", String.valueOf(price));\n params.put(\"quantity\", String.valueOf(quantity));\n params.put(\"externalities\", externalities);\n return params;\n }\n //header values to send to the request\n @Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Content-Type\",\"application/x-www-form-urlencoded\");\n return params;\n }\n };\n httpRequestQueue.add(httpRequest);\n }", "private void saveNewCatalog() {\n\n\t}", "@Override\n @IcalProperty(pindex = PropertyInfoIndex.CATEGORIES,\n adderName = \"category\",\n jname = \"categories\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true)\n public void setCategories(final Set<BwCategory> val) {\n categories = val;\n }", "void addCategory(Category category);", "@RequestMapping(method=RequestMethod.PUT, value = \"/item\", produces = \"application/json\")\n public void setItems(ArrayList<Item> itemsToSet)\n {\n this.itemRepository.setItems(itemsToSet);\n }", "public static void addCategoryRequest(final Context context, final String businessId, final String category) {\n final RequestQueue httpRequestQueue = Volley.newRequestQueue(context);\n final StringRequest httpRequest = new StringRequest(Request.Method.POST, (MainActivity.serverURL + \"update/add_category.php\"),\n //success, the request responded successfully!\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n httpRequestQueue.stop();\n }\n },\n //error, the request responded with a failure...\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(context, \"An error occurred with your internet...\", Toast.LENGTH_LONG).show();\n error.printStackTrace();\n httpRequestQueue.stop();\n }\n }\n ) {\n //POST variables to send to the request\n @Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"businessId\", businessId);\n params.put(\"category\", category);\n return params;\n }\n //header values to send to the request\n @Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Content-Type\",\"application/x-www-form-urlencoded\");\n return params;\n }\n };\n httpRequestQueue.add(httpRequest);\n }", "@Override\n protected Representation put(Representation entity) throws ResourceException {\n\n int itemId = Integer.parseInt(getAttribute(\"id\"));\n Form form = new Form(entity);\n System.err.println(form);\n //categories\n ArrayList<String> newCategories = new ArrayList<>();\n for (int i=0; i<form.size() ; i++){\n if(form.get(i).getName().contains(\"categories\")){\n System.err.println(form.get(i).getValue());\n newCategories.add(form.get(i).getValue());\n }\n }\n //check the values\n if ( form.getFirstValue(\"userId\") == null || form.getFirstValue(\"userId\").isEmpty()\n ||form.getFirstValue(\"name\") == null || form.getFirstValue(\"name\").equals(\"\")\n ||newCategories.isEmpty()\n ||form.getFirstValue(\"location\") == null || form.getFirstValue(\"location\").equals(\"\")\n ||form.getFirstValue(\"country\") == null || form.getFirstValue(\"country\").equals(\"\")\n ||form.getFirstValue(\"first_bid\") == null\n ||form.getFirstValue(\"end\") == null || form.getFirstValue(\"end\").equals(\"\")\n ||form.getFirstValue(\"description\") == null || form.getFirstValue(\"description\").equals(\"\")\n ){\n System.err.println(form);\n throw new ResourceException(Status.CLIENT_ERROR_BAD_REQUEST, \"missing or empty parameters\");\n }\n\n //extract the values\n long userId = Long.parseLong(form.getFirstValue(\"userId\"));\n String name = form.getFirstValue(\"name\");\n Float buyPrice;\n if(!(form.getFirstValue(\"buy_price\") == null || form.getFirstValue(\"buy_price\").isEmpty()))\n buyPrice = Float.parseFloat(form.getFirstValue(\"buy_price\"));\n else\n buyPrice = null;\n float firstBid = Float.parseFloat(form.getFirstValue(\"first_bid\"));\n String location = form.getFirstValue(\"location\");\n Double latitude = null;\n Double longitude = null;\n String country = form.getFirstValue(\"country\");\n DateTimeFormatter myFormatObj = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\");\n String end = LocalDateTime.parse(form.getFirstValue(\"end\")).format(myFormatObj).toString();//end time\n String description = form.getFirstValue(\"description\");\n\n if(form.getFirstValue(\"latitude\") == null || form.getFirstValue(\"latitude\").equals(\"\")\n ||form.getFirstValue(\"longitude\") == null || form.getFirstValue(\"longitude\").equals(\"\")){\n System.err.println(\"coordinates are not given.\");\n }\n else{\n latitude = Double.parseDouble(form.getFirstValue(\"latitude\"));\n longitude = Double.parseDouble(form.getFirstValue(\"longitude\"));\n }\n\n Item item;\n\n try{\n Optional<Item> itemOptional = itemDAO.getItemById(itemId);\n if(!itemOptional.isPresent()){\n throw new ResourceException(Status.CLIENT_ERROR_BAD_REQUEST, \"Item does not exist\");\n }\n item = itemOptional.get();\n if(!item.isRunning()){\n throw new ResourceException(Status.CLIENT_ERROR_EXPECTATION_FAILED, \"Auction is closed\");\n }\n if(item.getNumberOfBids()>0){\n throw new ResourceException(Status.CLIENT_ERROR_EXPECTATION_FAILED, \"Auction has bids and cannot be edited\");\n }\n\n item.setName(name);\n item.setBuyPrice(buyPrice);\n item.setFirstBid(firstBid);\n item.setCurrentBid(firstBid);\n item.setLocationName(location);\n item.setLatitude(latitude);\n item.setLongitude(longitude);\n item.setCountry(country);\n item.setEnd(end);\n item.setDescription(description);\n\n itemDAO.updateItem(item);\n\n List<String> oldCategories = item.getCategories();\n for (String c: oldCategories) {\n if(!newCategories.contains(c)){\n itemDAO.removeCategoryFromItem(item, c);\n }\n }\n for (String c: newCategories) {\n if(!oldCategories.contains(c)){\n itemDAO.addCategoryToItem(item, c);\n }\n }\n item.setCategories(newCategories);\n }\n catch (DataAccessException e){\n throw new ResourceException(Status.SERVER_ERROR_INTERNAL, \"item update in database failed\");\n }\n\n Map<String,Object> map = new HashMap<>();\n map.put(\"item\", item);\n\n return new JsonMapRepresentation(map);\n }", "int insert(ItemCategory record);", "@Override\n\tpublic Category updateCategory(HttpServletRequest request,\n\t\t\tHttpServletResponse response) {\n\t\treturn null;\n\t}", "private void updateItems()\n\t{\t\n\t\tupdatePizzaTypes(items);\n\t\tupdateSidesTypes(items);\n\t\tupdateDrinksTypes(items);\n\t}", "@Override\n\tpublic void saveCategory(Category category, boolean isNew) throws Exception {\n\n\t}", "public final void readCategoria() {\n cmbCategoria.removeAllItems();\n cmbCategoria.addItem(\"\");\n categoryMapCategoria.clear();\n AtividadePreparoDAO atvprepDAO = new AtividadePreparoDAO();\n for (AtividadePreparo atvprep : atvprepDAO.readMotivoRetrabalho(\"Categoria\")) {\n Integer id = atvprep.getMotivo_retrabalho_id();\n String name = atvprep.getMotivo_retrabalho();\n cmbCategoria.addItem(name);\n categoryMapCategoria.put(id, name);\n }\n }", "public void syncToDataStore(String exchangeCode, Collection<MarketData> items);", "public static void removeCategoryItemRequest(final Context context, final String businessId, final String category, final String categoryItem) {\n final RequestQueue httpRequestQueue = Volley.newRequestQueue(context);\n final StringRequest httpRequest = new StringRequest(Request.Method.POST, (MainActivity.serverURL + \"update/remove_category_item.php\"),\n //success, the request responded successfully!\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n httpRequestQueue.stop();\n }\n },\n //error, the request responded with a failure...\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(context, \"An error occurred with your internet...\", Toast.LENGTH_LONG).show();\n error.printStackTrace();\n httpRequestQueue.stop();\n }\n }\n ) {\n //POST variables to send to the request\n @Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"businessId\", businessId);\n params.put(\"category\", category);\n params.put(\"categoryItem\", categoryItem);\n return params;\n }\n //header values to send to the request\n @Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Content-Type\",\"application/x-www-form-urlencoded\");\n return params;\n }\n };\n httpRequestQueue.add(httpRequest);\n }", "private void checkCategoryPreference() {\n SharedPreferences sharedPrefs = getSharedPreferences(Constants.MAIN_PREFS, Context.MODE_PRIVATE);\n String json = sharedPrefs.getString(Constants.CATEGORY_ARRAY, null);\n Type type = new TypeToken<ArrayList<Category>>(){}.getType();\n ArrayList<Category> categories = new Gson().fromJson(json, type);\n if(categories == null) {\n categories = new ArrayList<>();\n Category uncategorized = new Category(Constants.CATEGORY_UNCATEGORIZED, Constants.CYAN);\n categories.add(uncategorized);\n String jsonCat = new Gson().toJson(categories);\n SharedPreferences.Editor prefsEditor = sharedPrefs.edit();\n prefsEditor.putString(Constants.CATEGORY_ARRAY, jsonCat);\n prefsEditor.apply();\n }\n }", "int insertSelective(ItemCategory record);", "private void addNewCategory() {\n Utils.replaceFragment(getActivity(),new AddCategoriesFragment());\n }", "@Override\n public void updateItem(P_CK t) {\n \n }", "@Override\n\t\tpublic void oncreateItem(String tag, View convertView) {\n\t\t\tmFiles.add(new Category(tag));// empty\n\t\t}", "public void uploadLogCollection();", "public void save() {\n if (category != null) {\n category.save();\n }\n }", "Category addNewCategory(Category category);", "@Test\n public void testDefaultCategorizationUsingServiceAPI() throws Exception {\n EventServiceAdmin eventServiceAdmin = Framework.getService(EventServiceAdmin.class);\n eventServiceAdmin.setListenerEnabledFlag(\n \"documentCategorizationSyncListener\", false);\n \n // let us create some documents\n makeSomeDocuments();\n f2 = session.getDocument(f2.getRef());\n file1 = session.getDocument(file1.getRef());\n file2 = session.getDocument(file2.getRef());\n note1 = session.getDocument(note1.getRef());\n\n assertEquals(null, f2.getPropertyValue(\"dc:language\"));\n assertEquals(null, file1.getPropertyValue(\"dc:language\"));\n assertEquals(null, file1.getPropertyValue(\"dc:coverage\"));\n assertEquals(null, file2.getPropertyValue(\"dc:language\"));\n assertEquals(null, note1.getPropertyValue(\"dc:language\"));\n \n // run the engine again, this time all the documents should be processed\n List<DocumentModel> updatedDocuments = service.updateCategories(Arrays.asList(\n file1, file2, note1, f2));\n assertEquals(3, updatedDocuments.size());\n \n assertEquals(\"en\", file1.getPropertyValue(\"dc:language\"));\n assertEquals(\"asia/Viet_Nam\", file1.getPropertyValue(\"dc:coverage\"));\n \n assertEquals(\"fr\", file2.getPropertyValue(\"dc:language\"));\n assertEquals(\"europe/France\", file2.getPropertyValue(\"dc:coverage\"));\n \n // TODO: handle the string content of Note document too\n assertEquals(null, note1.getPropertyValue(\"dc:language\"));\n \n // folderish documents are ignored by the categorizers\n assertEquals(null, f2.getPropertyValue(\"dc:language\"));\n }", "private void saveToDb(long subcategoryId) {\n\n for (NewsClass item : newsList)\n item.save();\n\n }", "private void insererCategorie(final JSONObject categorie) {\n //preparation du JSON pour le passer dans le corps de la requete HTTP\n StringEntity entityJson = null;\n try {\n entityJson = new StringEntity(categorie.toString());\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n\n //preparation de l'URL\n String url = WebService.buildUrlForRequest(Metier.DOMAIN, Metier.NOM_MODELE_CATEGORIES, WebService.ACTION_INSERT, null);\n\n //requete pour inserer la nouvelle categorie (asynchrone)\n asyncHttpClient.post(getActivity(), url, entityJson, DATA_TYPE, new AsyncHttpResponseHandler() {\n\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {\n dialogCreationCategorieBuilder\n .setMessage(getString(R.string.dialog_ajout_categorie_succes))\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n FormulaireCategorieFragment.this.listener.OnValidCategorie();\n }\n }).show();\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable error) {\n dialogCreationCategorieBuilder\n .setMessage(getString(R.string.dialog_ajout_categorie_echec))\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n }).show();\n }\n });\n }", "public void setCategory(String category);", "@Override\n public void onItemCategorySelected(boolean firstSelection, int itemPosition, int categoryPosition) {\n if (firstSelection)\n return;\n\n categoriesChanged = true;\n Item item = items.get(itemPosition);\n String selectedCategory = categories.get(categoryPosition);\n item.setCategory(selectedCategory);\n\n Log.d(DEBUG_TAG, \"Category: \" + items.get(itemPosition).getCategory());\n }", "Boolean updateCategory(DvdCategory category) throws DvdStoreException;", "@Override\n\tpublic void update(Categories cate) {\n\t\tcategoriesDAO.update(cate);\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 setItems(String items)\n {\n _items = items;\n }", "@Override\r\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tdbHelper.InsertCategory(listResult);\r\n\t\t\t\t\t\t\tMessage msg = Message.obtain();\r\n\t\t\t\t\t\t\tmsg.obj = \"CategorySave\";\r\n\t\t\t\t\t\t\thandler.sendMessage(msg);\r\n\t\t\t\t\t\t}", "public void updateToNewest(){\n\t\tif(!isUpdateInfoNull()){\n\t\t\tVersionUtil.updateToNewestBasiclistCategory(currentRegionId);\n\t\t\theadStatus = \"normal\";\n\t\t\tinitRootNodeByVersionId(\"head\");\n\t\t\tdoVersionCampare();\n\t\t}\n\t\tRequestContext.getCurrentInstance().execute(\"PF('updateCategories').hide();\");\n\t}", "public void setCategory(String category) {\n this.category = category;\n this.updated = new Date();\n }", "@Override\r\n\tpublic void addCategory() {\n\t\tCategory cat=new Category();\r\n\t\tcat.setNameCategory(\"Computing Tools\");\r\n\t\tem.persist(cat);\r\n\t\t\r\n\t}", "public void crearCategoria(Categoria categoria){\n categoriaRepo.save(categoria); \n }", "public interface ICategoryService {\n\n public ServerResponse addCategory(String cateName, Integer parentId);\n\n public ServerResponse setCategoryName(Integer categoryId,String categoryName);\n\n public ServerResponse<List<Category>> getChildrenParallelCategory(Integer categoryId);\n\n public ServerResponse<List<Integer>> getChildrenAndDeepParallelCategory(Integer categoryId);\n}", "@Test\n\tpublic void testUpdateCategory() throws Exception {\n\n\t\tCategoryResponse categoryResponse = new CategoryResponse();\n\t\tList<Category> categories = new ArrayList<>();\n\t\tCategory category = new Category();\n\t\tcategory.setTenantId(\"default\");\n\t\tcategory.setParentId(Long.valueOf(1));\n\n\t\tAuditDetails auditDetails = new AuditDetails();\n\t\tcategory.setAuditDetails(auditDetails);\n\t\tcategory.setName(\"Flammables\");\n\n\t\tcategories.add(category);\n\n\t\tcategoryResponse.setResponseInfo(new ResponseInfo());\n\t\tcategoryResponse.setCategories(categories);\n\n\t\ttry {\n\n\t\t\twhen(categoryService.updateCategoryMaster(any(CategoryRequest.class),any(String.class))).thenReturn(categoryResponse);\n\t\t\tmockMvc.perform(post(\"/category/v1/_update\")\n\t\t\t\t\t.contentType(MediaType.APPLICATION_JSON)\n\t\t\t\t\t.content(getFileContents(\"categoryUpdateRequest.json\")))\n\t\t\t\t\t.andExpect(status().isOk())\n\t\t\t\t\t.andExpect(content().contentTypeCompatibleWith(MediaType.APPLICATION_JSON))\n\t\t\t\t\t.andExpect(content().json(getFileContents(\"categoryUpdateResponse.json\")));\n\n\t\t} catch (Exception e) {\n\n\t\t\tassertTrue(Boolean.FALSE);\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tassertTrue(Boolean.TRUE);\n\n\t}", "public String updateCategory()\n {\n logger.info(\"**** In updateCategory in Controller ****\");\n boolean flag = categoryService.updateCategory(category);\n if (flag)\n {\n FacesMessage facesMsg = new FacesMessage(FacesMessage.SEVERITY_INFO, Constants.CATEGORY_UPDATION_SUCCESS, Constants.CATEGORY_UPDATION_SUCCESS);\n FacesContext.getCurrentInstance().getExternalContext().getFlash().setKeepMessages(true);\n FacesContext.getCurrentInstance().addMessage(null, facesMsg);\n }\n return searchCategory();\n }", "public static void addCategoryItemRequest(final Context context, final String businessId, final String category, final String categoryItem, final Double price, final int quantity, final String externalities) {\n final RequestQueue httpRequestQueue = Volley.newRequestQueue(context);\n final StringRequest httpRequest = new StringRequest(Request.Method.POST, (MainActivity.serverURL + \"update/add_category_item.php\"),\n //success, the request responded successfully!\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n httpRequestQueue.stop();\n }\n },\n //error, the request responded with a failure...\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(context, \"An error occurred with your internet...\", Toast.LENGTH_LONG).show();\n error.printStackTrace();\n httpRequestQueue.stop();\n }\n }\n ) {\n //POST variables to send to the request\n @Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"businessId\", businessId);\n params.put(\"category\", category);\n params.put(\"categoryItem\", categoryItem);\n params.put(\"price\", String.valueOf(price));\n params.put(\"quantity\", String.valueOf(quantity));\n params.put(\"externalities\", externalities);\n return params;\n }\n //header values to send to the request\n @Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Content-Type\",\"application/x-www-form-urlencoded\");\n return params;\n }\n };\n httpRequestQueue.add(httpRequest);\n }", "public int insertItem(Item items, String category, Connection conn) {\r\n\t\ttry {\r\n\t\t\tPreparedStatement pstmt = conn.prepareStatement(\"insert into item_XXXX values(?,?,?,?,?)\");\r\n\t\t\tpstmt.setInt(1, items.getItemNo());\r\n\t\t\tpstmt.setString(2, items.getDescription());\r\n\t\t\tpstmt.setString(3, items.getCategory().toString());\r\n\t\t\tpstmt.setDouble(4, items.getPrice());\r\n\t\t\tpstmt.setInt(5, items.getQuantity());\r\n\t\t\tint count = pstmt.executeUpdate();\r\n\t\t\treturn count;\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "public void updateStatusToBarcodes(List<BulkRequestItem> bulkRequestItems, BulkRequestItemEntity bulkRequestItemEntity) {\n StringBuilder csvFormatDataBuilder = new StringBuilder();\n String requestData = new String(bulkRequestItemEntity.getBulkRequestFileData());\n csvFormatDataBuilder.append(requestData);\n buildCsvFormatData(bulkRequestItems, csvFormatDataBuilder);\n bulkRequestItemEntity.setBulkRequestFileData(csvFormatDataBuilder.toString().getBytes());\n bulkRequestItemDetailsRepository.save(bulkRequestItemEntity);\n }", "Category saveCategory(Category category);", "@Override\n\tpublic Result postProcessorUpdateCategory(UpdateCategoryMessageEntity updateCategoryMessageEntity) {\n\t\treturn new Result(ResultStatus.SUCCESS);\n\t}", "private void listadoCategorias() {\r\n sessionProyecto.getCategorias().clear();\r\n sessionProyecto.setCategorias(itemService.buscarPorCatalogo(CatalogoEnum.CATALOGOPROYECTO.getTipo()));\r\n }", "private void triggerValiderCategorie() {\n JSONObject categorie = new JSONObject();\n String categorie_nom = this.editTextCategorie.getText().toString();\n try {\n categorie.put(Metier.CLE_CATEGORIE_NOM, categorie_nom);\n categorie.put(Metier.CLE_PRODUIT_NOM, \"\");\n for (int i = 0; i < this.listViewChampAdapter.getCount(); i++) {\n JSONObject champ = this.listViewChampAdapter.getItem(i);\n categorie.put(champ.optString(Metier.CLE_CHAMP_NOM), \"\");\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n insererCategorie(categorie);\n }", "@Override\n\n // If the request is succesfull\n public void onResponse(JSONObject response) {\n try {\n JSONArray categoriesArray = response.getJSONArray(\"categories\");\n for (int i = 0; i < categoriesArray.length(); i++){\n categories.add(categoriesArray.getString(i));\n }\n }\n catch (JSONException e) {\n Log.e(\"Request\", e.getMessage());\n }\n activity.gotCategories(categories);\n }", "public void setCategory(String category){\n this.category = category;\n }", "@Override\n\tprotected void updateRecord(String[] data) {\n\t\tCategory category = new Category();\n\t\tcategory.setId(new Integer(data[0]));\n\t\tcategory.setName(data[1]);\n\t\tcategory.setGameId(new Integer(data[2]));\n\t\tnew Categories().update(category);\n\t}", "@Override\n protected void executeLowLevelRequest() {\n doPutItem();\n }", "void add(ProductCategory category);", "@Test\n public void addToCategory() throws Exception {\n withProductAndUnconnectedCategory(client(), (final Product product, final Category category) -> {\n assertThat(product.getMasterData().getStaged().getCategories()).isEmpty();\n\n final String orderHint = \"0.123\";\n final Product productWithCategory = client()\n .executeBlocking(ProductUpdateCommand.of(product, AddToCategory.of(category, orderHint)));\n\n final Reference<Category> categoryReference = productWithCategory.getMasterData().getStaged().getCategories().stream().findAny().get();\n assertThat(categoryReference.referencesSameResource(category)).isTrue();\n assertThat(productWithCategory.getMasterData().getStaged().getCategoryOrderHints().get(category.getId())).isEqualTo(orderHint);\n\n final Product productWithoutCategory = client()\n .executeBlocking(ProductUpdateCommand.of(productWithCategory, RemoveFromCategory.of(category)));\n\n assertThat(productWithoutCategory.getMasterData().getStaged().getCategories()).isEmpty();\n });\n }", "public static void afficherCategories(HttpServletRequest request){\n\t\trequest.setAttribute(\"categories\", ManagerProduit.getCategories());\n\t}", "void handleChanged(Collection<AGStoredFile> existingFiles, Collection<AGStoredFile> changedFiles);", "@Override\n public void onChanged(@Nullable final ProductCategory productCategoryFromDb) {\n productCategory = productCategoryFromDb;\n notifyProductCategoryChanged();\n }", "int updateByPrimaryKey(ItemCategory record);", "public static void addCategory(Context context, String category) {\r\n DbManager dbManager = new DbManager(context);\r\n SQLiteDatabase db = dbManager.getWritableDatabase();\r\n\r\n // Don't allow adding if there's already a non-deleted category with that name\r\n Cursor cursor = db.query(\r\n CategoryTable.TABLE_NAME,\r\n new String[]{CategoryTable._ID},\r\n CategoryTable.COLUMN_NAME_IS_DELETED + \" = 0 AND \" + CategoryTable.COLUMN_NAME_CATEGORY_NAME + \" = ?\",\r\n new String[]{category},\r\n null,\r\n null,\r\n null\r\n );\r\n\r\n if(cursor.getCount() > 0) {\r\n cursor.close();\r\n throw new IllegalArgumentException(\"Category with name already exists\");\r\n }\r\n cursor.close();\r\n\r\n // Check if there's a deleted category that can be re-enabled\r\n ContentValues updateValues = new ContentValues();\r\n updateValues.put(CategoryTable.COLUMN_NAME_IS_DELETED, 0);\r\n\r\n int count = db.update(\r\n DbContract.CategoryTable.TABLE_NAME,\r\n updateValues,\r\n CategoryTable.COLUMN_NAME_CATEGORY_NAME + \" = ?\",\r\n new String[]{category}\r\n );\r\n if(count > 0) return;\r\n\r\n // Otherwise add it as normal\r\n ContentValues insertValues = new ContentValues();\r\n insertValues.put(CategoryTable.COLUMN_NAME_CATEGORY_NAME, category);\r\n db.insert(CategoryTable.TABLE_NAME, null, insertValues);\r\n db.close();\r\n }", "@Override\n protected void onSelected(Category category) {\n setSelectedCategory(category);\n messageUtil.infoEntity(\"status_selected_ok\", getPart().getCategory());\n }", "Category editCategory(Category category);", "public interface ICategoryService {\n /*添加品类 即添加节点*/\n ServerResponse addCategory(String categoryName, Integer parentId);\n\n /*修改品类名字*/\n ServerResponse updateCategoryName(Integer categoryId,String categoryName);\n\n /*获取品类子节点(平级)*/\n ServerResponse<List<Category>> getChildrenParallelCategory(Integer categoryId);\n\n /*递归查询本节点的id及孩子节点的id*/\n ServerResponse<List<Integer>> selectCategoryAndChildrenById(Integer categoryId);\n}", "@Override\n\tpublic void addItems(Workspace workspace) {\n//\t\tSession currentSession = sessionFactory.getCurrentSession();\n//\t\tfor(Cart_items myCart : workspace.getCartItems()) {\t\n//\t\t\tcurrentSession.save(myCart);\n//\t\t}\n\t}", "public void saveOrUpdateServiceCat(ServiceCat serviceItem) {\r\n\t\ttry {\r\n\t\t\tsession.saveOrUpdate(serviceItem);\r\n\t\t} catch (Exception e) {\r\n\t\t\ttransaction.rollback();\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n\tpublic void saveModOfCategory(List<String> moderatorCate, String userId,\n\t\t\tboolean isAdd) {\n\n\t}", "private void loadCategories(CategoriesCallback callback) {\n CheckItemsActivity context = this;\n makeRestGetRequest(RestClient.CATEGORIES_URL, (success, response) -> {\n if (!success) {\n Toast.makeText(context, LOAD_CATEGORIES_FAIL, Toast.LENGTH_SHORT).show();\n // TODO: finish activity\n } else {\n try {\n categories = ModelsBuilder.getCategoriesFromJSON(response);\n // set categories list to spinner (common category spinner) and listener for it\n ArrayAdapter<String> spinnerAdapter = new ArrayAdapter<>(context,\n android.R.layout.simple_spinner_item,\n categories);\n spinnerAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n categorySpinner.setAdapter(spinnerAdapter);\n categorySpinner.setOnItemSelectedListener(new OnCommonCategorySelected());\n } catch (JSONException e) {\n success = false;\n Log.d(DEBUG_TAG, \"Load categories parsing fail\");\n }\n }\n // inform waiting entities (e.g. waiting for items list loading start)\n callback.onLoadedCategories(success);\n });\n }", "@Override\n public void uploadMultipleFiles(ArrayList<File> files, Modpack modpack) {\n uploadStatus = \"Uploading file(s) to server!\";\n modpackUploadRepository.uploadMultipleFiles(files, modpack);\n }", "@Override\n protected Void doInBackground(Category... categories) {\n try {\n categoryDao.insert(categories[0]);\n } catch (SQLiteConstraintException e) {\n categoryDao.update(categories[0]);\n }\n\n return null;\n }", "public void setCategory(Category cat) {\n this.category = cat;\n }", "public Categorie addCategorie(Categorie c);" ]
[ "0.6093618", "0.59352744", "0.57561594", "0.57441276", "0.57441276", "0.5705321", "0.56841403", "0.5643652", "0.55871004", "0.5524245", "0.55218226", "0.55150425", "0.5499452", "0.5479352", "0.54610145", "0.5371212", "0.53669065", "0.5364169", "0.5354362", "0.5299248", "0.5277728", "0.5249591", "0.5248563", "0.5209046", "0.5199153", "0.5194193", "0.5184493", "0.516373", "0.51623636", "0.51569045", "0.51536775", "0.5144033", "0.51388407", "0.5138131", "0.5136523", "0.51325524", "0.51249444", "0.51225764", "0.5110484", "0.51054007", "0.5098687", "0.50959915", "0.5075762", "0.50644314", "0.50592816", "0.5058125", "0.50551194", "0.5054939", "0.5050787", "0.504761", "0.5045951", "0.50440127", "0.50362897", "0.5031318", "0.50309515", "0.50285876", "0.5028461", "0.50260425", "0.5021763", "0.50213194", "0.5013802", "0.5005305", "0.5004976", "0.50017905", "0.4999764", "0.49941665", "0.4992118", "0.4990921", "0.49832046", "0.49751514", "0.49686563", "0.49683246", "0.49680728", "0.49624673", "0.49622455", "0.49603838", "0.49591982", "0.49489626", "0.4935543", "0.49260446", "0.4924365", "0.49188104", "0.4918149", "0.4914122", "0.49134833", "0.4900912", "0.48898017", "0.48834038", "0.488321", "0.48817775", "0.4878453", "0.487445", "0.4867692", "0.48624632", "0.48596564", "0.48542443", "0.48523486", "0.4846447", "0.48464358", "0.48461816" ]
0.6756472
0
on item(s) category changed methods Method (callback) to change item category when it was changed on an item card.
@Override public void onItemCategorySelected(boolean firstSelection, int itemPosition, int categoryPosition) { if (firstSelection) return; categoriesChanged = true; Item item = items.get(itemPosition); String selectedCategory = categories.get(categoryPosition); item.setCategory(selectedCategory); Log.d(DEBUG_TAG, "Category: " + items.get(itemPosition).getCategory()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateCategory(Category category);", "void updateCategory(Category category);", "public void changeCategory(Category newCategory) {\n this.category = newCategory;\n }", "void updateCategory(String category){}", "public void setCategory(String newCategory) {\n category = newCategory;\n }", "@Override\n public void onChanged(@Nullable final ProductCategory productCategoryFromDb) {\n productCategory = productCategoryFromDb;\n notifyProductCategoryChanged();\n }", "@Override\r\n\tpublic int getItemCategory() {\n\t\treturn category;\r\n\t}", "public void setCategory(String newCategory) {\n\t\t_pcs.firePropertyChange(\"category\", this.category, newCategory); //$NON-NLS-1$\n\t\tthis.category = newCategory;\n\t}", "private void getItemCategory(ShapeableImageView itemPhoto) {\n Log.d(TAG, \"getItemCategory: \");\n String category = item.getCategory();\n\n if (category.equals(\"Clothes\")) {\n itemPhoto.setImageResource(R.drawable.ic_clothes);\n return;\n }\n if (category.equals(\"Office supplies\")) {\n itemPhoto.setImageResource(R.drawable.ic_office_supplies);\n return;\n }\n if (category.equals(\"Medical equipment\")) {\n itemPhoto.setImageResource(R.drawable.ic_medical_equipment);\n return;\n }\n if (category.equals(\"Gaming\")) {\n itemPhoto.setImageResource(R.drawable.ic_gaming);\n return;\n }\n if (category.equals(\"Electronics\")) {\n itemPhoto.setImageResource(R.drawable.ic_electronics);\n return;\n }\n if (category.equals(\"Appliances\")) {\n itemPhoto.setImageResource(R.drawable.ic_appliances);\n return;\n }\n if (category.equals(\"Gift cards\")) {\n itemPhoto.setImageResource(R.drawable.ic_gift_cards);\n return;\n }\n if (category.equals(\"Lighting\")) {\n itemPhoto.setImageResource(R.drawable.ic_lighting);\n return;\n }\n if (category.equals(\"Food\")) {\n itemPhoto.setImageResource(R.drawable.ic_food);\n return;\n }\n if (category.equals(\"Cosmetic\")) {\n itemPhoto.setImageResource(R.drawable.ic_cosmetic);\n return;\n }\n if (category.equals(\"Games and Toys\")) {\n itemPhoto.setImageResource(R.drawable.ic_games_and_toys);\n return;\n }\n if (category.equals(\"Cellular\")) {\n itemPhoto.setImageResource(R.drawable.ic_cellular);\n return;\n }\n if (category.equals(\"Books\")) {\n itemPhoto.setImageResource(R.drawable.ic_books);\n return;\n }\n if (category.equals(\"Baby Supplies\")) {\n itemPhoto.setImageResource(R.drawable.ic_baby_supplies);\n return;\n }\n if (category.equals(\"Computers\")) {\n itemPhoto.setImageResource(R.drawable.ic_computers);\n return;\n }\n if (category.equals(\"Other\")) {\n itemPhoto.setImageResource(R.drawable.ic_other);\n return;\n }else {\n itemPhoto.setImageResource(R.drawable.ic_other);\n return;\n }\n }", "@Override\n public void updateCategories(List<String> categories) {\n //Update the Category Spinner with the new data\n mCategorySpinnerAdapter.clear();\n //Add the Prompt as the first item\n categories.add(0, mSpinnerProductCategory.getPrompt().toString());\n mCategorySpinnerAdapter.addAll(categories);\n //Trigger data change event\n mCategorySpinnerAdapter.notifyDataSetChanged();\n\n if (!TextUtils.isEmpty(mCategoryLastSelected)) {\n //Validate and Update the Category selection if previously selected\n mPresenter.updateCategorySelection(mCategoryLastSelected, mCategoryOtherText);\n }\n }", "private void onCategorySelected(Category category) {\n et_category.setText(category.getName());\n et_category_id.setText(String.valueOf(category.getKey()));\n }", "public void newCategory() {\n btNewCategory().push();\n }", "public void switchItem(CategoryItem item) {\n\t\tcurrentItem = item;\n\t\tImageIcon ii = new ImageIcon(imageOfMaxSize(item.getImg()));\n\t\tswitchImage(ii);\n\t\tsetupTimer();\n\t}", "public void setCategory(String category) {\n this.category = category;\n changeState(CHANGE);\n }", "@Override\n protected void onSelected(Category category) {\n setSelectedCategory(category);\n messageUtil.infoEntity(\"status_selected_ok\", getPart().getCategory());\n }", "@Override\n protected void onOk(Category category) {\n if (getPart().getCategory() != null) {\n getCurrentConversation().getEntityManager().detach(getPart().getCategory());\n }\n\n getPart().setCategory(category);\n messageUtil.infoEntity(\"status_created_ok\", category);\n }", "@Override\n\tpublic void updateCategory(Category cat) {\n\t\tdao.updateCategory(cat);\n\t\t\n\t}", "public ItemCategory getCategory();", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n Category clickedItem = (Category) parent.getItemAtPosition(position);\n categoryIcon = clickedItem.getCategoryIcon();\n category = clickedItem.categoryName;\n }", "public void setCategory(Category category) {\n if (!category.equals(this.category)) {\n this.category = category;\n category.addItem(this);\n }\n }", "@Override\n public void onCategorySelected(Category category) {\n productList.clear();\n\n ArrayList<ProductHeader> tempList;\n if (notSelectedYet) {\n tempList = allProducts;\n } else if (isMaleSelected) {\n tempList = maleList;\n } else {\n tempList = femaleList;\n }\n\n for (ProductHeader product : tempList) {\n if (product.getCategory() == category.getId()) {\n productList.add(product);\n }\n }\n\n categoryText.setText(category.getName());\n\n checkAvailability();\n productAdapter.notifyDataSetChanged();\n }", "public Categorie updateCategorie(Categorie c);", "public void setCategory(String category)\r\n {\r\n m_category = category;\r\n }", "@Override\n public void setCategory(String category) {\n this.category = category;\n }", "private void changeCategory(int index){\n ListViewCategoryAdapter listViewCategoryAdapter = (ListViewCategoryAdapter) listViewCategory.getAdapter();\n listViewCategoryAdapter.setSelectedIndex(index);\n buttonCategory.setText(((Category) listViewCategoryAdapter.getItem(index)).getName());\n selectedCategoryId = ((Category) listViewCategoryAdapter.getItem(index)).getId();\n\n updateWhereItemListData();\n //Toast.makeText(getContext(), \"Tính năng chưa hoàn thiện\", Toast.LENGTH_SHORT).show();\n }", "public void setCategory(Category cat) {\n this.category = cat;\n }", "public void setCategory(String category) {\n this.category = category;\n this.updated = new Date();\n }", "@Override\n\t\t\t\t\tpublic void onSelcted(Category mParent, Category category) {\n\t\t\t\t\t\tif (view == solverMan) {\n\t\t\t\t\t\t\tsolverCategory = category;\n\t\t\t\t\t\t\tsolverMan.setContent(category.getName());\n\t\t\t\t\t\t} else {// check is foucs choose person\n\t\t\t\t\t\t\tChooseItemView chooseItemView = (ChooseItemView) view\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.common_add_item_title);\n\n\t\t\t\t\t\t\tfor (Category mCategory : mGuanzhuList) {\n\t\t\t\t\t\t\t\tif (category.getId().equals(mCategory.getId())) {\n\t\t\t\t\t\t\t\t\t// modify do nothing.\n\t\t\t\t\t\t\t\t\tif (!category.getName().equals(\n\t\t\t\t\t\t\t\t\t\t\tchooseItemView.getContent())) {\n\t\t\t\t\t\t\t\t\t\tshowToast(\"该关注人已经在列表了\");// not in\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// current\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// chooseItem,but\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// other already\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// has this\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// name.\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tchooseItemView.setContent(category.getName());\n\n\t\t\t\t\t\t\tAddItem addItem = (AddItem) chooseItemView.getTag();\n\t\t\t\t\t\t\t// 关注人是否已经存在,就只更新\n\t\t\t\t\t\t\tfor (Category mCategory : mGuanzhuList) {\n\t\t\t\t\t\t\t\tif (addItem.tag.equals(mCategory.tag)) {\n\t\t\t\t\t\t\t\t\t// modify .\n\t\t\t\t\t\t\t\t\tmCategory.setName(category.getName());\n\t\t\t\t\t\t\t\t\tmCategory.setId(category.getId());\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tLog.i(TAG,\n\t\t\t\t\t\t\t\t\t\"can not find the select item from fouc:\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}", "public void setCategory(String category){\n this.category = category;\n }", "Boolean updateCategory(DvdCategory category) throws DvdStoreException;", "public interface OnCategoryInteractionListener {\n void updateToolbar(String date);\n }", "private interface CategoriesCallback {\n void onLoadedCategories(boolean success);\n }", "public void setCategory(String category) {\r\n this.category = category;\r\n }", "public void setCategory(Category category) {\r\n this.category = category;\r\n }", "public void updatePortletCategory(PortletCategory category);", "public void setCategory(String category) {\n this.category = category;\n }", "public void setCategory(String category) {\n this.category = category;\n }", "public void setCategory(String category) {\n this.category = category;\n }", "public void setCategory(String category) {\n this.category = category;\n }", "public void setCategory(String category) {\n this.category = category;\n }", "public void setCategory(Category c) {\n this.category = c;\n }", "void setCategory(final CategoryItem categoryItem) {\n setItemDataSource(categoryItem);\n setVisibleItemProperties(Arrays.asList(\"name\"));\n }", "public void updateUI() {\n if (mCategoryAdapater == null) {\n mCategoryAdapater = new CategoryAdapter(mCategories);\n mCategoryRecyclerView.setAdapter(mCategoryAdapater);\n } else {\n mCategoryAdapater.setCategories(mCategories);\n mCategoryAdapater.notifyDataSetChanged();\n }\n Log.d(TAG, \"updateUI()\");\n }", "public interface OnCategoryListener {\n}", "public void setCategory(Category category) {\n this.category = category;\n }", "public void setCategory(Category category) {\n this.category = category;\n }", "public void setCategory(Category category) {\n this.category = category;\n }", "public void setCategory(Category category) {\n this.category = category;\n }", "@Override\r\n\tpublic void setSelectedItem(Object anItem) {\n c=(Category) anItem;\r\n\t}", "@FXML\n private String handleComboCategory(ActionEvent event)\n {\n String category;\n\n int selectedIndex = comboCategoryBox.getSelectionModel().getSelectedIndex();\n\n switch (selectedIndex)\n {\n case 0:\n category = \"blues\";\n break;\n case 1:\n category = \"hipHop\";\n break;\n case 2:\n category = \"pop\";\n break;\n case 3:\n category = \"rap\";\n break;\n case 4:\n category = \"rock\";\n break;\n case 5:\n category = \"techno\";\n break;\n case 6:\n txtOtherCategory.setVisible(true);\n category = txtOtherCategory.getText();\n break;\n default:\n throw new UnsupportedOperationException(\"Category not chosen\");\n }\n return category;\n }", "public void onCategoryClicked(String category){\n\t\tfor(int i = 0 ; i < mData.getStatistics().size(); i++){\r\n\t\t\tif(mData.getStatistics().get(i).getCategory().equals(category)){\r\n\t\t\t\tif(mData.getStatistics().get(i).getDueChallenges() == 0){\r\n\t\t\t\t\tmGui.showToastNoDueChallenges(mData.getActivity());\r\n\t\t\t\t} else {\r\n\t\t\t\t\t//Start activity challenge (learn session) with category and user \t\r\n\t\t\t\t\tNavigation.startActivityChallenge(mData.getActivity(), mData.getUser(), category);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\t\t\t\r\n\t}", "@Override\n\tpublic void update(Category entity) {\n\n\t}", "@Override\n protected void populateViewHolder(CategoryViewHolder viewHolder, final Category model, int position) {\n viewHolder.name.setText(model.getName());\n Picasso.with(getActivity()).load(model.getImage()).into(viewHolder.image);\n // action View Holder\n viewHolder.setItemClickListener(new ItemClickListener() {\n // method that i create in interface and put it in action of click item in category view holder (to use position )\n @Override\n public void onClick(View view, int position, boolean isLongClick) {\n //get category id from adapter and set in Common.CategoryId\n Common.categoryId=adapter.getRef(position).getKey(); // 01 or 02 or 03 ..... of category\n Common.categoryName=model.getName(); // set name of category to Common variable categoryName\n startActivity(Start.newIntent(getActivity()));// move to StartActivity\n\n }\n });\n\n }", "public void setCategory(String cat) {\t//TODO\n\t\tcategory = cat;\n\t}", "public void setCategory(String category);", "private void loadCategories(CategoriesCallback callback) {\n CheckItemsActivity context = this;\n makeRestGetRequest(RestClient.CATEGORIES_URL, (success, response) -> {\n if (!success) {\n Toast.makeText(context, LOAD_CATEGORIES_FAIL, Toast.LENGTH_SHORT).show();\n // TODO: finish activity\n } else {\n try {\n categories = ModelsBuilder.getCategoriesFromJSON(response);\n // set categories list to spinner (common category spinner) and listener for it\n ArrayAdapter<String> spinnerAdapter = new ArrayAdapter<>(context,\n android.R.layout.simple_spinner_item,\n categories);\n spinnerAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n categorySpinner.setAdapter(spinnerAdapter);\n categorySpinner.setOnItemSelectedListener(new OnCommonCategorySelected());\n } catch (JSONException e) {\n success = false;\n Log.d(DEBUG_TAG, \"Load categories parsing fail\");\n }\n }\n // inform waiting entities (e.g. waiting for items list loading start)\n callback.onLoadedCategories(success);\n });\n }", "@Override\n public void gotCategories(ArrayList<String> categories) {\n ArrayAdapter<String> categoryAdapter = new ArrayAdapter<>(this,\n android.R.layout.simple_list_item_1 , categories);\n categoriesListView.setAdapter(categoryAdapter);\n }", "public void setSelectedItem(Object anItem)\n/* */ {\n/* 49 */ this.c = ((Category)anItem);\n/* */ }", "public void changeCategory(int index){\n if(user[index].getAmountCategory()>=3 && user[index].getAmountCategory()<=10){\n user[index].setCategoryUser(user[index].newCategory(\"littleContributor\"));\n }\n else if(user[index].getAmountCategory()>10 && user[index].getAmountCategory()<30){\n user[index].setCategoryUser(user[index].newCategory(\"mildContributor\"));\n }\n else if(user[index].getAmountCategory() == 30){\n user[index].setCategoryUser(user[index].newCategory(\"starContributor\"));\n }\n }", "public void setCategory(java.lang.String category) {\n this.category = category;\n }", "public interface OnItemCLickListener {\n void OnItemCLick(PieMenuView source, int item);\n }", "@Override\n\t\t\t\t\tpublic void changed(ObservableValue arg0, Object arg1,\n\t\t\t\t\t\t\tObject arg2) {\n\t\t\t\t\t\tif (arg2.toString() == \"管理分类\") {// 查看商品分类\n\t\t\t\t\t\t\tCommodityKindInformationui c = new CommodityKindInformationui();\n\t\t\t\t\t\t\tc.display(Job, name, id);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "private void containerChanged() {\n if (getContainer() == null) {\n return;\n }\n\n ListModel dataCenter = getContainer().getDataCenter();\n dataCenter.getSelectedItemChangedEvent().addListener(new IEventListener() {\n @Override\n public void eventRaised(Event ev, Object sender, EventArgs args) {\n\n containerDataCenterChanged();\n }\n });\n\n // Call handler if there some data center is already selected.\n if (dataCenter.getSelectedItem() != null) {\n containerDataCenterChanged();\n }\n }", "@Override\n public void onCategoryStatusChanged(@CategoryInt int category, @CategoryStatus int status) {\n assert status != CategoryStatus.ALL_SUGGESTIONS_EXPLICITLY_DISABLED;\n\n // If the category was blacklisted, we note that there might be new content to show.\n mBlacklistedCategories.remove(category);\n\n // If there is no section for this category there is nothing to do.\n if (!mSections.containsKey(category)) return;\n\n switch (status) {\n case CategoryStatus.NOT_PROVIDED:\n // The section provider has gone away. Keep open UIs as they are.\n return;\n\n case CategoryStatus.CATEGORY_EXPLICITLY_DISABLED:\n // Need to remove the entire section from the UI immediately. If the section is\n // expandable, we may add the section back for displaying the header.\n removeSection(mSections.get(category));\n maybeAddSectionForHeader(category);\n return;\n\n case CategoryStatus.LOADING_ERROR:\n // Need to remove the entire section from the UI immediately.\n removeSection(mSections.get(category));\n return;\n\n case CategoryStatus.AVAILABLE_LOADING:\n case CategoryStatus.AVAILABLE:\n case CategoryStatus.INITIALIZING:\n mSections.get(category).setStatus(status);\n return;\n }\n assert false : status;\n }", "public void selectCategory() {\n\t\t\r\n\t}", "@Override\n\t\t\tpublic void onChanged(javafx.collections.ListChangeListener.Change<? extends ItemBox> c) {\n\t\t\t\tupdateOverview();\n\t\t\t}", "public void setCategory(Integer category) {\n this.category = category;\n }", "public void setCategory(String category) {\n\t\tthis.category = category;\n\t}", "public void setCategory(String category) {\n\t\tthis.category = category;\n\t}", "@Override\n public void onCategoryClicked(View itemView) {\n int position = mRecyclerView.getChildLayoutPosition(itemView);\n\n String mCategory = CategoryData.CATEGORY_LIST[position].toLowerCase();\n\n String mDifficulty = \"medium\";\n\n // select a random difficulty level\n Random random = new Random();\n switch(random.nextInt(3)) {\n case 0:\n mDifficulty = \"easy\";\n break;\n case 1:\n mDifficulty = \"medium\";\n break;\n case 2:\n mDifficulty = \"hard\";\n break;\n }\n\n // Select a random word from the assigned category and difficulty\n int resId = FileHelper.getStringIdentifier(getActivity(), mCategory + \"_\" + mDifficulty, \"raw\");\n mWord = FileHelper.selectRandomWord(getActivity(), resId);\n\n // set the edit text\n mEditText.setText(mWord);\n }", "public Categories_Adapter(List<Categorie> categories, Context context, IOnclickCategories listener) {\n this.categorieList = categories;\n this.context = context;\n this.listener = listener;\n }", "public void chooseCategory(String category) {\n for (Category c : categories) {\n if (c.getName().equals(category)) {\n if (c.isActive()) {\n c.setInActive();\n } else {\n c.setActive();\n }\n }\n }\n for (int i = 0; i < categories.size(); i++) {\n System.out.println(categories.get(i).getName());\n System.out.println(categories.get(i).isActive());\n }\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view,\n int position, long id) {\n Category selectedCategory = (Category) categoryAdapter.getItem(position);\n // Here you can do the action you want to...\n selectedCategoryID = selectedCategory.getId();\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n compaCategory = parent.getItemAtPosition(position).toString();\n }", "@Override\n public void switchToCategoriesView() {\n this.isInCategoriesView = true;\n switchToContentView();\n ClipboardCategoriesAdapter adapter = new ClipboardCategoriesAdapter(getContext(), this::switchToDetailCategoryView);\n mRecyclerView.setAdapter(adapter);\n\n }", "@OnClick(R.id.shop_by_category_layout)\n public void onCategoryLayoutClicked() {\n if (myListener != null) {\n myListener.changeToCategoriesMenu();\n }\n }", "@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> parent) {\n\t\t\t\tcategory = parent.getItemAtPosition(0).toString();\n\t\t\t\t\n\t\t\t}", "public void setCategoryFromToggleButton(View view, int viewId, EventCategory category) {\n ToggleButton toggle = (ToggleButton) view.findViewById(viewId);\n toggle.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n if (isChecked) {\n mCategories.add(category);\n } else {\n mCategories.remove(category);\n }\n }\n });\n }", "public void setCategory(Category category) {\n\t\tthis.category = category;\n\t}", "UpdateCategoryResponse updateCategory(UpdateCategoryRequest request) throws RevisionException;", "@Override\n public void onBindViewHolder(@NonNull CategoryViewHolder holder, int position) {\n Category category = mCategory.get(position);\n\n // Set item views based on your views and data model\n TextView textView = holder.categoryName;\n textView.setText(category.getName());\n\n View view_color = holder.categoryColor;\n view_color.setBackgroundColor(Color.parseColor(category.getColor()));\n\n holder.ll.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n CategoryDialog dialog = new CategoryDialog();\n\n dialog.showAddDialog(context, category.getName(), mCategory, position);\n mCategory.clear();\n }\n });\n }", "@Override\n public String getCategory() {\n return category;\n }", "public void chooseCategory(){\n String title = intent.getStringExtra(\"title\");\n String content = intent.getStringExtra(\"content\");\n TextView titleView = findViewById(R.id.category_grid_title);\n titleView.setText(R.string.choose_category_title);\n categoriesAdapter.passInfo(title, content);\n }", "private void loadCategories() {\n // adapter that show data (View Holder with data )in Recycler View\n adapter=new FirebaseRecyclerAdapter<Category, CategoryViewHolder>(\n Category.class,\n R.layout.category_layout,\n CategoryViewHolder.class,\n categories) {\n @Override\n protected void populateViewHolder(CategoryViewHolder viewHolder, final Category model, int position) {\n // set data in View Holder\n viewHolder.name.setText(model.getName());\n Picasso.with(getActivity()).load(model.getImage()).into(viewHolder.image);\n // action View Holder\n viewHolder.setItemClickListener(new ItemClickListener() {\n // method that i create in interface and put it in action of click item in category view holder (to use position )\n @Override\n public void onClick(View view, int position, boolean isLongClick) {\n //get category id from adapter and set in Common.CategoryId\n Common.categoryId=adapter.getRef(position).getKey(); // 01 or 02 or 03 ..... of category\n Common.categoryName=model.getName(); // set name of category to Common variable categoryName\n startActivity(Start.newIntent(getActivity()));// move to StartActivity\n\n }\n });\n\n }\n };\n adapter.notifyDataSetChanged(); //refresh data when changed\n list.setAdapter(adapter); // set adapter\n }", "public void loadBooksOfCategory(){\n long categoryId=mainActivityViewModel.getSelectedCategory().getMcategory_id();\n Log.v(\"Catid:\",\"\"+categoryId);\n\n mainActivityViewModel.getBookofASelectedCategory(categoryId).observe(this, new Observer<List<Book>>() {\n @Override\n public void onChanged(List<Book> books) {\n if(books.isEmpty()){\n binding.emptyView.setVisibility(View.VISIBLE);\n }\n else {\n binding.emptyView.setVisibility(View.GONE);\n }\n\n booksAdapter.setmBookList(books);\n }\n });\n }", "@Override\n protected void populateViewHolder(final CategoryViewHolder viewHolder, final Category model, final int position) {\n viewHolder.bindToCategory(model);\n //вешаем слушателя долгого нажатия для изменения категории\n viewHolder.cardView.setOnLongClickListener(new View.OnLongClickListener() {\n\n @Override\n public boolean onLongClick(View v) {\n new MaterialDialog.Builder(getActivity())\n .title(R.string.dialog_title)\n .content(R.string.category_change_warning)\n .onPositive(new MaterialDialog.SingleButtonCallback() {\n @Override\n public void onClick(@NonNull final MaterialDialog dialog, @NonNull DialogAction which) {\n new MaterialDialog.Builder(getActivity())\n .title(R.string.category_change)\n .content(R.string.category_change_content)\n .inputType(InputType.TYPE_CLASS_TEXT)\n .inputRange(2, 20)\n .input(model.name, model.name, false, new MaterialDialog.InputCallback() {\n @Override\n public void onInput(@NonNull MaterialDialog dialog, CharSequence input) {\n\n }\n })\n .checkBoxPrompt(getString(R.string.copilka), !model.isShow.equals(\"yes\"), new CompoundButton.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n isCheck = isChecked;\n }\n })\n .onPositive(new MaterialDialog.SingleButtonCallback() {\n @Override\n public void onClick(@NonNull final MaterialDialog dialoge, @NonNull DialogAction which) {\n final String userId = DataLoader.getUid();\n loader.mDatabase.child(DataLoader.USERS).child(userId).addListenerForSingleValueEvent(\n new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n // Get user value\n User user = dataSnapshot.getValue(User.class);\n\n // [START_EXCLUDE]\n if (user == null) {\n // User is null, error out\n Toast.makeText(getActivity(),\n \"Error: could not fetch user.\",\n Toast.LENGTH_SHORT).show();\n } else {\n // Write new postString name, String kind, String author, boolean isShowIt, String key\n String isShow;\n if (isCheck) {\n isShow = \"not\";\n } else {\n isShow = \"yes\";\n }\n //noinspection ConstantConditions\n Category category = new Category(dialoge.getInputEditText().getText().toString(),\n model.kind,\n userId,\n isShow,\n model.key);\n loader.writeNewCategory(category, getQuery());\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n // [START_EXCLUDE]\n }\n });\n }\n })\n .onNegative(new MaterialDialog.SingleButtonCallback() {\n @Override\n public void onClick(@NonNull MaterialDialog dialoge, @NonNull DialogAction which) {\n dialoge.dismiss();\n }\n })\n .positiveText(R.string.save)\n .negativeText(R.string.dont_save)\n .show();\n\n }\n })\n .onNegative(new MaterialDialog.SingleButtonCallback() {\n @Override\n public void onClick(@NonNull MaterialDialog dialog, @NonNull DialogAction which) {\n dialog.dismiss();\n }\n })\n .positiveText(R.string.agree)\n .negativeText(R.string.disagree)\n .show();\n\n return true;\n }\n });\n progressLayout.showContent();\n }", "private void updateCategoryTree() {\n categoryTree.removeAll();\r\n fillTree(categoryTree);\r\n\r\n }", "public String updateCategory()\n {\n logger.info(\"**** In updateCategory in Controller ****\");\n boolean flag = categoryService.updateCategory(category);\n if (flag)\n {\n FacesMessage facesMsg = new FacesMessage(FacesMessage.SEVERITY_INFO, Constants.CATEGORY_UPDATION_SUCCESS, Constants.CATEGORY_UPDATION_SUCCESS);\n FacesContext.getCurrentInstance().getExternalContext().getFlash().setKeepMessages(true);\n FacesContext.getCurrentInstance().addMessage(null, facesMsg);\n }\n return searchCategory();\n }", "public static void updateCategoryName(Context context, Category category) {\r\n DbManager dbManager = new DbManager(context);\r\n SQLiteDatabase db = dbManager.getWritableDatabase();\r\n\r\n ContentValues values = new ContentValues();\r\n values.put(CategoryTable.COLUMN_NAME_CATEGORY_NAME, category.category);\r\n\r\n db.update(\r\n DbContract.CategoryTable.TABLE_NAME,\r\n values,\r\n DbContract.CategoryTable._ID + \" = ?\",\r\n new String[]{Integer.toString(category._id)}\r\n );\r\n db.close();\r\n }", "public void modifyCategory(Category c) {\n\t\tcategoryDao.update(c);\n\t}", "@Override\r\n\tpublic Categorie updateCategorie(Categorie categorie) {\n\t\treturn cateDao.updateCategorie(categorie);\r\n\t}", "public void UpdateCategoriesCheckRepeats(){\n dbHandler.OpenDatabase();\n ArrayList<Category> CategoryObjectList = dbHandler.getAllCategory();\n // Create Category String List\n ArrayList<String> CategoryStringList = new ArrayList<>();\n for (int i = 0; i < CategoryObjectList.size(); i++) {\n CategoryStringList.add( CategoryObjectList.get(i).getName() );\n }\n\n Category category;\n // cycle through object list\n for (int i = 0; i < CategoryObjectList.size(); i++) {\n category = CategoryObjectList.get(i);\n CategoryObjectList.remove(i);\n CategoryStringList.remove(i); // remove so it doesn't find itself\n\n // find name in Category List\n int index = CategoryStringList.indexOf( category.getName() );\n\n if (index == -1){\n CategoryObjectList.add(category);\n CategoryStringList.add(category.getName());\n }else{\n CategoryObjectList.get(index).increaseCounter( category.getCounter() );\n CategoryObjectList.get(index).increaseAmount( category.getAmount() );\n i--;\n }\n }\n\n // Add back to database\n dbHandler.deleteAllCategory();\n for (int i = 0; i < CategoryObjectList.size(); i++) {\n dbHandler.addCategory(CategoryObjectList.get(i));\n }\n\n dbHandler.CloseDatabase();\n }", "@Override\n public void onBindViewHolder(ViewHolder holder, final int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n\n holder.tvCategoryName.setText(categorieList.get(position).getName().toUpperCase());\n\n switch (categorieList.get(position).getName()) {\n case \"Historia\":\n holder.ivCateItem.setImageDrawable(context.getResources().getDrawable(R.drawable.ic_account_balance_white_48dp));\n break;\n case \"Restaurantes\":\n holder.ivCateItem.setImageDrawable(context.getResources().getDrawable(R.drawable.ic_restaurant_white_48dp));\n break;\n case \"Hoteles\":\n holder.ivCateItem.setImageDrawable(context.getResources().getDrawable(R.drawable.ic_hotel_white_48dp));\n break;\n case \"Servicios Turisticos\":\n holder.ivCateItem.setImageDrawable(context.getResources().getDrawable(R.drawable.ic_local_see_white_48dp));\n break;\n case \"Comida rapida\":\n holder.ivCateItem.setImageDrawable(context.getResources().getDrawable(R.drawable.ic_local_pizza_white_48dp));\n break;\n case \"Servicios\":\n holder.ivCateItem.setImageDrawable(context.getResources().getDrawable(R.drawable.ic_business_center_white_48dp));\n break;\n case \"Eventos\":\n holder.ivCateItem.setImageDrawable(context.getResources().getDrawable(R.drawable.ic_event_white_48dp));\n break;\n case \"Lugares de interes\":\n holder.ivCateItem.setImageDrawable(context.getResources().getDrawable(R.drawable.ic_place_white_48dp));\n break;\n case \"Comercios\":\n holder.ivCateItem.setImageDrawable(context.getResources().getDrawable(R.drawable.ic_store_white_48dp));\n break;\n default:\n holder.ivCateItem.setImageDrawable(context.getResources().getDrawable(android.R.drawable.ic_dialog_info));\n break;\n }\n\n Glide.with(context).load(categorieList.get(position).getImage()).centerCrop().into(holder.ivImageCategory);\n holder.rlContainer.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n listener.onClickCategory(categorieList.get(position));\n }\n });\n\n }", "@Override\n public void onChanged(List<Movie> movies) {\n List<MovieListItem> movieListItems = new ArrayList<>();\n for (Movie movie : movies){\n movieListItems.add(\n new MovieListItem(\n movie,\n glide,\n context\n ).addListener(MovieCategoryListItem.this) // Add listener for click events\n );\n }\n\n\n\n\n }", "public void LlenarC(){\n for(int i=0;i< new GestionCategorias().getListCategoria().size();i++){\n catBox.addItem(new GestionCategorias().getListCategoria().get(i).getCat_nombre());\n \n }\n }", "private void setSuggestedCategory() {\n if (selectedCategoryKey != null) {\n return;\n }\n if (suggestedCategories != null && suggestedCategories.length != 0) {\n selectedCategoryKey = suggestedCategories[0].getKey();\n selectCategory.setText(suggestedCategories[0].getName());\n }\n }", "public void changeCategoryName(Category category, String name) throws Exception {\n DataBaseBroker dbb = new DataBaseBroker();\n dbb.loadDriver();\n dbb.establishConnection();\n category.setName(name);\n dbb.overwriteCategory(category);\n dbb.commit();\n dbb.closeConnection();\n }", "private void CbxCondicionItemStateChanged(java.awt.event.ItemEvent evt) {\n }", "private void saveNewCategory() {\n String name = newCategory_name.getText()\n .toString();\n int defaultSizeType = categoryDefaultSize.getSelectedItemPosition() - 1;\n String color = String.format(\"%06X\", (0xFFFFFF & categoryColor.getExactColor()));\n int parentCategoryId = -1;\n if (parentCategory != null) {\n parentCategoryId = parentCategory.getId();\n }\n String icon = categoryIcon.getSelectedItem();\n categoryDataSource.editCategory(categoryId, name, name, parentCategoryId, defaultSizeType,\n icon, color);\n\n setResult(Activity.RESULT_OK);\n this.finish();\n }", "void onChannelTitleClick(Item item);" ]
[ "0.65251195", "0.65251195", "0.64806604", "0.6467046", "0.6413246", "0.62518156", "0.60691", "0.6054119", "0.6028215", "0.60123867", "0.5951334", "0.59492666", "0.59276396", "0.59081095", "0.58978426", "0.58726496", "0.587121", "0.5863447", "0.5835933", "0.5821846", "0.5792223", "0.57653826", "0.57319814", "0.5725506", "0.57027286", "0.5692869", "0.56795377", "0.5663617", "0.56545454", "0.56194234", "0.5615458", "0.5599787", "0.55915874", "0.55864906", "0.55853075", "0.5575608", "0.5575608", "0.5575608", "0.5575608", "0.5575608", "0.5567658", "0.55598223", "0.5558609", "0.5557066", "0.5546368", "0.5546368", "0.5546368", "0.5546368", "0.55448467", "0.55365366", "0.5512875", "0.5499118", "0.5498504", "0.54914016", "0.54806113", "0.5467067", "0.5456977", "0.5448855", "0.5438563", "0.5419584", "0.5416686", "0.5407168", "0.5388784", "0.537847", "0.53607786", "0.5352607", "0.5351056", "0.53477424", "0.53477424", "0.5345469", "0.53424656", "0.53353274", "0.5328679", "0.5323496", "0.53080934", "0.5293957", "0.5289114", "0.5285817", "0.5284156", "0.5270972", "0.5266921", "0.5254199", "0.52443963", "0.52332485", "0.5224136", "0.52076805", "0.5196222", "0.5195565", "0.51926345", "0.51896", "0.5184361", "0.5181858", "0.51792544", "0.51790076", "0.51767063", "0.5171911", "0.5166577", "0.516371", "0.5161331", "0.5157755" ]
0.6375617
5
callbacks interfaces Interface to handle JSON only after getting of response.
private interface OnJSONResponseCallback { void onJSONResponse(boolean success, JSONObject response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onResponse(JSONObject response) {\n processResponse(response);\n }", "public interface JsonCallBack {\n public void getJson(String s);\n}", "public interface MyCallbackInterface {\n //its supposed to send the JSON object on request completed\n void onRequestCompleted(JSONArray result);\n }", "@Override\n public void onResponse(JSONObject jsonObject)\n {\n }", "public interface AsyncResponse\n{\n void onAsyncJsonFetcherComplete(int mode, JSONArray json, boolean jsonException);\n}", "public interface OnJSONObjectResponseListener {\n\n void onResponse(JSONObject response, String errorMessage);\n}", "public Response callback() throws Exception;", "void onRequestCompleted(JSONArray result);", "@Override\n public void onResponse(JSONArray response) {\n ;\n }", "public interface RequestCallBack {\n void succes(String json);\n void fail();\n}", "@Override\n public void onResponse(JSONObject response) {\n Log.d(\"JSON_RESPONSE\",\"onResponse:\" +response.toString());\n }", "@Override\n public void onResponse(String response) {\n Log.i(Constant.TAG_MAIN, \"Get JSON respone: \" + response);\n\n }", "@Override\n public void onSuccess(int statusCode, Header[] headers, byte[] response) {\n Log.e(\"JSON\", new String(response));\n\n\n }", "@Override\n public void onResponse(JSONArray response) {\n parseData(response);\n }", "@Override\n public void onResponse(JSONObject response) {\n procesarRespuesta(response);\n Log.i(TAG, \"processanddo respuesta...\" + response);\n }", "@Override\n public void onSuccess(int statusCode, Header[] headers, JSONArray response) {\n try {\n JSONArray data = new JSONArray(response.toString());\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void onSuccess(int statusCode, Header[] headers, JSONArray response) {\n try {\n JSONArray data = new JSONArray(response.toString());\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "@Override\n\t\t\t\tpublic void onSuccess(int statusCode, Header[] headers,\n\t\t\t\t\t\tJSONArray response) {\n\t\t\t\t\tsuper.onSuccess(statusCode, headers, response);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tgetJsonObj(response);\n\t\t\t\t\t\tLog.e(\"lory.....\", \"\"+fans.toString());\n\t\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t}", "void onSuccess(int responseCode, int requestCode, Response<JsonElement> response);", "@Override\n public void onSuccess(int statusCode , Header[] headers , JSONArray response)\n {\n }", "public interface ResponseCallback {\r\n\t\t/**\r\n\t\t * Callback invoked when a response is returned by the request\r\n\t\t * @param response The returned response\r\n\t\t */\r\n\t\tpublic void onResponse(Response response) throws Exception;\r\n\t}", "@Override\n\t\t\t\t\t\t\tpublic void onComplete(String response, Object state) {\n\t\t\t\t\t\t\t\tString json = response;\n\t\t\t\t\t\t\t\tLog.d(\"arv\", \"arv\"+json);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "void response( JSONArray data );", "public interface VolleyCallBack {\n void onSuccess(JSONObject jsonObject);\n}", "@Override\n public void onResponse(String response) {\n }", "@Override\n public void onResponse(String response) {\n Toast.makeText(getBaseContext(),\"Response is: \"+ response,Toast.LENGTH_LONG).show();\n json(response);\n }", "public interface MyCallbackInterface {\n\n void onFetchFinish(JSONObject response);\n void onFetchFinish(JSONArray response);\n void onFetchFinish(String result);\n}", "@Override\n public void onResponse(String response)\n {\n\n }", "@Override\n public void onResponse(String json) {\n parseRefreshResponse(json);\n }", "@Override\n\t\t\t\t\tpublic void handleResponse(String jsonResult, EHttpError error) {\n\t\t\t\t\t\tif(jsonResult!=null&&error == EHttpError.KErrorNone){\n\t\t\t\t\t\t\tGson gson = new Gson();\n\t\t\t\t\t\t\tType type = new TypeToken<Map<String, Object>>() {\n\t\t\t\t\t\t\t}.getType();\n\t\t\t\t\t\t\tbooks = gson.fromJson(jsonResult, type);\n\t\t\t\t\t\t\tList<Map<String, Object>>list = (List<Map<String, Object>>) books.get(\"books\");\n\t\t\t\t\t\t\tSystem.out.println(\"书籍详情\"+list);\n\t\t\t\t\t\t\tthis.completeListener.onQueryComplete(GETBOOKBYNAME, list, error);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tthis.completeListener.onQueryComplete(GETBOOKBYNAME, null, error);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "@Override\n\t\t\tpublic void onResponseReceived(Request request, Response response) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void onResponse(String response) {\n }", "@Override\n public void onResponse(String response) {\n }", "@Override\n public void onResponse(String response) {\n }", "@Override\n\t\t\t\tpublic void onResponseReceived(Request request, Response response) {\n\t\t\t\t\t\n\t\t\t\t}", "private JsonNode processCallbackResponse(final JsonNode resp) {\n if (this.callbackHandler == null) {\n throw new JsiiException(\"Cannot process callback since callbackHandler was not set\");\n }\n\n Callback callback = JsiiObjectMapper.treeToValue(resp.get(\"callback\"), NativeType.forClass(Callback.class));\n\n JsonNode result = null;\n String error = null;\n try {\n result = this.callbackHandler.handleCallback(callback);\n } catch (Exception e) {\n if (e.getCause() instanceof InvocationTargetException) {\n error = e.getCause().getCause().getMessage();\n } else {\n error = e.getMessage();\n }\n }\n\n ObjectNode completeResponse = JsonNodeFactory.instance.objectNode();\n completeResponse.put(\"cbid\", callback.getCbid());\n if (error != null) {\n completeResponse.put(\"err\", error);\n }\n if (result != null) {\n completeResponse.set(\"result\", result);\n }\n\n ObjectNode req = JsonNodeFactory.instance.objectNode();\n req.set(\"complete\", completeResponse);\n\n return requestResponse(req);\n }", "@Override\n public void onResponse(String response) {\n }", "@Override\n public void onResponse(String response) {\n }", "private JsonNode processCallbackResponse(final JsonNode resp) {\n if (this.callbackHandler == null) {\n throw new JsiiError(\"Cannot process callback since callbackHandler was not set\");\n }\n\n Callback callback = JsiiObjectMapper.treeToValue(resp.get(\"callback\"), NativeType.forClass(Callback.class));\n\n JsonNode result = null;\n String error = null;\n String name = null;\n try {\n result = this.callbackHandler.handleCallback(callback);\n } catch (Exception e) {\n if (e.getCause() instanceof InvocationTargetException) {\n error = e.getCause().getCause().getMessage();\n } else {\n error = e.getMessage();\n }\n\n name = e instanceof JsiiError\n ? JsiiException.Type.JSII_FAULT.toString()\n : JsiiException.Type.RUNTIME_ERROR.toString();\n }\n\n ObjectNode completeResponse = JsonNodeFactory.instance.objectNode();\n completeResponse.put(\"cbid\", callback.getCbid());\n if (error != null) {\n completeResponse.put(\"err\", error);\n completeResponse.put(\"name\", name);\n }\n if (result != null) {\n completeResponse.set(\"result\", result);\n }\n\n ObjectNode req = JsonNodeFactory.instance.objectNode();\n req.set(\"complete\", completeResponse);\n\n return requestResponse(req);\n }", "@Override\n \t\t\tpublic void onSuccess(int arg, JSONArray objects) {\n \t\t\t}", "@Override\n\t\t\t\t\tpublic void handleResponse(String jsonResult, EHttpError error) {\n\t\t\t\t\t\tif(jsonResult!=null&&error == EHttpError.KErrorNone){\n\t\t\t\t\t\t\tthis.completeListener.onQueryComplete(CLICKWISH, jsonResult, error);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tthis.completeListener.onQueryComplete(CLICKWISH, jsonResult, error);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "public void onResponse(Response response) throws Exception;", "@Override\n\t\t\t\t\t\t\tpublic void handleResponse(String jsonResult,\n\t\t\t\t\t\t\t\t\tEHttpError error) {\n\t\t\t\t\t\t\t\tMap<String, Object> map;\n\t\t\t\t\t\t\t\tif (jsonResult != null\n\t\t\t\t\t\t\t\t\t\t&& error == EHttpError.KErrorNone) {\n\t\t\t\t\t\t\t\t\tGson gson = new Gson();\n\t\t\t\t\t\t\t\t\tType type = new TypeToken<Map<String, Object>>() {\n\t\t\t\t\t\t\t\t\t}.getType();\n\t\t\t\t\t\t\t\t\tmap = gson.fromJson(jsonResult, type);\n\t\t\t\t\t\t\t\t\tthis.completeListener.onQueryComplete(\n\t\t\t\t\t\t\t\t\t\t\tGetWishDetail, map, error);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}", "@Override\r\n public void onResponse(JSONArray response) {\n parseData(response, requestCount);\r\n }", "@Override\n\t\t\tpublic void onSuccess(Method method, JSONValue response) {\n\t\t\t}", "@Override\n protected void deliverResponse(JSONObject response) {\n listener.onResponse(response);\n System.out.println(\"response \"+response);\n }", "@Override\n public void onSuccess(int statusCode , Header[] headers , JSONObject response)\n {\n }", "@Override\n public void onSuccess(int statusCode, Header[] headers, byte[] response) {\n String decoded = null;\n try {\n decoded = new String(response, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n Log.d(TAG, \"API call onSuccess = \" + statusCode + \", Headers: \" + headers[0] + \", response.length: \" + response.length +\n \", decoded:\" + response);\n userDidLeave();\n }", "@Override\n\t\t\t\t\t\t\tpublic void handleResponse(String jsonResult,\n\t\t\t\t\t\t\t\t\tEHttpError error) {\n\t\t\t\t\t\t\t\tif (jsonResult != null\n\t\t\t\t\t\t\t\t\t\t&& error == EHttpError.KErrorNone) {\n\t\t\t\t\t\t\t\t\tthis.completeListener.onQueryComplete(\n\t\t\t\t\t\t\t\t\t\t\tnew QueryId(), jsonResult, error);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tthis.completeListener.onQueryComplete(\n\t\t\t\t\t\t\t\t\t\t\tnew QueryId(), null, error);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}", "public interface VolleyCallback {\n void onSuccess(JSONObject result);\n }", "@Override\n\t\t\t\t\tpublic void onResponse(String response) {\n\n\t\t\t\t\t}", "@Override\n public void onCallBack(String data) {\n Log.i(TAG, \"reponse data from js \" + data);\n }", "@Override\n public void onResponse(JSONObject response) {\n Log.e(\"puto\",\"PRECEOSA \");\n procesarRespuesta(response);\n\n Log.e(\"puto\",\"respuetsa -\"+response);\n }", "@Override\n\t\t\t\t\tpublic void handleResponse(String jsonResult,\n\t\t\t\t\t\t\tEHttpError error) {\n\t\t\t\t\t\tif (jsonResult != null\n\t\t\t\t\t\t\t\t&& error == EHttpError.KErrorNone) {\n\t\t\t\t\t\t\tthis.completeListener.onQueryComplete(CLICKWISH,\n\t\t\t\t\t\t\t\t\tjsonResult, error);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthis.completeListener.onQueryComplete(CLICKWISH,\n\t\t\t\t\t\t\t\t\tjsonResult, error);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "public interface VolleyResponse {\n void onSuccessResponseJson(JSONObject jsonObject, int type);\n\n void onFailResponseJson(VolleyError error);\n}", "@Override\n\t\t\t\t\tpublic void handleResponse(String jsonResult,\n\t\t\t\t\t\t\tEHttpError error) {\n\t\t\t\t\t\tMap<String, Object> wishes;\n\t\t\t\t\t\tif (jsonResult != null\n\t\t\t\t\t\t\t\t&& error == EHttpError.KErrorNone) {\n\t\t\t\t\t\t\tGson gson = new Gson();\n\t\t\t\t\t\t\tType type = new TypeToken<Map<String, Object>>() {\n\t\t\t\t\t\t\t}.getType();\n\t\t\t\t\t\t\twishes = gson.fromJson(jsonResult, type);\n\t\t\t\t\t\t\tList<Map<String, Object>> list = (List<Map<String, Object>>) wishes\n\t\t\t\t\t\t\t\t\t.get(\"comments\");\n\t\t\t\t\t\t\tthis.completeListener.onQueryComplete(GETCOMMENT,\n\t\t\t\t\t\t\t\t\tlist, error);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void handleResponse(String jsonResult, EHttpError error) {\n\t\t\t\t\t\tif(jsonResult!=null&&error == EHttpError.KErrorNone){\n\t\t\t\t\t\t\tGson gson = new Gson();\n\t\t\t\t\t\t\tType type = new TypeToken<Map<String, Object>>() {\n\t\t\t\t\t\t\t}.getType();\n\t\t\t\t\t\t\tbooks = gson.fromJson(jsonResult, type);\n\t\t\t\t\t\t\tList<Map<String, Object>>list = (List<Map<String, Object>>) books.get(\"books\");\n saveCache(context, jsonResult);\n\t\t\t\t\t\t\tSystem.out.println(\"旧书\"+list);\n\t\t\t\t\t\t\tthis.completeListener.onQueryComplete(GETBOOKBYTAPE, books, error);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tthis.completeListener.onQueryComplete(GETBOOKBYTAPE, null, error);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void handleResponse(String jsonResult,\n\t\t\t\t\t\t\tEHttpError error) {\n\t\t\t\t\t\tMap<String, Object> wishes;\n\t\t\t\t\t\tif (jsonResult != null\n\t\t\t\t\t\t\t\t&& error == EHttpError.KErrorNone) {\n\t\t\t\t\t\t\tGson gson = new Gson();\n\t\t\t\t\t\t\tType type = new TypeToken<Map<String, Object>>() {\n\t\t\t\t\t\t\t}.getType();\n\t\t\t\t\t\t\twishes = gson.fromJson(jsonResult, type);\n\t\t\t\t\t\t\tsaveCache(context, jsonResult);\n\t\t\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\t\t\tList<Map<String, Object>> list = (List<Map<String, Object>>) wishes\n\t\t\t\t\t\t\t\t\t.get(\"wishes\");\n\t\t\t\t\t\t\tthis.completeListener.onQueryComplete(LISTWISH,\n\t\t\t\t\t\t\t\t\tlist, error);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthis.completeListener.onQueryComplete(LISTWISH,\n\t\t\t\t\t\t\t\t\tnull, error);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onSuccess(ResponseInfo<String> arg0) {\n\t\t\t\t\t\terweimaJsonInfo(arg0.result);\n\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onResponse(String response) {\n\t\t\t\t\t\t\tparseRespense(response);\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void handleResponse(String jsonResult, EHttpError error) {\n\t\t\t\t\t\tif(jsonResult!=null&&error == EHttpError.KErrorNone){\n\t\t\t\t\t\t\tGson gson = new Gson();\n\t\t\t\t\t\t\tType type = new TypeToken<Map<String, Object>>() {\n\t\t\t\t\t\t\t}.getType();\n\t\t\t\t\t\t\tbooks = gson.fromJson(jsonResult, type);\n\t\t\t\t\t\t\tList<Map<String, Object>>list = (List<Map<String, Object>>) books.get(\"books\");\n\t\t\t\t\t\t\tSystem.out.println(\"搜索到的书\"+list);\n\t\t\t\t\t\t\tthis.completeListener.onQueryComplete(new QueryId(), list, error);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tthis.completeListener.onQueryComplete(new QueryId(), null, error);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "public void getJSON() throws JSONException {\n url = setUrl();\n System.out.println(\"after setAsyncUrl url = \" + url);\n OkHttpClient client = new OkHttpClient();\n Request request = new Request.Builder()\n .url(url)\n .build();\n client.newCall(request).enqueue(new Callback() {\n @Override\n public void onFailure(Call call, IOException e) {\n e.printStackTrace();\n }\n\n @Override\n public void onResponse(Call call, Response response) throws IOException {\n if(response.isSuccessful()){\n jString = new String(response.body().string());\n if(V)System.out.println(\"jString = \" + jString);\n try {\n addSearchFragment(jString); // add retrieved search fragments to screen\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }\n });\n }", "@Override\n public void onResponse(JSONArray response) {\n Log.i(TAG, \"Response => \" + response.toString());\n // Log.i(TAG, \"Response => \" + response.);\n // response.get\n\n }", "@Override\n public void onResponse(JSONObject response) {\n\n if (callbackFunction == METHOD_CALLBACK_LOGIN)\n processResponse(response);\n else if (callbackFunction == METHOD_CALLBACK_PASSWORD)\n processResponsePwd(response,alert,mView);\n else\n processResponsePwd2(response,alert,mView);\n\n }", "@Override\n public void onResponse(String response) {\n finalData(response);\n }", "public interface IResponseCallBack<T>{\r\n public void onFailure(String msg);\r\n public void onSuccess(HashMap<String,T> responseObjects);\r\n }", "public interface ResultCallback {\n public void onsuccess(Response response);\n public void onfail(Exception e);\n}", "public interface OnRestCallback {\n void onNetSuccess(int requestCode, int responseCode, String data);\n void onNetError(int requestCode, int responseCode, String error);\n}", "@Override\n public void onResponse(String json) {\n parseLogInResponse(json);\n }", "@Override\n public void onResponse(String response) {\n if(null != listener){\n listener.onComplete(mRespHandler.parse(response));\n }\n }", "public void onResponse(JSONObject response) {\n if (response != null) {\n dissmissDialog();\n parseJsonFeed(response);\n }\n }", "public void onResponse(JSONObject response) {\n if (response != null) {\n dissmissDialog();\n parseJsonFeed(response);\n }\n }", "@Override\n public void onResponse(JSONObject response){\n Log.i(\"Response\",String.valueOf(response));\n }", "void onComplete(boolean result, JSONObject jsonObject);", "@Override\n public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {\n try {\n JSONArray jsonData = new JSONArray(new String(responseBody));\n ref.buildNewListOfData(jsonData);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n\n }", "@Override\n public void onResponse(JSONArray response) {\n try {\n /**\n * Executar o callback\n */\n Map<String, Object> lista = new HashMap<>();\n lista.put(\"pontos\", response);\n\n if(callback!=null) callback.executar(lista);\n else Toast.makeText(context, \"Sem callback\", Toast.LENGTH_SHORT).show();\n\n } catch(Exception e){\n e.printStackTrace();\n }\n //Toast.makeText(getBaseContext(), \"Envio OK...\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onResponse(Response response) throws IOException {\n }", "@Override\n\tpublic void onParser(JSONArray response) {\n\n\t}", "@Override\n\t\t\t\t\tpublic void handleResponse(String jsonResult, EHttpError error) {\n\t\t\t\t\t\tMap<String, Object>books;\n\t\t\t\t\t\tif(jsonResult!=null&&error == EHttpError.KErrorNone){\n\t\t\t\t\t\t\tGson gson = new Gson();\n\t\t\t\t\t\t\tType type = new TypeToken<Map<String, Object>>() {\n\t\t\t\t\t\t\t}.getType();\n\t\t\t\t\t\t\tbooks = gson.fromJson(jsonResult, type);\n\t\t\t\t\t\t\tList<String>list = (List<String>) books.get(\"booknames\");\n\t\t\t\t\t\t\tSystem.out.println(\"搜索到的书\"+list);\n\t\t\t\t\t\t\tthis.completeListener.onQueryComplete(AUTOCOMPLETE, list, error);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tthis.completeListener.onQueryComplete(AUTOCOMPLETE, null, error);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "@Override\n public void onResponse(String json) {\n parseTempFBLogInResponse(json);\n }", "@Override\r\n\t\t\t\t\tpublic void onResponse(String arg0) {\n\t\t\t\t\t\tlistonResponse(arg0);\r\n\t\t\t\t\t\trefreshView.onRefreshComplete();\r\n\t\t\t\t\t}", "public interface AsyncResponse {\n void processFinish(HttpJson output);\n}", "public interface OkHttpResponseListener<T> {\n void onJsonObjectResponse(T t);\n\n void onJsonArrayResponse(List<T> t);\n\n void onError(String error);\n}", "@Override\n public void onResponse(String response) {\n parseData(url, response);\n }", "@Override\n public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {\n String response = null;\n try {\n response = new String(responseBody, ENCODING);\n JSONArray jsonArray = new JSONArray(response);\n Log.e(\"JSONARRAY\", jsonArray.toString(1));\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }", "@Override\n public void onResponseSuccess(final String resp) {\n }", "public interface ResponseCallback {\n void onSucceed(String tag, ResultDataBean resultDataBean);\n void error(String tag,String errorMessage );\n //TODO 如果需要可以把一下加上\n// void onFailed(String tag);\n// void onFinish(String tag);\n// void onStart(String tag);\n}", "public interface API_CallBack {\n\n void ArrayData(ArrayList arrayList);\n\n void OnSuccess(String responce);\n\n void OnFail(String responce);\n\n\n}", "@Override\n public void onResponse(String response) {\n opprettListe(response);\n }", "@Override\n public void onResponse(Call call, Response response) throws IOException {\n String jsonStr = response.body().string();\n Log.i(TAG, \"onResponse: --------------------------------\" + jsonStr);\n parseJsonAndUpdateView(jsonStr.trim());\n }", "public interface HttpResponseCallBack<T> {\n\n public void onHttpResult(T response);\n\n}", "@Override\n public void onResponse(JSONObject response) {\n dismissLoading();\n try {\n String message = response.getString(\"message\");\n showToast(message);\n onBack();\n } catch (Exception e) {\n e.printStackTrace();\n showToast(\"Response parse error\");\n }\n }", "@Override\n public void onSuccess(int statusCode, Header[] headers, JSONObject response) {\n\n try {\n JSONArray jsonArray = response.getJSONArray(\"value\");\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject mPJSONArray = jsonArray.getJSONObject(i);\n\n Log.i(\"AsyncHttpClient1\", jsonArray.toString());\n\n String description = mPJSONArray.getString(\"Description\");\n\n addRecord( description);\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void onResponse(String response, int id) {\n processData(response);\n\n }", "public interface IJsonListener<M> {\n void onSuccess(InputStream inputStream);\n void onError();\n}", "void setCallback(IResponseCallback<WalletDataDecl.ListResultTmpl<Response>> cb);", "public interface HandleResponse {\n void downloadComplete(String output, DownloadImageJson.TaskType task);\n void imageDownloadComplete(float scale_x, float scale_y);\n void removeFromTtsList(Boundary b);\n void setUsername(String output);\n}", "public interface APIRequestCallback {\n /**\n * Success callback. Request is considered as successful when response code is between 200 and 299\n *\n * @param responseCode Response code, from 200 to 299\n * @param response Serialized response of type or null in case when response could not be serialized into json element\n */\n void onSuccess(int responseCode, int requestCode, Response<JsonElement> response);\n\n /**\n * General failure callback\n *\n * @param errorDetails {@link GoSellError} representing a failure reason\n */\n void onFailure(int requestCode, GoSellError errorDetails);\n\n}", "public interface ResponseCallback<T> {\n void onResponse(T result);\n}", "@Override\n \t\t\tpublic void onFailure(Throwable arg0, JSONObject arg1) {\n \t\t\t}" ]
[ "0.7347464", "0.7203441", "0.7154295", "0.706503", "0.70075196", "0.6985059", "0.6893944", "0.67516047", "0.673318", "0.66765136", "0.66056365", "0.6580004", "0.6558933", "0.655727", "0.65275526", "0.652162", "0.652162", "0.6469565", "0.64635885", "0.6454458", "0.64543754", "0.64335805", "0.6424653", "0.6419585", "0.641836", "0.641757", "0.64049464", "0.64049274", "0.6404608", "0.64028084", "0.6400374", "0.6392394", "0.6392394", "0.6392394", "0.6389357", "0.63720363", "0.63703895", "0.6363563", "0.6358961", "0.6352148", "0.63436556", "0.63315475", "0.6318467", "0.6309044", "0.6305482", "0.6293493", "0.6286921", "0.62732154", "0.62594426", "0.62542576", "0.6217408", "0.62155807", "0.62035656", "0.61956096", "0.6192024", "0.6188238", "0.61854655", "0.6184745", "0.6181035", "0.6175029", "0.6169078", "0.61690354", "0.6153724", "0.615207", "0.61516386", "0.61513954", "0.6150805", "0.61427814", "0.6140832", "0.6135912", "0.6132702", "0.6132702", "0.6131161", "0.61262524", "0.61238563", "0.6120005", "0.61180216", "0.61179763", "0.611757", "0.61023086", "0.60965693", "0.6090761", "0.608964", "0.6077687", "0.60772943", "0.6076502", "0.60682815", "0.60655653", "0.60475403", "0.6044812", "0.6042206", "0.6037", "0.6031261", "0.6027864", "0.60177386", "0.6012651", "0.600256", "0.5997282", "0.59955096", "0.5989427" ]
0.7271032
1
Interface to make actions only when categories loading is finished.
private interface CategoriesCallback { void onLoadedCategories(boolean success); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void loadCategoriesAsync(OnCategoryLoad onCategoryLoad);", "@Override\n public void loadCategories() {\n loadCategories(mFirstLoad, true);\n mFirstLoad = false;\n }", "private void loadCategories(CategoriesCallback callback) {\n CheckItemsActivity context = this;\n makeRestGetRequest(RestClient.CATEGORIES_URL, (success, response) -> {\n if (!success) {\n Toast.makeText(context, LOAD_CATEGORIES_FAIL, Toast.LENGTH_SHORT).show();\n // TODO: finish activity\n } else {\n try {\n categories = ModelsBuilder.getCategoriesFromJSON(response);\n // set categories list to spinner (common category spinner) and listener for it\n ArrayAdapter<String> spinnerAdapter = new ArrayAdapter<>(context,\n android.R.layout.simple_spinner_item,\n categories);\n spinnerAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n categorySpinner.setAdapter(spinnerAdapter);\n categorySpinner.setOnItemSelectedListener(new OnCommonCategorySelected());\n } catch (JSONException e) {\n success = false;\n Log.d(DEBUG_TAG, \"Load categories parsing fail\");\n }\n }\n // inform waiting entities (e.g. waiting for items list loading start)\n callback.onLoadedCategories(success);\n });\n }", "private void loadCategories() {\n\t\tcategoryService.getAllCategories(new CustomResponseListener<Category[]>() {\n\t\t\t@Override\n\t\t\tpublic void onHeadersResponse(Map<String, String> headers) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onErrorResponse(VolleyError error) {\n\t\t\t\tLog.e(\"EditTeamProfileActivity\", \"Error while loading categories\", error);\n\t\t\t\tToast.makeText(EditTeamProfileActivity.this, \"Error while loading categories \" + error.getMessage(), Toast.LENGTH_LONG).show();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onResponse(Category[] response) {\n\t\t\t\tCollections.addAll(categories, response);\n\n\t\t\t\tif (null != categoryRecyclerAdapter) {\n\t\t\t\t\tcategoryRecyclerAdapter.setSelected(0);\n\t\t\t\t\tcategoryRecyclerAdapter.notifyDataSetChanged();\n\t\t\t\t}\n\n\t\t\t\tupdateSelectedCategory();\n\t\t\t}\n\t\t});\n\t}", "public interface CallbackCategories<T> {\n void onLoad(List<Category> loaded);\n}", "private void triggerAnnulerCategorie() {\n this.listener.OnCancelCategorie();\n }", "public interface OnCategoryInteractionListener {\n void updateToolbar(String date);\n }", "public interface Callbacks {\n public void onCategorySelected(TaskCategory category);\n }", "public synchronized ActionCategories loadMedicalActionCategories()\n\t{\n\t\t// if action categories is null\n\t\tif (medicalActionCategories == null)\n\t\t{\n\t\t\t// create an xml serializator\n\t\t\tSimpleXMLSerializator serializator = new SimpleXMLSerializator();\n\t\t\t// Open categories file\n\t\t\tFile categoriesFile = new File(StorageModule.getInstance().getBasePath() + \"/\" + CATEGORIES_RELATIVE_PATH);\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// load medicalactions categories\n\t\t\t\tmedicalActionCategories = (ActionCategories) serializator.deserialize(categoriesFile, ActionCategories.class);\n\t\t\t} catch (Exception e)\n\t\t\t{\n\t\t\t\tlog.error(\"An error ocurred while reading categories file.\", e);\n\t\t\t\tmedicalActionCategories = new ActionCategories();\n\t\t\t}\n\t\t}\n\t\treturn medicalActionCategories;\n\t}", "public interface OnCategoryListener {\n}", "@Override\n\n // If the request is succesfull\n public void onResponse(JSONObject response) {\n try {\n JSONArray categoriesArray = response.getJSONArray(\"categories\");\n for (int i = 0; i < categoriesArray.length(); i++){\n categories.add(categoriesArray.getString(i));\n }\n }\n catch (JSONException e) {\n Log.e(\"Request\", e.getMessage());\n }\n activity.gotCategories(categories);\n }", "public void Categories() {\n final ProgressDialog dialog = new ProgressDialog(getActivity());\n dialog.setCanceledOnTouchOutside(false);\n dialog.setMessage(\"Please Wait...\");\n dialog.show();\n\n Call<Categories> logincall = apiInterface.categoriespojo();\n logincall.enqueue(new Callback<Categories>() {\n @Override\n public void onResponse(Call<Categories> call, Response<Categories> response) {\n dialog.dismiss();\n if (response.body().getStatus() == 1) {\n if (Constants.categoriesData != null) {\n Constants.categoriesData.clear();\n }\n if (!Constants.categoriesData.equals(\"\") && Constants.categoriesData != null) {\n Constants.categoriesData.addAll(response.body().getData());\n CategoryAdapter adapter = new CategoryAdapter(getActivity());\n recycler_view.setAdapter(adapter);\n if (adapter != null)\n adapter.notifyDataSetChanged();\n } else {\n Toast.makeText(getActivity(), response.body().getMsg(), Toast.LENGTH_SHORT).show();\n }\n }\n }\n\n @Override\n public void onFailure(Call<Categories> call, Throwable t) {\n dialog.dismiss();\n Helper.showToastMessage(activity, \"No Internet Connection\");\n }\n });\n }", "public void onCategoryClicked(String category){\n\t\tfor(int i = 0 ; i < mData.getStatistics().size(); i++){\r\n\t\t\tif(mData.getStatistics().get(i).getCategory().equals(category)){\r\n\t\t\t\tif(mData.getStatistics().get(i).getDueChallenges() == 0){\r\n\t\t\t\t\tmGui.showToastNoDueChallenges(mData.getActivity());\r\n\t\t\t\t} else {\r\n\t\t\t\t\t//Start activity challenge (learn session) with category and user \t\r\n\t\t\t\t\tNavigation.startActivityChallenge(mData.getActivity(), mData.getUser(), category);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\t\t\t\r\n\t}", "public static void loopCategories() throws IOException {\n //If all of the categories haven't been checked yet check the response at the current index (count).\n if (count < CATEGORY_ARRAY_SIZE) {\n //If that response if equal to TRUE (1).\n if (currentUser.getSingleCategory(count) == TRUE) {\n //Adjust the start index.\n startIndex = count * LOCATIONS_PER_CATEGORY;\n //Call the locaitons view.\n Main.FxmlLoader(LOCATIONS_PATH);\n }\n //Otherwise increment count and check the next index recursively.\n else {\n count++;\n loopCategories();\n }\n }\n }", "@Override\n protected void onOk(Category category) {\n if (getPart().getCategory() != null) {\n getCurrentConversation().getEntityManager().detach(getPart().getCategory());\n }\n\n getPart().setCategory(category);\n messageUtil.infoEntity(\"status_created_ok\", category);\n }", "void success(String category);", "@Override\n public void onCategoryStatusChanged(@CategoryInt int category, @CategoryStatus int status) {\n assert status != CategoryStatus.ALL_SUGGESTIONS_EXPLICITLY_DISABLED;\n\n // If the category was blacklisted, we note that there might be new content to show.\n mBlacklistedCategories.remove(category);\n\n // If there is no section for this category there is nothing to do.\n if (!mSections.containsKey(category)) return;\n\n switch (status) {\n case CategoryStatus.NOT_PROVIDED:\n // The section provider has gone away. Keep open UIs as they are.\n return;\n\n case CategoryStatus.CATEGORY_EXPLICITLY_DISABLED:\n // Need to remove the entire section from the UI immediately. If the section is\n // expandable, we may add the section back for displaying the header.\n removeSection(mSections.get(category));\n maybeAddSectionForHeader(category);\n return;\n\n case CategoryStatus.LOADING_ERROR:\n // Need to remove the entire section from the UI immediately.\n removeSection(mSections.get(category));\n return;\n\n case CategoryStatus.AVAILABLE_LOADING:\n case CategoryStatus.AVAILABLE:\n case CategoryStatus.INITIALIZING:\n mSections.get(category).setStatus(status);\n return;\n }\n assert false : status;\n }", "@Override\n\t\tprotected void onPostExecute(List<Category> categories) {\n\t\t\tsuper.onPostExecute(categories);\n\t\t\t\n\t\t\tLog.d(Constants.AppName, \"CategoryActivity->GetCategories->onPostExecute\");\n\t\t\t\n\t\t\tListView listView = (ListView) findViewById(R.id.listViewCategories);\n\t\t\tCategoriesAdapter categoriesAdapter = new CategoriesAdapter(categories);\n\t\t\tlistView.setAdapter(categoriesAdapter);\n\t\t}", "public void fetchCategories(final IViewCallback<JSONObject> callback) {\n Payload payload = new Payload();\n payload.add(\"key\", \"ajkT14Asdfe526fasdfJKCckecsdps\");\n payload.add(\"command\", \"fetch_categories\");\n\n Request request = RequestFactory.createRequest(\n HttpMethod.POST, \"http://stage.overboxd.com/index.php/generalqcapi\", null, payload, null, 60000, null, null);\n\n VolleyQueueUtils.getGeneralRequestQueue().add(new VolleyStringRequest(request, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n try {\n\n HttpResponse<JSONObject> httpResponse = new HttpResponse<>(\n new HttpResponseStatus(),\n new JSONObject(response)\n );\n\n notifyResponse(httpResponse, callback);\n\n } catch (JSONException e) {\n Log.d(\"Tag\",\"fetchcategory mein prob\");\n\n\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n }));\n }", "public void waitForCategorytoLoad() throws Exception {\n\t\twaitForJavascripttoLoad();\n\t}", "private void loadCatalog() {\n try {\n log.info(\"Attempting to retrieve CDS Hooks catalog from \" + discoveryEndpoint + \"...\");\n ThreadUtil.getApplicationThreadPool().execute(createThread());\n } catch (Exception e) {\n log.error(\"Error attempting to retrieve CDS Hooks catalog from \" + discoveryEndpoint, e);\n retry();\n }\n }", "private void populateCategories() {\n\n AsyncHttpClient client = new AsyncHttpClient();\n client.addHeader(\"Authorization\", \"Token token=\" + user.getToken().getAccess_token());\n client.get(LoginActivity.API_ROOT + \"events/\" + currEvent.getId() + \"/categories\",\n new BaseJsonHttpResponseHandler<Category[]>() {\n @Override\n public void onSuccess(int statusCode, Header[] headers, String rawJsonResponse,\n Category[] response) {\n categories_lv = (ListView) findViewById(R.id.categories_lv);\n// categoriesArr = response;\n\n // Make the first Category as \"All\" so that all teams can be shown\n // All retrieved categories will be put after \"All\"\n categoriesArr = new Category[response.length + 1];\n categoriesArr[0] = new Category(0, currEvent.getId(), \"All\", null, 0, null,\n teamsArr);\n System.arraycopy(response, 0, categoriesArr, 1, response.length);\n\n categories_lv.setAdapter(new CategoryAdapter(SelectionActivity.this,\n categoriesArr));\n categories_lv.setOnItemClickListener(new CategoryClickListener());\n\n Log.d(\"GET CATEGORIES\", \"success\");\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, Throwable error,\n String rawJsonData, Category[] errorResponse) {\n Log.d(\"GET CATEGORIES\", \"failure\");\n }\n\n @Override\n protected Category[] parseResponse(String rawJsonData, boolean isFailure)\n throws Throwable {\n\n if (!isFailure) {\n // Need to extract array from the first/outer JSON object\n JSONArray teamsJSONArr = new JSONObject(rawJsonData)\n .getJSONArray(\"event_categories\");\n return new Gson().fromJson(teamsJSONArr.toString(), Category[].class);\n } else return null;\n }\n });\n }", "private void loadCategories() {\n // adapter that show data (View Holder with data )in Recycler View\n adapter=new FirebaseRecyclerAdapter<Category, CategoryViewHolder>(\n Category.class,\n R.layout.category_layout,\n CategoryViewHolder.class,\n categories) {\n @Override\n protected void populateViewHolder(CategoryViewHolder viewHolder, final Category model, int position) {\n // set data in View Holder\n viewHolder.name.setText(model.getName());\n Picasso.with(getActivity()).load(model.getImage()).into(viewHolder.image);\n // action View Holder\n viewHolder.setItemClickListener(new ItemClickListener() {\n // method that i create in interface and put it in action of click item in category view holder (to use position )\n @Override\n public void onClick(View view, int position, boolean isLongClick) {\n //get category id from adapter and set in Common.CategoryId\n Common.categoryId=adapter.getRef(position).getKey(); // 01 or 02 or 03 ..... of category\n Common.categoryName=model.getName(); // set name of category to Common variable categoryName\n startActivity(Start.newIntent(getActivity()));// move to StartActivity\n\n }\n });\n\n }\n };\n adapter.notifyDataSetChanged(); //refresh data when changed\n list.setAdapter(adapter); // set adapter\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tcp.mostraGestioCategories();\n\t\t\t}", "private void loadData() {\r\n\t\talert(\"Loading data ...\\n\");\r\n \r\n // ---- categories------\r\n my.addCategory(new Category(\"1\", \"VIP\"));\r\n my.addCategory(new Category(\"2\", \"Regular\"));\r\n my.addCategory(new Category(\"3\", \"Premium\"));\r\n my.addCategory(new Category(\"4\", \"Mierder\"));\r\n \r\n my.loadData();\r\n \r\n\t }", "@Override\n public CommandResult execute() {\n if (exceedLengthLimit()) {\n return new CommandResult(MESSAGE_CATEGORY_EXCEED_LIMIT);\n }\n try {\n Module parentModule = DirectoryTraverser.getModuleDirectory(moduleCode);\n Category toAdd = new Category(parentModule, categoryName, categoryPriority);\n parentModule.getCategories().add(toAdd);\n StorageManager.setIsSave();\n return new CommandResult(messageAddCategorySuccess(categoryName));\n } catch (ModuleManager.ModuleNotFoundException e) {\n return new CommandResult(MESSAGE_MODULE_NOT_FOUND);\n } catch (CategoryManager.DuplicateCategoryException e) {\n return new CommandResult(MESSAGE_DUPLICATE_CATEGORY);\n } catch (IncorrectDirectoryLevelException e) {\n return new CommandResult(MESSAGE_INCORRECT_DIRECTORY_LEVEL);\n }\n }", "@Override\n public void run() {\n CategoryDao dao = INSTANCE.categoryDao();\n dao.deleteAll();\n\n dao.insert(new Category(0, \"Eating Out\", 0));\n dao.insert(new Category(1, \"Groceries\", 1));\n dao.insert(new Category(2, \"Entertainment\", 2));\n dao.insert(new Category(3, \"Fuel\", 3));\n dao.insert(new Category(4, \"Gifts\", 4));\n dao.insert(new Category(5, \"Trips\", 5));\n dao.insert(new Category(6, \"Car\", 6));\n dao.insert(new Category(7, \"Clothes\", 7));\n dao.insert(new Category(8, \"Haircut\", 8));\n dao.insert(new Category(9, \"Home Improvement\", 9));\n }", "public interface ICateListModel {\n void loadData(Context context, OnCompleteListener<CategoryGroupBean[]> listener);\n void loadData(Context context, int parentId, OnCompleteListener<CategoryChildBean[]> listener);\n}", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tvalidateCategory(myCategory);\n\t\t\t\t}", "public controladorCategorias() {\r\n }", "@Override\n public void onDataNotAvailable() {\n if (!categoriesView.isActive()) {\n return;\n }\n categoriesView.showError(null, \"Error loading data\");\n }", "@Override\n public void updateCategories(List<String> categories) {\n //Update the Category Spinner with the new data\n mCategorySpinnerAdapter.clear();\n //Add the Prompt as the first item\n categories.add(0, mSpinnerProductCategory.getPrompt().toString());\n mCategorySpinnerAdapter.addAll(categories);\n //Trigger data change event\n mCategorySpinnerAdapter.notifyDataSetChanged();\n\n if (!TextUtils.isEmpty(mCategoryLastSelected)) {\n //Validate and Update the Category selection if previously selected\n mPresenter.updateCategorySelection(mCategoryLastSelected, mCategoryOtherText);\n }\n }", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tsuper.run();\n\t\t\t\t\t\tTakeMyNotesRequest request = new TakeMyNotesRequest(getApplicationContext());\n\t\t\t\t\t\tString result = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tresult = request.getCategory();\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t} catch (TimeoutException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (result == null || result.equals(\"\")) {\n\t\t\t\t\t\t\thandler.sendEmptyMessage(3);\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\ttempModel = new ArrayList<CategoryItem>();\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\ttempModel = new Parse().GetCategory(result);\n\t\t\t\t\t\t\t\tApplicationData.SetCategoryList(tempModel);\n\t\t\t\t\t\t\t} catch (JsonSyntaxException e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (tempModel != null) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t\tIntent intent = new Intent(SelectRoleActivity.this,\n\t\t\t\t\t\t\t\t\t\tCategoryActivity.class);\n\t\t\t\t\t\t\t\tintent.putExtra(\"tempModel\", (Serializable)tempModel);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\thandler.sendEmptyMessage(1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "public void loadBooksOfCategory(){\n long categoryId=mainActivityViewModel.getSelectedCategory().getMcategory_id();\n Log.v(\"Catid:\",\"\"+categoryId);\n\n mainActivityViewModel.getBookofASelectedCategory(categoryId).observe(this, new Observer<List<Book>>() {\n @Override\n public void onChanged(List<Book> books) {\n if(books.isEmpty()){\n binding.emptyView.setVisibility(View.VISIBLE);\n }\n else {\n binding.emptyView.setVisibility(View.GONE);\n }\n\n booksAdapter.setmBookList(books);\n }\n });\n }", "private void initialiseCategories() {\n\t\t_nzCategories = BashCmdUtil.bashCmdHasOutput(\"ls categories/nz\");\n\t\t_intCategories = BashCmdUtil.bashCmdHasOutput(\"ls categories/international\");\n\t}", "public void newCategory() {\n btNewCategory().push();\n }", "@Override\n protected void onSelected(Category category) {\n setSelectedCategory(category);\n messageUtil.infoEntity(\"status_selected_ok\", getPart().getCategory());\n }", "private void getCategoryList() {\n jsonArray = dataBaseHelper.getCategoriesFromDB();\n if (jsonArray != null && jsonArray.length() > 0) {\n rvCategories.setVisibility(View.VISIBLE);\n setupCategoryListAdapter(jsonArray);\n }else {\n rvCategories.setVisibility(View.GONE);\n Toast.makeText(getActivity(), Constants.ERR_NO_CATEGORY_FOUND, Toast.LENGTH_SHORT).show();\n }\n }", "public void LoadTexts(String idCategory, String nameCategory, String imageCategory) {\n textViewCategory.setText(nameCategory);\n Picasso.with(getActivity())\n .load(imageCategory)\n .error( R.drawable.logo_circular )\n .placeholder( R.drawable.logo_circular )\n .into( imageViewCategory );\n LoadSubcategory(idCategory);\n LoadProducts(idCategory);\n }", "@Override\n protected ArrayList<Categorie> doInBackground(String... urls) {\n Log.i(\"smart\", \"DoInBackground\");\n ArrayList<Categorie> categories = CategorieSQL.selectAll();\n return categories;\n }", "private void lanzarListadoCategorias() {\n\t\tIntent i = new Intent(this, ListCategorias.class);\n\t\tstartActivity(i);\n\t\t\n\t}", "void getCategories(Callback activity){\n this.activity = activity;\n String url = \"https://resto.mprog.nl/categories\";\n\n RequestQueue queue = Volley.newRequestQueue(context);\n try {\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(url, null, this, this);\n queue.add(jsonObjectRequest);\n }\n catch (Exception error){\n\n // Return an error message if the request is not succesfull\n Log.e(\"Request\", error.getMessage());\n }\n }", "@Override\n public void gotCategories(ArrayList<String> categories) {\n ArrayAdapter<String> categoryAdapter = new ArrayAdapter<>(this,\n android.R.layout.simple_list_item_1 , categories);\n categoriesListView.setAdapter(categoryAdapter);\n }", "Collection</* IInstallableUnit */?> publishCategories( File categoryDefinition )\n throws FacadeException, IllegalStateException;", "@Override\n\tpublic void dispatchBeforeFinish() {\n\t\t\n\t}", "@Override\n public void onSuccess() {\n Toast.makeText(context, \"Successfully deleted category and all items\", Toast.LENGTH_SHORT).show();\n //deleteCategory(context, category);\n //realm.close();\n }", "public interface CategoryDataSource\n{\n int PEOPLE_TYPE = 0;\n int FILMS_TYPE = 1;\n int PLANETS_TYPE = 2;\n int SPECIES_TYPE = 3;\n int STARSHIPS_TYPE = 4;\n int VEHICLES_TYPE = 5;\n\n interface LoadCategoriesCallback {\n void onCategoriesLoaded(List<Category> categories);\n void onDataNotAvailable();\n }\n void loadCategories(LoadCategoriesCallback callback);\n\n interface CategoryTypeCallback {\n void onCategoryType(Category category);\n void onCategoryNotFound();\n }\n void obtainCategoryType(DataObject dataobject, CategoryTypeCallback callback);\n}", "private void catDetected(Boolean cat) {\n if (cat && getArmingStatus() == ArmingStatus.ARMED_HOME) {\n setAlarmStatus(AlarmStatus.ALARM);\n } else if (!cat && getSensorsState()) {\n setAlarmStatus(AlarmStatus.ALARM);\n } else {\n setAlarmStatus(AlarmStatus.NO_ALARM);\n }\n\n statusListeners.forEach(sl -> sl.catDetected(cat));\n }", "public interface IActivityCategoryView {\n void getMusicList(FileModel fileModel);\n void onStartLoadMusicList();\n void onCompletLoadMusicList();\n void onLoadMusicError(String er);\n}", "@Test\n public void testGetCategoriesAction() throws ClientException, IOException, ProcessingException {\n CloudResponse response = this.actions.getCategoriesAction(\"{sort}\", -1, -1, \"{type}\", -1);\n List<Integer> expectedResults = Arrays.asList(200);\n LOG.info(\"Got status {}\", response.getStatusLine());\n Assert.assertTrue(expectedResults.contains(response.getStatusLine().getStatusCode()));\n\n if(response.getStatusLine().getStatusCode() == 200) {\n this.actions.checkResponseJSONSchema(\"#/definitions/PagedResponseCategory\", response.getContent());\n }\n \n }", "private void loadInitialTree() {\n navTreeWidget.addItem( \"Please wait...\" );\n DeferredCommand.addCommand(new Command() {\n\t\t\tpublic void execute() {\n\t\t service.loadChildCategories( \"/\",\n\t\t new GenericCallback() {\n\n\n\t\t public void onSuccess(Object result) {\n\t\t selectedPath = null;\n\t\t navTreeWidget.removeItems();\n\n\t\t TreeItem root = new TreeItem();\n\t\t root.setHTML(\"<img src=\\\"images/desc.gif\\\"/>\");\n\t\t navTreeWidget.addItem(root);\n\n\t\t String[] categories = (String[]) result;\n\n\t\t if (categories.length == 0) {\n\t\t showEmptyTree();\n\t\t } else {\n\t\t hideEmptyTree();\n\t\t }\n\t\t for ( int i = 0; i < categories.length; i++ ) {\n\t\t TreeItem it = new TreeItem();\n\t\t it.setHTML( \"<img src=\\\"images/category_small.gif\\\"/>\" + categories[i] );\n\t\t it.setUserObject( categories[i] );\n\t\t it.addItem( new PendingItem() );\n\t\t root.addItem( it );\n\t\t }\n\n\t\t root.setState(true);\n\t\t }\n\n\n\n\t\t } );\n\t\t\t}}\n );\n\n }", "private static void menuCategoria() throws Exception {//Inicio menuCategoria\r\n byte opcao;\r\n boolean encerrarPrograma = false;\r\n Integer[] listaC = null;\r\n do {\r\n System.out.println(\r\n \"\\n\\t*** MENU DE CATEGORIAS ***\\n\"\r\n + \"0 - Adicionar categoria\\n\"\r\n + \"1 - Remover categoria\\n\"\r\n + \"2 - Listar categorias cadastradas\\n\"\r\n + \"3 - Listar produtos cadastrados em uma categoria\\n\"\r\n + \"4 - Sair\"\r\n );\r\n System.out.print(\"Digite a opção: \");\r\n opcao = read.nextByte();\r\n System.out.println();\r\n switch (opcao) {\r\n case 0:\r\n adicionarCategoria();\r\n break;\r\n case 1:\r\n removerCategoria();\r\n break;\r\n case 2:\r\n listaC = listaCategoriasCadastradas();\r\n if (listaC == null) {\r\n System.out.println(\"Não ha categorias cadastradas!\");\r\n }\r\n break;\r\n case 3:\r\n consultaCategoria();\r\n break;\r\n case 4:\r\n encerrarPrograma = true;\r\n break;\r\n default:\r\n System.out.println(\"Opcao invalida!\\n\");\r\n Thread.sleep(1000);\r\n break;\r\n }\r\n } while (!encerrarPrograma);\r\n }", "public void selectCategory() {\n\t\t\r\n\t}", "public abstract void init_actions() throws Exception;", "@Override\r\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tdbHelper.InsertCategory(listResult);\r\n\t\t\t\t\t\t\tMessage msg = Message.obtain();\r\n\t\t\t\t\t\t\tmsg.obj = \"CategorySave\";\r\n\t\t\t\t\t\t\thandler.sendMessage(msg);\r\n\t\t\t\t\t\t}", "void onLoaderFinished();", "private void listadoCategorias() {\r\n sessionProyecto.getCategorias().clear();\r\n sessionProyecto.setCategorias(itemService.buscarPorCatalogo(CatalogoEnum.CATALOGOPROYECTO.getTipo()));\r\n }", "private void handleActionGetCategory(String id) {\n\n Log.i(\"getcountry\",\"Thread service name : \"+Thread.currentThread().getName());\n URL url = null;\n\n try {\n\n url = new URL(\"http://binouze.fabrigli.fr/categories/\"+id+\".json\");\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setRequestMethod(\"GET\");\n conn.connect();\n\n if(HttpURLConnection.HTTP_OK == conn.getResponseCode()){\n copyInputStreamToFile(conn.getInputStream(), new File(getCacheDir(),\"category.json\"));\n Log.d(\"getcategory\",\"Country json downloaded\");\n }\n else{\n Log.d(\"getcategory\",\"Country json NOT downloaded. HttpURLConnection.HTTP_OK = \"+HttpURLConnection.HTTP_OK+ \" et conn.getResponseCode() = \"+conn.getResponseCode());\n }\n\n //lance un intent pour signaler l'update\n LocalBroadcastManager.getInstance(this).sendBroadcast(new Intent(SecondeActivity.CATEGORY_UPDATE));\n\n }catch(MalformedURLException e){\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "void actionCompleted(ActionLookupData actionLookupData);", "void onFinishedLoading();", "public void loadCategoryAdapter() {\n categoryAdapter = new CategoryAdapter(context, sectionItemsWithHeaders);\n listView.setAdapter(categoryAdapter);\n }", "public static void showCategories() throws IOException {\n Main.FxmlLoader(CATEGORY_PATH);\n }", "public void executeAction() {\n classifier.addFeature(operation);\n }", "public void setCategories(Categories categories) {\n this.categories = categories;\n }", "public com.google.common.util.concurrent.ListenableFuture<io.reactivesw.catalog.grpc.CategoryList> getCategories(\n io.reactivesw.catalog.grpc.Empty request) {\n return futureUnaryCall(\n getChannel().newCall(METHOD_GET_CATEGORIES, getCallOptions()), request);\n }", "@GetMapping(\"/categoriesfu\")\n public synchronized List<Category> getAllCategories() {\n log.debug(\"REST request to get a page of Categories\");\n //fu\n final String user =SecurityUtils.getCurrentUserLogin().get();\n final UserToRestaurant userToRestaurant=userToRestaurantRepository.findOneByUserLogin(user);\n final Restaurant restaurant=userToRestaurant.getRestaurant();\n return categoryRepository.findAllByRestaurant(restaurant);\n }", "@Override\n public void onCategorySelected(Category category) {\n productList.clear();\n\n ArrayList<ProductHeader> tempList;\n if (notSelectedYet) {\n tempList = allProducts;\n } else if (isMaleSelected) {\n tempList = maleList;\n } else {\n tempList = femaleList;\n }\n\n for (ProductHeader product : tempList) {\n if (product.getCategory() == category.getId()) {\n productList.add(product);\n }\n }\n\n categoryText.setText(category.getName());\n\n checkAvailability();\n productAdapter.notifyDataSetChanged();\n }", "@Override\n protected void onPostExecute(ArrayList<Categorie> categories) {\n LinearLayout ln = findViewById(R.id.listMainCategories);\n for (Categorie c : categories) {\n CheckBox checkBox = new CheckBox(ln.getContext());\n checkBox.setText(c.getId() + \". \" + c.getNom());\n checkBox.setTextColor(getResources().getColor(R.color.colorText));\n ln.addView(checkBox);\n }\n }", "private void listCategory() {\r\n \r\n cmbCategoryFilter.removeAllItems();\r\n cmbCategory.removeAllItems();\r\n \r\n cmbCategoryFilter.addItem(\"All\");\r\n for (Category cat : Category.listCategory()) {\r\n cmbCategoryFilter.addItem(cat.getName());\r\n cmbCategory.addItem(cat.getName());\r\n }\r\n \r\n }", "public interface OnLoadDeputadosHasFinished {\n void onDeputadosFinishedLoading(ArrayList <Deputado> deputados);\n}", "@Override\n\tpublic void doAfterCompose(Component comp) throws Exception {\n\t\tsuper.doAfterCompose(comp);\n\n\t\tbuscarCategoriasDosServicos();\n\t}", "public synchronized static void loadCategoryCatch(GoodsService goodsService) {\n\tList<CategoryForShow> tempList = goodsService.selectShowCategory();\r\n\tCache t= new Cache();\r\n\tt.setValue(tempList);\r\n\tt.setTimeOut(System.currentTimeMillis()+3600000);\r\n\tCacheManager.clearOnly(\"category\");\r\n\tCacheManager.putCache(\"category\", t);\r\n\t//t=null;\r\n}", "@Override\r\n public void onSuccess(JSONArray result)\r\n {\r\n if(dataBase.getCategoriesCount() == 0)\r\n {\r\n dataBase.addAllCategoriesToTable(result);\r\n }\r\n else\r\n dataBase.updateAllCategoriesInTable(result);\r\n }", "public void getRemoteCategories() {\n //check for connection if true go to apihelper and get model else check if these model cached so get it\n url = getAllCategoriesWithoutItems;\n params = new HashMap<>();\n params.put(param_securitykey, param_securitykey);\n if (ApiHelper.checkInternet(mContext)) {\n mApiHelper.getCategories(mIRestApiCallBack, true, url, params);\n } else {\n //Toast.makeText(mContext, mContext.getString(R.string.noInternetConnection), Toast.LENGTH_LONG).show();\n mIRestApiCallBack.onNoInternet();\n CacheApi cacheApi = loadCacheData(url, params);\n mSqliteCallBack.onDBDataObjectLoaded(cacheApi);\n }\n\n }", "void updateCategory(Category category);", "void updateCategory(Category category);", "private void getMenu() {\n compositeDisposable.add(mcApi.getMenu()\n .subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(new Consumer<List<Category>>() {\n @Override\n public void accept(List<Category> categories) throws Exception {\n displayMenu(categories);\n }\n\n }));\n }", "private void onCamelCatalogReady() {\n // Force to reload the catalog\n this.kamelets = null;\n }", "public final void readCategoria() {\n cmbCategoria.removeAllItems();\n cmbCategoria.addItem(\"\");\n categoryMapCategoria.clear();\n AtividadePreparoDAO atvprepDAO = new AtividadePreparoDAO();\n for (AtividadePreparo atvprep : atvprepDAO.readMotivoRetrabalho(\"Categoria\")) {\n Integer id = atvprep.getMotivo_retrabalho_id();\n String name = atvprep.getMotivo_retrabalho();\n cmbCategoria.addItem(name);\n categoryMapCategoria.put(id, name);\n }\n }", "public void onFinishFetching() {\n\t\t\t\thideLoading();\n\t\t\t\tUiApplication.getUiApplication().invokeLater(new Runnable() {\n\t\t\t\t\t\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tUiApplication.getUiApplication().pushScreen(new HomeScreen());\n\t\t\t\t\t}\n\t\t\t\t});\t\n\t\t\t}", "boolean hasCategory();", "@Override\r\n\tpublic void initActions() {\n\t\t\r\n\t}", "public Categories_Adapter(List<Categorie> categories, Context context, IOnclickCategories listener) {\n this.categorieList = categories;\n this.context = context;\n this.listener = listener;\n }", "@OnClick(R.id.shop_by_category_layout)\n public void onCategoryLayoutClicked() {\n if (myListener != null) {\n myListener.changeToCategoriesMenu();\n }\n }", "@GET(\"/empresa/listaCategoria\")\n public void listacategoria(Callback<List<Categoria>> callback);", "public final void entryRuleCategoria() throws RecognitionException {\n try {\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:201:1: ( ruleCategoria EOF )\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:202:1: ruleCategoria EOF\n {\n before(grammarAccess.getCategoriaRule()); \n pushFollow(FollowSets000.FOLLOW_ruleCategoria_in_entryRuleCategoria361);\n ruleCategoria();\n\n state._fsp--;\n\n after(grammarAccess.getCategoriaRule()); \n match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleCategoria368); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "public interface ActivityCategoryView {\n void getCategory();\n void setCategory(List<Category> categories);\n void saveSuccess(Category category);\n void updateSuccess(Category category);\n void deleteSuccess(Category category);\n void error(String msg);\n}", "@Override\n\tpublic void registerListenerForCategory(String categoryId) throws Exception {\n\n\t}", "@Override public void handle(ActionEvent e) {\n\t\t\t\tif(!setConfiguration()) return;\r\n\t\t\t\t//Clear the concept tableview\r\n\t\t\t\tm_Conceptsdata.clear();\r\n\t\t\t\t//Run the categorization algorithm\r\n\t\t\t\tm_Categorizer.categorize();\r\n\t\t\t\t//Refresh the dataset table\r\n\t\t\t\tm_DatasetTable.refresh();\r\n\t\t\t\t//Refresh statistics window\r\n\t\t\t\tm_StatisticsWindow.refresh();\r\n\t\t\t\t//Update the filter choicebox\r\n\t\t\t\tupdateFilterChoiceBox();\r\n\t\t\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\r\n\t\tif(!startAsync )\r\n\t\t{\r\n\t\t\tstartAsync = true;\r\n\t\t\tnew GetCategoryNameByCatId(StaticVariables.subCategoryId,parentId).execute();\r\n\t\t}\r\n\t}", "public void fetchMore() {\n List<SuggestionsSection> supportingSections = new LinkedList<>();\n\n for (SuggestionsSection section : mSections.values()) {\n if (section.getCategoryInfo().isFetchMoreSupported()) {\n supportingSections.add(section);\n }\n }\n\n if (supportingSections.size() > 1) {\n assert false : \"SectionList.fetchMore - Multiple supporting sections: \"\n + getCategoriesForDebugging();\n } else if (supportingSections.size() == 0) {\n Log.d(TAG, \"SectionList.fetchMore - No supporting sections: %s\",\n getCategoriesForDebugging());\n } else if (getChildren().get(getChildren().size() - 1) != supportingSections.get(0)) {\n Log.d(TAG, \"SectionList.fetchMore - Supporting section not at end: %s\",\n getCategoriesForDebugging());\n } else if (supportingSections.get(0).isLoading()) {\n Log.d(TAG, \"SectionList.fetchMore - Supporting section is already loading.\");\n } else {\n // Fetch more is called when the user does not explicitly trigger a fetch (eg, the user\n // scrolls down). In this case we don't inform the user of the outcomes, hence the null\n // parameters.\n supportingSections.get(0).fetchSuggestions(null, null);\n }\n }", "private void buildCategories() {\n List<Category> categories = categoryService.getCategories();\n if (categories == null || categories.size() == 0) {\n throw new UnrecoverableApplicationException(\n \"no item types found in database\");\n }\n\n Map<Category, List<Category>> categoriesMap = new HashMap<Category, List<Category>>();\n for (Category subCategory : categories) {\n Category parent = subCategory.getParentCategory();\n if (categoriesMap.get(parent) == null) {\n categoriesMap.put(parent, new ArrayList<Category>());\n categoriesMap.get(parent).add(subCategory);\n } else {\n categoriesMap.get(parent).add(subCategory);\n }\n }\n\n this.allCategories = categories;\n this.sortedCategories = categoriesMap;\n }", "private void addNewCategory() {\n Utils.replaceFragment(getActivity(),new AddCategoriesFragment());\n }", "public interface ICollectionActions {\n void Async();\n\n void setAdapter(RecyclerView recyclerView, FragmentActivity context);\n}", "private void loadItems() {\n CheckItemsActivity context = this;\n makeRestGetRequest(String.format(Locale.getDefault(),\n RestClient.ITEMS_URL, checkId), (success, response) -> {\n if (!success) {\n Log.d(DEBUG_TAG, \"Load items fail\");\n Toast.makeText(context, LOAD_ITEMS_FAIL, Toast.LENGTH_SHORT).show();\n } else {\n try {\n items = ModelsBuilder.buildItemsFromJSON(response);\n // pass loaded items and categories to adapter and set adapter to Recycler View\n itemsListAdapter = new ItemsListAdapter(items, categories, context);\n recyclerView.setAdapter(itemsListAdapter);\n } catch (JSONException e) {\n Log.d(DEBUG_TAG, \"Load items parsing fail\");\n }\n }\n // set loading progress bar to invisible when loading is finished\n progressBar.setVisibility(View.INVISIBLE);\n });\n }", "private void getAnimalCategory() {\n mProgressBar.setVisibility(View.VISIBLE);\n VolleyInvokeWebService volleyClient = new VolleyInvokeWebService(this, VolleyInvokeWebService.JSON_TYPE_REQUEST, this, Request.Method.GET);\n volleyClient.hitWithOutTokenService(Constants.GET_ANIMAL_CATEGORY, null, GET_ANIMAL_CATEGORY_TAG);\n }", "private void renderCategories(){\n int[] arr = {1, 3, 6, 8, 10};\r\n for (int i : arr) requestQueue.add(getDataFromServer(webURL, String.valueOf(i)));\r\n }", "private static void menu() {\n\t\tboolean finished = false;\n\t\tdo {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"If you would like to view a current the movies on the movie list, please type \\\"all\\\" \\nIf you would like to see a list of the initial possible categories, please type \\\"categories\\\" \\n\\nTo search for films by category, please type the category, now\\nTo exit the program, just type \\\"no\\\"\");\n\t\t\tString menAns = read.nextLine();\n\t\t\tif (menAns.equalsIgnoreCase(\"all\")) {\n\t\t\t\tlistFormat();\n\t\t\t} else if (menAns.equalsIgnoreCase(\"categories\") || menAns.equalsIgnoreCase(\"cats\")) {\n\t\t\t\tcatList();\n\t\t\t} else if (menAns.equalsIgnoreCase(\"no\")) {\n\t\t\t\tfinished = true;\n\t\t\t} else {\n\t\t\t\tseachCats(menAns);\n\t\t\t}\n\t\t} while (!finished);\n\n\t}", "@FxThread\n private void onFinishLoading() {\n pluginSystem.getPlugins().stream()\n .filter(EditorPlugin.class::isInstance)\n .map(EditorPlugin.class::cast)\n .forEach(editorPlugin -> editorPlugin.onFinishLoading(pluginSystem));\n }", "void addCategory(Category category);" ]
[ "0.6930542", "0.6833762", "0.65541136", "0.6174039", "0.6111528", "0.6046198", "0.59554684", "0.59142643", "0.59072435", "0.5873806", "0.5711403", "0.57079023", "0.5684773", "0.5646268", "0.5609192", "0.55742055", "0.55699867", "0.54209876", "0.5408436", "0.53906685", "0.5374907", "0.5361123", "0.53606", "0.5349608", "0.5344709", "0.53369284", "0.53093636", "0.5296234", "0.5293812", "0.5272188", "0.5241753", "0.5240254", "0.52328956", "0.5228813", "0.5227887", "0.52143514", "0.51974815", "0.51907194", "0.5166184", "0.516089", "0.5131013", "0.5127529", "0.51087856", "0.5105617", "0.5098628", "0.5076735", "0.50700504", "0.50653994", "0.506258", "0.5057271", "0.50509304", "0.5029846", "0.5025034", "0.50102633", "0.49986142", "0.4987983", "0.49873203", "0.4979564", "0.49688345", "0.49602315", "0.49541423", "0.49502584", "0.4944624", "0.49403167", "0.493722", "0.49311733", "0.49189138", "0.49141908", "0.49082315", "0.49062", "0.49035987", "0.49021864", "0.489579", "0.48928848", "0.48882532", "0.48882532", "0.4887737", "0.48782098", "0.48756617", "0.4869334", "0.4867049", "0.4866325", "0.48656762", "0.48646712", "0.484877", "0.48478308", "0.48415872", "0.48389795", "0.48288426", "0.48271555", "0.4825151", "0.48250782", "0.48176703", "0.480983", "0.48080826", "0.47969398", "0.47909904", "0.4772782", "0.4767368", "0.4764548" ]
0.73432785
0
Processes requests for both HTTP GET and POST methods.
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); try (PrintWriter out = response.getWriter()) { out.println("<!DOCTYPE html>"); out.println("<html>"); out.println("<head>"); out.println("<title>Servlet CommentServlet</title>"); out.println("</head>"); out.println("<body>"); out.println("<h1>" + request.getParameter("profile_id") + "</h1>"); out.println("</body>"); out.println("</html>"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {\n final String method = req.getParameter(METHOD);\n if (GET.equals(method)) {\n doGet(req, resp);\n } else {\n resp.setStatus(HttpServletResponse.SC_METHOD_NOT_ALLOWED);\n }\n }", "private void processRequest(HttpServletRequest request, HttpServletResponse response) {\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n // only POST should be used\n doPost(request, response);\n }", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\nSystem.err.println(\"=====================>>>>>123\");\n\t\tString key=req.getParameter(\"method\");\n\t\tswitch (key) {\n\t\tcase \"1\":\n\t\t\tgetProvinces(req,resp);\n\t\t\tbreak;\n\t\tcase \"2\":\n\t\t\tgetCities(req,resp);\t\t\t\n\t\t\tbreak;\n\t\tcase \"3\":\n\t\t\tgetAreas(req,resp);\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tprocess(req, resp);\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\r\n\t\tdoPost(req, resp);\r\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\n\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\r\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n \tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n \t\t\tthrows ServletException, IOException {\n \t\tdoPost(req, resp);\n \t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t\tdoGet(req, resp);\r\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\r\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n processRequest(request, response);\n }", "@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tprocessRequest(request, response);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tprocessRequest(request, response);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t\t\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\n\t\tprocess(req,resp);\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }" ]
[ "0.7004024", "0.66585696", "0.66031146", "0.6510023", "0.6447109", "0.64421695", "0.64405906", "0.64321136", "0.6428049", "0.6424289", "0.6424289", "0.6419742", "0.6419742", "0.6419742", "0.6418235", "0.64143145", "0.64143145", "0.6400266", "0.63939095", "0.63939095", "0.639271", "0.63919044", "0.63919044", "0.63903785", "0.63903785", "0.63903785", "0.63903785", "0.63887113", "0.63887113", "0.6380285", "0.63783026", "0.63781637", "0.637677", "0.63761306", "0.6370491", "0.63626", "0.63626", "0.63614637", "0.6355308", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { }
{ "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.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", "0.6076905", "0.6041205", "0.6024897", "0.60200036", "0.59985113", "0.5967729", "0.5967729", "0.5965808", "0.5949083", "0.5941002", "0.59236866", "0.5909713", "0.59030116", "0.589475", "0.58857024", "0.58837134", "0.586915", "0.58575684", "0.5850424", "0.5847001", "0.5824116", "0.5810248", "0.5809659", "0.58069366", "0.58069366", "0.5800507", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.57900196", "0.5790005", "0.578691", "0.578416", "0.578416", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5761079", "0.57592577", "0.57592577", "0.5749888", "0.5749888", "0.5749888", "0.5748457", "0.5733414", "0.5733414", "0.5733414", "0.57209575", "0.57154554", "0.57149583", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.571194", "0.57043016", "0.56993437", "0.5696782", "0.5687825", "0.5677794", "0.5673577", "0.5672046", "0.5669512", "0.5661156", "0.56579345", "0.5655569", "0.5655569", "0.5655569", "0.56546396", "0.56543446", "0.5653163", "0.56502634" ]
0.0
-1
endregion Variables region Constructor
public AccountManager(String transactionsFileName, String checkingAccountFileName, String savingsAccountFileName, String cdAccountFileName, String atmAccountFileName, String creditCardAccountFileName, String termLoanAccountFileName) { accounts = new ArrayList<>(); //Load transactions first so the hash map is built loadTransactions(transactionsFileName); loadCheckingAccounts(checkingAccountFileName); loadSavingsAccounts(savingsAccountFileName); loadCDAccounts(cdAccountFileName); loadATMAccounts(atmAccountFileName); loadCreditCardAccounts(creditCardAccountFileName); loadTermLoanAccounts(termLoanAccountFileName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "public PSRelation()\n {\n }", "private TMCourse() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "public _355() {\n\n }", "public CyanSus() {\n\n }", "private void __sep__Constructors__() {}", "public CSSTidier() {\n\t}", "public Curso() {\r\n }", "public Pitonyak_09_02() {\r\n }", "public JSFOla() {\n }", "public Region() { }", "public Ov_Chipkaart() {\n\t\t\n\t}", "public Region() {\n }", "private Solution() {\n /**.\n * { constructor }\n */\n }", "public Zeffit()\n {\n // TODO: initialize instance variable(s)\n }", "public Soil()\n\t{\n\n\t}", "public Vaccine() {\n\t}", "public Anschrift() {\r\n }", "public Cgg_jur_anticipo(){}", "public C23317d() {\n }", "private CZ()\n {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public Cohete() {\n\n\t}", "public Clade() {}", "public AirAndPollen() {\n\n\t}", "public Pasien() {\r\n }", "public Coche() {\n super();\n }", "public Lanceur() {\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "protected Coord() {\n\t}", "@Override\n\t\tpublic void init() {\n\t\t}", "public RngObject() {\n\t\t\n\t}", "public mapper3c() { super(); }", "public Overview() {\n\t\t// It will work whenever i create object with using no parameter const\n\t\tSystem.out.println(\"This is constructor\");\n\t}", "public Chauffeur() {\r\n\t}", "public Parameters() {\n\t}", "public Orbiter() {\n }", "@Override public void init()\n\t\t{\n\t\t}", "public Supercar() {\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n public void init() {}", "public Carrinho() {\n\t\tsuper();\n\t}", "public Construct() {\n\tprefixes = new StringBuilder();\n\tvariables = new StringBuilder();\n\twheres = new StringBuilder();\n }", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "private Road()\n\t{\n\t\t\n\t}", "public static void __init() {\r\n\t\t__name__ = new str(\"code\");\r\n\r\n\t\t/**\r\n\t\t copyright Sean McCarthy, license GPL v2 or later\r\n\t\t*/\r\n\t\tdefault_0 = null;\r\n\t\tcl_Code = new class_(\"Code\");\r\n\t}", "public Odontologo() {\n }", "private IndexBitmapObject() {\n\t}", "public void init() {\n\t\t \r\n\t\t }", "protected ASTNode() {\n\t\t\n\t}", "@Override\n protected void init() {\n }", "public void init() {\n \n }", "public Local() {\n }", "public Catelog() {\n super();\n }", "@Override\n public void init() {\n }", "private LocalParameters() {\n\n\t}", "public SourceCode() {\n }", "private void init() {\n\n\n\n }", "public CampLease( ) {}", "public SgaexpedbultoImpl()\n {\n }", "public EnsembleLettre() {\n\t\t\n\t}", "public Self__1() {\n }", "public Phl() {\n }", "@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\r\n\tpublic final void init() {\r\n\r\n\t}", "private Node() {\n\n }", "public AntrianPasien() {\r\n\r\n }", "public MethodEx2() {\n \n }", "public TTau() {}", "public Trening() {\n }", "@Override\n public void init() {\n }", "public Tbdtokhaihq3() {\n super();\n }", "private Solution() {\n //constructor\n }", "@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}", "public ContasCorrentes(){\n this(0,\"\",0.0,0.0,0);\n }", "protected Asignatura()\r\n\t{}", "public CSUB45SO() \r\n {\r\n super();\r\n }", "@Override\n void init() {\n }", "public DesastreData() { //\r\n\t}", "public Mannschaft() {\n }", "protected Betaling()\r\n\t{\r\n\t\t\r\n\t}", "public Chick() {\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "public void init(){}", "private NfkjBasic()\n\t\t{\n\t\t\t\n\t\t}", "public BaseParameters(){\r\n\t}", "public void init() {\r\n\t\t// to override\r\n\t}", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "private GeoUtil()\n\t{\n\t}", "public Tigre() {\r\n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "private void init() {\n\n\t}", "private void init() {\n }" ]
[ "0.80695134", "0.7568266", "0.71285135", "0.6998254", "0.69900924", "0.69793737", "0.6933626", "0.6932947", "0.6924543", "0.6846754", "0.6842382", "0.67554855", "0.6739684", "0.673738", "0.67258704", "0.6722215", "0.67212623", "0.67108136", "0.67102057", "0.6698267", "0.6692677", "0.66925246", "0.66900027", "0.66856015", "0.6683173", "0.6682386", "0.667973", "0.66691667", "0.6668247", "0.66607416", "0.66507715", "0.6636702", "0.6620894", "0.6618476", "0.66180396", "0.6613903", "0.6605467", "0.659352", "0.6583609", "0.6577483", "0.6567262", "0.6562916", "0.6561413", "0.65603375", "0.65460086", "0.65441364", "0.6543773", "0.65336007", "0.65238595", "0.6520595", "0.6512696", "0.6509687", "0.65064436", "0.65048194", "0.6497898", "0.6492469", "0.649195", "0.6491349", "0.6491164", "0.6484508", "0.6483251", "0.6482681", "0.6474752", "0.6473181", "0.64702255", "0.6466714", "0.6466714", "0.6466714", "0.6466714", "0.6466714", "0.6462406", "0.6457974", "0.64572245", "0.64525056", "0.6449999", "0.64467275", "0.6446564", "0.6445655", "0.6442228", "0.6438795", "0.6438795", "0.6438795", "0.6435583", "0.64346695", "0.6433937", "0.6432163", "0.64306104", "0.6428108", "0.64264494", "0.64226544", "0.64194477", "0.6415745", "0.6412974", "0.6410108", "0.6406971", "0.64060986", "0.64021474", "0.6399219", "0.63987815", "0.63947344", "0.63928217" ]
0.0
-1
endregion Constructor begin GetCustomerAccounts This gets the customer accounts using the SSN on the account.
public ArrayList<Account> GetCustomerAccounts(String ssn) { ArrayList<Account> result = new ArrayList<>(); for (Account account : accounts) { if (account.getSsn().equals(ssn)) { result.add(account); } } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Account> getAccountsForCustomerId(int customerId);", "public List<Account> getAccounts(String customerName){\n List<Account> accounts = new ArrayList<>();\n try {\n accounts = getAccountsFromFile();\n } catch (Exception e) {\n System.out.println(messageService.unexpectedError(e));\n }\n System.out.println(accounts.stream().filter(a -> a.getCustomerName().equals(customerName))\n .collect(Collectors.toList()));\n return accounts.stream().filter(a -> a.getCustomerName().equals(customerName))\n .collect(Collectors.toList());\n }", "@Override\n public List<Account> getAccounts(Long customerId) {\n return customerDao.getAccounts(customerId);\n }", "public static ArrayList<Citizen> getAccounts()\n\t{\n\t\treturn accounts;\n\t}", "public String allCustomers(){\n String outputString = \"Customer accounts:\"+\"\\n\";\n for(Customer record : bank.getName2CustomersMapping().values()){\n outputString += record.getFullName()+\" \"+record.getAccounts().toString()+\"\\n\";\n }\n return outputString;\n }", "com.google.cloud.channel.v1.Customer getCustomers(int index);", "@Override\n public List<Account> listAccounts() {\n currentCustomer.findAndUpdateAccounts();\n // return list of accounts the customer owns\n return currentCustomer.getAccounts();\n }", "public static ArrayList<CustomerInfoBean> getCutomers_onCash() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name ,sld.payement_option, a.appliance_id, s.salesman_id, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" JOIN appliance a ON e.appliance_id =a.appliance_id \\n\"\r\n\t\t\t\t\t+ \" JOIN salesman s ON e.salesman_id =s.salesman_id \\n\"\r\n\t\t\t\t\t+ \" JOIN customer cs ON e.customer_id = cs.customer_id \\n\"\r\n\t\t\t\t\t+ \" JOIN sold_to sld ON cs.customer_id=sld.customer_id\\n\"\r\n\t\t\t\t\t+ \" JOIN city c ON cs.customer_city=c.city_id\\n\"\r\n\t\t\t\t\t+\r\n\r\n\t\t\t\t\t\" WHERE sld.payement_option=0\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(11);\r\n\t\t\t\tsalesmanId = rs.getInt(12);\r\n\t\t\t\tapplianceName = rs.getString(13);\r\n\t\t\t\tstatus = rs.getInt(14);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}", "public static ArrayList<CustomerInfoBean> getCustomers() {\r\n\t\tSystem.out.println(\"CustomerBAL.get_customers()\");\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, e_status, c_status, state;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tConnection connection = Connect.getConnection();\r\n\t\ttry {\r\n\r\n\t\t\tif (connection != null) {\r\n\t\t\t\t// Begin Stored Procedure Calling -- Jetander\r\n\t\t\t\tCallableStatement prepareCall = connection\r\n\t\t\t\t\t\t.prepareCall(\"{call get_customers()}\");\r\n\t\t\t\tResultSet rs = prepareCall.executeQuery();\r\n\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\tcustomerId = rs.getInt(\"customer_id\");\r\n\t\t\t\t\tcustomerName = rs.getString(\"customer_name\");\r\n\t\t\t\t\tcnicNo = rs.getString(\"customer_cnic\");\r\n\t\t\t\t\tphoneNo = rs.getString(\"customer_phone\");\r\n\t\t\t\t\tdistrict = rs.getString(\"district_name\");\r\n\t\t\t\t\tmonthlyIncome = rs.getString(\"salary_range\");\r\n\t\t\t\t\tgsmNumber = rs.getString(\"appliance_gsmno\");\r\n\t\t\t\t\tstate = rs.getInt(\"appliance_status\");\r\n\t\t\t\t\tsalesmanName = rs.getString(\"salesman_name\");\r\n\r\n\t\t\t\t\tapplianceId = rs.getInt(\"appliance_id\");\r\n\t\t\t\t\tsalesmanId = rs.getInt(\"salesman_id\");\r\n\t\t\t\t\tapplianceName = rs.getString(\"appliance_name\");\r\n\t\t\t\t\te_status = rs.getInt(\"e.status\");\r\n\t\t\t\t\tc_status = rs.getInt(\"cs.status\");\r\n\t\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\t\t\t\t\tbean.setApplianceStatus(state);\r\n\t\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\t\tbean.setStatus(e_status);\r\n\t\t\t\t\tbean.setCustomerStatus(c_status);\r\n\t\t\t\t\tcustomerList.add(bean);\r\n\t\t\t\t\t// End Stored Procedure Calling -- Jetander\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (connection != null) {\r\n\t\t\t\tconnection.close();\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}", "java.util.List<com.google.cloud.channel.v1.Customer> \n getCustomersList();", "public static List<Customer> getAllCustomers() {\r\n\t\tList<Customer> customerList = new ArrayList<Customer>();\r\n\t\tConnection conn = ConnectionFactory.getConnection();\r\n\r\n\t\tString query = \"SELECT customerUuid, customerType, customerName, personKey, addressKey FROM Customer\";\r\n\r\n\t\tPreparedStatement ps = null;\r\n\t\tResultSet rs = null;\r\n\t\tCustomer customer = null;\r\n\r\n\t\ttry {\r\n\t\t\tps = conn.prepareStatement(query);\r\n\t\t\trs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tString customerUuid = rs.getString(\"customerUuid\");\r\n\t\t\t\tString customerType = rs.getString(\"customerType\");\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 primaryContact = 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, primaryContact, customerName, address);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcustomer = new CorporateCustomer(customerUuid, primaryContact, customerName, address);\r\n\t\t\t\t}\r\n\t\t\t\tcustomerList.add(customer);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\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} finally {\r\n\t\t\tConnectionFactory.closeConnection(conn, ps, rs);\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}", "public AccountVO getAccountVO(String parameterName, String custcode) {\n\t\t\r\n\t\tString xmlResponse;\t\t\r\n\t\t\r\n\t\tAccountVO accountVO = new AccountVO();\r\n\t\t\t\r\n\t\t//first of all we get the customer id for a custcode\r\n//\t\txmlResponse = CustIdByCustCodeSyncIB.getInstance().process(custcode, this.infobusUrl);\r\n\t\t//then get the generalInfo, packageList and contractList calling the 'BSPMCCQUERY' sevice from infobus\r\n\t\t//note that this service uses customer id3\r\n\t\tlog.debug(getCustomerId(FakeXMLForInfobusTest.CUSTID_BY_CUSTCODE_RESPONSE_XML));\r\n//\t\txmlResponse = ClientInfoSyncIB.getInstance().process(getCustomerId(xmlResponse), this.infobusUrl);\r\n\t\taccountVO.setAccountNumber(custcode);\r\n\t\taccountVO.setGeneralInfo(getGeneralInfo(FakeXMLForInfobusTest.CLIENT_INFO_RESPONSE_XML));\t\t\t\t\t\r\n\t\taccountVO.setContractVOList(getContractList(FakeXMLForInfobusTest.CLIENT_INFO_RESPONSE_XML));\t\t\t\r\n\t\t//then we get the occList calling the 'BSPMOCCQRY' service from infobus\r\n//\t\txmlResponse = OccListSyncIB.getInstance().process(custcode, this.infobusUrl);\r\n\t\taccountVO.setOccList(getOCCList(FakeXMLForInfobusTest.OCC_LIST_RESPONSE_XML));\r\n\t\t//then get the account family structure\t\t\t\t\t\r\n//\t\txmlResponse = AccountStructureSyncIB.getInstance().process(custcode, this.infobusUrl);\r\n\t\taccountVO.setHierarchyStructure(getAccountStructure(FakeXMLForInfobusTest.ACCOUNT_STRUCTURE_RESPONSE_XML));\t\t\t\r\n\r\n\t\treturn accountVO;\r\n\t\t\r\n\t}", "public void listAllCustomers () {\r\n\t\t\r\n customersList = my.resturnCustomers();\r\n\t\t\r\n\t}", "public static List<Customer> getCustomers(){\n \treturn Customer.findAll();\n }", "public CustomerService() {\n\n Customer c1 = new Customer(\"Brian May\", \"45 Dalcassian\", \"[email protected]\", 123);\n Customer c2 = new Customer(\"Roger Taylor\", \"40 Connaught Street\", \"[email protected]\", 123);\n Customer c3 = new Customer(\"John Deacon\", \"2 Santry Avenue\", \"[email protected]\", 123);\n Customer c4 = new Customer(\"Paul McCartney\", \"5 Melville Cove\", \"[email protected]\", 123);\n\n c1.setIdentifier(1);\n c2.setIdentifier(2);\n c3.setIdentifier(3);\n c4.setIdentifier(4);\n customers.add(c1);\n customers.add(c2);\n customers.add(c3);\n customers.add(c4);\n\n c1.addAccount(new Account(101));\n c2.addAccount(new Account(102));\n c2.addAccount(new Account(102));\n c3.addAccount(new Account(103));\n c3.addAccount(new Account(103));\n c3.addAccount(new Account(103));\n c4.addAccount(new Account(104));\n\n }", "public List<Account> getAccountsByClient(String username) {\r\n\t\tif (!DaoUtility.isUsernameValid(username))\r\n\t\t\treturn null;\r\n\r\n\t\tConnection conn = null;\r\n\r\n\t\ttry {\r\n\t\t\tPreparedStatement st;\r\n\t\t\tResultSet rs;\r\n\r\n\t\t\tconn = dbConnector.getConnection();\r\n\t\t\tif (conn == null)\r\n\t\t\t\treturn null;\r\n\r\n\t\t\tst = conn\r\n\t\t\t\t\t.prepareStatement(\"select tbAccount.*, typename from tbAccount, tbClient, tbAccountType \"\r\n\t\t\t\t\t\t\t+ \" where tbAccount.cid=tbClient.cid \"\r\n\t\t\t\t\t\t\t+ \" and tbAccount.typeid=tbAccountType.typeid \"\r\n\t\t\t\t\t\t\t+ \" and tbClient.username= ?\");\r\n\t\t\tst.setString(1, username);\r\n\t\t\trs = st.executeQuery();\r\n\r\n\t\t\tArrayList<Account> lst = new ArrayList<Account>();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tAccount account = getAccountFromRecordSet(rs);\r\n\t\t\t\tlst.add(account);\r\n\t\t\t}\r\n\r\n\t\t\tif (lst.size() <= 0)\r\n\t\t\t\treturn null;\r\n\t\t\treturn lst;\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif (conn != null)\r\n\t\t\t\t\tconn.close();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}", "public static ObservableList<Customer> getCustomerList() throws SQLException{\r\n customerList.clear();\r\n Connection conn = DBConnection.getConnection();\r\n String selectStatement = \"SELECT * FROM customers;\";\r\n DBQuery.setPreparedStatement(conn, selectStatement);\r\n PreparedStatement ps = DBQuery.getPreparedStatement();\r\n ps.execute();\r\n ResultSet rs = ps.getResultSet();\r\n\r\n //creates customer and adds to list\r\n while(rs.next())\r\n {\r\n int customerID = rs.getInt(\"Customer_ID\");\r\n String customerName = rs.getString(\"Customer_Name\");\r\n String address = rs.getString(\"Address\");\r\n String state = getDivisionName(rs.getInt(\"Division_ID\"));\r\n String postalCode = rs.getString(\"Postal_Code\");\r\n String country = getCountryName(getCountryID(rs.getInt(\"Division_ID\")));\r\n String phoneNumber = rs.getString(\"Phone\");\r\n Customer customer = new Customer(customerID,customerName,address,state,postalCode,country,phoneNumber);\r\n customerList.add(customer);\r\n }\r\n return customerList;\r\n }", "public saccoAccount (int account_num, double initial_balance) \r\n {\r\n\r\n account = account_num;\r\n balance = initial_balance;\r\n\r\n }", "public ArrayList getAccountList() throws RemoteException, SQLException, Exception;", "public List<Customer> findAll() {\n\t\t//get current session\n\t\tSession currentSession = entityManager.unwrap(Session.class);\n\t\t//query to fetch all records\n\t\tQuery<Customer> query = currentSession.createQuery(\n\t\t\t\t\t\t\t\t\"from Customer where customerId!=:customerId\", Customer.class);\n\t\t//get account details of all accounts\n\t\tquery.setParameter(\"customerId\", 9999999);\n\t\tList<Customer> customer = query.getResultList();\n\t\t//return the result\n\t\treturn customer;\n\t}", "public ArrayList<Customer> getAllCustomers();", "public static ArrayList<String> getAccountOwners(String accountno) {\n\t\tString query = \"SELECT user FROM \" + EconomosConstants.DB_ACCOUNTENTRIES_TABLENAME +\n\t\t\t\t\" WHERE accountno=\" + accountno + \" AND role='owner'\";\n\t\tConnection conn = null;\n\t\tArrayList<String> users = new ArrayList<String>();\n\t\ttry {\n\t\t\tconn = SQLUtil.getConnection();\n\t\t\tStatement stat = conn.createStatement();\n\t\t\tconn.setAutoCommit(false);\n\t\t\tResultSet rs = stat.executeQuery(query);\n\t\t\twhile (rs.next()) {\n\t\t\t\tusers.add(String.valueOf(rs.getString(1)));\n\t\t\t}\n\t\t\tconn.commit();\n\t\t\tconn.close();\n\t\t} catch (SQLException e) {\n\t\t\ttry {\n\t\t\t\tconn.rollback();\n\t\t\t\tconn.close();\n\t\t\t} catch (SQLException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\treturn users;\n\t}", "List<ClientAccount> getAllClientAccounts() throws ServiceException;", "public List <Account> getAllAccountsByRIB(String RIB);", "String getAccountList(int accountId);", "@Override\n\tpublic List<Customer> retrieveAllCustomers() {\n\t\tlogger.info(\"A GET call retrieved all customers: retrieveAllCustomers()\");\n\t\treturn customers;\n\t}", "public static ArrayList<CustomerInfoBean> getCutomers_notinterested_Super() {\r\n\t\tCustomerInfoBean bean = null;\r\n\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income,\\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name , a.appliance_id, s.salesman_id,\\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN appliance a ON e.appliance_id =a.appliance_id\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN salesman s ON e.salesman_id =s.salesman_id\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN customer cs ON e.customer_id = cs.customer_id \\n\"\r\n\t\t\t\t\t+ \" JOIN city c ON cs.customer_city=c.city_id\\n\"\r\n\t\t\t\t\t+ \" JOIN city_district cd ON cs.customer_city=cd.city_id\\n\"\r\n\t\t\t\t\t+\r\n\r\n\t\t\t\t\t\" INNER JOIN do_salesman ds ON s.salesman_id=ds.salesman_id WHERE e.status=3 GROUP BY cs.customer_id\\n\";\r\n\t\t\tStatement st = con.prepareStatement(query);\r\n\t\t\tResultSet rs = st.executeQuery(query);\r\n\t\t\tSystem.err.println(query);\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(10);\r\n\t\t\t\tsalesmanId = rs.getInt(11);\r\n\t\t\t\tapplianceName = rs.getString(12);\r\n\t\t\t\tstatus = rs.getInt(13);\r\n\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}", "public List<Account> getAccounts() throws SQLException {\r\n\t\tList<Account> accounts = new ArrayList<>();\r\n\t\tConnection connection = dbAdministration.getConnection();\r\n\t\tStatement statement = connection.createStatement();\r\n\t\t// Alle Datensätze der Account-Tabelle abrufen\r\n\t\tString sql = \"SELECT * FROM account\";\r\n\t\tResultSet resultSet = statement.executeQuery(sql);\r\n\t\tlogger.info(\"SQL-Statement ausgeführt: \" + sql);\r\n\t\twhile (resultSet.next()) {\r\n\t\t\t// Datensätze in Kontoobjekte umwandeln\r\n\t\t\tint id = resultSet.getInt(1);\r\n\t\t\tString owner = resultSet.getString(2);\r\n\t\t\tString number = resultSet.getString(3);\r\n\t\t\tAccount account = new Account();\r\n\t\t\taccount.setId(id);\r\n\t\t\taccount.setOwner(owner);\r\n\t\t\taccount.setNumber(number);\r\n\t\t\taccount.setTransactions(daTransaction.getTransactionHistory(number));\r\n\t\t\taccounts.add(account);\r\n\t\t}\r\n\t\tresultSet.close();\r\n\t\tstatement.close();\r\n\t\tconnection.close();\r\n\t\treturn accounts;\r\n\t}", "@GET\r\n\t@Produces({ MediaType.APPLICATION_JSON })\r\n\tpublic ArrayList<Customer> getCustomers() {\r\n\t\treturn custDao.readAll();\r\n\t}", "List<Customer> getCustomers();", "public List<Customer> getCustomerList() {\n return new ArrayList<Customer>(customersList);\n }", "@Override\n\tpublic List<MongoAccountVO> findByCustomerId(String customerNumber) {\n\t\tFindIterable<MongoAccountVO> result = getCollection().find(new BasicDBObject(\"customerNumber\", customerNumber));\n\t\tList<MongoAccountVO> returnList = new ArrayList<>();\n\t\tMongoCursor<MongoAccountVO> it = null;\n\t\ttry {\n\t\t\tit = result.iterator();\n\t\t\twhile (it.hasNext()) {\n\t\t\t\treturnList.add(it.next());\n\t\t\t}\n\t\t} finally {\n\t\t\tif (it != null) {\n\t\t\t\tit.close();\n\t\t\t}\n\t\t}\n\n\t\treturn returnList;\n\t}", "public Account(String customerName, String customerEmail, String customerPhone) {\n this(\"99999\", 100.55, customerName, customerEmail, customerPhone);\n // created from IntelliJ's Generate - but we used them inside of the constructor above, using \"this\"\n// this.customerName = customerName;\n// this.customerEmail = customerEmail;\n// this.customerPhone = customerPhone;\n }", "List<Customer> getCustomerList();", "@Override\n\t@Transactional\n\tpublic List<AMOUNT> getCustomers() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// create a query\n\t\tQuery<AMOUNT> theQuery = currentSession.createQuery(\"from Customer ORDER BY lastName\", AMOUNT.class);\n\n\t\t// execute query and get result list\n\t\tList<AMOUNT> customers = theQuery.getResultList();\n\n\t\t// return the results\n\t\treturn customers;\n\t}", "@Override\n\tpublic Collection<Customer> getAllCustomers() throws Exception {\n\t\tArrayList<Customer> customers = new ArrayList<Customer>();\n\t\tConnection con = pool.getConnection();\n\t\t\n\t\ttry {\n\t\t\tString getAllCustomers = \"select * from customer\";\n\t\t\tStatement st = con.createStatement();\n\t\t\tResultSet rs = st.executeQuery(getAllCustomers);\n\t\t\tint result = 0;\n\n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\tCustomer cust = new Customer();\n\t\t\t\t\tcust.setId(rs.getLong(\"ID\"));\n\t\t\t\t\tcust.setCustName(rs.getString(\"Cust_Name\"));\n\t\t\t\t\tcust.setPassword(rs.getString(\"Password\"));\n\t\t\t\t\tcustomers.add(cust);\n\t\t\t\t\tresult++;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(result + \" Customers were retrieved.\");\n \n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage() + \" Could not retrieve data from DB.\");\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage() + \" Could not close the connection to the DB\");\n\t\t\t}\n\t\t}\n\t\treturn customers;\n\t}", "public static ArrayList<Account> getAccounts() {\n ArrayList<Account> accounts = new ArrayList<>();\n\n try (Statement statement = connection.createStatement()) {\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM LOGIN_ACCOUNTS\");\n while (resultSet.next()) { // as long as the next row is not null\n String username, password, firstName, lastName;\n int age;\n username = resultSet.getString(\"username\");\n password = resultSet.getString(\"password\");\n firstName = resultSet.getString(\"firstname\");\n lastName = resultSet.getString(\"lastname\");\n age = resultSet.getInt(\"age\");\n // place all the new items into a new Account object\n Account newAccount = new Account(username, password, firstName, lastName, age);\n // add the account to the list\n accounts.add(newAccount);\n }\n } catch (SQLException exc) {\n Logger.getLogger(Database.class.getName()).log(Level.SEVERE, null, exc);\n }\n\n return accounts;\n }", "List<Account> getAccounts(String login);", "AccountDetail getAccount(String number) throws Exception;", "@Override\n public List<Account> findAllByCustomerId(String customerId) {\n Query findByCustomer = new Query();\n findByCustomer.addCriteria(Criteria.where(\"customerId\").is(customerId));\n return operations.find(findByCustomer, Account.class);\n }", "@PermitAll\n public List<AccountDetails> getAccountsOfCustomer(Long customerId)\n throws InvalidParameterException, CustomerNotFoundException {\n Debug.print(\"AccountControllerBean getAccountsOfCustomer\");\n\n Collection accounts = null;\n Customer customer = null;\n\n if (customerId == null) {\n throw new InvalidParameterException(\"null customerId\");\n }\n\n try {\n customer = em.find(Customer.class, customerId);\n\n if (customer == null) {\n throw new CustomerNotFoundException();\n } else {\n accounts = customer.getAccounts();\n }\n } catch (Exception ex) {\n throw new EJBException(ex);\n }\n\n return copyAccountsToDetails(accounts);\n }", "public List<Customer> getCustomerList() {\r\n\t\tList<Object> columnList = null;\r\n\t\tList<Object> valueList = null;\r\n\t\tList<Customer> customers = new ArrayList<Customer>();\r\n\r\n\t\tif (searchValue != null && !searchValue.trim().equals(\"\")) {\r\n\t\t\tcolumnList = new ArrayList<Object>();\r\n\t\t\tvalueList = new ArrayList<Object>();\r\n\t\t\tcolumnList.add(searchColumn);\r\n\t\t\tvalueList.add(searchValue);\r\n\t\t}\r\n\t\tcustomers = customerService.searchCustomer(columnList, valueList,\r\n\t\t\t\tfirst, pageSize);\r\n\t\t\r\n\r\n\t\treturn customers;\r\n\t}", "@RequestMapping(value = \"/v2/customers\", method = RequestMethod.GET)\r\n\tpublic List<Customer> customers() {\r\n JPAQuery<?> query = new JPAQuery<Void>(em);\r\n QCustomer qcustomer = QCustomer.customer;\r\n List<Customer> customers = (List<Customer>) query.from(qcustomer).fetch();\r\n // Employee oneEmp = employees.get(0);\r\n\t\treturn customers;\r\n }", "@Override\n\tpublic List<Account> GetAllAccounts() {\n\t\tif(accountList.size() > 0)\n\t\t\treturn accountList;\n\t\treturn null;\n\t}", "public static ArrayList<String> getAccountUsers(String accountno) {\n\t\tString query = \"SELECT user FROM \" + EconomosConstants.DB_ACCOUNTENTRIES_TABLENAME +\n\t\t\t\t\" WHERE accountno=\" + accountno;\n\t\tConnection conn = null;\n\t\tArrayList<String> users = new ArrayList<String>();\n\t\ttry {\n\t\t\tconn = SQLUtil.getConnection();\n\t\t\tStatement stat = conn.createStatement();\n\t\t\tconn.setAutoCommit(false);\n\t\t\tResultSet rs = stat.executeQuery(query);\n\t\t\twhile (rs.next()) {\n\t\t\t\tusers.add(String.valueOf(rs.getString(1)));\n\t\t\t}\n\t\t\tconn.commit();\n\t\t\tconn.close();\n\t\t} catch (SQLException e) {\n\t\t\ttry {\n\t\t\t\tconn.rollback();\n\t\t\t\tconn.close();\n\t\t\t} catch (SQLException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\treturn users;\n\t}", "public static List<Account> getAccounts()\n\t{\n\t\treturn Application.getAccountLibrary().getAccounts();\n\t}", "public CustomerAccount(int newAccountNo, String newCustName, String newCustAddr)\r\n\t{\r\n\t\t// Constructor chaining to simplify code\r\n\t\tthis(newAccountNo, newCustName, newCustAddr, DEFAULT_CREDIT_LIMIT);\r\n\t\t\r\n\t}", "public Set<Account> getAccountsForOwner(String username);", "Set<ClientAccount> getClientAccounts(Integer clientId) throws ServiceException;", "public java.lang.String CC_GetCustomerLocation(java.lang.String accessToken, java.lang.String accountNo) throws java.rmi.RemoteException;", "public List<Customer> getCustomers()\n {\n List<Customer> customers = new ArrayList<>();\n\n customers.add(new Customer(\"Recipient\", \"One\", \"[email protected]\", \"Green\"));\n customers.add(new Customer(\"Recipient\", \"Two\", \"[email protected]\", \"Red\"));\n customers.add(new Customer(\"Recipient\", \"Three\", \"[email protected]\", \"Blue\"));\n customers.add(new Customer(\"Recipient\", \"Four\", \"[email protected]\", \"Orange\"));\n\n return customers;\n }", "public Bank() throws Exception\r\n\t{\r\n\t\tScanner fileScan = new Scanner(new File(\"C:\\\\Users\\\\jason\\\\workspace\\\\proj1fa14\\\\bankdata.txt\"));\r\n\t\taccounts = new Account[10];\r\n\t\tnumAccounts = 0;\r\n\t\tCustomer customer;\r\n\t\tAccount account;\r\n\t\tfor(int i = 0; i<9; i++)\r\n\t\t{\r\n\t\t\tString first = fileScan.next();\r\n\t\t\t//System.out.println(first);\r\n\t\t\tString last = fileScan.next();\r\n\t\t\t//System.out.println(last);\r\n\t\t\tint age = fileScan.nextInt();\r\n\t\t\tString pN = fileScan.next();\r\n\t\t\tint ba = fileScan.nextInt();\r\n\t\t\tint ch = fileScan.nextInt();\r\n\t\t\tString accNum = fileScan.next();\r\n\t\t\tcustomer = new Customer(first,last,age,pN);\r\n\t\t\taccount = new Account(customer,ba,ch, accNum);\r\n\t\t\taccounts[i] = account;\r\n\t\t\tnumAccounts++;\r\n\t\t}\r\n\t\tfileScan.close();\r\n\t}", "private GetAccount()\r\n/* 19: */ {\r\n/* 20:18 */ super(new APITag[] { APITag.ACCOUNTS }, new String[] { \"account\" });\r\n/* 21: */ }", "@Override\n\tpublic List<Customer> getCustomers() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\t\t\n\t\t// create a query ... sort by the lastname\n\t\tQuery<Customer> theQuery = \n\t\t\t\tcurrentSession.createQuery(\"from Customer order by lastName\",Customer.class);\n\t\t\n\t\t// execute query and get result list\n\t\tList<Customer> customers = theQuery.getResultList();\n\t\t\t\t\n\t\t// return the results\t\t\n\t\treturn customers;\n\t}", "public Collection<Integer> getDepositAccounts() {\n try {\n return costumerRepo.getAllAccounts(ssn, \"DepositAccount\");\n }catch (Exception ex) {\n rootLogger.error(\"JDBC: message: {}\", ex.getMessage());\n }\n return null;\n }", "public static ArrayList<Customer> getOwners(String aid) {\n \tArrayList<Customer> customers = new ArrayList<Customer>();\n \tStatement stmt = null;\n \tConnection conn = null;\n \tString sql = \"\";\n \n\t return customers;\n }", "public List<CoinbaseAccount> getCoinbaseAccounts() throws IOException {\n\n String path = \"/v2/accounts\";\n String apiKey = exchange.getExchangeSpecification().getApiKey();\n BigDecimal timestamp = coinbase.getTime(Coinbase.CB_VERSION_VALUE).getData().getEpoch();\n String signature = getSignature(timestamp, path);\n showCurl(apiKey, timestamp, signature, path);\n \n return coinbase.getAccounts(Coinbase.CB_VERSION_VALUE, apiKey, signature, timestamp).getData();\n }", "public ArrayList<Customer> getAllCustomers(){\n ArrayList<Customer> customers = new ArrayList<>();\n\n try{\n // try and connect\n conn = DriverManager.getConnection(URL);\n\n // make sql query\n PreparedStatement preparedStatement =\n conn.prepareStatement(\"SELECT CustomerId, FirstName, LastName, Country, PostalCode, Phone, Email FROM Customer \");\n\n // execute query\n ResultSet set = preparedStatement.executeQuery();\n\n while(set.next()){\n customers.add(\n new Customer(\n set.getString(\"CustomerId\"),\n set.getString(\"FirstName\"),\n set.getString(\"LastName\"),\n set.getString(\"Country\"),\n set.getString(\"PostalCode\"),\n set.getString(\"Phone\"),\n set.getString(\"Email\")\n ));\n\n }\n }\n catch(Exception exception){\n System.out.println(exception.toString());\n }\n finally{\n try{\n conn.close();\n }\n catch (Exception exception){\n System.out.println(exception.toString());\n }\n }\n return customers;\n }", "public static ArrayList<CustomerInfoBean> getCutomers_Accepted() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name , a.appliance_id, s.salesman_id, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" JOIN appliance a ON e.appliance_id =a.appliance_id \\n\"\r\n\t\t\t\t\t+ \" JOIN salesman s ON e.salesman_id =s.salesman_id \\n\"\r\n\t\t\t\t\t+ \" JOIN customer cs ON e.customer_id = cs.customer_id\\n\"\r\n\t\t\t\t\t+ \" JOIN city c ON cs.customer_city=c.city_id WHERE e.status=1 or e.status=6;\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(10);\r\n\t\t\t\tsalesmanId = rs.getInt(11);\r\n\t\t\t\tapplianceName = rs.getString(12);\r\n\t\t\t\tstatus = rs.getInt(13);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}", "public static ArrayList<CustomerInfoBean> getCutomers_notinterested() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income,\\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name , a.appliance_id, s.salesman_id,\\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status, cs.customer_family_size FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN appliance a ON e.appliance_id =a.appliance_id\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN salesman s ON e.salesman_id =s.salesman_id\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN customer cs ON e.customer_id = cs.customer_id \\n\"\r\n\t\t\t\t\t+ \" INNER JOIN do_salesman ds ON s.salesman_id=ds.salesman_id join city c on cs.customer_city=c.city_id WHERE cs.status=3 GROUP BY cs.customer_id\\n\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(10);\r\n\t\t\t\tsalesmanId = rs.getInt(11);\r\n\t\t\t\tapplianceName = rs.getString(12);\r\n\t\t\t\tstatus = rs.getInt(13);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}", "@SuppressWarnings(\"rawtypes\")\n public MapList getCustomerCRs(Context context, String[] args) throws Exception {\n\n Pattern relationship_pattern = new Pattern(TigerConstants.RELATIONSHIP_PSS_SUBPROGRAMPROJECT);\n relationship_pattern.addPattern(TigerConstants.RELATIONSHIP_PSS_CONNECTEDPCMDATA);\n\n Pattern type_pattern = new Pattern(TigerConstants.TYPE_PSS_CHANGEREQUEST);\n type_pattern.addPattern(TigerConstants.TYPE_PSS_PROGRAMPROJECT);\n\n Pattern finalType = new Pattern(TigerConstants.TYPE_PSS_CHANGEREQUEST);\n\n try {\n\n StringList slselectObjStmts = getSLCTableSelectables(context);\n\n Map programMap = (Map) JPO.unpackArgs(args);\n String strProgProjId = (String) programMap.get(\"objectId\");\n // TIGTK-16801 : 30-08-2018 : START\n boolean bAdminOrPMCMEditAllow = isAdminOrPMCMofRelatedPP(context, strProgProjId);\n StringBuffer sbObjectWhere = new StringBuffer();\n sbObjectWhere.append(\"(type==\\\"\");\n sbObjectWhere.append(TigerConstants.TYPE_PSS_CHANGEREQUEST);\n sbObjectWhere.append(\"\\\"&&attribute[\");\n sbObjectWhere.append(TigerConstants.ATTRIBUTE_PSS_CRORIGINTYPE);\n sbObjectWhere.append(\"] == \");\n sbObjectWhere.append(\"\\\"\");\n sbObjectWhere.append(\"Customer\");\n sbObjectWhere.append(\"\\\")\");\n // TIGTK-16801 : 30-08-2018 : END\n\n DomainObject domainObj = DomainObject.newInstance(context, strProgProjId);\n\n MapList mapList = domainObj.getRelatedObjects(context, relationship_pattern.getPattern(), // relationship pattern\n type_pattern.getPattern(), // object pattern\n slselectObjStmts, // object selects\n null, // relationship selects\n false, // to direction\n true, // from direction\n (short) 0, // recursion level\n sbObjectWhere.toString(), // object where clause\n null, (short) 0, false, // checkHidden\n true, // preventDuplicates\n (short) 1000, // pageSize\n finalType, // Postpattern\n null, null, null);\n // TIGTK_3961:Sort CR data according to CR state :23/1/2017:Rutuja Ekatpure:Start\n if (mapList.size() > 1) {\n // return sortCRListByState(context, mapList);\n // PCM2.0 Spr4:TIGTK-6894:19/9/2017:START\n MapList mlReturn = sortCRListByState(context, mapList);\n\n Iterator<Map<String, String>> itrCR = mlReturn.iterator();\n while (itrCR.hasNext()) {\n Map tempMap = itrCR.next();\n String strCRId = (String) tempMap.get(DomainConstants.SELECT_ID);\n MapList mlIA = getImpactAnalysis(context, strCRId);\n\n String strIAId = \"\";\n if (!mlIA.isEmpty()) {\n Map mpIA = (Map) mlIA.get(0);\n strIAId = (String) mpIA.get(DomainConstants.SELECT_ID);\n }\n tempMap.put(\"LatestRevIAObjectId\", strIAId);\n // TIGTK-16801 : 30-08-2018 : START\n tempMap.put(\"bAdminOrPMCMEditAllow\", bAdminOrPMCMEditAllow);\n // TIGTK-16801 : 30-08-2018 : END\n }\n return mlReturn;\n // PCM2.0 Spr4:TIGTK-6894:19/9/2017:END\n } else {\n return mapList;\n }\n // TIGTK_3961:Sort CR data according to CR state :23/1/2017:Rutuja Ekatpure:End\n } catch (Exception ex) {\n logger.error(\"Error in getCustomerCRs: \", ex);\n throw ex;\n }\n }", "public List<AccountBean> getAllAccounts() {\n\t\tList<AccountBean> accountBeans = null;\n\t\tConnectionSource connectionSource = null;\n\t\tDao<AccountBean, Integer> contactDao = null;\n\n\t\ttry {\n\t\t\tconnectionSource = new AndroidConnectionSource(mDatabase);\n\t\t\tcontactDao = DaoManager.createDao(connectionSource,\n\t\t\t\t\tAccountBean.class);\n\t\t\taccountBeans = contactDao.queryBuilder()\n\t\t\t\t\t.orderBy(IConstants.ORDER_BY_UPDATED_AT, false).query();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn accountBeans;\n\t}", "List<Customer> getList();", "@Override\n\tpublic List<Customer> getCustomers() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// create a query\n\t\tQuery<Customer> theQuery =\n\t\t\t\tcurrentSession.createQuery(\"from Customer order by lastName\", Customer.class);\n\n\t\t// execute query and get result list\n\t\tList<Customer> customers = theQuery.getResultList();\n\n\t\treturn customers;\n\t}", "Account getAccount(Integer accountNumber);", "@Transactional\n\tpublic List<Customer> getCustomers() {\n\t\t\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t\t\t// create a query ... sort by last name\n\t\t\t\tQuery<Customer> theQuery = currentSession.createQuery(\"from Customer order by lastName\", Customer.class);\n\n\t\t\t\t// execute query and get result list\n\t\t\t\tList<Customer> customers = theQuery.getResultList();\n\n\t\t\t\t// return the results\n\t\t\t\treturn customers;\n\t}", "com.google.cloud.compute.v1.ServiceAccount getServiceAccounts(int index);", "public List<Accounts> getAllAccounts() {\n List<Accounts> accountList = new ArrayList<Accounts>();\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + TABLE_ACCOUNTS;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n Accounts account = new Accounts();\n account.setID(Integer.parseInt(cursor.getString(0)));\n account.setName(cursor.getString(1));\n account.setPassword(cursor.getString(2));\n account.setPhoneNumber(cursor.getString(3));\n account.setEmail(cursor.getString(4));\n // Adding account to list\n accountList.add(account);\n } while (cursor.moveToNext());\n }\n\n // return account list\n return accountList;\n }", "@Override\n\tpublic List<Customer> getCustomers() {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\t//create the query\n\t\tQuery<Customer> query = session.createQuery(\"from Customer order by lastName\", Customer.class);\n\t\t//get the result list\n\t\tList<Customer> customers = query.getResultList();\n\t\treturn customers;\n\t}", "@Override\n\tpublic ArrayList<AccountControlBean> selectAccountControlList(String accountCode) {\n\t\tConnection con = null;\n \tPreparedStatement pstmt = null;\n \tResultSet rs = null;\n \tArrayList<AccountControlBean> accountControlList = new ArrayList<>();\n try{\n \tStringBuffer query = new StringBuffer();\n \t\n query.append(\"SELECT ac.ACCOUNT_CODE, ac.CONTROL_CODE, ac.DETAIL_NAME, ac.DETAIL_TYPE FROM ACCOUNT a, account_control ac WHERE a.ACCOUNT_CODE=ac.ACCOUNT_CODE and a.ACCOUNT_CODE=?\");\n con = dataSourceTransactionManager.getConnection();\n pstmt = con.prepareStatement(query.toString());\n pstmt.setString(1, accountCode); \n rs = pstmt.executeQuery();\n while(rs.next()){\n \tAccountControlBean accountControlBean = new AccountControlBean();\n accountControlBean.setAccountCode(rs.getString(\"ACCOUNT_CODE\"));\n accountControlBean.setControlCode(rs.getString(\"CONTROL_CODE\"));\n accountControlBean.setDetailName(rs.getString(\"DETAIL_NAME\"));\n accountControlBean.setDetailType(rs.getString(\"DETAIL_TYPE\"));\n accountControlList.add(accountControlBean);\n }\n return accountControlList;\n }catch(Exception sqle){\n throw new DataAccessException(sqle.getMessage());\n }finally{\n \t dataSourceTransactionManager.close(pstmt, rs);\n }\n\t}", "@Override\n\tpublic List<Customer> listCustomers() {\n\t\treturn null;\n\t}", "public Bank(String name, int accs){\n bankAccounts = new Account[accs];\n bankName = name;\n maxAccounts = accs;\n currAccounts = 0; //empty\n }", "public static ObservableList<Customer> getAllCustomers() {\n\n try {\n String sql = \"SELECT * FROM customer;\";\n DBQuery.ExecutePreparedStatement(connection, sql);\n PreparedStatement ps = DBQuery.getPreparedStatement();\n\n ResultSet result = ps.getResultSet();\n Customer userResult;\n ObservableList<Customer> customers = FXCollections.observableArrayList();\n while (result.next()) {\n\n int customerId = result.getInt(\"customerId\");\n String customerName = result.getString(\"customerName\");\n int addressId = result.getInt(\"addressId\");\n int active = result.getInt(\"active\"); //this comes in as an integer 1 for true 0 for false\n if (active == 1) {\n isActive = true;\n } else {\n isActive = false;\n }\n String createDate = result.getString(\"createDate\");\n Calendar createDateCalendar = stringToCalendar(createDate);\n String createdBy = result.getString(\"createdBy\");\n String lastUpdate = result.getString(\"lastUpdate\");\n Calendar lastUpdateCalendar = stringToCalendar(lastUpdate);\n String lastUpdateBy = result.getString(\"lastUpdateBy\");\n\n userResult = new Customer(customerId, customerName, addressId, isActive, createDateCalendar, createdBy, lastUpdateCalendar, lastUpdateBy); //get the user info\n customers.add(userResult); //add everything to the table\n\n }\n\n return customers;\n\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n\n return null;\n }", "public static ObservableList<Customers> getAllCustomers() {\n return allCustomers;\n }", "public static ArrayList<CustomerInfoBean> getCutomers_onInActive() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name ,a.appliance_status, a.appliance_id, s.salesman_id, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" JOIN appliance a ON e.appliance_id =a.appliance_id \\n\"\r\n\t\t\t\t\t+ \" JOIN salesman s ON e.salesman_id =s.salesman_id \\n\"\r\n\t\t\t\t\t+ \" JOIN customer cs ON e.customer_id = cs.customer_id \\n\"\r\n\t\t\t\t\t+ \" JOIN city c ON cs.customer_city=c.city_id\\n\"\r\n\t\t\t\t\t+ \" WHERE a.appliance_status=0\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(11);\r\n\t\t\t\tsalesmanId = rs.getInt(12);\r\n\t\t\t\tapplianceName = rs.getString(13);\r\n\t\t\t\tstatus = rs.getInt(14);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}", "com.google.cloud.channel.v1.CustomerOrBuilder getCustomersOrBuilder(\n int index);", "public AccountExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "Iterator<Customer> findAllCustomers()\n throws XmlDocumentReadException, CorruptStorageException;", "@GET\n\t@Path(\"getAllCustomer\")\n\tpublic List<Customer> getAllCustomer() {\n\t\treturn ManagerHelper.getCustomerManager().getAllCustomer();\n\t}", "@Override\n\tpublic Uni<List<Customer>> findAllCustomer() {\n\t\treturn repo.findAll().list();\n\t}", "@Override\n\tpublic List<Customer> getCustomers() {\n\n\t\treturn sessionFactory.getCurrentSession().createQuery(\"from Customer order by lastName\", Customer.class)\n\t\t\t\t.getResultList();\n\n\t}", "@Override\n\t@Transactional\n\tpublic List<Customer> getCustomers() {\n\t\treturn customerDAO.getCustomers();\n\t\t\n\t}", "public void getCustomerNames() throws SQLException {\n ResultSet rs; \n Statement st = dbConnection.dbConnect().createStatement();\n String recordQuery = (\"Select * from customer\");\n rs = st.executeQuery(recordQuery);\n while(rs.next()){\n customers.getItems().add(rs.getString(\"customerName\"));\n }\n }", "public List<BusinessAccount> searchAllContractors() {\n\t\tfactory = Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME);\n\t\tEntityManager em = factory.createEntityManager();\t\n\t\n\t\t\tem.getTransaction().begin();\n\t\t\tQuery myQuery = em.createQuery(\"SELECT b FROM BusinessAccount b\");\n\t\t\tcontractorList=myQuery.getResultList();\n\t\t em.getTransaction().commit();\n\t\t em.close();\n\t\t\t\n\t\t\treturn contractorList;\n\t\t}", "public List getAllAccounts() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic List<Customer> getAllCustomers() {\n\t\treturn null;\r\n\t}", "public List<Customer> findByName(String n) {\n\n Connection conn = ConnectionFactory.getConnection();\n PreparedStatement ppst = null;\n ResultSet rest = null;\n List<Customer> customers = new ArrayList<>();\n\n try {\n ppst = conn.prepareStatement(\"SELECT * FROM customer WHERE LOWER(name) LIKE LOWER(?)\");\n ppst.setString(1, \"%\" + n + \"%\");\n rest = ppst.executeQuery();\n\n while (rest.next()) {\n Customer c = new Customer(\n rest.getInt(\"customer_key\"),\n rest.getString(\"name\"),\n rest.getString(\"id\"),\n rest.getString(\"phone\")\n );\n customers.add(c);\n }\n } catch (SQLException e) {\n throw new RuntimeException(\"Query error: \", e);\n } finally {\n ConnectionFactory.closeConnection(conn, ppst, rest);\n }\n return customers;\n }", "@Override\n\tpublic List<CashTransactionDtl> getCashTransactionDtlByAccount(\n\t\t\tMap<String, Object> params) throws ServiceException {\n\t\treturn cashTransactionDtlMapper.queryCashTransactionRecord(params);\n\t}", "public static ArrayList<CustomerBean> getCutomerByName(\r\n\t\t\tString customerFirstName) {\r\n\t\tCustomerBean bean = null;\r\n\t\tArrayList<CustomerBean> list = new ArrayList<CustomerBean>();\r\n\t\tint customerId, familyMember;\r\n\t\tdouble monthlyIncome, familyIncome;\r\n\t\tString customerName, cnicNo, phoneNo, address, district, customer_pic, accountCreatedDate;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT customer_id, customer_name, customer_cnic, customer_address, customer_district, customer_family_size, customer_phone,customer_monthly_income, customer_family_income, customer_payment_type, customr_image, created_on FROM customer Where user_name = ?;\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tstmt.setString(1, customerFirstName);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\taddress = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tfamilyMember = rs.getInt(6);\r\n\t\t\t\tphoneNo = rs.getString(7);\r\n\t\t\t\tmonthlyIncome = rs.getDouble(8);\r\n\t\t\t\tfamilyIncome = rs.getDouble(9);\r\n\t\t\t\trs.getString(10);\r\n\t\t\t\tcustomer_pic = rs.getString(11);\r\n\t\t\t\taccountCreatedDate = rs.getString(12);\r\n\t\t\t\tbean = new CustomerBean();\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setAddress(address);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setFamilyMember(familyMember);\r\n\t\t\t\tbean.setFamilyIncome(familyIncome);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\r\n\t\t\t\tbean.setAccountCreatedDate(accountCreatedDate);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\t\t\t\tbean.setCustomer_pic(customer_pic);\r\n\t\t\t\tlist.add(bean);\r\n\t\t\t}\r\n\t\t} catch (SQLException ex) {\r\n\t\t\tlogger.error(\"\", ex);\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "public Account searchAccount(String account_no)\n {\n Account account=null;\n \n try\n {\n String query=\"select * from account where account_no=\"+account_no;\n PreparedStatement ps=this.conn.prepareStatement(query);\n \n ResultSet rs=ps.executeQuery();\n \n if(rs.next())\n {\n account=new Account();\n \n account.setAccount_no(rs.getString(\"account_no\"));\n account.setAadhar_id(rs.getString(\"aadhar_no\"));\n account.setAccount_type(rs.getString(\"ac_type\"));\n account.setInterest_rate(rs.getString(\"interest\"));\n account.setBalance(rs.getString(\"balance\"));\n account.setAccount_status(rs.getString(\"ac_status\"));\n account.setName(rs.getString(\"name\"));\n }\n \n }catch(Exception e)\n {\n JOptionPane.showMessageDialog(null,e);\n }\n return account;\n }", "public List<Customer> getAllCustomers() {\n Query query = em.createNamedQuery(\"Customer.findAll\");\r\n // return query result\r\n return query.getResultList();\r\n }", "public ArrayList<String[]> getCustomersInfo(int index)\n\t{\n\t\tint customerAmount = 0;\n\t\tArrayList<String[]> returnValue = new ArrayList<>();\n\t\tArrayList<Customer> customers = CustomerContainer.getInstance().getCustomers();\t\n\t\tif (customers.size() == 0)\n\t\t{\n\t\t\treturn returnValue;\n\t\t}\n\t\t//If we have more than 50 elements we set the customerAmount to 50\n\t\tif ((int)(Math.floor(customers.size() / 50))+1 > index)\n\t\t{\n\t\t\tcustomerAmount = 50;\n\t\t}\n\t\t//If a page contains less then 50 elements, the customerAmount is set to the leftover amount.\n\t\telse if ((int)(Math.floor(customers.size() / 50))+1 == index)\n\t\t{\n\t\t\tcustomerAmount = (int)(customers.size()%50);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn returnValue;\n\t\t}\n\t\t//All of the customers are added to returnValue based on the customerAmount\n\t\tfor (int e = (index-1)*50; e < (index-1)*50+customerAmount; e++)\n\t\t{\n\t\t\treturnValue.add(customers.get(e).tableFill());\n\t\t}\n\t\treturn returnValue;\n\t}", "Set<Customer> getCustomers(final CustomerQueryFilter filter);", "public Account getAccount(int accound_index){\n return accounts[accound_index];\n }", "java.util.List<com.google.cloud.compute.v1.ServiceAccount> getServiceAccountsList();", "public TbaccountExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }", "Collection<Account> getAll();", "public void listCustomers() {\r\n\t\tSystem.out.println(store.listCustomers());\r\n\t}", "Account getAccount();", "public Account getAccountByAccountNo(int accNo) {\n Account account = accountRepository.findByAccountNo(accNo);\n return account;\n }" ]
[ "0.6128522", "0.61012226", "0.57726675", "0.5578261", "0.555834", "0.5543297", "0.5531085", "0.5522849", "0.5496337", "0.5487294", "0.5426979", "0.53903544", "0.53796005", "0.5376846", "0.53323287", "0.5326971", "0.5317806", "0.53031564", "0.527999", "0.52791077", "0.5251541", "0.5246545", "0.5240461", "0.52097315", "0.52024925", "0.5194868", "0.51915807", "0.5185874", "0.517704", "0.51726747", "0.51619095", "0.51617324", "0.5158402", "0.5153776", "0.51536155", "0.5151569", "0.51500005", "0.51494145", "0.51493996", "0.5141504", "0.5128973", "0.5128605", "0.50933325", "0.5088843", "0.5087172", "0.50807655", "0.50773287", "0.507205", "0.50694156", "0.50600415", "0.5046109", "0.5043736", "0.50417644", "0.5037143", "0.50370836", "0.50292337", "0.5021673", "0.50013703", "0.4996305", "0.49942955", "0.49908862", "0.4989672", "0.49765858", "0.4962132", "0.4948321", "0.4946329", "0.49447262", "0.49410224", "0.49344763", "0.49320206", "0.4928217", "0.4920751", "0.49133554", "0.49124035", "0.49101615", "0.4906117", "0.4904912", "0.4895976", "0.489524", "0.4891022", "0.48901436", "0.48893362", "0.48877576", "0.48848218", "0.4880977", "0.48787484", "0.4878223", "0.48752567", "0.48705667", "0.4870499", "0.48538366", "0.484794", "0.48474652", "0.48442146", "0.48420316", "0.48368677", "0.48302698", "0.48235494", "0.48179927", "0.4816545" ]
0.8070258
0
end GetCustomerAccounts... region Checking this function loads in checking accounts from a flat file and stores the information in the accounts array.
private void loadCheckingAccounts(String checkingAccountFileName) { try { /* Open the file to read */ File inputFile = new File(checkingAccountFileName); /* Create a scanner to begin reading from file */ Scanner input = new Scanner(inputFile); while (input.hasNextLine()) { //reading... String currentLine = input.nextLine(); //parse on commas String[] splitLine = currentLine.split(","); //DateFormat class to parse Date from file DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT); //parsing out data... int accountId = Integer.parseInt(splitLine[0]); double balance = Double.parseDouble(splitLine[1]); String ssn = splitLine[2]; double interestRate = Double.parseDouble(splitLine[3]); Date dateOpened = dateFormat.parse(splitLine[4]); int overdraftSavingsAccountId = Integer.parseInt(splitLine[5]); boolean isGoldDiamond = Boolean.parseBoolean(splitLine[6]); Checking checkingAccount = new Checking(accountId, balance, ssn, interestRate, dateOpened, overdraftSavingsAccountId, isGoldDiamond); ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId); checkingAccount.setTransactions(accountTransactions); //add checking account... accounts.add(checkingAccount); } input.close(); } catch (Exception e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void ReadInAccounts() {\n\t\tLog.d(\"SelectAccountActivity.ReadInAccounts\", \"checking for file\" + AccountMan.CheckForFile());\n\t\taccounts = AccountMan.GetAccounts();\n\t\t//Comment out this line and uncomment the line above after purging the excess accounts\n\t\t//accounts = AccountMan.PurgeDuplicateAccounts(AccountMan.GetAccounts());\n\t\tLog.d(\"SelectAccountActivity.ReadInAccounts\", String.valueOf(accounts.size()));\n\t}", "public static void UserAccounts() throws FileNotFoundException{\n\t\tScanner input = new Scanner(new File(AccountFile));\t\t\t\t//Creats objects and adds to array list.\r\n\t\t\r\n\t\twhile (input.hasNextLine()) {\t\t\t\t\t\t\t\t\t//Loops as long as there is another line\r\n\t\t\t\r\n\t\t\tString line = input.nextLine();\r\n\t\t\tif(line.equals(\"ADMIN\")) {\t\t\t\t\t\t\t\t\t//Checks if the data is for Admin, creats admin object\r\n\t\t\t\tString AdminUsername = input.nextLine();\r\n\t\t\t\tString AdminPassword = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tAdmin admin = new Admin(AdminUsername, AdminPassword);\r\n\t\t\t\taccounts.add(admin);\r\n\t\t\t\t\r\n\t\t\t} if(line.equals(\"COORDINATOR\")){\r\n\t\t\t\tString coordinatorUsername = input.nextLine();\r\n\t\t\t\tString coordinatorPassword = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tCoordinator coordinator = new Coordinator(coordinatorUsername, coordinatorPassword);\r\n\t\t\t\taccounts.add(coordinator);\r\n\r\n\t\t\t} if(line.equals(\"APPROVER\")){\r\n\t\t\t\tString approverUsername = input.nextLine();\r\n\t\t\t\tString approverPassword = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tApprover approver = new Approver(approverUsername, approverPassword);\r\n\t\t\t\taccounts.add(approver);\r\n\r\n\t\t\t} if(line.equals(\"CASUAL\")){\r\n\t\t\t\tString casualUsername = input.nextLine();\r\n\t\t\t\tString casualPassword = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tCasualStaff casual = new CasualStaff(casualUsername, casualPassword);\r\n\t\t\t\taccounts.add(casual);\r\n\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} loginSystem();\r\n\t}", "public List<Account> getAccounts(String customerName){\n List<Account> accounts = new ArrayList<>();\n try {\n accounts = getAccountsFromFile();\n } catch (Exception e) {\n System.out.println(messageService.unexpectedError(e));\n }\n System.out.println(accounts.stream().filter(a -> a.getCustomerName().equals(customerName))\n .collect(Collectors.toList()));\n return accounts.stream().filter(a -> a.getCustomerName().equals(customerName))\n .collect(Collectors.toList());\n }", "private AccountDetails[] getAccountDetails() {\n String accountData = Utils.readFile(accountFile);\n return gson.fromJson(accountData, AccountDetails[].class);\n }", "private void loadAccounts() {\n JsonReader jsonReader = null;\n try {\n jsonReader = new JsonReader(parkinglots, \"account\");\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n try {\n accounts = jsonReader.findall();\n } catch (IOException | ParseException e) {\n e.printStackTrace();\n }\n }", "public void importFile() {\n \ttry {\n\t File account_file = new File(\"accounts/CarerAccounts.txt\");\n\n\t FileReader file_reader = new FileReader(account_file);\n\t BufferedReader buff_reader = new BufferedReader(file_reader);\n\n\t String row;\n\t while ((row = buff_reader.readLine()) != null) {\n\t String[] account = row.split(\",\"); //implementing comma seperated value (CSV)\n\t String[] users = account[6].split(\"-\");\n\t int[] usersNew = new int[users.length];\n\t for (int i = 0; i < users.length; i++) {\n\t \tusersNew[i] = Integer.parseInt(users[i].trim());\n\t }\n\t this.add(Integer.parseInt(account[0]), account[1], account[2], account[3], account[4], account[5], usersNew);\n\t }\n\t buff_reader.close();\n } catch (IOException e) {\n System.out.println(\"Unable to read text file this time.\");\n \t}\n\t}", "private void loadCDAccounts(String cdAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(cdAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //reading...\n String currentLine = input.nextLine();\n\n //parse on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parse out data...\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n Date startDate = dateFormat.parse(splitLine[5]);\n Date endDate = dateFormat.parse(splitLine[6]);\n\n CD cdAccount = new CD(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n startDate,\n endDate);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n cdAccount.setTransactions(accountTransactions);\n\n //add CD Accounts...\n accounts.add(cdAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "private void loadSavingsAccounts(String savingsAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(savingsAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //read...\n String currentLine = input.nextLine();\n\n //parse on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data...\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n int overdraftAccountId = Integer.parseInt(splitLine[5]);\n\n Savings savingsAccount = new Savings(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n overdraftAccountId);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n savingsAccount.setTransactions(accountTransactions);\n\n //add savings account...\n accounts.add(savingsAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "private void loadCreditCardAccounts(String creditCardAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(creditCardAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //read...\n String currentLine = input.nextLine();\n\n //parsing out on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data.\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n Date dueDate = dateFormat.parse(splitLine[5]);\n Date dateNotified = dateFormat.parse(splitLine[6]);\n double currentPaymentDue = Double.parseDouble(splitLine[7]);\n Date lastPaymentDate = dateFormat.parse(splitLine[8]);\n boolean missedPayment = Boolean.parseBoolean(splitLine[9]);\n double limit = Double.parseDouble(splitLine[10]);\n String creditCardNumber = splitLine[11];\n int cvv = Integer.parseInt(splitLine[12]);\n\n CreditCard creditCardAccount = new CreditCard(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n dueDate,\n dateNotified,\n currentPaymentDue,\n lastPaymentDate,\n missedPayment,\n limit,\n creditCardNumber,\n cvv);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n creditCardAccount.setTransactions(accountTransactions);\n\n //add credit cards\n accounts.add(creditCardAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "List<Account> getAccountsForCustomerId(int customerId);", "private void loadUsers() throws IOException {\n File accounts = new File(\"accounts.txt\");\n if (!accounts.exists()) {\n accounts.createNewFile();\n }\n\n FileInputStream fileInputStream = new FileInputStream(accounts);\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(fileInputStream));\n\n for (String line = bufferedReader.readLine(); line != null; line = bufferedReader.readLine()) {\n String[] pair = line.split(\":\");\n userAccounts.put(pair[0], pair[1]);\n }\n }", "private void loadATMAccounts(String atmAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(atmAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //reading...\n String currentLine = input.nextLine();\n\n //parse on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parse out data...\n int accountId = Integer.parseInt(splitLine[0]);\n String ssn = splitLine[1];\n Date dateOpened = dateFormat.parse(splitLine[2]);\n int pin = Integer.parseInt(splitLine[3]);\n Date lastDateUsed = dateFormat.parse(splitLine[4]);\n int dailyUsageCount = Integer.parseInt(splitLine[5]);\n String cardNumber = splitLine[6];\n\n ATM atmAccount = new ATM(accountId,\n ssn,\n dateOpened,\n pin,\n lastDateUsed,\n dailyUsageCount,\n cardNumber);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n atmAccount.setTransactions(accountTransactions);\n\n //add ATM accounts...\n accounts.add(atmAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "public static ATMAccount LogIn() throws FileNotFoundException, IOException, InterruptedException {\r\n\t\tATMAccount account = null;\r\n\t\tSystem.out.println(\"Enter your account ID:\");\r\n\t\tint intaccID;\r\n\t\tintaccID = userInput.nextInt();\r\n\t\tString accID = intaccID + \"\";\r\n\t\tString[] dataGrabbed = new String[4];\r\n\t\tFile thisFile = new File(\"accountsdb.txt\");\r\n\t\taccountsdbReader = new Scanner(thisFile);\r\n\r\n\t\tif (thisFile.exists()) {\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\tString accountIDHolder = accountsdbReader.findInLine(accID);\r\n\t\t\t\tif (accountIDHolder == null) {\r\n\r\n\t\t\t\t\taccountsdbReader.nextLine();\r\n\t\t\t\t} else if (accountIDHolder.equals(accID)) {\r\n\t\t\t\t\tfor (int i = 1; i < dataGrabbed.length; i++) {\r\n\t\t\t\t\t\tif (accountsdbReader.hasNext())\r\n\t\t\t\t\t\t\tdataGrabbed[i] = accountsdbReader.next();\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if ((!(accountsdbReader.hasNextLine()) && account == null)) {\r\n\t\t\t\t\tSystem.out.println(\"This account does not exist!\");\r\n\t\t\t\t\tATMStartScreen();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tdataGrabbed[0] = accID;\r\n\r\n\t\t\t}\r\n\t\t\tint validationLoop = 3;\r\n\t\t\tString pinValidity;\r\n\t\t\tuserInput.nextLine();\r\n\t\t\tdo {\r\n\t\t\t\tSystem.out.println(\"Please enter your 4 digit pin in order to access your account:\");\r\n\t\t\t\tpinValidity = userInput.nextLine();\r\n\t\t\t\tif (pinValidity.equals(dataGrabbed[3])) {\r\n\t\t\t\t\tSystem.out.println(\"PIN Confirmed!\");\r\n\t\t\t\t\tSystem.out.println(\"Displaying account options...\");\r\n\t\t\t\t\taccount = new ATMAccount(Integer.parseInt(dataGrabbed[0]), dataGrabbed[1],\r\n\t\t\t\t\t\t\tInteger.parseInt(dataGrabbed[3]), Double.parseDouble(dataGrabbed[2]));\r\n\r\n\t\t\t\t\treturn account;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tSystem.out.println(\"PIN Declined!\");\r\n\t\t\t\t\tSystem.out.println(\"You have \" + validationLoop + \" attempts remaining.\");\r\n\r\n\t\t\t\t}\r\n\t\t\t\tvalidationLoop--;\r\n\t\t\t} while (!pinValidity.equals(dataGrabbed[3]) && validationLoop != -1);\r\n\t\t\tSystem.out.println(\"You have exhausted all of your attempts you will now return to the main menu.\");\r\n\t\t} else {\r\n\t\t\t// Return to StartScreen before being able to return null account\r\n\t\t\tSystem.out.println(\"File was not found!\");\r\n\t\t\tSystem.out.println(\"Returning to main menu...\");\r\n\t\t\tATMStartScreen();\r\n\t\t}\r\n\t\tSystem.out.println(\"Returning to main menu...\");\r\n\t\tATMStartScreen();\r\n\t\treturn null;\r\n\r\n\t}", "public static ArrayList<Citizen> getAccounts()\n\t{\n\t\treturn accounts;\n\t}", "public AccountManager(String transactionsFileName,\n String checkingAccountFileName,\n String savingsAccountFileName,\n String cdAccountFileName,\n String atmAccountFileName,\n String creditCardAccountFileName,\n String termLoanAccountFileName)\n {\n accounts = new ArrayList<>();\n\n //Load transactions first so the hash map is built\n loadTransactions(transactionsFileName);\n\n loadCheckingAccounts(checkingAccountFileName);\n loadSavingsAccounts(savingsAccountFileName);\n loadCDAccounts(cdAccountFileName);\n loadATMAccounts(atmAccountFileName);\n loadCreditCardAccounts(creditCardAccountFileName);\n loadTermLoanAccounts(termLoanAccountFileName);\n }", "public Bank() throws Exception\r\n\t{\r\n\t\tScanner fileScan = new Scanner(new File(\"C:\\\\Users\\\\jason\\\\workspace\\\\proj1fa14\\\\bankdata.txt\"));\r\n\t\taccounts = new Account[10];\r\n\t\tnumAccounts = 0;\r\n\t\tCustomer customer;\r\n\t\tAccount account;\r\n\t\tfor(int i = 0; i<9; i++)\r\n\t\t{\r\n\t\t\tString first = fileScan.next();\r\n\t\t\t//System.out.println(first);\r\n\t\t\tString last = fileScan.next();\r\n\t\t\t//System.out.println(last);\r\n\t\t\tint age = fileScan.nextInt();\r\n\t\t\tString pN = fileScan.next();\r\n\t\t\tint ba = fileScan.nextInt();\r\n\t\t\tint ch = fileScan.nextInt();\r\n\t\t\tString accNum = fileScan.next();\r\n\t\t\tcustomer = new Customer(first,last,age,pN);\r\n\t\t\taccount = new Account(customer,ba,ch, accNum);\r\n\t\t\taccounts[i] = account;\r\n\t\t\tnumAccounts++;\r\n\t\t}\r\n\t\tfileScan.close();\r\n\t}", "public final void loadAccounts() {\n DBUtil.select(\n \"select id, created, account_name, account_pass, account_email, timezone from \"\n + ConfigUtil.getAntiFraudDatabaseSchema()\n + \".af_account\",\n new ResultSetProcessor() {\n @Override\n public void process(ResultSet resultSet) throws SQLException {\n while (resultSet.next() ) {\n AfAccount account = createAccountFromResultSet(resultSet);\n }\n }\n });\n }", "@Override\n public List<Account> getAccounts(Long customerId) {\n return customerDao.getAccounts(customerId);\n }", "List<Account> getAccounts(String login);", "public static void depositMoney(ATMAccount account) throws FileNotFoundException {\r\n\t\taccountsdb = new File(\"accountsdb.txt\");\r\n\t\t//Use of two dimensional array to account for line number\r\n\t\tString[][] accountInfo = null;\r\n\r\n\t\tif (accountsdb.exists()) {\r\n\t\t\taccountsdbReader = new Scanner(accountsdb);\r\n\t\t\tint y = 0;\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\ty++;\r\n\t\t\t\taccountInfo = new String[y][4];\r\n\t\t\t\taccountsdbReader.nextLine();\r\n\t\t\t}\r\n\t\t\taccountsdbReader.close();\r\n\t\t}\r\n\r\n\t\tdouble depositAmount;\r\n\t\tdo {\r\n\t\t\tSystem.out.println(\"Enter the amount you want to deposit:\");\r\n\t\t\tdepositAmount = userInput.nextDouble();\r\n\t\t\tif (depositAmount < 0) {\r\n\t\t\t\tSystem.out.println(\"You cannot deposit a negative amount!\");\r\n\t\t\t}\r\n\r\n\t\t} while (depositAmount < 0);\r\n\t\taccount.setDeposit(depositAmount);\r\n\t\tSystem.out.println(\"Your deposit has been made.\");\r\n\r\n\t\tSystem.out.println(accountInfo.length);\r\n\r\n\t\tString s = \"\";\r\n\t\tif (accountsdb.exists()) {\r\n\t\t\tint y = 0;\r\n\t\t\taccountsdbReader = new Scanner(accountsdb);\r\n\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\ts = accountsdbReader.nextLine();\r\n\t\t\t\tStringTokenizer spl = new StringTokenizer(s, \" \");\r\n\t\t\t\tfor (int x = 0; x != 4; x++) {\r\n\t\t\t\t\taccountInfo[y][x] = spl.nextToken();\r\n\r\n\t\t\t\t}\r\n\t\t\t\ty++;\r\n\t\t\t}\r\n\t\t}\r\n/**\t\t\t\t\t\t\t\t\t\t\t VALIDATION PROOF\r\n *\t\tSystem.out.println(\"Line #1\" + \"\\n Index #0: \" + accountInfo[0][0] + \"\\t Index #1: \" + accountInfo[0][1]\r\n *\t\t\t\t+ \"\\t Index #2: \" + accountInfo[0][2] + \"\\t Index #3: \" + accountInfo[0][3]);\r\n *\t\tSystem.out.println(\"Line #2\" + \"\\n Index #0: \" + accountInfo[1][0] + \"\\t Index #1: \" + accountInfo[1][1]\r\n *\t\t\t\t+ \"\\t Index #2: \" + accountInfo[1][2] + \"\\t Index #3: \" + accountInfo[1][3]);\r\n *\t\tSystem.out.println(\"Line #3\" + \"\\n Index #0: \" + accountInfo[2][0] + \"\\t Index #1: \" + accountInfo[2][1]\r\n *\t\t\t\t+ \"\\t Index #2: \" + accountInfo[2][2] + \"\\t Index #3: \" + accountInfo[2][3]);\r\n *\t\tSystem.out.println(\"Line #4\" + \"\\n Index #0: \" + accountInfo[3][0] + \"\\t Index #1: \" + accountInfo[3][1]\r\n *\t\t\t\t+ \"\\t Index #2: \" + accountInfo[3][2] + \"\\t Index #3: \" + accountInfo[3][3]);\r\n *\t\t\t\t\r\n */\r\n\t\tint line = -1;\r\n\t\ttry {\r\n\r\n\t\t\tint accID;\r\n\t\t\tfor (int y = 0; y != accountInfo.length; y++) {\r\n\t\t\t\taccID = Integer.parseInt(accountInfo[y][0]);\r\n\t\t\t\tif (accID == account.getID())\r\n\t\t\t\t\tline = y;\r\n\r\n\t\t\t}\r\n\t\t\taccountInfo[line][2] = \"\" + account.getBalance();\r\n\t\t\tSystem.out.println(\"Depositing...\");\r\n\t\t\tSystem.out.println(\"New Balance: \" + accountInfo[line][2]);\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Account was not found in database array!\");\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tPrintWriter scrubFile = new PrintWriter(accountsdb);\r\n\t\t\tscrubFile.write(\"\");\r\n\t\t\tscrubFile.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tFileWriter fileWriter = new FileWriter(accountsdb, true);\r\n\t\t\tBufferedWriter fileBuffer = new BufferedWriter(fileWriter);\r\n\t\t\tPrintWriter fileOutput = new PrintWriter(fileBuffer);\r\n\t\t\tfor (int i = 0; i != accountInfo.length; i++) {\r\n\t\t\t\tfileOutput.println(accountInfo[i][0] + \" \" + accountInfo[i][1] + \" \" + accountInfo[i][2] + \" \"\r\n\t\t\t\t\t\t+ accountInfo[i][3]);\r\n\t\t\t}\r\n\r\n\t\t\tif (fileOutput != null) {\r\n\t\t\t\tfileOutput.close();\r\n\t\t\t}\r\n\t\t\tif (fileBuffer != null) {\r\n\t\t\t\tfileBuffer.close();\r\n\t\t\t}\r\n\t\t\tif (fileWriter != null) {\r\n\t\t\t\tfileWriter.close();\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\taccountsdbReader.close();\r\n\r\n\t}", "public Account load() throws IOException {\n Account account = new Account();\n try {\n FileReader fileReader = new FileReader(fileName);\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n //if (line.contains(\"#\")) { continue; }\n String[] info = line.split(\" @ \");\n\n switch (info[0]) {\n case \"INIT\":\n account.setToInitialize(Boolean.parseBoolean(info[1]));\n break;\n case \"BS\":\n account.setBaseSavings(Float.parseFloat((info[1])));\n break;\n case \"INC\":\n parseIncome(info, account);\n break;\n case \"EXP\":\n parseExpenditure(info, account);\n break;\n case \"G\":\n parseGoal(info, account);\n break;\n case \"INS\":\n parseInstalment(info, account);\n break;\n case \"LOA\":\n parseLoan(info, account);\n break;\n case \"BAN\":\n parseBankAccount(info, account);\n break;\n default:\n throw new DukeException(\"OOPS!! Your file has been corrupted/ input file is invalid!\");\n }\n }\n bufferedReader.close();\n } catch (FileNotFoundException err) {\n final File parentDir = new File(\"dataFG\");\n parentDir.mkdir();\n final String hash = \"moneyAccount\";\n final String fileName = hash + \".txt\";\n final File file = new File(parentDir, fileName);\n file.createNewFile();\n } catch (IOException | DateTimeParseException | DukeException e) {\n e.printStackTrace();\n }\n return account;\n }", "public static List<Account> getAccounts()\n\t{\n\t\treturn Application.getAccountLibrary().getAccounts();\n\t}", "public ArrayList<Account> GetCustomerAccounts(String ssn)\n {\n ArrayList<Account> result = new ArrayList<>();\n\n for (Account account : accounts)\n {\n if (account.getSsn().equals(ssn))\n {\n result.add(account);\n }\n }\n\n return result;\n }", "public static ArrayList<Account> getAccounts() {\n ArrayList<Account> accounts = new ArrayList<>();\n\n try (Statement statement = connection.createStatement()) {\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM LOGIN_ACCOUNTS\");\n while (resultSet.next()) { // as long as the next row is not null\n String username, password, firstName, lastName;\n int age;\n username = resultSet.getString(\"username\");\n password = resultSet.getString(\"password\");\n firstName = resultSet.getString(\"firstname\");\n lastName = resultSet.getString(\"lastname\");\n age = resultSet.getInt(\"age\");\n // place all the new items into a new Account object\n Account newAccount = new Account(username, password, firstName, lastName, age);\n // add the account to the list\n accounts.add(newAccount);\n }\n } catch (SQLException exc) {\n Logger.getLogger(Database.class.getName()).log(Level.SEVERE, null, exc);\n }\n\n return accounts;\n }", "@Override\n\tpublic List<Account> GetAllAccounts() {\n\t\tif(accountList.size() > 0)\n\t\t\treturn accountList;\n\t\treturn null;\n\t}", "public List<CoinbaseAccount> getCoinbaseAccounts() throws IOException {\n\n String path = \"/v2/accounts\";\n String apiKey = exchange.getExchangeSpecification().getApiKey();\n BigDecimal timestamp = coinbase.getTime(Coinbase.CB_VERSION_VALUE).getData().getEpoch();\n String signature = getSignature(timestamp, path);\n showCurl(apiKey, timestamp, signature, path);\n \n return coinbase.getAccounts(Coinbase.CB_VERSION_VALUE, apiKey, signature, timestamp).getData();\n }", "public void getAccountCheckins( Integer account_id ){\r\n Map<String, String> params = new HashMap<>();\r\n params.put(\"account_id\", String.valueOf(account_id));\r\n String url = API_DOMAIN + ACCOUNT_EXT + GET_CHECKINS;\r\n this.makeVolleyRequest( url, params );\r\n }", "private void loadTermLoanAccounts(String termLoanAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(termLoanAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //reading...\n String currentLine = input.nextLine();\n\n //parsing out on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data...\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n Date dueDate = dateFormat.parse(splitLine[5]);\n Date dateNotified = dateFormat.parse(splitLine[6]);\n double currentPaymentDue = Double.parseDouble(splitLine[7]);\n Date lastPaymentDate = dateFormat.parse(splitLine[8]);\n boolean missedPayment = Boolean.parseBoolean(splitLine[9]);\n char loanType = splitLine[10].charAt(0);\n TermLoanType termLoanType;\n\n //this determines whether the loan is long or short.\n if (loanType == 'S')\n {\n termLoanType = TermLoanType.SHORT;\n }\n else\n {\n termLoanType = TermLoanType.LONG;\n }\n\n int years = Integer.parseInt(splitLine[11]);\n\n TermLoan termLoanAccount = new TermLoan(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n dueDate,\n dateNotified,\n currentPaymentDue,\n lastPaymentDate,\n missedPayment,\n termLoanType,\n years);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n termLoanAccount.setTransactions(accountTransactions);\n\n //adds term loan accounts\n accounts.add(termLoanAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "public static void withdrawMoney(ATMAccount account) throws FileNotFoundException {\r\n\r\n\t\t// File initialization\r\n\t\taccountsdb = new File(\"accountsdb.txt\");\r\n\t\t// #ADDED THE 2-D ARRAY\r\n\t\tString[][] accountInfo = null;\r\n\r\n\t\tif (accountsdb.exists()) {\r\n\t\t\taccountsdbReader = new Scanner(accountsdb);\r\n\t\t\tint y = 0;\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\ty++;\r\n\t\t\t\taccountInfo = new String[y][4];\r\n\t\t\t\taccountsdbReader.nextLine();\r\n\t\t\t}\r\n\t\t\taccountsdbReader.close();\r\n\t\t}\r\n\r\n\t\tdouble withdrawAmount;\r\n\t\tdo {\r\n\t\t\tSystem.out.println(\"Enter the amount you want to withdraw:\");\r\n\t\t\twithdrawAmount = userInput.nextDouble();\r\n\t\t\tif (account.getBalance() < 0 || withdrawAmount > account.getBalance()) {\r\n\t\t\t\tSystem.out.println(\"Insufficient balance!\");\r\n\t\t\t} else {\r\n\t\t\t\taccount.setWithdraw(withdrawAmount);\r\n\t\t\t}\r\n\r\n\t\t} while (withdrawAmount < 0);\r\n\r\n\t\tString s = \"\";\r\n\t\tif (accountsdb.exists()) {\r\n\t\t\tint y = 0;\r\n\t\t\taccountsdbReader = new Scanner(accountsdb);\r\n\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\ts = accountsdbReader.nextLine();\r\n\t\t\t\tStringTokenizer spl = new StringTokenizer(s, \" \");\r\n\t\t\t\tfor (int x = 0; x != 4; x++) {\r\n\t\t\t\t\taccountInfo[y][x] = spl.nextToken();\r\n\r\n\t\t\t\t}\r\n\t\t\t\ty++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tint line = -1;\r\n\t\ttry {\r\n\r\n\t\t\tint accID;\r\n\t\t\tfor (int y = 0; y != accountInfo.length; y++) {\r\n\t\t\t\taccID = Integer.parseInt(accountInfo[y][0]);\r\n\t\t\t\tif (accID == account.getID())\r\n\t\t\t\t\tline = y;\r\n\r\n\t\t\t}\r\n\t\t\taccountInfo[line][2] = \"\" + account.getBalance();\r\n\t\t\tSystem.out.println(\"Withdrawing...\");\r\n\t\t\tSystem.out.println(\"New Balance: \" + accountInfo[line][2]);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tPrintWriter scrubFile = new PrintWriter(accountsdb);\r\n\t\t\tscrubFile.write(\"\");\r\n\t\t\tscrubFile.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tFileWriter fileWriter = new FileWriter(accountsdb, true);\r\n\t\t\tBufferedWriter fileBuffer = new BufferedWriter(fileWriter);\r\n\t\t\tPrintWriter fileOutput = new PrintWriter(fileBuffer);\r\n\t\t\tfor (int i = 0; i != accountInfo.length; i++) {\r\n\t\t\t\tfileOutput.println(accountInfo[i][0] + \" \" + accountInfo[i][1] + \" \" + accountInfo[i][2] + \" \"\r\n\t\t\t\t\t\t+ accountInfo[i][3]);\r\n\t\t\t}\r\n\r\n\t\t\tif (fileOutput != null) {\r\n\t\t\t\tfileOutput.close();\r\n\t\t\t}\r\n\t\t\tif (fileBuffer != null) {\r\n\t\t\t\tfileBuffer.close();\r\n\t\t\t}\r\n\t\t\tif (fileWriter != null) {\r\n\t\t\t\tfileWriter.close();\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\taccountsdbReader.close();\r\n\r\n\t}", "@Override\n public List<Account> listAccounts() {\n currentCustomer.findAndUpdateAccounts();\n // return list of accounts the customer owns\n return currentCustomer.getAccounts();\n }", "public List<CDAccount> findAccounts(Integer id) throws AccountNotFoundException {\n\t\treturn userService.findById(id).getCdAccounts();\n\t}", "public ArrayList getAccountList() throws RemoteException, SQLException, Exception;", "void activateAllAccounts(File file) throws ServiceException;", "public void getUserAccounts(){\n UserAccountDAO userAccountsManager = DAOFactory.getUserAccountDAO();\n //populate with values from the database\n if(!userAccountsManager.readUsersHavingResults(userAccounts)){\n //close the window due to read failure\n JOptionPane.showMessageDialog(rootPanel, \"Failed to read user accounts from database. Please check your internet connection and try again.\");\n System.exit(-4);\n }\n }", "private void setUserAccount() throws FileNotFoundException\r\n\t{\r\n\t\tint index = 0;\r\n\t\tFile inputFile = new File(\"UserAccount.txt\");\r\n\t\tScanner input = new Scanner(inputFile);\r\n\t\tif (!inputFile.exists())\r\n\t\t{\r\n\t\t\tSystem.out.println(\"The text file \\\"UserAccount.txt\\\" is missing\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\twhile(input.hasNextLine())\r\n\t\t{\r\n\t\t\tuserAccounts[0][index] = input.nextLine();\t\t\t//stores the username\r\n\t\t\tuserAccounts[1][index] = input.nextLine();\t\t\t//stores the password\r\n\t\t\tnumOfUsers++;\r\n\t\t\tindex++;\r\n\t\t}\r\n\t}", "public void adminLoad() {\n try {\n File file = new File(adminPath);\n Scanner scanner = new Scanner(file);\n while (scanner.hasNextLine()){\n String data = scanner.nextLine();\n String[]userData = data.split(separator);\n AdminAccounts adminAccounts = new AdminAccounts();\n adminAccounts.setUsername(userData[0]);\n adminAccounts.setPassword(userData[1]);\n users.add(adminAccounts);\n }\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic static void readUserFile() {\n\t\ttry {\n\t\t\tObjectInputStream readFile = new ObjectInputStream(new FileInputStream(userFile));\n\t\t\tVerify.userList = (ArrayList<User>) readFile.readObject();\n\t\t\treadFile.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 (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//add contents of file to separate lists\n\t\tfor (int i=0; i<Verify.userList.size(); i++) {\n\t\t\tVerify.userIds.add(Verify.userList.get(i).getUserId());\n\t\t\tVerify.usernames.add(Verify.userList.get(i).getUsername());\n\t\t\tif (Verify.userList.get(i).getAccounts() != null) {\n\t\t\t\tVerify.accountList.addAll(Verify.userList.get(i).getAccounts());\n\t\t\t}\n\t\t\tif (Verify.userList.get(i).getRequests() != null) {\n\t\t\t\tVerify.requestList.addAll(Verify.userList.get(i).getRequests());\t\n\t\t\t}\n\t\t}\n\t\tfor (Account account: Verify.accountList) {\n\t\t\tVerify.accountIds.add(account.getAccountId());\n\t\t}\n\t}", "public ArrayList<BankAccount> getAccounts() {\n return accounts;\n }", "private void createAccounts(){\r\n for(int i = 0; i < accountInTotal; i++){\r\n try {\r\n Account tempAccount = new Account(startingBonds);\r\n theAccounts.add(tempAccount);\r\n } catch(Exception e){\r\n System.err.println(\"Error\");\r\n }\r\n }\r\n }", "public static List<String> read() throws ApplicationException\r\n\t{\r\n\t\tBufferedReader customerReader = null;\r\n\t\tList<String> customers = new ArrayList<>();\r\n\t\t// LOG.debug(\"Reading\" + customerDataFile.getAbsolutePath());\r\n\t\ttry\r\n\t\t{\r\n\t\t\tcustomerReader = new BufferedReader(new FileReader(\"customers.dat\"));\r\n\r\n\t\t\tString line = null;\r\n\t\t\tline = customerReader.readLine(); // skip the header line\r\n\r\n\t\t\twhile ((line = customerReader.readLine()) != null)\r\n\t\t\t{\r\n\t\t\t\t// String customer = readCustomerString(line);\r\n\t\t\t\tcustomers.add(line);\r\n\t\t\t\t// customers.add(customer);\r\n\t\t\t\t// LOG.debug(\"Added \" + customer.toString() + \" as \" + customer.getId());\r\n\t\t\t}\r\n\t\t\tcustomerReader.close();\r\n\r\n\t\t} catch (IOException e)\r\n\t\t{\r\n\t\t\tLOG.error(e.getMessage());\r\n\t\t\tthrow new ApplicationException(e.getMessage());\r\n\t\t} finally\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tif (customerReader != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tcustomerReader.close();\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e)\r\n\t\t\t{\r\n\t\t\t\tLOG.error(e.getMessage());\r\n\t\t\t\tthrow new ApplicationException(e.getMessage());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn customers;\r\n\t}", "public List<Account> getEncryptedAccounts(String master_key) throws AEADBadTagException {\n List<Account> accounts = new ArrayList<>();\n Gson gson = new Gson();\n\n encryptedSharedPreferences = getEncryptedSharedPreferences(master_key);\n\n if (encryptedSharedPreferences != null) {\n Map<String, ?> all = encryptedSharedPreferences.getAll();\n\n for (Map.Entry<String, ?> entry : all.entrySet()) {\n if (!entry.getKey().equals(MASTER_KEY)) {\n //Log.d(TAG, \"Key: \" + entry.getKey() + \", Value: \" + String.valueOf(entry.getValue()));\n Account tmpAccount = gson.fromJson(String.valueOf(entry.getValue()), Account.class);\n accounts.add(tmpAccount);\n }\n }\n }\n\n return accounts;\n }", "public Accounts accounts() {\n return this.accounts;\n }", "public List<Accounts> getAllAccounts() {\n List<Accounts> accountList = new ArrayList<Accounts>();\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + TABLE_ACCOUNTS;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n Accounts account = new Accounts();\n account.setID(Integer.parseInt(cursor.getString(0)));\n account.setName(cursor.getString(1));\n account.setPassword(cursor.getString(2));\n account.setPhoneNumber(cursor.getString(3));\n account.setEmail(cursor.getString(4));\n // Adding account to list\n accountList.add(account);\n } while (cursor.moveToNext());\n }\n\n // return account list\n return accountList;\n }", "public List getAllAccounts() {\n\t\treturn null;\r\n\t}", "private static void assignBankAccounts() {\n\t\tfor (Customer customer : customerList) {\n\t\t\t//make sure customer has no current accounts before adding serialized accounts\n\t\t\tcustomer.clearAccounts();\n\t\t\t\n\t\t\tfor (BankAccount account : accountList) {\n\t\t\t\tif (account.getCustomer().getUsername().equals(customer.getUsername())) {\n\t\t\t\t\tcustomer.addAccount(account);\n\t\t\t\t} else if (account.getJointCustomer() != null\n\t\t\t\t\t\t&& account.getJointCustomer().getUsername().equals(customer.getUsername()))\n\t\t\t\t\tcustomer.addAccount(account);\n\t\t\t}\n\t\t}\n\t}", "public void readRecords()\r\n {\r\n RandomAccessAccountRecord record = new RandomAccessAccountRecord();\r\n\r\n System.out.printf( \"%-10s%-15s%-15s%10s\\n\", \"Account\",\r\n \"First Name\", \"Last Name\", \"Balance\" );\r\n\r\n try // read a record and display\r\n {\r\n while ( true )\r\n {\r\n do\r\n {\r\n record.read( input );\r\n } while ( record.getAccount() == 0 );\r\n\r\n // display record contents\r\n System.out.printf( \"%-10d%-12s%-12s%10.2f\\n\",\r\n record.getAccount(), record.getFirstName(),\r\n record.getLastName(), record.getBalance() );\r\n } // end while\r\n } // end try\r\n catch ( EOFException eofException ) // close file\r\n {\r\n return; // end of file was reached\r\n } // end catch\r\n catch ( IOException ioException )\r\n {\r\n System.err.println( \"Error reading file.\" );\r\n System.exit( 1 );\r\n } // end catch\r\n }", "public static AccountsFromLineOfCredit testGetAccountsForLineOfCredit() throws MambuApiException {\n\n\t\tSystem.out.println(\"\\nIn testGetAccountsForLineOfCredit\");\n\t\t// Test Get Accounts for a line of credit\n\n\t\tString lineOfCreditId = DemoUtil.demoLineOfCreditId;\n\t\tif (lineOfCreditId == null) {\n\t\t\tSystem.out.println(\"WARNING: No Demo Line of credit defined\");\n\t\t\treturn null;\n\t\t}\n\n\t\tLinesOfCreditService linesOfCreditService = MambuAPIFactory.getLineOfCreditService();\n\n\t\tSystem.out.println(\"\\nGetting all accounts for LoC with ID= \" + lineOfCreditId);\n\t\tAccountsFromLineOfCredit accountsForLoC = linesOfCreditService.getAccountsForLineOfCredit(lineOfCreditId);\n\t\t// Log returned results\n\t\tList<LoanAccount> loanAccounts = accountsForLoC.getLoanAccounts();\n\t\tList<SavingsAccount> savingsAccounts = accountsForLoC.getSavingsAccounts();\n\t\tSystem.out.println(\"Total Loan Accounts=\" + loanAccounts.size() + \"\\tTotal Savings Accounts=\"\n\t\t\t\t+ savingsAccounts.size() + \" for LoC=\" + lineOfCreditId);\n\n\t\treturn accountsForLoC;\n\t}", "void activateAccount(File file, int accountID) throws ServiceException;", "@Override\r\n\tpublic Account loadAccount(String accountNumber) {\n\t\tAccount account1=null;\r\n\t\ttry {\r\n\t\t\taccount1 = account.getclone(account);\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tString sql = \"SELECT a.accountNumber, a.balance, a.accountType, b.name, b.email, c.street, c.city, c.zip, c.state \"+\r\n \"FROM customer b \"+\r\n \"INNER JOIN address c \"+\r\n \"ON b.addressID = c.ID \"+\r\n \"INNER JOIN account a \"+\r\n \"ON b.ID = a.CustomerID \"+\r\n\t\t\"WHERE a.accountNumber = \"+accountNumber+\";\" ;\r\n\t\tPreparedStatement preparedStatement;\r\n\r\n\r\n\r\ntry {\r\n\r\n\tpreparedStatement = con.prepareStatement(sql);\r\n\t\r\n\t\r\n ResultSet rs=preparedStatement.executeQuery();\r\n\r\n\r\n while ( rs.next() ) {\r\n \taccount1.setAccountNumber(Integer.toString(rs.getInt(1)));\r\n \taccount1.setBalance((double) rs.getInt(2));\r\n \tAccountType accty=BankAccountType.CHECKING;\r\n \tif(\"SAVING\".equalsIgnoreCase(rs.getString(3))){\r\n \t\taccty=BankAccountType.SAVING;\r\n \t}\r\n \taccount1.setAccountType(accty);\r\n \taccount1.getCustomer().setName(rs.getString(4));\r\n \taccount1.getCustomer().setEmail(rs.getString(5));\r\n \taccount1.getCustomer().getAddress().setStreet(rs.getString(6));\r\n \taccount1.getCustomer().getAddress().setCity(rs.getString(7));\r\n \taccount1.getCustomer().getAddress().setZip(rs.getString(8));\r\n \taccount1.getCustomer().getAddress().setState(rs.getString(9));\r\n \taccount1.setAccountEntries(getAccountEntry(accountNumber));\r\n \t\r\n System.out.println(account1);\r\n \r\n }\r\n} catch (SQLException e) {\r\n\t// TODO Auto-generated catch block\r\n\tSystem.out.println(\"Connection Failed! Check output console\");\r\n\te.printStackTrace();\r\n}\r\nlog();\r\n\r\n \r\nreturn account1;\r\n\t}", "public ArrayList<TransactionDetailByAccount> getMissionChecksByAccount(\n\t\t\tlong accountId, FinanceDate start, FinanceDate end, long companyId)\n\t\t\tthrows AccounterException {\n\t\tSession session = HibernateUtil.getCurrentSession();\n\t\tArrayList<TransactionDetailByAccount> list = new ArrayList<TransactionDetailByAccount>();\n\n\t\tAccount account = (Account) session.get(Account.class, accountId);\n\t\tif (account == null) {\n\t\t\tthrow new AccounterException(Global.get().messages()\n\t\t\t\t\t.pleaseSelect(Global.get().messages().account()));\n\t\t}\n\t\tList result = new ArrayList();\n\t\tif (account.getType() == Account.TYPE_OTHER_CURRENT_ASSET) {\n\t\t\tresult = session\n\t\t\t\t\t.getNamedQuery(\"get.all.invoices.by.account\")\n\t\t\t\t\t.setParameter(\"startDate\", start.getDate())\n\t\t\t\t\t.setParameter(\"endDate\", end.getDate())\n\t\t\t\t\t.setParameter(\"companyId\", companyId)\n\t\t\t\t\t.setParameter(\"accountId\", accountId)\n\t\t\t\t\t.setParameter(\"tobePrint\", \"TO BE PRINTED\",\n\t\t\t\t\t\t\tEncryptedStringType.INSTANCE)\n\t\t\t\t\t.setParameter(\"empty\", \"\", EncryptedStringType.INSTANCE)\n\t\t\t\t\t.list();\n\t\t} else if (account.getType() == ClientAccount.TYPE_BANK) {\n\t\t\tresult = session\n\t\t\t\t\t.getNamedQuery(\"get.missing.checks.by.account\")\n\t\t\t\t\t.setParameter(\"accountId\", accountId)\n\t\t\t\t\t.setParameter(\"startDate\", start.getDate())\n\t\t\t\t\t.setParameter(\"endDate\", end.getDate())\n\t\t\t\t\t.setParameter(\"companyId\", companyId)\n\t\t\t\t\t.setParameter(\"tobePrint\", \"TO BE PRINTED\",\n\t\t\t\t\t\t\tEncryptedStringType.INSTANCE)\n\t\t\t\t\t.setParameter(\"empty\", \"\", EncryptedStringType.INSTANCE)\n\t\t\t\t\t.list();\n\t\t}\n\t\tIterator iterator = result.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tObject[] objects = (Object[]) iterator.next();\n\t\t\tTransactionDetailByAccount detailByAccount = new TransactionDetailByAccount();\n\t\t\tdetailByAccount\n\t\t\t\t\t.setTransactionId((Long) (objects[0] != null ? objects[0]\n\t\t\t\t\t\t\t: 0));\n\t\t\tdetailByAccount\n\t\t\t\t\t.setTransactionType((Integer) (objects[1] != null ? objects[1]\n\t\t\t\t\t\t\t: 0));\n\t\t\tdetailByAccount\n\t\t\t\t\t.setTransactionNumber((String) (objects[2] != null ? objects[2]\n\t\t\t\t\t\t\t: \"\"));\n\t\t\tClientFinanceDate date = new ClientFinanceDate(\n\t\t\t\t\t(Long) (objects[3] != null ? objects[3] : 0));\n\t\t\tdetailByAccount.setTransactionDate(date);\n\t\t\tdetailByAccount.setName((String) (objects[4] != null ? objects[4]\n\t\t\t\t\t: \"\"));\n\t\t\tdetailByAccount\n\t\t\t\t\t.setAccountName((String) (objects[5] != null ? objects[5]\n\t\t\t\t\t\t\t: \"\"));\n\t\t\tdetailByAccount.setMemo((String) (objects[6] != null ? objects[6]\n\t\t\t\t\t: \"\"));\n\t\t\tdetailByAccount.setTotal((Double) (objects[7] != null ? objects[7]\n\t\t\t\t\t: 0.0));\n\t\t\tlist.add(detailByAccount);\n\n\t\t}\n\t\treturn list;\n\t}", "List<ClientAccount> getAllClientAccounts() throws ServiceException;", "public void setAccounts(List<B2bInvoiceAccount> accounts) {\r\n this.accounts = accounts;\r\n }", "@PermitAll\n public List<AccountDetails> getAccountsOfCustomer(Long customerId)\n throws InvalidParameterException, CustomerNotFoundException {\n Debug.print(\"AccountControllerBean getAccountsOfCustomer\");\n\n Collection accounts = null;\n Customer customer = null;\n\n if (customerId == null) {\n throw new InvalidParameterException(\"null customerId\");\n }\n\n try {\n customer = em.find(Customer.class, customerId);\n\n if (customer == null) {\n throw new CustomerNotFoundException();\n } else {\n accounts = customer.getAccounts();\n }\n } catch (Exception ex) {\n throw new EJBException(ex);\n }\n\n return copyAccountsToDetails(accounts);\n }", "public List<B2bInvoiceAccount> getAccounts() {\r\n return this.accounts;\r\n }", "public void printAccounts() { \r\n\t\tif ( size == 0 ) {\r\n\t\t\tSystem.out.println(\"Accounts is empty\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"--Listing accounts in the database--\");\r\n\t\tfor(int i = 0; i < accounts.length; i++) {\r\n\t\t\tif ( accounts[i] != null ) {\r\n\t\t\t\tSystem.out.println(accounts[i].toString());\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"--end of listing--\");\r\n\t\tSystem.out.println();\r\n\t\treturn;\r\n\t}", "private void consumeAccountInfo() {\n Account[] accounts = mAccountManager.getAccountsByType(ACCOUNT_TYPE);\n Account account;\n if (accounts != null && accounts.length > 0) {\n account = accounts[0];\n } else {\n account = new Account(\"\", ACCOUNT_TYPE);\n }\n mAccountManager.getAuthToken(account, AUTH_TOKEN_TYPE, null, true, authTokenCallback, null);\n }", "public ArrayList<AccountInterface> getAccounts() {\n\t\treturn accounts;\n\t}", "private static void readUserListFromFile() {\n\t\tJSONParser parser = new JSONParser();\n\n\t\ttry (Reader reader = new FileReader(\"users.json\")) {\n\n\t\t\tJSONArray userListJSON = (JSONArray) parser.parse(reader);\n\n\t\t\tfor (int i = 0 ; i < userListJSON.size(); i++) {\n\t\t\t\tJSONObject user = (JSONObject) userListJSON.get(i);\n\t\t\t\tString name = (String) user.get(\"name\");\n\t\t\t\tString surname = (String) user.get(\"surname\");\n\t\t\t\tString username = (String) user.get(\"username\");\n\t\t\t\tString password = (String) user.get(\"password\");\n\t\t\t\tString account = (String) user.get(\"account\");\n\n\t\t\t\tif(account.equals(\"employee\")) {\n\t\t\t\t\tMain.userList.add(new Employee(username, name, surname, password));\n\t\t\t\t} else {\n\t\t\t\t\tMain.userList.add(new Customer(username, name, surname, password));\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Test\n public void testAddAccountFromFile() throws IOException {\n\n Set<Long> accountIdsSet = Sets.newHashSet();\n\n AwReporting.addAccountsFromFile(accountIdsSet, \"src/test/resources/util/account-for-test.txt\");\n\n Assert.assertEquals(4, accountIdsSet.size());\n\n Assert.assertTrue(accountIdsSet.contains(1235431234L));\n Assert.assertTrue(accountIdsSet.contains(3492871722L));\n Assert.assertTrue(accountIdsSet.contains(5731985421L));\n Assert.assertTrue(accountIdsSet.contains(3821071791L));\n Assert.assertFalse(accountIdsSet.contains(5471928097L));\n\n }", "@Override\n\tpublic ArrayList<User> getUsers(ArrayList<Account> accounts) {\n\t\tArrayList<User> users=new ArrayList<User>();\n\t\tfor(int i=0;i<accounts.size();i++)\n\t\t{\n\t\t\tusers.add(usersHashtable.get(accounts.get(i)));\n\t\t}\n\t\t\n\t\treturn users;\n\t}", "public HashMap<String, Accounts> getAccounts(){\n return accounts;\n }", "@Test\n public void testGetUserAccounts() {\n Bank bank = new Bank();\n User user = new User(\"Petr\", \"0000 000000\");\n AccountOfUser acc = new AccountOfUser(0, \"0000 0000 0000 0000\");\n AccountOfUser acc2 = new AccountOfUser(0, \"0000 0000 0000 0001\");\n List<AccountOfUser> accs = new ArrayList<>();\n accs.add(acc);\n accs.add(acc2);\n bank.addUser(user);\n bank.addAccountToUser(user.getPassport(), acc);\n bank.addAccountToUser(user.getPassport(), acc2);\n assertThat(bank.getUserAccounts(user.getPassport()), is(accs));\n }", "public List<AccountBean> getAllAccounts() {\n\t\tList<AccountBean> accountBeans = null;\n\t\tConnectionSource connectionSource = null;\n\t\tDao<AccountBean, Integer> contactDao = null;\n\n\t\ttry {\n\t\t\tconnectionSource = new AndroidConnectionSource(mDatabase);\n\t\t\tcontactDao = DaoManager.createDao(connectionSource,\n\t\t\t\t\tAccountBean.class);\n\t\t\taccountBeans = contactDao.queryBuilder()\n\t\t\t\t\t.orderBy(IConstants.ORDER_BY_UPDATED_AT, false).query();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn accountBeans;\n\t}", "private void initAccounts() {\n ((GenesisBlock) DependencyManager.getBlockchain().getGenesisBlock()).getAccountBalances().forEach((key, value) -> {\n Account account = getAccount(key);\n account.addBalance(value);\n });\n DependencyManager.getBlockchain().getChain().getChain().forEach(this::parseBlock);\n }", "@Override\r\n\tpublic List<AppAccount> findAllAppAccounts() {\r\n\t\tlogger.debug(\"findAllAppAccounts() method started\");\r\n\t\tList<AppAccount> models = new ArrayList<AppAccount>();\r\n\t\ttry {\r\n\t\t\t// call Repository method\r\n\t\t\tList<AppAccountEntity> entities = appAccRepository.findAll();\r\n\r\n\t\t\tif (entities.isEmpty()) {\r\n\t\t\t\tlogger.warn(\"***No Accounts found in Application****\");\r\n\t\t\t} else {\r\n\t\t\t\t// convert Entities to models\r\n\t\t\t\tfor (AppAccountEntity entity : entities) {\r\n\t\t\t\t\tAppAccount model = new AppAccount();\r\n\t\t\t\t\tBeanUtils.copyProperties(entity, model);\r\n\t\t\t\t\tmodels.add(model);\r\n\t\t\t\t}\r\n\t\t\t\tlogger.info(\"All Accounts details loaded successfully\");\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"Exception occured in findAllAppAccounts()::\" + e.getMessage());\r\n\t\t}\r\n\t\tlogger.debug(\"findAllAppAccounts() method ended\");\r\n\t\treturn models;\r\n\t}", "@HystrixCommand(fallbackMethod=\"getCustomerAccountListDegrade\")\n public List<Account> getCustomerAccountList(String id){\n \tSystem.out.println(\"account url=\"+accountSvcBaseUrl);\n \tRestTemplate restTemplate = new RestTemplate();\n \tURI accountUri = URI.create(String.format(\"%s/%s\", accountSvcBaseUrl,id));\n \tAccount[] userAccounts= restTemplate.getForObject(accountUri, Account[].class);\n \treturn (List<Account>)Arrays.asList(userAccounts);\n }", "public boolean collectAccountInfo(IBankAPI bankAPI){\n\t}", "private static Account[] findAccbySmth(RemoteBank bankService) throws Exception {\n\t\tAccount[] accounts = new Account[0];\n\t\tSystem.out.println(\"I want find Accounts by\\n\");\n\t\tSystem.out.println(\"1 - account name\\n\");\n\t\tSystem.out.println(\"2 - balance\\n\");\n\t\tint c = -1;\n\t\ttry {\n\t\t\tc = scanner.nextInt();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Incorrect data type\");\n\t\t\tthrow e;\n\t\t}\n\t\tswitch (c) {\n\t\t\tcase 1:\n\t\t\t\tSystem.out.println(\"Please enter account name at one line\\n\");\n\t\t\t\tscanner.nextLine();\n\t\t\t\tString accountName = scanner.nextLine();\n\t\t\t\taccounts = bankService.searchByAccountName(accountName);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tSystem.out.println(\"Please enter account balance at one line\\n\");\n\t\t\t\tdouble balance = 0;\n\t\t\t\ttry {\n\t\t\t\t\tbalance = scanner.nextDouble();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(\"Incorrect data type\");\n\t\t\t\t}\n\t\t\t\taccounts = bankService.searchByBalance(balance);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Incorrect choice\");\n\t\t\t\tbreak;\n\t\t}\n\t\treturn accounts;\n\t}", "private Account loadTestData(String dataFile) throws ParserConfigurationException, \n SAXException, IOException {\n try {\n // getting parser\n SAXParserFactory factory = SAXParserFactory.newInstance();\n factory.setNamespaceAware(true);\n SAXParser parser = factory.newSAXParser();\n XMLReader reader = parser.getXMLReader();\n \n // getting loader\n InvoiceXMLLoaderCH loader = new InvoiceXMLLoaderCH();\n \n // getting input file\n InputSource input = new InputSource(this.getClass().getResourceAsStream(dataFile));\n \n // setting content handler and parsing file\n reader.setContentHandler(loader);\n reader.parse(input);\n \n return (Account) loader.getAccountList().get(0);\n \n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n throw e;\n } catch (SAXException e) {\n e.printStackTrace();\n throw e;\n } catch (IOException e) {\n e.printStackTrace();\n throw e;\n }\n }", "public static Account[] getAllAccounts(IInternalContest contest, ClientType.Type type) {\n // SOMEDAY move getAllAccounts into AccountsUtility class\n\n Vector<Account> accountVector = contest.getAccounts(type);\n Account[] accounts = (Account[]) accountVector.toArray(new Account[accountVector.size()]);\n Arrays.sort(accounts, new AccountComparator());\n\n return accounts;\n }", "private void loadTransactions(String transactionFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(transactionFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //read...\n String currentLine = input.nextLine();\n\n //parse on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n int transactionId = Integer.parseInt(splitLine[0]);\n\n String accountTypeChar = splitLine[1];\n TransactionType transactionType = null;\n switch (accountTypeChar)\n {\n case \"D\":\n transactionType = TransactionType.DEBIT;\n break;\n\n case \"C\":\n transactionType = TransactionType.CREDIT;\n break;\n\n case \"T\":\n transactionType = TransactionType.TRANSFER;\n }\n\n String description = splitLine[2];\n Date date = dateFormat.parse(splitLine[3]);\n double amount = Double.parseDouble(splitLine[4]);\n int accountId = Integer.parseInt(splitLine[5]);\n\n Transaction transaction = new Transaction(transactionId,\n transactionType,\n description,\n date,\n amount,\n accountId);\n\n transactionHashMap.putIfAbsent(accountId, new ArrayList<>());\n transactionHashMap.get(accountId).add(transaction);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "@SuppressWarnings(\"unchecked\")\n private void saveAccounts() {\n JSONObject output = new JSONObject();\n JSONArray allaccounts = new JSONArray();\n for (Account account: accounts) {\n if (account.getName().equals(pickedAccount.getName())) {\n allaccounts.add(pickedAccount.toJsonObject());\n } else {\n allaccounts.add(account.toJsonObject());\n }\n }\n output.put(\"accounts\", allaccounts);\n\n try {\n FileWriter file = new FileWriter(\"./data/account.json\");\n file.write(output.toJSONString());\n file.flush();\n file.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@RequestLine(\"GET /accounts\")\n AccountList getAccountsListOfUser();", "@Override\n\tpublic List<Account> findAccountByIdUser(int id) {\n\t\treturn null;\n\t}", "public List<Account> getAccounts() throws SQLException {\r\n\t\tList<Account> accounts = new ArrayList<>();\r\n\t\tConnection connection = dbAdministration.getConnection();\r\n\t\tStatement statement = connection.createStatement();\r\n\t\t// Alle Datensätze der Account-Tabelle abrufen\r\n\t\tString sql = \"SELECT * FROM account\";\r\n\t\tResultSet resultSet = statement.executeQuery(sql);\r\n\t\tlogger.info(\"SQL-Statement ausgeführt: \" + sql);\r\n\t\twhile (resultSet.next()) {\r\n\t\t\t// Datensätze in Kontoobjekte umwandeln\r\n\t\t\tint id = resultSet.getInt(1);\r\n\t\t\tString owner = resultSet.getString(2);\r\n\t\t\tString number = resultSet.getString(3);\r\n\t\t\tAccount account = new Account();\r\n\t\t\taccount.setId(id);\r\n\t\t\taccount.setOwner(owner);\r\n\t\t\taccount.setNumber(number);\r\n\t\t\taccount.setTransactions(daTransaction.getTransactionHistory(number));\r\n\t\t\taccounts.add(account);\r\n\t\t}\r\n\t\tresultSet.close();\r\n\t\tstatement.close();\r\n\t\tconnection.close();\r\n\t\treturn accounts;\r\n\t}", "public Account getAccount(int accound_index){\n return accounts[accound_index];\n }", "String getAccountList(int accountId);", "@Override\n\tpublic void getInfo() throws FileNotFoundException {\n\t\t// declare and instantiate a scanner for the customers file\n\t\tScanner sc = new Scanner(this.customer);\n\n\t\t// instantiate the customer's first name\n\t\tthis.firstName = sc.next();\n\t\t// if the next line is blank (no last name), then instantiate the last\n\t\t// name to \"\" (empty string)\n\t\t// else, the customer has a last name, then instantiate the customer's\n\t\t// last name to the name in the file\n\t\tString temp = sc.next();\n\t\tif (temp.equals(Customer.EMPTY_LAST_NAME)) {\n\t\t\tthis.lastName = Customer.EMPTY_LAST_NAME;\n\t\t} else {\n\t\t\tthis.lastName = temp;\n\t\t}\n\n\t\t// instantiate instance variables to the values in the customer's file\n\t\t// and format all fields properly\n\t\tthis.updateUserName();\n\t\tthis.phoneNum = sc.next();\n\t\tthis.formatPhoneNum();\n\n\t\t// remove all existing transactions from list\n\t\twhile (this.transactions.size() > 0) {\n\t\t\tthis.transactions.remove(0);\n\t\t}\n\n\t\t// load all transaction numbers\n\t\twhile (sc.hasNextLine()) {\n\t\t\tthis.transactions.add(sc.next());\n\t\t}\n\n\t\t// close the scanner (finished reading)\n\t\tsc.close();\n\t}", "public void loadCustomerFromFile() throws IOException {\n\t\tString desktopPath = System.getProperty(\"user.home\") + \"\\\\Desktop\\\\customer\";\n\t\t\n\t\tFileInputStream fis = new FileInputStream(desktopPath);\n\t\tObjectInputStream ois = new ObjectInputStream(fis);\n\t\t\n\t\ttry {\n\t\t\tCustomer[] customersArr = (Customer[]) ois.readObject();\n\t\t\tcustomers.clear();\n\t\t\tcustomers.addAll(Arrays.asList(customersArr));\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tois.close();\n\t}", "public ArrayList<BankAccount> getAccounts() {\n\t\tString sql = \"SELECT id, name, balance, balance_saving FROM accounts WHERE id > ?\";\n\n\t\tArrayList<BankAccount> bankAccounts = new ArrayList<>();\n\n\t\ttry (PreparedStatement pstmt = dbConnection.prepareStatement(sql)) {\n\t\t\t// set the value\n\t\t\tpstmt.setInt(1, 0);\n\n\t\t\tResultSet rs = pstmt.executeQuery();\n\n\t\t\t// loop through the result set\n\t\t\twhile (rs.next()) {\n\t\t\t\tint id = rs.getInt(\"id\");\n\t\t\t\tString name = rs.getString(\"name\");\n\t\t\t\tint checking_balance = rs.getInt(\"balance\");\n\t\t\t\tint saving_balance = rs.getInt(\"balance_saving\");\n\n\t\t\t\tBankAccount bankAccount = new BankAccount(id, name, checking_balance, saving_balance);\n\t\t\t\tbankAccounts.add(bankAccount);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\n\t\treturn bankAccounts;\n\t}", "@Override\n public void loadDataFromFile(File file) {\n Gson gson = new Gson();\n try {\n Scanner scanner = new Scanner(file);\n while (scanner.hasNextLine()){\n IndividualCustomer customer =\n gson.fromJson(scanner.nextLine(),IndividualCustomer.class);\n customerList.add(customer);\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n }", "public final Collection<AfAccount> getAccounts() {\n return Collections.<AfAccount>unmodifiableCollection(_accounts.values());\n }", "public static ArrayList<Customer> getCustomerInfo() {\n File file = new File(\"./data/customer_ratings.csv\");\n Scanner scan;\n try {\n scan = new Scanner(file);\n\n } catch (IOException e) {\n throw new Error(\"Could not open customer ratings file\");\n }\n scan.nextLine();\n\n // Read File to get customer ID's\n ArrayList<Customer> customers = new ArrayList<Customer>();\n while (scan.hasNextLine()) {\n String line = scan.nextLine();\n String[] ratingParts = line.split(\"\\t\");\n int index = indexOfCustomer(customers, ratingParts[1]);\n if (index == -1) {\n Date lastActiveDate = Date.valueOf(ratingParts[3]);\n Customer customer = new Customer(ratingParts[1], lastActiveDate);\n customers.add(customer);\n } else {\n Date lastActiveDate = Date.valueOf(ratingParts[3]);\n updateLastActive(customers.get(index), lastActiveDate);\n }\n }\n\n // Close Scanner\n scan.close();\n\n // Return CustomerIDs\n return customers;\n }", "@ApiModelProperty(required = true, value = \"List of PSU account that are made available to the TPP \")\n @NotNull\n\n @Valid\n\n public List<AccountResource> getAccounts() {\n return accounts;\n }", "public void readAccount() throws Exception {\n\n\t\tFacebookAdaccountBuilder fbAccount = SocialEntity\n\t\t\t\t.facebookAccount(accessToken);\n\t\tfbAccount.addAccount(\"New Test AdAccount\", \"USD\", 1);\n\t\t// fbAccount.create();\n\n\t\tfbAccount.fetch(\"275668082617836\", \"name,timezone_name,users\");\n\t\t// fbAccount.fetch(\"578846975538588\");\n\t\tfor (AdAccount account : fbAccount.read()) {\n\t\t\tSystem.out.println(account.getAccountId());\n\t\t\tSystem.out.println(account.getTimezone_name());\n\t\t\tSystem.out.println(account.getName());\n\t\t\tSystem.out.println(account.getUsers().get(0).getRole());\n\t\t}\n\t}", "@Override\r\n\tpublic Collection<Account> getAccountsHashmap() {\n\t\treturn dataMap.values();\r\n\t}", "public static ArrayList<Account> arrAcc() {\n ArrayList<Account> acc = new ArrayList<>();\n ArrayList<Integer> bookmark1 = new ArrayList<>();\n bookmark1.add(0);\n bookmark1.add(1);\n ArrayList<Integer> bookmark2 = new ArrayList<>();\n bookmark2.add(0);\n acc.add(new Account(\"User1\", \"12345678\", \"User\", bookmark1));\n acc.add(new Account(\"User2\", \"12345678\", \"User\", bookmark1));\n acc.add(new Account(\"User3\", \"12345678\", \"User\", bookmark2));\n acc.add(new Account(\"AdminHuy\", \"123456789\", \"Administrator\", bookmark1));\n acc.add(new Account(\"AdminDiem\", \"123456789\", \"Administrator\", bookmark2));\n acc.add(new Account(\"EmMo\", \"12345678\", \"Translator\", bookmark1));\n acc.add(new Account(\"Roan\", \"12345678\", \"Translator\", bookmark1));\n acc.get(5).addProject(0);\n acc.get(6).addProject(1);\n return acc;\n }", "java.util.List<com.google.cloud.compute.v1.ServiceAccount> getServiceAccountsList();", "@Generated(hash = 96040862)\n public List<Account> getAccounts() {\n if (accounts == null) {\n final DaoSession daoSession = this.daoSession;\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n AccountDao targetDao = daoSession.getAccountDao();\n List<Account> accountsNew = targetDao._queryType_Accounts(id);\n synchronized (this) {\n if (accounts == null) {\n accounts = accountsNew;\n }\n }\n }\n return accounts;\n }", "public Account searchAccounts(Account account) {\n\t\treturn null;\r\n\t}", "void blockedAllAccounts(File file) throws ServiceException;", "private static Account getAccount(Node node) {\n if (node.getNodeType() == Node.ELEMENT_NODE) {\n Element element = (Element) node;\n int accNum = Integer.parseInt(getTagValue(\"accountNumber\", element));\n String password = getTagValue(\"password\", element);\n double balance = Double.parseDouble(getTagValue(\"accountBalance\", element));\n String cusName = getTagValue(\"customerName\", element);\n String cusAddress = getTagValue(\"customerAddress\", element);\n String cusPhone = getTagValue(\"customerPhoneNum\", element);\n return new Account(accNum, password, balance, cusName, cusAddress, cusPhone);\n }\n return new Account();\n }", "@Override\n\tpublic List<Account> findAllAccounts() {\n\t\treturn m_accountDao.findAll();\n\t}", "private void initAccountChoiceCache() {\n \tArrayList<AlertMeStorage.AlertMeUser> accounts = alertMe.getUserAccountList();\n \t//AlertMeStorage.AlertMeUser currentAcc = alertMe.getCurrentSession();\n \tint accSize = (accounts!=null && !accounts.isEmpty())? accounts.size():0;\n\t\tif (AlertMeConstants.DEBUGOUT) Log.w(TAG, \"initAccountChoiceCache() START\");\n \taccountNamesChoiceList = null;\n \taccountIDsChoiceList = null;\n \tif (accSize>1) {\n \t\tint i = 0;\n \t\tint cSz = accSize;\n \t\tCollections.sort(accounts, AlertMeStorage.AlertMeUser.getComparator(false));\n \t\taccountNamesChoiceList = new String[cSz];\n \t\taccountIDsChoiceList = new long[cSz];\n \t\tfor (AlertMeStorage.AlertMeUser account: accounts) {\n \t\t\tboolean addToList = false;\n \t\t\tif (account!=null && account.id!=-1) {\n \t\t\t\taddToList = true;\n \t\t\t}\n \t\t\tif (addToList) {\n \t\t\t\taccountNamesChoiceList[i] = account.username;\n \t\t\t\taccountIDsChoiceList[i] = account.id;\n \t\t\t\ti++;\n \t\t\t}\n \t\t}\n \t}\n\t\tif (AlertMeConstants.DEBUGOUT) Log.w(TAG, \"initAccountChoiceCache() END\");\n }", "public static void displayAccount(ArrayList<Account> accounts){\n if (accounts.isEmpty()){\r\n System.out.println(\"You have no account\");\r\n } else {\r\n //print out all the IDs\r\n System.out.println(\"List of all your ids:\");\r\n for (int i = 0; i < accounts.size(); i++){\r\n System.out.println(accounts.get(i).id);\r\n }\r\n\r\n //prompt user to choose a specific account\r\n System.out.println(\"Enter the id of your account\");\r\n Scanner input = new Scanner(System.in);\r\n boolean out = false;\r\n\r\n do {\r\n int idInput = input.nextInt();\r\n int idIndex = idIndex(accounts, idInput);\r\n \r\n //check ID input\r\n if (idIndex == -1){\r\n System.out.println(\"Invalid input of ID. Try again\");\r\n } else {\r\n if (accounts.get(idIndex) instanceof CheckingAccount){\r\n System.out.println(\"Account type: Checking\");\r\n accounts.get(idIndex).displayAccountInformation();\r\n System.out.println(\"The number of pending checks: \" + ((CheckingAccount)accounts.get(idIndex)).countPendingChecks());\r\n System.out.println();\r\n out = true;\r\n } else {\r\n System.out.println(\"Account type: Saving\");\r\n accounts.get(idIndex).displayAccountInformation();\r\n System.out.println();\r\n out = true;\r\n } \r\n }\r\n } while (out == false);\r\n }\r\n }", "public void loadFromLocalXML(Context context) {\n\n AccountManager.getInstance().reset();\n int _cnt = PreferenceManager.getDefaultSharedPreferences(context).getInt(\"Account_amount\", 0);\n for (int _iter = 0; _iter < _cnt; _iter++) {\n String[] _tmp;\n _tmp = PreferenceManager.getDefaultSharedPreferences(context).getString(\"Account_\" + String.valueOf(_iter), \"\").split(String.valueOf(separator));\n this.addAccount(_tmp[0], _tmp[1], _tmp[2], Integer.valueOf(_tmp[3]));\n }\n\n }", "public void addAccount(Account acct){\n int i = numberOfAccounts++; // Each time we addAccount..\n accounts[i] = acct; //..we store it to the account array.\n \n }", "boolean checkCust(String user, String pass){\r\n String [] lineSplit;\r\n \r\n try{\r\n out = new FileReader(\"Customer.txt\");\r\n BufferedReader read = new BufferedReader(out);\r\n \r\n String line;\r\n \r\n while((line = read.readLine()) != null){\r\n lineSplit = null;\r\n lineSplit = line.split(\",\");\r\n userName = lineSplit[0];\r\n password = lineSplit[1];\r\n \r\n if(user.equals(userName) && pass.equals(password)){\r\n return true; \r\n }\r\n }\r\n } catch (FileNotFoundException ex) {\r\n \r\n } catch (IOException ex) { \r\n } \r\n return false; \r\n }", "public List <Account> getAllAccountsByRIB(String RIB);", "List<TransactionRec> loadRecordsByAccount(BankAccount account);" ]
[ "0.7281389", "0.7113103", "0.684868", "0.68054795", "0.65327096", "0.6335997", "0.6318756", "0.62711936", "0.6166441", "0.6116488", "0.6107901", "0.6089233", "0.5895277", "0.5868905", "0.5861292", "0.5844721", "0.5819824", "0.581549", "0.5781676", "0.5749801", "0.57478416", "0.5724118", "0.57053936", "0.5656541", "0.56526077", "0.5628455", "0.5624386", "0.561072", "0.55567276", "0.554455", "0.5540364", "0.5537053", "0.5507666", "0.54880327", "0.5440137", "0.5429423", "0.54275024", "0.53979605", "0.5383786", "0.5357575", "0.53483444", "0.53301793", "0.53164935", "0.5311988", "0.53111327", "0.53077817", "0.53056735", "0.5288236", "0.5274979", "0.5272064", "0.52644974", "0.5259595", "0.52541083", "0.52503514", "0.524095", "0.5237267", "0.52369094", "0.52293617", "0.522042", "0.52146244", "0.52096903", "0.5205279", "0.51836747", "0.51709276", "0.5166669", "0.5160071", "0.5139378", "0.5121119", "0.5100864", "0.5085592", "0.5082421", "0.50804627", "0.5075842", "0.5069478", "0.5067835", "0.5066372", "0.5064529", "0.50578225", "0.5057057", "0.5052102", "0.50472176", "0.5038024", "0.50377446", "0.50314605", "0.50069314", "0.50036216", "0.5002486", "0.49871844", "0.4983395", "0.49808073", "0.49768022", "0.49700993", "0.49623734", "0.49599007", "0.49575025", "0.49530408", "0.49481136", "0.4944274", "0.49325785", "0.49301293" ]
0.72005796
1
endregion loadCheckingAccounts region loadSavingsAccounts this function loads in savings accounts from a flat file and stores the information in the accounts array.
private void loadSavingsAccounts(String savingsAccountFileName) { try { /* Open the file to read */ File inputFile = new File(savingsAccountFileName); /* Create a scanner to begin reading from file */ Scanner input = new Scanner(inputFile); while (input.hasNextLine()) { //read... String currentLine = input.nextLine(); //parse on commas... String[] splitLine = currentLine.split(","); //DateFormat class to parse Date from file DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT); //parsing out data... int accountId = Integer.parseInt(splitLine[0]); double balance = Double.parseDouble(splitLine[1]); String ssn = splitLine[2]; double interestRate = Double.parseDouble(splitLine[3]); Date dateOpened = dateFormat.parse(splitLine[4]); int overdraftAccountId = Integer.parseInt(splitLine[5]); Savings savingsAccount = new Savings(accountId, balance, ssn, interestRate, dateOpened, overdraftAccountId); ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId); savingsAccount.setTransactions(accountTransactions); //add savings account... accounts.add(savingsAccount); } input.close(); } catch (Exception e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadCheckingAccounts(String checkingAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(checkingAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //reading...\n String currentLine = input.nextLine();\n\n //parse on commas\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data...\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n int overdraftSavingsAccountId = Integer.parseInt(splitLine[5]);\n boolean isGoldDiamond = Boolean.parseBoolean(splitLine[6]);\n\n Checking checkingAccount = new Checking(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n overdraftSavingsAccountId,\n isGoldDiamond);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n checkingAccount.setTransactions(accountTransactions);\n\n //add checking account...\n accounts.add(checkingAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "private void loadAccounts() {\n JsonReader jsonReader = null;\n try {\n jsonReader = new JsonReader(parkinglots, \"account\");\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n try {\n accounts = jsonReader.findall();\n } catch (IOException | ParseException e) {\n e.printStackTrace();\n }\n }", "public static void UserAccounts() throws FileNotFoundException{\n\t\tScanner input = new Scanner(new File(AccountFile));\t\t\t\t//Creats objects and adds to array list.\r\n\t\t\r\n\t\twhile (input.hasNextLine()) {\t\t\t\t\t\t\t\t\t//Loops as long as there is another line\r\n\t\t\t\r\n\t\t\tString line = input.nextLine();\r\n\t\t\tif(line.equals(\"ADMIN\")) {\t\t\t\t\t\t\t\t\t//Checks if the data is for Admin, creats admin object\r\n\t\t\t\tString AdminUsername = input.nextLine();\r\n\t\t\t\tString AdminPassword = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tAdmin admin = new Admin(AdminUsername, AdminPassword);\r\n\t\t\t\taccounts.add(admin);\r\n\t\t\t\t\r\n\t\t\t} if(line.equals(\"COORDINATOR\")){\r\n\t\t\t\tString coordinatorUsername = input.nextLine();\r\n\t\t\t\tString coordinatorPassword = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tCoordinator coordinator = new Coordinator(coordinatorUsername, coordinatorPassword);\r\n\t\t\t\taccounts.add(coordinator);\r\n\r\n\t\t\t} if(line.equals(\"APPROVER\")){\r\n\t\t\t\tString approverUsername = input.nextLine();\r\n\t\t\t\tString approverPassword = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tApprover approver = new Approver(approverUsername, approverPassword);\r\n\t\t\t\taccounts.add(approver);\r\n\r\n\t\t\t} if(line.equals(\"CASUAL\")){\r\n\t\t\t\tString casualUsername = input.nextLine();\r\n\t\t\t\tString casualPassword = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tCasualStaff casual = new CasualStaff(casualUsername, casualPassword);\r\n\t\t\t\taccounts.add(casual);\r\n\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} loginSystem();\r\n\t}", "private void ReadInAccounts() {\n\t\tLog.d(\"SelectAccountActivity.ReadInAccounts\", \"checking for file\" + AccountMan.CheckForFile());\n\t\taccounts = AccountMan.GetAccounts();\n\t\t//Comment out this line and uncomment the line above after purging the excess accounts\n\t\t//accounts = AccountMan.PurgeDuplicateAccounts(AccountMan.GetAccounts());\n\t\tLog.d(\"SelectAccountActivity.ReadInAccounts\", String.valueOf(accounts.size()));\n\t}", "private void loadUsers() throws IOException {\n File accounts = new File(\"accounts.txt\");\n if (!accounts.exists()) {\n accounts.createNewFile();\n }\n\n FileInputStream fileInputStream = new FileInputStream(accounts);\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(fileInputStream));\n\n for (String line = bufferedReader.readLine(); line != null; line = bufferedReader.readLine()) {\n String[] pair = line.split(\":\");\n userAccounts.put(pair[0], pair[1]);\n }\n }", "public void importFile() {\n \ttry {\n\t File account_file = new File(\"accounts/CarerAccounts.txt\");\n\n\t FileReader file_reader = new FileReader(account_file);\n\t BufferedReader buff_reader = new BufferedReader(file_reader);\n\n\t String row;\n\t while ((row = buff_reader.readLine()) != null) {\n\t String[] account = row.split(\",\"); //implementing comma seperated value (CSV)\n\t String[] users = account[6].split(\"-\");\n\t int[] usersNew = new int[users.length];\n\t for (int i = 0; i < users.length; i++) {\n\t \tusersNew[i] = Integer.parseInt(users[i].trim());\n\t }\n\t this.add(Integer.parseInt(account[0]), account[1], account[2], account[3], account[4], account[5], usersNew);\n\t }\n\t buff_reader.close();\n } catch (IOException e) {\n System.out.println(\"Unable to read text file this time.\");\n \t}\n\t}", "private AccountDetails[] getAccountDetails() {\n String accountData = Utils.readFile(accountFile);\n return gson.fromJson(accountData, AccountDetails[].class);\n }", "public AccountManager(String transactionsFileName,\n String checkingAccountFileName,\n String savingsAccountFileName,\n String cdAccountFileName,\n String atmAccountFileName,\n String creditCardAccountFileName,\n String termLoanAccountFileName)\n {\n accounts = new ArrayList<>();\n\n //Load transactions first so the hash map is built\n loadTransactions(transactionsFileName);\n\n loadCheckingAccounts(checkingAccountFileName);\n loadSavingsAccounts(savingsAccountFileName);\n loadCDAccounts(cdAccountFileName);\n loadATMAccounts(atmAccountFileName);\n loadCreditCardAccounts(creditCardAccountFileName);\n loadTermLoanAccounts(termLoanAccountFileName);\n }", "public void setSavingsAccount(BankAccount newSavings) {\n this.savings = newSavings;\n }", "public void\tsaveAccounts() throws IOException;", "public static void withdrawMoney(ATMAccount account) throws FileNotFoundException {\r\n\r\n\t\t// File initialization\r\n\t\taccountsdb = new File(\"accountsdb.txt\");\r\n\t\t// #ADDED THE 2-D ARRAY\r\n\t\tString[][] accountInfo = null;\r\n\r\n\t\tif (accountsdb.exists()) {\r\n\t\t\taccountsdbReader = new Scanner(accountsdb);\r\n\t\t\tint y = 0;\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\ty++;\r\n\t\t\t\taccountInfo = new String[y][4];\r\n\t\t\t\taccountsdbReader.nextLine();\r\n\t\t\t}\r\n\t\t\taccountsdbReader.close();\r\n\t\t}\r\n\r\n\t\tdouble withdrawAmount;\r\n\t\tdo {\r\n\t\t\tSystem.out.println(\"Enter the amount you want to withdraw:\");\r\n\t\t\twithdrawAmount = userInput.nextDouble();\r\n\t\t\tif (account.getBalance() < 0 || withdrawAmount > account.getBalance()) {\r\n\t\t\t\tSystem.out.println(\"Insufficient balance!\");\r\n\t\t\t} else {\r\n\t\t\t\taccount.setWithdraw(withdrawAmount);\r\n\t\t\t}\r\n\r\n\t\t} while (withdrawAmount < 0);\r\n\r\n\t\tString s = \"\";\r\n\t\tif (accountsdb.exists()) {\r\n\t\t\tint y = 0;\r\n\t\t\taccountsdbReader = new Scanner(accountsdb);\r\n\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\ts = accountsdbReader.nextLine();\r\n\t\t\t\tStringTokenizer spl = new StringTokenizer(s, \" \");\r\n\t\t\t\tfor (int x = 0; x != 4; x++) {\r\n\t\t\t\t\taccountInfo[y][x] = spl.nextToken();\r\n\r\n\t\t\t\t}\r\n\t\t\t\ty++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tint line = -1;\r\n\t\ttry {\r\n\r\n\t\t\tint accID;\r\n\t\t\tfor (int y = 0; y != accountInfo.length; y++) {\r\n\t\t\t\taccID = Integer.parseInt(accountInfo[y][0]);\r\n\t\t\t\tif (accID == account.getID())\r\n\t\t\t\t\tline = y;\r\n\r\n\t\t\t}\r\n\t\t\taccountInfo[line][2] = \"\" + account.getBalance();\r\n\t\t\tSystem.out.println(\"Withdrawing...\");\r\n\t\t\tSystem.out.println(\"New Balance: \" + accountInfo[line][2]);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tPrintWriter scrubFile = new PrintWriter(accountsdb);\r\n\t\t\tscrubFile.write(\"\");\r\n\t\t\tscrubFile.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tFileWriter fileWriter = new FileWriter(accountsdb, true);\r\n\t\t\tBufferedWriter fileBuffer = new BufferedWriter(fileWriter);\r\n\t\t\tPrintWriter fileOutput = new PrintWriter(fileBuffer);\r\n\t\t\tfor (int i = 0; i != accountInfo.length; i++) {\r\n\t\t\t\tfileOutput.println(accountInfo[i][0] + \" \" + accountInfo[i][1] + \" \" + accountInfo[i][2] + \" \"\r\n\t\t\t\t\t\t+ accountInfo[i][3]);\r\n\t\t\t}\r\n\r\n\t\t\tif (fileOutput != null) {\r\n\t\t\t\tfileOutput.close();\r\n\t\t\t}\r\n\t\t\tif (fileBuffer != null) {\r\n\t\t\t\tfileBuffer.close();\r\n\t\t\t}\r\n\t\t\tif (fileWriter != null) {\r\n\t\t\t\tfileWriter.close();\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\taccountsdbReader.close();\r\n\r\n\t}", "public Account load() throws IOException {\n Account account = new Account();\n try {\n FileReader fileReader = new FileReader(fileName);\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n //if (line.contains(\"#\")) { continue; }\n String[] info = line.split(\" @ \");\n\n switch (info[0]) {\n case \"INIT\":\n account.setToInitialize(Boolean.parseBoolean(info[1]));\n break;\n case \"BS\":\n account.setBaseSavings(Float.parseFloat((info[1])));\n break;\n case \"INC\":\n parseIncome(info, account);\n break;\n case \"EXP\":\n parseExpenditure(info, account);\n break;\n case \"G\":\n parseGoal(info, account);\n break;\n case \"INS\":\n parseInstalment(info, account);\n break;\n case \"LOA\":\n parseLoan(info, account);\n break;\n case \"BAN\":\n parseBankAccount(info, account);\n break;\n default:\n throw new DukeException(\"OOPS!! Your file has been corrupted/ input file is invalid!\");\n }\n }\n bufferedReader.close();\n } catch (FileNotFoundException err) {\n final File parentDir = new File(\"dataFG\");\n parentDir.mkdir();\n final String hash = \"moneyAccount\";\n final String fileName = hash + \".txt\";\n final File file = new File(parentDir, fileName);\n file.createNewFile();\n } catch (IOException | DateTimeParseException | DukeException e) {\n e.printStackTrace();\n }\n return account;\n }", "public BankAccount(double checkingBalance, double savingsBalance) {\r\n\t\tthis.checkingBalance = checkingBalance;\r\n\t\tthis.savingsBalance = savingsBalance;\r\n\t\taccountsCount++;\r\n\t\ttotalAmount += checkingBalance;\r\n\t\ttotalAmount += savingsBalance;\r\n\t}", "public final void loadAccounts() {\n DBUtil.select(\n \"select id, created, account_name, account_pass, account_email, timezone from \"\n + ConfigUtil.getAntiFraudDatabaseSchema()\n + \".af_account\",\n new ResultSetProcessor() {\n @Override\n public void process(ResultSet resultSet) throws SQLException {\n while (resultSet.next() ) {\n AfAccount account = createAccountFromResultSet(resultSet);\n }\n }\n });\n }", "private void loadCreditCardAccounts(String creditCardAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(creditCardAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //read...\n String currentLine = input.nextLine();\n\n //parsing out on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data.\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n Date dueDate = dateFormat.parse(splitLine[5]);\n Date dateNotified = dateFormat.parse(splitLine[6]);\n double currentPaymentDue = Double.parseDouble(splitLine[7]);\n Date lastPaymentDate = dateFormat.parse(splitLine[8]);\n boolean missedPayment = Boolean.parseBoolean(splitLine[9]);\n double limit = Double.parseDouble(splitLine[10]);\n String creditCardNumber = splitLine[11];\n int cvv = Integer.parseInt(splitLine[12]);\n\n CreditCard creditCardAccount = new CreditCard(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n dueDate,\n dateNotified,\n currentPaymentDue,\n lastPaymentDate,\n missedPayment,\n limit,\n creditCardNumber,\n cvv);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n creditCardAccount.setTransactions(accountTransactions);\n\n //add credit cards\n accounts.add(creditCardAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "public Bank() throws Exception\r\n\t{\r\n\t\tScanner fileScan = new Scanner(new File(\"C:\\\\Users\\\\jason\\\\workspace\\\\proj1fa14\\\\bankdata.txt\"));\r\n\t\taccounts = new Account[10];\r\n\t\tnumAccounts = 0;\r\n\t\tCustomer customer;\r\n\t\tAccount account;\r\n\t\tfor(int i = 0; i<9; i++)\r\n\t\t{\r\n\t\t\tString first = fileScan.next();\r\n\t\t\t//System.out.println(first);\r\n\t\t\tString last = fileScan.next();\r\n\t\t\t//System.out.println(last);\r\n\t\t\tint age = fileScan.nextInt();\r\n\t\t\tString pN = fileScan.next();\r\n\t\t\tint ba = fileScan.nextInt();\r\n\t\t\tint ch = fileScan.nextInt();\r\n\t\t\tString accNum = fileScan.next();\r\n\t\t\tcustomer = new Customer(first,last,age,pN);\r\n\t\t\taccount = new Account(customer,ba,ch, accNum);\r\n\t\t\taccounts[i] = account;\r\n\t\t\tnumAccounts++;\r\n\t\t}\r\n\t\tfileScan.close();\r\n\t}", "@SuppressWarnings(\"unchecked\")\n private void saveAccounts() {\n JSONObject output = new JSONObject();\n JSONArray allaccounts = new JSONArray();\n for (Account account: accounts) {\n if (account.getName().equals(pickedAccount.getName())) {\n allaccounts.add(pickedAccount.toJsonObject());\n } else {\n allaccounts.add(account.toJsonObject());\n }\n }\n output.put(\"accounts\", allaccounts);\n\n try {\n FileWriter file = new FileWriter(\"./data/account.json\");\n file.write(output.toJSONString());\n file.flush();\n file.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void loadATMAccounts(String atmAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(atmAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //reading...\n String currentLine = input.nextLine();\n\n //parse on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parse out data...\n int accountId = Integer.parseInt(splitLine[0]);\n String ssn = splitLine[1];\n Date dateOpened = dateFormat.parse(splitLine[2]);\n int pin = Integer.parseInt(splitLine[3]);\n Date lastDateUsed = dateFormat.parse(splitLine[4]);\n int dailyUsageCount = Integer.parseInt(splitLine[5]);\n String cardNumber = splitLine[6];\n\n ATM atmAccount = new ATM(accountId,\n ssn,\n dateOpened,\n pin,\n lastDateUsed,\n dailyUsageCount,\n cardNumber);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n atmAccount.setTransactions(accountTransactions);\n\n //add ATM accounts...\n accounts.add(atmAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "public savingsAccount(){\n balance = 0;\n String[] sTransactions = new String[1000];\n savingTransactions = sTransactions;\n }", "private void loadTermLoanAccounts(String termLoanAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(termLoanAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //reading...\n String currentLine = input.nextLine();\n\n //parsing out on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data...\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n Date dueDate = dateFormat.parse(splitLine[5]);\n Date dateNotified = dateFormat.parse(splitLine[6]);\n double currentPaymentDue = Double.parseDouble(splitLine[7]);\n Date lastPaymentDate = dateFormat.parse(splitLine[8]);\n boolean missedPayment = Boolean.parseBoolean(splitLine[9]);\n char loanType = splitLine[10].charAt(0);\n TermLoanType termLoanType;\n\n //this determines whether the loan is long or short.\n if (loanType == 'S')\n {\n termLoanType = TermLoanType.SHORT;\n }\n else\n {\n termLoanType = TermLoanType.LONG;\n }\n\n int years = Integer.parseInt(splitLine[11]);\n\n TermLoan termLoanAccount = new TermLoan(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n dueDate,\n dateNotified,\n currentPaymentDue,\n lastPaymentDate,\n missedPayment,\n termLoanType,\n years);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n termLoanAccount.setTransactions(accountTransactions);\n\n //adds term loan accounts\n accounts.add(termLoanAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "List<Account> getAccounts(String login);", "public static void createSavings(ArrayList<Account> accounts, int id, double balance, double interestRate){\n SavingsAccount sAccount = new SavingsAccount(id, balance, interestRate);\r\n \r\n //add the account just created to array\r\n accounts.add(sAccount);\r\n System.out.println(\"Your account has been created. Information of your new account is below. \\n\");\r\n \r\n //get the current index of the id and print out the info\r\n int idIndex = idIndex(accounts, sAccount.getID());\r\n System.out.println(\"Account type: Saving\");\r\n accounts.get(idIndex).displayAccountInformation();\r\n }", "List<TransactionRec> loadRecordsByAccount(BankAccount account);", "public void setAccounts(List<B2bInvoiceAccount> accounts) {\r\n this.accounts = accounts;\r\n }", "public static void displayAccounts(ArrayList<Account> accounts){\n if (accounts.isEmpty()){\r\n System.out.println(\"There is no account\");\r\n } else {\r\n //print all accounts information\r\n System.out.println(\"All of your accounts are printed below: \\n\");\r\n for(int i = 0; i < accounts.size(); i++) {\r\n\r\n if (accounts.get(i) instanceof CheckingAccount){\r\n System.out.println(\"Account type: Checking\");\r\n accounts.get(i).displayAccountInformation();\r\n System.out.println(\"The number of pending checks: \" + ((CheckingAccount)accounts.get(i)).countPendingChecks());\r\n System.out.println();\r\n }\r\n \r\n if (accounts.get(i) instanceof SavingsAccount){\r\n System.out.println(\"Account type: Saving\");\r\n accounts.get(i).displayAccountInformation();\r\n System.out.println();\r\n } \r\n }\r\n }\r\n }", "public void setAccountings(vrealm_350275.Buyer.Ariba.ERPOrder_PurchOrdSplitDetailsLineItemsItemAccountings accountings) {\n this.accountings = accountings;\n }", "private void setUserAccount() throws FileNotFoundException\r\n\t{\r\n\t\tint index = 0;\r\n\t\tFile inputFile = new File(\"UserAccount.txt\");\r\n\t\tScanner input = new Scanner(inputFile);\r\n\t\tif (!inputFile.exists())\r\n\t\t{\r\n\t\t\tSystem.out.println(\"The text file \\\"UserAccount.txt\\\" is missing\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\twhile(input.hasNextLine())\r\n\t\t{\r\n\t\t\tuserAccounts[0][index] = input.nextLine();\t\t\t//stores the username\r\n\t\t\tuserAccounts[1][index] = input.nextLine();\t\t\t//stores the password\r\n\t\t\tnumOfUsers++;\r\n\t\t\tindex++;\r\n\t\t}\r\n\t}", "private void loadCDAccounts(String cdAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(cdAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //reading...\n String currentLine = input.nextLine();\n\n //parse on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parse out data...\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n Date startDate = dateFormat.parse(splitLine[5]);\n Date endDate = dateFormat.parse(splitLine[6]);\n\n CD cdAccount = new CD(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n startDate,\n endDate);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n cdAccount.setTransactions(accountTransactions);\n\n //add CD Accounts...\n accounts.add(cdAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "private static void assignBankAccounts() {\n\t\tfor (Customer customer : customerList) {\n\t\t\t//make sure customer has no current accounts before adding serialized accounts\n\t\t\tcustomer.clearAccounts();\n\t\t\t\n\t\t\tfor (BankAccount account : accountList) {\n\t\t\t\tif (account.getCustomer().getUsername().equals(customer.getUsername())) {\n\t\t\t\t\tcustomer.addAccount(account);\n\t\t\t\t} else if (account.getJointCustomer() != null\n\t\t\t\t\t\t&& account.getJointCustomer().getUsername().equals(customer.getUsername()))\n\t\t\t\t\tcustomer.addAccount(account);\n\t\t\t}\n\t\t}\n\t}", "public ArrayList<BankAccount> getAccounts() {\n\t\tString sql = \"SELECT id, name, balance, balance_saving FROM accounts WHERE id > ?\";\n\n\t\tArrayList<BankAccount> bankAccounts = new ArrayList<>();\n\n\t\ttry (PreparedStatement pstmt = dbConnection.prepareStatement(sql)) {\n\t\t\t// set the value\n\t\t\tpstmt.setInt(1, 0);\n\n\t\t\tResultSet rs = pstmt.executeQuery();\n\n\t\t\t// loop through the result set\n\t\t\twhile (rs.next()) {\n\t\t\t\tint id = rs.getInt(\"id\");\n\t\t\t\tString name = rs.getString(\"name\");\n\t\t\t\tint checking_balance = rs.getInt(\"balance\");\n\t\t\t\tint saving_balance = rs.getInt(\"balance_saving\");\n\n\t\t\t\tBankAccount bankAccount = new BankAccount(id, name, checking_balance, saving_balance);\n\t\t\t\tbankAccounts.add(bankAccount);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\n\t\treturn bankAccounts;\n\t}", "public static void depositMoney(ATMAccount account) throws FileNotFoundException {\r\n\t\taccountsdb = new File(\"accountsdb.txt\");\r\n\t\t//Use of two dimensional array to account for line number\r\n\t\tString[][] accountInfo = null;\r\n\r\n\t\tif (accountsdb.exists()) {\r\n\t\t\taccountsdbReader = new Scanner(accountsdb);\r\n\t\t\tint y = 0;\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\ty++;\r\n\t\t\t\taccountInfo = new String[y][4];\r\n\t\t\t\taccountsdbReader.nextLine();\r\n\t\t\t}\r\n\t\t\taccountsdbReader.close();\r\n\t\t}\r\n\r\n\t\tdouble depositAmount;\r\n\t\tdo {\r\n\t\t\tSystem.out.println(\"Enter the amount you want to deposit:\");\r\n\t\t\tdepositAmount = userInput.nextDouble();\r\n\t\t\tif (depositAmount < 0) {\r\n\t\t\t\tSystem.out.println(\"You cannot deposit a negative amount!\");\r\n\t\t\t}\r\n\r\n\t\t} while (depositAmount < 0);\r\n\t\taccount.setDeposit(depositAmount);\r\n\t\tSystem.out.println(\"Your deposit has been made.\");\r\n\r\n\t\tSystem.out.println(accountInfo.length);\r\n\r\n\t\tString s = \"\";\r\n\t\tif (accountsdb.exists()) {\r\n\t\t\tint y = 0;\r\n\t\t\taccountsdbReader = new Scanner(accountsdb);\r\n\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\ts = accountsdbReader.nextLine();\r\n\t\t\t\tStringTokenizer spl = new StringTokenizer(s, \" \");\r\n\t\t\t\tfor (int x = 0; x != 4; x++) {\r\n\t\t\t\t\taccountInfo[y][x] = spl.nextToken();\r\n\r\n\t\t\t\t}\r\n\t\t\t\ty++;\r\n\t\t\t}\r\n\t\t}\r\n/**\t\t\t\t\t\t\t\t\t\t\t VALIDATION PROOF\r\n *\t\tSystem.out.println(\"Line #1\" + \"\\n Index #0: \" + accountInfo[0][0] + \"\\t Index #1: \" + accountInfo[0][1]\r\n *\t\t\t\t+ \"\\t Index #2: \" + accountInfo[0][2] + \"\\t Index #3: \" + accountInfo[0][3]);\r\n *\t\tSystem.out.println(\"Line #2\" + \"\\n Index #0: \" + accountInfo[1][0] + \"\\t Index #1: \" + accountInfo[1][1]\r\n *\t\t\t\t+ \"\\t Index #2: \" + accountInfo[1][2] + \"\\t Index #3: \" + accountInfo[1][3]);\r\n *\t\tSystem.out.println(\"Line #3\" + \"\\n Index #0: \" + accountInfo[2][0] + \"\\t Index #1: \" + accountInfo[2][1]\r\n *\t\t\t\t+ \"\\t Index #2: \" + accountInfo[2][2] + \"\\t Index #3: \" + accountInfo[2][3]);\r\n *\t\tSystem.out.println(\"Line #4\" + \"\\n Index #0: \" + accountInfo[3][0] + \"\\t Index #1: \" + accountInfo[3][1]\r\n *\t\t\t\t+ \"\\t Index #2: \" + accountInfo[3][2] + \"\\t Index #3: \" + accountInfo[3][3]);\r\n *\t\t\t\t\r\n */\r\n\t\tint line = -1;\r\n\t\ttry {\r\n\r\n\t\t\tint accID;\r\n\t\t\tfor (int y = 0; y != accountInfo.length; y++) {\r\n\t\t\t\taccID = Integer.parseInt(accountInfo[y][0]);\r\n\t\t\t\tif (accID == account.getID())\r\n\t\t\t\t\tline = y;\r\n\r\n\t\t\t}\r\n\t\t\taccountInfo[line][2] = \"\" + account.getBalance();\r\n\t\t\tSystem.out.println(\"Depositing...\");\r\n\t\t\tSystem.out.println(\"New Balance: \" + accountInfo[line][2]);\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Account was not found in database array!\");\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tPrintWriter scrubFile = new PrintWriter(accountsdb);\r\n\t\t\tscrubFile.write(\"\");\r\n\t\t\tscrubFile.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tFileWriter fileWriter = new FileWriter(accountsdb, true);\r\n\t\t\tBufferedWriter fileBuffer = new BufferedWriter(fileWriter);\r\n\t\t\tPrintWriter fileOutput = new PrintWriter(fileBuffer);\r\n\t\t\tfor (int i = 0; i != accountInfo.length; i++) {\r\n\t\t\t\tfileOutput.println(accountInfo[i][0] + \" \" + accountInfo[i][1] + \" \" + accountInfo[i][2] + \" \"\r\n\t\t\t\t\t\t+ accountInfo[i][3]);\r\n\t\t\t}\r\n\r\n\t\t\tif (fileOutput != null) {\r\n\t\t\t\tfileOutput.close();\r\n\t\t\t}\r\n\t\t\tif (fileBuffer != null) {\r\n\t\t\t\tfileBuffer.close();\r\n\t\t\t}\r\n\t\t\tif (fileWriter != null) {\r\n\t\t\t\tfileWriter.close();\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\taccountsdbReader.close();\r\n\r\n\t}", "private void createAccounts(){\r\n for(int i = 0; i < accountInTotal; i++){\r\n try {\r\n Account tempAccount = new Account(startingBonds);\r\n theAccounts.add(tempAccount);\r\n } catch(Exception e){\r\n System.err.println(\"Error\");\r\n }\r\n }\r\n }", "public BankAccount getSavingsAccount() {\n return this.savings;\n }", "public void loadFromLocalXML(Context context) {\n\n AccountManager.getInstance().reset();\n int _cnt = PreferenceManager.getDefaultSharedPreferences(context).getInt(\"Account_amount\", 0);\n for (int _iter = 0; _iter < _cnt; _iter++) {\n String[] _tmp;\n _tmp = PreferenceManager.getDefaultSharedPreferences(context).getString(\"Account_\" + String.valueOf(_iter), \"\").split(String.valueOf(separator));\n this.addAccount(_tmp[0], _tmp[1], _tmp[2], Integer.valueOf(_tmp[3]));\n }\n\n }", "public List<Account> getAccounts(String customerName){\n List<Account> accounts = new ArrayList<>();\n try {\n accounts = getAccountsFromFile();\n } catch (Exception e) {\n System.out.println(messageService.unexpectedError(e));\n }\n System.out.println(accounts.stream().filter(a -> a.getCustomerName().equals(customerName))\n .collect(Collectors.toList()));\n return accounts.stream().filter(a -> a.getCustomerName().equals(customerName))\n .collect(Collectors.toList());\n }", "private static void testdeleteAndAddSavingsAccounts(String lineOfCreditId, List<SavingsAccount> accounts)\n\t\t\tthrows MambuApiException {\n\n\t\tSystem.out.println(\"\\nIn testdeleteAndAddSavingsAccounts for LoC=\" + lineOfCreditId);\n\n\t\tLinesOfCreditService linesOfCreditService = MambuAPIFactory.getLineOfCreditService();\n\t\tString accountId = null;\n\t\tif (accounts == null || accounts.size() == 0) {\n\t\t\tSystem.out.println(\"WARNING: no Savings Account to remove for LoC=\" + lineOfCreditId);\n\t\t} else {\n\t\t\t// We have assigned accounts. Test remove and then test adding it back\n\t\t\t// Test removing Savings Account. Accounts requiring LoC cannot be removed, so try until can\n\t\t\tfor (SavingsAccount account : accounts) {\n\t\t\t\taccountId = account.getId();\n\t\t\t\ttry {\n\t\t\t\t\tboolean deleted = linesOfCreditService.deleteSavingsAccount(lineOfCreditId, accountId);\n\t\t\t\t\tSystem.out.println(\"Removed Status=\" + deleted + \"\\tAccount with ID=\" + accountId\n\t\t\t\t\t\t\t+ \" deleted from LoC=\" + lineOfCreditId);\n\t\t\t\t\t;\n\t\t\t\t\t// Deleted OK, now add the same back\n\t\t\t\t\tSavingsAccount addedAccount = linesOfCreditService.addSavingsAccount(lineOfCreditId, accountId);\n\t\t\t\t\tSystem.out.println(\"Added Savings Account with ID=\" + addedAccount.getId() + \" to LoC=\"\n\t\t\t\t\t\t\t+ lineOfCreditId);\n\t\t\t\t} catch (MambuApiException e) {\n\t\t\t\t\tSystem.out.println(\"Failed to remove account \" + accountId + \"\\tMessage=\" + e.getErrorMessage());\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t}", "private void initAccounts() {\n ((GenesisBlock) DependencyManager.getBlockchain().getGenesisBlock()).getAccountBalances().forEach((key, value) -> {\n Account account = getAccount(key);\n account.addBalance(value);\n });\n DependencyManager.getBlockchain().getChain().getChain().forEach(this::parseBlock);\n }", "public void adminLoad() {\n try {\n File file = new File(adminPath);\n Scanner scanner = new Scanner(file);\n while (scanner.hasNextLine()){\n String data = scanner.nextLine();\n String[]userData = data.split(separator);\n AdminAccounts adminAccounts = new AdminAccounts();\n adminAccounts.setUsername(userData[0]);\n adminAccounts.setPassword(userData[1]);\n users.add(adminAccounts);\n }\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "public static void displayAccount(ArrayList<Account> accounts){\n if (accounts.isEmpty()){\r\n System.out.println(\"You have no account\");\r\n } else {\r\n //print out all the IDs\r\n System.out.println(\"List of all your ids:\");\r\n for (int i = 0; i < accounts.size(); i++){\r\n System.out.println(accounts.get(i).id);\r\n }\r\n\r\n //prompt user to choose a specific account\r\n System.out.println(\"Enter the id of your account\");\r\n Scanner input = new Scanner(System.in);\r\n boolean out = false;\r\n\r\n do {\r\n int idInput = input.nextInt();\r\n int idIndex = idIndex(accounts, idInput);\r\n \r\n //check ID input\r\n if (idIndex == -1){\r\n System.out.println(\"Invalid input of ID. Try again\");\r\n } else {\r\n if (accounts.get(idIndex) instanceof CheckingAccount){\r\n System.out.println(\"Account type: Checking\");\r\n accounts.get(idIndex).displayAccountInformation();\r\n System.out.println(\"The number of pending checks: \" + ((CheckingAccount)accounts.get(idIndex)).countPendingChecks());\r\n System.out.println();\r\n out = true;\r\n } else {\r\n System.out.println(\"Account type: Saving\");\r\n accounts.get(idIndex).displayAccountInformation();\r\n System.out.println();\r\n out = true;\r\n } \r\n }\r\n } while (out == false);\r\n }\r\n }", "public static void createChecking(ArrayList<Account> accounts, int id, double balance, double interestRate) throws IOException{\n CheckingAccount cAccount = new CheckingAccount(id, balance, interestRate);\r\n \r\n //add the account just created to array\r\n accounts.add(cAccount);\r\n System.out.println(\"Your account has been created. Information of your new account is below. \\n\");\r\n \r\n //get the current index of the id and print out the info\r\n int idIndex = idIndex(accounts, cAccount.getID());\r\n System.out.println(\"Account type: Checking\");\r\n accounts.get(idIndex).displayAccountInformation();\r\n }", "@Transactional\r\n\tpublic Set<BudgetAccount> loadBudgetAccounts() {\r\n\t\treturn budgetAccountDAO.findAllBudgetAccounts();\r\n\t}", "public static ATMAccount LogIn() throws FileNotFoundException, IOException, InterruptedException {\r\n\t\tATMAccount account = null;\r\n\t\tSystem.out.println(\"Enter your account ID:\");\r\n\t\tint intaccID;\r\n\t\tintaccID = userInput.nextInt();\r\n\t\tString accID = intaccID + \"\";\r\n\t\tString[] dataGrabbed = new String[4];\r\n\t\tFile thisFile = new File(\"accountsdb.txt\");\r\n\t\taccountsdbReader = new Scanner(thisFile);\r\n\r\n\t\tif (thisFile.exists()) {\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\tString accountIDHolder = accountsdbReader.findInLine(accID);\r\n\t\t\t\tif (accountIDHolder == null) {\r\n\r\n\t\t\t\t\taccountsdbReader.nextLine();\r\n\t\t\t\t} else if (accountIDHolder.equals(accID)) {\r\n\t\t\t\t\tfor (int i = 1; i < dataGrabbed.length; i++) {\r\n\t\t\t\t\t\tif (accountsdbReader.hasNext())\r\n\t\t\t\t\t\t\tdataGrabbed[i] = accountsdbReader.next();\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if ((!(accountsdbReader.hasNextLine()) && account == null)) {\r\n\t\t\t\t\tSystem.out.println(\"This account does not exist!\");\r\n\t\t\t\t\tATMStartScreen();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tdataGrabbed[0] = accID;\r\n\r\n\t\t\t}\r\n\t\t\tint validationLoop = 3;\r\n\t\t\tString pinValidity;\r\n\t\t\tuserInput.nextLine();\r\n\t\t\tdo {\r\n\t\t\t\tSystem.out.println(\"Please enter your 4 digit pin in order to access your account:\");\r\n\t\t\t\tpinValidity = userInput.nextLine();\r\n\t\t\t\tif (pinValidity.equals(dataGrabbed[3])) {\r\n\t\t\t\t\tSystem.out.println(\"PIN Confirmed!\");\r\n\t\t\t\t\tSystem.out.println(\"Displaying account options...\");\r\n\t\t\t\t\taccount = new ATMAccount(Integer.parseInt(dataGrabbed[0]), dataGrabbed[1],\r\n\t\t\t\t\t\t\tInteger.parseInt(dataGrabbed[3]), Double.parseDouble(dataGrabbed[2]));\r\n\r\n\t\t\t\t\treturn account;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tSystem.out.println(\"PIN Declined!\");\r\n\t\t\t\t\tSystem.out.println(\"You have \" + validationLoop + \" attempts remaining.\");\r\n\r\n\t\t\t\t}\r\n\t\t\t\tvalidationLoop--;\r\n\t\t\t} while (!pinValidity.equals(dataGrabbed[3]) && validationLoop != -1);\r\n\t\t\tSystem.out.println(\"You have exhausted all of your attempts you will now return to the main menu.\");\r\n\t\t} else {\r\n\t\t\t// Return to StartScreen before being able to return null account\r\n\t\t\tSystem.out.println(\"File was not found!\");\r\n\t\t\tSystem.out.println(\"Returning to main menu...\");\r\n\t\t\tATMStartScreen();\r\n\t\t}\r\n\t\tSystem.out.println(\"Returning to main menu...\");\r\n\t\tATMStartScreen();\r\n\t\treturn null;\r\n\r\n\t}", "public void readRecords()\r\n {\r\n RandomAccessAccountRecord record = new RandomAccessAccountRecord();\r\n\r\n System.out.printf( \"%-10s%-15s%-15s%10s\\n\", \"Account\",\r\n \"First Name\", \"Last Name\", \"Balance\" );\r\n\r\n try // read a record and display\r\n {\r\n while ( true )\r\n {\r\n do\r\n {\r\n record.read( input );\r\n } while ( record.getAccount() == 0 );\r\n\r\n // display record contents\r\n System.out.printf( \"%-10d%-12s%-12s%10.2f\\n\",\r\n record.getAccount(), record.getFirstName(),\r\n record.getLastName(), record.getBalance() );\r\n } // end while\r\n } // end try\r\n catch ( EOFException eofException ) // close file\r\n {\r\n return; // end of file was reached\r\n } // end catch\r\n catch ( IOException ioException )\r\n {\r\n System.err.println( \"Error reading file.\" );\r\n System.exit( 1 );\r\n } // end catch\r\n }", "public Bank(String name, int accs){\n bankAccounts = new Account[accs];\n bankName = name;\n maxAccounts = accs;\n currAccounts = 0; //empty\n }", "@Test\n public void testAddAccountFromFile() throws IOException {\n\n Set<Long> accountIdsSet = Sets.newHashSet();\n\n AwReporting.addAccountsFromFile(accountIdsSet, \"src/test/resources/util/account-for-test.txt\");\n\n Assert.assertEquals(4, accountIdsSet.size());\n\n Assert.assertTrue(accountIdsSet.contains(1235431234L));\n Assert.assertTrue(accountIdsSet.contains(3492871722L));\n Assert.assertTrue(accountIdsSet.contains(5731985421L));\n Assert.assertTrue(accountIdsSet.contains(3821071791L));\n Assert.assertFalse(accountIdsSet.contains(5471928097L));\n\n }", "@Override\r\n\tpublic Account loadAccount(String accountNumber) {\n\t\tAccount account1=null;\r\n\t\ttry {\r\n\t\t\taccount1 = account.getclone(account);\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tString sql = \"SELECT a.accountNumber, a.balance, a.accountType, b.name, b.email, c.street, c.city, c.zip, c.state \"+\r\n \"FROM customer b \"+\r\n \"INNER JOIN address c \"+\r\n \"ON b.addressID = c.ID \"+\r\n \"INNER JOIN account a \"+\r\n \"ON b.ID = a.CustomerID \"+\r\n\t\t\"WHERE a.accountNumber = \"+accountNumber+\";\" ;\r\n\t\tPreparedStatement preparedStatement;\r\n\r\n\r\n\r\ntry {\r\n\r\n\tpreparedStatement = con.prepareStatement(sql);\r\n\t\r\n\t\r\n ResultSet rs=preparedStatement.executeQuery();\r\n\r\n\r\n while ( rs.next() ) {\r\n \taccount1.setAccountNumber(Integer.toString(rs.getInt(1)));\r\n \taccount1.setBalance((double) rs.getInt(2));\r\n \tAccountType accty=BankAccountType.CHECKING;\r\n \tif(\"SAVING\".equalsIgnoreCase(rs.getString(3))){\r\n \t\taccty=BankAccountType.SAVING;\r\n \t}\r\n \taccount1.setAccountType(accty);\r\n \taccount1.getCustomer().setName(rs.getString(4));\r\n \taccount1.getCustomer().setEmail(rs.getString(5));\r\n \taccount1.getCustomer().getAddress().setStreet(rs.getString(6));\r\n \taccount1.getCustomer().getAddress().setCity(rs.getString(7));\r\n \taccount1.getCustomer().getAddress().setZip(rs.getString(8));\r\n \taccount1.getCustomer().getAddress().setState(rs.getString(9));\r\n \taccount1.setAccountEntries(getAccountEntry(accountNumber));\r\n \t\r\n System.out.println(account1);\r\n \r\n }\r\n} catch (SQLException e) {\r\n\t// TODO Auto-generated catch block\r\n\tSystem.out.println(\"Connection Failed! Check output console\");\r\n\te.printStackTrace();\r\n}\r\nlog();\r\n\r\n \r\nreturn account1;\r\n\t}", "public void setCheckingAccount(BankAccount newChecking) {\n this.checkingAccount = newChecking;\n }", "void activateAllAccounts(File file) throws ServiceException;", "public static void load() {\r\n\t\ttransList = new ArrayList<Transaction>();\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"loading all trans...\");\r\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(\"src/transaction.csv\"));\r\n\t\t\treader.readLine();\r\n\t\t\tString line = null;\r\n\t\t\twhile ((line = reader.readLine()) != null) {\r\n\t\t\t\tString item[] = line.split(\",\");\r\n\t\t\t\tString type = item[0];\r\n\t\t\t\tint acc = Integer.parseInt(item[1]);\r\n\t\t\t\tdouble amount = Double.parseDouble(item[2]);\r\n\t\t\t\tint year = Integer.parseInt(item[3]);\r\n\t\t\t\tint month = Integer.parseInt(item[4]);\r\n\t\t\t\tint date = Integer.parseInt(item[5]);\r\n\t\t\t\tCalendar cal = Calendar.getInstance();\r\n\t\t\t\tcal.set(year, month - 1, date);\r\n\t\t\t\tif (type.charAt(0) == 'w') {\r\n\t\t\t\t\tWithdrawal trans = new Withdrawal(acc, amount, cal);\r\n\t\t\t\t\ttransList.add(trans);\r\n\t\t\t\t\tSystem.out.println(trans.toFile());\r\n\t\t\t\t} else if (type.charAt(0) == 'd') {\r\n\t\t\t\t\tboolean cleared = Boolean.parseBoolean(item[6]);\r\n\t\t\t\t\tDeposit trans = new Deposit(acc, amount, cal, cleared);\r\n\t\t\t\t\ttransList.add(trans);\r\n\t\t\t\t\tSystem.out.println(trans.toFile());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treader.close();\r\n\t\t\tSystem.out.println(\"loading finished\");\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic static void readUserFile() {\n\t\ttry {\n\t\t\tObjectInputStream readFile = new ObjectInputStream(new FileInputStream(userFile));\n\t\t\tVerify.userList = (ArrayList<User>) readFile.readObject();\n\t\t\treadFile.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 (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//add contents of file to separate lists\n\t\tfor (int i=0; i<Verify.userList.size(); i++) {\n\t\t\tVerify.userIds.add(Verify.userList.get(i).getUserId());\n\t\t\tVerify.usernames.add(Verify.userList.get(i).getUsername());\n\t\t\tif (Verify.userList.get(i).getAccounts() != null) {\n\t\t\t\tVerify.accountList.addAll(Verify.userList.get(i).getAccounts());\n\t\t\t}\n\t\t\tif (Verify.userList.get(i).getRequests() != null) {\n\t\t\t\tVerify.requestList.addAll(Verify.userList.get(i).getRequests());\t\n\t\t\t}\n\t\t}\n\t\tfor (Account account: Verify.accountList) {\n\t\t\tVerify.accountIds.add(account.getAccountId());\n\t\t}\n\t}", "public List<CDAccount> findAccounts(Integer id) throws AccountNotFoundException {\n\t\treturn userService.findById(id).getCdAccounts();\n\t}", "public ArrayList<BankAccount> getAccounts() {\n return accounts;\n }", "private void loadTransactions(String transactionFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(transactionFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //read...\n String currentLine = input.nextLine();\n\n //parse on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n int transactionId = Integer.parseInt(splitLine[0]);\n\n String accountTypeChar = splitLine[1];\n TransactionType transactionType = null;\n switch (accountTypeChar)\n {\n case \"D\":\n transactionType = TransactionType.DEBIT;\n break;\n\n case \"C\":\n transactionType = TransactionType.CREDIT;\n break;\n\n case \"T\":\n transactionType = TransactionType.TRANSFER;\n }\n\n String description = splitLine[2];\n Date date = dateFormat.parse(splitLine[3]);\n double amount = Double.parseDouble(splitLine[4]);\n int accountId = Integer.parseInt(splitLine[5]);\n\n Transaction transaction = new Transaction(transactionId,\n transactionType,\n description,\n date,\n amount,\n accountId);\n\n transactionHashMap.putIfAbsent(accountId, new ArrayList<>());\n transactionHashMap.get(accountId).add(transaction);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "public void getAccountCheckins( Integer account_id ){\r\n Map<String, String> params = new HashMap<>();\r\n params.put(\"account_id\", String.valueOf(account_id));\r\n String url = API_DOMAIN + ACCOUNT_EXT + GET_CHECKINS;\r\n this.makeVolleyRequest( url, params );\r\n }", "public static List<Account> getAccounts()\n\t{\n\t\treturn Application.getAccountLibrary().getAccounts();\n\t}", "public BankAccount getCheckingAccount() {\n return checkingAccount;\n }", "void blockedAllAccounts(File file) throws ServiceException;", "public SavingsAccount() {\n\t}", "public void addAccount(Account acct){\n int i = numberOfAccounts++; // Each time we addAccount..\n accounts[i] = acct; //..we store it to the account array.\n \n }", "private static void initializeLists() {\n\t\t\n\t\t//read from serialized files to assign array lists\n\t\t//customerList = (ArrayList<Customer>) readObject(customerFile);\n\t\t//employeeList = (ArrayList<Employee>) readObject(employeeFile);\n\t\t//applicationList = (ArrayList<Application>) readObject(applicationFile);\n\t\t//accountList = (ArrayList<BankAccount>) readObject(accountFile);\n\t\t\n\t\t//read from database to assign array lists\n\t\temployeeList = (ArrayList<Employee>)employeeDao.readAll();\n\t\tcustomerList = (ArrayList<Customer>)customerDao.readAll();\n\t\taccountList = (ArrayList<BankAccount>) accountDao.readAll();\n\t\tapplicationList = (ArrayList<Application>)applicationDao.readAll();\n\t\t\n\t\tassignBankAccounts();\n\t}", "@Override\n\tpublic List<Account> findAccountByIdUser(int id) {\n\t\treturn null;\n\t}", "List<Account> getAccountsForCustomerId(int customerId);", "public SavingsAccount() {\n super();\n }", "@FXML\n void importFile(ActionEvent event) throws FileNotFoundException{\n \tFileChooser chooser = new FileChooser();\n\t\tchooser.setTitle(\"Open Source File for the Import\");\n\t\tchooser.getExtensionFilters().addAll(new ExtensionFilter(\"Text Files\", \"*.txt\"),\n\t\t\t\tnew ExtensionFilter(\"All Files\", \"*.*\"));\n\t\tStage stage = new Stage();\n\t\t\n\t\t//get the reference of the source file\n\t\tFile sourceFile = chooser.showOpenDialog(stage); \n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tmessageArea.appendText(\"Importing from file: \" + sourceFile.toString() + \"...\\n\\n\");\n\t\t\tScanner reader;\n\t\t\treader = new Scanner(sourceFile);\n\t\t\t\n\t\t\tScanner scanner = null;\n\t\t\twhile(reader.hasNext()) {\n\t\t\t\t\t\n\t\t\t\tscanner = new Scanner(reader.nextLine());\n\t\t\t\tscanner.useDelimiter(\",\");\n\t\t\t\t\n\t\t\t\tString fName;\n\t\t\t\tString lName;\n\t\t\t\tdouble balance;\n\t\t\t\tString date ;\n\t\t\t\tboolean special;\n\t\t\t\tint withdrawals;\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\t\n\t\t\t\t\twhile(scanner.hasNext()) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tString accountType = scanner.next();\n\t\t\t\t\t\t\n\t\t\t\t\t\t//add Savings account to db\n\t\t\t\t\t\tif(accountType.equals(\"S\")) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfName = scanner.next();\n\t\t\t\t\t\t\tlName = scanner.next();\n\t\t\t\t\t\t\tbalance = scanner.nextDouble();\n\t\t\t\t\t\t\tdate = scanner.next();\n\t\t\t\t\t\t\tspecial = scanner.nextBoolean();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tProfile profile = new Profile(fName, lName);\n\t\t\t\t\t\t\tDate dateOpen = new Date(date);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tSavings savings = new Savings(profile, balance, dateOpen, special);\n\t\t\t\t\t\t\tdb.add(savings);\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}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Add Checking account to db\n\t\t\t\t\t\tif(accountType.equals(\"C\")) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfName = scanner.next();\n\t\t\t\t\t\t\tlName = scanner.next();\n\t\t\t\t\t\t\tbalance = scanner.nextDouble();\n\t\t\t\t\t\t\tdate = scanner.next();\n\t\t\t\t\t\t\tspecial = scanner.nextBoolean();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tProfile profile = new Profile(fName, lName);\n\t\t\t\t\t\t\tDate dateOpen = new Date(date);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tChecking checking = new Checking(profile, balance, dateOpen, special);\n\t\t\t\t\t\t\tdb.add(checking);\n\t\t\t\t\t\t\t\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//Add Money Market account to db\n\t\t\t\t\t\tif(accountType.equals(\"M\")) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfName = scanner.next();\n\t\t\t\t\t\t\tlName = scanner.next();\n\t\t\t\t\t\t\tbalance = scanner.nextDouble();\n\t\t\t\t\t\t\tdate = scanner.next();\n\t\t\t\t\t\t\twithdrawals = scanner.nextInt();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tProfile profile = new Profile(fName, lName);\n\t\t\t\t\t\t\tDate dateOpen = new Date(date);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tMoneyMarket mm = new MoneyMarket(profile, balance, dateOpen);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor(int i = 0; i < withdrawals; i++) {\n\t\t\t\t\t\t\t\tmm.setWithdrawals();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdb.add(mm);\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\n\t\t\t\t \n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t} catch(InputMismatchException e) {\n\t\t\t\t\tmessageArea.appendText(\"Invalid input data type, account not created.\\n\");\n\t\t\t\t}\n\t\t\t\tcatch(NoSuchElementException e) {\n\t\t\t\t\tmessageArea.appendText(\"No such element exception, not enough information provided so account not created.\\n\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tscanner.close();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\treader.close();\n\t\t\tmessageArea.appendText(\"\\nFile imported.\\n\");\n\t\t} catch (NullPointerException e) {\n\t\t\tmessageArea.appendText(\"File not selected, unable to import transactions to file.\\n\");\n\t\t}\n\t\t\t\n\t\t\t\n\t}", "private Account loadTestData(String dataFile) throws ParserConfigurationException, \n SAXException, IOException {\n try {\n // getting parser\n SAXParserFactory factory = SAXParserFactory.newInstance();\n factory.setNamespaceAware(true);\n SAXParser parser = factory.newSAXParser();\n XMLReader reader = parser.getXMLReader();\n \n // getting loader\n InvoiceXMLLoaderCH loader = new InvoiceXMLLoaderCH();\n \n // getting input file\n InputSource input = new InputSource(this.getClass().getResourceAsStream(dataFile));\n \n // setting content handler and parsing file\n reader.setContentHandler(loader);\n reader.parse(input);\n \n return (Account) loader.getAccountList().get(0);\n \n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n throw e;\n } catch (SAXException e) {\n e.printStackTrace();\n throw e;\n } catch (IOException e) {\n e.printStackTrace();\n throw e;\n }\n }", "public static void main(String[] args) {\n\t\tint accountInput = -1;\r\n\t\twhile(accountInput != 5){\r\n\t\t\tSystem.out.println(\"\\nWelcome to the bank.\\n 1) Existing Account Holder\\n 2) Open a New Account\\nWhat would you like to do? \");\r\n\t\t\tScanner s = new Scanner(System.in);\r\n\t\t\tint mainInput = s.nextInt();\r\n\t\t\tif(mainInput == 1){\r\n\t\t\t\tFileWriter fw = null;\r\n\t\t\t\tPrintWriter pw = null;\r\n\t\t\t\tFileReader fr = null;\r\n\t\t\t\tBufferedReader br = null;\r\n\t\t\t\tboolean incorrectLogin = true;\r\n\t\t\t\tString username = null;\r\n\t\t\t\tString password = null;\r\n\t\t\t\tString line = null;\r\n\t\t\t\tCheckingAccount C;\r\n\t\t\t\tCheckingAccount C1;\r\n\t\t\t\tSavingsAccount S;\r\n\t\t\t\tSavingsAccount S1;\r\n\t\t\t\tboolean quit = true;\r\n\t\t\t\tboolean filenotfound = false;\r\n\t\t\t\tboolean quitstate = false;\r\n\t\t\t\twhile(incorrectLogin){\r\n\t\t\t\t\tSystem.out.println(\"Username: \");\r\n\t\t\t\t\tusername = s.next();\r\n\t\t\t\t\tif(quitstate){\r\n\t\t\t\t\t\tif(username.equals(\"q\")) break;\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\tquitstate = false;\r\n\t\t\t\t\t\t\tquit = 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\ttry {\r\n\t\t\t\t\t\tfr = new FileReader(\"./Users.txt\");\r\n\t\t\t\t\t\tbr = new BufferedReader(fr);\r\n\t\t\t\t\t\tline = br.readLine();\r\n\t\t\t\t\t\twhile(line != null){\r\n\t\t\t\t\t\t\tString[] arr = line.split(\" \");\r\n\t\t\t\t\t\t\tif(username.equals(arr[0])){\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Password: \");\r\n\t\t\t\t\t\t\t\tpassword = s.next();\r\n\t\t\t\t\t\t\t\tif(password.equals(arr[1])){\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Welcome to your accounts, \" + username + \".\");\r\n\t\t\t\t\t\t\t\t\tquit = false;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tline = br.readLine();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(quit){\r\n\t\t\t\t\t\t\tincorrectLogin = true;\r\n\t\t\t\t\t\t\tSystem.out.println(\"Iím sorry, but that username and password does not match any at our bank. Please try again (or enter \\'q\\' to return to the main menu).\");\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tquitstate = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse incorrectLogin = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch(FileNotFoundException e){\r\n\t\t\t\t\t\tSystem.out.println(\"Iím sorry, but that username and password does not match any at our bank. Please try again (or enter \\'q\\' to return to the main menu).\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tfilenotfound = true;\r\n\t\t\t\t\t\tincorrectLogin = false;\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tfw = new FileWriter(\"./Users.txt\");\r\n\t\t\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tpw = new PrintWriter(fw);\r\n\t\t\t\t\t\t\r\n\t\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(!quit){\r\n\t\t\t\t\tString [] arr = line.split(\" \");\r\n\t\t\t\t\tC = new CheckingAccount(Double.parseDouble(arr[2]));\r\n\t\t\t\t\tC1 = C;\r\n\t\t\t\t\tif(C.getBalance() + Double.parseDouble(arr[3]) < 1000 ){\r\n\t\t\t\t\t\tS = new Basic(Double.parseDouble(arr[3]));\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(C.getBalance() + Double.parseDouble(arr[3]) < 10000 ){\r\n\t\t\t\t\t\tS = new Premium(Double.parseDouble(arr[3]));\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tS = new Deluxe(Double.parseDouble(arr[3]));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tS1 = S;\r\n\t\t\t\t\twhile(accountInput!=5){\r\n\t\t\t\t\t\tSystem.out.println(\"\\n 1) View Account Information\\n 2) Make a Deposit\\n 3) Make a Withdrawal\\n 4) Determine Balance in x Years\\n 5) Logout \\nWhat would you like to do? \");\r\n\t\t\t\t\t\taccountInput = s.nextInt();\r\n\t\t\t\t\t\tif(accountInput == 1){\r\n\t\t\t\t\t\t\tSystem.out.println(\"You have a Checking account with a balance of $ \" + C.getBalance());\r\n\t\t\t\t\t\t\tSystem.out.println(\"You have a \" + S.getAccountType() + \" account with a balance of $ \" + S.getBalance());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(accountInput == 2){\r\n\t\t\t\t\t\t\tSystem.out.println(\"Here are the accounts you have: \\n 1) Checking\\n 2) \" + S.getAccountType() + \"\\nInto which account would you like to make a deposit?\");\r\n\t\t\t\t\t\t\tint depIn = s.nextInt();\r\n\t\t\t\t\t\t\tif(depIn == 1){\r\n\t\t\t\t\t\t\t\tboolean Negative = true;\r\n\t\t\t\t\t\t\t\tdouble checkingsDeposit = 0;\r\n\t\t\t\t\t\t\t\tboolean tryagain = false;\r\n\t\t\t\t\t\t\t\twhile(Negative){\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"How much to deposit into your checking account? \");\r\n\t\t\t\t\t\t\t\t\tif(s.hasNextDouble()){\r\n\t\t\t\t\t\t\t\t\t\tcheckingsDeposit = s.nextDouble();\t\r\n\t\t\t\t\t\t\t\t\t\ttryagain = false;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\\"\" + s.next() + \"\\\" is not a valid amount.\");\r\n\t\t\t\t\t\t\t\t\t\ttryagain = true;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif(!tryagain){\r\n\t\t\t\t\t\t\t\t\t\tif(checkingsDeposit > 0) Negative = false;\r\n\t\t\t\t\t\t\t\t\t\telse System.out.println(\"You are not allowed to deposit a negative amount.\");\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"$\" + checkingsDeposit + \" has been deposited into your checking account\");\r\n\t\t\t\t\t\t\t\tC1 = new CheckingAccount(C.getBalance() + checkingsDeposit);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if(depIn == 2){\r\n\t\t\t\t\t\t\t\tboolean Negative = true;\r\n\t\t\t\t\t\t\t\tdouble savingsDeposit = 0;\r\n\t\t\t\t\t\t\t\tboolean tryagain = false;\r\n\t\t\t\t\t\t\t\twhile(Negative){\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"How much to deposit into your \" + S.getAccountType() + \" account? \");\r\n\t\t\t\t\t\t\t\t\tif(s.hasNextDouble()){\r\n\t\t\t\t\t\t\t\t\t\tsavingsDeposit = s.nextDouble();\t\r\n\t\t\t\t\t\t\t\t\t\ttryagain = false;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\\"\" + s.next() + \"\\\" is not a valid amount.\");\r\n\t\t\t\t\t\t\t\t\t\ttryagain = true;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif(!tryagain){\r\n\t\t\t\t\t\t\t\t\t\tif(savingsDeposit > 0) Negative = false;\r\n\t\t\t\t\t\t\t\t\t\telse System.out.println(\"You are not allowed to deposit a negative amount.\");\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"$\" + savingsDeposit + \" has been deposited into your \" + S.getAccountType() + \" account\");\r\n\t\t\t\t\t\t\t\tS1 = new SavingsAccount(S.getBalance() + savingsDeposit);\r\n\t\t\t\t\t\t\t\tif(S1.getBalance() + C1.getBalance() < 1000){\r\n\t\t\t\t\t\t\t\t\tS1 = new Basic(S1.getBalance());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if(S1.getBalance() + C1.getBalance() < 10000){\r\n\t\t\t\t\t\t\t\t\tS1 = new Premium(S1.getBalance());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\tS1 = new Deluxe(S1.getBalance());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(accountInput == 3){\r\n\t\t\t\t\t\t\tSystem.out.println(\"Here are the accounts you have: \\n 1) Checking\\n 2) \" + S.getAccountType() + \"\\nFrom which account would you like to withdraw?\");\r\n\t\t\t\t\t\t\tint withOut = s.nextInt();\r\n\t\t\t\t\t\t\tif(withOut == 1){\r\n\t\t\t\t\t\t\t\tboolean Negative = true;\r\n\t\t\t\t\t\t\t\tboolean TooMuch = true;\r\n\t\t\t\t\t\t\t\tdouble checkingsWithdrawal = 0;\r\n\t\t\t\t\t\t\t\tboolean tryagain = false;\r\n\t\t\t\t\t\t\t\twhile(Negative||TooMuch){\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"How much to withdraw? \");\r\n\t\t\t\t\t\t\t\t\tif(s.hasNextDouble()){\r\n\t\t\t\t\t\t\t\t\t\tcheckingsWithdrawal= s.nextDouble();\t\r\n\t\t\t\t\t\t\t\t\t\ttryagain = false;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\\"\" + s.next() + \"\\\" is not a valid amount.\");\r\n\t\t\t\t\t\t\t\t\t\ttryagain = true;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif(!tryagain){\r\n\t\t\t\t\t\t\t\t\t\tif(checkingsWithdrawal > C.getBalance()){\r\n\t\t\t\t\t\t\t\t\t\t\tNegative = false;\r\n\t\t\t\t\t\t\t\t\t\t\tTooMuch = true;\r\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"You do not have $\" + checkingsWithdrawal + \" in your checking account.\");\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\telse if(checkingsWithdrawal > 0){\r\n\t\t\t\t\t\t\t\t\t\t\tNegative = false;\r\n\t\t\t\t\t\t\t\t\t\t\tTooMuch = false;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"You are not allowed to withdrawal a negative amount.\");\r\n\t\t\t\t\t\t\t\t\t\t\tNegative = true;\r\n\t\t\t\t\t\t\t\t\t\t\tTooMuch = false;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"$\" + checkingsWithdrawal + \" withdrawn from your checking account\");\r\n\t\t\t\t\t\t\t\tC1 = new CheckingAccount(C.getBalance() - checkingsWithdrawal);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if(withOut == 2){\r\n\t\t\t\t\t\t\t\tboolean Negative = true;\r\n\t\t\t\t\t\t\t\tboolean TooMuch = true;\r\n\t\t\t\t\t\t\t\tdouble savingsWithdrawal = 0;\r\n\t\t\t\t\t\t\t\tboolean tryagain = false;\r\n\t\t\t\t\t\t\t\twhile(Negative||TooMuch){\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"How much to withdraw? \");\r\n\t\t\t\t\t\t\t\t\tif(s.hasNextDouble()){\r\n\t\t\t\t\t\t\t\t\t\tsavingsWithdrawal= s.nextDouble();\t\r\n\t\t\t\t\t\t\t\t\t\ttryagain = false;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\\"\" + s.next() + \"\\\" is not a valid amount.\");\r\n\t\t\t\t\t\t\t\t\t\ttryagain = true;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif(!tryagain){\r\n\t\t\t\t\t\t\t\t\t\tif(savingsWithdrawal > C.getBalance()){\r\n\t\t\t\t\t\t\t\t\t\t\tNegative = false;\r\n\t\t\t\t\t\t\t\t\t\t\tTooMuch = true;\r\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"You do not have $\" + savingsWithdrawal + \" in your \" + S.getAccountType() + \" account.\");\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\telse if(savingsWithdrawal > 0){\r\n\t\t\t\t\t\t\t\t\t\t\tNegative = false;\r\n\t\t\t\t\t\t\t\t\t\t\tTooMuch = false;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"You are not allowed to withdrawal a negative amount.\");\r\n\t\t\t\t\t\t\t\t\t\t\tNegative = true;\r\n\t\t\t\t\t\t\t\t\t\t\tTooMuch = false;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"$\" + savingsWithdrawal + \" withdrawn from your \" + S.getAccountType() + \" account.\");\r\n\t\t\t\t\t\t\t\tS1 = new SavingsAccount(S.getBalance() - savingsWithdrawal);\r\n\t\t\t\t\t\t\t\tif(S1.getBalance() + C1.getBalance() < 1000){\r\n\t\t\t\t\t\t\t\t\tS1 = new Basic(S1.getBalance());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if(S1.getBalance() + C1.getBalance() < 10000){\r\n\t\t\t\t\t\t\t\t\tS1 = new Premium(S1.getBalance());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\tS1 = new Deluxe(S1.getBalance());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(accountInput == 4){\r\n\t\t\t\t\t\t\tSystem.out.println(\"In how many years? \");\r\n\t\t\t\t\t\t\tint years = s.nextInt();\r\n\t\t\t\t\t\t\tSystem.out.println(\"Your \" + S.getAccountType() + \" account will have the following: \");\r\n\t\t\t\t\t\t\tSystem.out.println(\"Year Amount Interest \");\r\n\t\t\t\t\t\t\tSystem.out.println(\"---- ------ --------\");\r\n\t\t\t\t\t\t\tfor(int i = 0; i < years; i ++){\r\n\t\t\t\t\t\t\t\tSystem.out.print(i + \" $\");\r\n\t\t\t\t\t\t\t\tSystem.out.printf(\"%.2f\", S1.getBalanceAfterNumYears(i));\r\n\t\t\t\t\t\t\t\tSystem.out.print(\" $\");\r\n\t\t\t\t\t\t\t\tSystem.out.printf(\"%.2f\", S1.getBalanceAfterNumYears(i+1)-S1.getBalanceAfterNumYears(i));\r\n\t\t\t\t\t\t\t\tSystem.out.println();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tSystem.out.print(years + \" $\");\r\n\t\t\t\t\t\t\tSystem.out.printf(\"%.2f\", S1.getBalanceAfterNumYears(years));\r\n\t\t\t\t\t\t\tSystem.out.println();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(accountInput == 5){\r\n\t\t\t\t\t\t\tSystem.out.println(\"Thank you for coming to the bank!\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(accountInput == 2 || accountInput == 3){\r\n\t\t\t\t\t\t\tline = null;\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tfr = new FileReader(\"./Users.txt\");\r\n\t\t\t\t\t\t\t\tbr = new BufferedReader(fr);\r\n\t\t\t\t\t\t\t\tString totalText = \"\";\r\n\t\t\t\t\t\t\t\twhile((line = br.readLine()) != null){\r\n\t\t\t\t\t\t\t\t\ttotalText += line + '\\n';\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tString text = username + \" \" + password + \" \" + C.getBalance() + \" \" + S.getBalance();\r\n\t\t\t\t\t\t\t\tString text1 = username + \" \" + password + \" \" + C1.getBalance() + \" \" + S1.getBalance();\r\n\t\t\t\t\t\t\t\ttotalText = totalText.replaceAll(text,text1);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tfw = new FileWriter(\"./Users.txt\");\r\n\t\t\t\t\t\t\t\tpw = new PrintWriter(fw);\r\n\t\t\t\t\t\t\t\tpw.write(totalText);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tcatch(FileNotFoundException e){\r\n\t\t\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tfw.close();\r\n\t\t\t\t\t\t\t\tbr.close();\r\n\t\t\t\t\t\t\t\tfr.close();\r\n\t\t\t\t\t\t\t\tpw.flush();\r\n\t\t\t\t\t\t\t\tpw.close();\r\n\t\t\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\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\telse if(mainInput == 2){\r\n\t\t\t\tFileWriter fw = null;\r\n\t\t\t\tPrintWriter pw = null;\r\n\t\t\t\tFileReader fr = null;\r\n\t\t\t\tBufferedReader br = null;\r\n\t\t\t\tboolean nameTaken = true;\r\n\t\t\t\tString username = null;\r\n\t\t\t\tboolean quit = false;\r\n\t\t\t\tboolean filenotfound = false;\r\n\t\t\t\tboolean quitstate = false;\r\n\t\t\t\twhile(nameTaken){\r\n\t\t\t\t\tSystem.out.println(\"Username: \");\r\n\t\t\t\t\tusername = s.next();\r\n\t\t\t\t\tif(quitstate){\r\n\t\t\t\t\t\tif(username.equals(\"q\")) break;\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\tquitstate = false;\r\n\t\t\t\t\t\t\tquit = false;\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\ttry {\r\n\t\t\t\t\t\tfr = new FileReader(\"./Users.txt\");\r\n\t\t\t\t\t\tbr = new BufferedReader(fr);\r\n\t\t\t\t\t\tString line = br.readLine();\r\n\t\t\t\t\t\twhile(line != null){\r\n\t\t\t\t\t\t\tString[] arr = line.split(\" \");\r\n\t\t\t\t\t\t\tif(username.equals(arr[0])){\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Iím sorry, but the username \\\" \" + username + \"\\\" is already associated with an account. Please try again (or enter \\'q\\' to return to the main menu).\");\r\n\t\t\t\t\t\t\t\tquit = true;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tline = br.readLine();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(quit){\r\n\t\t\t\t\t\t\tnameTaken = true;\r\n\t\t\t\t\t\t\tquitstate = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse nameTaken = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch(FileNotFoundException e){\r\n\t\t\t\t\t\tfilenotfound = true;\r\n\t\t\t\t\t\tnameTaken = false;\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tfw = new FileWriter(\"./Users.txt\");\r\n\t\t\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tpw = new PrintWriter(fw);\r\n\t\t\t\t\t\t\r\n\t\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(!quit){\r\n\t\t\t\t\tif(!filenotfound){\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tfw = new FileWriter(\"./Users.txt\", true);\r\n\t\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\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\tpw = new PrintWriter(fw);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tSystem.out.println(\"Great, that username is not in use!\");\r\n\t\t\t\t\tSystem.out.println(\"Password: \");\r\n\t\t\t\t\tString password = s.next();\r\n\t\t\t\t\tpw.print(username + \" \" + password + \" \");\r\n\t\t\t\t\t\r\n\t\t\t\t\tboolean Negative = true;\r\n\t\t\t\t\tdouble checkingsDeposit = 0;\r\n\t\t\t\t\tboolean tryagain = false;\r\n\t\t\t\t\twhile(Negative){\r\n\t\t\t\t\t\tSystem.out.println(\"How much would you like to deposit in checking? \");\r\n\t\t\t\t\t\tif(s.hasNextDouble()){\r\n\t\t\t\t\t\t\tcheckingsDeposit = s.nextDouble();\t\r\n\t\t\t\t\t\t\ttryagain = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\tSystem.out.println(\"\\\"\" + s.next() + \"\\\" is not a valid amount.\");\r\n\t\t\t\t\t\t\ttryagain = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(!tryagain){\r\n\t\t\t\t\t\t\tif(checkingsDeposit > 0) Negative = false;\r\n\t\t\t\t\t\t\telse System.out.println(\"You are not allowed to deposit a negative amount.\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tCheckingAccount C = new CheckingAccount(checkingsDeposit);\r\n\t\t\t\t\t\r\n\t\t\t\t\tNegative = true;\r\n\t\t\t\t\ttryagain = false;\r\n\t\t\t\t\tdouble savingsDeposit = 0;\r\n\t\t\t\t\twhile(Negative){\r\n\t\t\t\t\t\tSystem.out.println(\"How much would you like to deposit in savings? \");\r\n\t\t\t\t\t\tif(s.hasNextDouble()){\r\n\t\t\t\t\t\t\tsavingsDeposit = s.nextDouble();\r\n\t\t\t\t\t\t\ttryagain = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\tSystem.out.println(\"\\\"\" + s.next() + \"\\\" is not a valid amount.\");\r\n\t\t\t\t\t\t\ttryagain = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(!tryagain){\r\n\t\t\t\t\t\t\tif(savingsDeposit > 0) Negative = false;\r\n\t\t\t\t\t\t\telse System.out.println(\"You are not allowed to deposit a negative amount.\");\r\n\t\t\t\t\t\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\tpw.println(checkingsDeposit + \" \" + savingsDeposit + \" \");\r\n\t\t\t\t\tif(savingsDeposit + C.getBalance() < 1000.00){\r\n\t\t\t\t\t\tBasic S = new Basic(savingsDeposit);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(savingsDeposit + C.getBalance() < 10000.00){\r\n\t\t\t\t\t\tPremium S = new Premium(savingsDeposit);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tDeluxe S = new Deluxe(savingsDeposit);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tfw.close();\r\n\t\t\t\t\t\tbr.close();\r\n\t\t\t\t\t\tfr.close();\r\n\t\t\t\t\t\tpw.flush();\r\n\t\t\t\t\t\tpw.close();\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void printAccounts() { \r\n\t\tif ( size == 0 ) {\r\n\t\t\tSystem.out.println(\"Accounts is empty\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"--Listing accounts in the database--\");\r\n\t\tfor(int i = 0; i < accounts.length; i++) {\r\n\t\t\tif ( accounts[i] != null ) {\r\n\t\t\t\tSystem.out.println(accounts[i].toString());\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"--end of listing--\");\r\n\t\tSystem.out.println();\r\n\t\treturn;\r\n\t}", "private void loadAccount() {\n if (mSingleAccountApp == null) {\n return;\n }\n\n mSingleAccountApp.getCurrentAccountAsync(new ISingleAccountPublicClientApplication.CurrentAccountCallback() {\n @Override\n public void onAccountLoaded(@Nullable IAccount activeAccount) {\n // You can use the account data to update your UI or your app database.\n mAccount = activeAccount;\n updateUI();\n }\n\n @Override\n public void onAccountChanged(@Nullable IAccount priorAccount, @Nullable IAccount currentAccount) {\n if (currentAccount == null) {\n // Perform a cleanup task as the signed-in account changed.\n showToastOnSignOut();\n }\n }\n\n @Override\n public void onError(@NonNull MsalException exception) {\n displayError(exception);\n }\n });\n }", "public ArrayList<Account> GetCustomerAccounts(String ssn)\n {\n ArrayList<Account> result = new ArrayList<>();\n\n for (Account account : accounts)\n {\n if (account.getSsn().equals(ssn))\n {\n result.add(account);\n }\n }\n\n return result;\n }", "public static ArrayList<Account> getAccounts() {\n ArrayList<Account> accounts = new ArrayList<>();\n\n try (Statement statement = connection.createStatement()) {\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM LOGIN_ACCOUNTS\");\n while (resultSet.next()) { // as long as the next row is not null\n String username, password, firstName, lastName;\n int age;\n username = resultSet.getString(\"username\");\n password = resultSet.getString(\"password\");\n firstName = resultSet.getString(\"firstname\");\n lastName = resultSet.getString(\"lastname\");\n age = resultSet.getInt(\"age\");\n // place all the new items into a new Account object\n Account newAccount = new Account(username, password, firstName, lastName, age);\n // add the account to the list\n accounts.add(newAccount);\n }\n } catch (SQLException exc) {\n Logger.getLogger(Database.class.getName()).log(Level.SEVERE, null, exc);\n }\n\n return accounts;\n }", "@Override\n\tpublic List<Account> GetAllAccounts() {\n\t\tif(accountList.size() > 0)\n\t\t\treturn accountList;\n\t\treturn null;\n\t}", "public BankDataBase()\n {\n accounts = new Account[ 2 ];\n accounts[ 0 ] = new Account( 12345, 54321, 1000.0, 1200.0 );\n accounts[ 1 ] = new Account( 98765, 56789, 200.0, 200.0 );\n }", "public void updateAccounts(HashMap<String, Accounts> accounts){\n this.accounts = accounts;\n }", "public boolean collectAccountInfo(IBankAPI bankAPI){\n\t}", "@Override\n\tpublic List<Account> findAllAccounts() {\n\t\treturn m_accountDao.findAll();\n\t}", "List<Account> findAll();", "List<Account> findAll();", "@Override\r\n\tpublic List<AppAccount> findAllAppAccounts() {\r\n\t\tlogger.debug(\"findAllAppAccounts() method started\");\r\n\t\tList<AppAccount> models = new ArrayList<AppAccount>();\r\n\t\ttry {\r\n\t\t\t// call Repository method\r\n\t\t\tList<AppAccountEntity> entities = appAccRepository.findAll();\r\n\r\n\t\t\tif (entities.isEmpty()) {\r\n\t\t\t\tlogger.warn(\"***No Accounts found in Application****\");\r\n\t\t\t} else {\r\n\t\t\t\t// convert Entities to models\r\n\t\t\t\tfor (AppAccountEntity entity : entities) {\r\n\t\t\t\t\tAppAccount model = new AppAccount();\r\n\t\t\t\t\tBeanUtils.copyProperties(entity, model);\r\n\t\t\t\t\tmodels.add(model);\r\n\t\t\t\t}\r\n\t\t\t\tlogger.info(\"All Accounts details loaded successfully\");\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"Exception occured in findAllAppAccounts()::\" + e.getMessage());\r\n\t\t}\r\n\t\tlogger.debug(\"findAllAppAccounts() method ended\");\r\n\t\treturn models;\r\n\t}", "public void initAccounts() {\n Datastore mongoDataStore = DatabaseHandler.getInstance().getMongoDataStore();\n\n User user = users.get(0);\n\n Account account1 = new Account(\"Account1\", 500);\n Account account2 = new Account(\"Account2\", 100);\n Account account3 = new Account(\"Account3\", 200);\n ArrayList<Account> accounts = new ArrayList<>();\n accounts.add(account1);\n accounts.add(account2);\n accounts.add(account3);\n mongoDataStore.save(accounts);\n user.setAccounts(accounts);\n\n user = users.get(1);\n account1 = new Account(\"Account4\", 100);\n account2 = new Account(\"Account5\", 200);\n accounts = new ArrayList<>();\n accounts.add(account1);\n accounts.add(account2);\n mongoDataStore.save(accounts);\n user.setAccounts(accounts);\n\n user = users.get(2);\n account1 = new Account(\"Account6\", 300);\n accounts = new ArrayList<>();\n accounts.add(account1);\n mongoDataStore.save(accounts);\n user.setAccounts(accounts);\n\n user = users.get(3);\n account1 = new Account(\"Account7\", 400);\n account2 = new Account(\"Account8\", 500);\n account3 = new Account(\"Account9\", 100);\n Account account4 = new Account(\"Account10\", 200);\n accounts = new ArrayList<>();\n accounts.add(account1);\n accounts.add(account2);\n accounts.add(account3);\n accounts.add(account4);\n mongoDataStore.save(accounts);\n user.setAccounts(accounts);\n\n user = users.get(4);\n account1 = new Account(\"Account11\", 300);\n accounts = new ArrayList<>();\n accounts.add(account1);\n mongoDataStore.save(accounts);\n user.setAccounts(accounts);\n }", "public static void loadArrayList() throws IOException\n\t{\n\t\tString usersXPFile = \"UsersXP.txt\";\n\t\t\n\t\tFile file = new File(usersXPFile);\n\t\t\n\t\tScanner fileReader;\n\t\t\n\t\tif(file.exists())\n\t\t{\n\t\t\tfileReader = new Scanner(file);\n\t\t\twhile(fileReader.hasNext())\n\t\t\t\tuserDetail1.add(userData.addNewuser(fileReader.nextLine().trim()));\n\t\t\tfileReader.close();\n\t\t}\n\t\telse overwriteFile(usersXPFile, \"\");\n\t\t\n\t\t\n\t}", "private static void readUserListFromFile() {\n\t\tJSONParser parser = new JSONParser();\n\n\t\ttry (Reader reader = new FileReader(\"users.json\")) {\n\n\t\t\tJSONArray userListJSON = (JSONArray) parser.parse(reader);\n\n\t\t\tfor (int i = 0 ; i < userListJSON.size(); i++) {\n\t\t\t\tJSONObject user = (JSONObject) userListJSON.get(i);\n\t\t\t\tString name = (String) user.get(\"name\");\n\t\t\t\tString surname = (String) user.get(\"surname\");\n\t\t\t\tString username = (String) user.get(\"username\");\n\t\t\t\tString password = (String) user.get(\"password\");\n\t\t\t\tString account = (String) user.get(\"account\");\n\n\t\t\t\tif(account.equals(\"employee\")) {\n\t\t\t\t\tMain.userList.add(new Employee(username, name, surname, password));\n\t\t\t\t} else {\n\t\t\t\t\tMain.userList.add(new Customer(username, name, surname, password));\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void loadData()\n {\n try\n {\n //Reads in the data from default file\n System.out.println(\"ATTEMPTING TO LOAD\");\n allGroups = (ArrayList<CharacterGroup>)serial.Deserialize(\"All-Groups.dat\");\n System.out.println(\"LOADED\");\n loadSuccessful = true;\n \n //If read is successful, save backup file in case of corruption\n try\n {\n System.out.println(\"SAVING BACKUP\");\n serial.Serialize(allGroups, \"All-Groups-backup.dat\");\n System.out.println(\"BACKUP SAVED\");\n } catch (IOException e)\n {\n System.out.println(\"FAILED TO WRITE BACKUP DATA\");\n }\n } catch (IOException e)\n {\n //If loading from default file fails, first try loading from backup file\n System.out.println(\"READING FROM DEFAULT FAILED\");\n try\n {\n System.out.println(\"ATTEMPTING TO READ FROM BACKUP\");\n allGroups = (ArrayList<CharacterGroup>)serial.Deserialize(\"All-Groups-backup\");\n System.out.println(\"READING FROM BACKUP SUCCESSFUL\");\n loadSuccessful = true;\n } catch (IOException ex)\n {\n //If reading from backup fails aswell generate default data\n System.out.println(\"READING FROM BACKUP FAILED\");\n allGroups = new ArrayList();\n } catch (ClassNotFoundException ex){}\n } catch (ClassNotFoundException e){}\n }", "private void parseBankAccount(String[] info, Account account) {\n BankTracker b = new BankTracker(info[2], Float.parseFloat(info[1]), LocalDate.parse(info[3]),\n Double.parseDouble(info[4]));\n account.getBankTrackerList().add(b);\n }", "public ArrayList load() {\n File savefile = new File(\"bookings.txt\");\r\n try {\r\n if (savefile.createNewFile()) {\r\n System.out.println(\"Save file doesnt exist, creating...\");\r\n\r\n try {\r\n FileWriter writer = new FileWriter(savefile);\r\n\r\n for (int x = 0; x <= 89; x = x + 1) {\r\n String stringbuild = (x + \",false,none\");\r\n writer.write(stringbuild + \"\\n\");\r\n }\r\n writer.flush();\r\n writer.close();\r\n } catch (IOException ex) {\r\n Logger.getLogger(ParseBookings.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n } else {\r\n System.out.println(\"Save file exists. Will load...\");\r\n }\r\n } catch (IOException ex) {\r\n Logger.getLogger(ParseBookings.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n System.out.println(\"Loading Started...\");\r\n\r\n ArrayList Seats = new ArrayList();\r\n ArrayList Seats_Bronze = new ArrayList();\r\n ArrayList Seats_Silver = new ArrayList();\r\n ArrayList Seats_Gold = new ArrayList();\r\n\r\n try {\r\n File file = new File(\"bookings.txt\");\r\n FileReader filereader = new FileReader(file);\r\n BufferedReader bufferedreader = new BufferedReader(filereader);\r\n\r\n String buffer;\r\n while ((buffer = bufferedreader.readLine()) != null) {\r\n String[] buffersplit = buffer.split(\",\", -1);\r\n int index = Integer.parseInt(buffersplit[0]);\r\n if (index < 30) {\r\n //System.out.println(\"Bronze @ \"+index);\r\n\r\n Seat_Bronze bseat_ = new Seat_Bronze();\r\n bseat_.setID(index);\r\n bseat_.setBooked(Boolean.parseBoolean(buffersplit[1]), buffersplit[2]);\r\n Seats_Bronze.add(bseat_);\r\n\r\n } else if (59 >= index && index > 29) {\r\n //System.out.println(\"Silver @ \"+index);\r\n\r\n Seat_Silver sseat_ = new Seat_Silver();\r\n sseat_.setID(index);\r\n sseat_.setBooked(Boolean.parseBoolean(buffersplit[1]), buffersplit[2]);\r\n Seats_Silver.add(sseat_);\r\n\r\n } else {\r\n //System.out.println(\"Gold @\"+index);\r\n\r\n Seat_Gold gseat_ = new Seat_Gold();\r\n gseat_.setID(index);\r\n gseat_.setBooked(Boolean.parseBoolean(buffersplit[1]), buffersplit[2]);\r\n Seats_Gold.add(gseat_);\r\n\r\n }\r\n\r\n }\r\n\r\n Seats.add(Seats_Bronze);\r\n Seats.add(Seats_Silver);\r\n Seats.add(Seats_Gold);\r\n System.out.println(\"Loading Complete.\");\r\n System.out.println(\"Loaded B/S/G: \" + Seats_Bronze.size() + \"/\" + Seats_Silver.size() + \"/\" + Seats_Gold.size());\r\n\r\n return Seats;\r\n\r\n } catch (FileNotFoundException ex) {\r\n Logger.getLogger(ParseBookings.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (IOException ex) {\r\n Logger.getLogger(ParseBookings.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return null;\r\n }", "public static ArrayList<Citizen> getAccounts()\n\t{\n\t\treturn accounts;\n\t}", "public ArrayList getAccountList() throws RemoteException, SQLException, Exception;", "public FilteredBankAccountsIterator(BankAccountsBinarySearchTree bankAccountsTree) {\r\n \tthis.bankAccountsTree = bankAccountsTree;\r\n \tcurrent = bankAccountsTree.root.data;\r\n \tbankAccounts = new LinkedList();\r\n \t//Initialize an iterator goes over the tree\r\n \tBinaryTreeInOrderIterator <BankAccount> iter = new BinaryTreeInOrderIterator(bankAccountsTree.root);\r\n \t//check if there is bank account with a balance over than 100 \r\n \twhile(iter.hasNext()) {\r\n \t\tcurrent=iter.next();\r\n \t\tif(current.getBalance()>100) {\r\n \t\t\t//if such a bank account exist, add it to the end of the list\r\n \t\t\tbankAccounts.add(current);\r\n \t\t}\r\n \t}\r\n }", "public vrealm_350275.Buyer.Ariba.ERPOrder_PurchOrdSplitDetailsLineItemsItemAccountings getAccountings() {\n return accountings;\n }", "private void loadCarListings() {\r\n try {\r\n cars = Reader.readCars(new File(CARLISTINGS_FILE));\r\n } catch (IOException e) {\r\n cars = new Cars();\r\n }\r\n }", "private void initSystemAccountsData() throws HpcException {\n for (HpcIntegratedSystem system : HpcIntegratedSystem.values()) {\n // Get the data transfer system account.\n final List<HpcIntegratedSystemAccount> accounts = systemAccountDAO.getSystemAccount(system);\n if (accounts != null && accounts.size() == 1) {\n singularSystemAccounts.put(system, accounts.get(0));\n }\n }\n }", "public MusicData[] loadAllMine(Long accountId) throws MusicAppException;", "public static void createAccount(String name, String address, String contactNum, SavingsAccount savings) {\n\t\tcustomerList.add(new Customer(name, address, contactNum, savings));\n\t}", "public int addSavingsAccount(long pNr) throws SQLException {\r\n\t\tint accountId = -1;\r\n\r\n\t\t_db.connect();\r\n\r\n\t\tCustomer _cust = _db.findCustomer(pNr);\r\n\t\tif (_cust != null) {\r\n\t\t\tAccount _ac = new SavingsAccount(0, 1);\r\n\t\t\taccountId = _db.addAccount(_ac, pNr);\r\n\t\t}\r\n\r\n\t\t_db.disconnect();\r\n\r\n\t\treturn accountId;\r\n\t}", "public Bank() {\n accounts = new Account[2];\n numOfAccounts = 0;\n }", "public boolean insertTransactionsAndCreateAccounts(List<Transaction> transactions) {\n\t\ttry (final AutoCommittingHandle handle = new AutoCommittingHandle(dbi)) {\n\t\t\ttry {\n\t\t\t\t// fetch all existing accounts, initializing a map entry for each that contains an empty set of\n\t\t\t\t// transactions as its value\n\t\t\t\tfinal Map<Account, List<Transaction>> existingAccounts = new HashMap<>();\n\t\t\t\tfor (final Account existingAccount : getAccountsWithTransactions(handle)) {\n\t\t\t\t\texistingAccounts.put(existingAccount, new ArrayList<>());\n\t\t\t\t}\n\n\t\t\t\t// a map of new accounts to add\n\t\t\t\tfinal Map<Account, List<Transaction>> newAccounts = new HashMap<>();\n\n\t\t\t\t// sort new transactions into the map of accounts\n\t\t\t\tfor (final Transaction transaction : transactions) {\n\t\t\t\t\tfinal Optional<Account> existingAccount = existingAccounts.keySet()\n\t\t\t\t\t .stream()\n\t\t\t\t\t .filter(a -> a.getAccountNumber()\n\t\t\t\t\t .equals(transaction.getAccountNumber()))\n\t\t\t\t\t .findFirst();\n\t\t\t\t\tfinal Optional<Account> newAccount = newAccounts.keySet()\n\t\t\t\t\t .stream()\n\t\t\t\t\t .filter(a -> a.getAccountNumber()\n\t\t\t\t\t .equals(transaction.getAccountNumber()))\n\t\t\t\t\t .findFirst();\n\n\t\t\t\t\tif (!existingAccount.isPresent() && newAccount.isPresent()) {\n\t\t\t\t\t\tnewAccounts.get(newAccount.get()).add(transaction);\n\t\t\t\t\t} else if (existingAccount.isPresent() && !newAccount.isPresent()) {\n\t\t\t\t\t\texistingAccounts.get(existingAccount.get()).add(transaction);\n\t\t\t\t\t} else if (!existingAccount.isPresent() && !newAccount.isPresent()) {\n\t\t\t\t\t\tfinal List<Transaction> newTransactions = Arrays.asList(transaction);\n\t\t\t\t\t\t// TODO: can we assume account type and balance/currency? - instead, prompt user for details?\n\t\t\t\t\t\tfinal Account account = Account.newBuilder(transaction.getAccountNumber())\n\t\t\t\t\t\t .setType(AccountType.CHECKING)\n\t\t\t\t\t\t .setBalance(Money.zero(CurrencyUnit.CAD))\n\t\t\t\t\t\t .addTransactions(newTransactions)\n\t\t\t\t\t\t .build();\n\t\t\t\t\t\tnewAccounts.put(account, newTransactions);\n\t\t\t\t\t} else if (existingAccount.isPresent() && newAccount.isPresent()) {\n\t\t\t\t\t\tthrow new IllegalStateException(\"Account can't exist in new and existing maps\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor (final Entry<Account, List<Transaction>> entry : newAccounts.entrySet()) {\n\t\t\t\t\t// sum the transactions to compute an updated balance for the account\n\t\t\t\t\tfinal List<Money> transactionAmounts = entry.getValue()\n\t\t\t\t\t .stream()\n\t\t\t\t\t .map(Transaction::getAmount)\n\t\t\t\t\t .collect(Collectors.toList());\n\t\t\t\t\tfinal Money balance = Money.zero(entry.getKey().getBalance().getCurrencyUnit())\n\t\t\t\t\t .plus(transactionAmounts);\n\n\t\t\t\t\t// insert a copy of the account with the correct balance and list of transactions\n\t\t\t\t\tfinal Account updatedAccount = Account.newBuilder(entry.getKey())\n\t\t\t\t\t .setBalance(balance)\n\t\t\t\t\t .addTransactions(entry.getValue())\n\t\t\t\t\t .build();\n\n\t\t\t\t\tinsertAccountWithTransactions(handle, updatedAccount);\n\t\t\t\t}\n\n\t\t\t\tfor (final Entry<Account, List<Transaction>> entry : existingAccounts.entrySet()) {\n\t\t\t\t\t// sum the transactions to compute an updated balance for the account\n\t\t\t\t\tfinal List<Money> transactionAmounts = entry.getValue()\n\t\t\t\t\t .stream()\n\t\t\t\t\t .map(Transaction::getAmount)\n\t\t\t\t\t .collect(Collectors.toList());\n\t\t\t\t\tfinal Money balance = entry.getKey()\n\t\t\t\t\t .getBalance()\n\t\t\t\t\t .plus(transactionAmounts);\n\n\t\t\t\t\t// update the account with the correct balance and set of transactions\n\t\t\t\t\t// this adds the new transactions to the set of transactions already in the account\n\t\t\t\t\tfinal Account updatedAccount = Account.newBuilder(entry.getKey())\n\t\t\t\t\t .setBalance(balance)\n\t\t\t\t\t .addTransactions(entry.getValue())\n\t\t\t\t\t .build();\n\n\t\t\t\t\taccountDao.updateAccount(handle, updatedAccount);\n\t\t\t\t\ttransactionDao.insertTransactions(handle, entry.getValue());\n\t\t\t\t}\n\t\t\t} catch (final Exception ex) {\n\t\t\t\tlog.error(\"Failed to insert tranactions\", ex);\n\t\t\t\thandle.rollback();\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "public SavingsAccount(String n) {\n super(n); \n balance = 0;\n }", "void activateAccount(File file, int accountID) throws ServiceException;", "public List <Account> getAllAccountsByRIB(String RIB);", "public static ArrayList<Player> readPlayersFromFile() \r\n {\r\n //Inisialize Arraylist \r\n ArrayList<Player> players = new ArrayList<Player>();\r\n //Inisialize FileInputStream\r\n FileInputStream fileIn = null;\r\n\r\n try \r\n {\r\n //Establish connection to file \r\n fileIn = new FileInputStream(\"players.txt\");\r\n while (true) \r\n {\r\n //Create an ObjectOutputStream \r\n ObjectInputStream objectIn = new ObjectInputStream(fileIn);\r\n //Read a Player object from the file and add it to the ArrayList\r\n players.add((Player)objectIn.readObject());\r\n }//end while\r\n\r\n }\r\n catch (Exception e)\r\n {\r\n //System.out.println(e);\r\n }\r\n finally \r\n {\r\n usernamesTaken.clear();\r\n\r\n for(int i = 0; i < players.size(); i++)\r\n {\r\n usernamesTaken.add(players.get(i).getUsername());\r\n }//end for\r\n\r\n //Try to close the file and return the ArrayList\r\n try\r\n {\r\n //Check if the end of the file is reached\r\n if (fileIn != null)\r\n { \r\n //Close the file \r\n fileIn.close();\r\n //Return the ArrayList of players\r\n return players;\r\n }\r\n }\r\n catch (Exception e)\r\n {\r\n //System.out.println(e)\r\n }//end try \r\n\r\n //Return null if there is an excetion \r\n return null;\r\n }//end try \r\n }", "void addNewAccountToFile(Account newAccount);" ]
[ "0.7131831", "0.6251994", "0.60113144", "0.58561695", "0.57223105", "0.5718094", "0.54529494", "0.5329098", "0.52320373", "0.52257663", "0.52119666", "0.5211456", "0.5192847", "0.5168523", "0.5166864", "0.5134988", "0.51023406", "0.50133353", "0.50077045", "0.49677327", "0.49094138", "0.49005604", "0.4892798", "0.4890772", "0.48854882", "0.4859775", "0.4853114", "0.48344132", "0.479932", "0.47832972", "0.47558525", "0.4748265", "0.47279137", "0.47245198", "0.46806028", "0.4677537", "0.46670318", "0.46624312", "0.46351773", "0.4634099", "0.46089", "0.45978314", "0.4572692", "0.45709595", "0.45636144", "0.45545802", "0.45518774", "0.45386308", "0.45296845", "0.45158654", "0.45112288", "0.45098844", "0.448319", "0.4473342", "0.4466971", "0.44477764", "0.44393933", "0.4419771", "0.44103697", "0.44031978", "0.43932462", "0.4391214", "0.43771175", "0.43607733", "0.4359625", "0.43456048", "0.4333248", "0.43315142", "0.43275702", "0.43237737", "0.4304651", "0.43041122", "0.42883435", "0.4282465", "0.42816833", "0.42775962", "0.42775962", "0.42668435", "0.42628476", "0.42619494", "0.42563957", "0.4255388", "0.4250078", "0.42392066", "0.4238748", "0.42375576", "0.42269728", "0.4209489", "0.42030665", "0.4188198", "0.4183097", "0.4182859", "0.41823515", "0.41763067", "0.4173114", "0.41526446", "0.414744", "0.4147308", "0.4133912", "0.4122417" ]
0.7500362
0
endregion loadSavingsAccounts region loadCDAccounts this function loads in CD accounts from a flat file and stores the information in the accounts array.
private void loadCDAccounts(String cdAccountFileName) { try { /* Open the file to read */ File inputFile = new File(cdAccountFileName); /* Create a scanner to begin reading from file */ Scanner input = new Scanner(inputFile); while (input.hasNextLine()) { //reading... String currentLine = input.nextLine(); //parse on commas... String[] splitLine = currentLine.split(","); //DateFormat class to parse Date from file DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT); //parse out data... int accountId = Integer.parseInt(splitLine[0]); double balance = Double.parseDouble(splitLine[1]); String ssn = splitLine[2]; double interestRate = Double.parseDouble(splitLine[3]); Date dateOpened = dateFormat.parse(splitLine[4]); Date startDate = dateFormat.parse(splitLine[5]); Date endDate = dateFormat.parse(splitLine[6]); CD cdAccount = new CD(accountId, balance, ssn, interestRate, dateOpened, startDate, endDate); ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId); cdAccount.setTransactions(accountTransactions); //add CD Accounts... accounts.add(cdAccount); } input.close(); } catch (Exception e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<CDAccount> findAccounts(Integer id) throws AccountNotFoundException {\n\t\treturn userService.findById(id).getCdAccounts();\n\t}", "private void loadCreditCardAccounts(String creditCardAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(creditCardAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //read...\n String currentLine = input.nextLine();\n\n //parsing out on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data.\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n Date dueDate = dateFormat.parse(splitLine[5]);\n Date dateNotified = dateFormat.parse(splitLine[6]);\n double currentPaymentDue = Double.parseDouble(splitLine[7]);\n Date lastPaymentDate = dateFormat.parse(splitLine[8]);\n boolean missedPayment = Boolean.parseBoolean(splitLine[9]);\n double limit = Double.parseDouble(splitLine[10]);\n String creditCardNumber = splitLine[11];\n int cvv = Integer.parseInt(splitLine[12]);\n\n CreditCard creditCardAccount = new CreditCard(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n dueDate,\n dateNotified,\n currentPaymentDue,\n lastPaymentDate,\n missedPayment,\n limit,\n creditCardNumber,\n cvv);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n creditCardAccount.setTransactions(accountTransactions);\n\n //add credit cards\n accounts.add(creditCardAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "private void loadCheckingAccounts(String checkingAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(checkingAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //reading...\n String currentLine = input.nextLine();\n\n //parse on commas\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data...\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n int overdraftSavingsAccountId = Integer.parseInt(splitLine[5]);\n boolean isGoldDiamond = Boolean.parseBoolean(splitLine[6]);\n\n Checking checkingAccount = new Checking(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n overdraftSavingsAccountId,\n isGoldDiamond);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n checkingAccount.setTransactions(accountTransactions);\n\n //add checking account...\n accounts.add(checkingAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "private void ReadInAccounts() {\n\t\tLog.d(\"SelectAccountActivity.ReadInAccounts\", \"checking for file\" + AccountMan.CheckForFile());\n\t\taccounts = AccountMan.GetAccounts();\n\t\t//Comment out this line and uncomment the line above after purging the excess accounts\n\t\t//accounts = AccountMan.PurgeDuplicateAccounts(AccountMan.GetAccounts());\n\t\tLog.d(\"SelectAccountActivity.ReadInAccounts\", String.valueOf(accounts.size()));\n\t}", "private void loadSavingsAccounts(String savingsAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(savingsAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //read...\n String currentLine = input.nextLine();\n\n //parse on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data...\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n int overdraftAccountId = Integer.parseInt(splitLine[5]);\n\n Savings savingsAccount = new Savings(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n overdraftAccountId);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n savingsAccount.setTransactions(accountTransactions);\n\n //add savings account...\n accounts.add(savingsAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "private void loadAccounts() {\n JsonReader jsonReader = null;\n try {\n jsonReader = new JsonReader(parkinglots, \"account\");\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n try {\n accounts = jsonReader.findall();\n } catch (IOException | ParseException e) {\n e.printStackTrace();\n }\n }", "public static void UserAccounts() throws FileNotFoundException{\n\t\tScanner input = new Scanner(new File(AccountFile));\t\t\t\t//Creats objects and adds to array list.\r\n\t\t\r\n\t\twhile (input.hasNextLine()) {\t\t\t\t\t\t\t\t\t//Loops as long as there is another line\r\n\t\t\t\r\n\t\t\tString line = input.nextLine();\r\n\t\t\tif(line.equals(\"ADMIN\")) {\t\t\t\t\t\t\t\t\t//Checks if the data is for Admin, creats admin object\r\n\t\t\t\tString AdminUsername = input.nextLine();\r\n\t\t\t\tString AdminPassword = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tAdmin admin = new Admin(AdminUsername, AdminPassword);\r\n\t\t\t\taccounts.add(admin);\r\n\t\t\t\t\r\n\t\t\t} if(line.equals(\"COORDINATOR\")){\r\n\t\t\t\tString coordinatorUsername = input.nextLine();\r\n\t\t\t\tString coordinatorPassword = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tCoordinator coordinator = new Coordinator(coordinatorUsername, coordinatorPassword);\r\n\t\t\t\taccounts.add(coordinator);\r\n\r\n\t\t\t} if(line.equals(\"APPROVER\")){\r\n\t\t\t\tString approverUsername = input.nextLine();\r\n\t\t\t\tString approverPassword = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tApprover approver = new Approver(approverUsername, approverPassword);\r\n\t\t\t\taccounts.add(approver);\r\n\r\n\t\t\t} if(line.equals(\"CASUAL\")){\r\n\t\t\t\tString casualUsername = input.nextLine();\r\n\t\t\t\tString casualPassword = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tCasualStaff casual = new CasualStaff(casualUsername, casualPassword);\r\n\t\t\t\taccounts.add(casual);\r\n\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} loginSystem();\r\n\t}", "public final void loadAccounts() {\n DBUtil.select(\n \"select id, created, account_name, account_pass, account_email, timezone from \"\n + ConfigUtil.getAntiFraudDatabaseSchema()\n + \".af_account\",\n new ResultSetProcessor() {\n @Override\n public void process(ResultSet resultSet) throws SQLException {\n while (resultSet.next() ) {\n AfAccount account = createAccountFromResultSet(resultSet);\n }\n }\n });\n }", "private void loadUsers() throws IOException {\n File accounts = new File(\"accounts.txt\");\n if (!accounts.exists()) {\n accounts.createNewFile();\n }\n\n FileInputStream fileInputStream = new FileInputStream(accounts);\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(fileInputStream));\n\n for (String line = bufferedReader.readLine(); line != null; line = bufferedReader.readLine()) {\n String[] pair = line.split(\":\");\n userAccounts.put(pair[0], pair[1]);\n }\n }", "public void importFile() {\n \ttry {\n\t File account_file = new File(\"accounts/CarerAccounts.txt\");\n\n\t FileReader file_reader = new FileReader(account_file);\n\t BufferedReader buff_reader = new BufferedReader(file_reader);\n\n\t String row;\n\t while ((row = buff_reader.readLine()) != null) {\n\t String[] account = row.split(\",\"); //implementing comma seperated value (CSV)\n\t String[] users = account[6].split(\"-\");\n\t int[] usersNew = new int[users.length];\n\t for (int i = 0; i < users.length; i++) {\n\t \tusersNew[i] = Integer.parseInt(users[i].trim());\n\t }\n\t this.add(Integer.parseInt(account[0]), account[1], account[2], account[3], account[4], account[5], usersNew);\n\t }\n\t buff_reader.close();\n } catch (IOException e) {\n System.out.println(\"Unable to read text file this time.\");\n \t}\n\t}", "@Transactional\r\n\tpublic Set<BudgetAccount> loadBudgetAccounts() {\r\n\t\treturn budgetAccountDAO.findAllBudgetAccounts();\r\n\t}", "public AccountManager(String transactionsFileName,\n String checkingAccountFileName,\n String savingsAccountFileName,\n String cdAccountFileName,\n String atmAccountFileName,\n String creditCardAccountFileName,\n String termLoanAccountFileName)\n {\n accounts = new ArrayList<>();\n\n //Load transactions first so the hash map is built\n loadTransactions(transactionsFileName);\n\n loadCheckingAccounts(checkingAccountFileName);\n loadSavingsAccounts(savingsAccountFileName);\n loadCDAccounts(cdAccountFileName);\n loadATMAccounts(atmAccountFileName);\n loadCreditCardAccounts(creditCardAccountFileName);\n loadTermLoanAccounts(termLoanAccountFileName);\n }", "private AccountDetails[] getAccountDetails() {\n String accountData = Utils.readFile(accountFile);\n return gson.fromJson(accountData, AccountDetails[].class);\n }", "private void loadATMAccounts(String atmAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(atmAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //reading...\n String currentLine = input.nextLine();\n\n //parse on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parse out data...\n int accountId = Integer.parseInt(splitLine[0]);\n String ssn = splitLine[1];\n Date dateOpened = dateFormat.parse(splitLine[2]);\n int pin = Integer.parseInt(splitLine[3]);\n Date lastDateUsed = dateFormat.parse(splitLine[4]);\n int dailyUsageCount = Integer.parseInt(splitLine[5]);\n String cardNumber = splitLine[6];\n\n ATM atmAccount = new ATM(accountId,\n ssn,\n dateOpened,\n pin,\n lastDateUsed,\n dailyUsageCount,\n cardNumber);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n atmAccount.setTransactions(accountTransactions);\n\n //add ATM accounts...\n accounts.add(atmAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "private void loadTermLoanAccounts(String termLoanAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(termLoanAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //reading...\n String currentLine = input.nextLine();\n\n //parsing out on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data...\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n Date dueDate = dateFormat.parse(splitLine[5]);\n Date dateNotified = dateFormat.parse(splitLine[6]);\n double currentPaymentDue = Double.parseDouble(splitLine[7]);\n Date lastPaymentDate = dateFormat.parse(splitLine[8]);\n boolean missedPayment = Boolean.parseBoolean(splitLine[9]);\n char loanType = splitLine[10].charAt(0);\n TermLoanType termLoanType;\n\n //this determines whether the loan is long or short.\n if (loanType == 'S')\n {\n termLoanType = TermLoanType.SHORT;\n }\n else\n {\n termLoanType = TermLoanType.LONG;\n }\n\n int years = Integer.parseInt(splitLine[11]);\n\n TermLoan termLoanAccount = new TermLoan(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n dueDate,\n dateNotified,\n currentPaymentDue,\n lastPaymentDate,\n missedPayment,\n termLoanType,\n years);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n termLoanAccount.setTransactions(accountTransactions);\n\n //adds term loan accounts\n accounts.add(termLoanAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "public CDAccount addAccount(CDAccount account, Integer id) throws AccountNotFoundException {\n\t\tUser holder = userService.findById(id); // use id given to locate holder\n\t\tholder.setCdAccounts(Arrays.asList(account)); \t\t // use Arrays class to convert array of account to List \n\t\taccount.setUser(holder); \t\t\t\t\t // set list of cd accounts to belong to holder\n\t\trepository.save(account);\t\t\t\t\t\t\t // add given account to that holder's list of cd accounts\n\t\treturn account;\n\t}", "@Override\n public List<Account> getAccounts(Long customerId) {\n return customerDao.getAccounts(customerId);\n }", "List<Account> getAccountsForCustomerId(int customerId);", "private void initDataTransferAccountsData() throws HpcException {\n for (HpcDataTransferType dataTransferType : HpcDataTransferType.values()) {\n // Get the data transfer system account.\n final List<HpcIntegratedSystemAccount> accounts =\n systemAccountDAO.getSystemAccount(dataTransferType);\n if (accounts != null && accounts.size() == 1) {\n singularDataTransferAccounts.put(dataTransferType, accounts.get(0));\n } else if (accounts != null && accounts.size() > 1) {\n initMultiDataTransferAccountsMap(dataTransferType, accounts);\n }\n }\n }", "public void setAccounts(List<B2bInvoiceAccount> accounts) {\r\n this.accounts = accounts;\r\n }", "public List<Account> getAccounts(String customerName){\n List<Account> accounts = new ArrayList<>();\n try {\n accounts = getAccountsFromFile();\n } catch (Exception e) {\n System.out.println(messageService.unexpectedError(e));\n }\n System.out.println(accounts.stream().filter(a -> a.getCustomerName().equals(customerName))\n .collect(Collectors.toList()));\n return accounts.stream().filter(a -> a.getCustomerName().equals(customerName))\n .collect(Collectors.toList());\n }", "@PermitAll\n public List<AccountDetails> getAccountsOfCustomer(Long customerId)\n throws InvalidParameterException, CustomerNotFoundException {\n Debug.print(\"AccountControllerBean getAccountsOfCustomer\");\n\n Collection accounts = null;\n Customer customer = null;\n\n if (customerId == null) {\n throw new InvalidParameterException(\"null customerId\");\n }\n\n try {\n customer = em.find(Customer.class, customerId);\n\n if (customer == null) {\n throw new CustomerNotFoundException();\n } else {\n accounts = customer.getAccounts();\n }\n } catch (Exception ex) {\n throw new EJBException(ex);\n }\n\n return copyAccountsToDetails(accounts);\n }", "List<Account> getAccounts(String login);", "public Account load() throws IOException {\n Account account = new Account();\n try {\n FileReader fileReader = new FileReader(fileName);\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n //if (line.contains(\"#\")) { continue; }\n String[] info = line.split(\" @ \");\n\n switch (info[0]) {\n case \"INIT\":\n account.setToInitialize(Boolean.parseBoolean(info[1]));\n break;\n case \"BS\":\n account.setBaseSavings(Float.parseFloat((info[1])));\n break;\n case \"INC\":\n parseIncome(info, account);\n break;\n case \"EXP\":\n parseExpenditure(info, account);\n break;\n case \"G\":\n parseGoal(info, account);\n break;\n case \"INS\":\n parseInstalment(info, account);\n break;\n case \"LOA\":\n parseLoan(info, account);\n break;\n case \"BAN\":\n parseBankAccount(info, account);\n break;\n default:\n throw new DukeException(\"OOPS!! Your file has been corrupted/ input file is invalid!\");\n }\n }\n bufferedReader.close();\n } catch (FileNotFoundException err) {\n final File parentDir = new File(\"dataFG\");\n parentDir.mkdir();\n final String hash = \"moneyAccount\";\n final String fileName = hash + \".txt\";\n final File file = new File(parentDir, fileName);\n file.createNewFile();\n } catch (IOException | DateTimeParseException | DukeException e) {\n e.printStackTrace();\n }\n return account;\n }", "public static List<Account> getAccounts()\n\t{\n\t\treturn Application.getAccountLibrary().getAccounts();\n\t}", "private static void testdeleteAndAddSavingsAccounts(String lineOfCreditId, List<SavingsAccount> accounts)\n\t\t\tthrows MambuApiException {\n\n\t\tSystem.out.println(\"\\nIn testdeleteAndAddSavingsAccounts for LoC=\" + lineOfCreditId);\n\n\t\tLinesOfCreditService linesOfCreditService = MambuAPIFactory.getLineOfCreditService();\n\t\tString accountId = null;\n\t\tif (accounts == null || accounts.size() == 0) {\n\t\t\tSystem.out.println(\"WARNING: no Savings Account to remove for LoC=\" + lineOfCreditId);\n\t\t} else {\n\t\t\t// We have assigned accounts. Test remove and then test adding it back\n\t\t\t// Test removing Savings Account. Accounts requiring LoC cannot be removed, so try until can\n\t\t\tfor (SavingsAccount account : accounts) {\n\t\t\t\taccountId = account.getId();\n\t\t\t\ttry {\n\t\t\t\t\tboolean deleted = linesOfCreditService.deleteSavingsAccount(lineOfCreditId, accountId);\n\t\t\t\t\tSystem.out.println(\"Removed Status=\" + deleted + \"\\tAccount with ID=\" + accountId\n\t\t\t\t\t\t\t+ \" deleted from LoC=\" + lineOfCreditId);\n\t\t\t\t\t;\n\t\t\t\t\t// Deleted OK, now add the same back\n\t\t\t\t\tSavingsAccount addedAccount = linesOfCreditService.addSavingsAccount(lineOfCreditId, accountId);\n\t\t\t\t\tSystem.out.println(\"Added Savings Account with ID=\" + addedAccount.getId() + \" to LoC=\"\n\t\t\t\t\t\t\t+ lineOfCreditId);\n\t\t\t\t} catch (MambuApiException e) {\n\t\t\t\t\tSystem.out.println(\"Failed to remove account \" + accountId + \"\\tMessage=\" + e.getErrorMessage());\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t}", "public void adminLoad() {\n try {\n File file = new File(adminPath);\n Scanner scanner = new Scanner(file);\n while (scanner.hasNextLine()){\n String data = scanner.nextLine();\n String[]userData = data.split(separator);\n AdminAccounts adminAccounts = new AdminAccounts();\n adminAccounts.setUsername(userData[0]);\n adminAccounts.setPassword(userData[1]);\n users.add(adminAccounts);\n }\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "public void readRecords()\r\n {\r\n RandomAccessAccountRecord record = new RandomAccessAccountRecord();\r\n\r\n System.out.printf( \"%-10s%-15s%-15s%10s\\n\", \"Account\",\r\n \"First Name\", \"Last Name\", \"Balance\" );\r\n\r\n try // read a record and display\r\n {\r\n while ( true )\r\n {\r\n do\r\n {\r\n record.read( input );\r\n } while ( record.getAccount() == 0 );\r\n\r\n // display record contents\r\n System.out.printf( \"%-10d%-12s%-12s%10.2f\\n\",\r\n record.getAccount(), record.getFirstName(),\r\n record.getLastName(), record.getBalance() );\r\n } // end while\r\n } // end try\r\n catch ( EOFException eofException ) // close file\r\n {\r\n return; // end of file was reached\r\n } // end catch\r\n catch ( IOException ioException )\r\n {\r\n System.err.println( \"Error reading file.\" );\r\n System.exit( 1 );\r\n } // end catch\r\n }", "public static void withdrawMoney(ATMAccount account) throws FileNotFoundException {\r\n\r\n\t\t// File initialization\r\n\t\taccountsdb = new File(\"accountsdb.txt\");\r\n\t\t// #ADDED THE 2-D ARRAY\r\n\t\tString[][] accountInfo = null;\r\n\r\n\t\tif (accountsdb.exists()) {\r\n\t\t\taccountsdbReader = new Scanner(accountsdb);\r\n\t\t\tint y = 0;\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\ty++;\r\n\t\t\t\taccountInfo = new String[y][4];\r\n\t\t\t\taccountsdbReader.nextLine();\r\n\t\t\t}\r\n\t\t\taccountsdbReader.close();\r\n\t\t}\r\n\r\n\t\tdouble withdrawAmount;\r\n\t\tdo {\r\n\t\t\tSystem.out.println(\"Enter the amount you want to withdraw:\");\r\n\t\t\twithdrawAmount = userInput.nextDouble();\r\n\t\t\tif (account.getBalance() < 0 || withdrawAmount > account.getBalance()) {\r\n\t\t\t\tSystem.out.println(\"Insufficient balance!\");\r\n\t\t\t} else {\r\n\t\t\t\taccount.setWithdraw(withdrawAmount);\r\n\t\t\t}\r\n\r\n\t\t} while (withdrawAmount < 0);\r\n\r\n\t\tString s = \"\";\r\n\t\tif (accountsdb.exists()) {\r\n\t\t\tint y = 0;\r\n\t\t\taccountsdbReader = new Scanner(accountsdb);\r\n\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\ts = accountsdbReader.nextLine();\r\n\t\t\t\tStringTokenizer spl = new StringTokenizer(s, \" \");\r\n\t\t\t\tfor (int x = 0; x != 4; x++) {\r\n\t\t\t\t\taccountInfo[y][x] = spl.nextToken();\r\n\r\n\t\t\t\t}\r\n\t\t\t\ty++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tint line = -1;\r\n\t\ttry {\r\n\r\n\t\t\tint accID;\r\n\t\t\tfor (int y = 0; y != accountInfo.length; y++) {\r\n\t\t\t\taccID = Integer.parseInt(accountInfo[y][0]);\r\n\t\t\t\tif (accID == account.getID())\r\n\t\t\t\t\tline = y;\r\n\r\n\t\t\t}\r\n\t\t\taccountInfo[line][2] = \"\" + account.getBalance();\r\n\t\t\tSystem.out.println(\"Withdrawing...\");\r\n\t\t\tSystem.out.println(\"New Balance: \" + accountInfo[line][2]);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tPrintWriter scrubFile = new PrintWriter(accountsdb);\r\n\t\t\tscrubFile.write(\"\");\r\n\t\t\tscrubFile.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tFileWriter fileWriter = new FileWriter(accountsdb, true);\r\n\t\t\tBufferedWriter fileBuffer = new BufferedWriter(fileWriter);\r\n\t\t\tPrintWriter fileOutput = new PrintWriter(fileBuffer);\r\n\t\t\tfor (int i = 0; i != accountInfo.length; i++) {\r\n\t\t\t\tfileOutput.println(accountInfo[i][0] + \" \" + accountInfo[i][1] + \" \" + accountInfo[i][2] + \" \"\r\n\t\t\t\t\t\t+ accountInfo[i][3]);\r\n\t\t\t}\r\n\r\n\t\t\tif (fileOutput != null) {\r\n\t\t\t\tfileOutput.close();\r\n\t\t\t}\r\n\t\t\tif (fileBuffer != null) {\r\n\t\t\t\tfileBuffer.close();\r\n\t\t\t}\r\n\t\t\tif (fileWriter != null) {\r\n\t\t\t\tfileWriter.close();\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\taccountsdbReader.close();\r\n\r\n\t}", "private static void assignBankAccounts() {\n\t\tfor (Customer customer : customerList) {\n\t\t\t//make sure customer has no current accounts before adding serialized accounts\n\t\t\tcustomer.clearAccounts();\n\t\t\t\n\t\t\tfor (BankAccount account : accountList) {\n\t\t\t\tif (account.getCustomer().getUsername().equals(customer.getUsername())) {\n\t\t\t\t\tcustomer.addAccount(account);\n\t\t\t\t} else if (account.getJointCustomer() != null\n\t\t\t\t\t\t&& account.getJointCustomer().getUsername().equals(customer.getUsername()))\n\t\t\t\t\tcustomer.addAccount(account);\n\t\t\t}\n\t\t}\n\t}", "private void initAccounts() {\n ((GenesisBlock) DependencyManager.getBlockchain().getGenesisBlock()).getAccountBalances().forEach((key, value) -> {\n Account account = getAccount(key);\n account.addBalance(value);\n });\n DependencyManager.getBlockchain().getChain().getChain().forEach(this::parseBlock);\n }", "public List<CoinbaseAccount> getCoinbaseAccounts() throws IOException {\n\n String path = \"/v2/accounts\";\n String apiKey = exchange.getExchangeSpecification().getApiKey();\n BigDecimal timestamp = coinbase.getTime(Coinbase.CB_VERSION_VALUE).getData().getEpoch();\n String signature = getSignature(timestamp, path);\n showCurl(apiKey, timestamp, signature, path);\n \n return coinbase.getAccounts(Coinbase.CB_VERSION_VALUE, apiKey, signature, timestamp).getData();\n }", "List<TransactionRec> loadRecordsByAccount(BankAccount account);", "void activateAllAccounts(File file) throws ServiceException;", "public static void depositMoney(ATMAccount account) throws FileNotFoundException {\r\n\t\taccountsdb = new File(\"accountsdb.txt\");\r\n\t\t//Use of two dimensional array to account for line number\r\n\t\tString[][] accountInfo = null;\r\n\r\n\t\tif (accountsdb.exists()) {\r\n\t\t\taccountsdbReader = new Scanner(accountsdb);\r\n\t\t\tint y = 0;\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\ty++;\r\n\t\t\t\taccountInfo = new String[y][4];\r\n\t\t\t\taccountsdbReader.nextLine();\r\n\t\t\t}\r\n\t\t\taccountsdbReader.close();\r\n\t\t}\r\n\r\n\t\tdouble depositAmount;\r\n\t\tdo {\r\n\t\t\tSystem.out.println(\"Enter the amount you want to deposit:\");\r\n\t\t\tdepositAmount = userInput.nextDouble();\r\n\t\t\tif (depositAmount < 0) {\r\n\t\t\t\tSystem.out.println(\"You cannot deposit a negative amount!\");\r\n\t\t\t}\r\n\r\n\t\t} while (depositAmount < 0);\r\n\t\taccount.setDeposit(depositAmount);\r\n\t\tSystem.out.println(\"Your deposit has been made.\");\r\n\r\n\t\tSystem.out.println(accountInfo.length);\r\n\r\n\t\tString s = \"\";\r\n\t\tif (accountsdb.exists()) {\r\n\t\t\tint y = 0;\r\n\t\t\taccountsdbReader = new Scanner(accountsdb);\r\n\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\ts = accountsdbReader.nextLine();\r\n\t\t\t\tStringTokenizer spl = new StringTokenizer(s, \" \");\r\n\t\t\t\tfor (int x = 0; x != 4; x++) {\r\n\t\t\t\t\taccountInfo[y][x] = spl.nextToken();\r\n\r\n\t\t\t\t}\r\n\t\t\t\ty++;\r\n\t\t\t}\r\n\t\t}\r\n/**\t\t\t\t\t\t\t\t\t\t\t VALIDATION PROOF\r\n *\t\tSystem.out.println(\"Line #1\" + \"\\n Index #0: \" + accountInfo[0][0] + \"\\t Index #1: \" + accountInfo[0][1]\r\n *\t\t\t\t+ \"\\t Index #2: \" + accountInfo[0][2] + \"\\t Index #3: \" + accountInfo[0][3]);\r\n *\t\tSystem.out.println(\"Line #2\" + \"\\n Index #0: \" + accountInfo[1][0] + \"\\t Index #1: \" + accountInfo[1][1]\r\n *\t\t\t\t+ \"\\t Index #2: \" + accountInfo[1][2] + \"\\t Index #3: \" + accountInfo[1][3]);\r\n *\t\tSystem.out.println(\"Line #3\" + \"\\n Index #0: \" + accountInfo[2][0] + \"\\t Index #1: \" + accountInfo[2][1]\r\n *\t\t\t\t+ \"\\t Index #2: \" + accountInfo[2][2] + \"\\t Index #3: \" + accountInfo[2][3]);\r\n *\t\tSystem.out.println(\"Line #4\" + \"\\n Index #0: \" + accountInfo[3][0] + \"\\t Index #1: \" + accountInfo[3][1]\r\n *\t\t\t\t+ \"\\t Index #2: \" + accountInfo[3][2] + \"\\t Index #3: \" + accountInfo[3][3]);\r\n *\t\t\t\t\r\n */\r\n\t\tint line = -1;\r\n\t\ttry {\r\n\r\n\t\t\tint accID;\r\n\t\t\tfor (int y = 0; y != accountInfo.length; y++) {\r\n\t\t\t\taccID = Integer.parseInt(accountInfo[y][0]);\r\n\t\t\t\tif (accID == account.getID())\r\n\t\t\t\t\tline = y;\r\n\r\n\t\t\t}\r\n\t\t\taccountInfo[line][2] = \"\" + account.getBalance();\r\n\t\t\tSystem.out.println(\"Depositing...\");\r\n\t\t\tSystem.out.println(\"New Balance: \" + accountInfo[line][2]);\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Account was not found in database array!\");\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tPrintWriter scrubFile = new PrintWriter(accountsdb);\r\n\t\t\tscrubFile.write(\"\");\r\n\t\t\tscrubFile.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tFileWriter fileWriter = new FileWriter(accountsdb, true);\r\n\t\t\tBufferedWriter fileBuffer = new BufferedWriter(fileWriter);\r\n\t\t\tPrintWriter fileOutput = new PrintWriter(fileBuffer);\r\n\t\t\tfor (int i = 0; i != accountInfo.length; i++) {\r\n\t\t\t\tfileOutput.println(accountInfo[i][0] + \" \" + accountInfo[i][1] + \" \" + accountInfo[i][2] + \" \"\r\n\t\t\t\t\t\t+ accountInfo[i][3]);\r\n\t\t\t}\r\n\r\n\t\t\tif (fileOutput != null) {\r\n\t\t\t\tfileOutput.close();\r\n\t\t\t}\r\n\t\t\tif (fileBuffer != null) {\r\n\t\t\t\tfileBuffer.close();\r\n\t\t\t}\r\n\t\t\tif (fileWriter != null) {\r\n\t\t\t\tfileWriter.close();\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\taccountsdbReader.close();\r\n\r\n\t}", "List<ClientAccount> getAllClientAccounts() throws ServiceException;", "public static ArrayList<Citizen> getAccounts()\n\t{\n\t\treturn accounts;\n\t}", "public void loadCustomerFromFile() throws IOException {\n\t\tString desktopPath = System.getProperty(\"user.home\") + \"\\\\Desktop\\\\customer\";\n\t\t\n\t\tFileInputStream fis = new FileInputStream(desktopPath);\n\t\tObjectInputStream ois = new ObjectInputStream(fis);\n\t\t\n\t\ttry {\n\t\t\tCustomer[] customersArr = (Customer[]) ois.readObject();\n\t\t\tcustomers.clear();\n\t\t\tcustomers.addAll(Arrays.asList(customersArr));\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tois.close();\n\t}", "public Bank(String name, int accs){\n bankAccounts = new Account[accs];\n bankName = name;\n maxAccounts = accs;\n currAccounts = 0; //empty\n }", "@Generated(hash = 96040862)\n public List<Account> getAccounts() {\n if (accounts == null) {\n final DaoSession daoSession = this.daoSession;\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n AccountDao targetDao = daoSession.getAccountDao();\n List<Account> accountsNew = targetDao._queryType_Accounts(id);\n synchronized (this) {\n if (accounts == null) {\n accounts = accountsNew;\n }\n }\n }\n return accounts;\n }", "@SuppressWarnings(\"unchecked\")\n private void saveAccounts() {\n JSONObject output = new JSONObject();\n JSONArray allaccounts = new JSONArray();\n for (Account account: accounts) {\n if (account.getName().equals(pickedAccount.getName())) {\n allaccounts.add(pickedAccount.toJsonObject());\n } else {\n allaccounts.add(account.toJsonObject());\n }\n }\n output.put(\"accounts\", allaccounts);\n\n try {\n FileWriter file = new FileWriter(\"./data/account.json\");\n file.write(output.toJSONString());\n file.flush();\n file.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public Bank() throws Exception\r\n\t{\r\n\t\tScanner fileScan = new Scanner(new File(\"C:\\\\Users\\\\jason\\\\workspace\\\\proj1fa14\\\\bankdata.txt\"));\r\n\t\taccounts = new Account[10];\r\n\t\tnumAccounts = 0;\r\n\t\tCustomer customer;\r\n\t\tAccount account;\r\n\t\tfor(int i = 0; i<9; i++)\r\n\t\t{\r\n\t\t\tString first = fileScan.next();\r\n\t\t\t//System.out.println(first);\r\n\t\t\tString last = fileScan.next();\r\n\t\t\t//System.out.println(last);\r\n\t\t\tint age = fileScan.nextInt();\r\n\t\t\tString pN = fileScan.next();\r\n\t\t\tint ba = fileScan.nextInt();\r\n\t\t\tint ch = fileScan.nextInt();\r\n\t\t\tString accNum = fileScan.next();\r\n\t\t\tcustomer = new Customer(first,last,age,pN);\r\n\t\t\taccount = new Account(customer,ba,ch, accNum);\r\n\t\t\taccounts[i] = account;\r\n\t\t\tnumAccounts++;\r\n\t\t}\r\n\t\tfileScan.close();\r\n\t}", "public void printAccounts() { \r\n\t\tif ( size == 0 ) {\r\n\t\t\tSystem.out.println(\"Accounts is empty\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"--Listing accounts in the database--\");\r\n\t\tfor(int i = 0; i < accounts.length; i++) {\r\n\t\t\tif ( accounts[i] != null ) {\r\n\t\t\t\tSystem.out.println(accounts[i].toString());\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"--end of listing--\");\r\n\t\tSystem.out.println();\r\n\t\treturn;\r\n\t}", "@Override\n\tpublic List<Account> findAllAccounts() {\n\t\treturn m_accountDao.findAll();\n\t}", "private Account loadTestData(String dataFile) throws ParserConfigurationException, \n SAXException, IOException {\n try {\n // getting parser\n SAXParserFactory factory = SAXParserFactory.newInstance();\n factory.setNamespaceAware(true);\n SAXParser parser = factory.newSAXParser();\n XMLReader reader = parser.getXMLReader();\n \n // getting loader\n InvoiceXMLLoaderCH loader = new InvoiceXMLLoaderCH();\n \n // getting input file\n InputSource input = new InputSource(this.getClass().getResourceAsStream(dataFile));\n \n // setting content handler and parsing file\n reader.setContentHandler(loader);\n reader.parse(input);\n \n return (Account) loader.getAccountList().get(0);\n \n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n throw e;\n } catch (SAXException e) {\n e.printStackTrace();\n throw e;\n } catch (IOException e) {\n e.printStackTrace();\n throw e;\n }\n }", "@Override\r\n\tpublic Account loadAccount(String accountNumber) {\n\t\tAccount account1=null;\r\n\t\ttry {\r\n\t\t\taccount1 = account.getclone(account);\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tString sql = \"SELECT a.accountNumber, a.balance, a.accountType, b.name, b.email, c.street, c.city, c.zip, c.state \"+\r\n \"FROM customer b \"+\r\n \"INNER JOIN address c \"+\r\n \"ON b.addressID = c.ID \"+\r\n \"INNER JOIN account a \"+\r\n \"ON b.ID = a.CustomerID \"+\r\n\t\t\"WHERE a.accountNumber = \"+accountNumber+\";\" ;\r\n\t\tPreparedStatement preparedStatement;\r\n\r\n\r\n\r\ntry {\r\n\r\n\tpreparedStatement = con.prepareStatement(sql);\r\n\t\r\n\t\r\n ResultSet rs=preparedStatement.executeQuery();\r\n\r\n\r\n while ( rs.next() ) {\r\n \taccount1.setAccountNumber(Integer.toString(rs.getInt(1)));\r\n \taccount1.setBalance((double) rs.getInt(2));\r\n \tAccountType accty=BankAccountType.CHECKING;\r\n \tif(\"SAVING\".equalsIgnoreCase(rs.getString(3))){\r\n \t\taccty=BankAccountType.SAVING;\r\n \t}\r\n \taccount1.setAccountType(accty);\r\n \taccount1.getCustomer().setName(rs.getString(4));\r\n \taccount1.getCustomer().setEmail(rs.getString(5));\r\n \taccount1.getCustomer().getAddress().setStreet(rs.getString(6));\r\n \taccount1.getCustomer().getAddress().setCity(rs.getString(7));\r\n \taccount1.getCustomer().getAddress().setZip(rs.getString(8));\r\n \taccount1.getCustomer().getAddress().setState(rs.getString(9));\r\n \taccount1.setAccountEntries(getAccountEntry(accountNumber));\r\n \t\r\n System.out.println(account1);\r\n \r\n }\r\n} catch (SQLException e) {\r\n\t// TODO Auto-generated catch block\r\n\tSystem.out.println(\"Connection Failed! Check output console\");\r\n\te.printStackTrace();\r\n}\r\nlog();\r\n\r\n \r\nreturn account1;\r\n\t}", "public ArrayList<BankAccount> getAccounts() {\n return accounts;\n }", "public void loadFromLocalXML(Context context) {\n\n AccountManager.getInstance().reset();\n int _cnt = PreferenceManager.getDefaultSharedPreferences(context).getInt(\"Account_amount\", 0);\n for (int _iter = 0; _iter < _cnt; _iter++) {\n String[] _tmp;\n _tmp = PreferenceManager.getDefaultSharedPreferences(context).getString(\"Account_\" + String.valueOf(_iter), \"\").split(String.valueOf(separator));\n this.addAccount(_tmp[0], _tmp[1], _tmp[2], Integer.valueOf(_tmp[3]));\n }\n\n }", "private void initSystemAccountsData() throws HpcException {\n for (HpcIntegratedSystem system : HpcIntegratedSystem.values()) {\n // Get the data transfer system account.\n final List<HpcIntegratedSystemAccount> accounts = systemAccountDAO.getSystemAccount(system);\n if (accounts != null && accounts.size() == 1) {\n singularSystemAccounts.put(system, accounts.get(0));\n }\n }\n }", "@Override\n public List<Account> listAccounts() {\n currentCustomer.findAndUpdateAccounts();\n // return list of accounts the customer owns\n return currentCustomer.getAccounts();\n }", "private void createAccounts(){\r\n for(int i = 0; i < accountInTotal; i++){\r\n try {\r\n Account tempAccount = new Account(startingBonds);\r\n theAccounts.add(tempAccount);\r\n } catch(Exception e){\r\n System.err.println(\"Error\");\r\n }\r\n }\r\n }", "public void updateAccounts(HashMap<String, Accounts> accounts){\n this.accounts = accounts;\n }", "private void loadTransactions(String transactionFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(transactionFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //read...\n String currentLine = input.nextLine();\n\n //parse on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n int transactionId = Integer.parseInt(splitLine[0]);\n\n String accountTypeChar = splitLine[1];\n TransactionType transactionType = null;\n switch (accountTypeChar)\n {\n case \"D\":\n transactionType = TransactionType.DEBIT;\n break;\n\n case \"C\":\n transactionType = TransactionType.CREDIT;\n break;\n\n case \"T\":\n transactionType = TransactionType.TRANSFER;\n }\n\n String description = splitLine[2];\n Date date = dateFormat.parse(splitLine[3]);\n double amount = Double.parseDouble(splitLine[4]);\n int accountId = Integer.parseInt(splitLine[5]);\n\n Transaction transaction = new Transaction(transactionId,\n transactionType,\n description,\n date,\n amount,\n accountId);\n\n transactionHashMap.putIfAbsent(accountId, new ArrayList<>());\n transactionHashMap.get(accountId).add(transaction);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "public static ATMAccount LogIn() throws FileNotFoundException, IOException, InterruptedException {\r\n\t\tATMAccount account = null;\r\n\t\tSystem.out.println(\"Enter your account ID:\");\r\n\t\tint intaccID;\r\n\t\tintaccID = userInput.nextInt();\r\n\t\tString accID = intaccID + \"\";\r\n\t\tString[] dataGrabbed = new String[4];\r\n\t\tFile thisFile = new File(\"accountsdb.txt\");\r\n\t\taccountsdbReader = new Scanner(thisFile);\r\n\r\n\t\tif (thisFile.exists()) {\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\tString accountIDHolder = accountsdbReader.findInLine(accID);\r\n\t\t\t\tif (accountIDHolder == null) {\r\n\r\n\t\t\t\t\taccountsdbReader.nextLine();\r\n\t\t\t\t} else if (accountIDHolder.equals(accID)) {\r\n\t\t\t\t\tfor (int i = 1; i < dataGrabbed.length; i++) {\r\n\t\t\t\t\t\tif (accountsdbReader.hasNext())\r\n\t\t\t\t\t\t\tdataGrabbed[i] = accountsdbReader.next();\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if ((!(accountsdbReader.hasNextLine()) && account == null)) {\r\n\t\t\t\t\tSystem.out.println(\"This account does not exist!\");\r\n\t\t\t\t\tATMStartScreen();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tdataGrabbed[0] = accID;\r\n\r\n\t\t\t}\r\n\t\t\tint validationLoop = 3;\r\n\t\t\tString pinValidity;\r\n\t\t\tuserInput.nextLine();\r\n\t\t\tdo {\r\n\t\t\t\tSystem.out.println(\"Please enter your 4 digit pin in order to access your account:\");\r\n\t\t\t\tpinValidity = userInput.nextLine();\r\n\t\t\t\tif (pinValidity.equals(dataGrabbed[3])) {\r\n\t\t\t\t\tSystem.out.println(\"PIN Confirmed!\");\r\n\t\t\t\t\tSystem.out.println(\"Displaying account options...\");\r\n\t\t\t\t\taccount = new ATMAccount(Integer.parseInt(dataGrabbed[0]), dataGrabbed[1],\r\n\t\t\t\t\t\t\tInteger.parseInt(dataGrabbed[3]), Double.parseDouble(dataGrabbed[2]));\r\n\r\n\t\t\t\t\treturn account;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tSystem.out.println(\"PIN Declined!\");\r\n\t\t\t\t\tSystem.out.println(\"You have \" + validationLoop + \" attempts remaining.\");\r\n\r\n\t\t\t\t}\r\n\t\t\t\tvalidationLoop--;\r\n\t\t\t} while (!pinValidity.equals(dataGrabbed[3]) && validationLoop != -1);\r\n\t\t\tSystem.out.println(\"You have exhausted all of your attempts you will now return to the main menu.\");\r\n\t\t} else {\r\n\t\t\t// Return to StartScreen before being able to return null account\r\n\t\t\tSystem.out.println(\"File was not found!\");\r\n\t\t\tSystem.out.println(\"Returning to main menu...\");\r\n\t\t\tATMStartScreen();\r\n\t\t}\r\n\t\tSystem.out.println(\"Returning to main menu...\");\r\n\t\tATMStartScreen();\r\n\t\treturn null;\r\n\r\n\t}", "void activateAccount(File file, int accountID) throws ServiceException;", "public void addAccount(Account acct){\n int i = numberOfAccounts++; // Each time we addAccount..\n accounts[i] = acct; //..we store it to the account array.\n \n }", "public ArrayList getAccountList() throws RemoteException, SQLException, Exception;", "@Override\n\tpublic List<Account> findAccountByIdUser(int id) {\n\t\treturn null;\n\t}", "public static boolean syncAccountsExist(Context c) {\n final boolean accountsExist = AccountManager.get(c).getAccountsByType(SyncConstants.ACCOUNTTYPE_SYNC).length > 0;\n if (accountsExist) {\n return true;\n }\n\n final File file = c.getFileStreamPath(Constants.ACCOUNT_PICKLE_FILENAME);\n if (!file.exists()) {\n return false;\n }\n\n // There is a small race window here: if the user creates a new Sync account\n // between our checks, this could erroneously report that no Sync accounts\n // exist.\n final Account account = AccountPickler.unpickle(c, Constants.ACCOUNT_PICKLE_FILENAME);\n return (account != null);\n }", "public ArrayList<Account> GetCustomerAccounts(String ssn)\n {\n ArrayList<Account> result = new ArrayList<>();\n\n for (Account account : accounts)\n {\n if (account.getSsn().equals(ssn))\n {\n result.add(account);\n }\n }\n\n return result;\n }", "public void\tsaveAccounts() throws IOException;", "public static void addAccount (int customerId, int accountId, Database d)\r\n\t{\r\n\r\n\t\tCustomer c = d.getCustomer(customerId);\r\n\r\n\t\tc.AccountList.add(accountId);\r\n\r\n\t}", "java.util.List<com.google.cloud.compute.v1.ServiceAccount> getServiceAccountsList();", "public void getUserAccounts(){\n UserAccountDAO userAccountsManager = DAOFactory.getUserAccountDAO();\n //populate with values from the database\n if(!userAccountsManager.readUsersHavingResults(userAccounts)){\n //close the window due to read failure\n JOptionPane.showMessageDialog(rootPanel, \"Failed to read user accounts from database. Please check your internet connection and try again.\");\n System.exit(-4);\n }\n }", "public static ArrayList<Account> getAccounts() {\n ArrayList<Account> accounts = new ArrayList<>();\n\n try (Statement statement = connection.createStatement()) {\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM LOGIN_ACCOUNTS\");\n while (resultSet.next()) { // as long as the next row is not null\n String username, password, firstName, lastName;\n int age;\n username = resultSet.getString(\"username\");\n password = resultSet.getString(\"password\");\n firstName = resultSet.getString(\"firstname\");\n lastName = resultSet.getString(\"lastname\");\n age = resultSet.getInt(\"age\");\n // place all the new items into a new Account object\n Account newAccount = new Account(username, password, firstName, lastName, age);\n // add the account to the list\n accounts.add(newAccount);\n }\n } catch (SQLException exc) {\n Logger.getLogger(Database.class.getName()).log(Level.SEVERE, null, exc);\n }\n\n return accounts;\n }", "@Override\n\tpublic List<Account> GetAllAccounts() {\n\t\tif(accountList.size() > 0)\n\t\t\treturn accountList;\n\t\treturn null;\n\t}", "public void loadAccount(Account account)\r\n {\r\n // TODO Remove this indication ?\r\n MessengerManager.showToast(this, getString(R.string.account_loading) + \" \" + account.getDescription());\r\n SessionUtils.setsession(this, null);\r\n SessionUtils.setAccount(this, account);\r\n if (account.getActivation() != null)\r\n {\r\n MessengerManager.showLongToast(this, getString(R.string.account_not_activated));\r\n }\r\n else\r\n {\r\n setProgressBarIndeterminateVisibility(true);\r\n AccountLoginLoaderCallback call = new AccountLoginLoaderCallback(this, account);\r\n // If the loader already exist, we do nothing.\r\n // It prevents to request OAuth token multiple times.\r\n if (getLoaderManager().getLoader(call.getAccountLoginLoaderId()) == null)\r\n {\r\n getLoaderManager().restartLoader(call.getAccountLoginLoaderId(), null, call);\r\n }\r\n }\r\n }", "public List<Account> getEncryptedAccounts(String master_key) throws AEADBadTagException {\n List<Account> accounts = new ArrayList<>();\n Gson gson = new Gson();\n\n encryptedSharedPreferences = getEncryptedSharedPreferences(master_key);\n\n if (encryptedSharedPreferences != null) {\n Map<String, ?> all = encryptedSharedPreferences.getAll();\n\n for (Map.Entry<String, ?> entry : all.entrySet()) {\n if (!entry.getKey().equals(MASTER_KEY)) {\n //Log.d(TAG, \"Key: \" + entry.getKey() + \", Value: \" + String.valueOf(entry.getValue()));\n Account tmpAccount = gson.fromJson(String.valueOf(entry.getValue()), Account.class);\n accounts.add(tmpAccount);\n }\n }\n }\n\n return accounts;\n }", "public void loadContacts()\n {\n Contact sdhb = new Contact(\"SDHB\", \"(03) 474 00999\");\n //Hospitals\n Contact southland = new Contact(\"Southland Hospital\", \"(03) 218 1949\");\n Contact lakes = new Contact(\"Lakes District Hostpital\", \"(03) 441 0015\");\n Contact dunedin = new Contact(\"Dunedin Hospital\", \"(03) 474 0999\");\n Contact wakari = new Contact(\"Wakari Hospital\", \"(03) 476 2191\");\n //Departments\n Contact compD = new Contact(\"Complements & Complaints (Otago)\", \"(03) 470 9534\");\n Contact compS = new Contact(\"Complements & Complaints (Southland)\", \"(03) 214 5738\");\n\n contacts = new Contact[]{sdhb, dunedin, southland, lakes, wakari, compD, compS};\n }", "private static void testdeleteAndAddLoanAccounts(String lineOfCreditId, List<LoanAccount> accounts)\n\t\t\tthrows MambuApiException {\n\n\t\tSystem.out.println(\"\\nIn testdeleteAndAddLoanAccounts for LoC=\" + lineOfCreditId);\n\n\t\tLinesOfCreditService linesOfCreditService = MambuAPIFactory.getLineOfCreditService();\n\t\tString accountId = null;\n\t\tif (accounts == null || accounts.size() == 0) {\n\t\t\tSystem.out.println(\"WARNING: no Loan Account to remove for LoC=\" + lineOfCreditId);\n\t\t} else {\n\t\t\t// We have assigned accounts. Test remove and then test adding it back\n\t\t\t// Test removing Loan Account. Accounts requiring LoC cannot be removed, so try until can\n\t\t\tfor (LoanAccount account : accounts) {\n\t\t\t\taccountId = account.getId();\n\t\t\t\ttry {\n\t\t\t\t\tboolean deleted = linesOfCreditService.deleteLoanAccount(lineOfCreditId, accountId);\n\t\t\t\t\tSystem.out.println(\"Removed Status=\" + deleted + \"\\tAccount with ID=\" + accountId\n\t\t\t\t\t\t\t+ \" deleted from LoC=\" + lineOfCreditId);\n\t\t\t\t\t// Deleted OK, now add the same back\n\t\t\t\t\tLoanAccount addedLoan = linesOfCreditService.addLoanAccount(lineOfCreditId, accountId);\n\t\t\t\t\tSystem.out.println(\"Added Loan Account with ID=\" + addedLoan.getId() + \" to LoC=\" + lineOfCreditId);\n\t\t\t\t} catch (MambuApiException e) {\n\t\t\t\t\tSystem.out.println(\"Failed to remove account \" + accountId + \"\\tMessage=\" + e.getErrorMessage());\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t}", "@HystrixCommand(fallbackMethod=\"getCustomerAccountListDegrade\")\n public List<Account> getCustomerAccountList(String id){\n \tSystem.out.println(\"account url=\"+accountSvcBaseUrl);\n \tRestTemplate restTemplate = new RestTemplate();\n \tURI accountUri = URI.create(String.format(\"%s/%s\", accountSvcBaseUrl,id));\n \tAccount[] userAccounts= restTemplate.getForObject(accountUri, Account[].class);\n \treturn (List<Account>)Arrays.asList(userAccounts);\n }", "public ArrayList<BankAccount> getAccounts() {\n\t\tString sql = \"SELECT id, name, balance, balance_saving FROM accounts WHERE id > ?\";\n\n\t\tArrayList<BankAccount> bankAccounts = new ArrayList<>();\n\n\t\ttry (PreparedStatement pstmt = dbConnection.prepareStatement(sql)) {\n\t\t\t// set the value\n\t\t\tpstmt.setInt(1, 0);\n\n\t\t\tResultSet rs = pstmt.executeQuery();\n\n\t\t\t// loop through the result set\n\t\t\twhile (rs.next()) {\n\t\t\t\tint id = rs.getInt(\"id\");\n\t\t\t\tString name = rs.getString(\"name\");\n\t\t\t\tint checking_balance = rs.getInt(\"balance\");\n\t\t\t\tint saving_balance = rs.getInt(\"balance_saving\");\n\n\t\t\t\tBankAccount bankAccount = new BankAccount(id, name, checking_balance, saving_balance);\n\t\t\t\tbankAccounts.add(bankAccount);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\n\t\treturn bankAccounts;\n\t}", "public FilteredBankAccountsIterator(BankAccountsBinarySearchTree bankAccountsTree) {\r\n \tthis.bankAccountsTree = bankAccountsTree;\r\n \tcurrent = bankAccountsTree.root.data;\r\n \tbankAccounts = new LinkedList();\r\n \t//Initialize an iterator goes over the tree\r\n \tBinaryTreeInOrderIterator <BankAccount> iter = new BinaryTreeInOrderIterator(bankAccountsTree.root);\r\n \t//check if there is bank account with a balance over than 100 \r\n \twhile(iter.hasNext()) {\r\n \t\tcurrent=iter.next();\r\n \t\tif(current.getBalance()>100) {\r\n \t\t\t//if such a bank account exist, add it to the end of the list\r\n \t\t\tbankAccounts.add(current);\r\n \t\t}\r\n \t}\r\n }", "public static void loadcars() {\n Cars xx = new Cars();\n System.out.println(\"Load cars\");\n listcars.clear();\n try {\n File fileload = new File(\"cars.csv\");\n BufferedReader in = new BufferedReader(new FileReader(fileload));\n String st;\n while((st = in.readLine()) != null) {\n String[] strs = st.split(\"[,//;]\");\n addcar(strs[0], strs[1], strs[2],Integer.parseInt(strs[3]));\n }\n in.close();\n System.out.println(\"cars data restored from cars.csv\");\n } catch (IOException i) {\n i.printStackTrace();\n }\n\n\n }", "public MusicData[] loadAllOther(Long accountId) throws MusicAppException;", "private void loadCards() {\n adapter = new LibrarianAccountManagerArrayAdapter(context, 0, accounts);\n\n\n //create a database reference so we can access the firebase database.\n final DatabaseReference database = FirebaseDatabase.getInstance().getReference();\n\n //set a listener so we can loop over values in the database.\n database.child(\"Users\").addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n //loop over the dataSnapshot children.\n for(DataSnapshot d : dataSnapshot.getChildren()) {\n\n //get the name, and status as linked under the name child.\n String name = d.child(\"Name\").getValue().toString();\n String status = d.child(\"Status\").getValue().toString();\n\n //if the user is a librarian, we don't need to add their checkout data.\n if (status.equals(\"Librarian\")) continue;\n\n //only if the user has books checked out, get the value otherwise initialize it to 0.\n int booksCheckedOut = 0;\n if(d.hasChild(\"BooksCheckedOut\")) { //prevents a crash.\n booksCheckedOut = (int) d.child(\"BooksCheckedOut\").getChildrenCount();\n }\n\n //only if the user has books on hold, get the value otherwise initialize it to 0.\n int booksOnHold = 0;\n if(d.hasChild(\"BooksOnHold\")) { //prevents a crash.\n booksOnHold = (int) d.child(\"BooksOnHold\").getChildrenCount();\n }\n\n //only if the user has overdue books, get the value otherwise initialize it to 0.\n int overdueBookCount = 0;\n for(DataSnapshot books : d.child(\"BooksCheckedOut\").getChildren()) {\n\n //compute the (potential) overdue time a book has been out for.\n long days = TimeUnit.MILLISECONDS.toDays(System.currentTimeMillis() - books.getValue(Long.class));\n\n //if days is more than 1 for a teacher then it is overdue.\n //if days is more than 1 for a student then it is overdue.\n if(days > 1) {\n //increment overdueBookCount only if the book has been due for over 1 day.\n overdueBookCount++;\n }\n }\n\n //add the new account information to the database.\n accounts.add(new AccountManagerItem(name, status, booksCheckedOut, booksOnHold, overdueBookCount));\n\n }\n\n //notify the adapter that we have new data so we can update the UI.\n adapter.notifyDataSetChanged();\n listView.setAdapter(adapter);\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n\n\n }", "String getAccountList(int accountId);", "public List<Accounts> getAllAccounts() {\n List<Accounts> accountList = new ArrayList<Accounts>();\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + TABLE_ACCOUNTS;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n Accounts account = new Accounts();\n account.setID(Integer.parseInt(cursor.getString(0)));\n account.setName(cursor.getString(1));\n account.setPassword(cursor.getString(2));\n account.setPhoneNumber(cursor.getString(3));\n account.setEmail(cursor.getString(4));\n // Adding account to list\n accountList.add(account);\n } while (cursor.moveToNext());\n }\n\n // return account list\n return accountList;\n }", "public static void loadCustomers() throws IOException\r\n\t{\r\n\t\tclearScreen();\r\n\t\t// clear the current customers ArrayList\r\n\t\tcustomers.clear();\r\n\t\t// restore customers from CustomerDatabase.txt\r\n\t\tcustomers = Datasaver.loadCustomers();\r\n\t\tSystem.out.println(\"[CUSTOMERS RESOTRED FROM CustomerDatabase.txt]\\n\");\r\n\t\tSystem.out.println(\"[PRESS ENTER TO CONTINUE]\");\r\n\t\t// Get a garbage user input before showing the next screen\r\n\t\tString trash = new String(inputString(true));\r\n\t}", "public List<B2bInvoiceAccount> getAccounts() {\r\n return this.accounts;\r\n }", "public ArrayList<TransactionDetailByAccount> getMissionChecksByAccount(\n\t\t\tlong accountId, FinanceDate start, FinanceDate end, long companyId)\n\t\t\tthrows AccounterException {\n\t\tSession session = HibernateUtil.getCurrentSession();\n\t\tArrayList<TransactionDetailByAccount> list = new ArrayList<TransactionDetailByAccount>();\n\n\t\tAccount account = (Account) session.get(Account.class, accountId);\n\t\tif (account == null) {\n\t\t\tthrow new AccounterException(Global.get().messages()\n\t\t\t\t\t.pleaseSelect(Global.get().messages().account()));\n\t\t}\n\t\tList result = new ArrayList();\n\t\tif (account.getType() == Account.TYPE_OTHER_CURRENT_ASSET) {\n\t\t\tresult = session\n\t\t\t\t\t.getNamedQuery(\"get.all.invoices.by.account\")\n\t\t\t\t\t.setParameter(\"startDate\", start.getDate())\n\t\t\t\t\t.setParameter(\"endDate\", end.getDate())\n\t\t\t\t\t.setParameter(\"companyId\", companyId)\n\t\t\t\t\t.setParameter(\"accountId\", accountId)\n\t\t\t\t\t.setParameter(\"tobePrint\", \"TO BE PRINTED\",\n\t\t\t\t\t\t\tEncryptedStringType.INSTANCE)\n\t\t\t\t\t.setParameter(\"empty\", \"\", EncryptedStringType.INSTANCE)\n\t\t\t\t\t.list();\n\t\t} else if (account.getType() == ClientAccount.TYPE_BANK) {\n\t\t\tresult = session\n\t\t\t\t\t.getNamedQuery(\"get.missing.checks.by.account\")\n\t\t\t\t\t.setParameter(\"accountId\", accountId)\n\t\t\t\t\t.setParameter(\"startDate\", start.getDate())\n\t\t\t\t\t.setParameter(\"endDate\", end.getDate())\n\t\t\t\t\t.setParameter(\"companyId\", companyId)\n\t\t\t\t\t.setParameter(\"tobePrint\", \"TO BE PRINTED\",\n\t\t\t\t\t\t\tEncryptedStringType.INSTANCE)\n\t\t\t\t\t.setParameter(\"empty\", \"\", EncryptedStringType.INSTANCE)\n\t\t\t\t\t.list();\n\t\t}\n\t\tIterator iterator = result.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tObject[] objects = (Object[]) iterator.next();\n\t\t\tTransactionDetailByAccount detailByAccount = new TransactionDetailByAccount();\n\t\t\tdetailByAccount\n\t\t\t\t\t.setTransactionId((Long) (objects[0] != null ? objects[0]\n\t\t\t\t\t\t\t: 0));\n\t\t\tdetailByAccount\n\t\t\t\t\t.setTransactionType((Integer) (objects[1] != null ? objects[1]\n\t\t\t\t\t\t\t: 0));\n\t\t\tdetailByAccount\n\t\t\t\t\t.setTransactionNumber((String) (objects[2] != null ? objects[2]\n\t\t\t\t\t\t\t: \"\"));\n\t\t\tClientFinanceDate date = new ClientFinanceDate(\n\t\t\t\t\t(Long) (objects[3] != null ? objects[3] : 0));\n\t\t\tdetailByAccount.setTransactionDate(date);\n\t\t\tdetailByAccount.setName((String) (objects[4] != null ? objects[4]\n\t\t\t\t\t: \"\"));\n\t\t\tdetailByAccount\n\t\t\t\t\t.setAccountName((String) (objects[5] != null ? objects[5]\n\t\t\t\t\t\t\t: \"\"));\n\t\t\tdetailByAccount.setMemo((String) (objects[6] != null ? objects[6]\n\t\t\t\t\t: \"\"));\n\t\t\tdetailByAccount.setTotal((Double) (objects[7] != null ? objects[7]\n\t\t\t\t\t: 0.0));\n\t\t\tlist.add(detailByAccount);\n\n\t\t}\n\t\treturn list;\n\t}", "public List<Account> viewAllAccountsPaginated(int start, int limit) {\n\t\tList<Account> list = new ArrayList<>(accounts.values());\n\t\tif(start + limit >= list.size()){\n\t\t\treturn list.subList(start, list.size());\n\t\t}\n\t\treturn list.subList(start, start + limit);\n\t}", "public List <Account> getAllAccountsByRIB(String RIB);", "private HashMap<String, ArrayList<Color>> loadXKCDColors() {\n\t\ttry {\n\t\t\t/* Open the file for reading. */\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(COLORS_FILE));\n\t\t\t\n\t\t\t/* Construct the HashMap that we will provide back as a result. */\n\t\t\tHashMap<String, ArrayList<Color>> result = new HashMap<String, ArrayList<Color>>();\n\t\t\t\n\t\t\twhile (true) {\n\t\t\t\t/* Read the next entry:\n\t\t\t\t * 1. The name of the color.\n\t\t\t\t * 2. Its red component.\n\t\t\t\t * 3. Its green component.\n\t\t\t\t * 4. Its blue component.\n\t\t\t\t */\n\t\t\t\tString colorName = br.readLine();\n\t\t\t\tString r = br.readLine();\n\t\t\t\tString g = br.readLine();\n\t\t\t\tString b = br.readLine();\n\t\t\t\t\n\t\t\t\t/* If we ran out of data, we're done. */\n\t\t\t\tif (b == null) break;\n\t\t\t\t\n\t\t\t\t/* Construct a Color object from this data. */\n\t\t\t\tColor color = new Color(Integer.parseInt(r),\n\t\t\t\t Integer.parseInt(g),\n\t\t\t\t Integer.parseInt(b));\n\t\t\t\t\n\t\t\t\t/* Ensure that there's an ArrayList waiting for us. */\n\t\t\t\tif (!result.containsKey(colorName)) {\n\t\t\t\t\tresult.put(colorName, new ArrayList<Color>());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/* Add this color data to the color list. */\n\t\t\t\tresult.get(colorName).add(color);\n\t\t\t}\n\t\t\t\n\t\t\tbr.close();\n\t\t\treturn result;\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tthrow new ErrorException(e);\n\t\t}\n\t}", "@Override\n public List<Account> findAllByCustomerId(String customerId) {\n Query findByCustomer = new Query();\n findByCustomer.addCriteria(Criteria.where(\"customerId\").is(customerId));\n return operations.find(findByCustomer, Account.class);\n }", "private void readFile() {\r\n\t\tcsvEntrys = new ArrayList<>();\r\n\t\tString line = \"\";\r\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(new File(filepath)))) {\r\n\t\t\twhile ((line = br.readLine()) != null) {\r\n\t\t\t\tif (!line.contains(\"id\")) {\r\n\t\t\t\t\tcsvEntrys.add(line);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public ArrayList getAllAccountIds() {\n\t\tConnection dbAccess = DataAccess.getDbAccess();\n\t\tStatement sttmnt;\n\t\tResultSet rs;\n\t\ttry {\n\t\t\tsttmnt = dbAccess.createStatement();\n\t\t\trs = sttmnt.executeQuery(\"SELECT acc_id FROM accounts\");\n\t\t\twhile (rs.next()) {\n\t\t\t\taccountIds.add(rs.getInt(\"acc_id\"));\n\t\t\t}\n\t\t\tdbAccess.close();\n\t\t} catch (SQLException se) {\n\t\t\tse.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn accountIds;\n\t}", "private void loadAccount() {\n if (mSingleAccountApp == null) {\n return;\n }\n\n mSingleAccountApp.getCurrentAccountAsync(new ISingleAccountPublicClientApplication.CurrentAccountCallback() {\n @Override\n public void onAccountLoaded(@Nullable IAccount activeAccount) {\n // You can use the account data to update your UI or your app database.\n mAccount = activeAccount;\n updateUI();\n }\n\n @Override\n public void onAccountChanged(@Nullable IAccount priorAccount, @Nullable IAccount currentAccount) {\n if (currentAccount == null) {\n // Perform a cleanup task as the signed-in account changed.\n showToastOnSignOut();\n }\n }\n\n @Override\n public void onError(@NonNull MsalException exception) {\n displayError(exception);\n }\n });\n }", "private void setUserAccount() throws FileNotFoundException\r\n\t{\r\n\t\tint index = 0;\r\n\t\tFile inputFile = new File(\"UserAccount.txt\");\r\n\t\tScanner input = new Scanner(inputFile);\r\n\t\tif (!inputFile.exists())\r\n\t\t{\r\n\t\t\tSystem.out.println(\"The text file \\\"UserAccount.txt\\\" is missing\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\twhile(input.hasNextLine())\r\n\t\t{\r\n\t\t\tuserAccounts[0][index] = input.nextLine();\t\t\t//stores the username\r\n\t\t\tuserAccounts[1][index] = input.nextLine();\t\t\t//stores the password\r\n\t\t\tnumOfUsers++;\r\n\t\t\tindex++;\r\n\t\t}\r\n\t}", "public Collection<Integer> getDepositAccounts() {\n try {\n return costumerRepo.getAllAccounts(ssn, \"DepositAccount\");\n }catch (Exception ex) {\n rootLogger.error(\"JDBC: message: {}\", ex.getMessage());\n }\n return null;\n }", "private void loadCarListings() {\r\n try {\r\n cars = Reader.readCars(new File(CARLISTINGS_FILE));\r\n } catch (IOException e) {\r\n cars = new Cars();\r\n }\r\n }", "public MusicData[] loadAllMine(Long accountId) throws MusicAppException;", "private void loadIncidents() throws SimulationException { \n \n try { \n for(Incident inc : theCoorInt.getIncidentList()) {\n \n Integer logNum = new Integer(inc.getLogNumber());\n \n theSimManagerView.addIncidentTab(logNum);\n theSimManagerView.addIncident(inc);\n \n if(inc.getSecondsToStart() < theCoorInt.getCurrentSimulationTime()) {\n incidentStarted(logNum);\n }\n }\n } catch (RemoteException re) {\n simManagerLogger.logp(Level.SEVERE, \"SimulationManagerModel\", \n \"loadIncidentListTable\", \"Unable to communicate with the \" +\n \"CAD Simulator.\", re);\n \n throw new SimulationException(SimulationException.CAD_SIM_COMM, re);\n }\n \n }", "public MnoAccount getAccountById(String id);", "private static void initializeLists() {\n\t\t\n\t\t//read from serialized files to assign array lists\n\t\t//customerList = (ArrayList<Customer>) readObject(customerFile);\n\t\t//employeeList = (ArrayList<Employee>) readObject(employeeFile);\n\t\t//applicationList = (ArrayList<Application>) readObject(applicationFile);\n\t\t//accountList = (ArrayList<BankAccount>) readObject(accountFile);\n\t\t\n\t\t//read from database to assign array lists\n\t\temployeeList = (ArrayList<Employee>)employeeDao.readAll();\n\t\tcustomerList = (ArrayList<Customer>)customerDao.readAll();\n\t\taccountList = (ArrayList<BankAccount>) accountDao.readAll();\n\t\tapplicationList = (ArrayList<Application>)applicationDao.readAll();\n\t\t\n\t\tassignBankAccounts();\n\t}", "public static void loadCountries(String filePath){\n File inputFile = new File(filePath);\n // Scans the file if the file path is correctly formatted.\n // If not, returns an error message.\n Scanner scanner = null;\n try {\n scanner = new Scanner(inputFile);\n } catch (FileNotFoundException e){\n System.err.println(e);\n System.exit(1);\n }\n \n // Skips the first line of indicator names\n scanner.nextLine();\n \n // Creates a new Country object for each line and adds it to the countryList.\n while (scanner.hasNextLine()){\n String line = scanner.nextLine();\n Country country = new Country(line);\n countryList.add(country);\n }\n\n }", "private void loadAssociatedContacts() {\n Gson gson = new Gson();\n // get the serialized contact file\n String serializedFile = ContactDAO.serializedFile;\n // deserialize the file to get all contacts information\n associatedContacts = gson.fromJson(serializedFile, new TypeToken<ArrayList<ContactDataModel>>(){}.getType());\n //display information\n if (associatedContacts != null) {\n adapter = new CustomContactAdapter(this, R.layout.view_contact_row, associatedContacts);\n cv.setAdapter(adapter);\n // In case that the user delete some contacts, we set the serialized file in the DAO to apply the change\n // list of contact\n // serialize and set the access file\n ContactDAO.serializedFile = gson.toJson(associatedContacts);\n }\n\n //on item click\n cv.setOnItemClickListener(itemDescription);\n }", "public static void getAcountsID(int accID) {\n\t\t\n\t\taccounts.clear();\n\n\t\tString query = \"select account.accID, accType, balance, dateCreated, fName, lName \" + \n\t \"from ser322.account,ser322.customer \" + \n\t \"WHERE customer.accID = account.accID AND account.accID =\" + accID;\n\n\t\ttry {\n\t\t\t\n\t\t\tStatement stmt = con.getConnection().createStatement();\n\t\t ResultSet rs = stmt.executeQuery(query);\n\t while (rs.next()) {\n\t \taccounts.addElement(new Account(rs.getInt(\"accID\"),rs.getString(\"accType\"),\n\t \t\t\t rs.getFloat(\"balance\"),rs.getDate(\"dateCreated\"), rs.getString(\"fName\"), rs.getString(\"lName\")));\n\t }\n\t \n\t } catch (SQLException e ) {\n\t \tSystem.out.println(\"QUERY WRONG - getAcountsID\");\n\t }\n\n\t}", "public List getAllAccounts() {\n\t\treturn null;\r\n\t}", "Account getAccount(int id);" ]
[ "0.6031429", "0.59113795", "0.583265", "0.58308184", "0.57278633", "0.5582204", "0.54814726", "0.547395", "0.5273154", "0.52320576", "0.5226397", "0.5212974", "0.51957434", "0.5118011", "0.5038003", "0.49425024", "0.49111572", "0.4899843", "0.48584017", "0.48432967", "0.48362237", "0.48193535", "0.4742417", "0.4723521", "0.46304777", "0.46185485", "0.4591519", "0.45691073", "0.4553806", "0.4548751", "0.45330942", "0.45327342", "0.4521144", "0.44983834", "0.44746664", "0.44690472", "0.4465943", "0.44245812", "0.4422691", "0.44204718", "0.4407327", "0.43969905", "0.43932593", "0.43732625", "0.43711042", "0.43616432", "0.4360661", "0.43598497", "0.43408817", "0.43397987", "0.43361348", "0.4327188", "0.43267536", "0.43164313", "0.4315319", "0.43085164", "0.43030927", "0.42951453", "0.42614013", "0.4255308", "0.42510614", "0.4250014", "0.4239383", "0.42355788", "0.42316875", "0.42140195", "0.4208331", "0.42067438", "0.4201284", "0.4191755", "0.41714048", "0.41672936", "0.41664106", "0.4163472", "0.4159576", "0.41577587", "0.41555014", "0.41481563", "0.4141102", "0.41399458", "0.41316146", "0.41221672", "0.4117334", "0.41147175", "0.41110075", "0.40918595", "0.40907717", "0.4088121", "0.40878358", "0.4081669", "0.40811732", "0.4078685", "0.40756488", "0.40624613", "0.40497908", "0.4039369", "0.40384492", "0.4037916", "0.40283003", "0.40190673" ]
0.7246588
0