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
Creates new form SalesManagerWorkAreaJPanel
public SalesManagerWorkAreaJPanel(EmployeeDirectory employeeDirectory, SupplierDirectory supplierDirectory, MasterOrderCatalog moc, Order order, JPanel userProcessContainer) { initComponents(); this.userProcessContainer = userProcessContainer; this.employeeDirectory = employeeDirectory; this.employee = employee; this.supplierDirectory = supplierDirectory; this.moc = moc; this.order = order; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createSchedulePanel()\n\t{\n\t\t//newWeek=new Week(selectedId);\n\t\t//contentPane.add(newWeek,BorderLayout.SOUTH);\n\t\t//System.out.println(\"first time load:\"+selectedId);\n\t\tschedule=new Schedule(selectedId, isSprinklerSelected);\n\t\tschedulePane=new JPanel();\n\t\tschedulePane.setLayout(new FlowLayout(FlowLayout.CENTER));\n\t\tschedulePane.add(schedule);\n\t\tcontentPane.add(schedulePane,BorderLayout.CENTER);//add to content pane\n\t}", "public SalesPanel() {\n initComponents();\n tblSalesDetail.setAutoCreateColumnsFromModel(false);\n jdcTransaction.setDate(new Date());\n enableForm(false);\n btnDelete.setEnabled(false);\n btnAdd.setEnabled(true);\n btnCancel.setEnabled(false);\n btnEdit.setEnabled(false);\n btnSave.setEnabled(false);\n }", "public SalesSystemUI(SalesDomainController domainController) {\n this.domainController = domainController;\n this.model = new SalesSystemModel(domainController);\n \n // Create singleton instances of the tab classes\n historyTab = new HistoryTab(model);\n stockTab = new StockTab(model);\n purchaseTab = new PurchaseTab(domainController, model);\n \n setTitle(\"Sales system\");\n \n // set L&F to the nice Windows style\n try {\n UIManager.setLookAndFeel(new WindowsLookAndFeel());\n \n } catch (UnsupportedLookAndFeelException e1) {\n log.warn(e1.getMessage());\n }\n \n drawWidgets();\n \n // size & location\n int width = 600;\n int height = 400;\n setSize(width, height);\n Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();\n setLocation((screen.width - width) / 2, (screen.height - height) / 2);\n \n addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n System.exit(0);\n }\n });\n }", "public NewJPanel() {\n initComponents();\n }", "public NewJPanel() {\n initComponents();\n }", "public SystemAdminWorkArea() {\n initComponents();\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 }", "private JPanel getSellPane(){\r\n // Creates a new Panel\r\n sellPane = new JPanel();\r\n sellPane.setLayout(null);\r\n // Sets the size for the panel\r\n sellPane.setBounds(500, 10, 485, 310);\r\n // Creates border for the panel\r\n sellPane.setBorder(BorderFactory.createTitledBorder(\"Hardware to Sell\"));\r\n \r\n // Label for description\r\n lableSell_Description= new JLabel(\"Description:\");\r\n lableSell_Description.setBounds(20, 30, 90, 30);\r\n sellPane.add( lableSell_Description);\r\n \r\n // Text field for description\r\n fieldSell_Description= new JTextField();\r\n fieldSell_Description.setBounds(110, 30, 355, 30);\r\n sellPane.add(fieldSell_Description);\r\n \r\n // Label for Manufacturer\r\n lableSell_Manufacturer = new JLabel(\"Manufacturer\");\r\n lableSell_Manufacturer.setBounds(20, 65, 90, 30);\r\n sellPane.add( lableSell_Manufacturer);\r\n \r\n // Text field for Manufracturer\r\n fieldSell_Manufacturer= new JTextField();\r\n fieldSell_Manufacturer.setBounds(110, 65, 355, 30);\r\n sellPane.add(fieldSell_Manufacturer);\r\n \r\n // Label for Price\r\n lableSell_Price = new JLabel(\"Price:\");\r\n lableSell_Price.setBounds(20, 100, 90, 30);\r\n sellPane.add(lableSell_Price);\r\n \r\n // Text field for Price\r\n fieldSell_Price = new JTextField();\r\n fieldSell_Price.setBounds(110, 100, 112, 30);\r\n sellPane.add(fieldSell_Price);\r\n \r\n // Label for tax\r\n lableSell_taxRate = new JLabel(\"Tax Rate(%):\");\r\n lableSell_taxRate.setBounds(232, 100, 90, 30);\r\n sellPane.add( lableSell_taxRate);\r\n \r\n // Text field for tax\r\n fieldSell_taxRate = new JTextField();\r\n fieldSell_taxRate.setBounds(322, 100, 143, 30);\r\n sellPane.add(fieldSell_taxRate);\r\n \r\n // Button to add generator for Sale\r\n buttonAddToSell = new JButton(\"Add to Sell\");\r\n buttonAddToSell.setBounds(322, 135, 143, 30);\r\n buttonAddToSell.addActionListener(this);\r\n sellPane.add(buttonAddToSell);\r\n \r\n // Label for customer's Name\r\n lableSell_Customer = new JLabel(\"Customer:\");\r\n lableSell_Customer.setBounds(20, 170, 90, 30);\r\n sellPane.add(lableSell_Customer);\r\n\r\n // Text field for customer's name\r\n fieldSell_Customer = new JTextField();\r\n fieldSell_Customer.setBounds(110, 170, 355, 30);\r\n sellPane.add(fieldSell_Customer);\r\n\r\n // Label for date of sale\r\n lableSell_Date= new JLabel(\"Date:\");\r\n lableSell_Date.setBounds(20, 205, 90, 30);\r\n sellPane.add(lableSell_Date);\r\n\r\n // Text field for date of sale\r\n fieldSell_Date = new JTextField();\r\n fieldSell_Date.setBounds(110, 205, 112, 30);\r\n sellPane.add(fieldSell_Date);\r\n\r\n // Label for Hardware Device Index Number\r\n lableSell_hardwareDeviceNo = new JLabel(\"Hardware No:\");\r\n lableSell_hardwareDeviceNo.setBounds(232, 205, 90, 30);\r\n sellPane.add(lableSell_hardwareDeviceNo);\r\n \r\n // Text field for Hardware Device Index Number\r\n fieldSell_hardwareDeviceNo= new JTextField();\r\n fieldSell_hardwareDeviceNo.setBounds(322, 205, 143, 30);\r\n sellPane.add(fieldSell_hardwareDeviceNo);\r\n \r\n // Button to sell the hardware device\r\n buttonSell = new JButton(\"Sell\");\r\n buttonSell.setBounds(110, 240, 112, 30);\r\n buttonSell.addActionListener(this);\r\n sellPane.add(buttonSell);\r\n \r\n // Button to clear all the fields\r\n buttonSell_Clear = new JButton(\"Clear\");\r\n buttonSell_Clear.setBounds(227, 240, 90, 30);\r\n buttonSell_Clear.addActionListener(this);\r\n sellPane.add(buttonSell_Clear);\r\n \r\n // Button to display all the hardware devices for sold\r\n buttonSell_Display = new JButton(\"Display All\");\r\n buttonSell_Display.setBounds(322, 240, 143, 30);\r\n buttonSell_Display.addActionListener(this);\r\n sellPane.add(buttonSell_Display);\r\n \r\n return sellPane;\r\n\r\n }", "private JPanel createNorthPanel() \r\n\t{\r\n\t\tJPanel panel = new JPanel();\r\n\t\t\r\n\t\tJLabel title = new JLabel(\"Reservations\", SwingConstants.CENTER);\r\n\t\ttitle.setFont(new Font(\"serif\", Font.PLAIN, 29));\r\n\t\tpanel.add(title);\r\n\t\t\r\n\t\treturn panel;\r\n\t}", "public FinancialStatementJPanel() {\n initComponents();\n }", "public OrderPanel() {\n\t\tsetDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tsetBounds(100, 100, 800, 600);\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tcontentPane.setLayout(new BorderLayout(0, 0));\n\t\tsetContentPane(contentPane);\n\t\t\n\t\tpanel = new JPanel();\n\t\tpanel.setBounds(0, 0, 800, 600);\n\t\tcontentPane.add(panel);\n\t\tpanel.setLayout(null);\n\t\t\n\t\tthis.initDisplayPanel();\n\t\tthis.initFields();\n\t\tpanel.setVisible(true);\n\t\t\n\t}", "public CreateNewEventJPanel() {\n }", "public EOProductPanel2() {\n initComponents();\n }", "public ProcessWorkRequestJPanel() {\n initComponents();\n }", "public JPanel createPanel() {\n\t\t\r\n\t\tJPanel mainPanel = new JPanel();\r\n\t\tmainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));\r\n\t\tmainPanel.setBackground(Color.WHITE);\r\n\t\tmainPanel.setBorder(new CompoundBorder(\r\n\t\t\t\tBorderFactory.createLineBorder(new Color(0x3B70A3), 4),\r\n\t\t\t\tnew EmptyBorder(10, 20, 10, 20)));\r\n\r\n\t\t/*\r\n\t\t * Instruction\r\n\t\t */\t\r\n\t\tmainPanel.add(instructionPanel());\r\n\t\t\r\n\t\t\r\n\t\t// TODO: set task order for each group - make first 3 tasks = groups tasks\r\n\t\tmainPanel.add(messagesPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(phonePanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(clockPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(cameraPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\t\r\n\r\n\t\tmainPanel.add(contactPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(galleryPanel());\r\n\t\t\r\n\t\treturn mainPanel;\r\n\t}", "public JPanel createSouthPanel() {\n\t\tsouth = new JPanel(new GridLayout(1, 1));\n\t\t// adds start button and its functionality\n\t\tstartGame();\n\t\treturn south;\n\t}", "public SetupBuilderBox() {\n\tsuper();\n\tsetLayout(new BorderLayout());\n\n\tboard = new EditableBoard(this);\n\tboard.init(cols, rows);\n\tgb = new GraphicalBoard(board);\n\tgb.setDim(32);\n\tgb.init();\n\ttsp = new ToolSelectPanel(this);\n\tsap = new SetupSavePanel(this);\n\tssp = new SetupSettingsPanel(this);\n\n\tJPanel center = new JPanel();\n\tcenter.setLayout(new BorderLayout());\n\tcenter.add(gb, BorderLayout.CENTER);\n\tcenter.add(tsp, BorderLayout.SOUTH);\n\n\tadd(sap, BorderLayout.NORTH);\n\tadd(center, BorderLayout.CENTER);\n\tadd(ssp, BorderLayout.EAST);\n\n }", "private void addPanelstoBookPanel() {\r\n this.add(centerPanel, BorderLayout.CENTER);\r\n\r\n /**\r\n * Add the bookPanel to the baseScreen en revalidate and repaint\r\n */\r\n Main.getController().getBaseScreen().mainContainer.add(this, BorderLayout.CENTER);\r\n Main.getController().getBaseScreen().mainContainer.revalidate();\r\n Main.getController().getBaseScreen().mainContainer.repaint();\r\n }", "private JPanel getService2JPanel() {\n\n\t\tJPanel panel = new JPanel();\n\t\tBoxLayout boxlayout = new BoxLayout(panel, BoxLayout.X_AXIS);\n\t\tJButton button = new JButton(\"Send Daily Heart Rates\");\n\t\tbutton.addActionListener(this);\n\t\tpanel.add(button);\n\t\tpanel.add(Box.createRigidArea(new Dimension(10, 0)));\n\t\tpanel.setLayout(boxlayout);\n\t\t\n\t\treturn panel;\n\t}", "public void crearPanel(){\n\n panel = new JPanel();\n this.getContentPane().add(panel);\n panel.setBackground(Color.CYAN);\n panel.setLayout(null);\n }", "private void initComponent() \n\t{\n\t\t// Setting the frame bounds\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tsetBounds(100, 100, 579, 366);\n\t\t// adding the content pane\n\t\t// and setting the empty border \n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tsetContentPane(contentPane);\n\n\t\t//Label Hotels Options \n\t\tlblHotelsOptions = new JLabel(\"Hotels Options\");\n\t\t// JComboBox Hotels Options displays the 5 different options \n\t\tcbHotelsOptions = new JComboBox(hotelsModel);\n\n\t\t// Setting new panel for the reservation's list\n\t\tpanel = new JPanel();\n\t\tpanel.setBorder(new TitledBorder(null, \"Reservations:\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\n\t\t// Declaring labels for certification \n\t\tlblCheckIn = new JLabel(\"Check-In Info\");\n\t\tlblCheckIn.setVisible(false);\n\t\tlblInMonth = new JLabel(\"Month:\");\n\t\tlblInMonth.setVisible(false);\n\t\tlblInDay = new JLabel(\"Day:\");\n\t\tlblInDay.setVisible(false);\n\t\tlblCheckout = new JLabel(\"Check-Out Info\");\n\t\tlblCheckout.setVisible(false);\n\t\tlblOutMonth = new JLabel(\"Month:\");\n\t\tlblOutMonth.setVisible(false);\n\t\tlblOutDay = new JLabel(\"Day:\");\n\t\tlblOutDay.setVisible(false);\n\t\t// Declaring text fields to allow the user to write in them\n\t\ttxtInMonth = new JTextField();\n\t\ttxtInMonth.setVisible(false);\n\t\ttxtInMonth.setColumns(10);\n\t\ttxtInDay = new JTextField();\n\t\ttxtInDay.setVisible(false);\n\t\ttxtInDay.setColumns(10);\n\t\ttxtOutMonth = new JTextField();\n\t\ttxtOutMonth.setVisible(false);\n\t\ttxtOutMonth.setColumns(10);\n\t\ttxtOutDay = new JTextField();\n\t\ttxtOutDay.setVisible(false);\n\t\ttxtOutDay.setColumns(10);\n\t\t// Declaring the add button\n\t\tbtnAdd = new JButton(\">>\");\n\t\tbtnAdd.setVisible(false);\n\n\t\t// UGLY CODE\n\t\tGroupLayout gl_contentPane = new GroupLayout(contentPane);\n\t\tgl_contentPane.setHorizontalGroup(\n\t\t\t\tgl_contentPane.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_contentPane.createSequentialGroup()\n\t\t\t\t\t\t.addGroup(gl_contentPane.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t.addGroup(gl_contentPane.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(gl_contentPane.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(gl_contentPane.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lblHotelsOptions)\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(cbHotelsOptions, GroupLayout.PREFERRED_SIZE, 141, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(gl_contentPane.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(Alignment.LEADING, gl_contentPane.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lblOutMonth)\n\t\t\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\t.addComponent(txtOutMonth, GroupLayout.PREFERRED_SIZE, 61, GroupLayout.PREFERRED_SIZE)\n\t\t\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\t.addComponent(lblOutDay)\n\t\t\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\t.addComponent(txtOutDay, 0, 0, Short.MAX_VALUE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(Alignment.LEADING, gl_contentPane.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(gl_contentPane.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(Alignment.LEADING, gl_contentPane.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.addComponent(lblInMonth)\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.addPreferredGap(ComponentPlacement.RELATED)\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(txtInMonth, 0, 0, Short.MAX_VALUE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lblCheckIn, Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 115, GroupLayout.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.addPreferredGap(ComponentPlacement.RELATED)\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(lblInDay)\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.addPreferredGap(ComponentPlacement.RELATED)\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(txtInDay, GroupLayout.PREFERRED_SIZE, 67, GroupLayout.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.addGap(55))\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(gl_contentPane.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.addComponent(lblCheckout, GroupLayout.PREFERRED_SIZE, 124, GroupLayout.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.addPreferredGap(ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(btnAdd, GroupLayout.PREFERRED_SIZE, 54, GroupLayout.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.addGap(18)\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.addComponent(panel, GroupLayout.PREFERRED_SIZE, 242, GroupLayout.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.addContainerGap())\n\t\t\t\t);\n\t\tgl_contentPane.setVerticalGroup(\n\t\t\t\tgl_contentPane.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t.addGroup(Alignment.LEADING, gl_contentPane.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addGroup(gl_contentPane.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t.addComponent(panel, GroupLayout.DEFAULT_SIZE, 322, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t.addGroup(gl_contentPane.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(gl_contentPane.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lblHotelsOptions)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(cbHotelsOptions, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(84)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lblCheckIn)\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.addGroup(gl_contentPane.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lblInMonth)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(txtInMonth, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lblInDay)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(txtInDay, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(gl_contentPane.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lblCheckout)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(btnAdd))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(gl_contentPane.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lblOutMonth)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(txtOutMonth, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lblOutDay)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(txtOutDay, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addContainerGap())\n\t\t\t\t);\n\t\t// Declaring the scroll Pane\n\t\tscrollPane = new JScrollPane();\n\t\tGroupLayout gl_panel = new GroupLayout(panel);\n\t\tgl_panel.setHorizontalGroup(\n\t\t\t\tgl_panel.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_panel.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 239, Short.MAX_VALUE)\n\t\t\t\t\t\t.addGap(1))\n\t\t\t\t);\n\t\tgl_panel.setVerticalGroup(\n\t\t\t\tgl_panel.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_panel.createSequentialGroup()\n\t\t\t\t\t\t.addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 329, Short.MAX_VALUE)\n\t\t\t\t\t\t.addGap(1))\n\t\t\t\t);\n\n\t\t// Declaring the reservation's list in the scroll pane\n\t\tscrollPane.setViewportView(lstReservation);\n\t\t// Declaring the reservation's list\n\t\tlstReservation = new JList(reservationsModel);\n\t\tscrollPane.setViewportView(lstReservation);\n\t\tpanel.setLayout(gl_panel);\n\t\tcontentPane.setLayout(gl_contentPane);\n\n\t\t// Calling the initHotelsAndReservations method\n\t\tinitHotelsAndReservations();\n\t}", "public SaleOffPriceCreatorPanel() {\n initComponents();\n\n lookup = new AbstractLookup(content);\n\n saleOff = new SaleOff();\n promotion = new Promotion();\n\n tblSaleOffPrice.setRowHeight(26);\n\n tableCell = new SaleOffPiceTableCell(this);\n tblSaleOffPrice.getColumnModel().getColumn(0).setCellEditor(tableCell);\n tblSaleOffPrice.getColumnModel().getColumn(0).setCellRenderer(tableCell);\n\n tblSaleOffPrice.getColumnModel().getColumn(1).setCellEditor(tableCell);\n tblSaleOffPrice.getColumnModel().getColumn(1).setCellRenderer(tableCell);\n\n tblSaleOffPrice.getColumnModel().getColumn(2).setCellEditor(tableCell);\n tblSaleOffPrice.getColumnModel().getColumn(2).setCellRenderer(tableCell);\n\n tblSaleOffPrice.getColumnModel().getColumn(3).setCellEditor(tableCell);\n tblSaleOffPrice.getColumnModel().getColumn(3).setCellRenderer(tableCell);\n\n btnExit.addActionListener(this);\n btnNew.addActionListener(this);\n btnSave.addActionListener(this);\n btnSaveList.addActionListener(this);\n\n resetColorRowTable();\n\n }", "public ProductListJPanel() {\n initComponents();\n }", "final JPanel createMainPanel() {\r\n\r\n logger.entering(this.getClass().getName(), \"createMainPanel\");\r\n\r\n this.pnlMain = new JPanel();\r\n\r\n this.pnlMain.setLayout(new BorderLayout());\r\n\r\n this.pnlMain.add(new JLabel(\r\n \"Select the MicroSensorDataTypes that shall be filtered out\"),\r\n BorderLayout.NORTH);\r\n\r\n this.pnlMain.add(createCheckBoxPanel(), BorderLayout.CENTER);\r\n\r\n this.pnlMain.add(getButtonPanel(), BorderLayout.SOUTH);\r\n\r\n logger.exiting(this.getClass().getName(), \"createMainPanel\",\r\n this.pnlMain);\r\n\r\n return this.pnlMain;\r\n }", "public PackageVerificationJPanel(JPanel upc, Business b, UserAccount ua, ShippingRequest sr,InventoryWorkQueueJPanel iwq) {\n initComponents();\n\n this.b = b;\n userProcessContainer = upc;\n userAccount = ua;\n this.sr = sr;\n this.iwq=iwq;\n \n tempCartList=new ArrayList<Carton>();\n orderCartList=new ArrayList<Carton>();\n for(Carton c:sr.getOrder().getCartonList()){\n orderCartList.add(c);\n }\n\n refreshWorkReqTable();\n JPanel panel = this;\n panel.setOpaque(false);\n panel.setPreferredSize(this.getPreferredSize());\n\n }", "public TaskMasterPanel()\n\t{\n\t\tJPanel controlPanel = new JPanel();\n\t\tdescriptionField = new JTextField(15);\n\t\tthis.setPreferredSize(new Dimension(500, 400));\n\t\tthis.setBackground(Color.GRAY);\n\t\tsetLayout(new BorderLayout());\n\t\tlistPanel = new ToDoListPanel(\"Activity 19 List\");\n\t\ttoDoListScrollPane = new JScrollPane(listPanel);\n\t\ttoDoListScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);\n\t\ttoDoListScrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n\t\tthis.add(toDoListScrollPane, BorderLayout.CENTER);\n\t\tlistPanel.addTask(new Task(\"Activity 19\"));\n\t\tlistPanel.addTask(new Task(\"Activity 20\"));\n\t\tlistPanel.addTask(new Task(\"Activity 21\"));\n\t\tthis.addTask = new JButton(\"Add Task\");\n\t\tthis.getWork = new JButton(\"Get Work\");\n\t\tthis.addTask.addActionListener(new AddTaskButtonListener());\n\t\tthis.getWork.addActionListener(new GetWorkButtonListener());\n\t\tcontrolPanel.add(descriptionField);\n\t\tcontrolPanel.add(addTask);\n\t\tcontrolPanel.add(getWork);\n\t\tthis.add(controlPanel, BorderLayout.SOUTH);\n\t}", "private JPanel makePanel()\n {\n JPanel mainPanel = new JPanel();\n mainPanel.add(myLoginPanel);\n\n return mainPanel;\n }", "public MngCustomerJPanel(JPanel userProcessContainer, Business business, SalesPerson salesPerson) {\n initComponents();\n this.userProcessContainer = userProcessContainer;\n this.business = business;\n this.salesPerson = salesPerson;\n populateTable();\n }", "private JPanel getJPanel()\n\t{\n\t\tif (jPanel == null)\n\t\t{\n\t\t\tjPanel = new JPanel();\n\t\t\tjPanel.setLayout(new BorderLayout());\n\t\t\tBorder bdr = BorderFactory.createTitledBorder(\"\");\n\t \tjPanel.setBorder(bdr);\n\t\t\tjPanel.add(getRPFilesPanel(), BorderLayout.CENTER);\n\t\t\tjPanel.add(getJPathPanel(), BorderLayout.NORTH);\n\t\t}\n\t\treturn jPanel;\n\t}", "public NewJFrame() {\n initComponents();\n \n \n //combo box\n comboCompet.addItem(\"Séléction officielle\");\n comboCompet.addItem(\"Un certain regard\");\n comboCompet.addItem(\"Cannes Courts métrages\");\n comboCompet.addItem(\"Hors compétitions\");\n comboCompet.addItem(\"Cannes Classics\");\n \n \n //redimension\n this.setResizable(false);\n \n planning = new Planning();\n \n \n }", "public AddNewJobPanel() {\n initComponents();\n\n DateTime now = new DateTime();\n initializeComboBoxes();\n }", "public SalesReportView() {\n initComponents();\n }", "public JPanel createPanel(Hospital_Management_System hms)\n\t{\n\t\t//set table settings\n\t\ttable.setColumnSelectionAllowed(false);\n\t\ttable.setRowSelectionAllowed(true);\n\t\ttable.getTableHeader().setEnabled(false);\n\t\ttable.setRowHeight(50);\n\t\ttable.setEnabled(true);\n\t\ttable.getTableHeader().setReorderingAllowed(false);\n\t\tJScrollPane tableContainer = new JScrollPane(table);\n\t\ttableContainer.setLocation(86, 244);\n\t\ttableContainer.setSize(1746, 700);\n\t\t//initialize the panel layout and size\n\t\tJPanel patientListPanel = new JPanel();\n\t\tpatientListPanel.setLayout(null);\n\t\tpatientListPanel.setBounds(0, 0, 1920, 1080);\n\t\t//set background\n\t\tJLabel lblBackground = new JLabel();\n\t\tlblBackground.setIcon(new ImageIcon(PatientListPanel.class.getResource(\"/graphics/list_background.png\")));\n\t\tlblBackground.setBounds(0, 0, 1920, 1080);\n\t\t/*\n\t\t * HEADER MESSAGE\n\t\t */\n\t\tJLabel lblWelcomeBackAdministrator = new JLabel(\"Welcome Back!\");\n\t\tlblWelcomeBackAdministrator.setFont(bArial);\n\t\tlblWelcomeBackAdministrator.setBounds(166, 29, 510, 26);\n\t\t/*\n\t\t * DATE DISPLAYED BELOW HEADER\n\t\t */\n\t\tDateFormat df = new SimpleDateFormat(\"EEE MMM dd, yyyy\");\n\t\tDate today = new Date();\n\t\tJLabel date = new JLabel(\"Today is: \"+df.format(today));\n\t\tdate.setFont(new Font(\"Calibri Light\", Font.PLAIN, 26));\n\t\tdate.setBounds(166, 87, 560, 26);\n\t\t/*\n\t\t * RETURN BUTTON\n\t\t */\n\t\tJButton btnReturn = new JButton(\"Return\");\n\t\tbtnReturn.addActionListener(new ActionListener() \n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tif(hms.getAccessFrom() == \"Admin\")\n\t\t\t\t{\n\t\t\t\t\thms.displayPatientManagementPage();\n\t\t\t\t}\n\t\t\t\telse if(hms.getAccessFrom() == \"Employee\")\n\t\t\t\t{\n\t\t\t\t\thms.displayEmployeeMainPage();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnReturn.setFont(new Font(\"Arial\", Font.BOLD, 16));\n\t\tbtnReturn.setBounds(725, 955, 500, 59);\n\t\t/*\n\t\t * FILTER TEXTBOX\n\t\t */\n\t\tJTextField filterField = RowFilterUtil.createRowFilter(table);\n\t\tfilterField.setFont(new Font(\"Arial\", Font.BOLD, 24));\n\t\tfilterField.setColumns(10);\n\t\tfilterField.setBounds(265, 955, 300, 59);\n\t\t/*\n\t\t * SEARCH LABEL\t\t\n\t\t */\n\t\tJLabel lbSearch = new JLabel(\"Search:\");\n\t\tlbSearch.setFont(new Font(\"Arial\", Font.BOLD, 28));\n\t\tlbSearch.setBounds(125, 955, 300, 59);\n\t\t//add all the components to panel\n\t\tpatientListPanel.add(btnReturn);\n\t\tpatientListPanel.add(tableContainer, BorderLayout.CENTER);\n\t\tpatientListPanel.add(lblWelcomeBackAdministrator);\n\t\tpatientListPanel.add(date);\n\t\tpatientListPanel.add(filterField);\n\t\tpatientListPanel.add(lbSearch);\n\t\tpatientListPanel.add(lblBackground);\n\t\t\n\t\treturn patientListPanel;\n\t}", "private void $$$setupUI$$$() {\r\n EmployerPanel = new JPanel();\r\n EmployerPanel.setLayout(new GridLayoutManager(7, 5, new Insets(10, 10, 10, 10), -1, -1));\r\n saveButton = new JButton();\r\n saveButton.setBackground(new Color(-13793741));\r\n saveButton.setForeground(new Color(-2631721));\r\n saveButton.setIcon(new ImageIcon(getClass().getResource(\"/com/sun/deploy/resources/image/installapp24-d.png\")));\r\n saveButton.setText(\"Save\");\r\n EmployerPanel.add(saveButton, new GridConstraints(6, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final Spacer spacer1 = new Spacer();\r\n EmployerPanel.add(spacer1, new GridConstraints(6, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\r\n final Spacer spacer2 = new Spacer();\r\n EmployerPanel.add(spacer2, new GridConstraints(5, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n cancelButton = new JButton();\r\n cancelButton.setBackground(new Color(-5621447));\r\n cancelButton.setForeground(new Color(-2631721));\r\n cancelButton.setIcon(new ImageIcon(getClass().getResource(\"/com/sun/deploy/resources/image/delete24-d.png\")));\r\n cancelButton.setText(\"Cancel\");\r\n EmployerPanel.add(cancelButton, new GridConstraints(6, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final JLabel label1 = new JLabel();\r\n label1.setText(\"Name:\");\r\n EmployerPanel.add(label1, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final JLabel label2 = new JLabel();\r\n label2.setText(\"Last name:\");\r\n EmployerPanel.add(label2, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final JLabel label3 = new JLabel();\r\n label3.setText(\"IC:\");\r\n EmployerPanel.add(label3, new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final JLabel label4 = new JLabel();\r\n label4.setText(\"Phone:\");\r\n EmployerPanel.add(label4, new GridConstraints(4, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n NametextField = new JTextField();\r\n EmployerPanel.add(NametextField, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\r\n LNametextField = new JTextField();\r\n EmployerPanel.add(LNametextField, new GridConstraints(2, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\r\n ICtextField = new JTextField();\r\n EmployerPanel.add(ICtextField, new GridConstraints(3, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\r\n PhonetextField = new JTextField();\r\n EmployerPanel.add(PhonetextField, new GridConstraints(4, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\r\n final Spacer spacer3 = new Spacer();\r\n EmployerPanel.add(spacer3, new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n final Spacer spacer4 = new Spacer();\r\n EmployerPanel.add(spacer4, new GridConstraints(6, 4, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n final Spacer spacer5 = new Spacer();\r\n EmployerPanel.add(spacer5, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n }", "private void setLayout() {\n\tHorizontalLayout main = new HorizontalLayout();\n\tmain.setMargin(true);\n\tmain.setSpacing(true);\n\n\t// vertically divide the right area\n\tVerticalLayout left = new VerticalLayout();\n\tleft.setSpacing(true);\n\tmain.addComponent(left);\n\n\tleft.addComponent(openProdManager);\n\topenProdManager.addListener(new Button.ClickListener() {\n\t public void buttonClick(ClickEvent event) {\n\t\tCustomerWindow productManagerWin = new CustomerWindow(CollectorManagerApplication.this);\n\t\tproductManagerWin.addListener(new Window.CloseListener() {\n\t\t public void windowClose(CloseEvent e) {\n\t\t\topenProdManager.setEnabled(true);\n\t\t }\n\t\t});\n\n\t\tCollectorManagerApplication.this.getMainWindow().addWindow(productManagerWin);\n\t\topenProdManager.setEnabled(false);\n\t }\n\t});\n\n\t\n\tsetMainWindow(new Window(\"Sistema de Cobranzas\", main));\n\n }", "private JPanel getService1JPanel() {\n\n\t\tJPanel panel = new JPanel();\n\t\tBoxLayout boxlayout = new BoxLayout(panel, BoxLayout.X_AXIS);\n\t\tJButton button = new JButton(\"Send Emergency Heart Rate\");\n\t\tbutton.addActionListener(this);\n\t\tpanel.add(button);\n\t\tpanel.add(Box.createRigidArea(new Dimension(10, 0)));\n\t\tpanel.setLayout(boxlayout);\n\n\t\treturn panel;\n\t}", "public Planner(){\r\n\t\tsetLayout(new BorderLayout());\r\n\r\n\t\taptManager=new AirportManager(this);\r\n\t\tapt=aptManager.getAirport();\r\n\r\n\r\n JPanel btnPanel= new JPanel();\r\n final JButton btnClear=new JButton(\"Clear All\");\r\n final JButton btnCal=new JButton(\"Make Plan\");\r\n\t\tfinal JButton btnMap=new JButton(\"View Map\");\r\n final JButton btnExit=new JButton(\"Save/Exit\");\r\n Color color = Color.RED.darker();\r\n btnCal.setToolTipText(\"Select 'Make Plan' to start the flight plan, after entering a valid starting airport and destination(s).\");\r\n btnCal.setFont(btnFont);\r\n\t\tbtnCal.setBackground(color);\r\n\t\tbtnCal.setForeground(Color.white);\r\n btnCal.addActionListener(this);\r\n btnClear.setToolTipText(\"Select 'Clear All' to clear all of the currently entered airport data within the Routine Planner.\");\r\n \tbtnClear.addActionListener(this);\r\n \tbtnClear.setFont(btnFont);\r\n \tbtnMap.setToolTipText(\"Select 'View Map' to view a map of the world and current airports.\");\r\n \tbtnMap.setFont(btnFont);\r\n \tbtnMap.addActionListener(this);\r\n \tcolor = Color.GREEN.darker();\r\n \tbtnExit.setToolTipText(\"Select 'Save/Exit' to save and exit the flight plan.\");\r\n \tbtnExit.setFont(btnFont);\r\n\t\tbtnExit.setBackground(color);\r\n\t\tbtnExit.setForeground(Color.white);\r\n \tbtnExit.addActionListener(this);\r\n\r\n \tbtnPanel.setLayout(new GridLayout(4,1,10,10));\r\n \tbtnCal.setPreferredSize(new Dimension(120,70));\r\n \tbtnPanel.add(btnCal);\r\n \tbtnPanel.add(btnClear);\r\n \tbtnPanel.add(btnMap);\r\n \tbtnPanel.add(btnExit);\r\n\r\n \tJPanel show=new JPanel();\r\n \tshow.setLayout(new BoxLayout(show,BoxLayout.Y_AXIS));\r\n \tshow.add(new InputPanel(0));\r\n \tshow.add(new JLabel(\"TO\"));\r\n \tshow.add(new InputPanel(1));\r\n \tmdnScreen=new MultiDestnPanel();\r\n \tshow.add(mdnScreen);\r\n\r\n \tJScrollPane js=new JScrollPane(show);\r\n \tjs.setPreferredSize(new Dimension(300,310));\r\n\r\n\r\n \tJPanel description=new JPanel(new GridLayout(2,1));\r\n \t MatteBorder matte = new MatteBorder(5, 5, 5, 5, Color.LIGHT_GRAY);\r\n des.setBorder(matte);\r\n des.setHorizontalTextPosition(JLabel.CENTER);\r\n \tdes.setVerticalTextPosition(JLabel.TOP);\r\n des.setFont(font);\r\n des.setOpaque(true);\r\n des.setBackground(Color.CYAN);\r\n\t\tdescription.add(des);\r\n \tdescription.add(new JLabel(new ImageIcon(\"image/airplane.png\")));\r\n \tdescription.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));\r\n\r\n \tJPanel routinePlanner=new JPanel();\r\n \troutinePlanner.add(js,BorderLayout.CENTER);\r\n \troutinePlanner.add(btnPanel,BorderLayout.EAST);\r\n \troutinePlanner.setBorder(new TitledBorder(\"Routine Planner\"));\r\n\r\n \taptManager.setPreferredSize(new Dimension(380,300));\r\n \taptManager.setBorder(new TitledBorder(\"Airport Manager\"));\r\n\r\n \tadd(description,BorderLayout.NORTH);\r\n \tadd(aptManager,BorderLayout.WEST);\r\n \tadd(routinePlanner,BorderLayout.CENTER);\r\n\r\n\t\tMap m=new Map(apt);\r\n\t\taptManager.setMap(m);\r\n \tmapScreen=new JDialog(); //map dialog set up\r\n \tmapScreen.add(m);\r\n \tmapScreen.setTitle(\"World Map\");\r\n \tmapScreen.pack();\r\n \tmapScreen.setLocationRelativeTo(null);\r\n \tmapScreen.setResizable(false);\r\n \tmapScreen.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n }", "public SupplierWorkAreaJPanel(JPanel userProcessContainer,UserAccount account,SupplierOrganization organization,Enterprise enterprise,Business.EcoSystem s) {\r\n initComponents();\r\n this.userProcessContainer = userProcessContainer;\r\n this.organization=organization;\r\n this.account=account;\r\n this.enterprise=enterprise;\r\n this.s=s;\r\n valueLabel.setText(enterprise.getName());\r\n popComboBox();\r\n }", "public MondrianPanel()\n {\n setPreferredSize(new Dimension(size, size));\n }", "private void crearPanel() {\r\n\t\tJLabel lbl_Empresa = new JLabel(\"Empresa:\");\r\n\t\tlbl_Empresa.setBounds(10, 52, 72, 14);\r\n\t\tadd(lbl_Empresa);\r\n\r\n\t\ttxField_Empresa = new JTextField();\r\n\t\ttxField_Empresa.setBounds(116, 49, 204, 20);\r\n\t\tadd(txField_Empresa);\r\n\t\ttxField_Empresa.setColumns(10);\r\n\r\n\t\tlbl_Oferta = new JLabel(\" \");\r\n\t\tlbl_Oferta.setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\r\n\t\tlbl_Oferta.setBounds(10, 11, 742, 20);\r\n\t\tadd(lbl_Oferta);\r\n\r\n\t\tJLabel lbl_sueldoMin = new JLabel(\"Sueldo Minimo:\");\r\n\t\tlbl_sueldoMin.setBounds(10, 83, 96, 14);\r\n\t\tadd(lbl_sueldoMin);\r\n\r\n\t\ttxField_sueldoMin = new JTextField();\r\n\t\ttxField_sueldoMin.setColumns(10);\r\n\t\ttxField_sueldoMin.setBounds(116, 80, 93, 20);\r\n\t\tadd(txField_sueldoMin);\r\n\r\n\t\tJLabel lbl_sueldoMax = new JLabel(\"Sueldo Maximo:\");\r\n\t\tlbl_sueldoMax.setBounds(10, 115, 96, 14);\r\n\t\tadd(lbl_sueldoMax);\r\n\r\n\t\ttxField_sueldoMax = new JTextField();\r\n\t\ttxField_sueldoMax.setColumns(10);\r\n\t\ttxField_sueldoMax.setBounds(116, 112, 93, 20);\r\n\t\tadd(txField_sueldoMax);\r\n\r\n\t\tJLabel lbl_experiencia = new JLabel(\"A\\u00F1os de experiencia minimos:\");\r\n\t\tlbl_experiencia.setBounds(10, 143, 185, 14);\r\n\t\tadd(lbl_experiencia);\r\n\r\n\t\ttxField_experiencia = new JTextField();\r\n\t\ttxField_experiencia.setColumns(10);\r\n\t\ttxField_experiencia.setBounds(205, 140, 93, 20);\r\n\t\tadd(txField_experiencia);\r\n\r\n\t\tJLabel lbl_aspectosValorar = new JLabel(\"Aspectos a valorar:\");\r\n\t\tlbl_aspectosValorar.setBounds(10, 178, 137, 14);\r\n\t\tadd(lbl_aspectosValorar);\r\n\r\n\t\ttxArea_aspectosValorar = new JTextArea();\r\n\t\ttxArea_aspectosValorar.setBorder(UIManager.getBorder(\"TextField.border\"));\r\n\t\ttxArea_aspectosValorar.setBounds(157, 172, 253, 41);\r\n\t\tadd(txArea_aspectosValorar);\r\n\r\n\t\tJLabel lbl_aspectosImpres = new JLabel(\"Aspectos imprescindibles:\");\r\n\t\tlbl_aspectosImpres.setBounds(10, 238, 133, 14);\r\n\t\tadd(lbl_aspectosImpres);\r\n\r\n\t\ttxArea_aspectosImpres = new JTextArea();\r\n\t\ttxArea_aspectosImpres.setBorder(UIManager.getBorder(\"TextField.border\"));\r\n\t\ttxArea_aspectosImpres.setBounds(157, 232, 253, 41);\r\n\t\tadd(txArea_aspectosImpres);\r\n\r\n\t\tJLabel lbl_descripcion = new JLabel(\"Descripcion:\");\r\n\t\tlbl_descripcion.setBounds(10, 302, 107, 14);\r\n\t\tadd(lbl_descripcion);\r\n\r\n\t\ttxArea_descripcion = new JTextArea();\r\n\t\ttxArea_descripcion.setBorder(UIManager.getBorder(\"TextField.border\"));\r\n\t\ttxArea_descripcion.setBounds(10, 328, 465, 149);\r\n\t\tadd(txArea_descripcion);\r\n\r\n\t\tJLabel lbl_conocimientos = new JLabel(\"Conocimientos requeridos:\");\r\n\t\tlbl_conocimientos.setBounds(537, 125, 169, 14);\r\n\t\tadd(lbl_conocimientos);\r\n\r\n\t\tpa_conocimientos = new PanelListaDoble(Usuario.getConocimientosTotales(), miOferta.getConocimientos());\r\n\t\tpa_conocimientos.setBounds(537, 174, 215, 180);\r\n\t\tadd(pa_conocimientos);\r\n\r\n\t\ttxField_buscarCono = new JTextField();\r\n\t\ttxField_buscarCono.setBounds(537, 140, 135, 20);\r\n\t\tadd(txField_buscarCono);\r\n\t\ttxField_buscarCono.setColumns(10);\r\n\r\n\t\tJButton btn_buscar = new JButton(\"\");\r\n\t\tbtn_buscar.setBounds(682, 138, 24, 23);\r\n\t\tadd(btn_buscar);\r\n\r\n\t\tbtn_crear = new JButton(\"\");\r\n\t\tbtn_crear.setBounds(716, 138, 24, 23);\r\n\t\tadd(btn_crear);\r\n\r\n\t\ttxField_lugar = new JTextField();\r\n\t\ttxField_lugar.setEditable(false);\r\n\t\ttxField_lugar.setColumns(10);\r\n\t\ttxField_lugar.setBounds(506, 49, 234, 20);\r\n\t\tadd(txField_lugar);\r\n\r\n\t\tJLabel lbl_lugar = new JLabel(\"Lugar de trabajo:\");\r\n\t\tlbl_lugar.setBounds(392, 52, 104, 14);\r\n\t\tadd(lbl_lugar);\r\n\r\n\t\tJLabel lbl_contrato = new JLabel(\"Tipo de contrato:\");\r\n\t\tlbl_contrato.setBounds(392, 83, 104, 14);\r\n\t\tadd(lbl_contrato);\r\n\r\n\t\tcombo_contrato = new JComboBox<Contrato>();\r\n\t\tcombo_contrato.addItem(Contrato.INDEFINIDO_TIEMPO_COMPLETO);\r\n\t\tcombo_contrato.addItem(Contrato.INDEFINIDO_TIEMPO_PARCIAL);\r\n\t\tcombo_contrato.addItem(Contrato.TEMPORAL_TIEMPO_COMPLETO);\r\n\t\tcombo_contrato.addItem(Contrato.TEMPORTAL_TIEMPO_PARCIAL);\r\n\t\tcombo_contrato.setBounds(506, 83, 159, 20);\r\n\t\tadd(combo_contrato);\r\n\t\t// d\r\n\t\tinicializar(miOferta);\r\n\t\tdesHabCampos(false);\r\n\t\tif (miOferta.getEmpresa().getNumID().compareToIgnoreCase(Aplicacion.getUsuario().getNumID()) == 0) {\r\n\t\t\tbtnEliminar = new JButton(\"Eliminar\");\r\n\t\t\tbtnEliminar.setToolTipText(\"Eliminar\");\r\n\t\t\tbtnEliminar.setBounds(492, 384, 125, 41);\r\n\t\t\tadd(btnEliminar);\r\n\r\n\t\t\tbtnRetirar = new JButton(\"\\uD83D\\uDC40\");\r\n\t\t\tbtnRetirar.setToolTipText(\"Retirar Oferta\");\r\n\t\t\tbtnRetirar.setBounds(627, 384, 125, 41);\r\n\t\t\tadd(btnRetirar);\r\n\r\n\t\t\tbutton_Editar = new JButton(\"Editar\");\r\n\t\t\tbutton_Editar.setToolTipText(\"Editar\");\r\n\t\t\tbutton_Editar.setBounds(627, 436, 125, 41);\r\n\t\t\tadd(button_Editar);\r\n\r\n\t\t\tbutton_Editar.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\tdesHabCampos(true);\r\n\t\t\t\t\tbutton_Editar.setVisible(false);\r\n\t\t\t\t\tbtnEliminar.setVisible(false);\r\n\t\t\t\t\tbtnRetirar.setVisible(false);\r\n\t\t\t\t\tbtn_crear.setVisible(false);\r\n\r\n\t\t\t\t\tbtn_guardar = new JButton(\"Guardar\");\r\n\t\t\t\t\tbtn_guardar.setToolTipText(\"Guardar\");\r\n\t\t\t\t\tbtn_guardar.setBounds(627, 436, 125, 41);\r\n\t\t\t\t\tadd(btn_guardar);\r\n\r\n\t\t\t\t\tbtn_cancelar = new JButton(\"Cancelar\");\r\n\t\t\t\t\tbtn_cancelar.setToolTipText(\"Cancelar\");\r\n\t\t\t\t\tbtn_cancelar.setBounds(492, 436, 125, 41);\r\n\t\t\t\t\tadd(btn_cancelar);\r\n\r\n\t\t\t\t\tbtn_cancelar.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\t\tbtn_guardar.removeAll();\r\n\t\t\t\t\t\t\tbtn_cancelar.removeAll();\r\n\t\t\t\t\t\t\tbtn_cancelar.setVisible(false);\r\n\t\t\t\t\t\t\tbtn_guardar.setVisible(false);\r\n\t\t\t\t\t\t\tbtnEliminar.setVisible(true);\r\n\t\t\t\t\t\t\tbutton_Editar.setVisible(true);\r\n\t\t\t\t\t\t\tbtnRetirar.setVisible(true);\r\n\t\t\t\t\t\t\tbtn_crear.setVisible(true);\r\n\t\t\t\t\t\t\tinicializar(miOferta);\r\n\t\t\t\t\t\t\tdesHabCampos(false);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\tbtn_guardar.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\t\tEmergenteCambios.createWindow(\"┐Desea guardar los cambios?\", (TieneEmergente) padre);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t}", "public JPanel menuPanel() {\n\t\tJPanel mpanel = new JPanel(null);\n\t\tmpanel.setBounds(0, 100, 700, 300);\n\t\tmpanel.setBackground(Color.PINK);\n\t\tFont lblfont = new Font(\"SansSerif\", Font.BOLD, 30);\n\t\t\n\t\tworkerBtn = new JButton(workerpic);\n\t\tvisitorBtn = new JButton(visitorpic);\n\t\tworkerBtn.addActionListener(this);\n\t\tvisitorBtn.addActionListener(this);\n\t\tvisitorBtn.setBounds(100, 50, 150, 200);\n\t\tworkerBtn.setBounds(450, 50, 150, 200);\n\t\t\n\t\tlblworker.setBounds(450, 0, 150, 50);\n\t\tlblvisitor.setBounds(100, 0, 150, 50);\n\t\tlblworker.setHorizontalAlignment(JLabel.CENTER);\n\t\tlblvisitor.setHorizontalAlignment(JLabel.CENTER);\n\t\tlblworker.setFont(lblfont);\n\t\tlblvisitor.setFont(lblfont);\n\t\tmpanel.add(lblworker);\n\t\tmpanel.add(lblvisitor);\n\t\tmpanel.add(visitorBtn);\n\t\tmpanel.add(workerBtn);\n\t\treturn mpanel;\n\t}", "public SugarSystemGUI() {\n initComponents();\n //jPanel4.setVisible(false); \n setTitle(\"糖厂库存智能信息管理系统\");\n jPanel5.setVisible(true);\n jPanel8_input.setVisible(true);\n jPanel9_select.setVisible(false);\n jPanel10_date.setVisible(false);\n jPanel8_car_condition.setVisible(false);\n jPanel8_car.setVisible(false);\n \n }", "private Panel designPanel() {\n Panel panel = new Panel();\n contentLayout = new FormLayout();\n wrapperLayout = new VerticalLayout();\n numberOfDatasetsBox = new ComboBox<>();\n numberOfReplicatesBox = new ComboBox<>(\"Select number of Replicates\");\n\n\n List<Integer> possibleDatasetNumber =\n IntStream.rangeClosed(1, 100).boxed().collect(Collectors.toList());\n numberOfDatasetsBox.setItems(possibleDatasetNumber);\n\n List<Integer> possibleReplicateNumber =\n IntStream.rangeClosed(1, 100).boxed().collect(Collectors.toList());\n numberOfReplicatesBox.setItems(possibleReplicateNumber);\n\n datasetAccordion = new Accordion();\n datasetAccordion.setWidth(\"100%\");\n\n panel.setContent(wrapperLayout);\n return panel;\n }", "private JPanel buildNorthPanel() {\n\t\t\n\t\tGridBagLayout layout;\n\t\tGridBagConstraints constraints;\n\t\tJPanel panel;\n\t\tint row, col;\n\t\t\n\t\tlayout = new GridBagLayout();\n\t\tconstraints = new GridBagConstraints();\n\t\tpanel = new JPanel(layout);\n\t\trow = 0;\n\t\tcol = 0;\n\t\tJLabel headerLabel = new JLabel(stringFactory.getString(\n\t\t\t\tLabelStringFactory.SAVEASCONFIG_FRAME_SAVE_NEW_CONFIGURATION));\n\t\theaderLabel.setFont(new Font(\"arial\", Font.PLAIN, 18));\n\t\tGUIUtils.add(panel, headerLabel, layout, constraints, row++, col, \n\t\t\t1, 1, 1, 1, GridBagConstraints.NORTHEAST, GridBagConstraints.BOTH,\n\t\t\tGUIUtils.MED_LARGE_INSETS);\n\t\treturn panel;\n\t}", "private JPanel criarPainelCentro() {\n\n JPanel painelCentro = new JPanel(new BorderLayout());\n\n this.lblLista = new JLabel(\"\", JLabel.LEFT);\n painelCentro.add(this.lblLista);\n\n this.jListAtores = new JList();\n this.jListAtores.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\n this.jListAtores.addListSelectionListener(new ListSelectionListener() {\n\n @Override\n public void valueChanged(ListSelectionEvent e) {\n\n if (jListAtores.getSelectedIndex() >= 0) {\n btnUC4.setEnabled((btnFae.isSelected()));\n btnUC3.setEnabled((btnOrg.isSelected()));\n btnUC5.setEnabled((btnRep.isSelected()));\n } else {\n btnUC4.setEnabled(false);\n btnUC3.setEnabled(false);\n btnUC5.setEnabled(false);\n }\n }\n });\n\n JPanel painelScroll = new JPanel(new GridLayout());\n JScrollPane jScroll = new JScrollPane(this.jListAtores);\n painelScroll.add(jScroll);\n\n painelCentro.add(painelScroll, BorderLayout.SOUTH);\n\n painelCentro.setBorder(PADDING_BORDER);\n\n return painelCentro;\n }", "public void manageComponent() {\n menu = new JMenuBar();\n mainbox = new JScrollPane();\n toolbox = new JPanel();\n paintBox = new JPanel();\n optionbox = new JPanel();\n statusbar = new JPanel();\n paintModule = new PaintModule();\n\n // component setting\n createToolBox(toolbox);\n createMenu(menu);\n createOptionBox(optionbox);\n createStatusBar(statusbar);\n this.setLayout(new BorderLayout());\n\n // add component to container\n paintBox.add(paintModule);\n mainbox.setViewportView(paintBox);\n\n\n this.add(menu, BorderLayout.NORTH);\n this.add(mainbox, BorderLayout.CENTER);\n this.add(toolbox, BorderLayout.WEST);\n this.add(optionbox, BorderLayout.EAST);\n this.add(statusbar, BorderLayout.SOUTH);\n\n }", "public ManageEmployeeJPanel(JPanel userProcessContainer, Enterprise enterprise) {\n initComponents();\n this.userProcessContainer = userProcessContainer;\n this.enterprise = enterprise;\n// this.organizationDir = maincompany.getOrganizationDirectory();\n\n// populateOrganizationComboBox();\n populateOrganizationEmpComboBox();\n populateEmployeeRoleComBox();\n populateTable();\n this.setOpaque(false);\n }", "public static JPanel newPanel() {\n\t\treturn null;\n\t}", "private static void createAndShowGUI() {\n frame = new JFrame(\"Shopping Cart\");\n frame.setLocation(600,300);\n frame.setPreferredSize(new Dimension(800,700));\n frame.setResizable(false);\n //frame.setLayout(new GridLayout(2,2,5,5));\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane = new shoppingCartTableGui();\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n //Display the window.\n frame.pack();\n \n // inserting the login dialogPane here\n loginPane newLoginPane = new loginPane(frame);\n clientID = newLoginPane.getClientID();\n }", "public void addToJPanel() {\r\n\t\tsave_objects.add(header);\r\n\t\tJLabel blank1 = new JLabel(\"\");\r\n\t\tsave_objects.add(blank1);\r\n\t\t\r\n\t\tsave_objects.add(title_lb);\r\n\t\tsave_objects.add(title);\r\n\t\t\r\n\t\tsave_objects.add(width_lb);\r\n\t\tsave_objects.add(width);\r\n\t\t\r\n\t\tsave_objects.add(height_lb);\r\n\t\tsave_objects.add(height);\r\n\t\t\r\n\t\tsave_objects.add(save);\r\n\t\tsave_objects.add(reset);\r\n\t\t\r\n\t\tsetAllFont();\r\n\t}", "private static void createAndShowGUI() {\r\n JFrame.setDefaultLookAndFeelDecorated(true);\r\n\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.setLayout(new BorderLayout());\r\n\r\n JPanel parametersPanel = new JPanel();\r\n parametersPanel.setPreferredSize(new Dimension(preferredWidth, 50));\r\n \r\n addComponentsToPane(parametersPanel);\r\n \r\n frame.add(parametersPanel, BorderLayout.PAGE_START);\r\n \r\n schedulePanel.add(monLabel);\r\n schedulePanel.add(tueLabel);\r\n schedulePanel.add(wedLabel);\r\n schedulePanel.add(thuLabel);\r\n schedulePanel.add(friLabel);\r\n schedulePanel.setPreferredSize(new Dimension(preferredWidth, 500));\r\n JScrollPane scrollPane = new JScrollPane();\r\n scrollPane.setViewportView(schedulePanel);\r\n JPanel bigPanel = new JPanel(); \r\n bigPanel.setLayout(new BorderLayout());\r\n bigPanel.setPreferredSize(schedulePanel.getPreferredSize());\r\n bigPanel.add(scrollPane, BorderLayout.CENTER);\r\n frame.add(bigPanel, BorderLayout.CENTER);\r\n\r\n frame.setJMenuBar(createMenu());\r\n \r\n frame.pack();\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n \r\n frame.setVisible(true);\r\n frame.setResizable(false);\r\n }", "protected JPanel makeNewJPanel() {\n\t\t// a variable tempPanel holds an instance of JPanel\n\t\tfinal JPanel tempPanel = new JPanel();\n\t\t// set the Layout of tempPanel to be a FlowLayout aligned left\n\t\ttempPanel.setLayout(new FlowLayout(FlowLayout.LEFT));\n\t\t// function returns the tempPanel\n\t\treturn tempPanel;\n\t}", "public LoginInicialJPanel() {\n initComponents();\n }", "private void buildPanel()\r\n\t{\r\n\t\tgallonsLabel = new JLabel(\"Gallons: \");\r\n\t\tgallonsField = new JTextField(5);\r\n\t\t\r\n\t\tmilesLabel = new JLabel(\"Miles: \");\r\n\t\tmilesField = new JTextField(5);\r\n\t\t\r\n\t\tcalcButton = new JButton(\"Calculate MPG\");\r\n\t\tcalcButton.addActionListener(new CalcButtonListener());\r\n\t\t\r\n\t\tpanel = new JPanel();\r\n\t\tpanel.add(gallonsLabel);\r\n\t\tpanel.add(gallonsField);\r\n\t\tpanel.add(milesLabel);\r\n\t\tpanel.add(milesField);\r\n\t\tpanel.add(calcButton);\r\n\t}", "public AppoinmentPanel() {\n initComponents();\n }", "private void initManagerWorkerComponents() {\n\t\tlayeredPaneManagerWorker = new JLayeredPane();\n\t\tlayeredPane.setLayer(layeredPaneManagerWorker, 0);\n\t\tlayeredPaneManagerWorker.setBounds(0, 0, 941, 760);\n\t\tlayeredPane.add(layeredPaneManagerWorker);\n\t\t\n\t\tpnlManagerWorker = new JPanel();\n\t\tlayeredPaneManagerWorker.setLayer(pnlManagerWorker, 10);\n\t\tpnlManagerWorker.setBounds(0, 0, 941, 760);\n\t\tlayeredPaneManagerWorker.add(pnlManagerWorker);\n\t\t\n\t\tbtn_create_project = new JButton(\"Create Project\");\n\t\tbtn_create_project.setBounds(316, 0, 136, 28);\n\t\t\n\t\tbtn_create_task = new JButton(\"Create Task\");\n\t\tbtn_create_task.setBounds(450, 0, 115, 28);\n\t\t\n\t\tbtn_create_job = new JButton(\"Create Job\");\n\t\tbtn_create_job.setBounds(568, 0, 97, 28);\n\t\t\n\t\tlayeredPaneManagerWorkerComponents = new JLayeredPane();\n\t\tlayeredPaneManagerWorkerComponents.setBounds(181, 41, 746, 719);\n\t\t//create project end\n\t\t//Create task start\t\t\t\n\t\tpnlCreateTask = new JPanel();\n\t\tlayeredPaneManagerWorkerComponents.setLayer(pnlCreateTask, 0);\n\t\tpnlCreateTask.setBounds(0, 0, 746, 720);\n\t\tlayeredPaneManagerWorkerComponents.add(pnlCreateTask);\n\t\tpnlCreateTask.setVisible(false);\n\t\t\n\t\tJLabel lblTaskName = new JLabel(\"Name of the Task:\");\n\t\tlblTaskName.setBounds(163, 124, 114, 14);\n\t\t\n\t\tJLabel lblTaskDescription = new JLabel(\"Description of the Task:\");\n\t\tlblTaskDescription.setBounds(137, 300, 140, 14);\n\t\t\n\t\tJLabel lblTaskReason = new JLabel(\"Reason why it should be added:\");\n\t\tlblTaskReason.setBounds(97, 422, 180, 14);\n\t\t\n\t\tJScrollPane scrlPaneDescription = new JScrollPane();\n\t\tscrlPaneDescription.setBounds(366, 300, 216, 78);\n\t\t\n\t\tJScrollPane scrlPaneReason = new JScrollPane();\n\t\tscrlPaneReason.setBounds(366, 422, 215, 105);\n\t\t\n\t\tbtnCreateNewTask = new JButton(\"Create new Task\");\n\t\tbtnCreateNewTask.setBounds(508, 604, 140, 23);\n\t\t\n\t\ttextTaskName = new JTextField();\n\t\ttextTaskName.setBounds(366, 121, 86, 20);\n\t\ttextTaskName.setColumns(10);\n\t\t\n\t\tbtnCancelTask = new JButton(\"Cancel\");\n\t\tbtnCancelTask.setBounds(398, 604, 86, 23);\n\t\t\n\t\ttxtAreaReason = new JTextArea();\n\t\tscrlPaneReason.setViewportView(txtAreaReason);\n\t\t\n\t\ttxtAreaDescription = new JTextArea();\n\t\tscrlPaneDescription.setViewportView(txtAreaDescription);\n\t\tpnlCreateTask.setLayout(null);\n\t\t\n\t\tJLabel lblCreateTask = new JLabel(\"Create a new Task\");\n\t\tlblCreateTask.setBounds(301, 47, 146, 22);\n\t\tlblCreateTask.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\n\t\tpnlCreateTask.add(lblCreateTask);\n\t\tpnlCreateTask.add(lblTaskName);\n\t\tpnlCreateTask.add(textTaskName);\n\t\tpnlCreateTask.add(lblTaskDescription);\n\t\tpnlCreateTask.add(scrlPaneDescription);\n\t\tpnlCreateTask.add(lblTaskReason);\n\t\tpnlCreateTask.add(scrlPaneReason);\n\t\tpnlCreateTask.add(btnCancelTask);\n\t\tpnlCreateTask.add(btnCreateNewTask);\n\t\t\n\t\tJLabel lblWhereItShould = new JLabel(\"Where it should fall under:\");\n\t\tlblWhereItShould.setBounds(125, 173, 171, 14);\n\t\tpnlCreateTask.add(lblWhereItShould);\n\t\t\n\t\tscrlPaneSuperJob = new JScrollPane();\n\t\tscrlPaneSuperJob.setBounds(366, 173, 180, 78);\n\t\tpnlCreateTask.add(scrlPaneSuperJob);\n\t\tlistSuperJobs = new JList(superJobsList);\n\t\tscrlPaneSuperJob.setViewportView(listSuperJobs);\n\t\t//create user end\t\t\t\t\n\t\t//create project start\t\t\n\t\tpnlCreateProject = new JPanel();\n\t\tlayeredPaneManagerWorkerComponents.setLayer(pnlCreateProject, 0);\n\t\tpnlCreateProject.setBounds(0, 0, 746, 720);\n\t\tlayeredPaneManagerWorkerComponents.add(pnlCreateProject);\n\t\tpnlCreateProject.setVisible(false);\n\t\t\n\t\tlblNewLabel = new JLabel(\"Project name:\");\n\t\tlblNewLabel.setBounds(149, 125, 86, 14);\n\t\t\n\t\tlblNewLabel_1 = new JLabel(\"Description:\");\n\t\tlblNewLabel_1.setBounds(157, 192, 78, 14);\n\t\t\n\t\tJScrollPane scrlPaneProjectDescription = new JScrollPane();\n\t\tscrlPaneProjectDescription.setBounds(397, 186, 205, 81);\n\t\t\n\t\tJScrollPane scrlPaneQualifications = new JScrollPane();\n\t\tscrlPaneQualifications.setBounds(111, 354, 154, 164);\n\t\t\n\t\tJScrollPane scrlPaneUsersAvailable = new JScrollPane();\n\t\tscrlPaneUsersAvailable.setBounds(283, 354, 154, 164);\n\t\tbtnRemove = new JButton(\"<-\");\n\t\tbtnRemove.setBounds(455, 444, 45, 23);\n\t\t\n\t\tbtnCreateNewProject = new JButton(\"Create new Project\");\n\t\tbtnCreateNewProject.setBounds(508, 571, 154, 23);\n\t\t\n\t\tbtnCancelProject = new JButton(\"Cancel\");\n\t\tbtnCancelProject.setBounds(380, 571, 82, 23);\n\t\t\n\t\ttextAreaProjectDescription = new JTextArea();\n\t\tscrlPaneProjectDescription.setViewportView(textAreaProjectDescription);\n\t\t\n\t\tlistUsersAvailable = new JList(listedUsersAvailList);\n\t\tscrlPaneUsersAvailable.setViewportView(listUsersAvailable);\n\t\t\n\t\tlistQualifications = new JList(listedQualList);\n\t\tlistQualifications.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tscrlPaneQualifications.setViewportView(listQualifications);\n\t\t\n\t\tJLabel lblNewLabel_2 = new JLabel(\"Qualifications:\");\n\t\tlblNewLabel_2.setBounds(111, 322, 96, 14);\n\t\t\n\t\tJLabel lblNewLabel_3 = new JLabel(\"Users to add:\");\n\t\tlblNewLabel_3.setBounds(283, 322, 76, 14);\n\t\t\n\t\tJLabel lblNewLabel_4 = new JLabel(\"Users added:\");\n\t\tlblNewLabel_4.setBounds(532, 322, 86, 14);\n\t\t\n\t\tJLabel lblCreateANew = new JLabel(\"Create a new Project\");\n\t\tlblCreateANew.setBounds(299, 29, 163, 22);\n\t\tlblCreateANew.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\n\t\t\n\t\ttxtProjectName = new JTextField();\n\t\ttxtProjectName.setBounds(397, 119, 86, 20);\n\t\ttxtProjectName.setColumns(10);\n\t\t\n\t\tJScrollPane scrlPaneUsersAdded = new JScrollPane();\n\t\tscrlPaneUsersAdded.setBounds(532, 354, 154, 164);\n\t\t\n\t\tlistUsersAdded = new JList(listedUsersAddList);\n\t\tscrlPaneUsersAdded.setViewportView(listUsersAdded);\n\t\t\n\t\tpnlCreateProject.setLayout(null);\n\t\tpnlCreateProject.add(lblCreateANew);\n\t\tpnlCreateProject.add(lblNewLabel);\n\t\tpnlCreateProject.add(txtProjectName);\n\t\tpnlCreateProject.add(lblNewLabel_1);\n\t\tpnlCreateProject.add(scrlPaneProjectDescription);\n\t\tpnlCreateProject.add(lblNewLabel_2);\n\t\tpnlCreateProject.add(lblNewLabel_3);\n\t\tpnlCreateProject.add(lblNewLabel_4);\n\t\tpnlCreateProject.add(scrlPaneQualifications);\n\t\tpnlCreateProject.add(scrlPaneUsersAvailable);\n\t\t\n\t\tbtnAssign = new JButton(\"->\");\n\t\tbtnAssign.setBounds(455, 389, 45, 23);\n\t\tpnlCreateProject.add(btnAssign);\n\t\tpnlCreateProject.add(btnRemove);\n\t\tpnlCreateProject.add(scrlPaneUsersAdded);\n\t\tpnlCreateProject.add(btnCancelProject);\n\t\tpnlCreateProject.add(btnCreateNewProject);\n\t\t//edit user info end\n\t\t//create job start\t\t\t\t\n\t\tpnlCreateJob = new JPanel();\n\t\tlayeredPaneManagerWorkerComponents.setLayer(pnlCreateJob, 0);\n\t\tpnlCreateJob.setBounds(0, 0, 746, 720);\n\t\tlayeredPaneManagerWorkerComponents.add(pnlCreateJob);\n\t\tpnlCreateJob.setVisible(false);\n\t\t\n\t\tJLabel lblCreateNewJob = new JLabel(\"Create new Job\");\n\t\tlblCreateNewJob.setBounds(302, 22, 122, 22);\n\t\tlblCreateNewJob.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\n\t\t\n\t\tJScrollPane scrlPaneAssignableManagers = new JScrollPane();\n\t\tscrlPaneAssignableManagers.setBounds(344, 218, 148, 109);\n\t\t\n\t\tJScrollPane scrlPaneRequiredQuals = new JScrollPane();\n\t\tscrlPaneRequiredQuals.setBounds(549, 354, 148, 138);\n\t\t\n\t\tJScrollPane scrlPaneAvailableUsers = new JScrollPane();\n\t\tscrlPaneAvailableUsers.setBounds(344, 527, 148, 138);\n\t\t\n\t\tlistAssignableManagers = new JList(managerList);\n\t\tlistAssignableManagers.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tscrlPaneAssignableManagers.setViewportView(listAssignableManagers);\n\t\t\n\t\tJLabel lblJobName = new JLabel(\"Name of the Job:\");\n\t\tlblJobName.setBounds(150, 107, 114, 14);\n\t\t\n\t\tlistRequiredQuals = new JList(listedQualList);\n\t\tlistRequiredQuals.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tscrlPaneRequiredQuals.setViewportView(listRequiredQuals);\n\t\t\n\t\tlistAvailableUsers = new JList(unassignedUsersList);\n\t\tlistAvailableUsers.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tscrlPaneAvailableUsers.setViewportView(listAvailableUsers);\n\t\t\n\t\tbuttonAssignUsers = new JButton(\"->\");\n\t\tbuttonAssignUsers.setBounds(498, 554, 45, 23);\n\t\t\n\t\tbuttonRemoveUsers = new JButton(\"<-\");\n\t\tbuttonRemoveUsers.setBounds(498, 603, 45, 23);\n\t\t\n\t\tbtnCreateJob = new JButton(\"Create Job\");\n\t\tbtnCreateJob.setBounds(594, 683, 103, 23);\n\t\t\n\t\tbtnCancelJob = new JButton(\"Cancel\");\n\t\tbtnCancelJob.setBounds(498, 683, 86, 23);\n\t\t\n\t\tJLabel lblNewLabel_9 = new JLabel(\"Description:\");\n\t\tlblNewLabel_9.setBounds(176, 132, 88, 14);\n\t\t\n\t\tJLabel lblNewLabel_10 = new JLabel(\"Assignable Manager:\");\n\t\tlblNewLabel_10.setBounds(141, 220, 123, 14);\n\t\tpnlCreateJob.setLayout(null);\n\t\tpnlCreateJob.add(lblCreateNewJob);\n\t\tpnlCreateJob.add(lblJobName);\n\t\tpnlCreateJob.add(lblNewLabel_9);\n\t\tpnlCreateJob.add(lblNewLabel_10);\n\t\t\n\t\tJLabel lblRequiredQualifications = new JLabel(\"Required Qualifications:\");\n\t\tlblRequiredQualifications.setBounds(399, 356, 145, 14);\n\t\tpnlCreateJob.add(lblRequiredQualifications);\n\t\t\n\t\tJLabel lblAvailableUsers_1 = new JLabel(\"Available Users\");\n\t\tlblAvailableUsers_1.setBounds(344, 507, 100, 14);\n\t\tpnlCreateJob.add(lblAvailableUsers_1);\n\t\t\n\t\tJLabel lblAssignedUsers = new JLabel(\"Assigned Users\");\n\t\tlblAssignedUsers.setBounds(550, 507, 94, 14);\n\t\tpnlCreateJob.add(lblAssignedUsers);\n\t\t\n\t\tJLabel lblUsersList = new JLabel(\"User List:\");\n\t\tlblUsersList.setBounds(188, 529, 76, 14);\n\t\tpnlCreateJob.add(lblUsersList);\n\t\t\n\t\ttxtJobName = new JTextField();\n\t\ttxtJobName.setBounds(344, 104, 86, 20);\n\t\ttxtJobName.setColumns(10);\n\t\tpnlCreateJob.add(txtJobName);\n\t\t\n\t\tJScrollPane scrlPaneJobDescription = new JScrollPane();\n\t\tscrlPaneJobDescription.setBounds(344, 138, 224, 69);\n\t\t\n\t\ttxtAreaJobDescription = new JTextArea();\n\t\tscrlPaneJobDescription.setViewportView(txtAreaJobDescription);\n\t\tpnlCreateJob.add(scrlPaneJobDescription);\n\t\tpnlCreateJob.add(scrlPaneAssignableManagers);\n\t\tpnlCreateJob.add(scrlPaneRequiredQuals);\n\t\tpnlCreateJob.add(scrlPaneAvailableUsers);\n\t\t\n\t\tJScrollPane scrlPaneAssignedUsers = new JScrollPane();\n\t\tscrlPaneAssignedUsers.setBounds(549, 527, 148, 130);\n\t\t\n\t\tlistAssignedUsers = new JList(assignedUsersList);\n\t\tlistAssignedUsers.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tscrlPaneAssignedUsers.setViewportView(listAssignedUsers);\n\t\tpnlCreateJob.add(scrlPaneAssignedUsers);\n\t\t\n\t\tscrlPaneSuperJobs = new JScrollPane();\n\t\tscrlPaneSuperJobs.setBounds(202, 356, 148, 109);\n\t\tpnlCreateJob.add(scrlPaneSuperJobs);\n\t\t\n\t\tlistofSuperJobsList = new JList(superJobsList);\n\t\tlistofSuperJobsList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tscrlPaneSuperJobs.setViewportView(listofSuperJobsList);\n\t\tpnlCreateJob.add(buttonAssignUsers);\n\t\tpnlCreateJob.add(buttonRemoveUsers);\n\t\tpnlCreateJob.add(btnCancelJob);\n\t\tpnlCreateJob.add(btnCreateJob);\n\t\t\n\t\tJLabel lblWhereItFalls = new JLabel(\"Where it falls under:\");\n\t\tlblWhereItFalls.setBounds(45, 356, 122, 14);\n\t\tpnlCreateJob.add(lblWhereItFalls);\n\t\t\n\t\tbtnCreateTicket = new JButton(\"Create Ticket\");\n\t\tbtnCreateTicket.setBounds(762, 3, 136, 23);\n\t\t\n\t\tpnlCreateTicket = new JPanel();\n\t\tpnlCreateTicket.setBorder(new TitledBorder(null, \"Ticket Creator\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\n\t\tlayeredPaneManagerWorkerComponents.setLayer(pnlCreateTicket, 0);\n\t\tpnlCreateTicket.setBounds(0, 0, 746, 720);\n\t\tlayeredPaneManagerWorkerComponents.add(pnlCreateTicket);\n\t\tpnlCreateTicket.setLayout(null);\n\t\tpnlCreateTicket.setVisible(false);\n\t\t\n\t\tJLabel lblNewLabel_5 = new JLabel(\"Create New Ticket\");\n\t\tlblNewLabel_5.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\tlblNewLabel_5.setBounds(310, 11, 170, 41);\n\t\tpnlCreateTicket.add(lblNewLabel_5);\n\t\t\n\t\tJLabel lblTitle_1 = new JLabel(\"Title:\");\n\t\tlblTitle_1.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\tlblTitle_1.setBounds(120, 90, 46, 14);\n\t\tpnlCreateTicket.add(lblTitle_1);\n\t\t\n\t\tJLabel lblDescription_1 = new JLabel(\"Description:\");\n\t\tlblDescription_1.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\tlblDescription_1.setBounds(10, 161, 134, 14);\n\t\tpnlCreateTicket.add(lblDescription_1);\n\t\t\n\t\tJScrollPane scrollPane_4 = new JScrollPane();\n\t\tscrollPane_4.setBounds(186, 157, 459, 123);\n\t\tpnlCreateTicket.add(scrollPane_4);\n\t\t\n\t\ttxtNewTicketDesc = new JTextArea();\n\t\tscrollPane_4.setViewportView(txtNewTicketDesc);\n\t\t\n\t\ttxtNewTicketTitle = new JTextField();\n\t\ttxtNewTicketTitle.setBounds(186, 87, 431, 20);\n\t\tpnlCreateTicket.add(txtNewTicketTitle);\n\t\ttxtNewTicketTitle.setColumns(10);\n\t\t\n\t\tbtnSendTicket = new JButton(\"SEND\");\n\t\t\n\t\t\t\tbtnSendTicket.setBounds(324, 347, 89, 23);\n\t\t\t\tpnlCreateTicket.add(btnSendTicket);\n\t\t\t\tpnlManagerWorker.setLayout(null);\n\t\t\t\tpnlManagerWorker.add(btn_create_task);\n\t\t\t\tpnlManagerWorker.add(btn_create_project);\n\t\t\t\tpnlManagerWorker.add(btn_create_job);\n\t\t\t\tpnlManagerWorker.add(btnCreateTicket);\n\t\t\t\tpnlManagerWorker.add(layeredPaneManagerWorkerComponents);\n\t\t\t\t\n\t\t\t\tpnlMessages = new JPanel();\n\t\t\t\tpnlMessages.setBackground(Color.LIGHT_GRAY);\n\t\t\t\tpnlMessages.setBounds(0, 347, 181, 28);\n\t\t\t\tpnlManagerWorker.add(pnlMessages);\n\t\t\t\tpnlMessages.setLayout(null);\n\t\t\t\t\n\t\t\t\tlblNewLabel_7 = new JLabel(\"Conversations\");\n\t\t\t\tlblNewLabel_7.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\t\t\tlblNewLabel_7.setBounds(28, 5, 143, 14);\n\t\t\t\tpnlMessages.add(lblNewLabel_7);\n\t\t\t\t\n\t\t\t\tpnlProjects = new JPanel();\n\t\t\t\tpnlProjects.setBackground(Color.LIGHT_GRAY);\n\t\t\t\tpnlProjects.setBounds(0, 0, 181, 28);\n\t\t\t\tpnlManagerWorker.add(pnlProjects);\n\t\t\t\tpnlProjects.setLayout(null);\n\t\t\t\t\n\t\t\t\tlblNewLabel_8 = new JLabel(\"Projects\");\n\t\t\t\tlblNewLabel_8.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\t\t\tlblNewLabel_8.setBounds(43, 5, 128, 14);\n\t\t\t\tpnlProjects.add(lblNewLabel_8);\n\t\t\t\t\n\t\t\t\tscrlConversations = new JScrollPane();\n\t\t\t\tscrlConversations.setBounds(2, 375, 179, 385);\n\t\t\t\tpnlManagerWorker.add(scrlConversations);\n\t\t\t\t\n\t\t\t\tlistConversations = new JList(conversationsList);\n\t\t\t\tlistConversations.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);\n\t\t\t\tscrlConversations.setViewportView(listConversations);\n\t\t\t\t\n\t\t\t\tscrlProjects = new JScrollPane();\n\t\t\t\tscrlProjects.setBounds(0, 27, 181, 319);\n\t\t\t\tpnlManagerWorker.add(scrlProjects);\n\t\t\t\t\n\t\t\t\tlistProjects = new JList(projectsList);\n\t\t\t\tlistProjects.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);\n\t\t\t\tscrlProjects.setViewportView(listProjects);\n\t\t\n\t\tbtnLogout = new JButton(\"LOGOUT\");\n\n\t\tbtnLogout.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\n\t\tbtnLogout.setBounds(859, 11, 89, 23);\n\t\tcontentPane.add(btnLogout);\n\t\tbtnLogout.setVisible(false);\n\t\t\n\t\tbtn_settings = new JButton(\"Settings\");\n\t\tbtn_settings.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\n\t\tbtn_settings.setBounds(754, 8, 89, 28);\n\t\tcontentPane.add(btn_settings);\n\t\tbtn_settings.setVisible(false);\n\t\t\n\t\tlayeredPane_1 = new JLayeredPane();\n\t\tlayeredPane_1.setBounds(10, 8, 734, 25);\n\t\tcontentPane.add(layeredPane_1);\n\t\t\n\t\tlblPortal = new JLabel(\"Admin Portal\");\n\t\tlblPortal.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\tlblPortal.setBounds(0, 0, 734, 25);\n\t\tlayeredPane_1.add(lblPortal);\n\t\tlblPortal.setVisible(false);\n\t\t//create job end\t\t\n\t\t\n\t\tloadProjects();\n\t}", "private MenuServicios(){\n super(\"Gym Manager Servicios a Socios\");\n setBackground(Color.WHITE);\n\tgetContentPane().setLayout(null);\n setResizable(false);\n\tsetDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\n pack();\n\tsetSize(942,592);\n\tsetLocationRelativeTo(null);\n image_path = \"jar:\" + getClass().getProtectionDomain().getCodeSource().\n getLocation().toString() + \"!/imagenes/\";\n \n jdpFondo = new JDesktopPane();\n jdpFondo.setBackground(Color.WHITE);\n jtpcContenedor = new JXTaskPaneContainer();\n jtpPanel = new JXTaskPane();\n jtpPanel2 = new JXTaskPane();\n jpnlPanelPrincilal = new JPanel();\n jpnlPanelPrincilal.setBackground(Color.WHITE);\n jtpcContenedor.setBackground(Color.LIGHT_GRAY);\n \n paginaInicio();\n crearComponentes();\n addToPanel();\n accionComponentes();\n \n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jSplitPane1 = new javax.swing.JSplitPane();\n jPanel1 = new javax.swing.JPanel();\n managePharmaCompanyButton = new javax.swing.JButton();\n manageRegionalFDIButton = new javax.swing.JButton();\n jSeparator1 = new javax.swing.JSeparator();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n userNameLabel = new javax.swing.JLabel();\n address1Label = new javax.swing.JLabel();\n address2Label = new javax.swing.JLabel();\n cityLabel = new javax.swing.JLabel();\n stateLabel = new javax.swing.JLabel();\n nationLabel = new javax.swing.JLabel();\n zipLabel = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n emailLabel = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n fdiProcessContainerPanel = new javax.swing.JPanel();\n\n setBackground(new java.awt.Color(204, 204, 255));\n setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jSplitPane1.setDividerLocation(200);\n\n jPanel1.setBackground(new java.awt.Color(153, 153, 255));\n\n managePharmaCompanyButton.setBackground(new java.awt.Color(255, 255, 255));\n managePharmaCompanyButton.setFont(new java.awt.Font(\"Tahoma\", 3, 12)); // NOI18N\n managePharmaCompanyButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/drugsupplychain/images/Folder.png\"))); // NOI18N\n managePharmaCompanyButton.setText(\"Manage Pharama Co.\");\n managePharmaCompanyButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n managePharmaCompanyButtonActionPerformed(evt);\n }\n });\n\n manageRegionalFDIButton.setBackground(new java.awt.Color(255, 255, 255));\n manageRegionalFDIButton.setFont(new java.awt.Font(\"Tahoma\", 3, 12)); // NOI18N\n manageRegionalFDIButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/drugsupplychain/images/Folder.png\"))); // NOI18N\n manageRegionalFDIButton.setText(\"Manage Regional FDI\");\n manageRegionalFDIButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n manageRegionalFDIButtonActionPerformed(evt);\n }\n });\n\n jLabel1.setBackground(new java.awt.Color(102, 102, 255));\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 3, 12)); // NOI18N\n jLabel1.setText(\"Username:\");\n\n jLabel2.setBackground(new java.awt.Color(102, 102, 255));\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 3, 12)); // NOI18N\n jLabel2.setText(\"Address:\");\n\n userNameLabel.setText(\"user\");\n\n address1Label.setText(\"address1\");\n\n address2Label.setText(\"address2\");\n\n cityLabel.setText(\"city\");\n\n stateLabel.setText(\"state\");\n\n nationLabel.setText(\"nation\");\n\n zipLabel.setText(\"zip\");\n\n jLabel10.setFont(new java.awt.Font(\"Tahoma\", 3, 12)); // NOI18N\n jLabel10.setText(\"Email : \");\n\n emailLabel.setText(\"email\");\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 3, 10)); // NOI18N\n jLabel4.setText(\"City:\");\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 3, 10)); // NOI18N\n jLabel5.setText(\"State:\");\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 3, 10)); // NOI18N\n jLabel6.setText(\"Country:\");\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 3, 10)); // NOI18N\n jLabel7.setText(\"Zip Code:\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jSeparator1)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(managePharmaCompanyButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(manageRegionalFDIButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel10)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(emailLabel))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel7)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(zipLabel))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel6)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(nationLabel))\n .addComponent(jLabel2)\n .addComponent(jLabel3)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(userNameLabel))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addComponent(jLabel5))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(cityLabel)\n .addComponent(stateLabel)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(address1Label)\n .addGap(24, 24, 24)\n .addComponent(address2Label)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(managePharmaCompanyButton, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(manageRegionalFDIButton, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(109, 109, 109)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(userNameLabel))\n .addGap(23, 23, 23)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(address2Label, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(14, 14, 14))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(address1Label)\n .addGap(18, 18, 18)))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(cityLabel))\n .addGap(11, 11, 11)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(stateLabel))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(nationLabel))\n .addGap(11, 11, 11)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(zipLabel))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10)\n .addComponent(emailLabel))\n .addGap(44, 44, 44))\n );\n\n jSplitPane1.setLeftComponent(jPanel1);\n\n fdiProcessContainerPanel.setBackground(new java.awt.Color(204, 204, 255));\n\n javax.swing.GroupLayout fdiProcessContainerPanelLayout = new javax.swing.GroupLayout(fdiProcessContainerPanel);\n fdiProcessContainerPanel.setLayout(fdiProcessContainerPanelLayout);\n fdiProcessContainerPanelLayout.setHorizontalGroup(\n fdiProcessContainerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 924, Short.MAX_VALUE)\n );\n fdiProcessContainerPanelLayout.setVerticalGroup(\n fdiProcessContainerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 538, Short.MAX_VALUE)\n );\n\n jSplitPane1.setRightComponent(fdiProcessContainerPanel);\n\n add(jSplitPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 1130, 540));\n }", "private void initializeComponent() throws Exception {\n this.label1 = new System.Windows.Forms.Label();\n this.groupBox1 = new System.Windows.Forms.GroupBox();\n this.radioPurchased = new System.Windows.Forms.RadioButton();\n this.radioSold = new System.Windows.Forms.RadioButton();\n this.radioAll = new System.Windows.Forms.RadioButton();\n this.textSnDesc = new System.Windows.Forms.TextBox();\n this.label7 = new System.Windows.Forms.Label();\n this.butRefresh = new OpenDental.UI.Button();\n this.textDateStart = new OpenDental.ValidDate();\n this.textDateEnd = new OpenDental.ValidDate();\n this.butPrint = new OpenDental.UI.Button();\n this.butAdd = new OpenDental.UI.Button();\n this.gridMain = new OpenDental.UI.ODGrid();\n this.butClose = new OpenDental.UI.Button();\n this.groupBox1.SuspendLayout();\n this.SuspendLayout();\n //\n // label1\n //\n this.label1.Location = new System.Drawing.Point(12, 6);\n this.label1.Name = \"label1\";\n this.label1.Size = new System.Drawing.Size(170, 39);\n this.label1.TabIndex = 7;\n this.label1.Text = \"This list tracks equipment for payment of property taxes.\";\n this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;\n //\n // groupBox1\n //\n this.groupBox1.Controls.Add(this.butRefresh);\n this.groupBox1.Controls.Add(this.textDateStart);\n this.groupBox1.Controls.Add(this.textDateEnd);\n this.groupBox1.Location = new System.Drawing.Point(424, 3);\n this.groupBox1.Name = \"groupBox1\";\n this.groupBox1.Size = new System.Drawing.Size(257, 42);\n this.groupBox1.TabIndex = 23;\n this.groupBox1.TabStop = false;\n this.groupBox1.Text = \"Date Range\";\n //\n // radioPurchased\n //\n this.radioPurchased.Location = new System.Drawing.Point(695, 3);\n this.radioPurchased.Name = \"radioPurchased\";\n this.radioPurchased.Size = new System.Drawing.Size(93, 18);\n this.radioPurchased.TabIndex = 23;\n this.radioPurchased.Text = \"Purchased\";\n this.radioPurchased.UseVisualStyleBackColor = true;\n this.radioPurchased.Click += new System.EventHandler(this.radioPurchased_Click);\n //\n // radioSold\n //\n this.radioSold.Location = new System.Drawing.Point(695, 18);\n this.radioSold.Name = \"radioSold\";\n this.radioSold.Size = new System.Drawing.Size(93, 18);\n this.radioSold.TabIndex = 24;\n this.radioSold.Text = \"Sold\";\n this.radioSold.UseVisualStyleBackColor = true;\n this.radioSold.Click += new System.EventHandler(this.radioSold_Click);\n //\n // radioAll\n //\n this.radioAll.Checked = true;\n this.radioAll.Location = new System.Drawing.Point(695, 33);\n this.radioAll.Name = \"radioAll\";\n this.radioAll.Size = new System.Drawing.Size(93, 18);\n this.radioAll.TabIndex = 25;\n this.radioAll.TabStop = true;\n this.radioAll.Text = \"All\";\n this.radioAll.UseVisualStyleBackColor = true;\n this.radioAll.Click += new System.EventHandler(this.radioAll_Click);\n //\n // textSnDesc\n //\n this.textSnDesc.Location = new System.Drawing.Point(285, 19);\n this.textSnDesc.Name = \"textSnDesc\";\n this.textSnDesc.Size = new System.Drawing.Size(133, 20);\n this.textSnDesc.TabIndex = 39;\n this.textSnDesc.TextChanged += new System.EventHandler(this.textSn_TextChanged);\n //\n // label7\n //\n this.label7.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;\n this.label7.Location = new System.Drawing.Point(174, 19);\n this.label7.Name = \"label7\";\n this.label7.Size = new System.Drawing.Size(105, 20);\n this.label7.TabIndex = 38;\n this.label7.Text = \"SN/Descipt/Loc\";\n this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\n //\n // butRefresh\n //\n this.butRefresh.setAdjustImageLocation(new System.Drawing.Point(0, 0));\n this.butRefresh.setAutosize(true);\n this.butRefresh.setBtnShape(OpenDental.UI.enumType.BtnShape.Rectangle);\n this.butRefresh.setBtnStyle(OpenDental.UI.enumType.XPStyle.Silver);\n this.butRefresh.setCornerRadius(4F);\n this.butRefresh.Location = new System.Drawing.Point(172, 12);\n this.butRefresh.Name = \"butRefresh\";\n this.butRefresh.Size = new System.Drawing.Size(78, 24);\n this.butRefresh.TabIndex = 23;\n this.butRefresh.Text = \"Refresh\";\n this.butRefresh.Click += new System.EventHandler(this.butRefresh_Click);\n //\n // textDateStart\n //\n this.textDateStart.Location = new System.Drawing.Point(6, 16);\n this.textDateStart.Name = \"textDateStart\";\n this.textDateStart.Size = new System.Drawing.Size(77, 20);\n this.textDateStart.TabIndex = 21;\n //\n // textDateEnd\n //\n this.textDateEnd.Location = new System.Drawing.Point(89, 15);\n this.textDateEnd.Name = \"textDateEnd\";\n this.textDateEnd.Size = new System.Drawing.Size(77, 20);\n this.textDateEnd.TabIndex = 22;\n //\n // butPrint\n //\n this.butPrint.setAdjustImageLocation(new System.Drawing.Point(0, 0));\n this.butPrint.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));\n this.butPrint.setAutosize(true);\n this.butPrint.setBtnShape(OpenDental.UI.enumType.BtnShape.Rectangle);\n this.butPrint.setBtnStyle(OpenDental.UI.enumType.XPStyle.Silver);\n this.butPrint.setCornerRadius(4F);\n this.butPrint.Image = Resources.getbutPrint();\n this.butPrint.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;\n this.butPrint.Location = new System.Drawing.Point(385, 550);\n this.butPrint.Name = \"butPrint\";\n this.butPrint.Size = new System.Drawing.Size(75, 24);\n this.butPrint.TabIndex = 8;\n this.butPrint.Text = \"Print\";\n this.butPrint.Click += new System.EventHandler(this.butPrint_Click);\n //\n // butAdd\n //\n this.butAdd.setAdjustImageLocation(new System.Drawing.Point(0, 0));\n this.butAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));\n this.butAdd.setAutosize(true);\n this.butAdd.setBtnShape(OpenDental.UI.enumType.BtnShape.Rectangle);\n this.butAdd.setBtnStyle(OpenDental.UI.enumType.XPStyle.Silver);\n this.butAdd.setCornerRadius(4F);\n this.butAdd.Image = Resources.getAdd();\n this.butAdd.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;\n this.butAdd.Location = new System.Drawing.Point(141, 550);\n this.butAdd.Name = \"butAdd\";\n this.butAdd.Size = new System.Drawing.Size(75, 24);\n this.butAdd.TabIndex = 6;\n this.butAdd.Text = \"Add\";\n this.butAdd.Click += new System.EventHandler(this.butAdd_Click);\n //\n // gridMain\n //\n this.gridMain.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right)));\n this.gridMain.setHScrollVisible(false);\n this.gridMain.Location = new System.Drawing.Point(12, 51);\n this.gridMain.Name = \"gridMain\";\n this.gridMain.setScrollValue(0);\n this.gridMain.Size = new System.Drawing.Size(777, 490);\n this.gridMain.TabIndex = 5;\n this.gridMain.setTitle(\"Equipment\");\n this.gridMain.setTranslationName(null);\n this.gridMain.CellDoubleClick = __MultiODGridClickEventHandler.combine(this.gridMain.CellDoubleClick,new OpenDental.UI.ODGridClickEventHandler() \n { \n public System.Void invoke(System.Object sender, OpenDental.UI.ODGridClickEventArgs e) throws Exception {\n this.gridMain_CellDoubleClick(sender, e);\n }\n\n public List<OpenDental.UI.ODGridClickEventHandler> getInvocationList() throws Exception {\n List<OpenDental.UI.ODGridClickEventHandler> ret = new ArrayList<OpenDental.UI.ODGridClickEventHandler>();\n ret.add(this);\n return ret;\n }\n \n });\n //\n // butClose\n //\n this.butClose.setAdjustImageLocation(new System.Drawing.Point(0, 0));\n this.butClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));\n this.butClose.setAutosize(true);\n this.butClose.setBtnShape(OpenDental.UI.enumType.BtnShape.Rectangle);\n this.butClose.setBtnStyle(OpenDental.UI.enumType.XPStyle.Silver);\n this.butClose.setCornerRadius(4F);\n this.butClose.Location = new System.Drawing.Point(714, 550);\n this.butClose.Name = \"butClose\";\n this.butClose.Size = new System.Drawing.Size(75, 24);\n this.butClose.TabIndex = 2;\n this.butClose.Text = \"&Close\";\n this.butClose.Click += new System.EventHandler(this.butClose_Click);\n //\n // FormEquipment\n //\n this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;\n this.ClientSize = new System.Drawing.Size(801, 585);\n this.Controls.Add(this.textSnDesc);\n this.Controls.Add(this.label7);\n this.Controls.Add(this.radioAll);\n this.Controls.Add(this.groupBox1);\n this.Controls.Add(this.radioSold);\n this.Controls.Add(this.radioPurchased);\n this.Controls.Add(this.butPrint);\n this.Controls.Add(this.label1);\n this.Controls.Add(this.butAdd);\n this.Controls.Add(this.gridMain);\n this.Controls.Add(this.butClose);\n this.Name = \"FormEquipment\";\n this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;\n this.Text = \"Equipment\";\n this.Load += new System.EventHandler(this.FormEquipment_Load);\n this.groupBox1.ResumeLayout(false);\n this.groupBox1.PerformLayout();\n this.ResumeLayout(false);\n this.PerformLayout();\n }", "void createGebruikersBeheerPanel() {\n frame.add(gebruikersBeheerView.createGebruikersBeheerPanel());\n frame.setTitle(gebruikersBeheerModel.getTitle());\n }", "void createGUI(JFrame f) {\n TabbedSplitPanel centrePanel = new TabbedSplitPanel(new JPanel(),TabbedSplitPanel.RIGHT);\n centrePanel.addMenuPanel(new MenuPanel(\"Right Menu\", new JTextArea(\"Menu panel for right tabbed split panel\"),true));\n\n TabbedSplitPanel bottomPanel = new TabbedSplitPanel(centrePanel,SplitPanel.BOTTOM);\n MenuPanel mainBottomMenuPanel = new MenuPanel(\"Main bottom menu\", new JTextArea(\"Contents of bottom menu\"), true);\n bottomPanel.addMenuPanel(mainBottomMenuPanel);\n\n // A panel with a button in it\n JPanel panel = createAMenuView();\n\n TabbedSplitPanel leftPanel = new TabbedSplitPanel(bottomPanel, SplitPanel.LEFT);\n leftPanel.addMenuPanel(new MenuPanel(\"Left1\", panel, true));\n leftPanel.addMenuPanel(new MenuPanel(\"Left2\", new JTextArea(\"Left 2 text area\"),true));\n\n // A nested TabbedSplitPanel\n TabbedSplitPanel nestedPanel = new TabbedSplitPanel(new JTextArea(\"Panel Containing a Nested panel\"),SplitPanel.BOTTOM);\n nestedPanel.addMenuPanel(new MenuPanel(\"Nested bottom menu\",new JTextArea(\"Nested menu panel\"),true));\n centrePanel.addMenuPanel(new MenuPanel(\"Nested\",nestedPanel,true));\n\n f.setContentPane(leftPanel);\n\n }", "private Component getPanelSesion() {\n\t\tJPanel panelIzquierdo = new JPanel(new GridLayout(2, 1, 20, 20));\n\n\t\tJPanel grafico =\n\t\t\tnew JPanel() {\n\t\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\t\tsuper.paintComponent(g);\n\t\t\t\t\tg.drawImage(LOGO, 0, 0, 239, 250, this);\n\t\t\t\t}\n\t\t\t};\n\t\tgrafico.setPreferredSize(new Dimension(240, 250));\n\t\tgrafico.setMaximumSize(new Dimension(240, 250));\n\t\tgrafico.setMinimumSize(new Dimension(240, 250));\n\t\tJPanel sesion = new JPanel(new BorderLayout());\n\t\tpanelIzquierdo.add(grafico);\n\t\tpanelIzquierdo.add(getPanelOpcionesInferior());\n\t\tsesion.add(panelIzquierdo, BorderLayout.WEST);\n\t\tsesion.add(getOpcionesSesion());\n\n\t\treturn sesion;\n\t}", "public LoginJPanel() {\n initComponents();\n }", "public void createUI() {\r\n\t\ttry {\r\n\t\t\tJPanel centerPanel = this.createCenterPane();\r\n\t\t\tJPanel westPanel = this.createWestPanel();\r\n\t\t\tm_XONContentPane.add(westPanel, BorderLayout.WEST);\r\n\t\t\tm_XONContentPane.add(centerPanel, BorderLayout.CENTER);\r\n\t\t\tm_XONContentPane.revalidate();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tRGPTLogger.logToFile(\"Exception at createUI \", ex);\r\n\t\t}\r\n\t}", "public DashBoardPanel() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jPanel2 = new javax.swing.JPanel();\n Shadow = new javax.swing.JPanel();\n jPanel6 = new javax.swing.JPanel();\n jLabel4 = new javax.swing.JLabel();\n minimize = new javax.swing.JLabel();\n back = new javax.swing.JLabel();\n close = new javax.swing.JLabel();\n jPanel4 = new javax.swing.JPanel();\n jLabel13 = new javax.swing.JLabel();\n tw = new javax.swing.JComboBox<>();\n show = new javax.swing.JLabel();\n Reset = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n Tsalary = new javax.swing.JTable();\n Copyright = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setLocation(new java.awt.Point(250, 70));\n setUndecorated(true);\n setResizable(false);\n\n jPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 204, 204)));\n\n jPanel2.setBackground(new java.awt.Color(54, 71, 75));\n jPanel2.setForeground(new java.awt.Color(255, 255, 255));\n jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n Shadow.setBackground(new java.awt.Color(0, 123, 123));\n Shadow.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n jPanel2.add(Shadow, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 30, 740, 10));\n\n jPanel6.setBackground(new java.awt.Color(0, 153, 153));\n jPanel6.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {\n public void mouseDragged(java.awt.event.MouseEvent evt) {\n jPanel6MouseDragged(evt);\n }\n });\n jPanel6.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jPanel6MousePressed(evt);\n }\n });\n jPanel6.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 16)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel4.setText(\"Salary\");\n jPanel6.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 0, 470, 30));\n\n minimize.setBackground(new java.awt.Color(0, 153, 153));\n minimize.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n minimize.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/minimize.png\"))); // NOI18N\n minimize.setOpaque(true);\n minimize.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n minimizeMouseClicked(evt);\n }\n public void mousePressed(java.awt.event.MouseEvent evt) {\n minimizeMousePressed(evt);\n }\n public void mouseReleased(java.awt.event.MouseEvent evt) {\n minimizeMouseReleased(evt);\n }\n });\n jPanel6.add(minimize, new org.netbeans.lib.awtextra.AbsoluteConstraints(670, 0, 30, 30));\n\n back.setBackground(new java.awt.Color(0, 153, 153));\n back.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n back.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/back.png\"))); // NOI18N\n back.setOpaque(true);\n back.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n backMouseClicked(evt);\n }\n public void mousePressed(java.awt.event.MouseEvent evt) {\n backMousePressed(evt);\n }\n public void mouseReleased(java.awt.event.MouseEvent evt) {\n backMouseReleased(evt);\n }\n });\n jPanel6.add(back, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 0, 30, 30));\n\n close.setBackground(new java.awt.Color(0, 153, 153));\n close.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n close.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/close.png\"))); // NOI18N\n close.setOpaque(true);\n close.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n closeMouseClicked(evt);\n }\n public void mousePressed(java.awt.event.MouseEvent evt) {\n closeMousePressed(evt);\n }\n public void mouseReleased(java.awt.event.MouseEvent evt) {\n closeMouseReleased(evt);\n }\n });\n jPanel6.add(close, new org.netbeans.lib.awtextra.AbsoluteConstraints(700, 0, 40, 30));\n\n jPanel2.add(jPanel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 740, -1));\n\n jPanel4.setBackground(new java.awt.Color(0, 105, 105));\n jPanel4.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel13.setFont(new java.awt.Font(\"Tahoma\", 0, 15)); // NOI18N\n jLabel13.setForeground(new java.awt.Color(255, 255, 255));\n jLabel13.setText(\"Please Select\");\n jPanel4.add(jLabel13, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 10, 150, 30));\n\n tw.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n tw.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"None\", \"Teacher\", \"Worker\" }));\n jPanel4.add(tw, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 40, 210, 28));\n\n show.setBackground(new java.awt.Color(51, 153, 255));\n show.setFont(new java.awt.Font(\"Tahoma\", 0, 16)); // NOI18N\n show.setForeground(new java.awt.Color(255, 255, 255));\n show.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n show.setText(\"Show\");\n show.setOpaque(true);\n show.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n showMouseClicked(evt);\n }\n public void mousePressed(java.awt.event.MouseEvent evt) {\n showMousePressed(evt);\n }\n public void mouseReleased(java.awt.event.MouseEvent evt) {\n showMouseReleased(evt);\n }\n });\n jPanel4.add(show, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 40, 140, 30));\n\n Reset.setBackground(new java.awt.Color(255, 102, 102));\n Reset.setFont(new java.awt.Font(\"Tahoma\", 0, 16)); // NOI18N\n Reset.setForeground(new java.awt.Color(255, 255, 255));\n Reset.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n Reset.setText(\"Reset\");\n Reset.setOpaque(true);\n Reset.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n ResetMouseClicked(evt);\n }\n public void mousePressed(java.awt.event.MouseEvent evt) {\n ResetMousePressed(evt);\n }\n public void mouseReleased(java.awt.event.MouseEvent evt) {\n ResetMouseReleased(evt);\n }\n });\n jPanel4.add(Reset, new org.netbeans.lib.awtextra.AbsoluteConstraints(460, 40, 140, 30));\n\n jPanel2.add(jPanel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 40, 740, 80));\n\n Tsalary.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n Tsalary.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Teacher ID\", \"Teacher Name\", \"Qualification\", \"Designatiom\", \"Salary\", \"Date of Join\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, false, false, false, false, false\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n Tsalary.setGridColor(new java.awt.Color(255, 255, 255));\n Tsalary.setRowHeight(35);\n Tsalary.setSelectionBackground(new java.awt.Color(0, 153, 153));\n jScrollPane1.setViewportView(Tsalary);\n if (Tsalary.getColumnModel().getColumnCount() > 0) {\n Tsalary.getColumnModel().getColumn(0).setResizable(false);\n Tsalary.getColumnModel().getColumn(1).setResizable(false);\n Tsalary.getColumnModel().getColumn(2).setResizable(false);\n Tsalary.getColumnModel().getColumn(3).setResizable(false);\n Tsalary.getColumnModel().getColumn(4).setResizable(false);\n Tsalary.getColumnModel().getColumn(5).setResizable(false);\n }\n\n jPanel2.add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 140, 700, 230));\n\n Copyright.setFont(new java.awt.Font(\"Tahoma\", 0, 10)); // NOI18N\n Copyright.setForeground(new java.awt.Color(153, 153, 153));\n Copyright.setText(\"All Rights Reserved © Kochi lnc. 2018\");\n jPanel2.add(Copyright, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 380, 200, 20));\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 401, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\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 .addComponent(jPanel1, 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(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n pack();\n }", "public JPanel buildPanel() {\n\t\tsetLayout(new BorderLayout());\n\t\tsetBackground(ClientConstants.LIGHT_YELLOW);\n\t\tJLabel graphPlotLabel = new JLabel(ClientConstants.GRAPH_PLOT, JLabel.CENTER);\n\t\tgraphPlotLabel.setFont(ClientConstants.TEXT_FONT);\n\t\tadd(graphPlotLabel, BorderLayout.NORTH);\n\t\tsetLayout(new BorderLayout());\n\t\taffectiveGraphPlot = new AffectivePlot();\n\t\tClientDataSingleton.getInstance().setAffectivePlot(affectiveGraphPlot);\n\t\taffectiveGraphPlot.setBackground(Color.WHITE);\n\t\tadd(affectiveGraphPlot);\n\t\treturn this;\n\t}", "private void createOperationsPanel() {\n\t\toperationsPanel = new JPanel(new GridLayout(5, 1));\n\n\t\tspanningTreeButton = new JButton(\"Árvore de cobertura\");\n\t\tspanningTreeButton.addActionListener(new SpanningTreeHandler());\n\n\t\tblockingStatesButton = new JButton(\"Estados bloqueantes\");\n\t\tblockingStatesButton.addActionListener(new BlockingStatesHandler());\n\n\t\tnonLimitedStatesButton = new JButton(\"Estados não-limitados\");\n\t\tnonLimitedStatesButton.addActionListener(new NonLimitedStatesHandler());\n\n\t\tnetworkConservationButton = new JButton(\"Conservação da rede\");\n\t\tnetworkConservationButton.addActionListener(new NetworkConservationHandler());\n\n\t\treachabelStateButton = new JButton(\"Estado alcançável\");\n\t\treachabelStateButton.addActionListener(new ReachableStateHandler());\n\n\t\toperationsPanel.add(spanningTreeButton);\n\t\toperationsPanel.add(blockingStatesButton);\n\t\toperationsPanel.add(nonLimitedStatesButton);\n\t\toperationsPanel.add(networkConservationButton);\n\t\toperationsPanel.add(reachabelStateButton);\n\n\t\tthis.add(operationsPanel, BorderLayout.WEST);\n\t}", "public NewManagerWindow(Emplist anEmplist) {\n\n //build the panels and text areas.\n JPanel gridPanel = new JPanel();\n GridLayout grid = new GridLayout(4, 2);\n gridPanel.setLayout(grid);\n gridPanel.add(new JLabel(\" NAME: \"));\n JTextArea nameField = new JTextArea(1, 15);\n gridPanel.add(nameField);\n gridPanel.add(new JLabel(\" SALARY: \"));\n JTextArea salaryField = new JTextArea(1, 15);\n gridPanel.add(salaryField);\n gridPanel.add(new JLabel(\" BONUS: \"));\n JTextArea bonusField = new JTextArea(1, 15);\n gridPanel.add(bonusField);\n JFrame frame = new JFrame(\"Add a New Manager\");\n\n \n //build the buttons.\n JButton cancelButton = new JButton(\"Cancel\");\n cancelButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent event) {\n frame.dispose();\n }\n });\n\n gridPanel.add(cancelButton);\n\n JButton addButton = new JButton(\"Add\");\n addButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent event) {\n //make sure the user puts valid values in the fields.\n try {\n anEmplist.add(new Manager(nameField.getText(),\n Double.parseDouble(salaryField.getText()),\n Double.parseDouble(bonusField.getText())));\n System.out.println(\"New manager successfully added.\");\n frame.dispose();\n }\n catch (Exception e) {\n System.out.println(\"Unable to add Employee. Please make\"\n + \" sure that all fields are filled out with valid\"\n + \" input.\");\n frame.dispose();\n }\n }\n });\n\n gridPanel.add(addButton);\n grid.setVgap(5);\n\n //create and show the frame.\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.add(gridPanel, BorderLayout.CENTER);\n\n frame.pack();\n frame.setVisible(true);\n }", "private JPanel initCenterPanel() {\r\n JPanel centerPanel = new JPanel(new GridLayout(0, 2, gapSize, gapSize));\r\n\r\n centerPanel.add(chcBoxBowDepartment);\r\n centerPanel.add(new JLabel(\"gebühren: 5\"));\r\n centerPanel.add(chcBoxAtmosphericDepartment);\r\n centerPanel.add(new JLabel(\"gebühren: 10\"));\r\n centerPanel.add(chcBoxFirearmDepartment);\r\n centerPanel.add(new JLabel(\"gebühren: 15\"));\r\n\r\n centerPanel.add(lDiscounts);\r\n TitledBorder border = new TitledBorder(\"Abteilungen\");\r\n centerPanel.setBorder(border);\r\n\r\n return centerPanel;\r\n }", "@Override\n\tpublic JPanel createContentPane() {\n\t\t// Fabriken holen\n\t\tGridBagConstraintsFactory gbcf = GridBagConstraintsFactory.getInstance();\n\t\tWidgetFactory wf = WidgetFactory.getInstance();\n\t\t// Widgets erzeugen\n\t\tJPanel panel = wf.getContentPane(\"MainFrame\", true);\n\t\tpanel.add(createPanelStoredServices(), gbcf.getTableConstraints(0, 1, 1, 1));\n\t\tpanel.add(createPanelEditService(), gbcf.getTableConstraints(0, 2, 1, 1));\n\t\treturn panel;\n\t}", "public Component getPanelControl() {\n\t\tTableSorter sorterOperaciones = new TableSorter(modeloOperaciones);\n\t\tJTable tablaOperaciones = new JTable(sorterOperaciones);\n\t\tsorterOperaciones.setTableHeader(tablaOperaciones.getTableHeader());\n\t\tJScrollPane panelScrollDerecha = new JScrollPane(tablaOperaciones);\n\t\tpanelScrollDerecha.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\tpanelDerecha = new FakeInternalFrame(\"Log de Operaciones\", panelScrollDerecha);\n\n\t\tTableSorter sorterPrecios = new TableSorter(modeloPrecios);\n\t\tJTable tablaPrecios = new JTable(sorterPrecios);\n\t\tsorterPrecios.setTableHeader(tablaPrecios.getTableHeader());\n\t\ttablaPrecios.getColumn(tablaPrecios.getColumnName(1)).setCellRenderer(modeloPrecios.getRenderer());\n\n\t\tJScrollPane panelScrollIzqAbajo = new JScrollPane(tablaPrecios);\n\t\tpanelScrollIzqAbajo.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\tpanelIzqAbajo = new FakeInternalFrame(\"Precios en bolsa\", panelScrollIzqAbajo);\n\n\t\t//panelSecundario = new JSplitPane(JSplitPane.VERTICAL_SPLIT, panelIzqAbajo, panelIzqArriba);\n\t\tpanelPrincipal = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, panelIzqAbajo, panelDerecha);\n\n\t\tpanelPrincipal.setDividerLocation(300);\n\t\t//panelSecundario.setDividerLocation(300);\n\n\t\tpanelIzqAbajo.setPreferredSize(new Dimension(250, 300));\n\t\tpanelDerecha.setPreferredSize(new Dimension(550, 600));\n\n\t\treturn panelPrincipal;\n\t}", "private JPanel initWestPanel() {\r\n JPanel westPanel = new JPanel(new GridLayout(0, 2, gapSize, gapSize));\r\n\r\n westPanel.add(new JLabel(\"Vorname\"));\r\n westPanel.add(txtFieldFirstName);\r\n westPanel.add(new JLabel(\"Nachname\"));\r\n westPanel.add(txtFieldLastName);\r\n westPanel.add(new JLabel(\"Geburtstag\"));\r\n westPanel.add(txtFieldDateOfBirth);\r\n westPanel.add(new JLabel(\"IBAN\"));\r\n westPanel.add(txtFieldIBAN);\r\n westPanel.add(new JLabel(\"Geschlecht\"));\r\n westPanel.add(comBoxSexSelection);\r\n westPanel.add(new JLabel(\"Vorstandsmitglied\"));\r\n westPanel.add(comBoxBoardMember);\r\n westPanel.add(new JLabel(\"eintrittsdatum\"));\r\n westPanel.add(txtFieldEntranceDate);\r\n westPanel.add(new JLabel(\"austrittsdatum\"));\r\n westPanel.add(txtFieldLeavingDate);\r\n TitledBorder border = new TitledBorder(\"Mitgliederinfo\");\r\n westPanel.setBorder(border);\r\n\r\n return westPanel;\r\n }", "public New_Consultancy_job_JPanel(JPanel userProcessContainer,UserAccount useraccount,Enterprise enterprise,EcoSystem business) {\n initComponents();\n this.userProcessContainer = userProcessContainer;\n this.enterprise=enterprise;\n this.business = business;\n this.userAccount = useraccount;\n populateNetwork();\n }", "public GoldsHeadWorkAreaJPanel(JPanel userProcessContainer, Enterprise enterprise, EcoSystem business , Organization organization) {\n initComponents();\n this.userProcessContainer = userProcessContainer;\n this.enterprise = enterprise;\n this.system = business;\n this.organization = organization;\n intQ = EcoSystem.getInstance().getIntQ();\n valueLabel.setText(enterprise.getName());\n }", "public EmployeeView(Employees employees,int status, /*EmployeWork setEmpl,*/ JFrame frame)\n {\n super(frame, \"EmployeeView\", true);\n this.setResizable(false);\n this.setSize(300, 200);\n //this.status = status;\n //this.setEmpl = setEmpl;\n setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n this.employeesModel = employees;\n textFieldfirstname.setText(employeesModel.getFirstName());\n textsecondtname.setText(employeesModel.getSecondName());\n textFieldfphone.setText(employeesModel.getPhoneNumber());\n String salary = \"\";\n salary += employeesModel.getSalary();\n textsalary.setText(salary);\n JPanel panel = new JPanel();\n this.add(panel);\n panel.setLayout(new BorderLayout());\n JPanel panelname = new JPanel();\n panelname.add(labalfirstname);\n panelname.add(textFieldfirstname);\n panel.add(panelname, BorderLayout.NORTH);\n JPanel panelsname = new JPanel();\n JPanel panelcenter = new JPanel();\n JPanel panelphone = new JPanel();\n panelcenter.setLayout(new BorderLayout());\n panelsname.add(labalsecondtname);\n panelsname.add(textsecondtname);\n panelcenter.add(panelsname, BorderLayout.NORTH);\n panelphone.add(labelphone);\n panelphone.add(textFieldfphone);\n panelcenter.add(panelphone, BorderLayout.CENTER);\n JPanel panelsalary = new JPanel();\n panelsalary.add(labelsalary);\n panelsalary.add(textsalary);\n panelcenter.add(panelsalary, BorderLayout.SOUTH);\n panel.add(panelcenter, BorderLayout.CENTER);\n JPanel panelbut = new JPanel();\n JPanel panelchec= new JPanel();\n panelbut.add(buttonset);\n panelbut.add(buttonOk);\n panel.add(panelbut, BorderLayout.SOUTH);\n buttonOk.addActionListener(new ActionListener()\n {\n @Override\n public void actionPerformed(ActionEvent e)\n {\n try\n {\n if (flagcreate == GOOD_CREATE)\n {\n setVisible(false);\n dispose();\n }\n else throw new Exception();\n }\n catch (Exception e1)\n {\n JOptionPane.showMessageDialog(EmployeeView.this, \"Ошибка\", \"Вы вы вели плохие параметры\", JOptionPane.WARNING_MESSAGE);\n }\n }\n });\n buttonset.addActionListener(new ActionListener()\n {\n @Override\n public void actionPerformed(ActionEvent e)\n {\n try\n {\n if (textFieldfirstname.getText().equals(\"\") || textsecondtname.getText().equals(\"\")\n || textFieldfphone.getText().equals(\"\"))\n {\n throw new Exception();\n }\n employeesModel.setFirstName(textFieldfirstname.getText());\n employeesModel.setSecondName(textsecondtname.getText());\n employeesModel.setPhoneNumber(textFieldfphone.getText());\n employeesModel.setSalary(Integer.parseInt(textsalary.getText()));\n flagcreate = GOOD_CREATE;\n }\n catch (Exception e1)\n {\n flagcreate = BAD_CREATE;\n JOptionPane.showMessageDialog(EmployeeView.this, \"Ошибка\", \"Вы вы вели плохие параметры\", JOptionPane.WARNING_MESSAGE);\n }\n }\n\n });\n }", "private JPanel initializePanel() {\n JPanel myPanel = new JPanel();\n //myPanel.setPreferredSize(new Dimension(600,600));\n\n myPanel.setLayout(new GridLayout(8,8));\n myPanel.setSize(600,600);\n myPanel.setLocation(100,100);\n myPanel.setBorder(new LineBorder(Color.BLACK));\n return myPanel;\n }", "public AddCourseJPanel() { \n initComponents(); \n }", "public void addToJPanel() {\r\n\t\tedit_terrain.add(header);\r\n\t\tJLabel blank1 = new JLabel(\"\");\r\n\t\tedit_terrain.add(blank1);\r\n\t\t\r\n\t\tedit_terrain.add(add_terrain);\r\n\t\tJLabel blank2 = new JLabel(\"\");\r\n\t\tedit_terrain.add(blank2);\r\n\t\t\r\n\t\tedit_terrain.add(scale_lb);\r\n\t\tedit_terrain.add(scale);\r\n\t\t\r\n\t\tedit_terrain.add(shape_lb);\r\n\t\tedit_terrain.add(shape_cb);\r\n\t\t\r\n\t\tedit_terrain.add(material_lb);\r\n\t\tedit_terrain.add(material_cb);\r\n\t\t\r\n\t\tedit_terrain.add(colour_lb);\r\n\t\tedit_terrain.add(colour_cb);\r\n\t\t\r\n\t\tedit_terrain.add(position_x_lb);\r\n\t\tedit_terrain.add(position_x);\r\n\t\t\r\n\t\tedit_terrain.add(position_y_lb);\r\n\t\tedit_terrain.add(position_y);\r\n\t\t\r\n\t\tedit_terrain.add(apply_terrain);\r\n\t\tedit_terrain.add(reset_terrain);\r\n\t\t\r\n\t\tsetAllFont();\r\n\t}", "private void $$$setupUI$$$() {\n panel1 = new JPanel();\n panel1.setLayout(new FormLayout(\"fill:d:grow\", \"center:d:grow,top:4dlu:noGrow,center:max(d;4px):noGrow\"));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new FlowLayout(FlowLayout.RIGHT, 5, 5));\n CellConstraints cc = new CellConstraints();\n panel1.add(panel2, cc.xy(1, 3));\n saveButton = new JButton();\n this.$$$loadButtonText$$$(saveButton, ResourceBundle.getBundle(\"bundles/button\").getString(\"Save\"));\n panel2.add(saveButton);\n tabbedPane = new JTabbedPane();\n panel1.add(tabbedPane, cc.xy(1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));\n final JScrollPane scrollPane1 = new JScrollPane();\n tabbedPane.addTab(ResourceBundle.getBundle(\"bundles/label\").getString(\"countryBorder\"), scrollPane1);\n countryBorderTable = new JTable();\n scrollPane1.setViewportView(countryBorderTable);\n final JScrollPane scrollPane2 = new JScrollPane();\n tabbedPane.addTab(ResourceBundle.getBundle(\"bundles/label\").getString(\"provinceBorder_title\"), scrollPane2);\n provinceBorderTable = new JTable();\n provinceBorderTable.setToolTipText(\"\");\n scrollPane2.setViewportView(provinceBorderTable);\n }", "ReportGenerationPanel() {\n initComponents();\n reportPanel.setLayout(new GridBagLayout());\n constraints = new GridBagConstraints();\n constraints.fill = GridBagConstraints.BOTH;\n constraints.gridx = 0;\n constraints.gridy = 0;\n constraints.weightx = 1.0;\n glue = Box.createVerticalGlue();\n progressPanel = new ReportProgressPanel();\n }", "SummaryPanel() {\r\n\t\tsetLayout(new GridBagLayout());\r\n\t\tsetBackground(Color.white);\r\n\t\twriteButton.addActionListener(this);\r\n\t\tsetupGui();\r\n\t}", "public JComponent createContentPanel() {\n\t\t// Separating the component initialization and configuration\n\t\t// from the layout code makes both parts easier to read.\n\t\tinitControls();\n\t\t//TODO set minimum size\n\t\tFormLayout layout = new FormLayout(\"default, 3dlu, 120dlu:grow\", // cols //$NON-NLS-1$\n\t\t\t\t\"p, 3dlu,p,3dlu,p\"); // rows //$NON-NLS-1$\n\n\t\t// Create a builder that assists in adding components to the container.\n\t\t// Wrap the panel with a standardized border.\n\t\tDefaultFormBuilder builder = new DefaultFormBuilder(layout);\n\t\tbuilder.setDefaultDialogBorder();\n\t\tbuilder.append(Messages.getString(\"RenameDialog.CurrentName\"), oldName); //$NON-NLS-1$\n\t\tbuilder.nextLine(2);\n\t\tbuilder.append(Messages.getString(\"RenameDialog.NewName\"), newName); //$NON-NLS-1$\n\t\treturn builder.getPanel();\n\t}", "public LocalPanel() {\r\n\t\tinitComponents();\r\n\t}", "private JPanel getJPanel() {\r\n\t\tif (jPanel == null) {\r\n\t\t\ttitleFieldImage = new JLabel();\r\n\t\t\ttitleFieldImage.setBounds(new Rectangle(480, 75, 280, 60));\r\n\t\t\ttitleFieldImage.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\ttitleFieldImage.setText(\"Image\");\r\n\t\t\ttitleFieldImage.setBackground(new Color(255, 204, 204));\r\n\t\t\tpageInfoLbl = new JLabel();\r\n\t\t\tpageInfoLbl.setBounds(new java.awt.Rectangle(224,480,315,30));\r\n\t\t\tpageInfoLbl.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\tpageInfoLbl.setText(\"\");\r\n\t\t\ttitleFieldName = new JLabel();\r\n\t\t\ttitleFieldName.setBounds(new Rectangle(190, 75, 170, 60));\r\n\t\t\ttitleFieldName.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\ttitleFieldName.setBackground(new Color(255,204,204));\r\n\t\t\ttitleFieldName.setText(\"Field name\");\r\n\t\t\ttitleFieldId = new JLabel();\r\n\t\t\ttitleFieldId.setBounds(new Rectangle(90, 75, 70, 60));\r\n\t\t\ttitleFieldId.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\ttitleFieldId.setBackground(new Color(255,160,204));\r\n\t\t\ttitleFieldId.setText(\"Field ID\");\r\n\t\t\tlblPageName = new JLabel();\r\n\t\t\tlblPageName.setBounds(new Rectangle(10, 40, 120, 20));\r\n\t\t\tlblPageName.setText(\"Page Name\");\r\n\t\t\tjLabel = new JLabel();\r\n\t\t\tjLabel.setBounds(new java.awt.Rectangle(10,10,500,24));\r\n\t\t\tjLabel.setText(\"Select the field you want to add\");\r\n\t\t\tjPanel = new JPanel();\r\n\t\t\tjPanel.setLayout(null);\r\n\t\t\tjPanel.add(jLabel, null);\r\n\t\t\tjPanel.add(getJButton(), null);\r\n\t\t\tjPanel.add(getPageSheet(), null);\r\n\t\t\tjPanel.add(getPreButton(), null);\r\n\t\t\tjPanel.add(getAfterButton(), null);\r\n\t\t\tjPanel.add(lblPageName, null);\r\n\t\t\tjPanel.add(titleFieldId, null);\r\n\t\t\tjPanel.add(titleFieldName, null);\r\n\t\t\tjPanel.add(pageInfoLbl, null);\r\n\t\t\tjPanel.add(titleFieldImage, null);\r\n\t\t\t\r\n\t\t\tJLabel titleFiledType = new JLabel();\r\n\t\t\ttitleFiledType.setText(\"Field Type\");\r\n\t\t\ttitleFiledType.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\ttitleFiledType.setBounds(new Rectangle(10, 75, 90, 60));\r\n\t\t\ttitleFiledType.setBackground(new Color(255, 160, 204));\r\n\t\t\ttitleFiledType.setBounds(360, 75, 120, 60);\r\n\t\t\tjPanel.add(titleFiledType);\r\n\t\t\t\r\n\t\t\tJButton btnSelect = new JButton();\r\n\t\t\tbtnSelect.addActionListener(new ActionListener() {\r\n\t\t\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\treturnValue.clear();\r\n\t\t\t\t\tgrid.freshData();\r\n\t\t\t\t\tList<Map<String, String>> valueList = grid.getValueList();\r\n\t\t\t\t\t\r\n\t\t\t\t\tSelectBean bean = (SelectBean)pageIdSelect.getSelectedItem();\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor (Map<String, String> map : valueList) {\r\n\t\t\t\t\t\tString strSelect = map.get(\"SELECT\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (Boolean.valueOf(strSelect)) {\r\n\t\t\t\t\t\t\tMap<String, String> temp = new HashMap<String, String>(map);\r\n\t\t\t\t\t\t\ttemp.put(\"PAGE_ID\", bean.getCode());\r\n\t\t\t\t\t\t\tString strName = bean.getName();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif (strName.indexOf(\":\") > 0 && strName.length() > strName.indexOf(\":\") + 2) {\r\n\t\t\t\t\t\t\t\tstrName = strName.substring(strName.indexOf(\":\") + 2);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\ttemp.put(\"PAGE_NAME\", strName);\r\n\t\t\t\t\t\t\treturnValue.add(temp);\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\tif (returnValue.size() > 0) {\r\n\t\t\t\t\t\tsetVisible(false);\r\n\t\t\t\t\t\t_parent.addSelectFields(PageSelectDialog.this);\r\n\t\t\t\t\t\tUtils.removeWindow(PageSelectDialog.this);\r\n\t\t\t\t\t\t_parent.setVisible(true);\r\n\t\t\t\t\t\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(PageSelectDialog.this, \"Plese select field!\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t});\r\n\t\t\tbtnSelect.setText(\"Select\");\r\n\t\t\tbtnSelect.setSize(new Dimension(90, 30));\r\n\t\t\tbtnSelect.setLocation(new Point(10, 480));\r\n\t\t\tbtnSelect.setBounds(10, 520, 120, 30);\r\n\t\t\tjPanel.add(btnSelect);\r\n\t\t\t\r\n\t\t\ttitleSelect = new JLabel();\r\n\t\t\ttitleSelect.setText(\"Select\");\r\n\t\t\ttitleSelect.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\ttitleSelect.setBounds(new Rectangle(90, 75, 70, 60));\r\n\t\t\ttitleSelect.setBackground(new Color(255, 160, 204));\r\n\t\t\ttitleSelect.setBounds(10, 75, 80, 60);\r\n\t\t\tjPanel.add(titleSelect);\r\n\t\t\t\r\n\t\t\tpageIdSelect = new JComboBox<DefaultComboBoxModel>();\r\n\t\t\tpageIdSelect.addItemListener(new ItemListener() {\r\n\t\t\t\tpublic void itemStateChanged(ItemEvent e) {\r\n\t\t\t\t\tsearchDetailList();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tpageIdSelect.setBounds(140, 40, 300, 20);\r\n\t\t\tjPanel.add(pageIdSelect);\r\n\t\t}\r\n\t\treturn jPanel;\r\n\t}", "public Parent creatPanel() {\r\n\t\t\r\n\t\thlavniPanel = new BorderPane();\r\n\t\thlavniPanel.setCenter(creatGameDesk());\r\n\t\thlavniPanel.setTop(createMenuBar());\r\n\t\t\r\n\t\thlavniPanel.setBackground(new Background(new BackgroundFill(Color.BURLYWOOD, CornerRadii.EMPTY, Insets.EMPTY)));\r\n\t\thlavniPanel.setPadding(new Insets(8));\r\n\t\treturn hlavniPanel;\r\n\t}", "public HoaDonJPanel() {\n initComponents(); \n this.init();\n }", "private void crearComponentes(){\n\tjdpFondo.setSize(942,592);\n\t\n\tjtpcContenedor.setSize(230,592);\n\t\n\tjtpPanel.setTitle(\"Opciones\");\n\tjtpPanel2.setTitle(\"Volver\");\n \n jpnlPanelPrincilal.setBounds(240, 10 ,685, 540);\n \n }", "private void initComponents() {\n panelExpanded = new JPanel();\n panelExpandedNav = new JPanel();\n labelHome2 = new JLabel();\n labelAdd2 = new JLabel();\n labelView2 = new JLabel();\n labelLogout2 = new JLabel();\n labelSettings2 = new JLabel();\n labelLogo2 = new JLabel();\n panelButtonContainer = new JPanel();\n panelShrink = new JPanel();\n labelShrink = new JLabel();\n panelShrinked = new JPanel();\n panelShrinkedNav = new JPanel();\n labelHome = new JLabel();\n labelAdd = new JLabel();\n labelView = new JLabel();\n labelLogout = new JLabel();\n labelSettings = new JLabel();\n labelLogo = new JLabel();\n panelButtonContainer2 = new JPanel();\n panelExpand = new JPanel();\n labelExpand = new JLabel();\n labelFake = new JLabel();\n scrollPane1 = new JScrollPane();\n panelBody = new JPanel();\n panelEmployeeHeader = new JPanel();\n textEmpInfo = new JLabel();\n separatorEmp = new JSeparator();\n panelEmpBody = new JPanel();\n textFieldWID = new JTextField();\n labelWIDError = new JLabel();\n vSpacer7 = new JPanel(null);\n textFieldFN = new JTextField();\n hSpacer1 = new JPanel(null);\n textFieldMN = new JTextField();\n hSpacer2 = new JPanel(null);\n textFieldLN = new JTextField();\n labelFNError = new JLabel();\n labelMNError = new JLabel();\n labelLNError = new JLabel();\n vSpacer2 = new JPanel(null);\n labelDOB = new JLabel();\n textFieldPhone = new JTextField();\n panelBirth = new JPanel();\n textFieldLEmail = new JTextField();\n labelPhoneError = new JLabel();\n labelEmailError = new JLabel();\n vSpacer3 = new JPanel(null);\n labelJob = new JLabel();\n labelDepartment = new JLabel();\n textFieldID = new JTextField();\n comboBoxJob = new JComboBox();\n comboBoxDepartment = new JComboBox();\n labelIDError = new JLabel();\n vSpacer4 = new JPanel(null);\n panelGender = new JPanel();\n labelGender = new JLabel();\n radioButtonFemale = new JRadioButton();\n radioButtonMale = new JRadioButton();\n panelAddressHeader = new JPanel();\n textAddressInfo = new JLabel();\n separatorAddress = new JSeparator();\n panelAddBody = new JPanel();\n labelGov = new JLabel();\n labelCity = new JLabel();\n comboBoxGov = new JComboBox();\n hSpacer3 = new JPanel(null);\n comboBoxCity = new JComboBox();\n hSpacer4 = new JPanel(null);\n panelFake = new JPanel();\n vSpacer5 = new JPanel(null);\n textFieldStreet = new JTextField();\n labelStreetError = new JLabel();\n vSpacer6 = new JPanel(null);\n textFieldApt = new JTextField();\n labelAptError = new JLabel();\n panelFooter = new JPanel();\n buttonAddEmp = new JButton();\n labelTooth = new JLabel();\n\n //======== this ========\n setMinimumSize(new Dimension(1920, 1080));\n setPreferredSize(new Dimension(1920, 1200));\n setBackground(Color.white);\n setBorder ( new javax . swing. border .CompoundBorder ( new javax . swing. border .TitledBorder ( new javax . swing. border .\n EmptyBorder ( 0, 0 ,0 , 0) , \"JF\\u006frmD\\u0065sig\\u006eer \\u0045val\\u0075ati\\u006fn\" , javax. swing .border . TitledBorder. CENTER ,javax . swing\n . border .TitledBorder . BOTTOM, new java. awt .Font ( \"Dia\\u006cog\", java .awt . Font. BOLD ,12 ) ,\n java . awt. Color .red ) , getBorder () ) ); addPropertyChangeListener( new java. beans .PropertyChangeListener ( )\n { @Override public void propertyChange (java . beans. PropertyChangeEvent e) { if( \"\\u0062ord\\u0065r\" .equals ( e. getPropertyName () ) )\n throw new RuntimeException( ) ;} } );\n setLayout(new TableLayout(new double[][] {\n {226, TableLayout.FILL},\n {TableLayout.FILL}}));\n ((TableLayout)getLayout()).setHGap(5);\n ((TableLayout)getLayout()).setVGap(5);\n\n //======== panelExpanded ========\n {\n panelExpanded.setBackground(Color.white);\n panelExpanded.setMinimumSize(new Dimension(246, 1200));\n panelExpanded.setLayout(new GridLayoutManager(3, 2, new Insets(0, 0, 0, 0), 0, 0));\n\n //======== panelExpandedNav ========\n {\n panelExpandedNav.setBackground(new Color(32, 32, 82));\n panelExpandedNav.setPreferredSize(new Dimension(119, 1200));\n panelExpandedNav.setMinimumSize(new Dimension(180, 394));\n\n //---- labelHome2 ----\n labelHome2.setBackground(new Color(32, 32, 82));\n labelHome2.setIcon(new ImageIcon(getClass().getResource(\"/com/example/clinicsystem/pictures/home.png\")));\n labelHome2.setHorizontalAlignment(SwingConstants.CENTER);\n labelHome2.setText(\"Home\");\n labelHome2.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 20));\n labelHome2.setForeground(Color.white);\n labelHome2.setIconTextGap(20);\n labelHome2.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n labelHome2MouseClicked(e);\n }\n });\n\n //---- labelAdd2 ----\n labelAdd2.setBackground(new Color(32, 32, 82));\n labelAdd2.setIcon(new ImageIcon(getClass().getResource(\"/com/example/clinicsystem/pictures/add.png\")));\n labelAdd2.setHorizontalAlignment(SwingConstants.CENTER);\n labelAdd2.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 20));\n labelAdd2.setForeground(Color.white);\n labelAdd2.setText(\"Add\");\n labelAdd2.setIconTextGap(30);\n labelAdd2.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n labelEdit2MouseClicked(e);\n }\n });\n\n //---- labelView2 ----\n labelView2.setBackground(new Color(32, 32, 82));\n labelView2.setIcon(new ImageIcon(getClass().getResource(\"/com/example/clinicsystem/pictures/list.png\")));\n labelView2.setHorizontalAlignment(SwingConstants.CENTER);\n labelView2.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 20));\n labelView2.setForeground(Color.white);\n labelView2.setText(\"Search\");\n labelView2.setIconTextGap(10);\n\n //---- labelLogout2 ----\n labelLogout2.setBackground(new Color(32, 32, 82));\n labelLogout2.setIcon(new ImageIcon(getClass().getResource(\"/com/example/clinicsystem/pictures/logout.png\")));\n labelLogout2.setHorizontalAlignment(SwingConstants.CENTER);\n labelLogout2.setText(\"Logout\");\n labelLogout2.setForeground(Color.white);\n labelLogout2.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 20));\n labelLogout2.setIconTextGap(10);\n\n //---- labelSettings2 ----\n labelSettings2.setBackground(new Color(32, 32, 82));\n labelSettings2.setIcon(new ImageIcon(getClass().getResource(\"/com/example/clinicsystem/pictures/settings.png\")));\n labelSettings2.setHorizontalAlignment(SwingConstants.CENTER);\n\n //---- labelLogo2 ----\n labelLogo2.setBackground(new Color(32, 32, 82));\n labelLogo2.setIcon(new ImageIcon(getClass().getResource(\"/com/example/clinicsystem/pictures/tooth_white.png\")));\n labelLogo2.setHorizontalAlignment(SwingConstants.CENTER);\n\n GroupLayout panelExpandedNavLayout = new GroupLayout(panelExpandedNav);\n panelExpandedNav.setLayout(panelExpandedNavLayout);\n panelExpandedNavLayout.setHorizontalGroup(\n panelExpandedNavLayout.createParallelGroup()\n .addGroup(panelExpandedNavLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(labelLogo2, GroupLayout.PREFERRED_SIZE, 59, GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(labelSettings2, GroupLayout.PREFERRED_SIZE, 48, GroupLayout.PREFERRED_SIZE))\n .addGroup(GroupLayout.Alignment.TRAILING, panelExpandedNavLayout.createSequentialGroup()\n .addGroup(panelExpandedNavLayout.createParallelGroup(GroupLayout.Alignment.TRAILING)\n .addComponent(labelLogout2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(labelView2, GroupLayout.Alignment.LEADING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(labelAdd2, GroupLayout.Alignment.LEADING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(labelHome2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n panelExpandedNavLayout.setVerticalGroup(\n panelExpandedNavLayout.createParallelGroup()\n .addGroup(GroupLayout.Alignment.TRAILING, panelExpandedNavLayout.createSequentialGroup()\n .addGap(40, 40, 40)\n .addComponent(labelHome2, GroupLayout.PREFERRED_SIZE, 66, GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(labelAdd2, GroupLayout.PREFERRED_SIZE, 66, GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(labelView2, GroupLayout.PREFERRED_SIZE, 66, GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(labelLogout2, GroupLayout.PREFERRED_SIZE, 66, GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(panelExpandedNavLayout.createParallelGroup()\n .addComponent(labelSettings2, GroupLayout.Alignment.TRAILING, GroupLayout.PREFERRED_SIZE, 43, GroupLayout.PREFERRED_SIZE)\n .addComponent(labelLogo2, GroupLayout.Alignment.TRAILING))\n .addContainerGap())\n );\n }\n panelExpanded.add(panelExpandedNav, new GridConstraints(0, 0, 3, 1,\n GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n null, null, null));\n\n //======== panelButtonContainer ========\n {\n panelButtonContainer.setBackground(Color.white);\n panelButtonContainer.setLayout(new GridBagLayout());\n ((GridBagLayout)panelButtonContainer.getLayout()).columnWidths = new int[] {0, 0, 0};\n ((GridBagLayout)panelButtonContainer.getLayout()).rowHeights = new int[] {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};\n ((GridBagLayout)panelButtonContainer.getLayout()).columnWeights = new double[] {0.0, 0.0, 1.0E-4};\n ((GridBagLayout)panelButtonContainer.getLayout()).rowWeights = new double[] {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0E-4};\n\n //======== panelShrink ========\n {\n panelShrink.setBackground(new Color(32, 32, 82));\n\n //---- labelShrink ----\n labelShrink.setBackground(new Color(32, 32, 82));\n labelShrink.setIcon(new ImageIcon(getClass().getResource(\"/com/example/clinicsystem/pictures/arrow_left.png\")));\n labelShrink.setHorizontalAlignment(SwingConstants.CENTER);\n labelShrink.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n labelShrinkMouseClicked(e);\n labelShrinkMouseClicked(e);\n }\n });\n\n GroupLayout panelShrinkLayout = new GroupLayout(panelShrink);\n panelShrink.setLayout(panelShrinkLayout);\n panelShrinkLayout.setHorizontalGroup(\n panelShrinkLayout.createParallelGroup()\n .addGroup(panelShrinkLayout.createSequentialGroup()\n .addComponent(labelShrink, GroupLayout.PREFERRED_SIZE, 41, GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n panelShrinkLayout.setVerticalGroup(\n panelShrinkLayout.createParallelGroup()\n .addGroup(GroupLayout.Alignment.TRAILING, panelShrinkLayout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(labelShrink, GroupLayout.PREFERRED_SIZE, 119, GroupLayout.PREFERRED_SIZE))\n );\n }\n panelButtonContainer.add(panelShrink, new GridBagConstraints(0, 5, 1, 4, 0.0, 0.0,\n GridBagConstraints.CENTER, GridBagConstraints.BOTH,\n new Insets(0, 0, 5, 5), 0, 0));\n }\n panelExpanded.add(panelButtonContainer, new GridConstraints(0, 1, 1, 1,\n GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n null, null, null));\n }\n add(panelExpanded, new TableLayoutConstraints(0, 0, 0, 0, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //======== panelShrinked ========\n {\n panelShrinked.setBackground(Color.white);\n panelShrinked.setMinimumSize(new Dimension(216, 1200));\n panelShrinked.setPreferredSize(new Dimension(216, 1200));\n panelShrinked.setVisible(false);\n panelShrinked.setLayout(new GridLayoutManager(2, 2, new Insets(0, 0, 0, 0), 0, 0));\n\n //======== panelShrinkedNav ========\n {\n panelShrinkedNav.setBackground(new Color(32, 32, 82));\n panelShrinkedNav.setPreferredSize(new Dimension(70, 1200));\n panelShrinkedNav.setMinimumSize(new Dimension(70, 394));\n\n //---- labelHome ----\n labelHome.setBackground(new Color(32, 32, 82));\n labelHome.setIcon(new ImageIcon(getClass().getResource(\"/com/example/clinicsystem/pictures/home.png\")));\n labelHome.setHorizontalAlignment(SwingConstants.CENTER);\n labelHome.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 20));\n labelHome.setForeground(Color.white);\n labelHome.setIconTextGap(20);\n\n //---- labelAdd ----\n labelAdd.setBackground(new Color(32, 32, 82));\n labelAdd.setIcon(new ImageIcon(getClass().getResource(\"/com/example/clinicsystem/pictures/edit.png\")));\n labelAdd.setHorizontalAlignment(SwingConstants.CENTER);\n labelAdd.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 20));\n labelAdd.setForeground(Color.white);\n labelAdd.setIconTextGap(30);\n\n //---- labelView ----\n labelView.setBackground(new Color(32, 32, 82));\n labelView.setIcon(new ImageIcon(getClass().getResource(\"/com/example/clinicsystem/pictures/list.png\")));\n labelView.setHorizontalAlignment(SwingConstants.CENTER);\n labelView.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 20));\n labelView.setForeground(Color.white);\n labelView.setIconTextGap(10);\n\n //---- labelLogout ----\n labelLogout.setBackground(new Color(32, 32, 82));\n labelLogout.setIcon(new ImageIcon(getClass().getResource(\"/com/example/clinicsystem/pictures/logout.png\")));\n labelLogout.setHorizontalAlignment(SwingConstants.CENTER);\n labelLogout.setForeground(Color.white);\n labelLogout.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 20));\n labelLogout.setIconTextGap(10);\n\n //---- labelSettings ----\n labelSettings.setBackground(new Color(32, 32, 82));\n labelSettings.setIcon(new ImageIcon(getClass().getResource(\"/com/example/clinicsystem/pictures/settings.png\")));\n labelSettings.setHorizontalAlignment(SwingConstants.CENTER);\n\n //---- labelLogo ----\n labelLogo.setBackground(new Color(32, 32, 82));\n labelLogo.setIcon(new ImageIcon(getClass().getResource(\"/com/example/clinicsystem/pictures/tooth_white.png\")));\n labelLogo.setHorizontalAlignment(SwingConstants.CENTER);\n\n GroupLayout panelShrinkedNavLayout = new GroupLayout(panelShrinkedNav);\n panelShrinkedNav.setLayout(panelShrinkedNavLayout);\n panelShrinkedNavLayout.setHorizontalGroup(\n panelShrinkedNavLayout.createParallelGroup()\n .addGroup(GroupLayout.Alignment.TRAILING, panelShrinkedNavLayout.createSequentialGroup()\n .addGroup(panelShrinkedNavLayout.createParallelGroup(GroupLayout.Alignment.TRAILING)\n .addComponent(labelSettings, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(labelLogo, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(panelShrinkedNavLayout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(panelShrinkedNavLayout.createParallelGroup(GroupLayout.Alignment.TRAILING)\n .addComponent(labelView, GroupLayout.PREFERRED_SIZE, 71, GroupLayout.PREFERRED_SIZE)\n .addComponent(labelAdd, GroupLayout.PREFERRED_SIZE, 71, GroupLayout.PREFERRED_SIZE)\n .addComponent(labelHome, GroupLayout.PREFERRED_SIZE, 71, GroupLayout.PREFERRED_SIZE)\n .addComponent(labelLogout, GroupLayout.PREFERRED_SIZE, 71, GroupLayout.PREFERRED_SIZE))))\n .addContainerGap())\n );\n panelShrinkedNavLayout.setVerticalGroup(\n panelShrinkedNavLayout.createParallelGroup()\n .addGroup(GroupLayout.Alignment.TRAILING, panelShrinkedNavLayout.createSequentialGroup()\n .addComponent(labelHome, GroupLayout.PREFERRED_SIZE, 66, GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(labelAdd, GroupLayout.PREFERRED_SIZE, 66, GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(labelView, GroupLayout.PREFERRED_SIZE, 66, GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(labelLogout, GroupLayout.PREFERRED_SIZE, 66, GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(labelSettings, GroupLayout.PREFERRED_SIZE, 58, GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(labelLogo, GroupLayout.PREFERRED_SIZE, 69, GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n }\n panelShrinked.add(panelShrinkedNav, new GridConstraints(0, 0, 2, 1,\n GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n null, null, null));\n\n //======== panelButtonContainer2 ========\n {\n panelButtonContainer2.setBackground(Color.white);\n panelButtonContainer2.setLayout(new GridBagLayout());\n ((GridBagLayout)panelButtonContainer2.getLayout()).columnWidths = new int[] {0, 0, 0};\n ((GridBagLayout)panelButtonContainer2.getLayout()).rowHeights = new int[] {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};\n ((GridBagLayout)panelButtonContainer2.getLayout()).columnWeights = new double[] {0.0, 0.0, 1.0E-4};\n ((GridBagLayout)panelButtonContainer2.getLayout()).rowWeights = new double[] {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0E-4};\n\n //======== panelExpand ========\n {\n panelExpand.setBackground(new Color(32, 32, 82));\n\n //---- labelExpand ----\n labelExpand.setBackground(new Color(32, 32, 82));\n labelExpand.setIcon(new ImageIcon(getClass().getResource(\"/com/example/clinicsystem/pictures/arrow_right.png\")));\n labelExpand.setHorizontalAlignment(SwingConstants.CENTER);\n labelExpand.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n labelExpandMouseClicked(e);\n }\n });\n\n GroupLayout panelExpandLayout = new GroupLayout(panelExpand);\n panelExpand.setLayout(panelExpandLayout);\n panelExpandLayout.setHorizontalGroup(\n panelExpandLayout.createParallelGroup()\n .addGroup(panelExpandLayout.createSequentialGroup()\n .addComponent(labelExpand, GroupLayout.PREFERRED_SIZE, 41, GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n panelExpandLayout.setVerticalGroup(\n panelExpandLayout.createParallelGroup()\n .addGroup(GroupLayout.Alignment.TRAILING, panelExpandLayout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(labelExpand, GroupLayout.PREFERRED_SIZE, 119, GroupLayout.PREFERRED_SIZE))\n );\n }\n panelButtonContainer2.add(panelExpand, new GridBagConstraints(0, 5, 1, 5, 0.0, 0.0,\n GridBagConstraints.CENTER, GridBagConstraints.BOTH,\n new Insets(0, 0, 5, 5), 0, 0));\n\n //---- labelFake ----\n labelFake.setText(\" \");\n labelFake.setMinimumSize(new Dimension(120, 16));\n labelFake.setPreferredSize(new Dimension(120, 16));\n panelButtonContainer2.add(labelFake, new GridBagConstraints(1, 7, 1, 1, 0.0, 0.0,\n GridBagConstraints.CENTER, GridBagConstraints.BOTH,\n new Insets(0, 0, 5, 0), 0, 0));\n }\n panelShrinked.add(panelButtonContainer2, new GridConstraints(0, 1, 1, 1,\n GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n null, null, null));\n }\n add(panelShrinked, new TableLayoutConstraints(0, 0, 0, 0, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //======== scrollPane1 ========\n {\n scrollPane1.setBackground(Color.white);\n scrollPane1.setForeground(Color.white);\n scrollPane1.setBorder(null);\n\n //======== panelBody ========\n {\n panelBody.setBackground(Color.white);\n panelBody.setAutoscrolls(true);\n panelBody.setBorder(new EmptyBorder(0, 20, 10, 30));\n panelBody.setLayout(new TableLayout(new double[][] {\n {TableLayout.FILL},\n {92, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.FILL}}));\n ((TableLayout)panelBody.getLayout()).setHGap(5);\n ((TableLayout)panelBody.getLayout()).setVGap(5);\n\n //======== panelEmployeeHeader ========\n {\n panelEmployeeHeader.setBackground(Color.white);\n panelEmployeeHeader.setLayout(new TableLayout(new double[][] {\n {TableLayout.PREFERRED, TableLayout.FILL},\n {93}}));\n ((TableLayout)panelEmployeeHeader.getLayout()).setHGap(5);\n ((TableLayout)panelEmployeeHeader.getLayout()).setVGap(5);\n\n //---- textEmpInfo ----\n textEmpInfo.setText(\"Empolyee info\");\n textEmpInfo.setFont(new Font(\"Alike\", Font.PLAIN, 21));\n textEmpInfo.setForeground(Color.black);\n panelEmployeeHeader.add(textEmpInfo, new TableLayoutConstraints(0, 0, 0, 0, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n panelEmployeeHeader.add(separatorEmp, new TableLayoutConstraints(1, 0, 1, 0, TableLayoutConstraints.FULL, TableLayoutConstraints.CENTER));\n }\n panelBody.add(panelEmployeeHeader, new TableLayoutConstraints(0, 0, 0, 0, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //======== panelEmpBody ========\n {\n panelEmpBody.setBackground(Color.white);\n panelEmpBody.setLayout(new TableLayout(new double[][] {\n {TableLayout.FILL, TableLayout.PREFERRED, TableLayout.FILL, TableLayout.PREFERRED, TableLayout.FILL},\n {TableLayout.PREFERRED, TableLayout.PREFERRED, 30, 50, TableLayout.PREFERRED, 30, 50, TableLayout.PREFERRED, 30, 50, TableLayout.PREFERRED, 30, 50}}));\n ((TableLayout)panelEmpBody.getLayout()).setHGap(5);\n ((TableLayout)panelEmpBody.getLayout()).setVGap(5);\n\n //---- textFieldWID ----\n textFieldWID.setBackground(Color.white);\n textFieldWID.setForeground(Color.black);\n textFieldWID.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 16));\n textFieldWID.setBorder(new TitledBorder(new EtchedBorder(new Color(66, 66, 135), new Color(139, 139, 195)), \"Employee ID\", TitledBorder.LEADING, TitledBorder.DEFAULT_POSITION,\n new Font(\"Helvetica-Normal\", Font.PLAIN, 12), Color.black));\n panelEmpBody.add(textFieldWID, new TableLayoutConstraints(0, 0, 0, 0, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- labelWIDError ----\n labelWIDError.setForeground(new Color(191, 44, 39));\n labelWIDError.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 14));\n labelWIDError.setBackground(Color.white);\n panelEmpBody.add(labelWIDError, new TableLayoutConstraints(0, 1, 0, 1, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- vSpacer7 ----\n vSpacer7.setBackground(Color.white);\n vSpacer7.setPreferredSize(new Dimension(50, 10));\n vSpacer7.setMinimumSize(new Dimension(50, 10));\n panelEmpBody.add(vSpacer7, new TableLayoutConstraints(0, 2, 0, 2, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- textFieldFN ----\n textFieldFN.setBackground(Color.white);\n textFieldFN.setForeground(Color.black);\n textFieldFN.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 16));\n textFieldFN.setBorder(new TitledBorder(new EtchedBorder(new Color(66, 66, 135), new Color(139, 139, 195)), \"First Name\", TitledBorder.LEADING, TitledBorder.DEFAULT_POSITION,\n new Font(\"Helvetica-Normal\", Font.PLAIN, 12), Color.black));\n panelEmpBody.add(textFieldFN, new TableLayoutConstraints(0, 3, 0, 3, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- hSpacer1 ----\n hSpacer1.setBackground(Color.white);\n hSpacer1.setMinimumSize(new Dimension(30, 12));\n hSpacer1.setPreferredSize(new Dimension(50, 10));\n panelEmpBody.add(hSpacer1, new TableLayoutConstraints(1, 3, 1, 3, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- textFieldMN ----\n textFieldMN.setBackground(Color.white);\n textFieldMN.setForeground(Color.black);\n textFieldMN.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 16));\n textFieldMN.setBorder(new TitledBorder(new EtchedBorder(new Color(66, 66, 135), new Color(139, 139, 195)), \"Middle Name\", TitledBorder.LEADING, TitledBorder.DEFAULT_POSITION,\n new Font(\"Helvetica-Normal\", Font.PLAIN, 12), Color.black));\n panelEmpBody.add(textFieldMN, new TableLayoutConstraints(2, 3, 2, 3, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- hSpacer2 ----\n hSpacer2.setBackground(Color.white);\n hSpacer2.setMinimumSize(new Dimension(30, 12));\n hSpacer2.setPreferredSize(new Dimension(50, 10));\n panelEmpBody.add(hSpacer2, new TableLayoutConstraints(3, 3, 3, 3, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- textFieldLN ----\n textFieldLN.setBackground(Color.white);\n textFieldLN.setForeground(Color.black);\n textFieldLN.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 16));\n textFieldLN.setBorder(new TitledBorder(new EtchedBorder(new Color(66, 66, 135), new Color(139, 139, 195)), \"Last Name\", TitledBorder.LEADING, TitledBorder.DEFAULT_POSITION,\n new Font(\"Helvetica-Normal\", Font.PLAIN, 12), Color.black));\n panelEmpBody.add(textFieldLN, new TableLayoutConstraints(4, 3, 4, 3, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- labelFNError ----\n labelFNError.setForeground(new Color(191, 44, 39));\n labelFNError.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 14));\n labelFNError.setBackground(Color.white);\n panelEmpBody.add(labelFNError, new TableLayoutConstraints(0, 4, 0, 4, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- labelMNError ----\n labelMNError.setForeground(new Color(191, 44, 39));\n labelMNError.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 14));\n labelMNError.setBackground(Color.white);\n panelEmpBody.add(labelMNError, new TableLayoutConstraints(2, 4, 2, 4, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- labelLNError ----\n labelLNError.setForeground(new Color(191, 44, 39));\n labelLNError.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 14));\n labelLNError.setBackground(Color.white);\n panelEmpBody.add(labelLNError, new TableLayoutConstraints(4, 4, 4, 4, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- vSpacer2 ----\n vSpacer2.setBackground(Color.white);\n vSpacer2.setPreferredSize(new Dimension(50, 10));\n vSpacer2.setMinimumSize(new Dimension(50, 10));\n panelEmpBody.add(vSpacer2, new TableLayoutConstraints(0, 5, 0, 5, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- labelDOB ----\n labelDOB.setText(\"Date of Birth\");\n labelDOB.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 12));\n labelDOB.setForeground(Color.black);\n panelEmpBody.add(labelDOB, new TableLayoutConstraints(2, 5, 2, 5, TableLayoutConstraints.FULL, TableLayoutConstraints.BOTTOM));\n\n //---- textFieldPhone ----\n textFieldPhone.setBackground(Color.white);\n textFieldPhone.setForeground(Color.black);\n textFieldPhone.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 16));\n textFieldPhone.setBorder(new TitledBorder(new EtchedBorder(new Color(66, 66, 135), new Color(139, 139, 195)), \"Phone Number\", TitledBorder.LEADING, TitledBorder.DEFAULT_POSITION,\n new Font(\"Helvetica-Normal\", Font.PLAIN, 12), Color.black));\n panelEmpBody.add(textFieldPhone, new TableLayoutConstraints(0, 6, 0, 6, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //======== panelBirth ========\n {\n panelBirth.setBackground(Color.gray);\n panelBirth.setLayout(new BorderLayout());\n }\n panelEmpBody.add(panelBirth, new TableLayoutConstraints(2, 6, 2, 6, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- textFieldLEmail ----\n textFieldLEmail.setBackground(Color.white);\n textFieldLEmail.setForeground(Color.black);\n textFieldLEmail.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 16));\n textFieldLEmail.setBorder(new TitledBorder(new EtchedBorder(new Color(66, 66, 135), new Color(139, 139, 195)), \"E-mail\", TitledBorder.LEADING, TitledBorder.DEFAULT_POSITION,\n new Font(\"Helvetica-Normal\", Font.PLAIN, 12), Color.black));\n panelEmpBody.add(textFieldLEmail, new TableLayoutConstraints(4, 6, 4, 6, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- labelPhoneError ----\n labelPhoneError.setForeground(new Color(191, 44, 39));\n labelPhoneError.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 14));\n panelEmpBody.add(labelPhoneError, new TableLayoutConstraints(0, 7, 0, 7, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- labelEmailError ----\n labelEmailError.setForeground(new Color(191, 44, 39));\n labelEmailError.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 14));\n panelEmpBody.add(labelEmailError, new TableLayoutConstraints(4, 7, 4, 7, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- vSpacer3 ----\n vSpacer3.setBackground(Color.white);\n vSpacer3.setPreferredSize(new Dimension(50, 10));\n vSpacer3.setMinimumSize(new Dimension(50, 10));\n panelEmpBody.add(vSpacer3, new TableLayoutConstraints(0, 8, 0, 8, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- labelJob ----\n labelJob.setText(\"Job Title\");\n labelJob.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 12));\n labelJob.setForeground(Color.black);\n panelEmpBody.add(labelJob, new TableLayoutConstraints(2, 8, 2, 8, TableLayoutConstraints.FULL, TableLayoutConstraints.BOTTOM));\n\n //---- labelDepartment ----\n labelDepartment.setText(\"Department\");\n labelDepartment.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 12));\n labelDepartment.setForeground(Color.black);\n panelEmpBody.add(labelDepartment, new TableLayoutConstraints(4, 8, 4, 8, TableLayoutConstraints.FULL, TableLayoutConstraints.BOTTOM));\n\n //---- textFieldID ----\n textFieldID.setBackground(Color.white);\n textFieldID.setForeground(Color.black);\n textFieldID.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 16));\n textFieldID.setBorder(new TitledBorder(new EtchedBorder(new Color(66, 66, 135), new Color(139, 139, 195)), \"National ID\", TitledBorder.LEADING, TitledBorder.DEFAULT_POSITION,\n new Font(\"Helvetica-Normal\", Font.PLAIN, 12), Color.black));\n panelEmpBody.add(textFieldID, new TableLayoutConstraints(0, 9, 0, 9, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- comboBoxJob ----\n comboBoxJob.setBackground(Color.white);\n comboBoxJob.setForeground(new Color(32, 32, 82));\n comboBoxJob.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n panelEmpBody.add(comboBoxJob, new TableLayoutConstraints(2, 9, 2, 9, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- comboBoxDepartment ----\n comboBoxDepartment.setBackground(Color.white);\n comboBoxDepartment.setForeground(new Color(32, 32, 82));\n comboBoxDepartment.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n panelEmpBody.add(comboBoxDepartment, new TableLayoutConstraints(4, 9, 4, 9, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- labelIDError ----\n labelIDError.setForeground(new Color(191, 44, 39));\n labelIDError.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 14));\n panelEmpBody.add(labelIDError, new TableLayoutConstraints(0, 10, 0, 10, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- vSpacer4 ----\n vSpacer4.setBackground(Color.white);\n vSpacer4.setPreferredSize(new Dimension(50, 10));\n vSpacer4.setMinimumSize(new Dimension(50, 10));\n panelEmpBody.add(vSpacer4, new TableLayoutConstraints(0, 11, 0, 11, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //======== panelGender ========\n {\n panelGender.setBackground(Color.white);\n panelGender.setLayout(new TableLayout(new double[][] {\n {TableLayout.PREFERRED, TableLayout.FILL, TableLayout.FILL},\n {50}}));\n ((TableLayout)panelGender.getLayout()).setHGap(5);\n ((TableLayout)panelGender.getLayout()).setVGap(5);\n\n //---- labelGender ----\n labelGender.setText(\"Gender\");\n labelGender.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 12));\n labelGender.setForeground(Color.black);\n panelGender.add(labelGender, new TableLayoutConstraints(0, 0, 0, 0, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- radioButtonFemale ----\n radioButtonFemale.setText(\"Female\");\n radioButtonFemale.setBackground(Color.white);\n radioButtonFemale.setForeground(Color.black);\n radioButtonFemale.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 12));\n radioButtonFemale.setSelected(true);\n radioButtonFemale.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n radioButtonFemaleMouseClicked(e);\n }\n });\n panelGender.add(radioButtonFemale, new TableLayoutConstraints(1, 0, 1, 0, TableLayoutConstraints.CENTER, TableLayoutConstraints.FULL));\n\n //---- radioButtonMale ----\n radioButtonMale.setText(\"Male\");\n radioButtonMale.setBackground(Color.white);\n radioButtonMale.setForeground(Color.black);\n radioButtonMale.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 12));\n radioButtonMale.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n radioButtonMaleMouseClicked(e);\n }\n });\n panelGender.add(radioButtonMale, new TableLayoutConstraints(2, 0, 2, 0, TableLayoutConstraints.CENTER, TableLayoutConstraints.FULL));\n }\n panelEmpBody.add(panelGender, new TableLayoutConstraints(0, 12, 0, 12, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n }\n panelBody.add(panelEmpBody, new TableLayoutConstraints(0, 1, 0, 1, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //======== panelAddressHeader ========\n {\n panelAddressHeader.setBackground(Color.white);\n panelAddressHeader.setLayout(new TableLayout(new double[][] {\n {TableLayout.PREFERRED, TableLayout.FILL},\n {93}}));\n ((TableLayout)panelAddressHeader.getLayout()).setHGap(5);\n ((TableLayout)panelAddressHeader.getLayout()).setVGap(5);\n\n //---- textAddressInfo ----\n textAddressInfo.setText(\"Address info\");\n textAddressInfo.setFont(new Font(\"Alike\", Font.PLAIN, 21));\n textAddressInfo.setForeground(Color.black);\n panelAddressHeader.add(textAddressInfo, new TableLayoutConstraints(0, 0, 0, 0, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n panelAddressHeader.add(separatorAddress, new TableLayoutConstraints(1, 0, 1, 0, TableLayoutConstraints.FULL, TableLayoutConstraints.CENTER));\n }\n panelBody.add(panelAddressHeader, new TableLayoutConstraints(0, 2, 0, 2, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //======== panelAddBody ========\n {\n panelAddBody.setBackground(Color.white);\n panelAddBody.setLayout(new TableLayout(new double[][] {\n {TableLayout.FILL, TableLayout.PREFERRED, TableLayout.FILL, TableLayout.PREFERRED, TableLayout.FILL},\n {TableLayout.PREFERRED, 50, 30, 50, TableLayout.PREFERRED, 30, 50, TableLayout.PREFERRED}}));\n ((TableLayout)panelAddBody.getLayout()).setHGap(5);\n ((TableLayout)panelAddBody.getLayout()).setVGap(5);\n\n //---- labelGov ----\n labelGov.setText(\"Governorate\");\n labelGov.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 12));\n labelGov.setForeground(Color.black);\n panelAddBody.add(labelGov, new TableLayoutConstraints(0, 0, 0, 0, TableLayoutConstraints.FULL, TableLayoutConstraints.BOTTOM));\n\n //---- labelCity ----\n labelCity.setText(\"City\");\n labelCity.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 12));\n labelCity.setForeground(Color.black);\n panelAddBody.add(labelCity, new TableLayoutConstraints(2, 0, 2, 0, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- comboBoxGov ----\n comboBoxGov.setBackground(Color.white);\n comboBoxGov.setForeground(new Color(32, 32, 82));\n comboBoxGov.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n comboBoxGov.addItemListener(e -> comboBoxGovItemStateChanged(e));\n panelAddBody.add(comboBoxGov, new TableLayoutConstraints(0, 1, 0, 1, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- hSpacer3 ----\n hSpacer3.setBackground(Color.white);\n hSpacer3.setMinimumSize(new Dimension(30, 12));\n hSpacer3.setPreferredSize(new Dimension(50, 10));\n panelAddBody.add(hSpacer3, new TableLayoutConstraints(1, 1, 1, 1, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- comboBoxCity ----\n comboBoxCity.setBackground(Color.white);\n comboBoxCity.setForeground(new Color(32, 32, 82));\n comboBoxCity.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n panelAddBody.add(comboBoxCity, new TableLayoutConstraints(2, 1, 2, 1, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- hSpacer4 ----\n hSpacer4.setBackground(Color.white);\n hSpacer4.setMinimumSize(new Dimension(30, 12));\n hSpacer4.setPreferredSize(new Dimension(50, 10));\n panelAddBody.add(hSpacer4, new TableLayoutConstraints(3, 1, 3, 1, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //======== panelFake ========\n {\n panelFake.setBackground(Color.white);\n\n GroupLayout panelFakeLayout = new GroupLayout(panelFake);\n panelFake.setLayout(panelFakeLayout);\n panelFakeLayout.setHorizontalGroup(\n panelFakeLayout.createParallelGroup()\n .addGap(0, 280, Short.MAX_VALUE)\n );\n panelFakeLayout.setVerticalGroup(\n panelFakeLayout.createParallelGroup()\n .addGap(0, 50, Short.MAX_VALUE)\n );\n }\n panelAddBody.add(panelFake, new TableLayoutConstraints(4, 1, 4, 1, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- vSpacer5 ----\n vSpacer5.setBackground(Color.white);\n vSpacer5.setPreferredSize(new Dimension(50, 10));\n vSpacer5.setMinimumSize(new Dimension(50, 10));\n panelAddBody.add(vSpacer5, new TableLayoutConstraints(0, 2, 0, 2, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- textFieldStreet ----\n textFieldStreet.setBackground(Color.white);\n textFieldStreet.setForeground(Color.black);\n textFieldStreet.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 16));\n textFieldStreet.setBorder(new TitledBorder(new EtchedBorder(new Color(66, 66, 135), new Color(139, 139, 195)), \"Street\", TitledBorder.LEADING, TitledBorder.DEFAULT_POSITION,\n new Font(\"Helvetica-Normal\", Font.PLAIN, 12), Color.black));\n panelAddBody.add(textFieldStreet, new TableLayoutConstraints(0, 3, 0, 3, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- labelStreetError ----\n labelStreetError.setForeground(new Color(191, 44, 39));\n labelStreetError.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 14));\n labelStreetError.setBackground(Color.white);\n panelAddBody.add(labelStreetError, new TableLayoutConstraints(0, 4, 0, 4, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- vSpacer6 ----\n vSpacer6.setBackground(Color.white);\n vSpacer6.setPreferredSize(new Dimension(50, 10));\n vSpacer6.setMinimumSize(new Dimension(50, 10));\n panelAddBody.add(vSpacer6, new TableLayoutConstraints(0, 5, 0, 5, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- textFieldApt ----\n textFieldApt.setBackground(Color.white);\n textFieldApt.setForeground(Color.black);\n textFieldApt.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 16));\n textFieldApt.setBorder(new TitledBorder(new EtchedBorder(new Color(66, 66, 135), new Color(139, 139, 195)), \"Apartment\", TitledBorder.LEADING, TitledBorder.DEFAULT_POSITION,\n new Font(\"Helvetica-Normal\", Font.PLAIN, 12), Color.black));\n panelAddBody.add(textFieldApt, new TableLayoutConstraints(0, 6, 0, 6, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- labelAptError ----\n labelAptError.setForeground(new Color(191, 44, 39));\n labelAptError.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 14));\n labelAptError.setBackground(Color.white);\n panelAddBody.add(labelAptError, new TableLayoutConstraints(0, 7, 0, 7, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n }\n panelBody.add(panelAddBody, new TableLayoutConstraints(0, 3, 0, 3, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //======== panelFooter ========\n {\n panelFooter.setBackground(Color.white);\n panelFooter.setLayout(null);\n\n //---- buttonAddEmp ----\n buttonAddEmp.setText(\"ADD\");\n buttonAddEmp.setBackground(new Color(32, 32, 82));\n buttonAddEmp.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 14));\n buttonAddEmp.setForeground(Color.white);\n buttonAddEmp.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n buttonAddEmpMouseClicked(e);\n }\n });\n panelFooter.add(buttonAddEmp);\n buttonAddEmp.setBounds(0, 105, 190, 35);\n\n //---- labelTooth ----\n labelTooth.setIcon(new ImageIcon(getClass().getResource(\"/com/example/clinicsystem/pictures/tooth_purple.png\")));\n panelFooter.add(labelTooth);\n labelTooth.setBounds(90, 5, 100, 144);\n\n {\n // compute preferred size\n Dimension preferredSize = new Dimension();\n for(int i = 0; i < panelFooter.getComponentCount(); i++) {\n Rectangle bounds = panelFooter.getComponent(i).getBounds();\n preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);\n preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);\n }\n Insets insets = panelFooter.getInsets();\n preferredSize.width += insets.right;\n preferredSize.height += insets.bottom;\n panelFooter.setMinimumSize(preferredSize);\n panelFooter.setPreferredSize(preferredSize);\n }\n }\n panelBody.add(panelFooter, new TableLayoutConstraints(0, 4, 0, 4, TableLayoutConstraints.RIGHT, TableLayoutConstraints.BOTTOM));\n }\n scrollPane1.setViewportView(panelBody);\n }\n add(scrollPane1, new TableLayoutConstraints(1, 0, 1, 0, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n // JFormDesigner - End of component initialization //GEN-END:initComponents\n\n datePicker = new DatePicker();\n datePicker.setDateToToday();\n datePicker.setBackground(Color.white);\n datePicker.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 14));\n panelBirth.add(datePicker);\n\n for(int i=0; i<ClinicSystem.governorates.size(); i++) {\n comboBoxGov.addItem(ClinicSystem.governorates.get(i));\n }\n\n for(int i=0; i<ClinicSystem.cairoCities.size(); i++) {\n comboBoxCity.addItem(ClinicSystem.cairoCities.get(i));\n }\n }", "private void setContentPanelComponents(){\n\t\tcontentPanel = new JPanel();\n\t\tcontentPanel.setLayout(new BorderLayout());\n\t\tcontentPanel.setBackground(Constant.DIALOG_BOX_COLOR_BG);\n\t\tgetContentPane().add(contentPanel, BorderLayout.NORTH);\n\t\t\n\t\t//--------------------------\n\t\tJPanel payrollDatePanel= new JPanel();\n\t\tpayrollDatePanel.setLayout(new GridLayout(0,2,5,5));\n\t\tpayrollDatePanel.setPreferredSize(new Dimension(0,20));\n\t\tpayrollDatePanel.setOpaque(false);\n\t\t\n\t\tlblPayrollDate = new JLabel(\"Payroll Date: \");\n\t\tlblPayrollDate.setForeground(Color.WHITE);\n\t\tlblPayrollDate.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tpayrollDatePanel.add(lblPayrollDate);\n\t\t\n\t\t\n\t\tpayrollDateComboBox = new JComboBox<String>();\n\t\tpayrollDatePanel.add(payrollDateComboBox);\n\t\n\t\t\n\t\tcontentPanel.add(payrollDatePanel,BorderLayout.NORTH);\n\t\t//--------------------------\n\t\t\n\t\n\t\tJPanel textAreaPanel= new JPanel();\n\t\ttextAreaPanel.setPreferredSize(new Dimension(0, 95));\n\t\ttextAreaPanel.setLayout(null);\n\t\ttextAreaPanel.setOpaque(false);\n\t\t\n\t\t\n\t\tcontentPanel.add(textAreaPanel,BorderLayout.CENTER);\n\t\t\n\t\tJLabel lblComments = new JLabel(\"Comments:\");\n\t\tlblComments.setForeground(Color.WHITE);\n\t\tlblComments.setBounds(10, 11, 75, 14);\n\t\ttextAreaPanel.add(lblComments);\n\t\t\n\t\tcommentTextArea = new JTextArea();\n\t\tcommentTextArea.setBounds(87, 14, 100, 75);\n\t\ttextAreaPanel.add(commentTextArea);\n\t}", "public SalesSystemUI(SalesDomainController domainController) {\n\t\tthis.domainController = domainController;\n\t\tthis.model = new SalesSystemModel(domainController);\n\t\tdomainController.setModel(model);\n\n\t\t// Create singleton instances of the tab classes\n\t\ttabs = new AbstractTab[4];\n\t\ttabs[0] = new PurchaseTab(domainController, model, this);\n\t\ttabs[1] = new StockTab(model, domainController);\n\t\ttabs[2] = new HistoryTab(model, domainController);\n\t\ttabs[3] = new ClientTab(model, domainController);\n\n\t\tsetTitle(\"Sales system\");\n\n\t\t// set L&F to the nice Windows style\n\t\ttry {\n\t\t\tUIManager.setLookAndFeel(new WindowsLookAndFeel());\n\t\t} catch (UnsupportedLookAndFeelException e1) {\n\t\t\tlog.warn(e1.getMessage());\n\t\t}\n\n\t\tdrawWidgets();\n\n\t\t// size & location\n\t\tint width = 600;\n\t\tint height = 400;\n\t\tsetSize(width, height);\n\t\tDimension screen = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tsetLocation((screen.width - width) / 2, (screen.height - height) / 2);\n\n\t\taddWindowListener(new WindowAdapter() {\n\t\t\t@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tSalesSystemUI.this.domainController.endSession();\n\t\t\t\tlog.info(\"SalesSystem closed\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\t}", "private void setupPanel()\n\t{\n\t\tthis.setLayout(baseLayout);\n\t\tqueryButton = new JButton(\"query\");\n\t\tthis.add(queryButton);\n\t\tthis.add(displayPane);\n\t\tdisplayArea = new JTextArea(10,30);\n\t\tadd(displayArea);\n\t\t\n\t\t\n\t}", "private void createComponents() {\n\n add(createSetDataPanel(), BorderLayout.NORTH);\n add(createResourcesListAndButtonsPanel(), BorderLayout.CENTER);\n }", "public BuildingConfigPanel() {\n\n\t\tthis.setLayout(new BorderLayout());\n\t\tthis.setOpaque(true);\n\t\tDimension size = new Dimension(1200, 700);\n\t\tthis.setMaximumSize(size);\n\t\tthis.setPreferredSize(size);\n\t\tthis.setMinimumSize(size);\n\t\tthis.setAlignmentX(LEFT_ALIGNMENT);\n\t\tthis.setBorder(BorderFactory.createLineBorder(Color.blue));\n\t\tthis.setBackground(Color.WHITE);\n\t\tthis.setLayout(null);\n\n\t\tfont = new Font(\"Serif\", Font.BOLD, 18);\n\t\tfont1 = new Font(\"Serif\", Font.PLAIN, 15);\n\n\t\t// method to create sensors checkboxes, date and time fields\n\t\tcreateSensors();\n\t\t// method to connect to database\n\t\tcreateJDBCConnection();\n\t\t// method to highlight the area of selection\n\t\tareaTracker();\n\n\t}", "private void createManualJPanel() {\r\n createJPanelWithManual();\r\n JFrame frame = new JFrame();\r\n customizeFrame(frame);\r\n }", "private void constructChartPanel() {\n chartPanel = new JPanel();\n chartPanel.setBorder(BorderFactory.createTitledBorder(\"Price Chart\"));\n chartPanel.setPreferredSize(relativeSize(0.4f, 0.35f));\n \n displayChartButton = new JButton(\"Click to Display Price Chart\");\n displayChartButton.setEnabled(false);\n displayChartButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n JPanel cPanel = chart.getChartPanel();\n chartPanel.removeAll();\n chartPanel.add(cPanel);\n cPanel.setPreferredSize(relativeSize(0.4f, 0.35f));\n \n pack();\n repaint();\n }\n });\n \n chartPanel.add(displayChartButton);\n }", "public OrganizeItemsPanel() {\n initComponents();\n// lastIndeks = catalogProducts.size();\n }", "private JPanel createCenterPanel() \r\n\t{\r\n\t\tJPanel panel = new JPanel();\r\n\t\t\r\n\t\tpanel.setLayout(new BorderLayout());\r\n\t\tpanel.setBorder(new EmptyBorder(10,10,10,10));\r\n\t\treservationsModel = new DefaultListModel<>();\r\n\t\treservationsList = new JList<>(reservationsModel);\r\n\t\t\r\n\t\t// User can only select one item at a time.\r\n\t\treservationsList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n\t\t\r\n\t\t// Wrap JList in JScrollPane so it is scrollable.\r\n\t\tJScrollPane scrollPane = new JScrollPane(this.reservationsList);\r\n\t\t\r\n\t\treservationsList.addListSelectionListener(new MyListSelectionListener());\r\n\t\t\r\n\t\tpanel.add(scrollPane,BorderLayout.CENTER);\r\n\t\t\r\n\t\treturn panel;\r\n\t}", "public Administrative() {\r\n\t\tsetTitle(\"APB\");\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tsetBounds(100, 100, 418, 238);\r\n\t\tcontentPane = new JPanel();\r\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tsetContentPane(contentPane);\r\n\t\tcontentPane.setLayout(null);\r\n\r\n\t\tJPanel panel = new JPanel();\r\n\t\tpanel.setBorder(new TitledBorder(UIManager\r\n\t\t\t\t.getBorder(\"TitledBorder.border\"), \"Administrative\",\r\n\t\t\t\tTitledBorder.CENTER, TitledBorder.TOP, null, null));\r\n\t\tpanel.setBounds(10, 11, 379, 183);\r\n\t\tcontentPane.add(panel);\r\n\t\tpanel.setLayout(null);\r\n\r\n\t\tJButton btnBarber = new JButton(\"Barber\");\r\n\t\tbtnBarber.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\t// This method is used to create the button and the action that open\r\n\t\t\t// the Phonebook frame\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\tdispose();\r\n\t\t\t\tRegisterBarber frame = new RegisterBarber();\r\n\t\t\t\tframe.setVisible(true);\r\n\t\t\t\tframe.setLocationRelativeTo(null);\r\n\t\t\t\tLogger.getLogger(\"Create the boutton and open the phonebook frame\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnBarber.setBounds(10, 45, 157, 37);\r\n\t\tpanel.add(btnBarber);\r\n\r\n\t\tJButton btnTipoJob = new JButton(\"Tipo de Servi\\u00E7o\");\r\n\t\tbtnTipoJob.addActionListener(new ActionListener() {\r\n\t\t\t// This method is used to create the button and the action that open\r\n\t\t\t// the Service Type frame\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tdispose();\r\n\t\t\t\tRegisterDoneService frame = new RegisterDoneService();\r\n\t\t\t\tframe.setVisible(true);\r\n\t\t\t\tframe.setLocationRelativeTo(null);\r\n\t\t\t\tLogger.getLogger(\"Create the boutton and open the Service Type frame\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnTipoJob.setBounds(215, 45, 149, 37);\r\n\t\tpanel.add(btnTipoJob);\r\n\r\n\t\tJButton btnPhonebook = new JButton(\"Phonebook\");\r\n\t\tbtnPhonebook.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\t// This method is used to create the button and the action that open\r\n\t\t\t// the Phonebook frame\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\tdispose();\r\n\t\t\t\tRegisterPhonebook frame = new RegisterPhonebook();\r\n\t\t\t\tframe.setVisible(true);\r\n\t\t\t\tframe.setLocationRelativeTo(null);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnPhonebook.setBounds(10, 93, 157, 37);\r\n\t\tpanel.add(btnPhonebook);\r\n\r\n\t\tJButton btnVoltar = new JButton(\"Voltar\");\r\n\t\tbtnVoltar.addActionListener(new ActionListener() {\r\n\t\t\t// This method is used to create the button and the action that open\r\n\t\t\t// the Service Type frame\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tdispose();\r\n\t\t\t\tMainMenu frame = new MainMenu();\r\n\t\t\t\tframe.setVisible(true);\r\n\t\t\t\tframe.setLocationRelativeTo(null);\r\n\t\t\t\tLogger.getLogger(\"Create the boutton to go back\");\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnVoltar.setBounds(151, 141, 89, 23);\r\n\t\tpanel.add(btnVoltar);\r\n\r\n\t\tJButton btnRecibo = new JButton(\"Recibo\");\r\n\t\tbtnRecibo.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\t// This method is used to create the button and the action that open\r\n\t\t\t// the receipt frame\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\r\n\t\t\t\tdispose();\r\n\t\t\t\tGenerateReceipt frame = null;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tframe = new GenerateReceipt();\r\n\t\t\t\t} catch (ParseException 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\tframe.setVisible(true);\r\n\t\t\t\tframe.setLocationRelativeTo(null);\r\n\t\t\t\tLogger.getLogger(\"Create the boutton and open the receipt frame\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnRecibo.setBounds(215, 93, 149, 37);\r\n\t\tpanel.add(btnRecibo);\r\n\t}", "@Override\n public JComponent createPane() {\n\n JSplitPane jSplitPane = new JSplitPane();\n\n jSplitPane.setLeftComponent(new JButton(\"左边按钮\"));\n jSplitPane.setRightComponent(new JButton(\"右边按钮\"));\n\n jSplitPane.setOneTouchExpandable(false);\n\n jSplitPane.setContinuousLayout(false);\n jSplitPane.setDividerLocation(150);\n\n// jPanel.add(jSplitPane);\n return jSplitPane;\n }" ]
[ "0.6775105", "0.6657213", "0.6549741", "0.6493308", "0.6493308", "0.6454175", "0.636526", "0.63635206", "0.6336149", "0.63224536", "0.63065404", "0.63006353", "0.6298124", "0.62734056", "0.6268016", "0.6263956", "0.62225825", "0.6208218", "0.6202587", "0.6191717", "0.6177324", "0.6167594", "0.6166177", "0.6154823", "0.6127384", "0.61140716", "0.6106888", "0.60741913", "0.60589445", "0.6053764", "0.6052096", "0.6047258", "0.6043304", "0.6042839", "0.60425633", "0.6042413", "0.6041641", "0.60402197", "0.60195976", "0.60189104", "0.60148466", "0.60100126", "0.60093665", "0.60087377", "0.6001733", "0.60005754", "0.59971195", "0.59943837", "0.5992161", "0.59854525", "0.59833086", "0.597722", "0.59743506", "0.5973062", "0.5971578", "0.59694946", "0.59627557", "0.59614307", "0.5958213", "0.59497863", "0.5947535", "0.5943825", "0.5940181", "0.59332806", "0.5928364", "0.59247", "0.59238696", "0.5922039", "0.59180796", "0.591766", "0.5911976", "0.591071", "0.590632", "0.5906143", "0.5905144", "0.5903881", "0.5903121", "0.5900776", "0.5900213", "0.58993906", "0.58968097", "0.5891965", "0.5891758", "0.5890752", "0.58894366", "0.588749", "0.5885645", "0.5884368", "0.58817625", "0.58756965", "0.58739716", "0.5872996", "0.5872482", "0.58697164", "0.586914", "0.5867604", "0.5863407", "0.5858561", "0.5858525", "0.58537966" ]
0.61334336
24
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() { btnManageCustomer = new javax.swing.JButton(); jLabel1 = new javax.swing.JLabel(); setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); btnManageCustomer.setFont(new java.awt.Font("Lucida Calligraphy", 0, 12)); // NOI18N btnManageCustomer.setText("Manage Customers"); btnManageCustomer.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0))); btnManageCustomer.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnManageCustomerActionPerformed(evt); } }); add(btnManageCustomer, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 150, 200, 40)); jLabel1.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N jLabel1.setText("SALES MANAGER ROLE"); add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 100, 200, -1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public Oddeven() {\n initComponents();\n }", "public 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}", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public kunde() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public 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 Kost() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.7321233", "0.72922724", "0.72922724", "0.72922724", "0.7287021", "0.7250113", "0.7214902", "0.7209478", "0.71973455", "0.71915394", "0.71855843", "0.71602577", "0.7149222", "0.70949143", "0.70813066", "0.70579875", "0.6988272", "0.6978623", "0.6956488", "0.6954857", "0.69464177", "0.6943629", "0.69367987", "0.6933018", "0.6929331", "0.69254756", "0.6925112", "0.6913102", "0.69126385", "0.6894097", "0.6893964", "0.68917936", "0.6891495", "0.68895847", "0.68845505", "0.688321", "0.6882532", "0.6878455", "0.68770224", "0.68752515", "0.6872487", "0.6861657", "0.6857395", "0.68569964", "0.6856607", "0.68555", "0.6854448", "0.6854003", "0.6854003", "0.68440473", "0.6838224", "0.6837637", "0.6829588", "0.6829244", "0.68277496", "0.68251204", "0.68236995", "0.68180907", "0.6817601", "0.681135", "0.680981", "0.680977", "0.68097097", "0.6807759", "0.6803703", "0.6795666", "0.67947936", "0.6793619", "0.6790796", "0.67902565", "0.67899716", "0.67888206", "0.67829174", "0.67670804", "0.6766693", "0.67661726", "0.6757112", "0.67564726", "0.67534983", "0.6751943", "0.67434925", "0.6739915", "0.6737868", "0.6737343", "0.673493", "0.6728943", "0.67285377", "0.672136", "0.6716568", "0.671613", "0.67153496", "0.67092025", "0.67079633", "0.6704689", "0.67022705", "0.6701755", "0.6700168", "0.66992295", "0.669491", "0.6692837", "0.6690047" ]
0.0
-1
Only for dynamic instantiation.
public ChainOfSelectors() { this(Genotype.getStaticConfiguration()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Reproducible newInstance();", "@Override\r\n public void instantiate() {\r\n }", "@Override\n public boolean isInstantiable() {\n return false;\n }", "@Override\r\n\tpublic void init() {}", "@Override\n public void init() {}", "@Override\n protected void init() {\n }", "@Override\n public void init() {\n }", "protected abstract void construct();", "DynamicInstance createDynamicInstance();", "@Override\n void init() {\n }", "private ProcessedDynamicData( ) {\r\n super();\r\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n public void init() {\n\n }", "@Override\n\t\tpublic void init() {\n\t\t}", "private Instantiation(){}", "@Override\n public void init() {\n }", "private Example() {\n\t\tthrow new Error(\"no instantiation is permitted\");\n\t}", "protected void _init(){}", "protected void postInstantiate() {}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\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 void init() {\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}", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\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 }", "public Dynamic() {\n }", "@Override\n\tpublic void init() {\n\t}", "private void init() {\n }", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void create () {\n\n\t}", "protected void initialize() {}", "protected void initialize() {}", "private StickFactory() {\n\t}", "private stendhal() {\n\t}", "private FactoryCacheValet() {\n\t\tsuper();\n\t}", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "protected void init() {\n // to override and use this method\n }", "@Override\n\tpublic void create() {\n\t\t\n\t}", "public void init() {\r\n\t\t// to override\r\n\t}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n \t\t\t\tpublic void doNew() {\n \n \t\t\t\t}", "static void init() {}", "private void _init() {\n }", "public void init() {}", "public void init() {}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "public ParameterizedInstantiateFactory() {\r\n super();\r\n }", "abstract public void init();", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\tpublic void create() {\n\n\t}", "private void init() {\n\n\n\n }", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "@Override\n protected void initialize() {\n\n \n }", "private Object createInstance() throws InstantiationException, IllegalAccessException {\n\t\treturn classType.newInstance();\n\t}", "public void init() {\n \n }", "protected void parametersInstantiation_EM() {\n }", "public void init() {\n\n\t}", "public void init() {\n\n\t}", "public void init() {\n\n\t}", "@Override\r\n\tpublic void create() {\n\r\n\t}", "private ObjectFactory() { }", "abstract protected void initialize();", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}" ]
[ "0.7181825", "0.6741257", "0.6739774", "0.67308825", "0.67041826", "0.66886944", "0.6668921", "0.6664213", "0.66640586", "0.6655048", "0.6647821", "0.66172004", "0.65685624", "0.6552466", "0.64958507", "0.6478062", "0.64692545", "0.64487153", "0.64484835", "0.64456165", "0.64456165", "0.6443657", "0.6443657", "0.6443657", "0.6418652", "0.6417472", "0.6417472", "0.6417472", "0.6417472", "0.6417472", "0.64107686", "0.6409805", "0.6396435", "0.63962543", "0.63962543", "0.63962543", "0.63962543", "0.63962543", "0.63962543", "0.6393392", "0.63888997", "0.63808453", "0.63667125", "0.63667125", "0.63667125", "0.6331939", "0.6331939", "0.6331939", "0.6328687", "0.63235384", "0.63235384", "0.6310453", "0.62946147", "0.628839", "0.62724364", "0.62724364", "0.62724364", "0.62724364", "0.626934", "0.62692225", "0.6262457", "0.6262331", "0.6228389", "0.6228389", "0.6228389", "0.622819", "0.6213161", "0.6193653", "0.6192368", "0.6192368", "0.6161389", "0.6161389", "0.61599255", "0.6150692", "0.6147698", "0.61476463", "0.6131806", "0.6131156", "0.61284626", "0.61284626", "0.61284626", "0.61284626", "0.61284626", "0.61284626", "0.61284626", "0.61284626", "0.61284626", "0.61284626", "0.61284626", "0.6125028", "0.6123605", "0.61148113", "0.6110108", "0.61058277", "0.61058277", "0.61058277", "0.6103183", "0.61002094", "0.60994923", "0.60969996", "0.60969996" ]
0.0
-1
Adds a natural selector to the chain.
public void addNaturalSelector(NaturalSelector a_selector) throws InvalidConfigurationException { if (a_selector == null) { throw new InvalidConfigurationException( "This Configuration object is locked. Settings may not be " + "altered."); } m_selectors.add(a_selector); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addSelector( SelectorName symbol ) {\n if (symbol != null) selectors.add(symbol);\n }", "public void addSelector( SelectorName first,\n SelectorName second ) {\n if (first != null) selectors.add(first);\n if (second != null) selectors.add(second);\n }", "void addNarratorChain(Object newNarratorChain);", "Selector getSelector();", "org.apache.xmlbeans.impl.xb.xsdschema.SelectorDocument.Selector addNewSelector();", "public NaturalSelector get(final int a_index) {\n return (NaturalSelector) m_selectors.get(a_index);\n }", "public void setSelector(final String selector) {\n\t\tthis.selector = selector;\n\t}", "public Selector getSelector();", "public Selector getSelector();", "private Selector() { }", "private Selector() { }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> increaseOffsetBy(int additionalOffset);", "public Builder setSelector(\n java.lang.String value) {\n copyOnWrite();\n instance.setSelector(value);\n return this;\n }", "public SimpleSelector getSiblingSelector();", "SelectorType getSelector();", "TrafficSelector selector();", "public ChainOfSelectors() {\n this(Genotype.getStaticConfiguration());\n }", "public ListNetwork labelSelector(String labelSelector) {\n put(\"labelSelector\", labelSelector);\n return this;\n }", "private void setSelector(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n selector_ = value;\n }", "public TruggerElementSelector(String name, Finder<Element> finder) {\n this.name = name;\n this.finder = finder;\n builder = new PredicateBuilder<Element>();\n }", "public void addSelectors( Iterable<SelectorName> names ) {\n for (SelectorName name : names) {\n if (name != null) selectors.add(name);\n }\n }", "Builder withSelector(TrafficSelector selector);", "public final void selector() throws RecognitionException {\n try {\n // css21.g:118:5: ( simpleSelector ( combinator simpleSelector )* )\n // css21.g:118:7: simpleSelector ( combinator simpleSelector )*\n {\n pushFollow(FOLLOW_simpleSelector_in_selector600);\n simpleSelector();\n\n state._fsp--;\n if (state.failed) return ;\n\n // css21.g:118:22: ( combinator simpleSelector )*\n loop14:\n do {\n int alt14=2;\n int LA14_0 = input.LA(1);\n\n if ( (LA14_0==COLON||LA14_0==DOT||LA14_0==GREATER||LA14_0==HASH||LA14_0==IDENT||LA14_0==LBRACKET||LA14_0==PLUS||LA14_0==STAR) ) {\n alt14=1;\n }\n\n\n switch (alt14) {\n \tcase 1 :\n \t // css21.g:118:23: combinator simpleSelector\n \t {\n \t pushFollow(FOLLOW_combinator_in_selector603);\n \t combinator();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t pushFollow(FOLLOW_simpleSelector_in_selector605);\n \t simpleSelector();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop14;\n }\n } while (true);\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return ;\n }", "public ListProxy labelSelector(String labelSelector) {\n put(\"labelSelector\", labelSelector);\n return this;\n }", "public ListInfrastructure labelSelector(String labelSelector) {\n put(\"labelSelector\", labelSelector);\n return this;\n }", "public SelectorPart(Class<?> type) {\n this(type, null);\n }", "@Override\n public void add(Selectable selectable) throws IOException {\n if (selectable.getChannel() != null) {\n selectable.getChannel().configureBlocking(false);\n SelectionKey key = selectable.getChannel().register(selector, 0);\n key.attach(selectable);\n }\n selectables.add(selectable);\n update(selectable);\n }", "public ListDNS labelSelector(String labelSelector) {\n put(\"labelSelector\", labelSelector);\n return this;\n }", "public ListBuild labelSelector(String labelSelector) {\n put(\"labelSelector\", labelSelector);\n return this;\n }", "public final void selector() throws RecognitionException {\n int selector_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"selector\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(890, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 133) ) { return ; }\n // Java.g:891:5: ( '.' Identifier ( arguments )? | '.' 'this' | '.' 'super' superSuffix | '.' 'new' innerCreator | '[' expression ']' )\n int alt167=5;\n try { dbg.enterDecision(167);\n\n int LA167_0 = input.LA(1);\n\n if ( (LA167_0==29) ) {\n switch ( input.LA(2) ) {\n case Identifier:\n {\n alt167=1;\n }\n break;\n case 69:\n {\n alt167=2;\n }\n break;\n case 65:\n {\n alt167=3;\n }\n break;\n case 113:\n {\n alt167=4;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 167, 1, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n\n }\n else if ( (LA167_0==48) ) {\n alt167=5;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 167, 0, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n } finally {dbg.exitDecision(167);}\n\n switch (alt167) {\n case 1 :\n dbg.enterAlt(1);\n\n // Java.g:891:9: '.' Identifier ( arguments )?\n {\n dbg.location(891,9);\n match(input,29,FOLLOW_29_in_selector5603); if (state.failed) return ;\n dbg.location(891,13);\n match(input,Identifier,FOLLOW_Identifier_in_selector5605); if (state.failed) return ;\n dbg.location(891,24);\n // Java.g:891:24: ( arguments )?\n int alt166=2;\n try { dbg.enterSubRule(166);\n try { dbg.enterDecision(166);\n\n int LA166_0 = input.LA(1);\n\n if ( (LA166_0==66) ) {\n alt166=1;\n }\n } finally {dbg.exitDecision(166);}\n\n switch (alt166) {\n case 1 :\n dbg.enterAlt(1);\n\n // Java.g:0:0: arguments\n {\n dbg.location(891,24);\n pushFollow(FOLLOW_arguments_in_selector5607);\n arguments();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n } finally {dbg.exitSubRule(166);}\n\n\n }\n break;\n case 2 :\n dbg.enterAlt(2);\n\n // Java.g:892:9: '.' 'this'\n {\n dbg.location(892,9);\n match(input,29,FOLLOW_29_in_selector5618); if (state.failed) return ;\n dbg.location(892,13);\n match(input,69,FOLLOW_69_in_selector5620); if (state.failed) return ;\n\n }\n break;\n case 3 :\n dbg.enterAlt(3);\n\n // Java.g:893:9: '.' 'super' superSuffix\n {\n dbg.location(893,9);\n match(input,29,FOLLOW_29_in_selector5630); if (state.failed) return ;\n dbg.location(893,13);\n match(input,65,FOLLOW_65_in_selector5632); if (state.failed) return ;\n dbg.location(893,21);\n pushFollow(FOLLOW_superSuffix_in_selector5634);\n superSuffix();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n case 4 :\n dbg.enterAlt(4);\n\n // Java.g:894:9: '.' 'new' innerCreator\n {\n dbg.location(894,9);\n match(input,29,FOLLOW_29_in_selector5644); if (state.failed) return ;\n dbg.location(894,13);\n match(input,113,FOLLOW_113_in_selector5646); if (state.failed) return ;\n dbg.location(894,19);\n pushFollow(FOLLOW_innerCreator_in_selector5648);\n innerCreator();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n case 5 :\n dbg.enterAlt(5);\n\n // Java.g:895:9: '[' expression ']'\n {\n dbg.location(895,9);\n match(input,48,FOLLOW_48_in_selector5658); if (state.failed) return ;\n dbg.location(895,13);\n pushFollow(FOLLOW_expression_in_selector5660);\n expression();\n\n state._fsp--;\n if (state.failed) return ;\n dbg.location(895,24);\n match(input,49,FOLLOW_49_in_selector5662); if (state.failed) return ;\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 133, selector_StartIndex); }\n }\n dbg.location(896, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"selector\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }", "String getSelector();", "public Selector() {\n }", "public abstract QueryElement addOrLike(String property, Object value);", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorT build();", "private Selector initSelector() throws IOException {\n Selector socketSelector = SelectorProvider.provider().openSelector();\n\n // Create a new non-blocking server socket channel\n this.serverChannel = ServerSocketChannel.open();\n serverChannel.configureBlocking(false);\n\n // Bind the server socket to the specified address and port\n InetSocketAddress isa = new InetSocketAddress(this.myAddress, this.myPort);\n serverChannel.socket().bind(isa);\n\n // Register the server socket channel, indicating an interest in\n // accepting new connections\n serverChannel.register(socketSelector, SelectionKey.OP_ACCEPT);\n\n return socketSelector;\n }", "public SelectorPart(Class<?> type, String psuedoSelector) {\n this.type = type;\n if (!StringUtils.isEmpty(psuedoSelector)) {\n Matcher matcher = NTH_OF_TYPE_PATTERN.matcher(psuedoSelector);\n if (matcher.matches()) {\n index = Integer.parseInt(matcher.group(1));\n }\n }\n }", "private Selector initSelector() throws IOException {\n\t\tfinal Selector socketSelector = SelectorProvider.provider()\n\t\t\t\t.openSelector();\n\n\t\t// Create a new non-blocking server socket channel\n\t\tServerSocketChannel serverChannel = ServerSocketChannel.open();\n\t\tserverChannel.configureBlocking(false);\n\n\t\t// Bind the server socket to the specified address and port\n\t\tfinal InetSocketAddress isa = new InetSocketAddress(this.hostAddress,\n\t\t\t\tthis.port);\n\t\tserverChannel.socket().bind(isa);\n\n\t\t// Register the server socket channel, indicating an interest in\n\t\t// accepting new connections\n\t\tserverChannel.register(socketSelector, SelectionKey.OP_ACCEPT);\n\n\t\treturn socketSelector;\n\t}", "public PrimObject perform(String selector) {\n return perform0(selector);\n }", "Optional<DescriptorDigest> getSelector();", "public INode addOrGetNode(String label);", "public void setSelector(Selector<GenomeType> selector)\n {\n this.selector = selector;\n }", "public interface ISelector {\n\t\tboolean accept(int startOffset, int endOffset);\n\t}", "public ListIngress labelSelector(String labelSelector) {\n put(\"labelSelector\", labelSelector);\n return this;\n }", "public void addPrefetch(String prefetch) {\n if (!selectQuery.getPrefetchesMap().isEmpty() && selectQuery.getPrefetchesMap().containsKey(prefetch)) {\n return;\n }\n\n //default value id disjoint\n selectQuery.addPrefetch(prefetch, PrefetchModel.getPrefetchType(DISJOINT_PREFETCH_SEMANTICS));\n \n // reset the model, since it is immutable\n table.setModel(createTableModel());\n setUpPrefetchBox(table.getColumnModel().getColumn(2));\n \n mediator.fireQueryEvent(new QueryEvent(this, selectQuery));\n }", "public java.lang.String getSelector() {\n return selector_;\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> in(String field, String... values);", "public abstract PredicateExpr getNext();", "public PrimObject superPerform(String selector) {\n return perform0s(selector);\n }", "private Operation selector(Scope scope, Vector queue)\r\n {\r\n Operation root;\r\n\r\n root = new Operation();\r\n\r\n if (nextSymbol == Keyword.DOTSY)\r\n {\r\n lookAhead();\r\n\r\n root.operator = nextSymbol;\r\n\r\n if (nextSymbol == Keyword.IDENTSY)\r\n {\r\n root.name = nextToken;\r\n lookAhead();\r\n root.left = argumentsOpt(scope, null, queue);\r\n }\r\n else if (nextSymbol == Keyword.SUPERSY)\r\n {\r\n matchKeyword(Keyword.SUPERSY);\r\n root.left = arguments(scope, null, queue);\r\n }\r\n else\r\n {\r\n matchKeyword(Keyword.NEWSY);\r\n root.left = innerCreator(scope, queue);\r\n }\r\n }\r\n else\r\n {\r\n root.operator = nextSymbol;\r\n matchKeyword(Keyword.LBRACKETSY);\r\n follower.add(Keyword.RBRACKETSY);\r\n unresolved.add(\"JavaArray\");\r\n root.left = expression(scope, queue);\r\n follower.remove(follower.size() - 1);\r\n matchKeyword(Keyword.RBRACKETSY);\r\n }\r\n\r\n return root;\r\n }", "public ListImage labelSelector(String labelSelector) {\n put(\"labelSelector\", labelSelector);\n return this;\n }", "public DimensionTypeBuilder natural(boolean natural) {\n this.natural = natural;\n return this;\n }", "public void setSelector(final Player selector) {\n this.selector = selector;\n }", "public void setQueryMatchForKey(Object value, String selector, String key);", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> containsAny(String field, String... values);", "public SimpleSelector getSimpleSelector() {\n return simpleSelector;\n }", "public static By alt(String alt)\n\t{\n\t return new FindByAlt(alt);\n\t}", "public void addNode() {\r\n \r\n Nod nod = new Nod(capacitate_noduri);\r\n numar_noduri++;\r\n noduri.add(nod);\r\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> orderAscBy(String field);", "EolItemSelectorExpression getItemSelectorExpression();", "Selector getSelector(final String selector, final String query) throws FittingException;", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> limit(int limit);", "public Selector(String id, String type) {\n this(id, type, \"\");\n }", "public ListFeatureGate labelSelector(String labelSelector) {\n put(\"labelSelector\", labelSelector);\n return this;\n }", "public void addPrefetch(String prefetch) {\n if (!sqlTemplate.getPrefetchesMap().isEmpty() && sqlTemplate.getPrefetchesMap().containsKey(prefetch)) {\n return;\n }\n\n //default value is joint\n sqlTemplate.addPrefetch(prefetch, PrefetchModel.getPrefetchType(SelectQueryPrefetchTab.DISJOINT_BY_ID_PREFETCH_SEMANTICS));\n\n // reset the model, since it is immutable\n table.setModel(createTableModel());\n setUpPrefetchBox(table.getColumnModel().getColumn(2));\n\n mediator.fireQueryEvent(new QueryEvent(this, sqlTemplate));\n }", "public ListConsole labelSelector(String labelSelector) {\n put(\"labelSelector\", labelSelector);\n return this;\n }", "NodeChain createNodeChain();", "public String getSelector() {\n return selector;\n }", "public ListNamespacedComponent labelSelector(String labelSelector) {\n put(\"labelSelector\", labelSelector);\n return this;\n }", "public short getSelectorType() {\n return Selector.SAC_CONDITIONAL_SELECTOR;\n }", "public native final Selection classed(String classNames, boolean add)/*-{\n\t\treturn this.classed(classNames, add);\n\t}-*/;", "public ListClusterOperator labelSelector(String labelSelector) {\n put(\"labelSelector\", labelSelector);\n return this;\n }", "public final void entryRuleSelector() throws RecognitionException {\r\n try {\r\n // InternalGo.g:2555:1: ( ruleSelector EOF )\r\n // InternalGo.g:2556:1: ruleSelector EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getSelectorRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n ruleSelector();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getSelectorRule()); \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 }", "public void addChain(Chain c) {\n nextChain = c;\n }", "public ListNamespacedSubscription labelSelector(String labelSelector) {\n put(\"labelSelector\", labelSelector);\n return this;\n }", "private void recursiveFilterUniversalSelector(Selector selector)\n\t{\n\t\tif(selector instanceof PseudoElementSelectorImpl)\n\t\t{\n\t\t\tString selectorText = selector.toString();\n\t\t\tif(selectorText.contains(\"*\"))\n\t\t\t{\n\t\t\t\tfilterUniversalSelector(selectorText);\n\t\t\t}\n\t\t}\n\t\telse if(selector instanceof SimpleSelector)\n\t\t{\n\t\t\tString selectorText = selector.toString();\n\t\t\tif(selectorText.contains(\"*\") && !selectorText.equals(\"*\") && !selectorText.contains(\"[\"))\n\t\t\t{\n\t\t\t\tfilterUniversalSelector(selectorText);\n\t\t\t}\n\t\t}\n\t\telse if (selector instanceof DescendantSelector)\n\t\t{\n\t\t\tDescendantSelector dSelector = (DescendantSelector)selector;\n\t\t\trecursiveFilterUniversalSelector(dSelector.getSimpleSelector());\n\t\t\trecursiveFilterUniversalSelector(dSelector.getAncestorSelector());\n\t\t}\n\t\telse if (selector instanceof SiblingSelector)\n\t\t{\n\t\t\tSiblingSelector dSelector = (SiblingSelector)selector;\n\t\t\trecursiveFilterUniversalSelector(dSelector.getSelector());\n\t\t\trecursiveFilterUniversalSelector(dSelector.getSiblingSelector());\n\t\t}\n\t}", "public ListClusterVersion labelSelector(String labelSelector) {\n put(\"labelSelector\", labelSelector);\n return this;\n }", "public void setSelectorThread(SelectorThread selectorThread){\n this.selectorThread = selectorThread;\n }", "public SelectorPart(Class<?> type, int index) {\n this.type = type;\n this.index = index;\n }", "public abstract QueryElement addLike(String property, Object value);", "public Builder setSelectorBytes(\n com.google.protobuf.ByteString value) {\n copyOnWrite();\n instance.setSelectorBytes(value);\n return this;\n }", "interface Selector {\n boolean end();\n Object current();\n void next();\n}", "public FindCommand(WordContainsKeywordsPredicate predicate) {\n this.predicate = predicate;\n }", "protected void addingNode( SearchNode n ) { }", "public ListProject labelSelector(String labelSelector) {\n put(\"labelSelector\", labelSelector);\n return this;\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> offset(int offset);", "public DeleteCollectionProxy labelSelector(String labelSelector) {\n put(\"labelSelector\", labelSelector);\n return this;\n }", "public ListOperatorHub labelSelector(String labelSelector) {\n put(\"labelSelector\", labelSelector);\n return this;\n }", "public ListAPIServer labelSelector(String labelSelector) {\n put(\"labelSelector\", labelSelector);\n return this;\n }", "public _ObserverSelectorHolder(Object obs, NSSelector sel) {\n observer = obs;\n selector = sel; \n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER, AdsUtility.SELECTOR_FIELD})\n SelectorBuilderInterface<SelectorT> in(EntityField field, String... values);", "public PropertySelector createChildSelector(Tag... tags) {\n return new PropertySelector(this, tags);\n }", "public void setRuleSelector(String ruleSel)\n {\n this.ruleSelector = ruleSel;\n }", "interface Selector {\n boolean end();\n\n Object current();\n\n void next();\n}", "public DeleteCollectionBuild labelSelector(String labelSelector) {\n put(\"labelSelector\", labelSelector);\n return this;\n }", "public Builder addSubProtocol(String preferred) {\n Objects.requireNonNull(preferred);\n this.subprotocols.add(preferred);\n return this;\n }", "public interface Selector {\n \n \t\t/*\n \t\t * Method is called to pre-select a specific xml type. Pre-selected\n \t\t * elements are then fully parsed and result in calls to full\n \t\t * select method.\n \t\t * @return <code>true</code> is the element should be considered,\n \t\t * <code>false</code> otherwise\n \t\t */\n \t\tpublic boolean select(String entry);\n \n \t\t/*\n \t\t * Method is called with a fully parsed element.\n \t\t * @return <code>true</code> to select this element and terminate the parse,\n \t\t * <code>false</code> otherwise\n \t\t */\n \t\tpublic boolean select(String element, HashMap attributes);\n \t}", "@java.lang.Deprecated\n public io.kubernetes.client.openapi.models.V1LabelSelector getSelector();", "interface Selector2{\n boolean end();\n Object current();\n void next();\n}", "public ConditionalSelectorImpl(SimpleSelector simpleSelector, Condition condition) {\n this.simpleSelector = simpleSelector;\n this.condition = condition;\n }", "public void outASelectorExp(ASelectorExp node) throws TypeException{\n\tPExp exp = node.getExp();\n\tType exptype = typemap.get(exp);\n\texptype = removeAlias(exptype);\n\tTId id = node.getId();\n\tjava.lang.String idname = id.getText();\n\tif(!(exptype instanceof StructType)){\n\t throw new TypeException(\"[line \" + golite.weeder.LineNumber.getLineNumber(node) + \"] Selector on non-struct type.\");\n\t}\n\telse{\n\t StructType tempstruct = (StructType) exptype;\n\t List<Map.Entry<List<String>,Type>> fields = tempstruct.getFields();\n\t for(Map.Entry<List<String>,Type> entry : fields){\n\t\tList<String> fieldname = entry.getKey();\n\t\tType fieldtype = entry.getValue();\n\t\tif (fieldname.contains(idname)) {\n\t\t typemap.put(node,fieldtype);\n\t\t return;\n\t\t}\n\t }\n\t throw new TypeException(\"[line \" + golite.weeder.LineNumber.getLineNumber(node) + \"] Selector on nonexistent field.\");\n\t}\n }" ]
[ "0.5201821", "0.5087096", "0.4787596", "0.47707045", "0.4761584", "0.47242138", "0.4585345", "0.45498875", "0.45498875", "0.45469356", "0.45469356", "0.451579", "0.451378", "0.4471383", "0.4462187", "0.4447696", "0.44445425", "0.44267544", "0.4415103", "0.44034478", "0.44008532", "0.43941802", "0.4385545", "0.4373429", "0.43580413", "0.43447918", "0.4337537", "0.43297586", "0.43194833", "0.43100354", "0.42992145", "0.42932284", "0.42882213", "0.42867044", "0.42279297", "0.42139468", "0.4202313", "0.41756526", "0.4174715", "0.41678557", "0.41594082", "0.4158055", "0.41511053", "0.41498893", "0.4139658", "0.41368783", "0.41343594", "0.41242146", "0.41122925", "0.41004187", "0.40557232", "0.40514782", "0.4047593", "0.40460938", "0.40346923", "0.402488", "0.40195864", "0.40192518", "0.40131775", "0.4004873", "0.4003157", "0.39528814", "0.39363682", "0.3927449", "0.39255083", "0.39214012", "0.3917491", "0.3910626", "0.3910295", "0.39025733", "0.38906568", "0.3890389", "0.3887363", "0.38802084", "0.3874545", "0.38674447", "0.38650906", "0.38643923", "0.38619232", "0.38617516", "0.3855812", "0.38534114", "0.38363478", "0.38355634", "0.38324058", "0.38273087", "0.38182214", "0.38068593", "0.38026395", "0.38001335", "0.37900767", "0.37900665", "0.378316", "0.37804493", "0.3779372", "0.37787133", "0.37774843", "0.37729734", "0.3766112", "0.37628743" ]
0.7034108
0
Returns a Selector with specific index in the list.
public NaturalSelector get(final int a_index) { return (NaturalSelector) m_selectors.get(a_index); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SelectorPart(Class<?> type, int index) {\n this.type = type;\n this.index = index;\n }", "T getElementFromIndex(int index) throws ListException;", "void select(int index) throws InvalidValueException;", "public Path select(int index)\n\t{\n\t\tif(index < 0)\n\t\t{\n\t\t\tthis.select(this.length() + index, this.length());\n\t\t}\n\t\treturn this.select(0, index);\n\t}", "CSSExpression item(int index);", "public SelectorPart(Class<?> type, String psuedoSelector) {\n this.type = type;\n if (!StringUtils.isEmpty(psuedoSelector)) {\n Matcher matcher = NTH_OF_TYPE_PATTERN.matcher(psuedoSelector);\n if (matcher.matches()) {\n index = Integer.parseInt(matcher.group(1));\n }\n }\n }", "public SelectionIndexMatcher(Integer index) {\n this.index = index;\n }", "private Element findByIndex(int index) {\n\t\tElement e = head;\n\t\tfor (int i = 0; i < index; i++) {\n\t\t\te = e.next;\n\t\t}\n\t\treturn e;\n\t}", "public T getByIndex(int index) {\n\n return this.myList[index];\n }", "public DomainElement elementForIndex(int index);", "public Selector getSelector();", "public Selector getSelector();", "@Test\n public void getByIndex(){\n List <String> list = new ArrayList<>();\n list.add(\"hola\");\n list.add(\"tdd\");\n list.add(\"test\");\n\n assertEquals(\"tdd\",list.get(1));\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> offset(int offset);", "public T get(int index) {\n return list.get(index);\n }", "public void selectByindex(By locator,int index) {\n\n\t\tWebElement element = findElementClickable(locator);\n\n try {\n\n Select select=new Select(element);\n select.selectByIndex(index);\n LOGGER.info(\"Step : \"+Thread.currentThread().getStackTrace()[2].getMethodName()+\": Pass\");\n }catch(Exception e)\n {\n LOGGER.error(\"Step : \"+Thread.currentThread().getStackTrace()[2].getMethodName()+\": Fail\");\n //e.printStackTrace();\n throw new NotFoundException(\"Exception \"+ e +\" thrown while selecting the value by index \"+index+\" using locator \"+locator);\n\t\n }\n\n\n }", "public Integer get(int index){\n return list.get(index);\n }", "int getItem(int index);", "public int index();", "public abstract AbstractConfigNode find(List<String> path, int index)\n throws ConfigurationException;", "public static void SelectByIndex(WebElement element,int n)\r\n\t{\r\n\t\tSelect sel= new Select(element);\r\n\t\tsel.selectByIndex(0);\r\n\t}", "Object get(int index);", "Object get(int index);", "int getListSnId(int index);", "Selector getSelector();", "public int get(int index);", "public void selectDropDownUsingIndex(WebElement ele, int index) {\n\t\tSelect dropdown=new Select(ele);\r\n\t\tdropdown.selectByIndex(index);\r\n\t}", "int getSelectedClientIndex();", "public void selectIndex(int idx) {\n getElement().selectIndex(idx);\n }", "Species getSpeciesById(int index);", "String getSelector();", "EolItemSelectorExpression getItemSelectorExpression();", "int index();", "public Node getNodeFromGivenIndex(int index){\n //Index validation\n checkIndex(index);\n\n int i = 0;\n Node current = head;\n while (i<index){\n current = current.next;\n i++;\n }\n return current;\n }", "public void select(String regex, int index) {\n inputter.select(regex, index);\n }", "public T get(int index) {\n return this.list[index];\n }", "public int getPosition(int index);", "public E get(int index)\r\n {\r\n checkValidIndex(index);\r\n return listIterator(index).next();\r\n }", "@Override\n public T get(int index) {\n return list.get(index);\n }", "java.lang.String getList(int index);", "public void SelectIndexById(String Name, int Value) {\n\t\t\r\n\t}", "public T get(int index);", "public T get(int index);", "public T get(int index);", "public Object get(int index);", "public Object get(int index);", "public T get(int aIndex);", "private Node find(int index)\n {\n Node curr = head;\n for(int i = 0; i < index; i++)\n {\n curr = curr.next;\n }\n return curr;\n }", "public static void select_by_index(By locator, int index) throws CheetahException {\n\t\ttry {\n\t\t\twait_for_element(locator);\n\t\t\tSelect element = new Select(CheetahEngine.getDriverInstance().findElement(locator));\n\t\t\tWebElement elem = CheetahEngine.getDriverInstance().findElement(locator);\n\t\t\tdriverUtils.highlightElement(elem);\n\t\t\tdriverUtils.unHighlightElement(elem);\n\t\t\telement.selectByIndex(index);\n\t\t} catch (Exception e) {\n\t\t\tthrow new CheetahException(e);\n\t\t}\n\t}", "String get(int index);", "public int getIndex();", "public int getIndex();", "public int getIndex();", "int getSrcId(int index);", "T get(int index);", "T get(int index);", "T get(int index);", "T get(int index);", "T get(int index);", "PACKET getIndex(int index);", "public void assertSelectedIndex(final String selectLocator, final String indexPattern);", "private Node<T> find(int index) throws IndexException {\n if (!isValid(index)) {\n throw new IndexException();\n }\n\n Node<T> node = head;\n int counter = 0;\n while (node != null && counter < index) {\n node = node.next;\n counter = counter + 1;\n }\n return node;\n }", "@Override\r\n\tpublic T get(int index) {\n\t\treturn this._list.get(index);\r\n\t}", "public void selectFromDropdown_Using_index(WebElement element, int index) {\n\t\ttry {\n\t\t\tSelect select = new Select(element);\n\t\t\tselect.selectByIndex(index);\n\t\t} catch (NoSuchElementException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "Connector getConnector(int index);", "static int getIndexSelected() {\n return indexSelected;\n }", "public E get(int index) { \n return (E)list[index];\n }", "public Category chooseCategory(int index) {\n return categories.get(index-1);\n }", "public String get(int index){\n\t\treturn list.get(index);\n\t}", "public native int getSelectedIndex();", "public abstract int getSourceIndex(int index);", "E get( int index );", "public int getIndex(\n )\n {return index;}", "public T get(int index) {\n return (index >= 0 && index < this.list.size()) ? this.list.get(index) : null;\n }", "@Override\n\tpublic Advertisement selectAdvertisement(Integer index) {\n\t\treturn adman.getAd(index);\n\t}", "public ATExpression base_indexExpression();", "short getFirstOpenIndexInArgument(UUID id);", "Expression getIndexExpr();", "abstract int get(int index);", "public abstract T get(int index);", "Object getElementAt(int index);", "public K select(int k);", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "@Override\n\tpublic CCsVo cselcetOne(int index) throws SQLException {\n\t\treturn sqlSession.selectOne(\"yes.c_selectOne\", index);\n\t}", "public ListNode findIndexNode(int index)\n {\n //should probably hande this by throwing an exception when head == null rather than using the if statement.\n if (head != null)\n {\n int counter = 0;\n ListNode iteratorNode = head;\n do\n { \n if (counter + 1 == index)\n {\n return iteratorNode;\n }\n if (iteratorNode.getNext() != null)\n {\n iteratorNode = iteratorNode.getNext();\n counter++;\n }\n } while(counter + 1 <= size);\n }\n return head;\n }", "public void SelectIndexByName(String Name, int Value) {\n\t\t\r\n\t}", "private Node findNode(int index){\n Node current = start;\n for(int i = 0; i < index; i++){\n current = current.getNext();\n }\n return current;\n }", "SelectorType getSelector();" ]
[ "0.66607636", "0.6266497", "0.6221715", "0.61636066", "0.60168654", "0.5940965", "0.59176314", "0.58283925", "0.5796479", "0.5729198", "0.5657033", "0.5657033", "0.56381375", "0.5567105", "0.55662376", "0.5564385", "0.55467075", "0.55363584", "0.5535097", "0.5516324", "0.5504541", "0.55043", "0.55043", "0.55021465", "0.5496025", "0.5480577", "0.54307824", "0.5407729", "0.53943276", "0.53810656", "0.5376052", "0.53750926", "0.5329922", "0.5329475", "0.5300518", "0.529496", "0.5283415", "0.5276376", "0.52655023", "0.5264859", "0.52615786", "0.52444965", "0.52444965", "0.52444965", "0.52439463", "0.52439463", "0.5238307", "0.5235994", "0.52188903", "0.52145624", "0.5208802", "0.5208802", "0.5208802", "0.51985204", "0.51932657", "0.51932657", "0.51932657", "0.51932657", "0.51932657", "0.51803625", "0.51644915", "0.5163187", "0.5154666", "0.5152267", "0.51511574", "0.5140509", "0.5130959", "0.51292145", "0.5119259", "0.5115993", "0.5115191", "0.51121634", "0.51023614", "0.5098876", "0.5075444", "0.5073066", "0.50588596", "0.5050172", "0.5049943", "0.50478154", "0.5047617", "0.5046775", "0.504359", "0.504359", "0.504359", "0.504359", "0.504359", "0.504359", "0.504359", "0.504359", "0.504359", "0.504359", "0.504359", "0.504359", "0.504359", "0.5035846", "0.50317144", "0.5031667", "0.5029349", "0.50261027" ]
0.6625361
1
Clears all registered selectors.
public void clear() { m_selectors.clear(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void clearSelector() {\n \n selector_ = getDefaultInstance().getSelector();\n }", "public void clear() {\n\t\thighlightsByToken.clear();\n\t}", "public void clearAll();", "public void clearAll();", "void clearHandlers();", "@Override\n public void clear() {\n elements.clear();\n indexByElement.clear();\n }", "public void clear()\n {\n for (SelectableGraphElement element : elements) {\n element.setSelected(false);\n }\n elements.clear();\n }", "@Override\n\tpublic void clearAll() {\n\t\t\n\t}", "@Override\r\n\tpublic void clearAll() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void clearAll() {\n\t\t\r\n\t}", "void clearAll();", "void clearAll();", "public Builder clearSelector() {\n copyOnWrite();\n instance.clearSelector();\n return this;\n }", "public abstract void clearAllSelections();", "public void clear() {\n\t\tconfigurationToButtonMap.clear();\n\t\tselected.clear();\n\t\tsuper.removeAll();\n\t}", "@Override\n public void clear()\n {\n explore(null);\n }", "public void emptySelectionLists() {\n\t\tArrayList selectionsCopy = new ArrayList();\n\t\tselectionsCopy.addAll(selections);\n\t\tIterator it = selectionsCopy.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tXsdNode node = (XsdNode) it.next();\n\t\t\tunselectNode(node);\n\t\t}\n\t\tlineNode = null;\n\t\telementFilters = new HashMap();\n\t}", "public void clear() {\n counters.clear();\n }", "public Builder clearAll() {\n if (allBuilder_ == null) {\n all_ = null;\n onChanged();\n } else {\n all_ = null;\n allBuilder_ = null;\n }\n\n return this;\n }", "public Builder clearAll() {\n if (allBuilder_ == null) {\n all_ = null;\n onChanged();\n } else {\n all_ = null;\n allBuilder_ = null;\n }\n\n return this;\n }", "public void clear()\t{nodes.clear(); allLinks.clear();}", "public void clearAllSelected() {\n getSelectHelper().clearAllSelected();\n }", "public void clear()\n {\n if (nodes != null)\n {\n detachNodes(nodes);\n nodes = null;\n namedNodes = null;\n }\n }", "void clearEventsDetectors();", "public Builder clearDelegatees() {\n delegatees_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n return this;\n }", "public void clearColors() {\r\n colors.clear();\r\n }", "public void clearAll() {\n\n\t\t// Removing the graphics from the layer\n\t\trouteLayer.removeAll();\n\t\t// hiddenSegmentsLayer.removeAll();\n\t\tmMapViewHelper.removeAllGraphics();\n\t\tmResults = null;\n\n\t}", "void clearActions();", "public void clear() {\n doClear();\n }", "public void clear () {\n\t\treset();\n\t}", "public void clearAll()\n\t{\n\t\t// add code to clear all names from the graphArray \n\t\t// and call repaint() to update the graph\n\t}", "protected abstract void clearAll();", "public void clear()\n {\n nodes.clear();\n }", "public void clear()\n {\n for (final Rule rule : this.rules)\n {\n rule.clear();\n }\n\n this.rules.clear();\n }", "public static void clear() {\r\n for (ConfigurationOption<?> opt : OPTIONS.values()) {\r\n opt.clear();\r\n }\r\n }", "public void clearAllWatchers() {\n\t\tif (registeredWatchers.size() > 0) {\n\t\t\tboolean isRemoved = false;\n\t\t\tLOG.info(\"About to unregister all watchers.\");\n\t\t\tfor (WatchKey watchKey : registeredWatchers.keySet()) {\n\t\t\t\ttry {\n\t\t\t\t\tisRemoved = notifier.removeWatcher(watchKey);\n\t\t\t\t\tif (isRemoved) {\n\t\t\t\t\t\tregisteredWatchers.remove(watchKey);\n\t\t\t\t\t}\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// Let other watchers be cleared off\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (registeredWatchers.size() > 0) {\n\t\t\t\tLOG.info(\"Failed to clear all the watchers. Some watchers couldn't be unregistered.\");\n\t\t\t}\n\t\t} else {\n\t\t\tLOG.warn(\"Failed to clear all the watchers as no watchers registered.\");\n\t\t}\n\t}", "public void clear() {\n\t\tlists.clear();\n\t}", "public void clearAll()\n {\n textureMap.clear();\n componentMap.clear();\n }", "public final void resetAll() {\r\n this._queue = null;\r\n this._delayed = null;\r\n }", "public void clear() {\n lists = new TernarySearchTree<>();\n }", "public void clear() {\r\n init();\r\n }", "public void resetAll() {\n reset(getAll());\n }", "void clear() {\n\t\t\tfor (int i = 0 ; i < nodes.length; i++) {\n\t\t\t\tnodes[i].clear((byte) 1);\n\t\t\t}\n\t\t\tsize = 0;\n\t\t}", "public void clear() {\n doClear( false );\n }", "public void reset() {\n events.clear();\n }", "public void clearActions() {\n internalGroup.clearActions();\n }", "public void clear()\n {\n pages.stream().forEach((page) -> {\n page.clearCache();\n });\n\n pages.clear();\n listeners.clear();\n occupiedEntries.clear();\n }", "public void clear() {\n\t\tshapes.clear();\n\t\tgroupedShapes.clear();\n\t\tthis.repaint();\n\t\tcounter = 0;\n\t\tnotifyObservers();\n\t}", "public static void clearRegistry() {\r\n\t\tINTERPRETERS.clear();\r\n\t}", "@Override\r\n\tpublic void clearEventHandlers() {\n\t\t\r\n\t}", "public void clear() {\r\n\t\tthis.document = null;\r\n\t\tthis.elements.clear();\r\n\t}", "public void clear()\n {\n normalImports.clear();\n wildcardImports.clear();\n }", "public void clearAll() {\n rangeMap.clear();\n }", "public void clear() {\n\t\tnodeList.clear();\n\t}", "public void clear() {\r\n\t\tif (this.strings != null) {\r\n\t\t\tthis.strings.clear();\r\n\t\t\tthis.strings = null;\r\n\t\t}\r\n\t}", "public void clear(){\n\t\tclear(0);\n\t}", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "private void clear() {\n }", "public void clear()\n\t{\n\t if (logger.isTraceEnabled())\n\t logger.trace(\"clear() called for browser \" + this);\n\n\t // clear all internal members\n\t clearInternal();\n\t \n\t // and increment change counter\n\t incrementChangeCounter();\n\t}", "public void clear() {\n }", "public void removeAllOptions() {\n\t\toptGroup.getOptions().clear();\n\t\tsetText(\"\");\n\t}", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();" ]
[ "0.71991116", "0.66898483", "0.6574645", "0.6574645", "0.6509738", "0.6506761", "0.6464893", "0.6454002", "0.64529085", "0.64529085", "0.6427103", "0.6427103", "0.6381398", "0.63182926", "0.6308831", "0.6220391", "0.61942303", "0.618255", "0.6179784", "0.6179784", "0.6174792", "0.6157829", "0.6142675", "0.6138674", "0.6105144", "0.6100266", "0.60920876", "0.6091452", "0.6091356", "0.6061857", "0.60546404", "0.60406804", "0.603185", "0.60101676", "0.6003066", "0.59725577", "0.59649736", "0.59462833", "0.59433585", "0.5940106", "0.5927077", "0.59264696", "0.5912948", "0.5903737", "0.58870614", "0.5886213", "0.58825356", "0.5879703", "0.5875257", "0.5875026", "0.5871019", "0.586669", "0.5863739", "0.58598614", "0.58552045", "0.5849034", "0.5848341", "0.5848341", "0.5848341", "0.5848341", "0.5848341", "0.5848341", "0.5848341", "0.5848341", "0.5848341", "0.5848341", "0.5848341", "0.5848341", "0.5848026", "0.5847689", "0.58406335", "0.58371884", "0.58322966", "0.58322966", "0.58322966", "0.58322966", "0.58322966", "0.58322966", "0.58322966", "0.58322966", "0.58322966", "0.58322966", "0.58322966", "0.58322966", "0.58322966", "0.58322966", "0.58322966", "0.58322966", "0.58322966", "0.58322966", "0.58322966", "0.58322966", "0.58322966", "0.58322966", "0.58322966", "0.58322966", "0.58322966", "0.58322966", "0.58322966", "0.58322966" ]
0.85824937
0
The compareTomethod. Here we simply compare the class names of the contained selectors as INaturalSelector does not contain interface Comparable.
public int compareTo(Object a_other) { if (a_other == null) { return 1; } else { ChainOfSelectors other = (ChainOfSelectors) a_other; int size = m_selectors.size(); if (other.m_selectors.size() < size) { return 1; } if (other.m_selectors.size() > m_selectors.size()) { return -1; } for (int i = 0; i < size; i++) { // Normally we would do the following: // INaturalSelector selector = (INaturalSelector)m_selectors.get(i); // INaturalSelector selectorOther = (INaturalSelector)other.m_selectors.get(i); // int result = selector.compareTo(selectorOther); // But INaturalSelector does not support Cmparable, so: String name = m_selectors.get(i).getClass().getName(); String nameOther = other.m_selectors.get(i).getClass().getName(); int result = name.compareTo(nameOther); if (result != 0) { return result; } } } return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic int compareTo(ClassificationLabel cmp) \n\t{\n\t\tif(this.label==cmp.getLabel()){\n\t\t\treturn 0;\n\t\t}\n\t\telse if(this.label>cmp.getLabel()){\n\t\t\treturn 1;\n\t\t}\n\t\telse\n\t\t\treturn -1;\n\t\t\n\t}", "@Override\r\n public int compare(Element e1, Element e2) {\r\n\t\t//FIXME !!!!\r\n\t\treturn -1;\r\n//\t\t// first try to compare by type:\r\n//\t\tint result = compareType(e1, e2);\r\n//\t\tif(result != 0)\r\n//\t\t\treturn result;\r\n//\t\t\r\n//\t\t// results with matching case before results with different case then searched word\r\n//\t\tresult = compareCase(e1, e2);\r\n//\t\tif(result != 0) {\r\n//\t\t\treturn result;\r\n//\t\t}\r\n//\t\t// when they both do/don't match case, compare by label:\r\n//\t\tresult = compareLabel(e1, e2);\r\n//\t\tif(result != 0) {\r\n//\t\t\treturn result;\r\n//\t\t}\r\n//\r\n//\t\t// if the same label as well, compare by hashcode\r\n//\t\tresult = e1.compareTo(e2);\r\n//\t\treturn result;\r\n\r\n\t}", "@Override\n public int compareTo(Object o)\n {\n SubscriptionInfo other = (SubscriptionInfo) o;\n int result;\n\n if ((result = compareStrings(other.selector, selector)) != 0)\n return result;\n else if ((result = compareStrings(other.subtopic, subtopic)) != 0)\n return result;\n\n return 0;\n }", "@SuppressWarnings({\"rawtypes\",\"unchecked\"}) // for cast to Comparable\n static int compareComparables(Class<?> kc, Object x, Object k) {\n return (k == null || k.getClass() != kc ? 0 :\n ((Comparable)x).compareTo(k));\n }", "@Override\n\tpublic int compareTo(Cat3 o) {\n\t\t\n\t\treturn this.getName().compareToIgnoreCase(o.getName());\n\t}", "public int compareTo (Tags cat2) {\n return tags.toString().compareToIgnoreCase (cat2.toString());\n }", "@Override\r\n\tpublic int compareTo(final SlotRequirements other) {\n\t\tfinal int classNameCompared = this.getClass().getCanonicalName().compareTo(other.getClass().getCanonicalName());\r\n\t\tif (classNameCompared != 0) {\r\n\t\t\treturn classNameCompared;\r\n\t\t}\r\n\r\n\t\treturn featureCondition.compareTo(other.featureCondition);\r\n\t}", "@Override\n public int compareTo(Name other) {\n int result = Boolean.compare(isQuarkusClassName(), other.isQuarkusClassName());\n if (result != 0) {\n return result;\n }\n return name.compareTo(other.name);\n }", "@Override\r\n\tint compareTo( IToon t );", "@Override\r\n public int compareTo(BridgeInterface other) {\n String modifiedName = name.substring(bridgePrefix.length(), name.length());\r\n if (modifiedName.contains(numberDivider)) {\r\n modifiedName = modifiedName.substring(0, modifiedName.indexOf(numberDivider));\r\n }\r\n String otherModifiedName =\r\n other.getName().substring(bridgePrefix.length(), other.getName().length());\r\n if (otherModifiedName.contains(numberDivider)) {\r\n otherModifiedName = otherModifiedName.substring(0, otherModifiedName.indexOf(numberDivider));\r\n }\r\n // Compare the main numbers, if these don't match then we already know which bridge is bigger\r\n int mainNumber = Integer.valueOf(modifiedName);\r\n int otherMainNumber = Integer.valueOf(otherModifiedName);\r\n if (mainNumber > otherMainNumber) {\r\n return 1;\r\n }\r\n if (mainNumber < otherMainNumber) {\r\n return -1;\r\n }\r\n\r\n // Now we know that the main numbers are equal, so we need to parse the suffixes\r\n double suffix = 0.0;\r\n double otherSuffix = 0.0;\r\n\r\n if (name.substring(name.indexOf(numberDivider) + numberDivider.length()).contains(\"/\")) {\r\n // This is a fraction, and needs to be converted to an integer\r\n String shortenedName = name.substring(bridgePrefix.length());\r\n String numeratorString =\r\n shortenedName.substring(shortenedName.indexOf(numberDivider) + numberDivider.length(),\r\n shortenedName.indexOf(\"/\"));\r\n String denominatorString = shortenedName.substring(shortenedName.indexOf(\"/\") + 1);\r\n suffix = Double.parseDouble(numeratorString) / Double.parseDouble(denominatorString);\r\n } else {\r\n // This is either a letter or a decimal\r\n String shortenedName = name.substring(bridgePrefix.length());\r\n String suffixString = shortenedName\r\n .substring(shortenedName.indexOf(numberDivider) + numberDivider.length()).trim();\r\n // First check if it's a decimal, convert this into a double\r\n for (int i = 0; i < 10; i++) {\r\n if (suffixString.equals(\"\" + i)) {\r\n suffix = Double.parseDouble(suffixString) / 10;\r\n }\r\n }\r\n char suffixChar = suffixString.charAt(0);\r\n // If the char is in one of these ranges, it's a letter, and should be converted to the\r\n // associated number (A = 1 or a = 1)\r\n if (suffixChar >= 65 && suffixChar <= 90) {\r\n suffix = (double) suffixChar - 64;\r\n }\r\n if (suffixChar >= 97 && suffixChar <= 122) {\r\n suffix = (double) suffixChar - 96;\r\n }\r\n }\r\n // Do the same thing for the other bridge\r\n if (other.getName().substring(other.getName().indexOf(numberDivider) + numberDivider.length())\r\n .contains(\"/\")) {\r\n String shortenedName = other.getName().substring(bridgePrefix.length());\r\n String numeratorString =\r\n shortenedName.substring(shortenedName.indexOf(numberDivider) + numberDivider.length(),\r\n shortenedName.indexOf(\"/\"));\r\n String denominatorString = shortenedName.substring(shortenedName.indexOf(\"/\") + 1);\r\n otherSuffix = Double.parseDouble(numeratorString) / Double.parseDouble(denominatorString);\r\n } else {\r\n String shortenedName = other.getName().substring(bridgePrefix.length());\r\n String suffixString = shortenedName\r\n .substring(shortenedName.indexOf(numberDivider) + numberDivider.length()).trim();\r\n for (int i = 0; i < 10; i++) {\r\n if (suffixString.equals(\"\" + i)) {\r\n otherSuffix = Double.parseDouble(suffixString) / 10;\r\n }\r\n }\r\n char suffixChar = suffixString.charAt(0);\r\n if (suffixChar >= 65 && suffixChar <= 90) {\r\n otherSuffix = (double) suffixChar - 64;\r\n }\r\n if (suffixChar >= 97 && suffixChar <= 122) {\r\n otherSuffix = (double) suffixChar - 96;\r\n }\r\n // Now all of the suffixes have been converted to values, so they can be compared\r\n }\r\n if (suffix > otherSuffix) {\r\n return 1;\r\n }\r\n if (suffix < otherSuffix) {\r\n return -1;\r\n }\r\n return 0;\r\n }", "@Override\n\tpublic int compareTo(CompType o) {\n\t\treturn (i<o.i ? -1 : (i == o.i ? 0 : 1));\n\t}", "@Override\r\n\tpublic int compareTo(Object o) {\n\t\tConfiguration C= (Configuration) o;\r\n\t\treturn Evaluation()-C.Evaluation();\r\n\t}", "@Override\n public int compare(String vertexClassName1, String vertexClassName2)\n {\n return VertexClass.compare(vertexClassName1, vertexClassName2);\n }", "@Override\r\n public int compareTo(final Object obj) {\r\n if (!(obj instanceof TargetBeanForLists)) {\r\n throw new ClassCastException(\"obj1 is not a TargetBean! \");\r\n }\r\n String curCommonName = ((TargetBeanForLists) obj).getCommonName();\r\n String objCommonName = this.getCommonName();\r\n // Instance of Leeds commonName\r\n if (curCommonName.indexOf(\"UL\") >= 0 && objCommonName.indexOf(\"UL\") >= 0) {\r\n curCommonName =\r\n curCommonName.substring(curCommonName.indexOf(\"UL\") + 2, curCommonName.indexOf(\"UL\") + 6);\r\n objCommonName =\r\n objCommonName.substring(objCommonName.indexOf(\"UL\") + 2, objCommonName.indexOf(\"UL\") + 6);\r\n Integer curInt = null;\r\n Integer objInt = null;\r\n try {\r\n curInt = Integer.valueOf(curCommonName);\r\n objInt = Integer.valueOf(objCommonName);\r\n } catch (final NumberFormatException e) {\r\n // Than assume they are equal\r\n curInt = 0;\r\n objInt = 0;\r\n }\r\n return objInt.compareTo(curInt);\r\n }\r\n return curCommonName.compareTo(objCommonName);\r\n }", "public abstract void compare();", "public int compareTo(Object coffee1, Object coffee2){\r\n\r\n System.out.println(\"compareTo being called on \" + coffee1 + \" and \" + coffee2);\r\n\r\n if (coffee1.price - coffee2.price < 0){\r\n return -1;\r\n }\r\n else if (coffee1.price == coffee2.price){\r\n if (length(coffee1.company) < length(coffee2.company)){\r\n return -1\r\n }\r\n else if (coffee1.company == coffee2.company){\r\n if (length(coffee1.color)) < length(coffee2.color){\r\n return -1\r\n }\r\n else if (coffee1.color == coffee2.color){\r\n return 0\r\n }\r\n else{\r\n return 1\r\n }\r\n }\r\n else{\r\n return 1\r\n }\r\n }\r\n else{\r\n return 1;\r\n }\r\n}", "@Override\n\t\t public int compare(PathObject lhs, PathObject rhs) {\n\t\t return Double.compare(lhs.getClassProbability(), rhs.getClassProbability()); // Use double compare to safely handle NaN and Infinity\n\t\t }", "@Override\n\t\t public int compare(PathObject lhs, PathObject rhs) {\n\t\t return Double.compare(lhs.getClassProbability(), rhs.getClassProbability()); // Use double compare to safely handle NaN and Infinity\n\t\t }", "private int Compare(ResultsClass lhs, ResultsClass rhs) {\n if (lhs.bodyPart > rhs.bodyPart) {\n return 1;\n } else if (lhs.bodyPart > rhs.bodyPart) {\n return -1;\n } else {\n return 0;\n }\n }", "public int compareTo(myclass p) {\n //deal with name 'all'\n if(this.getName().compareTo(\"all\")==0 && p.getName().compareTo(\"all\")!=0)\n return 1;\n else if (this.getName().compareTo(\"all\")!=0 && p.getName().compareTo(\"all\")==0)\n return -1;\n //deal with filename\n else if (this.getName().compareTo(p.getName()) < 0) {\n return -1;\n } else if (this.getName().compareTo(p.getName()) > 0) {\n return 1;}\n else{\n //deal with value\n if (this.x > p.x) {\n return -1;\n } else if (this.x < p.x) {\n return 1;\n } else {\n //deal with word\n if (this.getY().compareTo(p.getY()) < 0) {\n return -1;\n } else if (this.getY().compareTo(p.getY()) > 0) {\n return 1;\n } else {\n return 0;\n }\n\n }}\n }", "@Override\n\t\tpublic int compareTo(Predicate o) {\n\t\t\tString t = o.name;\n\t\t\tif (this.name.equals(t)) {\n\t\t\t\tArrayList<String> y = o.arguements;\n\t\t\t\tfor (int i = 0; i < this.numberOfArguements; i++) {\n\t\t\t\t\tif (!y.get(i).equals(this.arguements.get(i))) {\n\t\t\t\t\t\treturn this.arguements.get(i).compareTo(y.get(i));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\treturn this.name.compareTo(t);\n\t\t\t}\n\t\t\treturn 0;\n\t\t}", "@Override\r\n\tpublic int compare(WritableComparable a, WritableComparable b) {\n\t\tClassInfoBean classInfoBean1 = (ClassInfoBean) a;\r\n\t\tClassInfoBean classInfoBean2 = (ClassInfoBean) b;\r\n//\t\tif (classInfoBean1.getClassName().equals(classInfoBean2.getClassName())) {\r\n//\t\t\treturn 0;\r\n//\t\t}\r\n//\t\treturn 1;\r\n\t\treturn classInfoBean1.getClassName().compareTo(classInfoBean2.getClassName());\r\n\t}", "@Override\n public int compareTo(JBurgPatternMatcher other)\n {\n Vector<PathElement> this_path = this.generateAccessPath();\n Vector<PathElement> other_path = other.generateAccessPath();\n \n int result = this_path.size() - other_path.size();\n \n for ( int i = 0; i < this_path.size() && result == 0; i++ )\n result = this_path.elementAt(i).compareTo(other_path.elementAt(i));\n\n return result;\n }", "public int compare(IComparableContribution c1, IComparableContribution c2) {\n int cat1 = category(c1);\n int cat2 = category(c2);\n if (cat1 != cat2) {\n return cat1 - cat2;\n }\n String name1 = c1.getLabel();\n String name2 = c2.getLabel();\n if (name1 == null) {\n //$NON-NLS-1$\n name1 = \"\";\n }\n if (name2 == null) {\n //$NON-NLS-1$\n name2 = \"\";\n }\n // use the comparator to compare the strings\n return Policy.getComparator().compare(name1, name2);\n }", "@Override\n public int compareTo(VersionPair o) {\n return this.elasticsearch.compareTo(o.elasticsearch);\n }", "@Override\n public int compareTo(AutocompleteObject o) {\n return Double.compare(o.similarity, similarity);\n }", "@Override\r\n\t\t\t\tpublic int compare(Comparendo o1, Comparendo o2) \r\n\t\t\t\t{\n\t\t\t\t\treturn o1.codigoInfraccion.compareTo(o2.codigoInfraccion);\r\n\t\t\t\t}", "public static LabelMatch compareLabels(ControlLabel generated,\r\n\t\t\t\t\t ControlLabel accepted) {\r\n if (accepted instanceof TrackLabel) {\r\n if (generated == accepted) {\r\n\treturn equality;\r\n } else {\r\n\treturn disjoint;\r\n }\r\n } else if (generated instanceof TrackLabel) {\r\n return disjoint;\r\n } else if (accepted instanceof UnknownLabel) {\r\n return included;\r\n } else if (accepted instanceof AnchoredBreakLabel) {\r\n if (generated instanceof NamedBreakLabel) {\r\n\tIRNode node = ((AnchoredBreakLabel)accepted).stmtNode;\r\n\tIRNode breakNode = ((NamedBreakLabel)generated).breakNode;\r\n\tString name = LabeledBreakStatement.getId(breakNode);\r\n\tif (name.equals(LabeledStatement.getStatementLabel(node))) {\r\n\t // Assume no duplicate names.\r\n\t return equality;\r\n\t} else {\r\n\t return disjoint;\r\n\t}\r\n } else if (generated instanceof BreakLabel) {\r\n\t// there may be intervening nodes,\r\n\t// but we can't tell\r\n\treturn included;\r\n } else {\r\n\t// no match!\r\n\treturn disjoint;\r\n }\r\n } else if (accepted instanceof NamedBreakLabel) {\r\n // for labeled statements only\r\n if (generated instanceof NamedBreakLabel) {\r\n\tIRNode node = ((NamedBreakLabel)accepted).breakNode;\r\n\tIRNode breakNode = ((NamedBreakLabel)generated).breakNode;\r\n\tString name = LabeledBreakStatement.getId(breakNode);\r\n\tif (name.equals(LabeledStatement.getLabel(node))) {\r\n\t // Assume no duplicate names.\r\n\t return equality;\r\n\t} else {\r\n\t return disjoint;\r\n\t}\r\n } else {\r\n\treturn disjoint;\r\n }\r\n } else if (accepted instanceof AnchoredContinueLabel) {\r\n if (generated instanceof NamedContinueLabel) {\r\n\tIRNode node = ((AnchoredContinueLabel)accepted).stmtNode;\r\n\tIRNode continueNode = ((NamedContinueLabel)generated).continueNode;\r\n\tString name = LabeledContinueStatement.getId(continueNode);\r\n\tif (name.equals(LabeledStatement.getStatementLabel(node))) {\r\n\t // Assume no duplicate names.\r\n\t return equality;\r\n\t} else {\r\n\t return disjoint;\r\n\t}\r\n } else if (generated instanceof ContinueLabel) {\r\n\t// there may be intervening nodes,\r\n\t// but we can't tell\r\n\t// (COULD BE BETTER)\r\n\treturn included;\r\n } else {\r\n\t// no match!\r\n\treturn disjoint;\r\n }\r\n } else if (accepted instanceof ReturnLabel) {\r\n if (generated instanceof ReturnLabel) {\r\n\treturn equality;\r\n } else {\r\n\treturn disjoint;\r\n }\r\n } else if (accepted instanceof CaughtExceptionLabel) {\r\n if (generated instanceof ExceptionLabel) {\r\n\t// be stupid for now:\r\n\treturn overlaps;\r\n } else {\r\n\treturn disjoint;\r\n }\r\n } else {\r\n // unknown:\r\n return overlaps;\r\n }\r\n }", "@Override\n public int compareTo(AComponent comp) {\n int comparedPriority = comp.getPriority();\n return priority - comparedPriority;\n }", "public interface StartTreeNodeComparator\n{\n public boolean compare (StartTreeNode node);\n}", "public int compareTo(Document o2) {\n return this.format.getClass().getSimpleName().compareTo(o2.getFormat().getClass().getSimpleName());\n }", "@Override\r\n\t\t\t\t\tpublic int compare(String[] arg0, String[] arg1) {\n\t\t\t\t\t\treturn arg0[2].compareTo(arg1[2]);\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic int compare(String[] arg0, String[] arg1) {\n\t\t\t\t\t\treturn arg0[2].compareTo(arg1[2]);\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic int compare(String[] arg0, String[] arg1) {\n\t\t\t\t\t\treturn arg0[2].compareTo(arg1[2]);\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic int compare(String[] arg0, String[] arg1) {\n\t\t\t\t\t\treturn arg0[1].compareTo(arg1[1]);\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic int compare(String[] arg0, String[] arg1) {\n\t\t\t\t\t\treturn arg0[1].compareTo(arg1[1]);\r\n\t\t\t\t\t}", "@Override\r\npublic int compareTo(Object o) {\n\treturn 0;\r\n}", "@Override\n public int compareTo(Snippet o) {\n return this.name.compareTo(o.name);\n }", "@Override public int compare(final IdentifiedObject o1, final IdentifiedObject o2) {\n Collection<Identifier> a1 = o1.getIdentifiers();\n Collection<Identifier> a2 = o2.getIdentifiers();\n if (a1 == null) a1 = Collections.emptySet();\n if (a2 == null) a2 = Collections.emptySet();\n final Iterator<Identifier> i1 = a1.iterator();\n final Iterator<Identifier> i2 = a2.iterator();\n boolean n1, n2;\n while ((n1 = i1.hasNext()) & (n2 = i2.hasNext())) { // NOSONAR: Really '&', not '&&'\n final int c = IdentifiedObjects.doCompare(i1.next().getCode(), i2.next().getCode());\n if (c != 0) {\n return c;\n }\n }\n if (n1) return +1;\n if (n2) return -1;\n return 0;\n }", "@Override\n public int compare(String lhs, String rhs) {\n return lhs.compareTo(rhs);\n }", "@Override\r\n\tpublic int compare(GraphNode<T> o1, GraphNode<T> o2) {\n\t\treturn o1.getName().compareTo(o2.getName());\r\n\t}", "@Override\n\t\n\tpublic int compareTo(Gato gat) {\n\t\t return nombre.compareTo(gat.getNombre());\n\t}", "@Override\r\n\t\t\t\t\tpublic int compare(String[] arg0, String[] arg1) {\n\t\t\t\t\t\treturn arg0[0].compareTo(arg1[0]);\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic int compare(String[] arg0, String[] arg1) {\n\t\t\t\t\t\treturn arg0[0].compareTo(arg1[0]);\r\n\t\t\t\t\t}", "@Override\n\tpublic int compareTo(Osoba _arg0) {\n\t\treturn (new String(nazwisko_ + imie_).compareToIgnoreCase(new String( _arg0.nazwisko_ + _arg0.imie_)));\n\t}", "@Override\r\n\t public int compareTo(Geltokia o) {\r\n if (disTerm < o.disTerm) {\r\n return -1;\r\n }\r\n if (disTerm > o.disTerm) {\r\n return 1;\r\n }\r\n return 0;\r\n }", "@Override\n public int compareTo(MetalNode arg0) {\n\n int iResult=0;\n\n if (this.getDate()==arg0.getDate())\n {\n iResult=0;\n }\n else if (this.getDate()>arg0.getDate())\n {\n iResult=1;\n }\n else if (this.getDate()<arg0.getDate())\n {\n iResult=-1;\n }\n\n\n return iResult;\n }", "@Override\n default int compareTo(@NotNull PowreedCommand o) {\n return this.getName().compareTo(o.getName());\n }", "public int compareTo(JType o) {\n final String rhs = o.fullName();\n boolean p = fullName().startsWith(\"java\");\n boolean q = rhs.startsWith(\"java\");\n\n if( p && !q ) {\n return -1;\n } else if( !p && q ) {\n return 1;\n } else {\n return fullName().compareTo(rhs);\n }\n }", "@Override\r\n\t\t\t\t\tpublic int compare(String[] arg0, String[] arg1) {\n\t\t\t\t\t\treturn arg0[3].compareTo(arg1[3]);\r\n\t\t\t\t\t}", "@Override\r\n\tpublic int compare(Object o1, Object o2) \r\n\t{\n\t\tProblems s1=(Problems)o1; \r\n\t\tProblems s2=(Problems)o2; \r\n\t\treturn s1.name.compareTo(s2.name); \r\n\t}", "public boolean cmp(Type other){\n if (this.dimension != other.dimension) return false;\n if (this.type != type.CLASS && this.type.equals(other.type)) return true;\n// System.out.println(\"this: \" + this.type);\n// System.out.println(\"other: \" + other.type);\n if (this.type == type.CLASS && other.type == type.CLASS && this.class_id.equals(other.class_id)) return true;\n return false;\n }", "public int compareTo(DiscreteActionInterface c) {\n\t\treturn this.currentAction.compareTo(c);\n\t}", "public int compareTo(Object profs) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int compare(Object arg0, Object arg1) {\n\t\treturn arg0.toString().compareTo(arg1.toString());\n\t}", "@Override\n\t\t\t\t\t\tpublic int compare(SearchItem lhs, SearchItem rhs) {\n\t\t\t\t\t\t\tString first = lhs.get_text().toString();\n\t\t\t\t\t\t\tString sec = rhs.get_text().toString();\n\n\t\t\t\t\t\t\tint i1 = first.indexOf(constraint.toString());\n\t\t\t\t\t\t\tint i2 = sec.indexOf(constraint.toString());\n\n\t\t\t\t\t\t\treturn (i1 < i2) ? -1 : (i1 == i2) ? 0 : 1;\n\t\t\t\t\t\t}", "@Override\r\n\tpublic int compare(K o1, K o2) {\n\t\t\r\n\t\treturn ((Comparable<K>) o1).compareTo(o2) ;\r\n\t}", "public int compareTo(Term that){\n \treturn this.query.compareTo(that.query);\n }", "@Override\r\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\r\n\t}", "static Class<?> comparableClassFor(Object x) {\n if (x instanceof Comparable) {\n Class<?> c; Type[] ts, as; Type t; ParameterizedType p;\n if ((c = x.getClass()) == String.class) // bypass checks\n return c;\n if ((ts = c.getGenericInterfaces()) != null) {\n for (int i = 0; i < ts.length; ++i) {\n if (((t = ts[i]) instanceof ParameterizedType) &&\n ((p = (ParameterizedType)t).getRawType() ==\n Comparable.class) &&\n (as = p.getActualTypeArguments()) != null &&\n as.length == 1 && as[0] == c) // type arg is c\n return c;\n }\n }\n }\n return null;\n }", "@Test\n public void testCompareTo() {\n System.out.println(\"compareTo\");\n Conductor o = null;\n Conductor instance = null;\n int expResult = 0;\n int result = instance.compareTo(o);\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 }", "@Override\n\t\tpublic int compareTo(Object arg0) {\n\t\t\treturn 0;\n\t\t}", "@Override\n @ZenCodeType.Method\n @ZenCodeType.Operator(ZenCodeType.OperatorType.COMPARE)\n default int compareTo(@NotNull IData other) {\n \n return notSupportedOperator(OperatorType.COMPARE);\n }", "@Override\n\tpublic int compareTo(Term o) {\n\t\treturn this.query.compareTo(o.query);\n\t}", "@Override\r\n\tpublic int compareTo(Object arg0) {\n\t\treturn 0;\r\n\t}", "@Override\r\n\t\t\t\t\tpublic int compare(String[] o1, String[] o2) {\n\t\t\t\t\t\treturn o1[0].compareTo(o2[0]);\r\n\t\t\t\t\t}", "@Override\n public int compare(String o1, String o2) {\n int res = String.CASE_INSENSITIVE_ORDER.compare(o1, o2);\n if (res == 0) {\n res = o1.compareTo(o2);\n }\n return res;\n }", "@Override\r\n\t\tpublic int compareTo(Object o) {\n\t\t\treturn 0;\r\n\t\t}", "int compareTo(DocAttr da);", "public int compare(Object obj) {\n\t\t\tint score = 0;\n\t\t\t\n\t\t\tfor(int c = 0; c < classes.size(); c++){\n\t\t\t\t\n\t\t\t\tif(obj.classes.get(c).center == this.classes.get(c).center\n\t\t\t\t\t\t&& !featureClasses.get(c).ignore()){\n\t\t\t\t\t\n\t\t\t\t\tscore ++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn score;\n\t\t}", "@Override\n\tpublic int compareTo(Serie outra) {\n\t\treturn this.getNome().compareToIgnoreCase(outra.getNome());\n\t}", "public int compareTo(Object arg0)\r\n/* 26: */ {\r\n/* 27:47 */ return 0;\r\n/* 28: */ }", "public int compare(Viewer viewer, Object o1, Object o2) {\n\n // Sort according to the locale-specific collation order.\n return collator.compare(labelProvider.getText(o1),\n labelProvider.getText(o2));\n }", "@Override\n public int compareTo(Object o)\n throws ClassCastException\n {\n BoxBackground app = (BoxBackground)o;\n return compareTo(app);\n }", "@Override\n public int compare(T a, T b) {\n for (Comparator<T> comparator : comparators) {\n int cmp = comparator.compare(a, b);\n\n if (cmp != 0) {\n return cmp;\n }\n }\n return 0;\n }", "default int compareTo(Interval o) {\n if (getStart() > o.getStart()) {\n return 1;\n } else if (getStart() < o.getStart()) {\n return -1;\n } else if (getEnd() > o.getEnd()) {\n return 1;\n } else if (getEnd() < o.getEnd()) {\n return -1;\n } else {\n return 0;\n }\n }", "@Override\r\n\tpublic int compareTo(Object o) {\n\t\tDrink d = (Drink) o;\r\n\t\treturn this.name.compareTo(d.name);\r\n\t}", "@Override\n public int compareTo(TextTrackScore other) {\n if (this.isWithinRendererCapabilities != other.isWithinRendererCapabilities) {\n return this.isWithinRendererCapabilities ? 1 : -1;\n }\n if (this.preferredLanguageScore != other.preferredLanguageScore) {\n return compareInts(this.preferredLanguageScore, other.preferredLanguageScore);\n }\n if (this.preferredRoleFlagsScore != other.preferredRoleFlagsScore) {\n return compareInts(this.preferredRoleFlagsScore, other.preferredRoleFlagsScore);\n }\n if (this.isDefault != other.isDefault) {\n return this.isDefault ? 1 : -1;\n }\n if (this.hasPreferredIsForcedFlag != other.hasPreferredIsForcedFlag) {\n return this.hasPreferredIsForcedFlag ? 1 : -1;\n }\n if (this.selectedAudioLanguageScore != other.selectedAudioLanguageScore) {\n return compareInts(this.selectedAudioLanguageScore, other.selectedAudioLanguageScore);\n }\n if (preferredRoleFlagsScore == 0 && this.hasCaptionRoleFlags != other.hasCaptionRoleFlags) {\n return this.hasCaptionRoleFlags ? -1 : 1;\n }\n return 0;\n }", "public int compareTo(Object other) { \r\n\t\treturn Integer.compare(confidence, ((Candidate) other).getConfidence());\r\n\t}", "public int CompareTo(ProductosInventario comp){\n\t\t return CompareTo(comp.getProducto().getNombre());\n\t }", "public int compareTo(RequestMappingInfo other, HttpServletRequest request)\n/* */ {\n/* 244 */ if (HttpMethod.HEAD.matches(request.getMethod())) {\n/* 245 */ int result = this.methodsCondition.compareTo(other.getMethodsCondition(), request);\n/* 246 */ if (result != 0) {\n/* 247 */ return result;\n/* */ }\n/* */ }\n/* 250 */ int result = this.patternsCondition.compareTo(other.getPatternsCondition(), request);\n/* 251 */ if (result != 0) {\n/* 252 */ return result;\n/* */ }\n/* 254 */ result = this.paramsCondition.compareTo(other.getParamsCondition(), request);\n/* 255 */ if (result != 0) {\n/* 256 */ return result;\n/* */ }\n/* 258 */ result = this.headersCondition.compareTo(other.getHeadersCondition(), request);\n/* 259 */ if (result != 0) {\n/* 260 */ return result;\n/* */ }\n/* 262 */ result = this.consumesCondition.compareTo(other.getConsumesCondition(), request);\n/* 263 */ if (result != 0) {\n/* 264 */ return result;\n/* */ }\n/* 266 */ result = this.producesCondition.compareTo(other.getProducesCondition(), request);\n/* 267 */ if (result != 0) {\n/* 268 */ return result;\n/* */ }\n/* */ \n/* 271 */ result = this.methodsCondition.compareTo(other.getMethodsCondition(), request);\n/* 272 */ if (result != 0) {\n/* 273 */ return result;\n/* */ }\n/* 275 */ result = this.customConditionHolder.compareTo(other.customConditionHolder, request);\n/* 276 */ if (result != 0) {\n/* 277 */ return result;\n/* */ }\n/* 279 */ return 0;\n/* */ }", "int compareTo(Object o);", "@Override\n\t\t\t\t\tpublic int compare(HidenMachines machine1,\n\t\t\t\t\t\t\tHidenMachines machine2) {\n\t\t\t\t\t\treturn machine1.name.compareTo(machine2.name);\n\t\t\t\t\t}", "public int CompareTo(String comp){\n\t\t return producto.getNombre().compareTo(comp);\n\t }", "@Override\n\t\t\tpublic int compareTo(Object o) {\n\t\t\t\treturn 0;\n\t\t\t}", "public int compareTo(ConstraintDefinition o) {\n\t\t// compare based on the name and the parameters\n\t\treturn this.toString().compareTo(o.toString());\n\t}", "@Override\n public int compare(String left, String right) {\n return left.compareTo(right);\n }", "public int compareTo(Object other) { return 404;}", "public int compareTo (Object o) {\n return getFileName ().compareTo (((Page)o).getFileName());\n }", "public int compareTo(EnzymeClass enzymeClass) {\n return ec.compareTo(enzymeClass.getEc());\n }", "@Override\n\tpublic int compareTo(NADevice other) {\n\t\t\tint order = this.getName().compareToIgnoreCase(other.getName());\n\n\t\t\torder = sortByStatus(this, other, order);\n\n\t\t\treturn order;\n\t}", "@Test\r\n\tpublic void HealthyPersonCompareToImplTest() {\n\t\tAssert.assertEquals(\"HP compare incorrect this precedence\", -1, hp1.compareToImpl(hp2),0.00001);\r\n\t//(2) p name has precedence (expect positive number)\r\n\t\tAssert.assertEquals(\"HP compare incorrect p precedence\", 1, hp2.compareToImpl(hp1),0.00001);\r\n\t//(3) this and p have same name (expect 0)\r\n\t\tAssert.assertEquals(\"HP compare incorrect =.\", 0, hp1.compareToImpl(hp3),0.000001);\r\n\t//(4) p is SickPerson (expect 1)\r\n\t\tAssert.assertEquals(\"HP compare incorrect, p = SickPerson.\", 1,hp1.compareToImpl(sp),0.000001);\r\n\t}", "public int compare(final Object arg0, final Object arg1) {\r\n // If both arguments are not sentences, they are equal\r\n if (!(arg0 instanceof Sentence) && !(arg1 instanceof Sentence)) {\r\n return 0;\r\n }\r\n // If arg0 is not sentence and arg1 is, arg1 is greater\r\n else if (!(arg0 instanceof Sentence) && arg1 instanceof Sentence) {\r\n return -1;\r\n }\r\n // If arg1 is not sentence and arg0 is, arg0 is greater\r\n else if (!(arg1 instanceof Sentence)) {\r\n return 1;\r\n }\r\n // If both arguments are sentences\r\n else {\r\n final Sentence sentence0 = (Sentence) arg0;\r\n final Sentence sentence1 = (Sentence) arg1;\r\n\r\n // If suffixes are equal, compare expression\r\n if (sentence0.getSuffix() == null && sentence1.getSuffix() != null)\r\n return -1;\r\n else if (sentence0.getSuffix() != null && sentence1.getSuffix() == null)\r\n return 1;\r\n else if (sentence0.getSuffix() == null && sentence1.getSuffix() == null)\r\n return sentence0.getExpression().compareTo(sentence1.getExpression());\r\n else if (sentence0.getSuffix().equals(sentence1.getSuffix()))\r\n return sentence0.getExpression().compareTo(sentence1.getExpression());\r\n else\r\n // Otherwise, compare suffixes\r\n return sentence0.getSuffix().compareTo(sentence1.getSuffix());\r\n }\r\n }", "int compareTo(ITheme theme);", "public ArrayList<ArrayList<Integer>> classify(ArrayList<Integer> selection) {\n\t\tObject[] objs = new Object[objects.size()];\n\n\t\tfor(int c = 0; c < objs.length; c++){\n\t\t\t\n\t\t\tobjs[c] = getClasses(objects.get(c),c);\n\t\t}\n\n\t\tSuperClass[] superClasses = new SuperClass[selection.size()];\n\t\t\n\t\tfor(int s = 0; s < selection.size(); s++){\n\t\t\t\n\t\t\tsuperClasses[s] = new SuperClass(objs[selection.get(s)]);\n\t\t}\n\t\t\n\t\tfor(int b = 0; b < objs.length; b++){\n\t\t\tint maxScore = Integer.MIN_VALUE;\n\t\t\tint choice = 0;\n\t\t\t//System.out.println(\"Start!!!\");\n\t\t\tfor(int r = 0; r < superClasses.length; r++){\n\t\t\t\t\n\t\t\t\tint score = superClasses[r].scoreObj(objs[b]);\n\t\t\t\t//System.out.println(score + \" \" + maxScore);\n\t\t\t\tif(score > maxScore){\n\t\t\t\t\t\n\t\t\t\t\tmaxScore = score;\n\t\t\t\t\tchoice = r;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//System.out.println(\"End!!!\");\n\t\t\tsuperClasses[choice].addObj(objs[b]);\n\t\t}\n\t\t\n\t\tArrayList<ArrayList<Integer>> superClassChoices = new ArrayList<ArrayList<Integer>>();\n\t\t\n\t\tfor(int s = 0; s < superClasses.length; s++){\n\t\t\t\n\t\t\tSystem.out.println(superClasses[s].getSize());\n\t\t\tsuperClassChoices.add(superClasses[s].getBackObjsNos());\n\t\t}\n\t\t\n\t\treturn superClassChoices;\n\t\t\n\t}", "int compareTo(Object obj);", "public int compareTo(Clustering c) {\n\t\tif (c == null)\n\t\t\treturn 1;\n\t\tif (_name == null)\n\t\t\tif (c._name == null)\n\t\t\t\treturn 0;\n\t\t\telse\n\t\t\t\treturn -1;\n\t\treturn _name.compareTo(c._name);\n\t}", "public int compareTo(Cut<Comparable<?>> cut) {\n return cut == this ? 0 : 1;\n }", "@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}" ]
[ "0.5985347", "0.57917356", "0.57689124", "0.5569817", "0.5544214", "0.5506749", "0.550286", "0.54988307", "0.5481259", "0.5463929", "0.53766775", "0.53561693", "0.5340386", "0.5339846", "0.5330478", "0.53216016", "0.5320512", "0.5320512", "0.5310843", "0.5306735", "0.53053546", "0.52951676", "0.5279046", "0.5263298", "0.52589554", "0.52167296", "0.5185937", "0.51645136", "0.5145017", "0.51319265", "0.51235485", "0.5097628", "0.5097628", "0.5097628", "0.50811815", "0.50811815", "0.5078858", "0.50767785", "0.50704056", "0.5067874", "0.50520515", "0.5042441", "0.5042297", "0.5042297", "0.5040715", "0.5040189", "0.5038514", "0.5037497", "0.5035578", "0.5035027", "0.5029678", "0.5023917", "0.502023", "0.50101125", "0.4987724", "0.4980469", "0.49801075", "0.4978301", "0.49747077", "0.49745366", "0.4971892", "0.4971268", "0.49648896", "0.4951734", "0.49500668", "0.494975", "0.49473593", "0.49460062", "0.49451265", "0.49362808", "0.49294388", "0.4927868", "0.4923638", "0.49221045", "0.49217358", "0.492069", "0.49169552", "0.4916811", "0.49140862", "0.490706", "0.49042317", "0.49036065", "0.48992324", "0.48927405", "0.4892066", "0.48900747", "0.4886296", "0.48813003", "0.48768976", "0.48753926", "0.48696336", "0.4869122", "0.4866947", "0.4864351", "0.48622295", "0.4856957", "0.4855516", "0.48544428", "0.48542485", "0.48542485" ]
0.7804137
0
TODO Autogenerated method stub
@Override public void setTipo() { tipo = TipoPessoa.SUSPEITO; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { List<String> list = new ArrayList<String>(); list.add("A201550B"); list.add("ABB19991000Z"); list.add("XYZ200019Z"); list.add("ERF200220"); list.add("SCD203010T"); //list.add("abC200010E"); //countFakes(list); System.out.println(countFakes(list)); }
{ "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
static PanelFactory factory = new AWTPanelFactory();
public static void setButtonGroupFactory(ButtonGroupFactory newVal) { factory = newVal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DemoPanel() {\n }", "@Override\n public void setupPanel()\n {\n\n }", "public interface MenuTabButtonFactory {\n public void createTabButtonForMenuPanel(SplitControlPanel controlPanel, SplitPanel splitPanel, MenuPanel menuPanel, int orientation, MenuTabButtonAlternateAction alternateAction);\n}", "protected CayenneWidgetFactory() {\n super();\n }", "public interface AbstractWidgetFactory {\n public Window createWindow();\n}", "FlowDesignerFactory getFlowDesignerFactory();", "public CreateNewEventJPanel() {\n }", "public Panel() {\n }", "public AmazonHomePageFactory(WebDriver driver){\n\t\t\n\t\tPageFactory.initElements(driver, this);\n \n elementControl=new CommonElements();\n \n \n dropdownControl=new DropdownControl();\n \n \n\t}", "void addPanel() {\n \tPanel panel = new Panel();\r\n\r\n panel.setLayout(new GridLayout(4, 1));\r\n jSliderBrightness = makeTitledSilder(\"Helligkeit\", 0, 256, 128); // werte veraendert\r\n jSliderContrast = makeTitledSilder(\"Kontrast\", 0, 10, 5);\r\n jSliderSaturation = makeTitledSilder(\"Sättigung\", 0, 9, 4);\r\n jSliderHue = makeTitledSilder(\"Hue\", 0, 360, 0);\r\n //jSliderContrast = makeTitledSilder(\"Slider2-Wert\", 0, 100, 50);\r\n panel.add(jSliderBrightness);\r\n panel.add(jSliderContrast);\r\n panel.add(jSliderSaturation);\r\n panel.add(jSliderHue);\r\n \r\n add(panel);\r\n \r\n pack();\r\n }", "JPanel getPanel();", "public interface IMainframeFactory {\n\n\t/**\n\t * \n\t * @return new instance of IMainframe\n\t */\n\tIMainframe createInstance();\n}", "@Override\r\n public void setup(Panel panel) {\n }", "public TShapePanel() {\r\ncommonInitialization();\r\n }", "protected Panel createButtonPanel() {\n Panel panel = new Panel();\n panel.setLayout(new PaletteLayout(2, new Point(2,2), false));\n return panel;\n }", "private void setUpWidgets(){\n\n }", "SwmlFactory getSwmlFactory();", "public abstract void createContents(Panel mainPanel);", "private FireWeaponScreenFactory() {\n\t}", "private JPanel makePanel()\n {\n JPanel mainPanel = new JPanel();\n mainPanel.add(myLoginPanel);\n\n return mainPanel;\n }", "public static JPanel newPanel() {\n\t\treturn null;\n\t}", "public Panel() {\n initComponents();\n\n\n }", "SeleniumFactory getSeleniumFactory();", "private void setupPanels() {\n for (String className : PANEL_CLASS_NAMES) {\n try {\n Class<?> c = Class.forName(className);\n Object p = c.newInstance();\n VisualizationPanel panel = (VisualizationPanel) p;\n panel.setGcTraceSet(gcTraceSet);\n gcTraceSet.addListener(panel.getListener());\n panels.add(panel);\n tabbedPane.addTab(panel.getPanelName(), panel.getPanel());\n } catch (ClassNotFoundException e) {\n ErrorReporting.warning(className + \" not found\");\n } catch (InstantiationException e) {\n ErrorReporting.warning(\"could not instantiate \" + className);\n } catch (IllegalAccessException e) {\n ErrorReporting.warning(\"could not access constructor of \" + className);\n } catch (ClassCastException e) {\n ErrorReporting.warning(\"could not cast \" + className + \" to VisualizationPanel\");\n }\n }\n ErrorReporting.fatalError(panels.size() > TRACE_MANAGEMENT_PANEL_INDEX,\n \"There must be at least one panel set up, \" +\n \"the trace management panel.\");\n try {\n traceManagementPanel =\n (TraceManagementPanel) panels.get(TRACE_MANAGEMENT_PANEL_INDEX);\n } catch (ClassCastException e) {\n ErrorReporting.fatalError(\"could not cast panel with index \" +\n TRACE_MANAGEMENT_PANEL_INDEX + \" to TraceManagementPanel\");\n }\n ErrorReporting.fatalError(traceManagementPanel != null,\n \"The trace management panel should not be null\");\n }", "public Parent creatPanel() {\r\n\t\t\r\n\t\thlavniPanel = new BorderPane();\r\n\t\thlavniPanel.setCenter(creatGameDesk());\r\n\t\thlavniPanel.setTop(createMenuBar());\r\n\t\t\r\n\t\thlavniPanel.setBackground(new Background(new BackgroundFill(Color.BURLYWOOD, CornerRadii.EMPTY, Insets.EMPTY)));\r\n\t\thlavniPanel.setPadding(new Insets(8));\r\n\t\treturn hlavniPanel;\r\n\t}", "private JPanel makeControlPanel() {\n\n final JPanel panel = new JPanel(new FlowLayout(3));\n final JButton refreshButton = new JButton(new ImageIcon(iconMaker(\"refreshREAL.png\")));\n refreshButton.setFocusPainted(false);\n refreshButton.addActionListener(this::refreshButtonClicked);\n refreshButton.setToolTipText(\"Refresh Item Price(s)\");\n //checkButton.setPreferredSize(new Dimension(25,25));\n JButton viewLink = new JButton(new ImageIcon(iconMaker(\"visitSite.png\")));\n viewLink.setToolTipText(\"Visit Item Website\");\n JButton deleteItem = new JButton(new ImageIcon(iconMaker(\"delete.png\")));\n deleteItem.setToolTipText(\"Remove Item\");\n JButton addItem = buttonMaker(\"additem.png\");\n addItem.setToolTipText(\"Add Item to Price Watcher\");\n JButton editItem = buttonMaker(\"edititem.png\");\n editItem.setToolTipText(\"Edit Item Details\");\n\n\n viewLink.setFocusPainted(false);\n deleteItem.setFocusPainted(false);\n\n viewLink.addActionListener(this::viewPageClicked);\n panel.add(refreshButton);\n panel.add(viewLink);\n panel.add(deleteItem);\n panel.add(addItem);\n panel.add(editItem);\n\n return panel;\n }", "public ControlPanel() {\n\t\tpanelName = null;\n\t}", "public interface IPanels {\n\n /**\n * Instantiate each component in the class\n */\n void instantiateComponents();\n\n /**\n * Add the components to the Panel in the correct order\n */\n void addComponents();\n}", "public static ButtonJPanel getInstance(){\n if(instance == null){//if one does not exist, it makes one\n instance = new ButtonJPanel();\n }\n return instance; \n }", "private void initPanel() {\n\t\tthis.panel = new JPanel();\n\t\tthis.panel.setBounds(5, 5, 130, 20);\n\t\tthis.panel.setLayout(null); \n\n\t}", "public EnvironmentPanelTest()\n {\n }", "protected void createMainPanel() {\n\t\tthis.mainPanel = new VerticalPanel(); \n\t\tthis.mainPanel.setSpacing(5);\n\t\tthis.mainPanel.setScrollMode(getScrollMode());\n\t}", "public PrintsPanel() {\n initComponents();\n createPanels();\n\n }", "public ComandaPanel() {\n\n initComponents();\n // comanda = new Comanda();\n }", "private void createWidgets() {\n\n\t\tJPanel filmPanel = createFilmPanel();\n\t\tJPanel musicPanel = createMusicPanel();\n\t\tJPanel unclassPanel = createUnclassifiedPanel();\n\n\t\tthis.add(filmPanel);\n\t\tthis.add(musicPanel);\n\t\tthis.add(unclassPanel);\n\t}", "private static void createAndShowUI(){\n JFrame frame = new JFrame(\"TargetTest\");\n TargetTest test = new TargetTest();\n frame.setLayout(new FlowLayout());\n frame.getContentPane().add(test.getMainPanel());\n //frame.getContentPane().add(test.getControlsPanel());\n\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n frame.pack();\n\n frame.setLocationRelativeTo(null);\n\n frame.setVisible(true);\n}", "public ControladorPanel() { }", "public PanelAmigo() {\n initComponents();\n \n }", "public void crearPanel(){\n\n panel = new JPanel();\n this.getContentPane().add(panel);\n panel.setBackground(Color.CYAN);\n panel.setLayout(null);\n }", "private void initializePanels()\r\n\t{\r\n\t\tthis.subscribersPanel = new SubscribersPanel(DIMENSIONS);\r\n\t\tthis.consolePanel = new ConsolePanel(DIMENSIONS);\r\n\r\n\t\tthis.parametersPanel = new ParametersPanel(DIMENSIONS);\r\n\t\tthis.parametersPanel.setSize(DIMENSIONS);\r\n\r\n\t\tthis.mainPanel = new MainPanel(parametersPanel, this);\r\n\t\tthis.mainPanel.setSize(DIMENSIONS);\r\n\r\n\t\tshowParametersPanel();\r\n\t}", "Demo1Factory getDemo1Factory();", "public JPanel getJPanel();", "public JPanel getJPanel();", "private MusicPlayer()\n {\n panel = new JFXPanel();\n }", "public void init(MainPanel mainPanel);", "public DemoPluginFactory() {}", "public WFSLayerPanel()\n {\n initComponents();\n }", "protected Panel createToolPalette() {\n Panel palette = new Panel();\n palette.setLayout(new PaletteLayout(2,new Point(2,2)));\n return palette;\n }", "public EzdmxctrlFactoryImpl() {\n\t\tsuper();\n\t}", "public abstract void init(JPanel panel);", "private org.gwtbootstrap3.client.ui.Panel get_f_Panel16() {\n return build_f_Panel16();\n }", "public PreviewPanel() {\n initComponents();\n\n }", "private PanelManager(FlowClient frame) {\r\n\t\t// Swing necessities\r\n\t\tlayout = new CardLayout();\r\n\t\tthis.frame = frame;\r\n\t\tthis.setLayout(layout);\r\n\t\tsetBorder(FlowClient.EMPTY_BORDER);\r\n\r\n\t\t// Creates new panels and adds them to the cardlayout stack\r\n\t\teditTabs = new EditTabs();\r\n\r\n\t\tloginPane = new LoginPane(this);\r\n\t\tadd(loginPane, \"loginPane\");\r\n\r\n\t\tCreateAccountPane createAccountPane = new CreateAccountPane(this);\r\n\t\tadd(createAccountPane, \"createPane\");\r\n\r\n\t\teditPane = new EditPane(this);\r\n\t\tadd(editPane, \"editPane\");\r\n\r\n\t\tdebugPane = new DebugPane(this);\r\n\t\tadd(debugPane, \"debugPane\");\r\n\r\n\t\tSettingsPane settingsTabs = new SettingsPane(this);\r\n\t\tadd(settingsTabs, \"settingsPane\");\r\n\r\n\t\thistoryPane = new HistoryPane(this);\r\n\t\tadd(historyPane, \"historyPane\");\r\n\t}", "private org.gwtbootstrap3.client.ui.Panel get_f_Panel28() {\n return build_f_Panel28();\n }", "private void setupPanels() {\n\t\tsplitPanel.addEast(east, Window.getClientWidth() / 5);\n\t\tsplitPanel.add(battleMatCanvasPanel);\n\t\tpanelsSetup = true;\n\t}", "public interface GuiFactory {\n\n Button createButton();\n CheckBox createCheckbox();\n\n\n}", "final JPanel createMainPanel() {\r\n\r\n logger.entering(this.getClass().getName(), \"createMainPanel\");\r\n\r\n this.pnlMain = new JPanel();\r\n\r\n this.pnlMain.setLayout(new BorderLayout());\r\n\r\n this.pnlMain.add(new JLabel(\r\n \"Select the MicroSensorDataTypes that shall be filtered out\"),\r\n BorderLayout.NORTH);\r\n\r\n this.pnlMain.add(createCheckBoxPanel(), BorderLayout.CENTER);\r\n\r\n this.pnlMain.add(getButtonPanel(), BorderLayout.SOUTH);\r\n\r\n logger.exiting(this.getClass().getName(), \"createMainPanel\",\r\n this.pnlMain);\r\n\r\n return this.pnlMain;\r\n }", "protected ImagePanel() {\n pictureBox = new AWTPictureBox(getWidth(), getHeight());\n //add(pictureBox);\n }", "@Override\n\tpublic JPanel obtenerPanel() {\n\t\treturn null;\n\t}", "@Override\n\tpublic JPanel obtenerPanel() {\n\t\treturn null;\n\t}", "@Override protected JComponent setupPanel()\t{ return null; }", "protected abstract Widget instantiateFooterPanel () ;", "public JavaPanel() {\n\t\tsuper();\n\t}", "private void buildPanelEast() {\n\r\n }", "public interface GuiFactory {\n /**\n * Gui id\n */\n int getId();\n\n Object getClientGuiElement(EntityPlayer player, World world, BlockPos blockPos);\n\n Object getServerGuiElement(EntityPlayer player, World world, BlockPos blockPos);\n}", "public PanelSgamacView1()\n {\n }", "private void createManualJPanel() {\r\n createJPanelWithManual();\r\n JFrame frame = new JFrame();\r\n customizeFrame(frame);\r\n }", "Sticker.Factory getStickerFactory();", "public void setupPanel() {\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(new ModifiedFlowLayout(FlowLayout.LEFT));\n\t\tpanel.setBackground(Color.BLACK);\n\t\tpanel.setOpaque(true);\n\t}", "private HelloPanel() {\n\n\t\tHTML w = new HTML(BalasResources.INSTANCE.helloPane().getText());\n\t\tinitWidget(w);\n\t}", "public ControlFactoryImpl() {\n\t\tsuper();\n\t}", "private void setupGUI(){\r\n\t\t\r\n\t\tfinal GUIFactory guifactory = GUIFactory.instance();\r\n\t\tfinal MTApplication app = (MTApplication)item.getView().getRenderer();\r\n\t\tfinal float leftiness = app.getWidth()*5/6;\r\n\t\tfinal float xPos = leftiness + 5;\r\n\t\t\r\n\t\t\r\n\t\toverlay = new MTOverlayContainer( app);\r\n\t\titem.getView().getRoot().addChild( overlay);\r\n\t\t\r\n\t\t// _THE_ PANEL \r\n\t\t\r\n\t\tpnlPanel = guifactory.createPanel( leftiness, 0, app.getWidth()-leftiness, app.getHeight(),\"pnlPanel\", overlay);\t\t\t\r\n\t\t\r\n\t\t// INTERACTION PANEL\r\n\t\t\r\n\t\tpnlInteraction = guifactory.createPanel(\r\n\t\t\t\tpnlPanel.getPosition( TransformSpace.GLOBAL),\r\n\t\t\t\tpnlPanel.getWidthXY( TransformSpace.GLOBAL),\r\n\t\t\t\tpnlPanel.getHeightXY( TransformSpace.GLOBAL),\r\n\t\t\t\t\"pnlInteraction\",\r\n\t\t\t\tpnlPanel);\r\n\t\tpnlInteraction.setNoFill( true);\r\n\t\t\r\n\t\t// EDIT PANEL\r\n\t\t\r\n\t\tpnlEdit = guifactory.createPanel(\r\n\t\t\t\tpnlPanel.getPosition( TransformSpace.GLOBAL),\r\n\t\t\t\tpnlPanel.getWidthXY( TransformSpace.GLOBAL),\r\n\t\t\t\tpnlPanel.getHeightXY( TransformSpace.GLOBAL),\r\n\t\t\t\t\"pnlEdit\",\r\n\t\t\t\tpnlPanel);\r\n\t\tpnlEdit.setVisible( false);\r\n\t\tpnlEdit.setNoFill( true);\r\n\t\t\r\n\t\t\r\n\t\t// ITEM NAME TEXTAREA\r\n\t\t\r\n\t\tString itemName = item.getName();\r\n\t\tif(itemName == null || itemName.equals( \"\"))\r\n\t\t\titemName = item.getID();\r\n\t\ttxtItemName = guifactory.createTextArea(itemName, \"txtItemName\", pnlPanel);\r\n\t\ttxtItemName.setPositionGlobal(\r\n\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\txPos,\r\n\t\t\t\t\t\tpnlPanel.getPosition( TransformSpace.GLOBAL).getY() + 10\t\r\n\t\t\t\t));\r\n\r\n\r\n\t\t// PANEL PICTURE\r\n\r\n\t\tVector3D pnlInteractionPos = pnlInteraction.getPosition( TransformSpace.GLOBAL);\r\n\t\tpnlPicture = guifactory.createPanel( pnlInteractionPos.getX()+50, pnlInteractionPos.getY()+50, 100, 100, \"pnlPicture\", pnlInteraction);\r\n\t\tpnlPicture.setAnchor( PositionAnchor.CENTER);\r\n\t\tpnlPicture.setPositionGlobal(\r\n\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\tpnlInteractionPos.getX() + pnlInteraction.getWidthXY( TransformSpace.GLOBAL)/2,\r\n\t\t\t\t\t\tpnlInteractionPos.getY() + 50 + pnlPicture.getHeightXY( TransformSpace.GLOBAL)/2\r\n\t\t\t\t));\r\n\t\tpnlPicture.setTexture( GUITextures.instance().getByDevice( DeviceType.getDeviceType( device)));\r\n\t\t\r\n\t\t\r\n\t\t// POWER USAGE TEXTAREA\r\n\t\t\r\n\t\tString powerUsage = \"n/a\";\r\n\t\tif( device.getPowerUsage() != null && device.getPowerUsage().getValue() != null){\r\n\t\t\tpowerUsage = device.getPowerUsage().getValue().toString();\r\n\t\t}\r\n\t\t\r\n\t\ttxtPowerUsage = guifactory.createTextArea( \"Power usage: \" + powerUsage + \" Watts\", \"txtPowerUsage\", pnlInteraction);\r\n\t\ttxtPowerUsage.setPositionGlobal(\r\n\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\txPos,\r\n\t\t\t\t\t\tpnlInteractionPos.getY() + 140\t\t\r\n\t\t\t\t\t\t));\r\n\t\ttxtPowerUsage.setVisible( false);\r\n\t\t\r\n\t\t\r\n\t\t// ON/OFF BUTTON\r\n\t\t\r\n\t\tbtnOnOff = guifactory.createButton( \"Turn device On/Off\", \"btnOnOff\", pnlInteraction);\r\n\t\tbtnOnOff.setPosition( txtPowerUsage.getPosition( TransformSpace.GLOBAL));\r\n\t\tbtnOnOff.addGestureListener( TapProcessor.class, new BtnOnOffListener());\r\n\t\t\r\n\t\t\r\n\t\t// SUBDEVICE BUTTON PANEL\r\n\t\t\r\n\t\tpnlSubDeviceButtons = guifactory.createPanel(\r\n\t\t\t\tpnlPanel.getPosition( TransformSpace.GLOBAL).getX(),\r\n\t\t\t\tbtnOnOff.getVectorNextToComponent( 10, false).getY(),\r\n\t\t\t\tpnlPanel.getWidthXY( TransformSpace.GLOBAL),\r\n\t\t\t\tdevice.getSubDevice().size() * (btnOnOff.getHeight()+10),\r\n\t\t\t\t\"pnlSubDeviceButtons\",\r\n\t\t\t\tpnlInteraction);\r\n\t\t\r\n\t\t// SUB DEVICE BUTTONS\r\n\t\t\r\n\t\tsubDeviceButtons = new LinkedList<MTButton>();\r\n\t\tfor( int i = 0; i < device.getSubDevice().size(); i++){\r\n\t\t\t\r\n\t\t\tPhysicalDevice subDevice = device.getSubDevice().get( i);\r\n\t\t\t\r\n\t\t\t// get button's caption\r\n\t\t\tString caption = subDevice.getName();\r\n\t\t\tif(caption == null || caption.equals( \"\"))\r\n\t\t\t\tcaption = subDevice.getId();\r\n\t\t\t\r\n\t\t\tMTButton btnSubDevice = guifactory.createButton( caption, \"btnSubDevice_\" + subDevice.getId(), pnlSubDeviceButtons);\r\n\t\t\tbtnSubDevice.setPosition(\r\n\t\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\txPos,\t\r\n\t\t\t\t\t\tpnlSubDeviceButtons.getPosition( TransformSpace.GLOBAL).getY() + i*(btnSubDevice.getHeight() + 10)\r\n\t\t\t\t\t));\r\n\t\t\t\r\n\t\t\tsubDeviceButtons.add( btnSubDevice);\r\n\t\t\tbtnSubDevice.addGestureListener( TapProcessor.class, new BtnSubDeviceListener( subDevice));\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t// EDIT BUTTON\r\n\t\t\r\n\t\tbtnEdit = guifactory.createButton( \"Edit\", \"btnEdit\", pnlInteraction);\r\n\t\tbtnEdit.setPosition( new Vector3D( xPos, app.getHeight() - 2*btnEdit.getHeight() - 30));\r\n\t\tbtnEdit.addGestureListener( TapProcessor.class, new BtnEditListener());\r\n\t\t\r\n\t\t\r\n\t\t// BUTTON HIDE\r\n\t\t\r\n\t\tbtnHide = guifactory.createButton( \"Hide menu\", \"btnHide\", pnlPanel);\r\n\t\tbtnHide.setPosition( new Vector3D( xPos, app.getHeight() - btnHide.getHeight() - 20));\r\n\t\tbtnHide.addGestureListener( TapProcessor.class, new BtnHideListener());\r\n\t\t\r\n\t\t\r\n\t\t///// EDIT-ELEMENTS /////\r\n\r\n\t\tchkMovePlanar = guifactory.createCheckButton( \"Move planar\", \"chkMovePlanar\", pnlEdit);\r\n\t\tchkMovePlanar.setPosition(\r\n\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\txPos,\r\n\t\t\t\t\t\ttxtItemName.getPosition( TransformSpace.GLOBAL).getY() + txtItemName.getHeightXY( TransformSpace.GLOBAL)+ 20\t\r\n\t\t\t\t));\r\n\t\tchkMovePlanar.addGestureListener( TapProcessor.class, new ChkMovePlanarListener());\r\n\r\n\t\t\r\n\t\tchkMoveY = guifactory.createCheckButton( \"Move up/down\", \"chkMoveY\", pnlEdit);\r\n\t\tchkMoveY.setPosition( chkMovePlanar.getVectorNextToComponent( 10, false));\r\n\t\tchkMoveY.addGestureListener( TapProcessor.class, new ChkMoveYListener());\r\n\r\n\t\t\r\n\t\tchkRotate = guifactory.createCheckButton( \"Rotate\", \"chkRotate\", pnlEdit);\r\n\t\tchkRotate.setPosition( chkMoveY.getVectorNextToComponent( 10, false));\r\n\t\tchkRotate.addGestureListener( TapProcessor.class, new ChkRotateListener());\r\n\r\n\t\t\r\n\t\tchkScale = guifactory.createCheckButton( \"Scale\", \"chkScale\", pnlEdit);\r\n\t\tchkScale.setPosition( chkRotate.getVectorNextToComponent( 10, false));\r\n\t\tchkScale.addGestureListener( TapProcessor.class, new ChkScaleListener());\r\n\r\n\t\t\r\n\t\tbtnChangeVisualisation = guifactory.createButton( \"Change Style\", \"btnChangeVisualisation\", pnlEdit);\r\n\t\tbtnChangeVisualisation.setPosition( chkScale.getVectorNextToComponent( 10, false));\r\n\t\tbtnChangeVisualisation.addGestureListener( TapProcessor.class, new BtnChangeVisualisationListener());\r\n\t\t\r\n\t\t\r\n\t\tbtnSave = guifactory.createButton( \"Save\", \"btnSave\", pnlEdit);\r\n\t\tbtnSave.setPosition( btnEdit.getPosition());\r\n\t\tbtnSave.addGestureListener( TapProcessor.class, new BtnSaveListener());\r\n\t}", "private JPanel createPanelEditService() {\n\t\t// Fabriken holen\n\t\tGridBagConstraintsFactory gbcf = GridBagConstraintsFactory.getInstance();\n\t\tWidgetFactory wf = WidgetFactory.getInstance();\n\t\t// Dirty-Listener erzeugen\n\t\tDocumentListener documentListener = new DocumentListener() {\n\n\t\t\t@Override\n\t\t\tpublic void changedUpdate(DocumentEvent arg0) {\n\t\t\t\tsetDirty(true);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void insertUpdate(DocumentEvent e) {\n\t\t\t\tsetDirty(true);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void removeUpdate(DocumentEvent e) {\n\t\t\t\tsetDirty(true);\n\t\t\t}\n\t\t};\n\t\tChangeListener changeListener = new ChangeListener() {\n\n\t\t\t@Override\n\t\t\tpublic void stateChanged(ChangeEvent event) {\n\t\t\t\tif (((AbstractButton) event.getSource()).getModel().isPressed()) {\n\t\t\t\t\tsetDirty(true);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\t// Widgets erzeugen\n\t\tJPanel panel = wf.getPanel(\"PanelEditService\");\n\t\tJLabel labelServiceAbbreviation = wf.getLabel(\"LabelServiceAbbreviation\");\n\t\tlabelServiceAbbreviation.setForeground(COLOR_INFLUENCE);\n\t\tserviceAbbreviation = wf.getTextField(\"FieldServiceAbbreviation\");\n\t\tserviceAbbreviation.getDocument().addDocumentListener(documentListener);\n\t\tJButton buttonClearService = wf.getButton(\"ButtonClearService\");\n\t\tbuttonClearService.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t((PswGenCtl) ctl).actionPerformedClearService(me);\n\t\t\t}\n\t\t});\n\t\tJLabel labelAdditionalInfo = wf.getLabel(\"LabelAdditionalInfo\");\n\t\tlabelAdditionalInfo.setForeground(COLOR_INFLUENCE);\n\t\tadditionalInfo = wf.getTextField(\"FieldAdditionalInfo\");\n\t\tadditionalInfo.getDocument().addDocumentListener(documentListener);\n\t\tJButton buttonRemoveService = wf.getButton(\"ButtonRemoveService\");\n\t\tbuttonRemoveService.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t((PswGenCtl) ctl).actionPerformedRemoveService(me);\n\t\t\t}\n\t\t});\n\t\tJLabel labelLoginUrl = wf.getLabel(\"LabelLoginUrl\");\n\t\tloginUrl = wf.getTextField(\"FieldLoginUrl\");\n\t\tloginUrl.getDocument().addDocumentListener(documentListener);\n\t\tJButton buttonOpenUrl = wf.getButton(\"ButtonOpenUrl\");\n\t\tbuttonOpenUrl.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t((PswGenCtl) ctl).actionPerformedOpenUrlInBrowser(me);\n\t\t\t}\n\t\t});\n\t\tJLabel labelLoginInfo = wf.getLabel(\"LabelLoginInfo\");\n\t\tloginInfo = wf.getTextField(\"FieldLoginInfo\");\n\t\tloginInfo.getDocument().addDocumentListener(documentListener);\n\t\tJButton buttonCopyLoginInfo = wf.getButton(\"ButtonCopyLoginInfo\");\n\t\tbuttonCopyLoginInfo.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t((PswGenCtl) ctl).actionPerformedCopyLoginInfo(me);\n\t\t\t}\n\t\t});\n\t\tJLabel labelAdditionalLoginInfo = wf.getLabel(\"LabelAdditionalLoginInfo\");\n\t\tadditionalLoginInfo = wf.getTextArea(\"FieldAdditionalLoginInfo\");\n\t\tadditionalLoginInfo.getDocument().addDocumentListener(documentListener);\n\t\tJScrollPane additionalLoginInfoScrollPane = wf.getScrollPane(\"ScrollPaneAdditionalLoginInfo\",\n\t\t\t\tadditionalLoginInfo);\n\t\tadditionalLoginInfoScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\tJButton buttonOpenHelp = wf.getButton(\"ButtonOpenHelp\");\n\t\tbuttonOpenHelp.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t((PswGenCtl) ctl).actionPerformedOpenHelpInBrowser(me);\n\t\t\t}\n\t\t});\n\t\tJButton buttonOpenAbout = wf.getButton(\"ButtonOpenAbout\");\n\t\tbuttonOpenAbout.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t((PswGenCtl) ctl).actionPerformedOpenAbout(me);\n\t\t\t}\n\t\t});\n\t\tJLabel labelCount = wf.getLabel(\"LabelCount\");\n\t\tlabelCount.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlabelCount.setForeground(COLOR_INFLUENCE);\n\t\tJLabel labelStartIndex = wf.getLabel(\"LabelStartIndex\");\n\t\tlabelStartIndex.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlabelStartIndex.setForeground(COLOR_INFLUENCE);\n\t\tJLabel labelEndIndex = wf.getLabel(\"LabelEndIndex\");\n\t\tlabelEndIndex.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlabelEndIndex.setForeground(COLOR_INFLUENCE);\n\t\tuseSmallLetters = wf.getCheckBox(\"CheckBoxSmallLetters\");\n\t\tuseSmallLetters.addChangeListener(changeListener);\n\t\tuseSmallLetters.setForeground(COLOR_INFLUENCE);\n\t\tsmallLettersCount = wf.getIntegerField(\"FieldSmallLettersCount\");\n\t\tsmallLettersCount.getDocument().addDocumentListener(documentListener);\n\t\tsmallLettersStartIndex = wf.getIntegerField(\"FieldSmallLettersStartIndex\");\n\t\tsmallLettersStartIndex.getDocument().addDocumentListener(documentListener);\n\t\tsmallLettersEndIndex = wf.getIntegerField(\"FieldSmallLettersEndIndex\");\n\t\tsmallLettersEndIndex.getDocument().addDocumentListener(documentListener);\n\t\tuseCapitalLetters = wf.getCheckBox(\"CheckBoxCapitalLetters\");\n\t\tuseCapitalLetters.addChangeListener(changeListener);\n\t\tuseCapitalLetters.setForeground(COLOR_INFLUENCE);\n\t\tcapitalLettersCount = wf.getIntegerField(\"FieldCapitalLettersCount\");\n\t\tcapitalLettersCount.getDocument().addDocumentListener(documentListener);\n\t\tcapitalLettersStartIndex = wf.getIntegerField(\"FieldCapitalLettersStartIndex\");\n\t\tcapitalLettersStartIndex.getDocument().addDocumentListener(documentListener);\n\t\tcapitalLettersEndIndex = wf.getIntegerField(\"FieldCapitalLettersEndIndex\");\n\t\tcapitalLettersEndIndex.getDocument().addDocumentListener(documentListener);\n\t\tuseDigits = wf.getCheckBox(\"CheckBoxDigits\");\n\t\tuseDigits.addChangeListener(changeListener);\n\t\tuseDigits.setForeground(COLOR_INFLUENCE);\n\t\tdigitsCount = wf.getIntegerField(\"FieldDigitsCount\");\n\t\tdigitsCount.getDocument().addDocumentListener(documentListener);\n\t\tdigitsStartIndex = wf.getIntegerField(\"FieldDigitsStartIndex\");\n\t\tdigitsStartIndex.getDocument().addDocumentListener(documentListener);\n\t\tdigitsEndIndex = wf.getIntegerField(\"FieldDigitsEndIndex\");\n\t\tdigitsEndIndex.getDocument().addDocumentListener(documentListener);\n\t\tuseSpecialCharacters = wf.getCheckBox(\"CheckBoxSpecialCharacters\");\n\t\tuseSpecialCharacters.addChangeListener(changeListener);\n\t\tuseSpecialCharacters.setForeground(COLOR_INFLUENCE);\n\t\tspecialCharacters = wf.getTextField(\"FieldSpecialCharacters\");\n\t\tspecialCharacters.setForeground(COLOR_INFLUENCE);\n\t\tspecialCharactersCount = wf.getIntegerField(\"FieldSpecialCharactersCount\");\n\t\tspecialCharactersCount.getDocument().addDocumentListener(documentListener);\n\t\tspecialCharactersStartIndex = wf.getIntegerField(\"FieldSpecialCharactersStartIndex\");\n\t\tspecialCharactersStartIndex.getDocument().addDocumentListener(documentListener);\n\t\tspecialCharactersEndIndex = wf.getIntegerField(\"FieldSpecialCharactersEndIndex\");\n\t\tspecialCharactersEndIndex.getDocument().addDocumentListener(documentListener);\n\t\tlabelUseOldPassphrase = wf.getLabel(\"LabelUseOldPassphrase\");\n\t\tlabelUseOldPassphrase.setForeground(COLOR_WARNING);\n\t\tJLabel labelTotalCharacterCount = wf.getLabel(\"LabelTotalCharacterCount\");\n\t\tlabelTotalCharacterCount.setForeground(COLOR_INFLUENCE);\n\t\ttotalCharacterCount = wf.getIntegerField(\"FieldTotalCharacterCount\");\n\t\ttotalCharacterCount.getDocument().addDocumentListener(documentListener);\n\t\tJButton buttonCopyPassword = wf.getButton(\"ButtonCopyPassword\");\n\t\tbuttonCopyPassword.setForeground(COLOR_INFLUENCE);\n\t\tbuttonCopyPassword.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t((PswGenCtl) ctl).actionPerformedCopyPassword(me);\n\t\t\t}\n\t\t});\n\t\tJLabel labelPassword = wf.getLabel(\"LabelPassword\");\n\t\tpassword = wf.getPasswordField(\"FieldPassword\");\n\t\tpassword.getDocument().addDocumentListener(documentListener);\n\t\tJButton buttonDisplayPassword = wf.getButton(\"ButtonDisplayPassword\");\n\t\tbuttonDisplayPassword.setForeground(COLOR_INFLUENCE);\n\t\tbuttonDisplayPassword.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t((PswGenCtl) ctl).actionPerformedDisplayPassword(me);\n\t\t\t}\n\t\t});\n\t\tJLabel labelPasswordRepeated = wf.getLabel(\"LabelPasswordRepeated\");\n\t\tpasswordRepeated = wf.getPasswordField(\"FieldPasswordRepeated\");\n\t\tpasswordRepeated.getDocument().addDocumentListener(documentListener);\n\t\tmakePasswordVisible = wf.getCheckBox(\"CheckBoxMakePasswordVisible\");\n\t\tmakePasswordVisible.addItemListener(new ItemListener() {\n\n\t\t\t@Override\n\t\t\tpublic void itemStateChanged(ItemEvent arg0) {\n\t\t\t\tif (makePasswordVisible.isSelected()) {\n\t\t\t\t\tpassword.setEchoChar((char) 0);\n\t\t\t\t\tpasswordRepeated.setEchoChar((char) 0);\n\t\t\t\t} else {\n\t\t\t\t\tpassword.setEchoChar('*');\n\t\t\t\t\tpasswordRepeated.setEchoChar('*');\n\t\t\t\t}\n\t\t\t}\n\n\t\t});\n\t\tbuttonStoreService = wf.getButton(\"ButtonStoreService\");\n\t\tbuttonStoreService.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t((PswGenCtl) ctl).actionPerformedStoreService(me);\n\t\t\t}\n\t\t});\n\t\tbuttonUseNewPassphrase = wf.getButton(\"ButtonUseNewPassphrase\");\n\t\tbuttonUseNewPassphrase.setForeground(COLOR_INFLUENCE);\n\t\tbuttonUseNewPassphrase.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t((PswGenCtl) ctl).actionPerformedUseNewPassphrase(me);\n\t\t\t}\n\t\t});\n\t\tJLabel labelLastUpdate = wf.getLabel(\"LabelLastUpdate\");\n\t\tlastUpdate = wf.getLabel(\"LabelLastUpdate\");\n\t\t// Widgets zufügen, erste Zeile\n\t\tint row = 0;\n\t\tpanel.add(labelServiceAbbreviation, gbcf.getLabelConstraints(0, row, 2, 1));\n\t\tpanel.add(serviceAbbreviation, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 4, 1));\n\t\tpanel.add(buttonClearService, gbcf.getLabelConstraints(6, row));\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(labelAdditionalInfo, gbcf.getLabelConstraints(0, row, 2, 1));\n\t\tpanel.add(additionalInfo, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 4, 1));\n\t\tpanel.add(buttonRemoveService, gbcf.getLabelConstraints(6, row));\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(labelLoginUrl, gbcf.getLabelConstraints(0, row, 2, 1));\n\t\tpanel.add(loginUrl, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 4, 1));\n\t\tpanel.add(buttonOpenUrl, gbcf.getLabelConstraints(6, row));\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(labelLoginInfo, gbcf.getLabelConstraints(0, row, 2, 1));\n\t\tpanel.add(loginInfo, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 4, 1));\n\t\tpanel.add(buttonCopyLoginInfo, gbcf.getLabelConstraints(6, row));\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(labelAdditionalLoginInfo, gbcf.getLabelConstraints(0, row, 2, 1));\n\t\tpanel.add(additionalLoginInfoScrollPane,\n\t\t\t\tgbcf.getTableConstraints(GridBagConstraints.RELATIVE, row, 4, 1));\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(labelCount, gbcf.getLabelConstraints(2, row));\n\t\tpanel.add(labelStartIndex, gbcf.getLabelConstraints(GridBagConstraints.RELATIVE, row));\n\t\tpanel.add(labelEndIndex, gbcf.getLabelConstraints(GridBagConstraints.RELATIVE, row));\n\t\t// Leerzeile zufügen, nächste Zeile\n\t\trow++;\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(useSmallLetters, gbcf.getLabelConstraints(0, row, 2, 1));\n\t\tpanel.add(smallLettersCount, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\tpanel.add(smallLettersStartIndex, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\tpanel.add(smallLettersEndIndex, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\tpanel.add(buttonOpenHelp, gbcf.getLabelConstraints(6, row));\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(useCapitalLetters, gbcf.getLabelConstraints(0, row, 2, 1));\n\t\tpanel.add(capitalLettersCount, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\tpanel.add(capitalLettersStartIndex, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\tpanel.add(capitalLettersEndIndex, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\tpanel.add(buttonOpenAbout, gbcf.getLabelConstraints(6, row));\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(useDigits, gbcf.getLabelConstraints(0, row, 2, 1));\n\t\tpanel.add(digitsCount, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\tpanel.add(digitsStartIndex, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\tpanel.add(digitsEndIndex, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(useSpecialCharacters, gbcf.getLabelConstraints(0, row, 1, 1));\n\t\tpanel.add(specialCharacters, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\tpanel.add(specialCharactersCount, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\tpanel.add(specialCharactersStartIndex,\n\t\t\t\tgbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\tpanel.add(specialCharactersEndIndex,\n\t\t\t\tgbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\tpanel.add(labelUseOldPassphrase, gbcf.getLabelConstraints(6, row, 1, 1));\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(labelTotalCharacterCount, gbcf.getLabelConstraints(0, row, 2, 1));\n\t\tpanel.add(totalCharacterCount, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\tpanel.add(buttonCopyPassword, gbcf.getLabelConstraints(6, row));\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(labelPassword, gbcf.getLabelConstraints(0, row, 2, 1));\n\t\tpanel.add(password, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 4, 1));\n\t\tpanel.add(buttonDisplayPassword, gbcf.getLabelConstraints(6, row));\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(labelPasswordRepeated, gbcf.getLabelConstraints(0, row, 2, 1));\n\t\tpanel.add(passwordRepeated, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 4, 1));\n\t\tpanel.add(buttonStoreService, gbcf.getLabelConstraints(6, row));\n\t\tpanel.add(buttonUseNewPassphrase, gbcf.getLabelConstraints(6, row));\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(makePasswordVisible, gbcf.getFieldConstraints(2, row, 4, 1));\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tGridBagConstraints emptyLineConstraints = gbcf.getLabelConstraints(0, row, 2, 1);\n\t\temptyLineConstraints.weighty = 0.1;\n\t\tpanel.add(new JLabel(\"\"), emptyLineConstraints);\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(labelLastUpdate, gbcf.getLabelConstraints(0, row, 2, 1));\n\t\tpanel.add(lastUpdate, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 4, 1));\n\t\t// Panel zurückgeben\n\t\treturn panel;\n\t}", "public LookUpPanel() {\n initComponents(); \n }", "private org.gwtbootstrap3.client.ui.Panel get_f_Panel48() {\n return build_f_Panel48();\n }", "public void setupUI() {\r\n\t\t\r\n\t\tvPanel = new VerticalPanel();\r\n\t\thPanel = new HorizontalPanel();\r\n\t\t\r\n\t\titemName = new Label();\r\n\t\titemName.addStyleName(Styles.page_title);\r\n\t\titemDesc = new Label();\r\n\t\titemDesc.addStyleName(Styles.quest_desc);\r\n\t\titemType = new Label();\r\n\t\titemType.addStyleName(Styles.quest_lvl);\r\n\t\t\r\n\t\tVerticalPanel img = new VerticalPanel();\r\n\t\timg.add(new Image(imgDir));\r\n\t\t\r\n\t\tvPanel.add(itemName);\r\n\t\tvPanel.add(itemDesc);\r\n\t\tvPanel.add(img);\r\n\t\tvPanel.add(hPanel);\r\n\t\t\r\n\t\tVerticalPanel mainPanel = new VerticalPanel();\r\n\t\tmainPanel.setWidth(\"100%\");\r\n\t\tvPanel.addStyleName(NAME);\r\n\t\t\r\n\t\tmainPanel.add(vPanel);\r\n \tinitWidget(mainPanel);\r\n }", "public JPanel getPanel(){\n return panel;\n }", "private StickFactory() {\n\t}", "public NewJPanel() {\n initComponents();\n }", "public NewJPanel() {\n initComponents();\n }", "public static JPanel getFormsPanelInstance(){\n return formsPanel;\n }", "public PanelLogin() {\n initComponents(); \n SetWallpaper sw = new SetWallpaper();\n sw.SetWallpaper400x300(wall2);\n }", "public static void createAndShowGui() {\n updateShapes();\n initialiseShapeTurtleLinden();\n Painting painting = new Painting();\n ButtonsController buttonsController = new ButtonsController(painting);\n Buttons buttonPanel = new Buttons(buttonsController);\n buttonsController.turtleInit(turtle, linSys);\n\n JPanel mainPanel = new JPanel(false);\n mainPanel.add(painting);\n mainPanel.add(buttonPanel, BorderLayout.SOUTH);\n\n\n ProdPainter prodPaint = new ProdPainter();\n ProductionsController productionsController = new ProductionsController(shape, prodPaint);\n Productions productions = new Productions(productionsController);\n JPanel productionsTab = new JPanel(false);\n productionsTab.add(productions);\n productionsTab.add(prodPaint);\n\n SettingsController settingsController = new SettingsController(turtle, linSys, shape,\n buttonsController, productionsController);\n settingsController.init();\n Settings settings = new Settings(settingsController);\n JPanel settingsTab = new JPanel(false);\n settingsTab.add(settings);\n\n\n JTabbedPane tabs = new JTabbedPane();\n tabs.addTab(\"Drawing\", mainPanel);\n tabs.addTab(\"Productions\", productionsTab);\n tabs.addTab(\"Settings\", settingsTab);\n\n\n JFrame frame = new JFrame();\n frame.setSize(frameWidth, frameHeight + 120);\n setDefaultLookAndFeelDecorated(true);\n frame.add(tabs);\n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n }", "public TMCropperPanel() {\n initComponents();\n this.setBorder(new WorkflowModuleBorder(WorkflowModuleBorder.BLUE_SHADOW));\n }", "JPanel guiPanel() {\n JPanel panel = new JPanel();\n panel.setLayout(new BorderLayout());\n tabbedPane = new JTabbedPane();\n tabbedPane.addTab(\"Light\", lightPanel());\n tabbedPane.addTab(\"Background\", backgroundPanel());\n tabbedPane.addTab(\"Fog\", fogPanel());\n tabbedPane.addTab(\"Sound\", soundPanel());\n panel.add(\"Center\", tabbedPane);\n\n panel.add(\"South\", configPanel());\n return panel;\n }", "public RTwoPanelListBox() {\n }", "private void setUpPanel() {\n this.panel = new JPanel();\n functions = new JPanel();\n panel.setPreferredSize(new Dimension(Screen.screenWidth, Screen.screenHeight));\n\n int borderBottom = Screen.screenHeight / 8;\n if (Screen.screenHeight > 1400) {\n borderBottom = Screen.screenHeight / 7;\n }\n\n panel.setBorder(BorderFactory.createEmptyBorder(80, Screen.border, borderBottom, Screen.border));\n panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));\n functions.setPreferredSize(new Dimension(600, 500));\n functions.setLayout(cardLayout);\n }", "public interface GridPanelFactory {\r\n /**\r\n * Creates an instance of the grid panel and initializes it.\r\n *\r\n * @param model is a model instance.\r\n * @return a newly created grid panel.\r\n */\r\n GridPanel create(GridDataModel model);\r\n\r\n /**\r\n * This method creates a data model.<p>\r\n * It's used by the hiearachical grid if there is no data model defined for the cell \r\n * in the parent data model.\r\n *\r\n * @param parentRow is a parent model row.\r\n * @param parentModel is a parent model instance.\r\n * \r\n * @return a data model.\r\n */\r\n GridDataModel create(int parentRow, GridDataModel parentModel);\r\n}", "public CPanel(Application a, Class<? extends CCipher> Type) throws InstantiationException, IllegalAccessException {\n application = a;\n menu = new JPanel();\n content = Type.newInstance();\n hide = new JButton();\n opened = true;\n iClose = createIcon(\"icons:left\");\n iOpen = createIcon(\"icons:right\");\n initObjects();\n }", "public WebpageFactoryImpl() {\n\t\tsuper();\n\t}", "private JPanel getJPanel()\n\t{\n\t\tif (jPanel == null)\n\t\t{\n\t\t\tjPanel = new JPanel();\n\t\t\tjPanel.setLayout(new BorderLayout());\n\t\t\tBorder bdr = BorderFactory.createTitledBorder(\"\");\n\t \tjPanel.setBorder(bdr);\n\t\t\tjPanel.add(getRPFilesPanel(), BorderLayout.CENTER);\n\t\t\tjPanel.add(getJPathPanel(), BorderLayout.NORTH);\n\t\t}\n\t\treturn jPanel;\n\t}", "public WdlFactoryImpl() {\n\t\tsuper();\n\t}", "public interface Factory {\r\n}", "private JPanel getJPanel() {\r\n\t\tif (jPanel == null) {\r\n\t\t\ttitleFieldImage = new JLabel();\r\n\t\t\ttitleFieldImage.setBounds(new Rectangle(480, 75, 280, 60));\r\n\t\t\ttitleFieldImage.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\ttitleFieldImage.setText(\"Image\");\r\n\t\t\ttitleFieldImage.setBackground(new Color(255, 204, 204));\r\n\t\t\tpageInfoLbl = new JLabel();\r\n\t\t\tpageInfoLbl.setBounds(new java.awt.Rectangle(224,480,315,30));\r\n\t\t\tpageInfoLbl.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\tpageInfoLbl.setText(\"\");\r\n\t\t\ttitleFieldName = new JLabel();\r\n\t\t\ttitleFieldName.setBounds(new Rectangle(190, 75, 170, 60));\r\n\t\t\ttitleFieldName.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\ttitleFieldName.setBackground(new Color(255,204,204));\r\n\t\t\ttitleFieldName.setText(\"Field name\");\r\n\t\t\ttitleFieldId = new JLabel();\r\n\t\t\ttitleFieldId.setBounds(new Rectangle(90, 75, 70, 60));\r\n\t\t\ttitleFieldId.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\ttitleFieldId.setBackground(new Color(255,160,204));\r\n\t\t\ttitleFieldId.setText(\"Field ID\");\r\n\t\t\tlblPageName = new JLabel();\r\n\t\t\tlblPageName.setBounds(new Rectangle(10, 40, 120, 20));\r\n\t\t\tlblPageName.setText(\"Page Name\");\r\n\t\t\tjLabel = new JLabel();\r\n\t\t\tjLabel.setBounds(new java.awt.Rectangle(10,10,500,24));\r\n\t\t\tjLabel.setText(\"Select the field you want to add\");\r\n\t\t\tjPanel = new JPanel();\r\n\t\t\tjPanel.setLayout(null);\r\n\t\t\tjPanel.add(jLabel, null);\r\n\t\t\tjPanel.add(getJButton(), null);\r\n\t\t\tjPanel.add(getPageSheet(), null);\r\n\t\t\tjPanel.add(getPreButton(), null);\r\n\t\t\tjPanel.add(getAfterButton(), null);\r\n\t\t\tjPanel.add(lblPageName, null);\r\n\t\t\tjPanel.add(titleFieldId, null);\r\n\t\t\tjPanel.add(titleFieldName, null);\r\n\t\t\tjPanel.add(pageInfoLbl, null);\r\n\t\t\tjPanel.add(titleFieldImage, null);\r\n\t\t\t\r\n\t\t\tJLabel titleFiledType = new JLabel();\r\n\t\t\ttitleFiledType.setText(\"Field Type\");\r\n\t\t\ttitleFiledType.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\ttitleFiledType.setBounds(new Rectangle(10, 75, 90, 60));\r\n\t\t\ttitleFiledType.setBackground(new Color(255, 160, 204));\r\n\t\t\ttitleFiledType.setBounds(360, 75, 120, 60);\r\n\t\t\tjPanel.add(titleFiledType);\r\n\t\t\t\r\n\t\t\tJButton btnSelect = new JButton();\r\n\t\t\tbtnSelect.addActionListener(new ActionListener() {\r\n\t\t\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\treturnValue.clear();\r\n\t\t\t\t\tgrid.freshData();\r\n\t\t\t\t\tList<Map<String, String>> valueList = grid.getValueList();\r\n\t\t\t\t\t\r\n\t\t\t\t\tSelectBean bean = (SelectBean)pageIdSelect.getSelectedItem();\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor (Map<String, String> map : valueList) {\r\n\t\t\t\t\t\tString strSelect = map.get(\"SELECT\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (Boolean.valueOf(strSelect)) {\r\n\t\t\t\t\t\t\tMap<String, String> temp = new HashMap<String, String>(map);\r\n\t\t\t\t\t\t\ttemp.put(\"PAGE_ID\", bean.getCode());\r\n\t\t\t\t\t\t\tString strName = bean.getName();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif (strName.indexOf(\":\") > 0 && strName.length() > strName.indexOf(\":\") + 2) {\r\n\t\t\t\t\t\t\t\tstrName = strName.substring(strName.indexOf(\":\") + 2);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\ttemp.put(\"PAGE_NAME\", strName);\r\n\t\t\t\t\t\t\treturnValue.add(temp);\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\tif (returnValue.size() > 0) {\r\n\t\t\t\t\t\tsetVisible(false);\r\n\t\t\t\t\t\t_parent.addSelectFields(PageSelectDialog.this);\r\n\t\t\t\t\t\tUtils.removeWindow(PageSelectDialog.this);\r\n\t\t\t\t\t\t_parent.setVisible(true);\r\n\t\t\t\t\t\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(PageSelectDialog.this, \"Plese select field!\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t});\r\n\t\t\tbtnSelect.setText(\"Select\");\r\n\t\t\tbtnSelect.setSize(new Dimension(90, 30));\r\n\t\t\tbtnSelect.setLocation(new Point(10, 480));\r\n\t\t\tbtnSelect.setBounds(10, 520, 120, 30);\r\n\t\t\tjPanel.add(btnSelect);\r\n\t\t\t\r\n\t\t\ttitleSelect = new JLabel();\r\n\t\t\ttitleSelect.setText(\"Select\");\r\n\t\t\ttitleSelect.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\ttitleSelect.setBounds(new Rectangle(90, 75, 70, 60));\r\n\t\t\ttitleSelect.setBackground(new Color(255, 160, 204));\r\n\t\t\ttitleSelect.setBounds(10, 75, 80, 60);\r\n\t\t\tjPanel.add(titleSelect);\r\n\t\t\t\r\n\t\t\tpageIdSelect = new JComboBox<DefaultComboBoxModel>();\r\n\t\t\tpageIdSelect.addItemListener(new ItemListener() {\r\n\t\t\t\tpublic void itemStateChanged(ItemEvent e) {\r\n\t\t\t\t\tsearchDetailList();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tpageIdSelect.setBounds(140, 40, 300, 20);\r\n\t\t\tjPanel.add(pageIdSelect);\r\n\t\t}\r\n\t\treturn jPanel;\r\n\t}", "private void createUI() throws FactoryException {\n assert theGame != null;\n assert ghostController != null;\n\n buttonPanel = new ButtonPanel(this);\n buttonPanel.initialize();\n\n pi = new PacmanInteraction(this, theGame);\n pi.addController(ghostController);\n buttonPanel.setListener(pi);\n this.addKeyListener(new PacmanKeyListener(pi));\n\n boardView = createBoardView();\n animator = new Animator(boardView);\n pi.addController(animator);\n\n points = new PointsPanel();\n points.initialize(theGame.getPointManager());\n theGame.attach(points);\n\n JPanel mainGrid = new JPanel();\n mainGrid.setLayout(new BorderLayout());\n mainGrid.setName(\"jpacman.topdown\");\n mainGrid.add(points, BorderLayout.NORTH);\n mainGrid.add(boardView, BorderLayout.CENTER);\n mainGrid.add(buttonPanel, BorderLayout.SOUTH);\n\n getContentPane().add(mainGrid);\n\n int width = Math.max(boardView.windowWidth(), buttonPanel.getWidth());\n int height = boardView.windowHeight() + buttonPanel.getHeight();\n setSize(width, height);\n setGridSize();\n\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n setName(\"jpacman.main\");\n setTitle(\"JPacman\");\n }", "public JPanel createPanel() {\n\t\t\r\n\t\tJPanel mainPanel = new JPanel();\r\n\t\tmainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));\r\n\t\tmainPanel.setBackground(Color.WHITE);\r\n\t\tmainPanel.setBorder(new CompoundBorder(\r\n\t\t\t\tBorderFactory.createLineBorder(new Color(0x3B70A3), 4),\r\n\t\t\t\tnew EmptyBorder(10, 20, 10, 20)));\r\n\r\n\t\t/*\r\n\t\t * Instruction\r\n\t\t */\t\r\n\t\tmainPanel.add(instructionPanel());\r\n\t\t\r\n\t\t\r\n\t\t// TODO: set task order for each group - make first 3 tasks = groups tasks\r\n\t\tmainPanel.add(messagesPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(phonePanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(clockPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(cameraPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\t\r\n\r\n\t\tmainPanel.add(contactPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(galleryPanel());\r\n\t\t\r\n\t\treturn mainPanel;\r\n\t}", "public SettingsPanel() {\n initComponents();\n }", "private JPanel initializePanel() {\n JPanel myPanel = new JPanel();\n //myPanel.setPreferredSize(new Dimension(600,600));\n\n myPanel.setLayout(new GridLayout(8,8));\n myPanel.setSize(600,600);\n myPanel.setLocation(100,100);\n myPanel.setBorder(new LineBorder(Color.BLACK));\n return myPanel;\n }", "public void factoryMainScreen()\n\t{\n\t\t\n\t}", "void createGebruikersBeheerPanel() {\n frame.add(gebruikersBeheerView.createGebruikersBeheerPanel());\n frame.setTitle(gebruikersBeheerModel.getTitle());\n }", "public static JPanel createDemoPanel() {\r\n JFreeChart chart = createChart(createDataset());\r\n ChartPanel panel = new ChartPanel(chart);\r\n panel.setMouseWheelEnabled(true);\r\n return panel;\r\n }" ]
[ "0.67333513", "0.67229617", "0.63923746", "0.6386068", "0.6318389", "0.63137704", "0.6261972", "0.62581563", "0.6214439", "0.62099314", "0.62073845", "0.619093", "0.61827785", "0.6177057", "0.6158212", "0.6157307", "0.6146329", "0.6122573", "0.6122124", "0.60898066", "0.60637426", "0.6063341", "0.6013366", "0.59883314", "0.59836984", "0.5979959", "0.5973684", "0.59606266", "0.5952349", "0.59514904", "0.594637", "0.5945612", "0.59382796", "0.59364086", "0.5933976", "0.59301525", "0.59201145", "0.5915691", "0.59144473", "0.59124833", "0.59076494", "0.5897836", "0.5897836", "0.58896357", "0.58875614", "0.58860356", "0.5882705", "0.58761334", "0.5869965", "0.58514297", "0.5846647", "0.58451766", "0.58428824", "0.5839035", "0.5838035", "0.5834423", "0.58310527", "0.58216625", "0.58170134", "0.58170134", "0.5794787", "0.5764999", "0.5760678", "0.5760109", "0.5755025", "0.57550114", "0.57540846", "0.5753848", "0.57524973", "0.5748784", "0.57429105", "0.5737274", "0.5730012", "0.5719212", "0.5714884", "0.57125825", "0.5710354", "0.57089275", "0.5700177", "0.5700177", "0.5690484", "0.56899303", "0.5685889", "0.56786305", "0.5676363", "0.56727284", "0.567272", "0.5670562", "0.56693256", "0.56655014", "0.56649965", "0.56647015", "0.56617385", "0.565983", "0.5653643", "0.56534666", "0.56486183", "0.56485784", "0.5646063", "0.5645076", "0.5641721" ]
0.0
-1
DON'T EDIT ABOVE THIS LINE!!!
public void onButtonActionEvent(com.codename1.ui.events.ActionEvent ev) { new ListEvent().show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "public void method_4270() {}", "protected boolean func_70814_o() { return true; }", "public void mo38117a() {\n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private void strin() {\n\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void m23075a() {\n }", "private static void cajas() {\n\t\t\n\t}", "protected void mo6255a() {\n }", "public void mo21779D() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "private Rekenhulp()\n\t{\n\t}", "public void mo4359a() {\n }", "public void gored() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "static void feladat9() {\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo21877s() {\n }", "static void feladat7() {\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "public abstract void mo70713b();", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21825b() {\n }", "public void mo3376r() {\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public void mo21787L() {\n }", "public void mo12628c() {\n }", "public void mo21785J() {\n }", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "private void m50367F() {\n }", "public final void mo91715d() {\n }", "public void mo55254a() {\n }", "public abstract void mo56925d();", "static void feladat4() {\n\t}", "public void mo21782G() {\n }", "@Override\n\tpublic void ligar() {\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}", "public void mo97908d() {\n }", "public void mo3749d() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo115190b() {\n }", "static void feladat6() {\n\t}", "public void mo21878t() {\n }", "public void mo23813b() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private void poetries() {\n\n\t}", "protected boolean func_70041_e_() { return false; }", "public void mo21793R() {\n }", "@Override\n protected void initialize() {\n\n \n }", "private void level7() {\n }", "public void mo21791P() {\n }", "@Override\n public int describeContents() { return 0; }", "public void mo6081a() {\n }", "void m1864a() {\r\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 dormir() {\n\t\t\r\n\t}", "public void mo56167c() {\n }", "public static void listing5_14() {\n }", "@Override\n public void init() {\n\n }", "public abstract void mo27386d();", "public void mo44053a() {\n }", "public void mo12930a() {\n }", "@Override\n protected void prot() {\n }", "public void mo21792Q() {\n }", "public abstract void mo27385c();", "public void mo21794S() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "private final zzgy zzgb() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo21781F() {\n }", "static void feladat5() {\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "public void mo21795T() {\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void skystonePos6() {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public void mo6944a() {\n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "public abstract void mo6549b();" ]
[ "0.6608129", "0.64002323", "0.6335223", "0.6321383", "0.62868553", "0.62682956", "0.626696", "0.616993", "0.61664337", "0.6159421", "0.613657", "0.6098686", "0.60801935", "0.6074298", "0.6020478", "0.6007319", "0.59992355", "0.59699553", "0.5969194", "0.59596175", "0.5957877", "0.5955571", "0.5949303", "0.5943494", "0.5943494", "0.5943494", "0.5943494", "0.5943494", "0.5943494", "0.5943494", "0.5936869", "0.59335613", "0.5931365", "0.59151816", "0.59102935", "0.5901359", "0.5900051", "0.5895808", "0.5892864", "0.5887301", "0.58867544", "0.588065", "0.58796984", "0.58773893", "0.58667195", "0.5866442", "0.5866426", "0.586295", "0.58618444", "0.5860296", "0.58498174", "0.5845237", "0.58446455", "0.58409727", "0.58409727", "0.58388233", "0.5835957", "0.58357227", "0.5829685", "0.5818156", "0.5815494", "0.58083874", "0.5807", "0.58065015", "0.58031017", "0.58009857", "0.5799044", "0.57950383", "0.5793329", "0.5788254", "0.5787717", "0.5786393", "0.57792294", "0.57792294", "0.5775951", "0.57736176", "0.57640475", "0.5761151", "0.5759094", "0.5759032", "0.57589", "0.5758046", "0.57550466", "0.57492286", "0.57461524", "0.57458663", "0.5745722", "0.5741701", "0.57405263", "0.5736883", "0.57336086", "0.5727591", "0.5721092", "0.5713562", "0.5708166", "0.57065123", "0.57022566", "0.57022566", "0.5700611", "0.56980944", "0.56964475" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onPageScrollStateChanged(int state) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public boolean onBackPressed() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
team constructor with arguments passed in to add a new team to the database
public team(int teamID, String teamName, String mascot, int games, int wins, int loses) throws SQLException { this.teamID = teamID; this.teamName = teamName; this.mascot = mascot; this.games = games; this.wins = wins; this.loses = loses; conn = DriverManager.getConnection(DB_URL); Statement stmt = conn.createStatement(); stmt.executeUpdate("INSERT INTO Team VALUES (" + this.teamID + ", '" + this.teamName + "', '" + this.mascot + "', " + this.games + ", " + this.wins + ", " + this.loses + ")"); conn.close(); stmt.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void newTeam(Team team);", "Team createTeam();", "void create(Team team);", "public Team(String name) {\n this.name = name;\n }", "public Team() {\n\t\tthis(null);\n\t}", "public Team() {\r\n id = \"\";\r\n abbreviation = \"\";\r\n name = \"\";\r\n conference = \"\";\r\n division = \"\";\r\n address = null;\r\n }", "public Team(String name) {\r\n this.name = name;\r\n team = new ArrayList<Hero>();\r\n }", "public NetworkGame(String team){\n super();\n this.team = team;\n }", "public static void addTeam(TeamForm tf) {\n Team team;\n\n long id = tf.id;\n\n if (!isTeam(id)) {\n team = new Team(tf.teamName, tf.location, tf.teamType, tf.skillLevel, tf.roster, tf.description, tf.imageUrl);\n team.save();\n }\n else {\n team = getTeam(id);\n team.setTeamName(tf.teamName);\n team.setLocation(tf.location);\n team.setTeamType(tf.teamType);\n team.setSkillLevel(tf.skillLevel);\n team.setRoster(tf.roster);\n team.setDescription(tf.description);\n team.setImageUrl(tf.imageUrl);\n team.setWins(tf.wins);\n team.setLosses(tf.losses);\n team.setPointsFor(tf.pointsFor);\n team.setPointsAgainst(tf.pointsAgainst);\n team.save();\n }\n }", "TeamMember(String _name, String _title) {\r\n this.name = _name;\r\n this.title = _title;\r\n }", "void addMyTeam(Team team) throws HasTeamAlreadyException;", "public TeamCoach(){\n }", "public Team(String name) {\n\t\tthis(name, Color.BLACK);\n\t}", "public FootballGame(String team1,String team2,LocalDate matchDate,int teamOneScore,int teamTwoScore){\n this.team1=team1;\n this.team2=team2;\n this.matchDate=matchDate;\n this.teamOneScore=teamOneScore;\n this.teamTwoScore=teamTwoScore;\n\n }", "public Team create(TeamDTO teamForm);", "@Override\r\n\t@Transactional(propagation=Propagation.REQUIRED)\r\n\tpublic void add(Team team) {\n\t\tentityManager.createQuery(\"insert into Team(id, name) values (team.id, team.name)\");\r\n\t}", "public Team insert(League league, String teamName) {\n StandingDB sdb = new StandingDB();\n TeamDB tdb = new TeamDB();\n String teamID = generateTeamID();\n \n Standing standing = new Standing(teamID);\n \n Team team = new Team(teamID, teamName);\n team.setLeagueID(league);\n \n tdb.insert(team);\n sdb.insert(standing);\n return team;\n }", "public TeamStudent() {\r\n\t\t// Default constructor\r\n\t}", "public void addTeam(Team team){\n\t\tthis.teamList.add(team);\n\t}", "public void insertTeam(Team t) {\n\t\tEntityManager em = emfactory.createEntityManager();\n\t\tem.getTransaction().begin();\n\t\tem.persist(t);\n\t\tem.getTransaction().commit();\n\t\tem.close();\n\t}", "public Match(int _id, Date _date, int _goalsA, int _goalsB, ArrayList<Player> _teamA, ArrayList<Player> _teamB){\n super();\n setId(_id);\n setDate(_date);\n setGoalsA(_goalsA);\n setGoalsB(_goalsB);\n setTeamA(_teamA);\n setTeamB(_teamB);\n }", "@Test\r\n\tpublic void saveTeam() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: saveTeam \r\n\t\tTeam team = new wsdm.domain.Team();\r\n\t\tservice.saveTeam(team);\r\n\t}", "public TeamObject(String name) {\n\t\tthis();\t\t//call the first constructor to build the lock buttons\n\t\tteamName = name;\n\t}", "public void setTeam(Team team) {\r\n\t\tthis.team = team;\r\n\t}", "public void createTeam(final Map<String, String> dataTable) {\n team.processInformation(dataTable);\n WebDriverHelper.waitUntil(inputTeamName);\n WebDriverHelper.setElement(inputTeamName, team.getName());\n WebDriverHelper.clickElement(dropDownTeamType);\n selectDropDownOptionByName(team.getType());\n WebDriverHelper.setElement(inputTeamDescription, team.getDescription());\n WebDriverHelper.clickElement(btnContinue);\n WebDriverHelper.waitUntil(btnThisLater);\n WebDriverHelper.clickElement(btnThisLater);\n }", "private void createLeague(){ \r\n FantasyUser maxUser = new FantasyUser();\r\n maxUser.setEmail(\"[email protected]\");\r\n maxUser.setPassword(\"password\");\r\n fUserBean.create(maxUser);\r\n \r\n FantasyUser adrianUser = new FantasyUser();\r\n adrianUser.setEmail(\"[email protected]\");\r\n adrianUser.setPassword(\"password\");\r\n fUserBean.create(adrianUser);\r\n \r\n FantasyUser ashayUser = new FantasyUser();\r\n ashayUser.setEmail(\"[email protected]\");\r\n ashayUser.setPassword(\"password\");\r\n fUserBean.create(ashayUser);\r\n \r\n FantasyUser jessUser = new FantasyUser();\r\n jessUser.setEmail(\"[email protected]\");\r\n jessUser.setPassword(\"password\");\r\n fUserBean.create(jessUser);\r\n \r\n //create league\r\n FantasyLeague league = new FantasyLeague();\r\n league.setDraftStarted(false);\r\n league.setFinishedDraft(false);\r\n league.setLeagueName(\"Mongeese Only\");\r\n league.setLeagueOwner(maxUser);\r\n flBean.create(league);\r\n \r\n //create teams\r\n FantasyTeam maxTeam = new FantasyTeam();\r\n maxTeam.setTeamName(\"Max's Team\");\r\n maxTeam.setTeamOwner(maxUser);\r\n maxTeam.setLeague(league);\r\n ftBean.create(maxTeam);\r\n \r\n FantasyTeam ashayTeam = new FantasyTeam();\r\n ashayTeam.setTeamName(\"Ashay's Team\");\r\n ashayTeam.setTeamOwner(ashayUser);\r\n ashayTeam.setLeague(league);\r\n ftBean.create(ashayTeam);\r\n \r\n FantasyTeam jessTeam = new FantasyTeam();\r\n jessTeam.setTeamName(\"Jess's team\");\r\n jessTeam.setTeamOwner(jessUser);\r\n jessTeam.setLeague(league);\r\n ftBean.create(jessTeam);\r\n \r\n FantasyTeam adrianTeam = new FantasyTeam();\r\n adrianTeam.setTeamName(\"Team Greasy Pizza\");\r\n adrianTeam.setTeamOwner(adrianUser);\r\n adrianTeam.setLeague(league); \r\n ftBean.create(adrianTeam);\r\n }", "public TeamBuildTool(Team team) {\n this.team = team;\n run();\n }", "@WebMethod public Team addTeam(String name) throws TeamAlreadyExists;", "protected Trainer(String tName, ArrayList<Pokemon> pTeam) {\n name = tName;\n team = pTeam;\n }", "public Team(String name, Color color) {\n\t\tthis.teamName = name;\n\t\tthis.color = color;\n\t}", "@Override\n @Transactional\n public Team addTeam(Team team) {\n KeyHolder keyHolder = new GeneratedKeyHolder();\n String sql = \"INSERT INTO Team (teamname, userid) VALUES (?, ?)\";\n\n jdbc.update((Connection connection) -> {\n PreparedStatement prep = connection.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);\n prep.setString(1, team.getName());\n prep.setInt(2, team.getUser().getId());\n return prep;\n }, keyHolder);\n team.setId(keyHolder.getKey().intValue());\n return team;\n }", "public NetworkGame(String team, ArrayList<String> fens){\n super(fens);\n this.team = team;\n }", "public void addTeam(Team team) {\n int maxTotalTeamsCurrentlyAllowed = getTotalPlayersInLeague();\n\n // If a team has been created\n if(getTeams().size() != 0) {\n\n float greatestPlayerCount;\n // if the number of players on the largest team is not equal to zero\n if((greatestPlayerCount = (float) getTeamWithMostPlayers().getPlayerCount()) != 0) {\n\n // Get the sum of all the players in the league\n float totalLeaguePlayers = (float) getTotalPlayersInLeague();\n\n // divide the total players in league by number of players in largest team, rounded down\n float totalTeamsAllowedFloat = totalLeaguePlayers / greatestPlayerCount;\n\n // cast into double for Math.floor method\n double totalTeamsAllowedDouble = (double) totalTeamsAllowedFloat;\n\n // cast into integer for comparison\n maxTotalTeamsCurrentlyAllowed = (int) Math.floor(totalTeamsAllowedDouble);\n }\n\n }\n\n // If we're requesting to make more teams than the current max allowed, throw exception\n if (getTeams().size() < maxTotalTeamsCurrentlyAllowed) {\n teams.add(team);\n } else {\n throw new IndexOutOfBoundsException(\"Not enough players for a new team\");\n }\n\n }", "public SoccerPlayer(String name, String position, TeamDB team){\n\n// Random num = new Random();\n// int randInt1;\n// int randInt2;\n// int randInt3;\n// int randInt4;\n//\n// randInt1 = num.nextInt(10); //fix for height and weight.\n// randInt2 = num.nextInt(190);\n// randInt3 = num.nextInt(300);\n// randInt4 = num.nextInt(10);\n\n playerName = name;\n playerPosition = position;\n playerTeam = new TeamDB(\"\");\n// playerUniform = randInt1;\n// playerHeight = randInt2;\n// playerWeight = randInt3;\n// playerGoals = randInt4;\n }", "@Override\n\tpublic void insertProjectTeam(ProjectTeamBean projectTeamBean) {\n\t\t\n\t}", "public void insertTeam(Team team) {\n\t\ttry {\n\t\t\tStatement statement = null;\n\t\t\tconnection = connector.getConnection();\n\t\t\tstatement = connection.createStatement();\n\t\t\tjava.sql.Date tDate = new java.sql.Date(team.getDateFoundation().getTime());\n\t\t\tString insertTeam_sql = \"INSERT INTO \" + team_table + \" (id, name, coach, city, dateFoundation)\"\n\t\t\t\t\t+ \"VALUES (NULL, '\" + team.getName() + \"' , '\" + team.getCoach() + \"' , '\" + team.getCity()\n\t\t\t\t\t+ \"' , '\" + tDate + \"')\";\n\t\t\tstatement.executeUpdate(insertTeam_sql);\n\t\t} catch (SQLException e) {\n\t\t\tif (e.getErrorCode() == MYSQL_DUPLICATE_PK) {\n\t\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\t\talert.setTitle(\"Error\");\n\t\t\t\talert.setHeaderText(\"Duplicity Error\");\n\t\t\t\talert.setContentText(\"This team is already in our database\");\n\t\t\t\talert.showAndWait();\n\t\t\t} else {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t}\n\t}", "public Team(String name, List<Player> players) {\n this.name = name;\n this.players = players;\n }", "@Override\r\n\tpublic ResultMessage addTeam(TeamPO oneTeam) {\n\t\treturn teams.addTeam(oneTeam) ;\r\n\t}", "@Override\n\tpublic void insertProjectTeam(ProjectTeamBean bean) {\n\t\t\n\t}", "@PostMapping(path=\"/add/{id}/team\")\n public @ResponseBody Object assignTeamMember(@PathVariable long id, @RequestParam Team team){\n TeamMember tm = teamMemberRepository.getOne(id);\n tm.setTeam(team); // Retrieving the list of team members and adding new team member\n return teamMemberRepository.saveAndFlush(tm);\n }", "public void setTeam(String team) {\r\n\t\tTeam = team;\r\n\t}", "public Team(ArrayList<String> input)\n\t{\n\t\tthis.piece = new Piece(input.get(1),input.get(2),input.get(3));\n\t\tthis.year = Integer.parseInt(input.get(4));\n\t\tint lastIndex = input.indexOf(null);\n\t\tint currentIndex = 5;\n\t\tthis.members = new ArrayList<Person>();\n\t\twhile(currentIndex<lastIndex)\n\t\t{\n\t\t\tthis.addMember(new Person(input.get(currentIndex),input.get(++currentIndex),input.get(++currentIndex)));\n\t\t\tcurrentIndex++;\n\t\t}\n\t}", "public void setTeam(String team) {\n\t\tthis.team = team;\n\t}", "public Team( TeamColor color,Map map)\n\t{\n\t\tthis.nbCharacter = DEFAULT_NB_CHARACTER;\n\t\tthis.listCharacter = new Character[this.nbCharacter];\n\t\tthis.colorTeam = color;\t\n\t\tfor(int nbCharacterCreated =0; nbCharacterCreated<this.nbCharacter;nbCharacterCreated++)\n\t\t{\n\t\t\tthis.listCharacter[nbCharacterCreated] = new Character(this,map,nbCharacterCreated+1);\n\t\t}\n\t\tthis.actionPointLeft = DEFAULT_ACTION_POINT;\n\t}", "public Researcher(int ID, int Protection_rating, int Allowable_hours, \n int Code_of_project_team, String Name_of_project_team)\n {\n super(ID, Protection_rating, Allowable_hours);\n this.code_of_project_team = Code_of_project_team;\n this.name_of_project_team = Name_of_project_team;\n }", "public Match(Team home, Team away)\n {\n // initialise instance variables\n setsWonHT = 0; \n setsWonAT = 0;\n home = home;\n away = away;\n }", "public FightTeam team();", "@RequestMapping(value = \"/team/{league}\", method = POST, consumes = MEDIA_JSON)\n @ResponseStatus(CREATED)\n public LobbyTeam createTeamAndEnter(@AuthenticationPrincipal UserSimpleDetails user,\n @PathVariable(\"league\") LobbyLeagueEnum league)\n throws TeamFullException, TeamNotFoundException {\n log.info(\"user {} creates team\", user.getIdentity());\n LobbyTeam team = lobbyService.createTeam(user.getProfileId(), league);\n return lobbyService.enterIntoTeam(user.getProfileId(), team.getId().toString());\n }", "Node(Team v){\r\n value = v;\r\n }", "public static void main(String[] args) {\n Sport Football = new Sport(\"Football\"); //Creating instance of Sport class (Creating football sport)\n Football RM = new Football(\"RealMadrid\"); //Creating instance of Football class (Creating football team)\n Football Monaco = new Football(\"Monaco\");//Creating instance of Football class (Creating football team)\n Football Barca = new Football(\"Barca\");//Creating instance of Football class (Creating football team)\n Football Liverpool = new Football(\"Liverpool\");//Creating instance of Football class (Creating football team)\n\n League<Football> footballLeague = new League<>(\"Football\"); //Creating arraylist with objects from Football class (Creating league)\n footballLeague.addTeamToLeague(RM); //adding team to league\n footballLeague.addTeamToLeague(Monaco);\n footballLeague.addTeamToLeague(Barca);\n footballLeague.addTeamToLeague(Liverpool);\n footballLeague.displayLeague(); //display all teams from football league\n\n System.out.println();\n\n Sport Hockey = new Sport(\"Hockey\"); //The same for hockey\n Hockey CB =new Hockey(\"Chicago Bulls\");\n Hockey CSKA =new Hockey(\"CSKA\");\n Hockey Sparta =new Hockey(\"Sparta\");\n Hockey RB =new Hockey(\"Red Bull\");\n Hockey GK =new Hockey(\"German Knights\");\n League<Hockey> hockeyLeague = new League<>(\"Hockey\");\n hockeyLeague.addTeamToLeague(CB);\n hockeyLeague.addTeamToLeague(CSKA);\n hockeyLeague.addTeamToLeague(Sparta);\n hockeyLeague.addTeamToLeague(RB);\n hockeyLeague.addTeamToLeague(GK);\n hockeyLeague.displayLeague();\n }", "@Override\n public void addTeamIdentifier(TeamIdentifier teamIdentifier) {\n }", "public Team(String teamName, int manSpriteId, int kingSpriteId, int forward) {\n mTeamName = teamName;\n Pieces = new ArrayList<Piece>();\n mManSpriteId = manSpriteId;\n mKingSpriteId = kingSpriteId;\n mForward = forward;\n }", "public Leagues() {\n }", "public static void createNewLeague()\n\t{\n\t\t//put code to get input from end-user here.\n\t\t//generateFixtures(leagueName, teamAmount, homeAndAway, winPoints, drawPoints, lossPoints, teamNames);\n\t}", "public void createTeam(ActionEvent actionEvent) throws IOException, SQLException {\n if (validCreateInput()) {\n user = DatabaseManager.createTeam(user, teamNameCreateField.getText(), abbrevationCreateField.getText(), chooseCityBoxCreate.getValue().toString(),\n chooseAgeGroupCreate.getValue(), chooseLeagueBoxCreate.getValue().toString(), chooseLeagueTeamBoxCreate.getValue().toString(), createTeamLogoFile);\n\n createPaneClose(actionEvent);\n displayMessage(messagePane, \"Team created\", false);\n }\n }", "public ProjectTeamInputSource(ProjectTeam projectTeam) {\r\n this.projectTeam = projectTeam;\r\n }", "public void setTeam(String team) {\n\t\tthis.teamOfPlayer = team;\n\t}", "public Pegasus(Team team) {\r\n\t\tsuper();\r\n\t\t\r\n\t\thealth = 100;\r\n\t\t\r\n\t\tattackRange[0] = 10; //Lower bound for attack damage\r\n\t\tattackRange[1] = 15; //Upper bound for attack damage\r\n\t\t\r\n\t\tattackDistance = 1; //Melee unit\r\n\t\t\r\n\t\tdefenseRange[0] = 0; //Lower bound for defense\r\n\t\tdefenseRange[1] = 10; //Upper bound for defense\r\n\t\t\r\n\t\tmoveDistanceRemaining = 3; //Can moves 3 tiles per turn - very mobile character\r\n\t\t\r\n\t\tisDefended = false;\r\n\t\thasAttackedOrDefended = false;\r\n\t\t\r\n\t\tthis.team = team;\r\n\t\t\r\n\t\tspriteFileName = \"assets/pegasus_\"+ this.team +\".png\";\r\n\r\n\t}", "public TeamInfo(TeamInfo other) {\n __isset_bitfield = other.__isset_bitfield;\n this.teamId = other.teamId;\n if (other.isSetTeamName()) {\n this.teamName = other.teamName;\n }\n this.teamPrice = other.teamPrice;\n if (other.isSetSource()) {\n this.source = other.source;\n }\n this.teamInventory = other.teamInventory;\n }", "public TeamStudent(TeamStudentPK id) {\r\n\t\tthis.id = id;\r\n\t}", "public TeamBuildTool(String name) {\n team = new Team(name);\n run();\n }", "public void cmdAddTeam(User teller, String teamCode) {\n Team team = tournamentService.findTeam(teamCode);\n if (team != null) {\n command.tell(teller, \"A team with name {0} already exists.\", teamCode);\n return;\n }\n try {\n team = tournamentService.createTeam(teamCode);\n } catch (InvalidNameException e) {\n replyError(teller, e);\n return;\n }\n tournamentService.flush();\n command.tell(teller, \"Done. Team {0} has now been created.\", team.getTeamCode());\n command.tell(teller, \"To set the team name, use: \\\"set-team {0} name New York Giants\\\"\", team.getTeamCode());\n cmdShowTeam(teller, team);\n }", "public BoardMember(int yearsWorked)\r\n\t{\r\n\t\tsuper(yearsWorked);\r\n\t}", "public void setTeamId(int value) {\n this.teamId = value;\n }", "public void addTeam(final TeamController team) {\r\n\t\tteamList.add(team);\r\n\t}", "Team getMyTeam();", "public Team(String dName, int dTeamNumber, int dRookieYear) {\n\t\tthis.name = dName;\n\t\tthis.teamNumber = dTeamNumber;\n\t\tthis.members = new ArrayList<>();\n\t\tthis.rookieYear = dRookieYear;\n\t}", "public Team getTeam() {\n Team team = new Team();\n team.setTeamName(this.getTeamNameDataLabel().getText());\n team.setCaptain(this.getCaptainDataLabel().getText());\n if (this.getCoachDataLabel().equals(\"\")) {\n team.setCoach(null);\n } else {\n team.setCoach(this.getCoachDataLabel().getText());\n }\n if (this.getAchievementsDataLabel().equals(\"\")) {\n team.setAchievements(null);\n } else {\n team.setAchievements(this.getAchievementsDataLabel().getText());\n }\n return team;\n }", "public Team(int nb, TeamColor color,Map map)\n\t{\n\t\tthis.nbCharacter = nb;\n\t\tthis.listCharacter = new Character[this.nbCharacter];\n\t\tthis.colorTeam = color;\n\t\tfor(int nbCharacterCreated =0; nbCharacterCreated<this.nbCharacter;nbCharacterCreated++)\n\t\t{\n\t\t\tthis.listCharacter[nbCharacterCreated] = new Character(this, map,nbCharacterCreated+1);\n\t\t}\n\t\tthis.actionPointLeft = DEFAULT_ACTION_POINT;\n\t}", "Team findByName(String name);", "public static void addTeamLeader(Scanner input, ArrayList<Employee> newEmployee){\n \n TeamLeader newTeamLeader = new TeamLeader();\n \n String empNumber, empHireDate, monthlyBonus, trainingHours, payRate, shift, requiredTrainingHours;\n int shiftNum;\n \n System.out.print(\"Please enter the employee's first and last name: \");\n newTeamLeader.setName(input.nextLine());\n System.out.print(\"Please enter the new employee's Employee Number.\\nThe Employee Number must match XXX-L including the dash where X is a digit and L is a letter A-M: \");\n empNumber = input.nextLine();\n newTeamLeader.setNumber(verifyEmpNum(input, empNumber));\n System.out.print(\"Please enter the new employee's hire date.\\nMake sure the date you enter matches IX/XX/XXXX including the slashes\\nwhere I is a 0 or 1 and X is a digit 0-9: \");\n empHireDate = input.nextLine();\n newTeamLeader.setDate(verifyHireDate(input, empHireDate));\n System.out.print(\"Please enter the Production Team Leader's shift, 1 for day shift and 2 for night shift: \");\n shift = input.nextLine();\n shiftNum = UtilityMethods.verifyInt(input, shift);\n newTeamLeader.setShift(verifyShift(input, shiftNum));\n System.out.print(\"Please enter the pay rate of the Production Team Leader as a double: \");\n payRate = input.nextLine();\n newTeamLeader.setPayRate(UtilityMethods.verifyDouble(input, payRate));\n System.out.print(\"Please enter the monthly bonus that the Team Leader could receive: \");\n monthlyBonus = input.nextLine();\n newTeamLeader.setMonthlyBonus(UtilityMethods.verifyDouble(input, monthlyBonus));\n System.out.print(\"Please enter the number of training hours that the Team Leader requires as an integer: \");\n requiredTrainingHours = input.nextLine();\n newTeamLeader.setRequiredTrainingHours(UtilityMethods.verifyInt(input, requiredTrainingHours));\n System.out.print(\"Please enter the number of hours that the Team Leader has already acquired: \");\n trainingHours = input.nextLine();\n newTeamLeader.setTrainingHours(UtilityMethods.verifyInt(input, trainingHours));\n \n newEmployee.add(newTeamLeader);\n }", "public FragmentTeam() {\n // Required empty public constructor\n }", "public static ProjectTeam createSampleProjectTeam() {\n ProjectTeam team = new ProjectTeam();\n team.setProjectName(\"Rule the Galaxy\");\n team.addMember(new ProjectMember(\n \"Emperor Palpatine\", \"lead\", \"[email protected]\"));\n team.addMember(new ProjectMember(\n \"Lord Darth Vader\", \"Jedi-Killer\", \"[email protected]\"));\n team.addMember(new ProjectMember(\n \"Grand Moff Tarkin\", \"Planet-Killer\", \"[email protected]\"));\n team.addMember(new ProjectMember(\n \"Admiral Motti\", \"Death Star operations\", \"[email protected]\"));\n return team;\n }", "int insert(SysTeam record);", "public void createTeamMemberEntity(String fName, String lname, String gamertag, int age,\n String gender, String position, String mainChampion) {\n LOGGER.fine(\"Creating TeamMember object\");\n\n TeamMember player = new TeamMember();\n player.setfName(fName);\n player.setlName(lname);\n player.setGamertag(gamertag);\n player.setAge(age);\n Gender genderEnum = Gender.valueOf(gender);\n player.setGender(genderEnum);\n Position positionEnum = Position.valueOf(position);\n player.setPosition(positionEnum);\n player.setMainChampion(mainChampion);\n\n LOGGER.fine(\"Persisting TeamMember object to DB\");\n this.entityManager.persist(player);\n\n }", "public static Team createEntity(EntityManager em) {\n Team team = new Team().name(DEFAULT_NAME).description(DEFAULT_DESCRIPTION)\n .level(DEFAULT_LEVEL).totalMember(DEFAULT_TOTAL_MEMBER)\n .extraGroupName(DEFAULT_EXTRA_GROUP_NAME)\n .extraGroupDescription(DEFAULT_EXTRA_GROUP_DESCRIPTION)\n .extraGroupTotalMember(DEFAULT_EXTRA_GROUP_TOTAL_MEMBER);\n return team;\n }", "public void addingPlayedMatch() throws IOException {\n\n displayStatistics();\n Scanner scn = new Scanner(System.in);\n System.out.println(\"Enter date (dd.mm.yyyy): \");\n String scanned = scn.nextLine();\n Date date;\n try {\n date = new SimpleDateFormat(\"dd.mm.yyyy\").parse(scanned);\n } catch (ParseException ex) {\n System.out.println(\"date should in this format!!! >> mm-dd-yyyy\");\n return;\n }\n System.out.println(\"Enter Team 1: \");\n scanned = scn.nextLine();\n FootballClub team1 = null;\n for (FootballClub club : footballClubArrayList) {\n if (club.getClubName().equals(scanned))\n team1 = club;\n }\n if (team1 == null) {\n System.out.println(\"Wrong club name!!!\");\n return;\n }\n System.out.println(\"Enter Team 2: \");\n scanned = scn.nextLine();\n FootballClub team2 = null;\n for (FootballClub club : footballClubArrayList) {\n if (club.getClubName().equals(scanned))\n team2 = club;\n }\n if (team2 == null) {\n System.out.println(\"Wrong club name!!!\");\n return;\n }\n\n System.out.println(\"Team 1 goals: \");\n scanned = scn.nextLine();\n int team1Goal = -1;\n try {\n team1Goal = Integer.parseInt(scanned);\n } catch (Exception e) {\n }\n if (team1Goal == -1) {\n System.out.println(\"Enter the number of goals\");\n return;\n }\n\n System.out.println(\"Team 2 goals: \");\n scanned = scn.nextLine();\n int team2Goal = -1;\n try {\n team2Goal = Integer.parseInt(scanned);\n } catch (Exception e) {\n }\n if (team2Goal == -1) {\n System.out.println(\"Enter the number of goals\");\n return;\n }\n\n\n Match match = new Match(date,team1,team2,team1Goal,team2Goal); //setting variables when user enter number of goals\n match.setDate(date);\n match.setTeam1(team1);\n match.setTeam2(team2);\n match.setTeam1Goal(team2Goal);\n match.setTeam2Goal(team1Goal);\n matchArrayList.add(match);\n team1.setNumOfGoalsScored(team1.getNumOfGoalsScored() + team1Goal);\n team2.setNumOfGoalsScored(team2.getNumOfGoalsScored() + team2Goal);\n team1.setNumOfGoalsReceived(team1.getNumOfGoalsReceived() + team2Goal);\n team2.setNumOfGoalsReceived(team2.getNumOfGoalsReceived() + team1Goal);\n team1.setNumOfMatchesPlayed(team1.getNumOfMatchesPlayed() + 1);\n team2.setNumOfMatchesPlayed(team2.getNumOfMatchesPlayed() + 1);\n\n if (team1Goal > team2Goal) {\n team1.setNumOfPoints(team1.getNumOfPoints() + 3);\n team1.setNumOfWins(team1.getNumOfWins() + 1);\n team2.setNumOfDefeats(team2.getNumOfDefeats() + 1);\n } else if (team1Goal < team2Goal) {\n team2.setNumOfPoints(team2.getNumOfPoints() + 3);\n team2.setNumOfWins(team2.getNumOfWins() + 1);\n team1.setNumOfDefeats(team1.getNumOfDefeats() + 1);\n } else {\n team1.setNumOfPoints(team1.getNumOfPoints() + 1);\n team2.setNumOfPoints(team2.getNumOfPoints() + 1);\n team1.setNumOfDraws(team1.getNumOfDraws() + 1);\n team2.setNumOfDraws(team2.getNumOfDraws() + 1);\n }\n\n FileOutputStream fis = new FileOutputStream(\"clubData.txt\");\n ObjectOutputStream oos = new ObjectOutputStream(fis);\n oos.writeObject(footballClubArrayList);\n oos.close();\n fis.close();\n\n displayStatistics();\n matchArrayList.add(new Match(date, team1, team2, team1Goal, team2Goal));\n\n\n try {\n FileOutputStream fileOut = new FileOutputStream(\"matchData.txt\");\n ObjectOutputStream objectOut = new ObjectOutputStream(fileOut);\n objectOut.writeObject(matchArrayList);\n objectOut.close();\n fileOut.close();\n System.out.println(\"Match added Successfully\");\n\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n\n }", "public TeamD() {\n super.name = \"Delta\";\n super.section = 7;\n }", "public void setTeams(Collection<Team> teams) {\r\n this.teams = teams;\r\n }", "Team findById(Long id);", "public Player(String name,String birthdate,int height,int goal,String clubName,String role){\r\n this.name = name;\r\n this.birthdate = birthdate;\r\n this.height = height;\r\n this.goal = goal;\r\n this.clubName = clubName;\r\n this.role = role;\r\n }", "@Override\n public void addToModel() {\n for (final Person person : team.observableTeamMembers()) {\n person.setTeam(team);\n }\n\n // Add team to project\n organisation.getTeams().add(team);\n }", "@Test\n public void testAddPlayer() {\n System.out.println(\"addPlayer\");\n Player player = new Player(\"New Player\");\n Team team = new Team();\n team.addPlayer(player);\n assertEquals(player, team.getPlayers().get(0));\n }", "public TeamInfo(ArrayList<Student> studentList) {\r\n this.studentList = studentList;\r\n }", "public Builder setTeam(int value) {\n bitField0_ |= 0x00000004;\n team_ = value;\n onChanged();\n return this;\n }", "private void initTableTeams(Connection db_connection) throws SQLException {\n //System.out.printf(\"Adding records to the table *teams*.%n\");\n /*\n * Use PreparedStatement as a template.\n */\n String sql = \"INSERT INTO teams VALUES (?, ?, ?, ?, ?, ?);\";\n PreparedStatement statement_prepared = db_connection.prepareStatement(sql);\n statement_prepared.setString(2, \"Atlanta Hawks\");\n statement_prepared.setString(3, \"East\");\n statement_prepared.setString(4, \"Southeast\");\n statement_prepared.setString(5, \"Philips Arena\");\n statement_prepared.setString(6, \"1\"); // Atlanta\n statement_prepared.addBatch();\n statement_prepared.setString(2, \"Boston Celtics\");\n statement_prepared.setString(3, \"East\");\n statement_prepared.setString(4, \"Atlantic\");\n statement_prepared.setString(5, \"TD Garden\");\n statement_prepared.setString(6, \"2\"); // Boston\n statement_prepared.addBatch();\n statement_prepared.setString(2, \"Los Angeles Clippers\");\n statement_prepared.setString(3, \"West\");\n statement_prepared.setString(4, \"Pacific\");\n statement_prepared.setString(5, \"Staples Center\");\n statement_prepared.setString(6, \"4\"); // Los Angeles\n statement_prepared.addBatch();\n statement_prepared.setString(2, \"Los Angeles Lakers\");\n statement_prepared.setString(3, \"West\");\n statement_prepared.setString(4, \"Pacific\");\n statement_prepared.setString(5, \"Staples Center\");\n statement_prepared.setString(6, \"4\"); // Los Angeles\n statement_prepared.addBatch();\n /*\n * Commit once the whole batch is executed.\n */\n db_connection.setAutoCommit(false);\n statement_prepared.executeBatch();\n db_connection.setAutoCommit(true);\n }", "public Teams() {\n initComponents();\n }", "public RepositoryAssignment()\r\n\t{\r\n\t\tteamMembers = new ArrayList<String>();\r\n\t}", "public Team(String name, int rank, int score) {\n this.name = name;\n this.rank = rank;\n this.score = score;\n }", "public Arena() \r\n {\r\n setVenueName(\"\");\r\n setCity(\"\");\r\n setState(\"\");\r\n setMaxCapacity(0);\r\n setYearOpened(0);\r\n team = new Tenant();\r\n }", "@Override\n\tpublic void setTeam(int i) {\n\t\t\n\t}", "private void addTeam(String teamName, String prefix, String suffix) {\n String trimmedTeamName = trimString(teamName);\n\n // If the team already exists, skip adding it.\n if (teamExist(trimmedTeamName)) return;\n\n // Register the new team\n Team team = scoreboard.registerNewTeam(trimmedTeamName);\n\n // Set the prefix.\n if (prefix != null && !prefix.isEmpty()) {\n team.setPrefix(prefix);\n }\n\n // Set ths suffix.\n if (suffix != null && !suffix.isEmpty()) {\n team.setSuffix(suffix);\n }\n }", "protected abstract void gatherTeam();", "public AI(Board b, Team t) {\n\t\tresetBoard(b, t);\n\t}", "String createTeam(String userName, String teamName, Set<String> members) throws RemoteException, InterruptedException;", "public Teacher() {}", "@Test\r\n\tpublic void saveTeamTeamplayerses() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: saveTeamTeamplayerses \r\n\t\tInteger teamId_7 = 0;\r\n\t\tTeamplayers related_teamplayerses = new wsdm.domain.Teamplayers();\r\n\t\tTeam response = null;\r\n\t\tresponse = service.saveTeamTeamplayerses(teamId_7, related_teamplayerses);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: saveTeamTeamplayerses\r\n\t}", "public void setTeamId(String teamId) {\r\n\t\tthis.teamName = teamId;\r\n\t}", "public boolean addTeam(T team){\n if (teams.contains(team)){\n System.out.println(\"Cant add team is allready in the league list.\");\n return false;\n }else{\n teams.add(team);\n return true;\n }\n }", "public void setTeamName(String teamName) {\r\n this.teamName = teamName;\r\n }" ]
[ "0.7789264", "0.76729524", "0.76093256", "0.72660536", "0.7241614", "0.72267145", "0.71978647", "0.71859217", "0.69781184", "0.6923709", "0.68689513", "0.68370074", "0.67076474", "0.6677188", "0.65714556", "0.6534122", "0.64542556", "0.64248437", "0.6353128", "0.6333273", "0.63294464", "0.63116556", "0.6290608", "0.62846524", "0.6283534", "0.6239085", "0.62338233", "0.6223862", "0.6219555", "0.62096035", "0.62050134", "0.6191057", "0.6179374", "0.6178995", "0.6161998", "0.6156657", "0.6149575", "0.61383", "0.6132703", "0.6131988", "0.6074223", "0.60672307", "0.605312", "0.60355043", "0.6022071", "0.5998733", "0.59893095", "0.59680223", "0.59584415", "0.59121954", "0.5901371", "0.5884366", "0.58705366", "0.5866317", "0.5864705", "0.5859993", "0.5824694", "0.5821419", "0.58214104", "0.58196294", "0.5791756", "0.5784536", "0.57667327", "0.5764503", "0.5753184", "0.57482845", "0.57478565", "0.57228935", "0.57203346", "0.5720083", "0.5718505", "0.57082444", "0.570512", "0.57048315", "0.5688417", "0.56749123", "0.5667752", "0.56465197", "0.56431687", "0.56406033", "0.5586693", "0.5558563", "0.55543345", "0.55523056", "0.55388933", "0.55227786", "0.5522733", "0.55198914", "0.5513708", "0.5501193", "0.5494798", "0.5474165", "0.5438537", "0.5415305", "0.54047906", "0.5404766", "0.53921276", "0.5374432", "0.53555125", "0.5354759" ]
0.67939854
12
method to return all team names from the database.
public String[] getTeamNames() throws SQLException { // Create a connection to the database. conn = DriverManager.getConnection(DB_URL); // Create a Statement object for the query. Statement stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY); // Execute the query. ResultSet resultSet = stmt.executeQuery("SELECT teamName FROM Team"); // Get the number of rows resultSet.last(); // Move to the last row int numRows = resultSet.getRow(); // Get the current row number resultSet.first(); // Move back to the first row // Create an array for the team names. String[] names = new String[numRows]; // Populate the array with team names. for (int index = 0; index < numRows; index++) { // Store the team name in the array. names[index] = resultSet.getString(1); System.out.println(names[index]); // Go to the next row in the result set. resultSet.next(); } // Close the statement object. stmt.close(); return names; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ResultSet getTeamNames() {\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString teamNamesRecords_sql = \"SELECT name FROM \" + team_table;\n\t\tconnection = connector.getConnection();\n\t\ttry {\n\t\t\tstatement = connection.prepareStatement(teamNamesRecords_sql);\n\t\t\trs = statement.executeQuery();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn rs;\n\t}", "public List<Team> getAll() {\n TeamDB tdb = new TeamDB();\n List<Team> teams = tdb.getAll();\n for (Team t : teams) {\n String teamName = t.getTeamName();\n teamName = teamName.replace(\"'\", \"\\\\\\'\");\n t.setTeamName(teamName);\n System.out.println(t.getTeamName());\n }\n return teams;\n }", "@Override\r\n\tpublic List<String> getAllTeam() {\n\t\treturn dao.getAllTeam();\r\n\t}", "@Override\n\tpublic List<String> getTeamNames(Integer id) {\n\t\treturn null;\n\t}", "public String[] getTeamNames()\r\n\t{\r\n\t\t\r\n\t\tString[] names = new String[NUM_TEAMS];\r\n\t\t\r\n\t\tfor(int i = 0; i < teams.size(); i++)\r\n\t\t{\r\n\t\t\tnames[i] = teams.get(i).getName();\t\r\n\t\t}\r\n\r\n\t\treturn names;\r\n\t}", "@Override\n\tpublic List<TeamInfo> findAll() {\n\t\treturn repository.findAll();\n\t}", "public List<String> getSports(String name){\r\n\t\tList<String> list = new ArrayList<String>();\r\n\t\tConnection conn = DBConnect.getConnection();\r\n\t\tString sql = \"select sports_name from team where delegation_name= '\" + name + \"'\";\r\n\t\ttry {\r\n\t\t\tPreparedStatement pst = conn.prepareStatement(sql);\r\n\t\t\tResultSet rst = pst.executeQuery();\r\n\t\t\twhile(rst.next()) {\r\n\t\t\t\tString team = rst.getString(\"sports_name\");\r\n\t\t\t\tlist.add(team);\r\n\t\t\t}\r\n\t\t\trst.close();\r\n\t\t\tpst.close();\r\n\t\t}catch (SQLException e) {\r\n\t\t\t// TODO: handle exception\r\n e.printStackTrace();\t\t\t\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "public List<Team> getAllByLeague(League leagueID) {\n TeamDB tdb = new TeamDB();\n List<Team> teams = tdb.getAllByLeague(leagueID);\n for (Team t : teams) {\n String teamName = t.getTeamName();\n teamName = teamName.replace(\"'\", \"\\\\\\'\");\n t.setTeamName(teamName);\n System.out.println(t.getTeamName());\n }\n return teams;\n }", "public List<Team> getAllTeams() { \r\n\t\t\tif(teams==null)\t{\r\n\t\t\t\tteams=dao.listTeams(); //LIST\t\t\t\r\n\t\t\tfor(Team atemp:teams){\t\t\tthis.mapTeam.put(atemp.getTeam(), atemp);\t\t}\r\n\t\t\t\t}\r\n\t\t\treturn teams;\r\n\t\t}", "List<Team> findAll();", "public static String[] getAllNames(){\n int size = getCountofPeople();\n String[] names = new String[size];\n\n try (Connection con = DriverManager.getConnection(url, user, password)){\n String query = \"SELECT name FROM \"+DATABASE_NAME+\".People;\";\n Statement st = con.createStatement();\n ResultSet rs = st.executeQuery(query);\n int i = 0;\n\n while (rs.next()) {\n names[i] = rs.getString(1);\n i++;\n }\n \n con.close();\n }catch (SQLException ex) {\n ex.printStackTrace();\n } \n\n return names;\n }", "public static List<String> getAllTeams() throws URISyntaxException, IOException {\n HttpClient httpClient = HttpClientBuilder.create().build();\n URIBuilder uriBuilder = new URIBuilder();\n //http://api.football-data.org/v2/teams/\n uriBuilder.setScheme(\"http\").setHost(\"api.football-data.org\").setPath(\"v2/teams/\");\n HttpGet httpGet = new HttpGet(uriBuilder.build());\n httpGet.setHeader(\"X-Auth-Token\",\"7cf82ca9d95e498793ac0d3179e1ec9f\");\n httpGet.setHeader(\"Accept\",\"application/json\");\n HttpResponse response = httpClient.execute(httpGet);\n ObjectMapper objectMapper = new ObjectMapper();\n TeamsPojo pojo = objectMapper.readValue(response.getEntity().getContent(),TeamsPojo.class);\n List<String> willBeReturned = new ArrayList<>();\n List<Teams> teams = pojo.getTeams();\n for (int i =0 ; i<teams.size();i++){\n willBeReturned.add(teams.get(i).getName());\n }\n\n\n return willBeReturned;\n }", "public static List<Team> getTeams() {\n return find().all();\n }", "public ResultSet getTeams() throws SQLException {\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString teamRecords_sql = \"SELECT * FROM \" + team_table;\n\t\tconnection = connector.getConnection();\n\t\tstatement = connection.prepareStatement(teamRecords_sql);\n\t\trs = statement.executeQuery();\n\t\treturn rs;\n\t}", "public void retrieveAllTeamsFromDatabase(String dbMemberName) {\n\n DatabaseReference dbReference = FirebaseDatabase.getInstance().getReference().child(dbMemberName);\n Log.d(\">>>>>\", \"Starting method\");\n isTeamsRetrieved = false;\n// teamsList.clear();\n\n dbReference.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n teamsList.clear();\n Log.d(\">>>>>\", \"On 1 st method\");\n for (DataSnapshot postSnapshot : snapshot.getChildren()) {\n Log.d(\">>>>>\", \"On 2 nd method\");\n team = postSnapshot.getValue(Team.class);\n teamsList.add(team);\n\n // here you can access to name property like university.name\n System.out.println(\">>>>> Retrieving team -> \" + team);\n\n if (!isTeamsRetrieved) {\n isTeamsRetrieved = true;\n }\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n System.out.println(\"The read failed: \" + databaseError.getMessage());\n }\n });\n }", "public List<Team> getAllOrdered() {\n TeamDB tdb = new TeamDB();\n return tdb.getAllOrdered();\n }", "public ArrayList<Team> populateDefaultTeams() {\n\t\t\n\t\t///\n\t\t/// declare local variables\n\t\t///\n\t\t\n\t\tArrayList<Team> result = new ArrayList<Team>();\t// holds the resulting list of teams\n\n\t\tString query; \t\t\t\t\t\t\t\t\t// holds query string\n\t\tPreparedStatement stmt; \t\t\t\t\t\t// holds Prepared Statement to execute on the database\n\t\tResultSet rs; \t\t\t\t\t\t\t\t\t// holds the result from the database\n\t\t\n\t\ttry {\n\t\t\n\t\t\t// concatenate select query\n\t\t\tquery = \"SELECT * FROM \" + tableDefaultTeams + \" WHERE \" + columnTeamGender + \" = \" + \"?;\";\n\t\n\t\t\t// initialize the prepare statement, execute it, and\n\t\t\t// store the result\n\t\t\tstmt = conn.prepareStatement(query);\n\t\t\tstmt.setString(1, \"F\");\t\t// TODO: REMOVE HARDCODED GENDER IN SPRINT 2\n\t\t\trs = stmt.executeQuery();\n\t\t\t\n\t\t\twhile (rs.next()) {\n\t\t\t\tTeam team = new Team();\n\t\t\t\t// store the result from the database in the team object\n\t\t\t\tteam.setTeamId(rs.getInt(columnTeamId));\n\t\t\t\tteam.setName(rs.getString(columnTeamName));\n\t\t\t\tteam.setAddress(rs.getString(columnTeamAdress));\n\t\t\t\tteam.setCity(rs.getString(columnTeamCity));\n\t\t\t\tteam.setState(rs.getString(columnTeamState));\n\t\t\t\tteam.setZip(rs.getString(columnTeamZip));\n\t\t\t\tteam.setGender(rs.getString(columnTeamGender));\n\t\t\t\tteam.setLat(rs.getString(columnTeamLat));\n\t\t\t\tteam.setLng(rs.getString(columnTeamLng));\n\t\t\t\tresult.add(team);\n\t\t\t}\n\t\t\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.out.println(sqle.getMessage());\n\t\t}\n\t\t\n\t\t// return the list of teams\n\t\treturn result;\n\t\t\n\t}", "@WebMethod public List<Team> getAllTeams();", "public List<String> getAllPlayerNames() {\n List<String> playerNames = new ArrayList<>(10);\n for (Player p : players) {\n playerNames.add(p.getName());\n }\n return playerNames;\n }", "public List<Team> getListOfTeams(){\n \tMap<String, Object> myMap = new HashMap<String, Object>();\n\t\tJSONObject jsonobj = null;\n\t\tList<Team> team = new ArrayList<>();\n\t\tTeamsJsonReader reader = new TeamsJsonReader();\n\t\tJSONParser parser = new JSONParser();\n\t\tObject obj = null;\n\n\t\ttry {\n\t\t\tobj = parser.parse(new FileReader(\"src/main/resources/db.json\"));\n\t\t\tJSONObject jsonObject = (JSONObject) obj;\n\t\t\tJSONArray jsonarr = (JSONArray) jsonObject.get(\"teams\");\n\t\t\tfor (int size = 0; size < jsonarr.size(); size++) {\n\t\t\t\tList<Individual> individualList = new ArrayList<>();\n\t\t\t\tjsonobj = (JSONObject) jsonarr.get(size);\n\t\t\t\tmyMap.put(\"name\", jsonobj.get(\"name\"));\n\t\t\t\tmyMap.put(\"id\", ((Long) jsonobj.get(\"id\")).intValue());\n\t\t\t\tJSONArray memberArray = (JSONArray) jsonobj.get(\"members\");\n\n\t\t\t\tfor (int index = 0; index < memberArray.size(); index++) {\n\n\t\t\t\t\tindividualList.add(reader.getIndividualById(((Long) memberArray.get(index)).intValue()));\n\n\t\t\t\t}\n\t\t\t\tmyMap.put(\"members\", individualList);\n\t\t\t\t\n\t\t\t\tteam.add(new Team(myMap));\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn team;\n }", "@Override\r\n\tpublic ArrayList<TeamPO> getAllTeams() {\n\t\treturn teams.getAllTeams() ;\r\n\t}", "@Override\r\n\tpublic List<TheaterVO> getTheatername() {\n\t\tList<TheaterVO> list = null;\r\n\t\tCriteriaBuilder cb=entityManager.getCriteriaBuilder();\r\n\t\tCriteriaQuery<TheaterVO> cq=cb.createQuery(TheaterVO.class);\r\n\t\tRoot<TheaterVO> root = cq.from(TheaterVO.class);\r\n\t\tcq.select(root);\r\n\t\ttry{\r\n\t\t\tTypedQuery<TheaterVO> tq = entityManager.createQuery(cq);\r\n\t\t\tlist=tq.getResultList();\r\n\t\t\treturn list;\r\n\t\t}catch(Exception e){\r\n\t\t\treturn list;\r\n\t\t}\r\n\t}", "public void printTeamsInLeague(){\n for (T i : teams){\n System.out.println(i.getTeamName());\n }\n }", "public PageResult<Team> getAll() {\n\t\t\n\t\treturn null;\n\t}", "public static ArrayList<Team> findTeamProject() throws DALException {\n\t\t\tConnection cnx = null;\n\t\t\tPreparedStatement pstmt = null;\n\t\t\tResultSet rs = null;\n\t\t\tArrayList<Team> listTeams = new ArrayList<>();\n\n\t\t\ttry {\n\t\t\t\t// Connection DB\n\t\t\t\tcnx = DBConnection.connect();\n\t\t\t\tpstmt = cnx.prepareStatement(LIST_TEAMS_PROJECTS);\n\t\t\t\trs = pstmt.executeQuery();\n\n\t\t\t\t// For each team\n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\tTeam team = new Team();\n\t\t\t\t\tteam.setIdTeam(rs.getInt(\"Teams_IdTeams\"));\n\t\t\t\t\tteam.setName(rs.getString(\"Teams_name\"));\n\t\t\t\t\tteam.setIdProject(rs.getInt(\"idProjects\"));\n\t\t\t\t\tteam.setNameProject(rs.getString(\"nameProject\"));\n\t\t\t\t\tlistTeams.add(team);\n\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\n\t\t\t\tthrow new DALException(\"Problem - listTeamHisProject - TeamDAO - Request : \"+ pstmt+ \" \" + e.getMessage());\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (rs != null)\n\t\t\t\t\t\trs.close();\n\t\t\t\t\tif (pstmt != null)\n\t\t\t\t\t\tpstmt.close();\n\t\t\t\t\tif (cnx != null)\n\t\t\t\t\t\tcnx.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\tthrow new DALException(\"Problem - Closing connection - \" + e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn listTeams;\n\n\t\t}", "public List<String > getNames(){\n List<String> names = new ArrayList<>();\n String fNameQuery = \"SELECT \" + _IDP + \",\" + COL_F_NAME + \",\" + COL_L_NAME + \" FROM \" + TPYTHONISTAS + \" ;\";\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(fNameQuery, null);\n String name;\n if (c.moveToFirst()) {\n do {\n // put together NameID#, period, Lastname, Firstname\n name = c.getString(0) + \". \" + c.getString(2) + \", \" + c.getString(1);\n names.add(name);\n } while (c.moveToNext());\n }\n c.close();\n db.close();\n return names;\n }", "@Override\n\tpublic String toString() {\n\t\treturn teamName;\n\t}", "public ArrayList<Team> getList(){\n\t\treturn this.teams;\n\t}", "public ResultSet getTeamInfo(String teamsname) throws SQLException\n\t{\n\t\t// Create a connection to the database.\n\t\t conn = DriverManager.getConnection(DB_URL);\n\t\t// Create a Statement object for the query.\n\t\tStatement stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);\n\t\t// Execute the query.\n\t\tResultSet resultSet = stmt.executeQuery(\"SELECT * FROM Team WHERE teamName = '\" + teamsname + \"'\");\n\t\t\n\t\treturn resultSet;\n\t\n\t}", "public List<String> getGroupNamesList() {\n q = em.createQuery(\"SELECT g.groupName FROM Groups g\");\n setGroupNamesList(q.getResultList());\n return groupNamesList;\n }", "public ArrayList<CollegeFootballTeam> getTeamList();", "public List<String> getAllPlayers() throws ServerProblem {\r\n\ttry (Connection connTDB = ConnectionManager.getInstance().getConnection()) {\r\n\t LOGGER.debug(\"Getting all players\");\r\n\t List<String> results = engine.getAllPlayers(connTDB);\r\n\t LOGGER.debug(\"Players found in the database: \" + results);\r\n\t return results;\r\n\t} catch (Exception ex) {\r\n\t String error = \"Problem encountered getting all players: \" + ex;\r\n\t LOGGER.error(error);\r\n\t throw new ServerProblem(error, ex);\r\n\t}\r\n }", "public String getTeamName() {\r\n return teamName;\r\n }", "@Override\n\tpublic HashSet<String> getTeams() {\n return new HashSet<String>();\n\t}", "@Test\r\n\tpublic void findAllTeams() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: findAllTeams \r\n\t\tInteger startResult = 0;\r\n\t\tInteger maxRows = 0;\r\n\t\tList<Team> response = null;\r\n\t\tresponse = service.findAllTeams(startResult, maxRows);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: findAllTeams\r\n\t}", "public List<String> getTeamMembers() {\r\n\t\treturn teamMembers;\r\n\t}", "private String[] getGamesList() {\n\n\t\tGames games = new Games();\n\n\t\tint maxRecords = games.count();\n\t\tArrayList<Game> records = games.findAll(maxRecords, 0);\n\t\tIterator<Game> it = records.iterator();\n\n\t\tString[] output = new String[maxRecords];\n\t\tint i = 0;\n\n\t\twhile (it.hasNext()) {\n\n\t\t\tGame game = it.next();\n\t\t\toutput[i] = \"[\" + game.getId() + \"] \" + game.getName();\n\t\t\ti++;\n\n\t\t}\n\n\t\treturn output;\n\n\t}", "@RequestMapping(method=RequestMethod.GET)\n public ResponseEntity<List<TeamDTO>> findAll() {\n List<Team> list = this.teamService.findAll();\n List<TeamDTO> listDto = list.stream().map(obj -> new TeamDTO(obj)).collect(Collectors.toList());\n\n return ResponseEntity.ok().body(listDto);\n }", "@Override\n\tpublic List<ProjectTeamBean> selectProjectTeamName(String word) {\n\t\treturn null;\n\t}", "Set<String> getMemberSet(String teamName) throws RemoteException, InterruptedException;", "public String getStatsOfTeams(){\n\n String res = \"\";\n\n if (teams.size() <= 0){\n return \"No team registered in tournament\";\n }\n\n for(int num=0; num<teams.size(); num++)\n {\n SoccerTeam team = teams.get(num);\n res += team.toString() + \"\\n\";\n }\n return res;\n }", "Set<String> getTeamSet(String userName) throws RemoteException, InterruptedException;", "@RequestMapping(method = RequestMethod.GET, value = \"/teamsForUser\")\n public JSONArray getAllTeamsForUserPage() {\n return teamService.getAllTeamsForUser();\n }", "public List<Player> loadAll() throws SQLException {\n\t\tfinal Connection connection = _database.getConnection();\n\t\tfinal String sql = \"SELECT * FROM \" + table_name + \" ORDER BY id ASC \";\n\t\tfinal List<Player> searchResults = listQuery(connection.prepareStatement(sql));\n\n\t\treturn searchResults;\n\t}", "public String getTeamNameById(int id) {\n\t\tString t = \"\";\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString teamByIdRecords_sql = \"SELECT name FROM \" + team_table + \" WHERE id='\" + id + \"'\";\n\t\tconnection = connector.getConnection();\n\t\ttry {\n\t\t\tstatement = connection.prepareStatement(teamByIdRecords_sql);\n\t\t\trs = statement.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tt = rs.getString(1);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn t;\n\t}", "List<String> loadAllUserNames();", "Collection<String> getUsernames();", "public List<Player> getAll() {\n PlayerDB pdb = new PlayerDB();\n return pdb.getAll();\n }", "public List<String> getAllUserNames()\n\t{\n\t\treturn userDao.findUserNames();\n\t}", "Team findByName(String name);", "public static List<String> getTeamPlayerInfo(String teamName){\n List<String> input = null;\n try {\n Path path = Paths.get(\"Data/TeamInfo/\" + teamName + \".txt\");\n input = Files.readAllLines(path, StandardCharsets.UTF_8);\n } catch (Exception e){\n System.out.println(\"Exception: \" + e.toString());\n }\n return input;\n }", "@Override\r\n\tpublic List<Studentexamscore> getAllExamName() {\n\t\treturn studentExamScoreDAO.getAllExamName();\r\n\t}", "public List<String> getNamesFromAllTab() {\n List<String> namesFromAllCategory = new ArrayList<>(getTexts(teamPageFactory.displayedEmployeeNames));\n if (namesFromAllCategory.isEmpty()) logger.error(\"ERROR: no employee names elements found\");\n return namesFromAllCategory;\n }", "public static void saveTeamNames() {\r\n\t\tMain.team1 = Main.teamOne.name;\r\n\t\tMain.team2 = Main.teamTwo.name;\r\n\t}", "public void getUserNames(){\n //populate all the usernames in here\n if(dbConnection.ConnectDB()){\n //we are connected to the database\n //get the userList from the database\n if(this.dbConnection.populateUserList()){\n //the list was created by the database method \n this.userNames = this.dbConnection.getUserNames();\n \n }\n }else{\n System.out.println(\"Connected to database\");\n \n }\n }", "public List<String> getByName(String name) {\r\n List<String> listOfUser = new ArrayList<>();\r\n for(User user : userRepository.findByName(name)){\r\n listOfUser.add(user.toString());\r\n }\r\n return listOfUser;\r\n }", "@GetMapping(\"/leaderboard\")\n @Timed\n @PermitAll\n public ResponseEntity<Leaderboard> getAllTeams() {\n log.debug(\"REST request to get a leaderboard\");\n\n return ResponseEntity.ok().body(this.leaderboardService.findAll());\n }", "public String getAllEmployees() {\n\t\t\n\t\tString allEmployees = \"\\n\";\n\t\t\n\t\tfor(AbsStaffMember staffMember : repository.getAllMembers())\n\t\t{\n\t\t\tallEmployees += \"\\t- \" + staffMember.getName() + \"\\n\";\n\t\t}\n\t\t\n\t\treturn allEmployees;\n\t}", "Collection<String> names();", "@Override\n public List<Team> getTeamsOfUser(int userid){\n\t\tfinal String select_teams_of_user = \"SELECT * FROM Team WHERE userid = ?\";\n\t\tList<Team> teams = jdbc.query(select_teams_of_user, new TeamMapper(), userid);\n\t\taddUsertoTeams(teams);\n\t\treturn teams;\n\t}", "@Override\n\tpublic List<Patient> query_Name() {\n\t\tList<Patient> list = dd.query_Name();\n\t\tsqlSession.close();\n\t\treturn list;\n\t}", "private void getPlayerList(){\r\n\r\n PlayerDAO playerDAO = new PlayerDAO(Statistics.this);\r\n players = playerDAO.readListofPlayerNameswDefaultFirst();\r\n\r\n }", "Set<String> getPlayers();", "@Override\r\n\tpublic String toString() {\r\n\t\treturn \"[\" + teamNo + \"] \" + name;\r\n\t}", "public List<Player> findAllPlayers(){\n\t\treturn playerRepository.findAll();\n\t}", "public ArrayList<String> retrieveFullNameList() throws Exception{\r\n\t\tArrayList<String> nameList = new ArrayList<String>();\r\n\t\tHashMap<String, ArrayList<String>> map = MySQLConnector.executeMySQL(\"select\", \"SELECT * FROM `is480-matching`.users inner join `is480-matching`.students on users.id=students.id;\");\r\n\t\tSet<String> keySet = map.keySet();\r\n\t\tIterator<String> iterator = keySet.iterator();\r\n\t\t\r\n\t\twhile (iterator.hasNext()){\r\n\t\t\tString key = iterator.next();\r\n\t\t\tArrayList<String> array = map.get(key);\t\r\n\t\t\tString username \t= array.get(2);\r\n\t\t\t\r\n\t\t\tnameList.add(username);\r\n\t\t}\r\n\t\t\r\n\t\tCollections.sort(nameList, new Comparator<String>() {\r\n\t @Override public int compare(String s1, String s2) {\r\n\t \treturn s1.compareTo(s2);\r\n\t }\r\n\t\t});\r\n\t\t\r\n\t\treturn nameList;\r\n\t}", "public ArrayList<Team> getTeamList(){\n\t\treturn this.teamList;\n\t}", "public String getTeam(int id){\r\n\t\treturn teamList.get(id);\r\n\t}", "public void retrieveAllPlayersFromDatabase(String dbMemberName) {\n DatabaseReference dbReference = FirebaseDatabase.getInstance().getReference().child(dbMemberName);\n Log.d(\">>>>>\", \"Starting method\");\n isPlayersRetrieved = false;\n\n dbReference.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n Log.d(\">>>>>\", \"On 1 st method\");\n playersList.clear();\n for (DataSnapshot postSnapshot : snapshot.getChildren()) {\n Log.d(\">>>>>\", \"On 2 nd method\");\n player = postSnapshot.getValue(Player.class);\n playersList.add(player);\n\n // here you can access to name property like university.name\n System.out.println(\">>>>> Retrieving player -> \" + player);\n\n if (!isPlayersRetrieved) {\n isPlayersRetrieved = true;\n }\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n System.out.println(\"The read failed: \" + databaseError.getMessage());\n }\n });\n }", "private ArrayList<String> getNames() {\n\t\tNameDialog n = new NameDialog();\n\t\tnameList = new ArrayList<String>();\n\t\ttry {\n\t\t\tnameList = n.getNames(inputs[1]);\n\t\t}catch(GameException ex) {\n\t\t\tview.close();\n\t\t\tmenuStage.show();\n\t\t}\n\t\treturn nameList;\n\t}", "List<Team> findTeamsByUserId(UserId userId);", "@RequestMapping(\"/playernames\")\n public List<String> getAllPlayerNames(){\n return playerService.getPlayerNames();\n }", "public String getName() {\r\n\t\treturn \"[\" + teamNo + \"] \" + name;\r\n\t}", "public ArrayList<String> findallusers() {\n\t\tArrayList<String> answer = new ArrayList<String>();\n\t\ttry {\n\n\t\t\tConnection connection = this.getConnection();\n\t\t\tPreparedStatement stmt = connection.prepareStatement(\n\t\t\t\t\t\"SELECT * FROM users \");\n\t\t\tResultSet rs = stmt.executeQuery();\n\n\t\t\twhile(rs.next()) {\n\t\t\t\tanswer.add(rs.getString(1));\n\t\t\t}\n\t\t\trs.close();\n\t\t\tstmt.close();\n\t\t\tconnection.close();\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t\treturn answer;\n\t}", "public List<Player> getAllPlayers() {\r\n // TODO fix actual order of players in the List.\r\n\r\n List<Player> players = new ArrayList<>();\r\n players.addAll(teamRed.getPlayers());\r\n players.addAll(teamBlue.getPlayers());\r\n\r\n return players;\r\n }", "@Override\n\tpublic List<String> findFirstNames() {\n\t\treturn userDao.findFirstNames(true);\n\t}", "public List<String> getNamesFromDepartments() {\n List<String> employeeNames = new ArrayList<>();\n List<WebElement> teamDepartments = teamPageFactory.teamDepartments;\n for (int i = 1; i < countDepartmentTabs(); i++) {\n teamDepartments.get(i).click();\n employeeNames.addAll(getTexts(teamPageFactory.displayedEmployeeNames));\n }\n if (employeeNames.isEmpty()) Reporter.log(\"FAILURE: no employee name elements found\", true);\n return employeeNames;\n }", "public String getTeamName() {\n\t\treturn teamName;\n\t}", "public String getTeamName() {\n\t\treturn teamName;\n\t}", "public List<VwTeams> browse(String[] params)\n\t{\n\t\tList<VwTeams> results\t= new ArrayList<VwTeams>();\n\t\tVwTeams[] array\t\t\t= null;\n\t\t\n\t\ttry\n\t\t{\n\t\t\tif (params == null)\n\t\t\t{\n\t\t\t\tarray = dao.findAll();\n\t\t\t}\n\t\t\telse \n\t\t\t{\t\t\t\t\n\t\t\t\t//like filter\n\t\t\t\tparams[0] = GeneralUtils.addLikeFormat(params[0]);\n\t\t\t\t\n\t\t\t\tString sql = \"\";\n\t\t\t\t\n\t\t\t\tsql = \"\tteam_name LIKE ? \";\n\t\t\t\tsql += \"\t\tevent_id = ? \";\n\t\t\t\t\t\t\t\t\n\t\t\t\tarray = dao.findByDynamicWhere(sql, params);\n\t\t\t}\n\t\t\t\n\t\t\t// convert array to list\n\t\t\tresults = Arrays.asList(array);\n\t\t}\n\t\tcatch (VwTeamsDaoException e)\n\t\t{\n\t\t\tlogger.error(e.getMessage());\n\t\t\t\n\t\t\terror.setCode(Errors.Codes.DB_DAO.getCode());\n\t\t\terror.setWindowTitle(Errors.Codes.DB_DAO.getWindowTitle());\n\t\t\terror.setMessage(Errors.Codes.DB_DAO.getMessage());\n\t\t\t\n\t\t\terror.setExceptionMessage(e.getMessage());\n\t\t\t\n\t\t\tpdr.setError(error);\n\t\t\t\n\t\t\tif (logger.isDebugEnabled())\n\t\t\t\te.printStackTrace();\n\t\t\t\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\treturn results;\n\t}", "List<Player> findAllPlayers();", "@Override //TODO\n public String toString() {\n String s = \"\";\n s += name + \" \";\n for(Pokemon p : team)\n s += p + \"\\n\";\n return s;\n }", "public static List getAllNames() {\n List polovniautomobili = new ArrayList<>();\n try {\n CONNECTION = DriverManager.getConnection(URL, USERNAME, PASSWORD);\n String query = \"SELECT naziv FROM polovni\";\n try (PreparedStatement ps = CONNECTION.prepareStatement(query)) {\n ResultSet result = ps.executeQuery();\n while (result.next()) {\n String naziv = result.getString(\"naziv\");\n polovniautomobili.add(naziv);\n\n }\n\n ps.close();\n CONNECTION.close();\n }\n CONNECTION.close();\n } catch (SQLException ex) {\n Logger.getLogger(Register.class.getName()).log(Level.SEVERE, null, ex);\n }\n return polovniautomobili;\n }", "@Override\n\tpublic List<ProjectTeamBean> listProjectTeam() {\n\t\treturn null;\n\t}", "public String toString()\r\n\t{\r\n\t\tString teamRoster = \"\";\r\n\t\t\r\n\t\tfor(int i = 0; i < teams.size(); i ++)\r\n\t\t{\r\n\t\t\tteamRoster += teams.get(i) + \" \";\r\n\t\t}\t\r\n\t\treturn teamRoster;\r\n\t}", "public ArrayList<Member> getAllMembers() {\n\t\t\n\t\tArrayList<Member> returnArr = new ArrayList<Member>();\n\t\tfor (Iterator<Member> it = db.iterator(); it.hasNext(); ) {\n\t\t\tMember m = it.next();\n\t\t\treturnArr.add(m);\n\t\t\t\n\t\t}\n\t\t \n\t\treturn returnArr;\n\t}", "Set<String> getNames();", "private void getTeam() {\n Set<Integer> set = getRandomNumberSet();\n // clear new team list each time to allow for serial clicks on \"Generate New Random Team\"\n team.clear();\n for (Integer i : set) {\n getPokemon(i);\n }\n }", "@SuppressWarnings(\"unchecked\")\n public List<String> getAllInstitutionNames() { \n Query query = sessionFactory.getCurrentSession().createQuery(\n \"select name from Institution where retired = false order by name\");\n\n return (List<String>) query.list();\n }", "public String getName(){\n\t\treturn this.tournamentName;\n\t}", "public abstract ArrayList<String> getPlayer(int gameId) throws SQLException;", "public ArrayList<CollegeFootballTeam> getTeamList()\r\n\t{\r\n\t\treturn teams;\r\n\t}", "@Override\n public String getTeam(){\n return this.team;\n }", "public ArrayList<Pets> getPetList() {\n\n ArrayList<Pets> petList = new ArrayList<>();\n\n try {\n Statement statement = conn.createStatement();\n String sqlStatement = \"SELECT name FROM pets\";\n\n ResultSet rs = statement.executeQuery(sqlStatement);\n\n while (rs.next()) {\n //Create a new Pets object\n Pets pet = new Pets();\n pet.setName(rs.getString(\"name\"));\n\n System.out.println(pet.getName());\n\n }\n } catch (SQLException exception) {\n System.out.println(\"Error getting Pet name list: \" + exception);\n }\n return petList;\n }", "public String displayNameTickets(){\n String p = \" \";\n try {\n \n rs = stmt.executeQuery \n (\"select * from JEREMY.TICKET ORDER BY NAME\");\n p = loopDBInfo(rs);\n \n } catch (Exception e) {\n System.out.println(\"SQL problem \" + e);\n } \n return p;\n \n }", "public String getTeamId() {\r\n\t\treturn teamName;\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<TimeTableBean> getFacultyName() {\n\t\treturn sessionFactory.openSession().createQuery(\"from TimeTableBean\").list();\r\n\t}", "public ResultSet getStandings() throws SQLException\n\t{\n\t\t// Create a connection to the database.\n\t\t conn = DriverManager.getConnection(DB_URL);\n\t\t// Create a Statement object for the query.\n\t\tStatement stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);\n\t\t// Execute the query.\n\t\tResultSet resultSet = stmt.executeQuery(\"SELECT teamName, wins, loses FROM Team ORDER BY wins DESC\");\n\t\t\n\t\treturn resultSet;\n\t}", "@Override\n\tpublic ArrayList<String> getName() {\n\t\tArrayList<String> l = new ArrayList<String>();\n\t\tl.addAll(leftTable.getName());\n\t\tl.addAll(rightTable.getName());\n\t\treturn l;\n\t}", "public ArrayList<String> retrieveUsernameList() throws Exception{\r\n\t\tArrayList<String> nameList = new ArrayList<String>();\r\n\t\tHashMap<String, ArrayList<String>> map = MySQLConnector.executeMySQL(\"select\", \"SELECT * FROM `is480-matching`.users inner join `is480-matching`.students on users.id=students.id;\");\r\n\t\tSet<String> keySet = map.keySet();\r\n\t\tIterator<String> iterator = keySet.iterator();\r\n\t\t\r\n\t\twhile (iterator.hasNext()){\r\n\t\t\tString key = iterator.next();\r\n\t\t\tArrayList<String> array = map.get(key);\t\r\n\t\t\tString username \t= array.get(1);\r\n\t\t\t\r\n\t\t\tnameList.add(username);\r\n\t\t}\r\n\t\t\r\n\t\tCollections.sort(nameList, new Comparator<String>() {\r\n\t @Override public int compare(String s1, String s2) {\r\n\t \treturn s1.compareTo(s2);\r\n\t }\r\n\t\t});\r\n\t\t\r\n\t\treturn nameList;\r\n\t}" ]
[ "0.82739544", "0.80176604", "0.79691046", "0.698054", "0.6910622", "0.6879242", "0.6779701", "0.67464614", "0.6686124", "0.66755843", "0.65733075", "0.6558955", "0.6545147", "0.65185905", "0.64840007", "0.6446478", "0.63746494", "0.6357133", "0.63418347", "0.6292399", "0.6292346", "0.62454045", "0.62317085", "0.6164145", "0.61619014", "0.6161247", "0.61388427", "0.6130022", "0.61160785", "0.6095212", "0.60836947", "0.60062015", "0.60007167", "0.59918344", "0.5973423", "0.5956305", "0.594201", "0.59390414", "0.5918746", "0.59058017", "0.5902457", "0.59018743", "0.5891072", "0.58452535", "0.5844495", "0.5842675", "0.58422226", "0.5838007", "0.58207566", "0.5819764", "0.58186007", "0.58128756", "0.5805557", "0.5801005", "0.57964945", "0.57833225", "0.57782024", "0.575207", "0.5740159", "0.57226026", "0.5717927", "0.5712951", "0.5709567", "0.5705127", "0.5696745", "0.5693165", "0.5686896", "0.5671861", "0.56653714", "0.5641755", "0.56335634", "0.5621942", "0.5601277", "0.55991864", "0.5597707", "0.5588102", "0.5586783", "0.5586569", "0.5586569", "0.5563694", "0.55618316", "0.5561388", "0.55588335", "0.55537015", "0.55462825", "0.5531574", "0.55308044", "0.5528439", "0.5521849", "0.55187315", "0.55174106", "0.5516226", "0.5512694", "0.5512244", "0.5511131", "0.5495062", "0.5481854", "0.54771996", "0.5453016", "0.54525346" ]
0.77716523
3
method to set amount of games played.
public void setGamesPlayed(String teamName, int games) throws SQLException { // Create a connection to the database. conn = DriverManager.getConnection(DB_URL); // Create a Statement object for the query. Statement stmt = conn.createStatement(); // Execute the update. stmt.executeUpdate("UPDATE Team " + "SET games = " + games + " WHERE teamName = '" + teamName + "'"); // Close the Connection and Statement objects. conn.close(); stmt.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void incGamesPlayed() {\n gamesPlayed++;\n }", "public void setNumPlayed(int numPlayed)\n\t{\n\t\tthis.numPlayed = numPlayed;\n\t}", "public void incrementTimesPlayed() {\r\n\t\ttimesPlayed++;\r\n\t}", "@Override\n public void setNrPlayers(int value) {\n this.nrPlayers = value;\n }", "public void setPlayedTimes(int newPlayedTimes) {\n this.playedTimes = newPlayedTimes;\n }", "public void setNumberOfPlayers(int numberOfPlayers) {\n this.numberOfPlayers = numberOfPlayers;\n }", "public void setGamesCompleted(int num)\r\n {\r\n //Check if the new average time is less than 0 before setting the new average time \r\n if(num < 0)\r\n {\r\n //Outouts a warning message\r\n System.out.println(\"WARNING:You cannot assign a negative number of games completed\");\r\n }\r\n else \r\n {\r\n this.gamesCompleted = num; \r\n }//end if\r\n }", "@Override\r\n\tpublic void betPlayValue(int play) {\n\t\trps.setPlay(play);\r\n\t}", "void setAvailableGames(Set<Integer> gameIds);", "protected void setScore(int s)\r\n\t{\r\n\t\tGame.score = s;\r\n\t}", "public static void setPlayerCount(int playerCount) {\n PLAYER_COUNT = playerCount;\n }", "public void incrementNumberGames(TypeOfGames type) {\n statistics.get(type).incrementNumberGames();\n }", "public void setWins() {\r\n this.wins++;\r\n }", "public void setWins(int wins) {\n if (wins > 0) {\n this.wins = wins;\n }\n }", "public void setMinimumPlayers(int nPlayers)\r\n {\n \r\n }", "public int getGamesPlayed() {\n return gamesPlayed;\n }", "public void setGamesWon(int number) {\n\t\tthis.gamesWon = number;\n\t}", "public void setAwayScore(int a);", "public void setWins(int value) {\n this.wins = value;\n }", "public void setPlayer(int play)\n {\n this.player=play;\n }", "public void setScore(java.lang.Integer value);", "public Builder setSeasonShareCount(int value) {\n \n seasonShareCount_ = value;\n onChanged();\n return this;\n }", "Status setWornCount();", "public int totalGames() {\n return wins + losses + draws;\n }", "@Override\n\tpublic void updateWinAvGames(Player player) {\n\t\tint gamesWon = 0;\n\t\tList<Game> games = listGames(player);\n\t\tfor (int i=0;i<games.size();i++) { \n\t\t\tif(games.get(i).isWon())\n\t\t\t\tgamesWon++;\n\t\t}\n\t\tdouble winAverage=(double) gamesWon / (double) games.size();\n\t\tplayer.setWinAvg(winAverage);\n\t}", "public void setOneNewWanted () {\r\n numWanted ++;\r\n }", "public int getNumPlayed()\n\t{\n\t\treturn numPlayed;\n\t}", "public void setRoundNum(int roundNum){\n gameRounds = roundNum;\n }", "public void setBonusScore() {\r\n count = count+50;\r\n }", "public void setScore(int score) {this.score = score;}", "private void wins(Player player){\n int win = 1;\n player.setWins(win);\n }", "void setScore(long score);", "public void setScore (int newScore)\n {\n this.score = newScore;\n }", "void setScoreValue(int scoreValue);", "public void setGame() {\n }", "public void updateScore(int score){ bot.updateScore(score); }", "private void setLikesCount(int value) {\n \n likesCount_ = value;\n }", "@Override\n public void setLoopCount(final int loop) {\n if (isPlayerOnPage(playerId)) {\n loopManager.setLoopCount(loop);\n } else {\n addToPlayerReadyCommandQueue(\"loopcount\", new Command() {\n\n @Override\n public void execute() {\n loopManager.setLoopCount(loop);\n }\n });\n }\n }", "public void resetWinRecord()\n{\n gamesWon = 0;\n}", "public int getTimesPlayed() {\r\n\t\treturn timesPlayed;\r\n\t}", "public void setGameScore(Integer gameScore) {\n this.gameScore = gameScore;\n }", "public void setCount(int value) {\n this.count = value;\n }", "public void setCount(int value) {\n this.count = value;\n }", "public void setCount(int value) {\n this.count = value;\n }", "public void incrementNumberOfDefeats(TypeOfGames type) {\n statistics.get(type).incrementNumberOfDefeats();\n }", "public void setGoldCardsByWins(int wins, int cards) {\n statistics.getGoldCardsByWins().put(wins, cards);\n }", "public void increaseTurnCount()\n\t{\n\t\tturnNumber++;\n\t\tthis.currentPlayerID++;\n\t\tthis.currentPlayerID = this.currentPlayerID % this.playerList.size();\n\t}", "public void setUserNumberOfRocks(int number) {\n\t\tfor (int x = 0; x < 14; x++) {\n\t\t\tif (x == 0 || x == 7) {\n\t\t\t\tbucket[x].setnumOfRocks(0, true);\n\t\t\t} else {\n\t\t\t\tbucket[x].setnumOfRocks(number, true);\n\t\t\t}\n\t\t}\n\t}", "public static void setPlayerScore(int score)\r\n\t{\r\n\t\tGame.playerScore = score;\r\n\t}", "public int addWinningGame() {\n\t\tgamesWon++;\n\t\treturn gamesWon;\n\t}", "public void setGame(int numPlayers) {\r\n\t\tif (numPlayers > MAX_PLAYERS || numPlayers < 1) {\r\n\t\t\tSystem.out.println(\"Too many players. Please choose a number 1-8.\");\r\n\t\t}\r\n\t\t//Set up gameDeck\r\n\t\tScanner scanner = new Scanner(System.in);\r\n\t\tthis.gameDeck = new Deck();\r\n\t\tgameDeck.shuffle();\r\n\t\t//Set up players and empty board\r\n\t\tthis.numPlayers = numPlayers;\r\n\t\tboard = new ArrayList<Card>();\r\n\t\tplayers = new ArrayList<Player>();\r\n\t\tfor (int i = 0; i < numPlayers; i++) {\r\n\t\t\tSystem.out.println(\"Please enter player name: \");\r\n\t\t\tString name = scanner.nextLine();\r\n\t\t\tplayers.add(new Player(name));\r\n\t\t}\r\n\t\tscanner.close();\r\n\t}", "public void updateGame() \n\t{\n\t\tif (bet <= credit && bet <=500) // Verify that the bet is valid. \n\t\t{\n\t\t\tcredit = credit - bet; // Decrement the credit by the amount bet\n\t\t\tgamesPlayed++;\n\t\t\tif (ourWin == \"Royal Flush\")\n\t\t\t{\n\t\t\t\tgamesWon++;\t\t\t\t//Increment the amount of games won\n\t\t\t\tcurrentWin = 250 *bet; // Determine the current win\n\t\t\t\tcredit+= currentWin;\t// Add the winnings to the player's credit\n\t\t\t\twinnings+= currentWin;\t// Keep a tally of all the winnings to this point\n\t\t\t\tcreditValue.setText(String.valueOf(credit)); // Update the credit value.\n\t\t\t\tourWinLabel.setText(ourWin);\n\t\t\t}\n\t\t\telse if (ourWin == \"Straight Flush\")\n\t\t\t{\n\t\t\t\tgamesWon++;\n\t\t\t\tcurrentWin+= 50 * bet;\n\t\t\t\tcredit+= currentWin;\n\t\t\t\twinnings+= currentWin;\n\t\t\t\tcreditValue.setText(String.valueOf(credit));\n\t\t\t\tourWinLabel.setText(ourWin);\n\t\t\t}\n\t\t\telse if (ourWin == \"Four of a Kind\")\n\t\t\t{\n\t\t\t\tgamesWon++;\n\t\t\t\tcurrentWin+= 25 *bet;\n\t\t\t\tcredit+= currentWin;\n\t\t\t\twinnings+= currentWin;\n\t\t\t\tcreditValue.setText(String.valueOf(credit));\n\t\t\t\tourWinLabel.setText(ourWin);\n\t\t\t}\n\t\t\telse if (ourWin == \"Full House\")\n\t\t\t{\n\t\t\t\tgamesWon++;\n\t\t\t\tcurrentWin+= 9* bet;\n\t\t\t\tcredit+= currentWin;\n\t\t\t\twinnings+= currentWin;\n\t\t\t\tcreditValue.setText(String.valueOf(credit));\n\t\t\t\tourWinLabel.setText(ourWin);\n\t\t\t}\n\t\t\telse if (ourWin == \"Flush\")\n\t\t\t{\n\t\t\t\tgamesWon++;\n\t\t\t\tcurrentWin= 6 * bet;\n\t\t\t\tcredit+= currentWin;\n\t\t\t\twinnings+= currentWin;\n\t\t\t\tcreditValue.setText(String.valueOf(credit));\n\t\t\t\tourWinLabel.setText(ourWin);\n\t\t\t}\n\t\t\telse if (ourWin == \"Straight\")\n\t\t\t{\n\t\t\t\tgamesWon++;\n\t\t\t\tcurrentWin= 4* bet;\n\t\t\t\tcredit+= currentWin;\n\t\t\t\twinnings+= currentWin;\n\t\t\t\tcreditValue.setText(String.valueOf(credit));\n\t\t\t\tourWinLabel.setText(ourWin);\n\t\t\t}\n\t\t\telse if (ourWin == \"Three of a Kind\")\n\t\t\t{\n\t\t\t\tgamesWon++;\n\t\t\t\tcurrentWin= 3* bet;\n\t\t\t\tcredit+= currentWin;\n\t\t\t\twinnings+= currentWin;\n\t\t\t\tcreditValue.setText(String.valueOf(credit));\n\t\t\t\tourWinLabel.setText(ourWin);\n\t\t\t}\n\t\t\telse if (ourWin == \"Two Pair\")\n\t\t\t{\n\t\t\t\tgamesWon++;\n\t\t\t\tcurrentWin= 2* bet;\n\t\t\t\tcredit+= currentWin;\n\t\t\t\twinnings+= currentWin;\n\t\t\t\tcreditValue.setText(String.valueOf(credit));\n\t\t\t\tourWinLabel.setText(ourWin);\n\t\t\t}\n\t\t\telse if (ourWin == \"Jacks or Better\")\n\t\t\t{\n\t\t\t\tgamesWon++;\n\t\t\t\tcurrentWin= bet;\n\t\t\t\tcredit+= currentWin;\n\t\t\t\twinnings+= currentWin;\n\t\t\t\tcreditValue.setText(String.valueOf(credit));\n\t\t\t\tourWinLabel.setText(ourWin);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcreditValue.setText(String.valueOf(credit));\n\t\t\t\tgamesLost++;\n\t\t\t\tlosses+= bet;\n\t\t\t\tourWinLabel.setText(ourWin);\n\t\t\t}\n\t\t\t//Update the remaining statistics\n\t\t\tplayedValue.setText(String.valueOf(gamesPlayed));\n\t\t\twonValue.setText(String.valueOf(gamesWon));\n\t\t\tlostValue.setText(String.valueOf(gamesLost));\n\t\t\twinningsValue.setText(String.valueOf(winnings));\n\t\t\tlossesValue.setText(String.valueOf(losses));\n\t\t}\t\n\t}", "private void getNumPlayers() {\n\t\tSystem.out.println(\"How many people are playing? (must be between \"+MIN_PLAYERS+\" and \"+MAX_PLAYERS+\")\");\n\t\tnumPlayers = GetInput.getInstance().anInteger(MIN_PLAYERS, MAX_PLAYERS);\n\t}", "public void setPlayersAtGo()\n {\n for(int i = 0; i < m_numPlayers; i++)\n {\n m_gameBoard.addPlayerToSpace(i + 1, 0);\n }\n }", "public int getGamesSentCount() {\n\t\treturn mGamesSentCount;\n\t}", "public void setGame(Game game) {\n this.game = game;\n }", "public int getPlayedTimes() {\n return playedTimes;\n }", "@Override\n public void setEffect(AbstractGame abstractGame)\n {\n int life = abstractGame.getStatistic().getLife();\n\n abstractGame.getStatistic().setLife(life + 1);\n }", "public int numberOfTeams() {\n return noTeams;\n }", "public void setHomeScore(int h);", "void setCurrentHP(final int newHP);", "public void setScore(int score) { this.score = score; }", "public void setRuns(int runs);", "public void setWinner(int num){\r\n \twinner = num;\r\n }", "@SuppressLint(\"NotifyDataSetChanged\")\n public void setGame(QuizGame game) {\n this.game = game;\n notifyDataSetChanged();\n }", "public void setScore(int score)\n\t{\n\t\tthis.score += score;\n\t}", "public void setGameDraw() {\n this.gameStarted = false; \n this.winner = 0; \n this.isDraw = true; \n }", "public void setNumberOfRounds(int duration) {\n numberOfRounds = players.size() * duration;\n }", "public void play(){\n\n gameRounds++;\n mRound = new Round(players);\n mRound.beginRound();\n\n }", "void setGame (Game game) {\n this.game = game;\n }", "public static int minimumNumberOfGames() {\n\t\treturn 0;\n\t}", "public void resetScore(View view) {\n scoreTeamA = 0;\n scoreTeamB = 0;\n displayForTeamA(0);\n displayForTeamB(0);\n }", "private void increaseScore() {\n this.game.getPlayers().values().forEach(ship -> {\n ship.increaseScore();\n if (ship.getScore() % 5 == 0) {\n this.asteroidsLimit++;\n }\n });\n }", "void setNumberOfResults(int numberOfResults);", "public void setNumBalls(int numBalls) {\n this.numBalls += numBalls;\n setScoreText();\n }", "public static void setPerson_to_play(int aPerson_to_play)\n {\n person_to_play = aPerson_to_play;\n }", "public int getGamesReceivedCount() {\n\t\treturn mGamesReceivedCount;\n\t}", "public void setWins(String teamName, int wins)\n\t throws SQLException\n\t \t\t{\n\t\t // Create a connection to the database.\n\t\t conn = DriverManager.getConnection(DB_URL);\n\n\t\t// Create a Statement object for the query.\n\t\tStatement stmt = conn.createStatement();\n\n\t\t// Execute the update.\n\t\tstmt.executeUpdate(\"UPDATE Team \" +\n\t \"SET wins = \" +\n\t wins +\n\t \" WHERE teamName = '\" +\n\t teamName + \"'\");\n\n\t\t// Close the Connection and Statement objects.\n\t\tconn.close();\n\t\tstmt.close();\n\t\t}", "public void incrementNumberOfWins(TypeOfGames type) {\n statistics.get(type).incrementNumberOfWins();\n }", "@Override\n public void updateScore(int winner)\n {\n if (winner == 0)\n {\n playerOneScore++;\n }\n else\n {\n playerTwoScore++;\n }\n }", "public void set_count(int c);", "public void setMatches() {\r\n this.matches++;\r\n\r\n }", "protected void setCounts(int doWhat){\n\tswitch(doWhat){\n\tcase 0: numPlayers++;\n\t break;\n\tcase 1: numPlayers--;\n\t break;\n\tcase 2: numNPCs++;\n\t break;\n\tcase 3: numNPCs--;\n\t break;\n\tdefault: break;\n\t}\n\t\n\tif (debug) System.out.println(\"# of Players= \" + numPlayers\n\t\t\t\t + \"# of NPCs = \" + numNPCs);\n }", "protected void setGame(Game game) {\n this.game = game;\n }", "public synchronized void setScore(Integer score) {\n this.score += score;\n }", "public void setUpdateOften(int i){\n countNum = i;\n }", "public int NumOfGames()\n\t{\n\t\treturn gametype.length;\n\t}", "public void ScoreTeamA(View view) {\n scoreteamA = scoreteamA +1;\n displayScoreA(scoreteamA);\n }", "public void setNumsBaby (int count) {\n numsBaby = count;\n }", "public int wins(String team) {\n return 0;\n }", "public void setGames() {\n\n games = new HashMap<String, Game>();\n\n for(Game g : jsonManager.getGamesFromJson())\n games.put(g.getTitle(), g);\n\n }", "public void incrementWin(){wins += 1;}", "public void raiseScoreOfEveryPlayer(int value) {\n\t\tfor(Player p:players) {\n\t\t\tp.raiseScore(value);\n\t\t}\n\t}", "void increaseScore(){\n\t\t currentScore = currentScore + 10;\n\t\t com.triviagame.Trivia_Game.finalScore = currentScore;\n\t }", "public void SZTToEveryOtherPlayer(int value) {\n\t\tfor(Player p:players) {\n\t\t\tif(p!=current) {\n\t\t\t\tp.raiseScore(value);\n\t\t\t}\n\t\t}\n\t}", "public void GameStart()\n\t\t{\n\t\t\tplayers_in_game++;\n\t\t}", "void setBet(int bet) {\n\t\tif (bet > _money) { // all in if you bet more than you have\n\t\t\t_bet = _money;\n\t\t\t_money = 0;\n\t\t\t\n\t\t}\n\t\telse if (bet < 1) {\n\t\t\t_bet = 1;\n\t\t\t_money -= _bet;\n\t\t}\n\t\telse {\n\t\t\t_bet = bet;\n\t\t\t_money -= bet;\n\t\t}\n\t}", "public static void updateGamesList(Set<Game> games) {\n\t\tgameSet = games;\n\t}", "public void resetTally() {\n won_stayed = 0;\n won_switched = 0;\n total_stayed = 0;\n total_switched = 0;\n }", "public void setPlayers(ArrayList<Integer> players) {\n this.players= new ArrayList<>(players);\n }" ]
[ "0.72348994", "0.6963656", "0.68528265", "0.68377984", "0.68162", "0.66707814", "0.6542778", "0.6474092", "0.64015734", "0.6379028", "0.63176495", "0.6278189", "0.6226408", "0.62233275", "0.6169412", "0.6157059", "0.6153514", "0.60919577", "0.6053116", "0.60331273", "0.6021137", "0.6018311", "0.6007378", "0.600558", "0.5976343", "0.59517443", "0.59504986", "0.59455013", "0.5942968", "0.5941268", "0.59357053", "0.59314317", "0.5918844", "0.59148663", "0.590972", "0.59093064", "0.59065", "0.5897507", "0.5880828", "0.58774024", "0.5874091", "0.58706343", "0.58706343", "0.58706343", "0.58680457", "0.5855827", "0.58513254", "0.58482593", "0.58469754", "0.584237", "0.5837498", "0.58338755", "0.5832289", "0.58075607", "0.5802138", "0.57990897", "0.57984036", "0.5786328", "0.57847536", "0.5779378", "0.57764035", "0.5773994", "0.577271", "0.5771043", "0.5770693", "0.5765623", "0.5762786", "0.57614803", "0.57589436", "0.5755445", "0.57501507", "0.57431364", "0.57429343", "0.57377136", "0.5734841", "0.5732316", "0.57285535", "0.5728189", "0.57249177", "0.57227546", "0.57215583", "0.57135046", "0.5704617", "0.56991905", "0.56943125", "0.568585", "0.56820774", "0.567946", "0.5677355", "0.56655586", "0.5662774", "0.56611246", "0.5656511", "0.5648702", "0.56486195", "0.564737", "0.56455714", "0.5640789", "0.5640123", "0.56359226" ]
0.64462
8
method to set the amount of wins
public void setWins(String teamName, int wins) throws SQLException { // Create a connection to the database. conn = DriverManager.getConnection(DB_URL); // Create a Statement object for the query. Statement stmt = conn.createStatement(); // Execute the update. stmt.executeUpdate("UPDATE Team " + "SET wins = " + wins + " WHERE teamName = '" + teamName + "'"); // Close the Connection and Statement objects. conn.close(); stmt.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setWins() {\r\n this.wins++;\r\n }", "public void setWins(int wins) {\n if (wins > 0) {\n this.wins = wins;\n }\n }", "public void setWins(int value) {\n this.wins = value;\n }", "private void wins(Player player){\n int win = 1;\n player.setWins(win);\n }", "public void increaseWins(){\n this.numberOfWins=this.numberOfWins+1;\n }", "public void setWinner(int num){\r\n \twinner = num;\r\n }", "public void incrementWin(){wins += 1;}", "@Override\n public void updateScore(int winner)\n {\n if (winner == 0)\n {\n playerOneScore++;\n }\n else\n {\n playerTwoScore++;\n }\n }", "int getWins() {return _wins;}", "public void win(int wager){\n bankroll += wager;\n }", "Status setWornCount();", "public void incOWins() {\n oWins++;\n }", "public int getWins() {\n return wins;\n }", "public int wins(String team) {\n return 0;\n }", "public int incrementNumberWins()\n\t{\n\t\treturn myNumberWins++;\n\t}", "public int getWins() {\n return wins;\n }", "public void winGame() {\r\n if (data.gameState == 3) \r\n data.winner = 1;\r\n else if (data.gameState == 4) \r\n data.winner = 2;\r\n data.victoryFlag = true;\r\n data.gameState = 5;\r\n }", "public int addWin() {\n\t\treturn ++this.numWins;\n\t}", "void win() {\n\t\t_money += _bet * 2;\n\t\t_wins++;\n\t\tclearHand();\n\t\t_bet = 0;\n\t}", "public void win() {\n if (turn == 1) {\n p1.incrementLegs();\n if (p1.getLegs() == 5) {\n p1.incrementSets();\n p1.setLegs(0);\n p2.setSets(0);\n\n }\n if (p1LastScore > p1.getHighout()) {\n p1.setHighout(p1LastScore);\n\n }\n\n if (p1.getHighout() > OVERALL_HIGH_OUT) {\n OVERALL_HIGH_OUT = p1.getHighout();\n }\n } else if (turn == 2) {\n p2.incrementLegs();\n if (p2.getLegs() == 5) {\n p2.incrementSets();\n p2.setLegs(0);\n p1.setSets(0);\n\n }\n if (p2LastScore > p2.getHighout()) {\n p2.setHighout(p2LastScore);\n }\n\n if (p2.getHighout() > OVERALL_HIGH_OUT) {\n OVERALL_HIGH_OUT = p2.getHighout();\n }\n\n\n\n }\n changeFirstTurn();\n win = true;\n\n\n\n }", "public void setWinner(Player winner) {\n this.winner = winner;\n }", "public void scoringTrick(){\n wizardRule();\n winner.tricksWon++;\n winner = new Player();\n }", "public static void win()\n\t{\n\t\tGame.setMoney(Game.getMoney()+bet);\n\t\tremainingMoneyN.setText(String.valueOf(Game.getMoney()));\n\t\tbet=0;\n\t\ttfBet.setText(\"0\");\n\t\tif(Game.getMoney()>Game.getHighScore())\n\t\t{\n\t\t\tGame.setHighScore(Game.getMoney());\n\t\t\tlblHighScore.setText(String.valueOf(Game.getHighScore()));\n\t\t}\n\t\tlblUpdate.setText(\"You win!\");\n\n\t}", "public void setWinPercentage(int winPercentage) {\n this.winPercentage = winPercentage;\n }", "public void winAccountant()\r\n {\r\n switch (Win)\r\n {case 1: //A tie with scissors\r\n ties++; uSci++; cSci++;\r\n break;\r\n case 2: //A tie with paper\r\n ties++; uPap++; cPap++;\r\n break;\r\n case 3: //A tie with rock\r\n ties++; uRock++; cRock++;\r\n break;\r\n case 4: //A win for user with Scissors\r\n uWins++; uSci++; uSciW++;\r\n cPap++;\r\n break;\r\n case 5: //A win for user with Paper\r\n uWins++; uPap++; uPapW++;\r\n cRock++;\r\n break;\r\n case 6: //A win for user with Rock\r\n uWins++; uRock++; uRockW++;\r\n cSci++;\r\n break;\r\n case 7: //A win for Comp with Scissors\r\n cWins++; cSci++; cSciW++;\r\n uPap++;\r\n break;\r\n case 8: //A win for Comp with Paper\r\n cWins++; cPap++; cPapW++;\r\n uRock++;\r\n break;\r\n case 9: //A win for Comp with Rock\r\n cWins++; cRock++; cRockW++;\r\n uSci++;\r\n break;\r\n default: JOptionPane.showMessageDialog(null,\r\n \"Error: Unknown Win Value - WinCalc.winAccountant 207\", \r\n \"digiRPS - Error\", \r\n JOptionPane.ERROR_MESSAGE);\r\n break;}\r\n \r\n // Update the last three wins\r\n winThree=winTwo;\r\n winTwo=winOne;\r\n winOne=Win;\r\n \r\n }", "public void incrementNumberOfWins(TypeOfGames type) {\n statistics.get(type).incrementNumberOfWins();\n }", "private void DeclareWinner(){\n\t\tTextView tvStatus = (TextView) findViewById(R.id.tvStatus);\n\t\tTextView tvP1Score = (TextView) findViewById(R.id.tvP1Score);\n\t\tTextView tvP2SCore = (TextView) findViewById(R.id.tvP2Score);\n\t\tTextView tvTieScore = (TextView) findViewById(R.id.tvTieScore);\n\t\tswitch(winner){\n\t\t\tcase CAT:\n\t\t\t\ttieScore = tieScore + 1;\n\t\t\t\ttvStatus.setText(\"Tie Cat Wins!\");\n\t\t\t\ttvTieScore.setText(String.valueOf(tieScore));\n\t\t\t\tbreak;\n\t\t\tcase P1_WINNER:\n\t\t\t\tp1Score = p1Score + 1;\n\t\t\t\ttvStatus.setText(\"Player 1 Wins!\");\n\t\t\t\ttvP1Score.setText(String.valueOf(p1Score));\n\t\t\t\tbreak;\n\t\t\tcase P2_WINNER:\n\t\t\t\tp2Score = p2Score + 1;\n\t\t\t\ttvStatus.setText(\"Player 2 Wins!\");\n\t\t\t\ttvP2SCore.setText(String.valueOf(p2Score));\n\t\t\t\tbreak;\n\t\t}\n\t}", "public void increaseRound() {\n\t\tif(this.activePlayer==this.player1) {\n\t\t\tthis.setScorePlayer1(this.getScorePlayer1()+1);\n\t\t}else {\n\t\t\tthis.setScorePlayer2(this.getScorePlayer2()+1);\n\t\t}\n\t\t//On check si c'est le dernier round\n\t\tif (round != ROUNDMAX) {\n\t\tthis.round++;\n\t\t//On change un round sur deux le premier joueur de la manche\n\t\t\n\t\tif (0==round%2) {\n\t\t\t\n\t\t\tthis.setActivePlayer(player2);\n\t\t}else {\n\t\t\n\t\t\tthis.setActivePlayer(player1);\n\t\t}\n\t\t}else {\n\t\t\t//Sinon la partie est gagne\n\t\t\tdraw.win = true;\n\t\t}\n\t\t}", "public void setWinner(boolean isTopWinner) {\n winner = isTopWinner ? 2 : 1;\n }", "public void winGame() {\n this.isWinner = true;\n }", "public void setBonusScore() {\r\n count = count+50;\r\n }", "public void setAwayScore(int a);", "public void win(int player)\r\n\t{\r\n\t\taccountValue[player]+=pool;\r\n\t\tendRund();\r\n\t}", "@Test\r\n public void testSetWinner() {\r\n System.out.println(\"setWinner\");\r\n String name = \"brandon\";\r\n int money = 40;\r\n int properties = 9;\r\n WinnerScreen instance = new WinnerScreen();\r\n instance.setWinner(name, money, properties);\r\n }", "public int getWinner() {return winner();}", "public void setGamesWon(int number) {\n\t\tthis.gamesWon = number;\n\t}", "@Override\n\tpublic void win() {\n\t\t\n\t\tfround[fighter1]++;\n\t fplatz[fighter1]=Math.round((float)fplatz[fighter1]/2); \n\t \n\t\tnextRound();\n\t}", "public int addWinningGame() {\n\t\tgamesWon++;\n\t\treturn gamesWon;\n\t}", "public void setGoldCardsByWins(int wins, int cards) {\n statistics.getGoldCardsByWins().put(wins, cards);\n }", "private void win(int winner)\n {\n switch (winner) {\n case PLAYER_1_FLAG:\n player1.gameOver(RESULT_WIN);\n player2.gameOver(RESULT_LOSS);\n winSend.close();\n break;\n case PLAYER_2_FLAG:\n player1.gameOver(RESULT_LOSS);\n player2.gameOver(RESULT_WIN);\n \n winSend.close();\n break;\n }\n }", "public void updatePlayerScore()\n\t{\n\t\tthis.score = (int)(getBalance() - 500) - (getNumberOfLoans()*500); \n\t}", "public void updateScore(){\r\n if (this.isArtist || winners.contains(this)) {\r\n this.score += pointsGainedLastRound;\r\n }\r\n pointsGainedLastRound = 0;\r\n placeLastRound = 0;\r\n }", "public int getF_Wins() {\n return f_wins;\n }", "private void Win(Player player){\n player.setBalance(player.getBalance() + player.getWager() * 1.5);\n System.out.println();\n System.out.println(player.getName() + \" wins!\");\n System.out.println(player.getName() + \"'s\" + \" balance is now \" + player.getBalance());\n }", "public int wins(String team) {\n return getTeamByName(team).wins;\r\n }", "public static void playerWonInc(){\r\n\t\t_playerWon++;\r\n\t}", "public void resetWinRecord()\n{\n gamesWon = 0;\n}", "public void setWinnumber(int Number) {\n\t\tif (Number != 0) {\n\t\t\tthis.winnumber = winnumber + Number;\n\t\t} else {\n\t\t\tthis.winnumber = 0;\n\t\t}\n\t}", "public int get_uWins()\r\n {\r\n return uWins;\r\n }", "public void setRegularCardsByWins(int wins, int cards) {\n statistics.getCardsByWins().put(wins, cards);\n }", "public String setWins(int Player){\n\t\t\tint winsUpdater = winsTracker[Player].getPlayer();\n\t\t\twinsUpdater++;\n\t\t\t\n\t\t\tfor(int i = 0; i<winsTracker.length;i++){\n\t\t\t\tif(i==Player){\n\n\t\t\t\t\twinsTracker[Player].setPlayer(winsUpdater);\n\t\t\t\t\tPlayer++;\n\t\t\t\t\treturn \"Player \"+Player+\"'s wins \" +winsUpdater;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\treturn \"null\";\n\t\t}", "public int getWinPercentage() {\n return winPercentage;\n }", "public void scoring(){\n for (int i=0; i< players.size(); i++){\n Player p = players.get(i);\n p.setScore(10*p.getTricksWon());\n if(p.getTricksWon() < p.getBid() || p.getTricksWon() > p.getBid()){\n int diff = Math.abs(p.getTricksWon() - p.getBid());\n p.setScore(p.getScore() - (10*diff));\n }\n if(p.getTricksWon() == p.getBid()){\n p.setScore(p.getScore() + 20);\n }\n }\n }", "void setWinningTeam(TeamId winner) {\n winningTeam.set(winner);\n }", "public void setWinner(String winner) {\n this.winner = winner;\n }", "protected void setScore(int s)\r\n\t{\r\n\t\tGame.score = s;\r\n\t}", "public void setRoundsWon(byte roundsWon){ this.roundsWon=roundsWon; }", "public void addWinnings(int value) {\n\t\tint winnings = getWinnings();\n\t\twinnings = winnings + value;\n\t\tString strWinnings = Integer.toString(winnings);\n\t\tBashCmdUtil.bashCmdNoOutput(\"sed -i \\\"1s/.*/ \"+strWinnings+\" /\\\" data/winnings\");\n\t}", "private void updatePlayersWorth(){\n for (Player e : playerList) {\n e.setPlayerWorth(getTotalShareValue(e) + e.getFunds());\n }\n }", "public void updateGame() \n\t{\n\t\tif (bet <= credit && bet <=500) // Verify that the bet is valid. \n\t\t{\n\t\t\tcredit = credit - bet; // Decrement the credit by the amount bet\n\t\t\tgamesPlayed++;\n\t\t\tif (ourWin == \"Royal Flush\")\n\t\t\t{\n\t\t\t\tgamesWon++;\t\t\t\t//Increment the amount of games won\n\t\t\t\tcurrentWin = 250 *bet; // Determine the current win\n\t\t\t\tcredit+= currentWin;\t// Add the winnings to the player's credit\n\t\t\t\twinnings+= currentWin;\t// Keep a tally of all the winnings to this point\n\t\t\t\tcreditValue.setText(String.valueOf(credit)); // Update the credit value.\n\t\t\t\tourWinLabel.setText(ourWin);\n\t\t\t}\n\t\t\telse if (ourWin == \"Straight Flush\")\n\t\t\t{\n\t\t\t\tgamesWon++;\n\t\t\t\tcurrentWin+= 50 * bet;\n\t\t\t\tcredit+= currentWin;\n\t\t\t\twinnings+= currentWin;\n\t\t\t\tcreditValue.setText(String.valueOf(credit));\n\t\t\t\tourWinLabel.setText(ourWin);\n\t\t\t}\n\t\t\telse if (ourWin == \"Four of a Kind\")\n\t\t\t{\n\t\t\t\tgamesWon++;\n\t\t\t\tcurrentWin+= 25 *bet;\n\t\t\t\tcredit+= currentWin;\n\t\t\t\twinnings+= currentWin;\n\t\t\t\tcreditValue.setText(String.valueOf(credit));\n\t\t\t\tourWinLabel.setText(ourWin);\n\t\t\t}\n\t\t\telse if (ourWin == \"Full House\")\n\t\t\t{\n\t\t\t\tgamesWon++;\n\t\t\t\tcurrentWin+= 9* bet;\n\t\t\t\tcredit+= currentWin;\n\t\t\t\twinnings+= currentWin;\n\t\t\t\tcreditValue.setText(String.valueOf(credit));\n\t\t\t\tourWinLabel.setText(ourWin);\n\t\t\t}\n\t\t\telse if (ourWin == \"Flush\")\n\t\t\t{\n\t\t\t\tgamesWon++;\n\t\t\t\tcurrentWin= 6 * bet;\n\t\t\t\tcredit+= currentWin;\n\t\t\t\twinnings+= currentWin;\n\t\t\t\tcreditValue.setText(String.valueOf(credit));\n\t\t\t\tourWinLabel.setText(ourWin);\n\t\t\t}\n\t\t\telse if (ourWin == \"Straight\")\n\t\t\t{\n\t\t\t\tgamesWon++;\n\t\t\t\tcurrentWin= 4* bet;\n\t\t\t\tcredit+= currentWin;\n\t\t\t\twinnings+= currentWin;\n\t\t\t\tcreditValue.setText(String.valueOf(credit));\n\t\t\t\tourWinLabel.setText(ourWin);\n\t\t\t}\n\t\t\telse if (ourWin == \"Three of a Kind\")\n\t\t\t{\n\t\t\t\tgamesWon++;\n\t\t\t\tcurrentWin= 3* bet;\n\t\t\t\tcredit+= currentWin;\n\t\t\t\twinnings+= currentWin;\n\t\t\t\tcreditValue.setText(String.valueOf(credit));\n\t\t\t\tourWinLabel.setText(ourWin);\n\t\t\t}\n\t\t\telse if (ourWin == \"Two Pair\")\n\t\t\t{\n\t\t\t\tgamesWon++;\n\t\t\t\tcurrentWin= 2* bet;\n\t\t\t\tcredit+= currentWin;\n\t\t\t\twinnings+= currentWin;\n\t\t\t\tcreditValue.setText(String.valueOf(credit));\n\t\t\t\tourWinLabel.setText(ourWin);\n\t\t\t}\n\t\t\telse if (ourWin == \"Jacks or Better\")\n\t\t\t{\n\t\t\t\tgamesWon++;\n\t\t\t\tcurrentWin= bet;\n\t\t\t\tcredit+= currentWin;\n\t\t\t\twinnings+= currentWin;\n\t\t\t\tcreditValue.setText(String.valueOf(credit));\n\t\t\t\tourWinLabel.setText(ourWin);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcreditValue.setText(String.valueOf(credit));\n\t\t\t\tgamesLost++;\n\t\t\t\tlosses+= bet;\n\t\t\t\tourWinLabel.setText(ourWin);\n\t\t\t}\n\t\t\t//Update the remaining statistics\n\t\t\tplayedValue.setText(String.valueOf(gamesPlayed));\n\t\t\twonValue.setText(String.valueOf(gamesWon));\n\t\t\tlostValue.setText(String.valueOf(gamesLost));\n\t\t\twinningsValue.setText(String.valueOf(winnings));\n\t\t\tlossesValue.setText(String.valueOf(losses));\n\t\t}\t\n\t}", "@Override\n public void setWinner(Player winner)\n {\n for(int i = 0; i < gc.getF().size(); i++)\n {\n if(gc.getF().get(i).readyStart() == 0 || gc.getF().get(i).readyStart() == 1)\n {\n gc.getF().get(gc.getF().size() -1).addPlayer(this.winner);\n sl.save(\"The winner of QuarterFinal ID: \" + this.getGameID() + \" is: \"\n + winner.getName(), \"qfwinners.txt\");\n gc.getGameHistory().add(this); \n System.out.println(winner.getName() + \" has won the round! Player added to the Final!\");\n return;\n }\n }\n //If there are no available spots, make a new game\n Final f = new Final();\n System.out.println(\"created a new Final!\");\n f.addPlayer(winner);\n //Save winner details\n sl.save(\"The winner of QuarterFinal ID: \" + this.getGameID() + \" is: \"\n + winner.getName(), \"qfwinners.txt\");\n \n gc.getF().add(f);\n //Move game to history \n gc.getGameHistory().add(this); \n System.out.println(winner.getName() + \" has won the round! Player added to the Final!\");\n \n }", "@Override\n\tpublic void updateWinAvGames(Player player) {\n\t\tint gamesWon = 0;\n\t\tList<Game> games = listGames(player);\n\t\tfor (int i=0;i<games.size();i++) { \n\t\t\tif(games.get(i).isWon())\n\t\t\t\tgamesWon++;\n\t\t}\n\t\tdouble winAverage=(double) gamesWon / (double) games.size();\n\t\tplayer.setWinAvg(winAverage);\n\t}", "public void incXWins() {\n xWins++;\n }", "private void addWin(LeagueTableEntry entry) {\r\n\t\tentry.setWins(entry.getWins() + 1);\r\n\t\tentry.setPoints(entry.getPoints() + 3);\r\n\t}", "public void setGameDraw() {\n this.gameStarted = false; \n this.winner = 0; \n this.isDraw = true; \n }", "public int getWinner();", "private void increaseScore() {\n this.game.getPlayers().values().forEach(ship -> {\n ship.increaseScore();\n if (ship.getScore() % 5 == 0) {\n this.asteroidsLimit++;\n }\n });\n }", "public void incGamesPlayed() {\n gamesPlayed++;\n }", "public void setLosses(int value) {\n this.losses = value;\n }", "public void setMinimumPlayers(int nPlayers)\r\n {\n \r\n }", "@Test\r\n\tpublic void gameWinCheckCallsCorrectWinner() {\r\n\t\tBowl bowl = new Bowl();\r\n\t\tvar answer = bowl.gameWinCheck();\r\n\t\tassertEquals(-1,answer);\r\n\t\tbowl = setupGame(bowl);\r\n\t\tanswer = bowl.gameWinCheck();\r\n\t\tassertEquals(1,answer);\r\n\t\tbowl.getNeighbor(6).passTheft(49);\r\n\t\tanswer = bowl.getNeighbor(2).gameWinCheck();\r\n\t\tassertEquals(0,answer);\r\n\t}", "public int getNumWins() {\n\t\treturn this.numWins;\n\t}", "@Override\n public void setNrPlayers(int value) {\n this.nrPlayers = value;\n }", "public void setWinner(boolean winner) {\n\t\tthis.winner = winner;\n\t}", "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 int getWinner() {\n return winner;\n }", "public void setGamesCompleted(int num)\r\n {\r\n //Check if the new average time is less than 0 before setting the new average time \r\n if(num < 0)\r\n {\r\n //Outouts a warning message\r\n System.out.println(\"WARNING:You cannot assign a negative number of games completed\");\r\n }\r\n else \r\n {\r\n this.gamesCompleted = num; \r\n }//end if\r\n }", "void win() {\n String name = score.getName();\n if (Time.getSecondsPassed() < 1) {\n calculateMissionScore();\n setHighscoreName(name);\n int totalSum = score.getCurrentScore() + (10000 / 1);\n System.out.println(\"You have won the game!\" + \"\\n\" + \"You spend: \" + 1 + \" seconds playing the game!\");\n System.out.println(\"Your score is: \" + totalSum);\n System.out.println(\"your score has been added to highscore\");\n data.addHighscore(score.getName(), totalSum);\n System.out.println(\"\");\n System.out.println(\"Current highscore list is: \");\n System.out.println(data.printHighscore());\n } else {\n calculateMissionScore();\n setHighscoreName(name);\n int totalSum = score.getCurrentScore() + (10000 / Time.getSecondsPassed());\n System.out.println(\"You have won the game!\" + \"\\n\" + \"You spend: \" + Time.getSecondsPassed() + \" seconds playing the game!\");\n System.out.println(\"Your score is: \" + totalSum);\n System.out.println(\"your score has been added to highscore\");\n data.addHighscore(score.getName(), totalSum);\n System.out.println(\"\");\n System.out.println(\"Current highscore list is: \");\n System.out.println(data.printHighscore());\n }\n }", "public void setUserNumberOfRocks(int number) {\n\t\tfor (int x = 0; x < 14; x++) {\n\t\t\tif (x == 0 || x == 7) {\n\t\t\t\tbucket[x].setnumOfRocks(0, true);\n\t\t\t} else {\n\t\t\t\tbucket[x].setnumOfRocks(number, true);\n\t\t\t}\n\t\t}\n\t}", "public int get_cWins()\r\n {\r\n return cWins;\r\n }", "public void incrTurn(){\n this.turn++;\n }", "public void incrementTimesPlayed() {\r\n\t\ttimesPlayed++;\r\n\t}", "public int trickWinner(){\n Card.NUMBER one = player1Play.getValue();\n Card.NUMBER two = player2Play.getValue();\n Card.NUMBER three = player3Play.getValue();\n Card.NUMBER four = player4Play.getValue();\n Card.SUIT oneSuit = player1Play.getSuit();\n Card.SUIT twoSuit = player2Play.getSuit();\n Card.SUIT threeSuit = player3Play.getSuit();\n Card.SUIT fourSuit = player4Play.getSuit();\n int[] value = new int[4];\n value[0] = Card.getValsVal(one, oneSuit, currentTrumpSuit);\n value[1] = Card.getValsVal(two, twoSuit, currentTrumpSuit);\n value[2] = Card.getValsVal(three, threeSuit, currentTrumpSuit);\n value[3] = Card.getValsVal(four, fourSuit, currentTrumpSuit);\n if(player1Play.getSuit() == firstPlayedSuit && firstPlayedSuit != currentTrumpSuit && value[0] != 7){\n value[0] += 10;\n }\n if(player2Play.getSuit() == firstPlayedSuit && firstPlayedSuit != currentTrumpSuit && value[0] != 7){\n value[1] += 10;\n }\n if(player3Play.getSuit() == firstPlayedSuit && firstPlayedSuit != currentTrumpSuit && value[0] != 7){\n value[2] += 10;\n }\n if(player4Play.getSuit() == firstPlayedSuit && firstPlayedSuit != currentTrumpSuit && value[0] != 7){\n value[3] += 10;\n }\n if(player1Play.getSuit() == currentTrumpSuit || value[0] == 7){\n value[0] += 20;\n }\n if(player2Play.getSuit() == currentTrumpSuit || value[1] == 7){\n value[1] += 20;\n }\n if(player3Play.getSuit() == currentTrumpSuit || value[2] == 7){\n value[2] += 20;\n }\n if(player4Play.getSuit() == currentTrumpSuit || value[3] == 7){\n value[3] += 20;\n }\n int winner = 0;\n int winVal = 0;\n for(int i = 0; i < 4; i++){\n if(value[i] > winVal){\n winVal = value[i];\n winner = i;\n }\n }\n return winner;\n }", "public int winner() {\n if(humanPlayerHits == 17) {\n return 1;\n }\n if(computerPlayerHits == 17){\n return 2;\n }\n return 0;\n }", "public short getWins() {\n\n return m_wins;\n }", "public void setRoundNum(int roundNum){\n gameRounds = roundNum;\n }", "public int getOWins() {\n return oWins;\n }", "public void checkWin() {\n if (rockList.isEmpty() && trackerRockList.isEmpty() && bigRockList.isEmpty() && bossRockList.isEmpty()) {\n if (ship.lives < 5) {\n ship.lives++;\n }\n Level++;\n LevelIntermission = true;\n LevelIntermissionCount = 0;\n }\n }", "public void setRankingMethod(String league, String winP, String drawP, String loseP) {\n // TODO: get league\n // League league = get from DB by leagueName\n // league.getRankingMethod().setRankingMethod(Integer.parseInt(winP), Integer.parseInt(loseP), Integer.parseInt(drawP));\n logger.info(\"New Ranking Method was added to \" + league);\n }", "public int wins(String team) {\n validateTeam_(team);\n TeamRecord_ teamRecord = teamsRecord_.get(team);\n validateTeamRecord_(teamRecord);\n return teamRecord.numberOfWins_;\n }", "@Override\n\tpublic void bowl(Player player, int throw1, int throw2, int setCount) {\n\t\tif (throw1 == 10) {\n\t\t\tcalculateSetScore(throw1, player, setCount);\n\t\t} else {\n\t\t\tcalculateSetScore(throw1, throw2, player, setCount);\n\t\t}\n\t}", "@IcalProperty(pindex = PropertyInfoIndex.POLL_WINNER,\n jname = \"pollWinner\",\n vpollProperty = true\n )\n @NoDump\n public void setPollWinner(final Integer val) {\n if (val == null) {\n final BwXproperty x = findXproperty(BwXproperty.pollWinner);\n if (x != null) {\n removeXproperty(x);\n }\n } else {\n replaceXproperty(BwXproperty.pollWinner, String.valueOf(val));\n }\n }", "void setScoreValue(int scoreValue);", "void setCurrentHP(final int newHP);", "public void setPlayerRoll20()\r\n {\r\n \r\n roll2 = ((int)(Math.random() * 100) % HIGHEST_DIE_VALUE20 + LOWEST_DIE_VALUE20);\r\n \r\n }", "public void setLoses() {\r\n this.losses++;\r\n }", "public void setScore (int newScore)\n {\n this.score = newScore;\n }", "public void gewonnen(int gewinn) {\n\t\tthis.gewinn += gewinn;\n\t}", "private static double getWinRate() {\n\t\treturn winRate ;\n\t}", "public abstract void win(int money);" ]
[ "0.83896875", "0.8346442", "0.83126837", "0.7800926", "0.77556324", "0.76796347", "0.74562794", "0.73935735", "0.7359092", "0.72611123", "0.71546423", "0.7134175", "0.7089486", "0.7065421", "0.7028524", "0.70130754", "0.6894856", "0.6891728", "0.688055", "0.6836152", "0.68265104", "0.6815947", "0.6784299", "0.67761713", "0.67383844", "0.6695474", "0.66927004", "0.6682414", "0.6646285", "0.66414666", "0.6630862", "0.66247267", "0.66112226", "0.6603222", "0.660045", "0.6583887", "0.6559571", "0.6559518", "0.6531207", "0.65232855", "0.65100926", "0.6494285", "0.6460023", "0.6459258", "0.64156497", "0.64028764", "0.6391888", "0.6389529", "0.63727367", "0.63710153", "0.6368164", "0.63640386", "0.6358746", "0.6357435", "0.6348251", "0.6347278", "0.63371754", "0.63330096", "0.63321567", "0.632447", "0.6322799", "0.6317439", "0.63106114", "0.63003504", "0.6289569", "0.62821037", "0.62785065", "0.62781596", "0.6260837", "0.6258378", "0.625512", "0.6248278", "0.6244532", "0.62380046", "0.6218227", "0.62098444", "0.6195425", "0.61941934", "0.6192225", "0.61752445", "0.6162092", "0.6162088", "0.61575615", "0.6154197", "0.6152031", "0.61465836", "0.61429536", "0.61338323", "0.6126888", "0.6125391", "0.6123058", "0.61218125", "0.6117058", "0.6111271", "0.6103279", "0.6095379", "0.6091334", "0.60807234", "0.60732925", "0.60728973" ]
0.7101372
12
method to set the amount of loses to the database
public void setLoses(String teamName, int loses) throws SQLException { // Create a connection to the database. conn = DriverManager.getConnection(DB_URL); // Create a Statement object for the query. Statement stmt = conn.createStatement(); // Execute the update. stmt.executeUpdate("UPDATE Team " + "SET loses = " + loses + " WHERE teamName = '" + teamName + "'"); // Close the Connection and Statement objects. conn.close(); stmt.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLoses() {\r\n this.losses++;\r\n }", "public void setLosses(int value) {\n this.losses = value;\n }", "public void Deposit(double ammount){\n abal = ammount + abal;\n UpdateDB();\n }", "void setExpenses(double amount);", "void setIncome(double amount);", "private void addLoss(LeagueTableEntry entry) {\r\n\t\tentry.setLosses(entry.getLosses() + 1);\r\n\t}", "public void setAmount(double amount) {\nloanAmount = amount;\n}", "public void buyDecreaseDamage() {\n this.decreaseDamage++;\n }", "public void setPricePerSquareFoot(double newPricePerSquareFoot){\nif(newPricePerSquareFoot > 0){\npricePerSquareFoot = newPricePerSquareFoot;\n}\n}", "public static void lose()\n\t{\n\t\tGame.setMoney(Game.getMoney()-bet);\n\t\tremainingMoneyN.setText(String.valueOf(Game.getMoney()));\n\t\tbet=0;\n\t\ttfBet.setText(\"0\");\n\t\tlblUpdate.setText(\"The dealer wins\");\n\t\tif(Game.getMoney()<=0)\n\t\t{\n\t\t\tGame.setComplete(true);\n\t\t\tendGameSequence();\n\n\t\t}\n\t}", "void setCurrentHP(final int newHP);", "public void setBonusScore() {\r\n count = count+50;\r\n }", "public void setAmount(long amount);", "public void withdraw(double ammount) throws insufficientFunds{\n if(ammount > abal)\n throw new insufficientFunds();\n else{\n ammount = abal - ammount;\n UpdateDB();\n }\n }", "public void upgradeWardenGainLoseAmount(int amount) {\n this.baseWardenGainLoseAmount = this.wardenGainLoseAmount + amount;\n this.wardenGainLoseAmount = this.baseWardenGainLoseAmount;\n this.upgradedWardenGainLoseAmount = true;\n }", "void updateBalance(int amount){ \n\t\tbalance = amount;\n\t}", "public void toilette() {\n if (!autoriseOperation()) {\n return;\n }\n incrSale(-3);\n incrHumeur(1);\n incrXp(1);\n\n setChanged();\n notifyObservers();\n }", "public static void setMoney(Integer payment) {\n\n money.moneyLevel += payment;\n money.save();\n }", "Status setWornCount();", "@Override\r\n\t\tpublic void setHoldability(int holdability) throws SQLException {\n\t\t\t\r\n\t\t}", "public void setBalance(){\n balance.setBalance();\n }", "public void setAwayScore(int a);", "public void setInitilaCash(int noOfBills) throws java.lang.Exception;", "public void setBankroll(double money) {\n bankroll += money;\n if (bankroll <= 0){\n activePlayer = false;\n }\n }", "public void SetWealth(int w)\n{\n\twealth=w;\n}", "public final void setFuelUpgrade(int fuelUp){fuelUpgrade = fuelUp;}", "public int getLosses() {\n return losses;\n }", "void bust() {\n\t\t_loses++;\n\t\t//_money -= _bet;\n\t\tclearHand();\n\t\t_bet = 0;\n\t}", "public void incrementAmountBought() {\n amountBought++;\n }", "public int setInactiveForNoRebill();", "void setBalance(double value);", "public void lostLife(){\r\n\t\tthis.lives--;\r\n\t}", "void setScore(long score);", "public void updateHp(double amount);", "public int checkNoOfExplosivesPlayerHolds () { return noOfExplosives; }", "void setExtremeSpikeIncrease(VariableAmount increase);", "public void Close(int bin, int amount, String serial){\n try{ \r\n c = DbConnect.getConnection();\r\n //Select and add up the rows where sale is not closed. \r\n pstmt = c.prepareStatement(\"Select SUM(sale_amount) from till_tape where sale_closed = 0\");\r\n rs = pstmt.executeQuery(); \r\n System.out.println(\"Executed select\");\r\n rs.next();\r\n int num = rs.getInt(1);//change to return of int value\r\n System.out.println(num);\r\n //Update rows where sale_closed = 0 to confirm the sale\r\n pstmt = c.prepareStatement(\"Update till_tape SET sale_closed = 1 where sale_closed = 0\");\r\n pstmt.executeUpdate();\r\n System.out.println(\"Executed update\");\r\n //Modify the values of the ticket rows, unsold, actual gross, actual prizes\r\n //use stack database\r\n\r\n }catch (Exception e) { e.printStackTrace(); }\r\n \r\n}", "public void buyLife() {\n this.lives++;\n livesWereBought++;\n\n }", "@Override\r\n\t\tpublic int getHoldability() throws SQLException {\n\t\t\treturn 0;\r\n\t\t}", "public int baldown(double newbalance, Long accountno, Long broaccno, Double bramt) throws Exception{\n\tint j=DbConnect.getStatement().executeUpdate(\"update account set balance=\"+newbalance+\" where accno=\"+accountno+\"\");\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update account set balance=balance+\"+bramt+\" where accno=\"+broaccno+\"\");\r\n\treturn i;\r\n}", "public double withdraw(double withAmnt){\n try {\n String queryStr = \"update dummybank set amount = ? where accountNo = ?\";\n ps = con.prepareStatement(queryStr);\n ps.setDouble(1,this.amnt - withAmnt );\n ps.setString(2, accNo);\n ps.executeUpdate();\n } catch (SQLException ex) {\n Logger.getLogger(BankDBConnector.class.getName()).log(Level.SEVERE, null, ex);\n }\n return this.amnt - withAmnt;\n }", "public int losses(String team) {\n\n return 0;\n }", "void setDiscount(float sconto);", "public void setLives(int lives) {this.lives = lives;}", "public void setSteak(double countNo) {\n steak = countNo;\r\n }", "public void setOldLoyaltyScale(int value) {\n this.oldLoyaltyScale = value;\n }", "public void changeCostumeRight(){\n if(costume == 3){\n costume = 0;\n }\n else{\n costume ++;\n }\n Locker.updateCostume(costume);\n PrefLoader.updateFile();\n\n }", "public int raiseMoney()\r\n {\r\n int total = super.raiseMoney();\r\n getCandidate().setMoneyMod(getCandidate().getMoneyMod() - .05);\r\n return total;\r\n }", "public void setScore (int newScore)\n {\n this.score = newScore;\n }", "public void setPriceLimitOld (BigDecimal PriceLimitOld);", "public void resetAmountSold() { amountSold = 0; }", "public int getLosses() {\n return losses;\n }", "public void setPrice(double price){\r\n Random chance = new Random();\r\n int crashChance = chance.nextInt(100);\r\n double droppedPrice = price * ThreadLocalRandom.current().nextDouble(0.6, 0.8);\r\n if (crashChance > 95) {\r\n setPlusMinus(\"Down\");\r\n System.out.println(\"This stock has crashed.\");\r\n super.setPrice(price - droppedPrice);\r\n } else if(crashChance < 5){\r\n setPlusMinus(\"Up\");\r\n System.out.println(\"This stock has surged.\");\r\n super.setPrice(price + droppedPrice);\r\n } else {\r\n super.setPrice(price);\r\n }\r\n }", "void setSpokes(long spokes);", "public void setAmount(int moneyOption);", "public synchronized void setGoldAmt(int newAmt) {\n\t\tgoldAmt = newAmt;\n\t\tif(goldAmt < 0) \n\t\t\tgoldAmt = 0;\n\t\tgameHud.setGold(goldAmt);\n\t\t\n\t}", "public void setBalance(double bal){\n balance = bal;\r\n }", "public void loseMoney(int money) {\n\t\tthis.money = this.money - money;\n\t}", "public void takeOutLoan(double value)\r\n {\r\n loan += value;\r\n addCash(value);\r\n }", "private void setWallet(int dollars) {\n\t\twallet += dollars;\n\t}", "private void increaseDBValue(String target, int value){\n database.getReference(gameCodeRef).child(target).setValue(value+1);\n }", "int getLoses() {return _loses;}", "public void withdraw(int amount)\n {\n setBalance(getBalance()-amount);\n }", "public Loyalty(int l)\r\n\t{\r\n\t\tvalue = l;\r\n\t}", "void setCurrentAmount(double newAmount) {\n this.currentAmount = newAmount;\n }", "private int adjustLoan(PreparedStatement updateLoan, int loanNumber, float adjustedLoanAmount) throws SQLException {\n updateLoan.setFloat(1, adjustedLoanAmount);\n updateLoan.setInt(2, loanNumber);\n return updateLoan.executeUpdate(); // TODO: call to executeUpdate on a PreparedStatement\n }", "public void recordPurchase(double amount)\n {\n balance = balance - amount;\n // your code here\n \n }", "public void refillLife(){\r\n\t\tthis.life = totalLife;\r\n\t}", "public void setNumSales(int numSales){\r\n this.sales = numSales;\r\n }", "public void warningCoins(int coins);", "public void updateHealth(int healthLost){\n\t\thealth -= healthLost;\n\t\thealthLeftLabel.setText(\"\" + health);\n\t}", "public void setBet(double bet){\n\t\tthis.bet = bet;\n\t\ttotalMoney -= bet;\n\t}", "public void companyPayRoll(){\n calcTotalSal();\n updateBalance();\n resetHoursWorked();\n topBudget();\n }", "public void increaseWins(){\n this.numberOfWins=this.numberOfWins+1;\n }", "public void withdraw(double amount) {\n this.balance -= amount;\n }", "public void buyFuelGainMultiply() {\n this.fuelGainMultiply++;\n }", "public void withdraw(double amount){\n\t\tbalance -= amount;\n\t}", "void set(long newValue);", "public void setLBR_LatePaymentPenaltyDays (int LBR_LatePaymentPenaltyDays);", "@Override\n\tvoid withdraw(double amount) {\n\t\tsuper.balance -= amount - 20;\n\t}", "public void decrementAmount() {\n this.amount--;\n amountSold++;\n }", "public abstract void setDiscountRate(double discountRate);", "public void win(int wager){\n bankroll += wager;\n }", "private void updateMoney() {\n balance = mysql.getMoney(customerNumber);\n balanceConverted = (float) balance / 100.00;\n }", "public void markUnsold(){\n\n myMaxRejectCountCount--;\n }", "public void save() {\n settingService.saveMaxScore(score);\r\n// powerUpCount = 0;\r\n// powerDownCount = 0;\r\n// purplePowerCount = 0;\r\n// yellowMadnessCount = 0;\r\n// shapeCount = 0;\r\n }", "public void setWins(int value) {\n this.wins = value;\n }", "@Override\n\tpublic void withdraw(int money) {\n\t\t\n\t}", "@Test\n public void negativeIncrement() {\n manager.raiseSalary(-2.0);\n }", "void setDiscount(BigDecimal discount);", "public void setReputation(double reputation) {\n if(reputation >= 0.0 && reputation <= 100.0){\n this.reputation = reputation;\n }\n else if(reputation > 100.0){\n this.reputation = 100.0;\n }\n else{\n this.reputation = 0.0;\n }\n}", "public int balup(double newbalance, Long accountno, Long broaccno, Double bramt) throws Exception{\n\tint j=DbConnect.getStatement().executeUpdate(\"update account set balance=\"+newbalance+\" where accno=\"+accountno+\"\");\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update account set balance=balance+\"+bramt+\" where accno=\"+broaccno+\"\");\r\n\treturn i;\r\n}", "public static void setNewHP(int newHP){\r\n\t\thp -= newHP;\r\n\t}", "public void increase() {\n balance.multiply(1.001);\n }", "public void doubleDown(){\n\t\ttotalMoney -= bet;\n\t\tbet += bet;\n\t}", "private void setLikesCount(int value) {\n \n likesCount_ = value;\n }", "public void setBonusAmount(long value) {\r\n this.bonusAmount = value;\r\n }", "public GoalMoneySaved(double moneySaved) {\n MoneySaved = moneySaved;\n }", "@Override\r\n public void setDownPayment(double downPayment) throws InsufficientDownPayment {\n if(downPayment < accountBalance *0.05)\r\n throw new InsufficientDownPayment(\"A VA Mortgage down payment must be at least 5% of your loan)\");\r\n changeBalance(-downPayment);\r\n }", "public void setBet(double money) throws IllegalBetException\n {\n if (bankroll >= money){\n bet = money;\n }else{\n throw new IllegalBetException(\"OoPSss!! There is not enough money to bet!\");\n }\n }" ]
[ "0.70748967", "0.68728936", "0.6812243", "0.65871245", "0.6199139", "0.61919916", "0.61666334", "0.61450773", "0.61163735", "0.6092753", "0.60784066", "0.606286", "0.6051603", "0.60099006", "0.5981013", "0.5972179", "0.5964868", "0.58913285", "0.58886814", "0.58760333", "0.5856759", "0.5854646", "0.5832651", "0.5830878", "0.58274066", "0.5827362", "0.58258164", "0.58247787", "0.58146334", "0.5807084", "0.5803372", "0.5802969", "0.5802353", "0.5779755", "0.5776242", "0.57635057", "0.5750554", "0.57412106", "0.5740961", "0.57331437", "0.57306767", "0.5728311", "0.5722461", "0.5719237", "0.57164556", "0.5697813", "0.5673844", "0.56704074", "0.56599593", "0.56585413", "0.5655638", "0.56540203", "0.5653735", "0.5650818", "0.56387544", "0.56378675", "0.5633445", "0.5631725", "0.5628502", "0.56261516", "0.56188613", "0.5606098", "0.55919695", "0.5591861", "0.55910814", "0.5590889", "0.5587405", "0.5586658", "0.557219", "0.55647504", "0.5564191", "0.55628854", "0.55624324", "0.5555995", "0.5554581", "0.55537087", "0.5553208", "0.5548213", "0.55471694", "0.55416423", "0.5539341", "0.55378354", "0.55358946", "0.55307335", "0.55281955", "0.5527787", "0.5525896", "0.5520705", "0.5516101", "0.55160916", "0.5508707", "0.55034095", "0.5502891", "0.54999286", "0.549969", "0.54985833", "0.5494271", "0.54918444", "0.549139", "0.5477073" ]
0.69576806
1
method to return the result set of teamnames that equal the arguement passed through
public ResultSet getTeamInfo(String teamsname) throws SQLException { // Create a connection to the database. conn = DriverManager.getConnection(DB_URL); // Create a Statement object for the query. Statement stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY); // Execute the query. ResultSet resultSet = stmt.executeQuery("SELECT * FROM Team WHERE teamName = '" + teamsname + "'"); return resultSet; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Set<String> getMemberSet(String teamName) throws RemoteException, InterruptedException;", "Set<String> getTeamSet(String userName) throws RemoteException, InterruptedException;", "@Override\n\tpublic HashSet<String> getTeams() {\n return new HashSet<String>();\n\t}", "public ResultSet getTeamNames() {\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString teamNamesRecords_sql = \"SELECT name FROM \" + team_table;\n\t\tconnection = connector.getConnection();\n\t\ttry {\n\t\t\tstatement = connection.prepareStatement(teamNamesRecords_sql);\n\t\t\trs = statement.executeQuery();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn rs;\n\t}", "private static HashSet<String> getNames() {\n String[] names = {\n \"James\",\n \"John\",\n \"Robert\",\n \"Michael\",\n \"William\",\n \"David\",\n \"Richard\",\n \"Charles\",\n \"Joseph\",\n \"Thomas\",\n \"Christopher\",\n \"Daniel\",\n \"Paul\",\n \"Mark\",\n \"Donald\",\n \"George\",\n \"Kenneth\",\n \"Steven\",\n \"Edward\",\n \"Brian\",\n \"Ronald\",\n \"Anthony\",\n \"Kevin\",\n \"Jason\",\n \"Matthew\",\n \"Gary\",\n \"Timothy\",\n \"Jose\",\n \"Larry\",\n \"Jeffrey\",\n \"Frank\",\n \"Scott\",\n \"Eric\",\n \"Stephen\",\n \"Andrew\",\n \"Raymond\",\n \"Gregory\",\n \"Joshua\",\n \"Jerry\",\n \"Dennis\",\n \"Walter\",\n \"Patrick\",\n \"Peter\",\n \"Harold\",\n \"Douglas\",\n \"Henry\",\n \"Carl\",\n \"Arthur\",\n \"Ryan\",\n \"Roger\"\n };\n\n return new HashSet<>(Arrays.asList(names));\n }", "Set<String> getPlayers();", "public Person[] getTeamOf(Person actor);", "public static void oneTeam(String[] name, int[] team)\n {\n int a=0;\n System.out.println(\"The following players played with one team for their entire NHL careers:\");\n for(int i=0;i<team.length;i++)\n { \n if(team[i]==1)\n {\n System.out.println(name[i]);\n }//end of if statement\n }//end of for loop\n }", "public String[] getAvailableTeams() {\n\n int team1 = 0;\n int team2 = 0;\n if (activePlayers > 0) {\n for (int i = 0; i < activePlayers; i++) {\n if (players[i].getTeam() == teams[0]) {\n team1++;\n continue;\n }\n team2++;\n }\n\n String[] team = new String[2];\n if ((activePlayers == numMaxPlayers - 1) && (team1 == 0 || team2 == 0)) {\n if (team1 == 0) {\n team[0] = teams[0].toString();\n return team;\n }\n team[0] = teams[1].toString();\n return team;\n }\n }\n return new String[]{teams[0].toString(), teams[1].toString(), null};\n }", "public String[] getTeamNames()\r\n\t{\r\n\t\t\r\n\t\tString[] names = new String[NUM_TEAMS];\r\n\t\t\r\n\t\tfor(int i = 0; i < teams.size(); i++)\r\n\t\t{\r\n\t\t\tnames[i] = teams.get(i).getName();\t\r\n\t\t}\r\n\r\n\t\treturn names;\r\n\t}", "boolean hasTeam();", "public static void main(String[] args) {\n\n ArrayList<String> students = new ArrayList<>();\n students.add(\"Sayeem\");\n students.add(\"Wagar\");\n students.add(\"Beslan\");\n students.add(\"Dawut\");\n students.add(\"Ramazan\");\n students.add(\"Mehary\");\n\n // Verify that the names: Ulku, Busra are contained in students list\n\n boolean r = students.containsAll(Arrays.asList(\"Ulku\", \"Busra\") );\n System.out.println(r);\n\n System.out.println(\"=======================================\");\n\n ArrayList<String> group1 = new ArrayList<>();\n\n // add all student names in your group\n group1.addAll( Arrays.asList(\"Muhtar\", \"Nadir\", \"Asiya\", \"Saim\"));\n\n // verify your mentor and one of your closest friend' names are contained in the list\n group1.containsAll( Arrays.asList(\"Mike\"));\n\n\n\n }", "public Match findMatchFromTeamName(String name1, String name2){\r\n Iterator<Match> itr = this.resultsTree.iterator();\r\n Match m;\r\n while (itr.hasNext()) {\r\n m = itr.next();\r\n if (m.getTeam1().getName().equals(name1) \r\n && m.getTeam2().getName().equals(name2)){\r\n return m;\r\n }\r\n }\r\n return null;\r\n }", "public ArrayList<CollegeFootballTeam> rankTeams();", "public ArrayList<Member> getAllSubteamMembers(String j) {\n\t\tArrayList<Member> subteamMembers = new ArrayList<>();\n\t\tfor(int i=0; i<members.size(); i++){\n\t\t\tif(members.get(i).getSubteam().equals(j)) {\n\t\t\t\tsubteamMembers.add(members.get(i));\n\t\t\t}\n\t\t}\n\t\treturn subteamMembers;\n\t\t\n\t}", "HashSet<String> displayEmployee();", "@Override\r\n public String[] getResult(){\n int max = Collections.max(user_input.values());\r\n //iterate the inputs and find the players who matches\r\n List<String> winners = new ArrayList<>();\r\n for (Entry<String, Integer> entry : user_input.entrySet()) {\r\n if (entry.getValue()==max) {\r\n winners.add(entry.getKey());\r\n }\r\n }\r\n return Arrays.copyOf(winners.toArray(), winners.size(), String[].class);\r\n }", "public static void main(String[] args) {\n\n\n\t\tHashSet<String> actual = uniqueTuple(\"aaabbb\", 2);\n\t\tHashSet<String> expected = new HashSet<String>();\n\t\texpected.add(\"aa\");\n\t\texpected.add(\"ab\");\n\t\texpected.add(\"bb\");\n System.out.println(expected.containsAll(actual));\n }", "private static void checkOne(ArrayList<Team> teamArray){\n int teamNum=1;\r\n int check = 0;\r\n boolean used = false;\r\n\r\n //sets Tokimon that have a JSON or is the first tokimon on the JSON\r\n //sorts Tokimon on team alphabetically and sorts teams by team number\r\n for(Team team: teamArray){\r\n team.getMembers().get(0).setHasJson(true);\r\n team.getMembers().get(0).setIsFirst(true);\r\n team.setOwner(team.getMembers().get(0));\r\n Collections.sort(team.getMembers(), new TokimonComparator());\r\n }\r\n Collections.sort(teamArray, new TeamComparator());\r\n\r\n for(int a=0; a<teamArray.size()-1; a++){\r\n for(int b=0; b<teamArray.get(a).getMembers().size(); b++){\r\n for(int c=a+1; c<teamArray.size(); c++){\r\n //finds if the Tokimon submitted a JSON file\r\n if(teamArray.get(a).getMembers().get(b).getId().trim().equalsIgnoreCase(teamArray.get(c).getMembers().get(0).getId().trim())){\r\n teamArray.get(c).getMembers().get(0).setHasJson(true);\r\n }\r\n for(int d=0; d<teamArray.get(c).getMembers().size(); d++){\r\n //If two Tokimon have the same ID, but different names on JSON files then exit\r\n if(teamArray.get(a).getMembers().get(b).getId().trim().equalsIgnoreCase(teamArray.get(c).getMembers().get(d).getId().trim())){\r\n if(teamArray.get(a).getMembers().get(b).getName().equals(teamArray.get(c).getMembers().get(d).getName())==false){\r\n System.out.println(\"Tokimon property match error between:\\n\");\r\n System.out.println(\"Name: \" + teamArray.get(a).getMembers().get(b).getName() + \" ID: \" + teamArray.get(a).getMembers().get(b).getId());\r\n System.out.println(\"Path and Filename: \" + teamArray.get(c).getFilename());\r\n System.out.println(\"and\");\r\n System.out.println(\"Name: \" + teamArray.get(c).getMembers().get(d).getName() + \" ID: \" + teamArray.get(c).getMembers().get(d).getId());\r\n System.out.println(\"Path and Filename: \" + teamArray.get(a).getFilename());\r\n System.exit(-1);\r\n }\r\n if(teamArray.get(a).getMembers().get(b).getHasJson()==true || teamArray.get(c).getMembers().get(d).getHasJson()==true){\r\n teamArray.get(a).getMembers().get(b).setHasJson(true);\r\n teamArray.get(c).getMembers().get(d).setHasJson(true);\r\n }\r\n }\r\n //used to check if team is equal\r\n if(teamArray.get(a).getMembers().size() == teamArray.get(c).getMembers().size()){\r\n used = true;\r\n if(teamArray.get(a).getMembers().get(d).getId().trim().equalsIgnoreCase(teamArray.get(c).getMembers().get(d).getId().trim())){\r\n check++;\r\n }\r\n }\r\n }\r\n //sets what team they are on\r\n if(check== teamArray.get(a).getMembers().size() && used == true ){\r\n if(teamArray.get(a).getTeamNum() == -1){\r\n teamArray.get(a).setTeamNum(teamNum);\r\n }\r\n teamArray.get(c).setTeamNum(teamArray.get(a).getTeamNum());\r\n }else if(check != teamArray.get(a).getMembers().size() && check!=0){\r\n System.out.println(\"Tokimon contained on different teams\");\r\n System.out.println(\"Path and Filename: \" + teamArray.get(a).getFilename());\r\n System.exit(-1);\r\n }\r\n if(teamArray.get(a).getMembers().size()==1){\r\n if(check == 1){\r\n System.out.println(\"Duplicate of single Tokimon team found\");\r\n System.out.println(\"Path and Filename: \" + teamArray.get(a).getFilename());\r\n System.exit(-1);\r\n }\r\n teamArray.get(a).setTeamNum(teamNum);\r\n }\r\n check = 0;\r\n used = false;\r\n }\r\n teamNum++;\r\n }\r\n }\r\n //base case if a single Tokimon team is last\r\n if(teamArray.get(teamArray.size()-1).getMembers().size()==1 && teamArray.get(teamArray.size()-1).getTeamNum()==-1){\r\n teamArray.get(teamArray.size()-1).setTeamNum(99999);\r\n }\r\n for(Team team: teamArray){\r\n for(Tokimon tokimon: team.getMembers()){\r\n //makes sure all tokimon have JSON\r\n if(tokimon.getHasJson()==false){\r\n System.out.println(\"Tokimon missing JSON submission\");\r\n System.out.println(\"Path and Filename: \" + team.getFilename());\r\n System.out.println(\"Name: \" + tokimon.getName() + \" ID: \" + tokimon.getId());\r\n System.exit(-1);\r\n }\r\n// System.out.println(tokimon.getId());\r\n }\r\n //makes sure tokimon only appear on one team\r\n if(team.getTeamNum()==-1){\r\n System.out.println(\"One or more teams are incorrect\");\r\n System.out.println(\"Path and Filename: \" + team.getFilename());\r\n System.exit(-1);\r\n }\r\n\r\n }\r\n }", "public TreeSet<Team> getTeamTreeFromMatchTree(){\r\n TreeSet<Team> teamTree = new TreeSet<>(lexicalSortByName);\r\n \r\n //Go through the whole tree and find each team\r\n //Add it to the tree if it's not already present\r\n Iterator<Match> itr = this.resultsTree.iterator();\r\n \r\n Match m = null;\r\n while (itr.hasNext()){\r\n m = itr.next();\r\n \r\n String team1 = m.getTeam1().getName();\r\n if(teamTree.isEmpty()){\r\n teamTree.add(m.getTeam1());\r\n }\r\n else {\r\n boolean added = false;\r\n Iterator<Team> itTeams = teamTree.iterator();\r\n while(itTeams.hasNext() && !added){\r\n Team currentTeam = itTeams.next();\r\n if(currentTeam.getName().equals(team1)) {\r\n added = true;\r\n }\r\n }\r\n if(!added){\r\n teamTree.add(m.getTeam1());\r\n }\r\n }\r\n }\r\n //Add the last team, the one never in the first column\r\n if (m != null){\r\n teamTree.add(m.getTeam2());\r\n }\r\n return teamTree;\r\n }", "public String[] getTeamNames() throws SQLException\n\t{\n\t\t// Create a connection to the database.\n\t\t conn = DriverManager.getConnection(DB_URL);\n\t\t// Create a Statement object for the query.\n\t\tStatement stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);\n\t\t// Execute the query.\n\t\tResultSet resultSet = stmt.executeQuery(\"SELECT teamName FROM Team\");\n\t \n\t\t// Get the number of rows\n\t\tresultSet.last(); \t\t// Move to the last row\n\t\tint numRows = resultSet.getRow(); \t// Get the current row number\n\t\tresultSet.first(); \t// Move back to the first row\n\t\n\t\t// Create an array for the team names.\n\t\tString[] names = new String[numRows];\n\t \n\t\t// Populate the array with team names.\n\t\tfor (int index = 0; index < numRows; index++)\n\t\t{\n\t\t\t// Store the team name in the array.\n\t\t\tnames[index] = resultSet.getString(1);\n\t\t\tSystem.out.println(names[index]);\n\t\t\t// Go to the next row in the result set.\n\t\t\tresultSet.next();\n\t\t}\n\t \n\t\t// Close the statement object.\n\t\tstmt.close();\n\t \n\t\treturn names;\n\t}", "@Override\n\tpublic List<String> getTeamNames(Integer id) {\n\t\treturn null;\n\t}", "@Test\r\n\tpublic void findAllTeams() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: findAllTeams \r\n\t\tInteger startResult = 0;\r\n\t\tInteger maxRows = 0;\r\n\t\tList<Team> response = null;\r\n\t\tresponse = service.findAllTeams(startResult, maxRows);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: findAllTeams\r\n\t}", "public static void main(String[] args) throws FileNotFoundException {\n\n Scanner teamScanner = new Scanner(new File(\"teamInfo.txt\"));\n teamScanner.useDelimiter(\",\");\n ArrayList<Team> teams = new ArrayList<Team>();\n String teamName = teamScanner.next();\n String temp = teamScanner.next();\n double winLoss = Double.parseDouble(temp);\n String temp2 = teamScanner.next();\n double SRS = Double.parseDouble(temp2);\n teams.add(new Team(teamName, winLoss, SRS));\n while (teamScanner.hasNext()) {\n teamName = teamScanner.next();\n temp = teamScanner.next();\n temp2 = teamScanner.next();\n //System.out.println(\"t\" + temp);\n //System.out.println(\"x\" + teamName);\n winLoss = Double.parseDouble(temp);\n SRS = Double.parseDouble(temp2);\n\n\n teams.add(new Team(teamName.substring(2), winLoss, SRS));\n }\n\n // System.out.println(teams.get(0).name);\n //\n\n ArrayList<String> TeamsList = new ArrayList<String>();\n Scanner teamsListScanner = new Scanner(new File(\"competingTeams.txt\"));\n while(teamsListScanner.hasNextLine()){\n TeamsList.add(teamsListScanner.nextLine());\n }\n // System.out.println(TeamsList);\n //String names = teamsListScanner.next();\n//\n // ArrayList<String> competingString = new ArrayList<>();\n ArrayList<Team> competingTeams = new ArrayList<>();\n // System.out.println(teams.get(0).name);\n for (int i = 0; i < TeamsList.size(); i++)\n {\n for(int j = 0; j < teams.size(); j++)\n {\n // System.out.println(TeamsList.get(i));\n // System.out.println(teams.get(j).name);\n if (TeamsList.get(i).equalsIgnoreCase(teams.get(j).name))\n {\n competingTeams.add(teams.get(j));\n break;\n }\n }\n }\n for (int j = 1; j < 7; j++) {\n System.out.println(\"Winning Teams Round \" + j + \":\");\n ArrayList<Team> tempTeams = BracketRunner.RunRound(competingTeams);\n for (int i = 0; i < tempTeams.size(); i++) {\n System.out.println(tempTeams.get(i).name);\n }\n competingTeams = tempTeams;\n System.out.println(tempTeams.size());\n }\n // for (int i = 0; i < teams.size(); i++) {\n // System.out.println(teams.get(i).SRS);\n //}\n //g\n }", "public void printTeamsInLeague(){\n for (T i : teams){\n System.out.println(i.getTeamName());\n }\n }", "@Test\n public void getMatchListTest2()\n {\n RiotApiHandler userTest=RiotApiHandler.getInstance();\n String[] array= {\"EUN1_2775220260\", \"EUN1_2774180103\", \"EUN1_2773714308\", \"EUN1_2773662778\", \"EUN1_2772530238\", \"EUN1_2772505023\",\n \"EUN1_2772491193\", \"EUN1_2772005021\", \"EUN1_2771803452\", \"EUN1_2769206534\", \"EUN1_2767311256\", \"EUN1_2767113653\", \"EUN1_2767101111\",\n \"EUN1_2767036478\", \"EUN1_2766884534\", \"EUN1_2766808664\", \"EUN1_2766432042\", \"EUN1_2766071093\", \"EUN1_2766077729\", \"EUN1_2765668508\"\n };\n ArrayList<String> correct = new ArrayList<>(Arrays.asList(array));\n Assert.assertNotEquals(correct , userTest.getMatchlist(\"Stains of Time\",\"eun1\"));\n }", "public ArrayList<CollegeFootballTeam> getTeamList();", "Set<String> getNames();", "public static ArrayList<Match> getMatchesForSeason(ArrayList<FootballClub> seasonBasedClub){\n\n // these both arrayList will be of the same size\n ArrayList<Match> matchesDisplayed = new ArrayList<>();\n ArrayList<Match> allMatches = new ArrayList<>();\n\n // populating the allMatches list will all the matches from the seasonBasedClub\n // adding all the matches played for that season inside the allMatches list\n for (FootballClub footballClub: seasonBasedClub) {\n allMatches.addAll(footballClub.getMatchesPlayed());\n\n }\n\n // sort the matches in ascending order of the date\n Comparator<Match> sortByDate = (match1, match2) -> {\n\n if(match1.getDate().getYear() == match2.getDate().getYear()){\n if (match1.getDate().getMonth() == match2.getDate().getMonth()) {\n if (match1.getDate().getDay() > match2.getDate().getDay()) {\n return 1;\n }\n } else if (match1.getDate().getMonth() > match2.getDate().getMonth()) {\n return 1;\n }\n }else if (match1.getDate().getYear() > match2.getDate().getYear()) {\n return 1;\n }\n\n return -1;\n };\n allMatches.sort(sortByDate); // sorting the matches according to the date\n\n // MAIN CODE FOR EXTRACTING THE NECESSARY SET OF MATCHES (NO DUPLICATES)\n for (Match match : allMatches) {\n\n boolean matchNotAvailable = true;\n\n // NOTE THAT THIS IS TO PREVENT THE REPEATING OF MATCHES IN ALL CLUBS WHICH IS DUPLICATING\n for (Match value : matchesDisplayed) {\n if (match.getOpponentClubName().equalsIgnoreCase(value.getParticipatedCLubName())) {\n // NOTE: goal scored from the club is equal to goal received from the opponent club\n if (\n (value.getGoalReceived() == match.getGoalScored()) &&\n (value.getGoalScored() == match.getGoalReceived()) &&\n (value.getMatchType().equalsIgnoreCase(match.getMatchType())) &&\n (value.getDate().equals(match.getDate()))\n ) {\n matchNotAvailable = false;\n }\n }\n }\n // WE ADD THE NON DUPLICATED MATCHES INTO THIS LIST AND SEND IT TO THE VIEWS\n if (matchNotAvailable) {\n matchesDisplayed.add(match);\n }\n }\n return matchesDisplayed;\n }", "public int against(String team1, String team2) {\n if (!nameToId.containsKey(team1) || !nameToId.containsKey(team2)) {\n throw new IllegalArgumentException();\n }\n\n return against[nameToId.get(team1)][nameToId.get(team2)];\n }", "public static List<String> getAllTeams() throws URISyntaxException, IOException {\n HttpClient httpClient = HttpClientBuilder.create().build();\n URIBuilder uriBuilder = new URIBuilder();\n //http://api.football-data.org/v2/teams/\n uriBuilder.setScheme(\"http\").setHost(\"api.football-data.org\").setPath(\"v2/teams/\");\n HttpGet httpGet = new HttpGet(uriBuilder.build());\n httpGet.setHeader(\"X-Auth-Token\",\"7cf82ca9d95e498793ac0d3179e1ec9f\");\n httpGet.setHeader(\"Accept\",\"application/json\");\n HttpResponse response = httpClient.execute(httpGet);\n ObjectMapper objectMapper = new ObjectMapper();\n TeamsPojo pojo = objectMapper.readValue(response.getEntity().getContent(),TeamsPojo.class);\n List<String> willBeReturned = new ArrayList<>();\n List<Teams> teams = pojo.getTeams();\n for (int i =0 ; i<teams.size();i++){\n willBeReturned.add(teams.get(i).getName());\n }\n\n\n return willBeReturned;\n }", "public int against(String team1, String team2) {\n return games[getTeamByName(team1).order][getTeamByName(team2).order];\r\n }", "public void matchBets(MarketRunners marketRunners);", "public ArrayList<TakeStock> findMemberByName(String name) {\n\n matches.clear();\n\n for(TakeStock member : mTakeStockList) {\n\n if(member.getProducts_name().toLowerCase().contains(name)){\n matches.add(member);\n }\n\n }\n return matches; // return the matches, which is empty when no member with the given name was found\n }", "Team findByName(String name);", "private boolean multipleTeams(SettingsClass s){\r\n int a =s.getPlayerColor(0);\r\n for(int i=0;i<s.getNumPlayers();i++){\r\n if(a!=s.getPlayerColor(i)){\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "Match getTeam1LooserOfMatch();", "private boolean teamExist(String teamName) {\n boolean doesExist = false;\n for (Team team : scoreboard.getTeams()) if (team.getName().equals(teamName)) doesExist = true;\n return doesExist;\n }", "public List<String> getSports(String name){\r\n\t\tList<String> list = new ArrayList<String>();\r\n\t\tConnection conn = DBConnect.getConnection();\r\n\t\tString sql = \"select sports_name from team where delegation_name= '\" + name + \"'\";\r\n\t\ttry {\r\n\t\t\tPreparedStatement pst = conn.prepareStatement(sql);\r\n\t\t\tResultSet rst = pst.executeQuery();\r\n\t\t\twhile(rst.next()) {\r\n\t\t\t\tString team = rst.getString(\"sports_name\");\r\n\t\t\t\tlist.add(team);\r\n\t\t\t}\r\n\t\t\trst.close();\r\n\t\t\tpst.close();\r\n\t\t}catch (SQLException e) {\r\n\t\t\t// TODO: handle exception\r\n e.printStackTrace();\t\t\t\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "Match getMatches();", "protected abstract void gatherTeam();", "public List<Team> getAll() {\n TeamDB tdb = new TeamDB();\n List<Team> teams = tdb.getAll();\n for (Team t : teams) {\n String teamName = t.getTeamName();\n teamName = teamName.replace(\"'\", \"\\\\\\'\");\n t.setTeamName(teamName);\n System.out.println(t.getTeamName());\n }\n return teams;\n }", "public Set<Colour> getWinningPlayers();", "public static void main(String[] args) {\n\t\tSystem.out.println(\"View all teams\");\n\t\tSystem.out.println(teamData.viewTeams());\n\t\t\n\t\tSystem.out.println(\"Search by conference\");\n\t\tSystem.out.println(teamData.searchConference(\"AFC\"));\n\t\tSystem.out.println(teamData.searchConference(\"NFC\"));\n\t\t\n\t\tSystem.out.println(\"Search by division\");\n\t\tSystem.out.println(teamData.searchDivision(\"NFC\", \"West\"));\n\t\tSystem.out.println(teamData.searchDivision(\"NFC\", \"East\"));\n\t\t\n\t\tSystem.out.println(\"View team roster\");\n\t\tSystem.out.println(teamData.viewTeamRoster(\"Bears\"));\n\t\tSystem.out.println(teamData.viewTeamRoster(\"Cowboys\"));\n\t\t\n\t\tSystem.out.println(\"List player data\");\n\t\tSystem.out.println(teamData.listPlayer(\"Romo\", \"Cowboys\"));\n\t\tSystem.out.println(teamData.listPlayer(\"Brady\", \"Patriots\"));\n\t\t\n\t\tSystem.out.println(\"List all match results\");\n\t\t//System.out.println(teamData.readMatchData()); //lists all match results for all weeks\n\t\t\n\t\tSystem.out.println(\"List match results by week\");\n\t\tSystem.out.println(teamData.viewMatchWeek(\"Week 5\"));\n\t\t\n\t\tSystem.out.println(\"View single team's match data\");\n\t\tSystem.out.println(teamData.viewMatchByTeam(\"Falcons\"));\n\t\tSystem.out.println(teamData.viewMatchByTeam(\"Cowboys\"));\n\t\t\n\t\tSystem.out.println(\"View Head to Head (team vs team)\");\n\t\tSystem.out.println(teamData.viewH2H(\"Patriots\", \"Dolphins\"));\n\t\tSystem.out.println(teamData.viewH2H(\"Panthers\", \"Eagles\"));\n\t\t\n\t\tSystem.out.println(\"View specific team wins\");\n\t\tSystem.out.println(teamData.viewTeamWins(\"Panthers\"));\n\t\t\n\t\tSystem.out.println(\"View specific team loses\");\n\t\tSystem.out.println(teamData.viewTeamLoses(\"Titans\"));\n\t\t\n\t\t//Haven't tested this fully\n\t\t//System.out.println(teamData.getTeamImage(\"Cowboys\"));\n\t}", "private boolean checkUserNameExists(ArrayList<Member> members) throws Exception {\nfor(Member member:members) {\nif(this.userName.equals(member.userName)){\nreturn true;\n}\n}\nreturn false;\n}", "public List<MmathFighter> searchByName(String name) {\n String searchQuery = \"%\" + name + \"%\";\n\n String[] nameSplit = name.split(\" \");\n ExecutorService exec = Executors.newFixedThreadPool(nameSplit.length + 2);\n\n List<Future<List<MmathFighter>>> futures = new ArrayList<>();\n\n futures.add(exec.submit(() -> getDsl().select().from(FIGHTERS)\n .where(FIGHTERS.NAME.like(searchQuery))\n .orderBy(FIGHTERS.SEARCH_RANK)\n .limit(10)\n .fetch(recordMapper)));\n\n futures.add(exec.submit(() -> getDsl().select().from(FIGHTERS)\n .where(FIGHTERS.NICKNAME.like(searchQuery))\n .orderBy(FIGHTERS.SEARCH_RANK)\n .limit(10)\n .fetch(recordMapper)));\n\n if (nameSplit.length > 1) {\n futures.addAll(\n Stream.of(nameSplit)\n .map(s -> exec.submit(() -> getDsl().select().from(FIGHTERS)\n .where(FIGHTERS.NAME.like(s))\n .or(FIGHTERS.NICKNAME.like(s))\n .orderBy(FIGHTERS.SEARCH_RANK)\n .limit(10)\n .fetch(recordMapper)\n )).collect(Collectors.toList())\n );\n }\n return futures.stream()\n .flatMap(f -> {\n try {\n return f.get().stream();\n } catch (InterruptedException | ExecutionException e) {\n return null;\n }\n })\n .filter(s -> s != null)\n .filter(distinctByKey(MmathFighter::getSherdogUrl)).limit(10).collect(Collectors.toList());\n }", "public String getGameStatus(String team) {\n\n String gameStatus = \"\";\n\n String[] mlbTeam = {\"D-backs\", \"Braves\", \"Orioles\", \"Red Sox\", \"Cubs\", \"White Sox\", \"Reds\", \"Indians\", \"Rockies\",\n \"Tigers\", \"Astros\", \"Royals\", \"Angels\", \"Dodgers\", \"Marlins\", \"Brewers\", \"Twins\", \"Mets\",\n \"Yankees\", \"Athletics\", \"Phillies\", \"Pirates\", \"Cardinals\", \"Padres\", \"Giants\", \"Mariners\",\n \"Rays\", \"Rangers\", \"Blue Jays\", \"Nationals\"};\n\n search:\n for (int i = 0; i < 1; i++) {\n\n for (int j = 0; j < mlbTeam.length; j++) {\n if (mlbTeam[j].equals(team)) {\n break search;\n }\n }\n\n team = \"No team\";\n i++;\n }\n try {\n // indicate if today is an off day for the team selected\n if (getPlayerInfo(team, \"status\", \"status\").equals(\"\")) {\n gameStatus = \"No game scheduled for the \" + uppercaseFirstLetters(team);\n }\n }\n catch (NullPointerException npe) {\n gameStatus = \"No game scheduled for the \" + uppercaseFirstLetters(team);\n }\n\n // display error message if there is no match to the team name inputted\n if (team.equals(\"No team\")) {\n gameStatus = \"ERROR: Please enter current MLB team name.\";\n }\n // indicate if today is an off day for the team selected\n else if (getPlayerInfo(team, \"status\", \"status\").equals(\"\")) {\n gameStatus = \"No game scheduled for the \" + team;\n }\n else {\n gameStatus = getPlayerInfo(team, \"status\", \"status\");\n }\n\n return gameStatus;\n }", "public static List<String> getSpainCoach() throws URISyntaxException, IOException {\n\n HttpClient httpClient = HttpClientBuilder.create().build();\n URIBuilder uriBuilder = new URIBuilder();\n //http://api.football-data.org/v2/teams/\n uriBuilder.setScheme(\"http\").setHost(\"api.football-data.org\").setPath(\"v2/teams/77\");\n HttpGet httpGet = new HttpGet(uriBuilder.build());\n httpGet.setHeader(\"X-Auth-Token\",\"7cf82ca9d95e498793ac0d3179e1ec9f\");\n httpGet.setHeader(\"Accept\",\"application/json\");\n HttpResponse response = httpClient.execute(httpGet);\n ObjectMapper objectMapper = new ObjectMapper();\n Team66Pojo team66Pojo =objectMapper.readValue(response.getEntity().getContent(),Team66Pojo.class);\n List<Squad> squad = team66Pojo.getSquad();\n List<String> nameOfSpainTeamCoach= new ArrayList<>();\n for (int i = 0; i <squad.size() ; i++) {\n try {\n if(squad.get(i).getRole().equals(\"COACH\")){\n\n nameOfSpainTeamCoach.add(squad.get(i).getName());\n }\n }catch (NullPointerException e){\n continue;\n }\n\n }\n return nameOfSpainTeamCoach;\n }", "@Test\n public void getMatchListTest()\n {\n RiotApiHandler userTest=RiotApiHandler.getInstance();\n String[] array= {\"EUN1_2813356879\", \"EUN1_2797819662\", \"EUN1_2797712721\", \"EUN1_2797709856\", \"EUN1_2797693226\", \"EUN1_2797682448\", \"EUN1_2797526002\",\n \"EUN1_2797504038\", \"EUN1_2797540836\", \"EUN1_2794696829\", \"EUN1_2791827193\", \"EUN1_2791781454\", \"EUN1_2791655029\",\n \"EUN1_2791596648\", \"EUN1_2786187593\", \"EUN1_2785993952\", \"EUN1_2727858238\", \"EUN1_2727671015\", \"EUN1_2727312718\", \"EUN1_2727226847\"\n };\n ArrayList<String> correct = new ArrayList<>(Arrays.asList(array));\n //test fails, I play this game everyday so the matchlist changes constantly, it all works real good (source ---> trust me :ok:)\n Assert.assertEquals(correct ,userTest.getMatchlist(\"8f9zu86yj87xgh76\",\"eun1\"));\n }", "public int against(String team1, String team2) {\n if (team1 == null || !st.contains(team1) || team2 == null || !st.contains(team2))\n throw new IllegalArgumentException(\"Invalid Arguments!\");\n return g[st.get(team1)][st.get(team2)];\n }", "public boolean hasTeam(User std) {\r\n\t\tboolean hasTeam = false;\r\n\t\tHashMap<String, ArrayList<String>> map = MySQLConnector.executeMySQL(\"select\", \"SELECT * FROM `is480-matching`.students WHERE id = \" + std.getID() + \" ;\");\r\n\t\tSet<String> keySet = map.keySet();\r\n\t\tIterator<String> iterator = keySet.iterator();\r\n\t\t\r\n\t\twhile (iterator.hasNext()){\r\n\t\t\tString key = iterator.next();\r\n\t\t\tArrayList<String> array = map.get(key);\t\r\n\t\t\tint teamId \t= Integer.parseInt(array.get(3));\r\n\t\t\t\r\n\t\t\tif(teamId != 0){\r\n\t\t\t\thasTeam = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn hasTeam;\r\n\t}", "List<Team> findTeamsByUserId(UserId userId);", "private List<Team> extractTeamNamesFromFixtures(List<Fixture> fixtures) {\r\n\r\n\t\tList<Team> teams = new ArrayList<>();\r\n\r\n\t\tfor (Fixture fixture : fixtures) {\r\n\r\n\t\t\tOptional<Team> homeTeam = teams.stream().filter(t -> t.getName().equals(fixture.getHomeTeamName()))\r\n\t\t\t\t\t.findAny();\r\n\r\n\t\t\tif (!homeTeam.isPresent()) {\r\n\t\t\t\tTeam teamToAdd = new Team();\r\n\t\t\t\tteamToAdd.setName(fixture.getHomeTeamName());\r\n\t\t\t\tteamToAdd.setResourceId(((Number) fixture.getHomeTeamResourceId()).longValue());\r\n\t\t\t\tteamToAdd.setLogo(fixture.getHomeTeamBadge());\r\n\r\n\t\t\t\tteams.add(teamToAdd);\r\n\t\t\t}\r\n\r\n\t\t\tOptional<Team> awayTeam = teams.stream().filter(t -> t.getName().equals(fixture.getAwayTeamName()))\r\n\t\t\t\t\t.findAny();\r\n\r\n\t\t\tif (!awayTeam.isPresent()) {\r\n\t\t\t\tTeam teamToAdd = new Team();\r\n\t\t\t\tteamToAdd.setName(fixture.getAwayTeamName());\r\n\t\t\t\tteamToAdd.setResourceId(((Number) fixture.getAwayTeamResourceId()).longValue());\r\n\t\t\t\tteamToAdd.setLogo(fixture.getAwayTeamBadge());\r\n\r\n\t\t\t\tteams.add(teamToAdd);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\treturn teams;\r\n\t}", "@Override\r\n\tpublic List<String> getAllTeam() {\n\t\treturn dao.getAllTeam();\r\n\t}", "public static void main(String[] args) {\n\t\tSet<Character> setA = new HashSet<Character>();\n\t\tchar[] carr = \"abcdef\".toCharArray();\n\t\tfor (char c : carr) {\n\t\t\tsetA.add(c);\n\t\t}\n\t\t\n\t\tSet<Character> setB = new HashSet<Character>();\n\t\tchar[] carr2 = \"chdedf\".toCharArray();\n\t\tfor (char c : carr2) {\n\t\t\tsetB.add(c);\n\t\t}\n\t\tsetB.removeAll(setA);\n\t\tSystem.out.println(setA.containsAll(setB));\n\t\tSystem.out.println(setB.isEmpty());\n\t\t\n\t\tSystem.out.println(contains(\"asdfkhas\", \"dfa\"));\n\t\tSystem.out.println(contains1(\"asdfkhas\", \"defa\"));\n\t}", "private void getTeam() {\n Set<Integer> set = getRandomNumberSet();\n // clear new team list each time to allow for serial clicks on \"Generate New Random Team\"\n team.clear();\n for (Integer i : set) {\n getPokemon(i);\n }\n }", "public void matchesDemo() \n {\n Map<String, Set<String>> clientMap = new HashMap<>();\n Set<String> interests = new HashSet<>();\n\n interests.add(\"Food\");\n interests.add(\"Wine\");\n interests.add(\"Tandems\");\n clientMap.put(\"Hal\", interests);\n\t \n interests = new HashSet<>();\n interests.add(\"Food\");\n interests.add(\"Walking\");\n interests.add(\"Welding\");\n clientMap.put(\"Gemma\", interests);\n\t \n interests = new HashSet<>();\n interests.add(\"Food\");\n interests.add(\"Cinema\");\n interests.add(\"Wine\");\n clientMap.put(\"Caroline\", interests);\n\n Set<String> halsInterests = clientMap.get(\"Hal\");\n String outputString;\n Set<String> eachClientInterests;\n Set<String> intersection;\n\n for (String eachClient : clientMap.keySet()) \n {\n eachClientInterests = clientMap.get(eachClient);\n intersection = new HashSet<>(halsInterests);\n intersection.retainAll(eachClientInterests);\n outputString = \"Hal and \" + eachClient \n + \" have common interests: \"\n + intersection;\n System.out.println(outputString) ;\n }\n }", "private static boolean fun3(List<String> res, List<String> ac1) {\n\t\tHashSet<String> hs=new HashSet<String>();\r\n\t\tfor(int i=0;i<res.size();i++){\r\n\t\t\ths.add(res.get(i));\r\n\t\t}\r\n\t\tfor(int i=0;i<ac1.size();i++){\r\n\t\t\tif(hs.contains(ac1.get(i)))\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "private boolean exist(List<PlayerTeam> l, String name) {\n boolean ex = false;\n PlayerTeam curr = l.first();\n while (curr != null) {\n if (curr.getName().equals(name))\n return true;\n curr = l.next();\n }\n return ex;\n }", "public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st;\n\t\tList<String > list = new ArrayList<String>();\n\t\tList<Member> lists = new ArrayList<>();\n\t\tint T = Integer.parseInt(br.readLine());\n\t\tfor(int tc=1;tc<=T;tc++) {\n\t\t\tint k = Integer.parseInt(br.readLine());\n\t\t\tlist = new ArrayList<String>();\n\t\t\tlists = new ArrayList<>();\n\t\t\tfor(int i=0;i<k;i++) {\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\tString s1 = st.nextToken();\n\t\t\t\tString s2 = st.nextToken();\n\t\t\t\tif(list.indexOf(s1)==-1) {\n\t\t\t\t\tlist.add(s1);\n\t\t\t\t}\n\t\t\t\tif(list.indexOf(s2)==-1) {\n\t\t\t\t\tlist.add(s2);\n\t\t\t\t}\n\t\t\t\tlists.add(new Member(s1,s2));\n\t\t\t}\n\t\t\teffect = new List[list.size()];\n\t\t\tteam = new boolean[list.size()];\n\t\t\tvisit = new boolean[list.size()];\n\t\t\tfor(int i=0;i<list.size();i++) {\n\t\t\t\teffect[i] = new ArrayList<Integer>();\n\t\t\t}\n\t\t\tfor(int i=0;i<lists.size();i++) {\n\t\t\t\tString s1 = lists.get(i).str1;\n\t\t\t\tString s2 = lists.get(i).str2;\n\t\t\t\tint in1 = 0;\n\t\t\t\tint in2 = 0;\n\t\t\t\tfor(int j=0;j<list.size();j++) {\n\t\t\t\t\tif(s1.equals(list.get(j))) {\n\t\t\t\t\t\tin1 = j;\n\t\t\t\t\t}\n\t\t\t\t\telse if(s2.equals(list.get(j))) {\n\t\t\t\t\t\tin2 = j;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\teffect[in1].add(in2);\n\t\t\t\teffect[in2].add(in1);\n\t\t\t}\n\t\t\tfor(int i=0;i<team.length;i++) {\n\t\t\t\tif(!visit[i]) {\n\t\t\t\t\tvisit[i] = true;\n\t\t\t\t\tdfs(i,true);\n\t\t\t\t}\n\t\t\t}\n\t\t\tboolean yes=true;\n\t\t\tfor(int i=0;i<effect.length;i++) {\n\t\t\t\tfor(int j=0;j<effect[i].size();j++) {\n\t\t\t\t\tint q = effect[i].get(j);\n\t\t\t\t\tif(team[i]==team[q]) {\n\t\t\t\t\t\tyes = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(\"#\"+tc+\" \");\n\t\t\tSystem.out.println(yes?\"Yes\":\"No\");\n\t\t}\n\t}", "public List<VwTeams> browse(String[] params)\n\t{\n\t\tList<VwTeams> results\t= new ArrayList<VwTeams>();\n\t\tVwTeams[] array\t\t\t= null;\n\t\t\n\t\ttry\n\t\t{\n\t\t\tif (params == null)\n\t\t\t{\n\t\t\t\tarray = dao.findAll();\n\t\t\t}\n\t\t\telse \n\t\t\t{\t\t\t\t\n\t\t\t\t//like filter\n\t\t\t\tparams[0] = GeneralUtils.addLikeFormat(params[0]);\n\t\t\t\t\n\t\t\t\tString sql = \"\";\n\t\t\t\t\n\t\t\t\tsql = \"\tteam_name LIKE ? \";\n\t\t\t\tsql += \"\t\tevent_id = ? \";\n\t\t\t\t\t\t\t\t\n\t\t\t\tarray = dao.findByDynamicWhere(sql, params);\n\t\t\t}\n\t\t\t\n\t\t\t// convert array to list\n\t\t\tresults = Arrays.asList(array);\n\t\t}\n\t\tcatch (VwTeamsDaoException e)\n\t\t{\n\t\t\tlogger.error(e.getMessage());\n\t\t\t\n\t\t\terror.setCode(Errors.Codes.DB_DAO.getCode());\n\t\t\terror.setWindowTitle(Errors.Codes.DB_DAO.getWindowTitle());\n\t\t\terror.setMessage(Errors.Codes.DB_DAO.getMessage());\n\t\t\t\n\t\t\terror.setExceptionMessage(e.getMessage());\n\t\t\t\n\t\t\tpdr.setError(error);\n\t\t\t\n\t\t\tif (logger.isDebugEnabled())\n\t\t\t\te.printStackTrace();\n\t\t\t\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\treturn results;\n\t}", "TeamResultWrapper findTeams(String personId,\n String partOfGroupname, int offset, int pageSize);", "public Set<Sportive> filterByFirstName(String st){\n Iterable<Sportive> materials = repo.findAll();\n return StreamSupport.stream(materials.spliterator(), false).filter(sportive -> sportive.getFirstName().contains(st)).collect(Collectors.toSet());\n }", "public static List<String> getAttackerFromEngland() throws URISyntaxException, IOException {\n HttpClient httpClient = HttpClientBuilder.create().build();\n URIBuilder uriBuilder = new URIBuilder();\n //http://api.football-data.org/v2/teams/\n uriBuilder.setScheme(\"http\").setHost(\"api.football-data.org\").setPath(\"v2/teams/66\");\n HttpGet httpGet = new HttpGet(uriBuilder.build());\n httpGet.setHeader(\"X-Auth-Token\",\"7cf82ca9d95e498793ac0d3179e1ec9f\");\n httpGet.setHeader(\"Accept\",\"application/json\");\n HttpResponse response = httpClient.execute(httpGet);\n ObjectMapper objectMapper = new ObjectMapper();\n Team66Pojo team66Pojo =objectMapper.readValue(response.getEntity().getContent(),Team66Pojo.class);\n List<Squad> squad = team66Pojo.getSquad();\n List<String> attackerName= new ArrayList<>();\n for (int i = 0; i <squad.size() ; i++) {\n try {\n if(squad.get(i).getPosition().equals(\"Attacker\")&&squad.get(i).getNationality().equals(\"England\")){\n\n attackerName.add(squad.get(i).getName());\n }\n }catch (NullPointerException e){\n\n\n }\n }\n return attackerName;\n }", "List<Team> getTeamsFromApi(List<Long> teamIds);", "@SuppressWarnings(\"unchecked\")\n private List createTeamList() {\n\n ArrayList result = new ArrayList();\n for( int i = 0 ; i < leagues_array.size() ; ++i ) {\n /* each group need each HashMap-Here for each group we have 3 subgroups */\n ArrayList secList = new ArrayList();\n for( int n = 0 ; n < SplashScreen.full_teams_array.get(i).size() ; n++ ) {\n HashMap child = new HashMap();\n child.put( \"Team\", SplashScreen.full_teams_array.get(i).get(n) );\n boolean favorite_found = false;\n for(int j=0; j<SplashScreen.new_favorites_array.size(); j++) {\n if(SplashScreen.full_teams_array.get(i).get(n).toString().equals(SplashScreen.new_favorites_array.get(j)[1]) &&\n leagues_array.get(i).equals(SplashScreen.new_favorites_array.get(j)[0]) ) {\n favorite_found = true;\n }\n }\n if(favorite_found) { child.put( \"Favorite\", \"1\" ); }\n else { child.put( \"Favorite\", \"0\" ); }/*\n if(SplashScreen.full_teams_array.get(i).get(n).toString().equals(favorite_team) &&\n leagues_array.get(i).equals(favorite_league) ) {\n child.put( \"Favorite\", \"1\" );\n } else {\n }\n child.put( \"Favorite\", \"0\" );/*\n }*/\n secList.add( child );\n }\n result.add( secList );\n }\n return result;\n }", "public ResultSet getTeams() throws SQLException {\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString teamRecords_sql = \"SELECT * FROM \" + team_table;\n\t\tconnection = connector.getConnection();\n\t\tstatement = connection.prepareStatement(teamRecords_sql);\n\t\trs = statement.executeQuery();\n\t\treturn rs;\n\t}", "public int against(String team1, String team2) {\n return against[findTeamIndex(team1)][findTeamIndex(team2)];\n }", "List<Team> findByIds(List<Long> teamIds);", "public void sensibleMatches2() \n { \n Map<String, Set<String>> clientMap = new HashMap<>();\n Set<String> interests = new HashSet<>();\n\n interests.add(\"Food\");\n interests.add(\"Wine\");\n interests.add(\"Tandems\");\n clientMap.put(\"Hal\", interests);\n\t \n interests = new HashSet<>();\n interests.add(\"Food\");\n interests.add(\"Walking\");\n interests.add(\"Welding\");\n clientMap.put(\"Gemma\", interests);\n\n interests = new HashSet<>();\n interests.add(\"Food\");\n interests.add(\"Cinema\");\n interests.add(\"Wine\");\n clientMap.put(\"Caroline\", interests);\n\n Set<String> halsInterests = clientMap.get(\"Hal\");\n String outputString;\n Set<String> eachClientInterests;\n Set<String> intersection ;\n\n for (String eachClient : clientMap.keySet()) \n {\n if (!eachClient.equals(\"Hal\")) \n {\n eachClientInterests = clientMap.get(eachClient);\n intersection = new HashSet<>(halsInterests);\n intersection.retainAll(eachClientInterests);\n outputString = \"Hal and \" + eachClient \n + \" have common interests: \"\n + intersection;\n System.out.println(outputString);\n }\n }\n }", "public static List<String> search(char[][] board, Set<String> set) {\n List<String> ret = new LinkedList<String>();\n if (set == null || set.size() == 0) return ret;\n boolean[][] visited = new boolean[board.length][board[0].length];\n for (int i = 0; i < board.length; i++) {\n for (int j = 0; j < board[0].length; j++) {\n search(board, i, j, \"\", set, visited, ret);\n }\n }\n return ret;\n }", "public String winningTeam(String team1, String team2)\n {\n int r = new Random().nextInt(3 + 1);\n\n int team1Standing = -10;\n int team2Standing = -10;\n for (int i = 0 ; i < playoffs.length; i++)\n {\n if (playoffs[i].equals(team1))\n {\n team1Standing = i;\n break;\n }\n }\n\n for (int i = 0 ; i < playoffs.length; i++)\n {\n if (playoffs[i].equals(team2))\n {\n team2Standing = i;\n break;\n }\n }\n\n if(team1Standing < team2Standing && r == 1)\n return team1;\n else if (team1Standing > team2Standing && r == 1)\n return team2;\n\n else\n {\n r = new Random().nextInt(1 + 1);\n if(r == 0)\n return team1;\n else\n return team2;\n }\n\n }", "public static void main(String[] args) {\n\n\t\t\nString[] stud= {\"marks\",\"steve\",\"jenny\",\"kevin\"};\n\t\t\n\tSystem.out.println(Arrays.asList(stud).contains(\"marks\"));//true\n\tSystem.out.println(Arrays.asList(stud).contains(\"henry\"));//false\n\t\n\t\n\t}", "public static void saveTeamNames() {\r\n\t\tMain.team1 = Main.teamOne.name;\r\n\t\tMain.team2 = Main.teamTwo.name;\r\n\t}", "@Override\r\n\tpublic List<ModelInfo<TeachingMaterialSetNew, TeachingMaterialEditorNew>> searchTeachingMaterialSetByStringFactor(\r\n\t\t\tList<ModelInfo<TeachingMaterialSetNew, TeachingMaterialEditorNew>> teachingMaterialSets, String factorName,\r\n\t\t\tString factorValue) {\n\t\tList<ModelInfo<TeachingMaterialSetNew, TeachingMaterialEditorNew>> teachingMaterialSet = new ArrayList<ModelInfo<TeachingMaterialSetNew, TeachingMaterialEditorNew>>();\r\n\t\tint num = 0;\r\n\t\tif(factorName.equals(\"teachingMaterialId\")){\r\n\t\t\tnum = 1;\r\n\t\t}else if(factorName.equals(\"setClass\")){\r\n\t\t\tnum = 2;\r\n\t\t}else if(factorName.equals(\"setTime\")){\r\n\t\t\tnum = 3;\r\n\t\t}else if(factorName.equals(\"numberProject\")){\r\n\t\t\tnum = 4;\r\n\t\t}else if(factorName.equals(\"teachingMaterialName\")){\r\n\t\t\tnum = 5;\r\n\t\t}else if(factorName.equals(\"editorName\")){\r\n\t\t\tnum = 6;\r\n\t\t}else if(factorName.equals(\"resultsPostedStatus\")){\r\n\t\t\tnum = 7;\r\n\t\t}else if(factorName.equals(\"submitUser\")){\r\n\t\t\tnum = 8;\r\n\t\t}else if(factorName.equals(\"approvedUser\")){\r\n\t\t\tnum = 9;\r\n\t\t}else if(factorName.equals(\"status\")){\r\n\t\t\tnum = 10;\r\n\t\t}else if(factorName.equals(\"wordsNumbers\")){\r\n\t\t\tnum = 11;\r\n\t\t}else if(factorName.equals(\"remarks\")){\r\n\t\t\tnum = 12;\r\n\t\t}else if(factorName.equals(\"collegeAward\")){\r\n\t\t\tnum = 13;\r\n\t\t}else{\r\n\t\t\tSystem.out.println(\"输入的factorName值有误!您输入的factorName值:\"+factorName);\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i=0;i<teachingMaterialSets.size();i++){\r\n\t\t\tswitch(num)\r\n\t\t\t{\r\n\t\t\tcase 1:{\r\n\t\t\t\tif(teachingMaterialSets.get(i).getModel().getTeachingMaterialId().indexOf(factorValue)!=-1){\r\n\t\t\t\t\tteachingMaterialSet.add(teachingMaterialSets.get(i));\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 2:{\r\n\t\t\t\tif(teachingMaterialSets.get(i).getModel().getSetClass().indexOf(factorValue)!=-1){\r\n\t\t\t\t\tteachingMaterialSet.add(teachingMaterialSets.get(i));\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 3:{\r\n\t\t\t\tif(teachingMaterialSets.get(i).getModel().getSetTime().indexOf(factorValue)!=-1){\r\n\t\t\t\t\tteachingMaterialSet.add(teachingMaterialSets.get(i));\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 4:{\r\n\t\t\t\tif(teachingMaterialSets.get(i).getModel().getNumberProject().indexOf(factorValue)!=-1){\r\n\t\t\t\t\tteachingMaterialSet.add(teachingMaterialSets.get(i));\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 5:{\r\n\t\t\t\tif(teachingMaterialSets.get(i).getModel().getTeachingMaterialName().indexOf(factorValue)!=-1){\r\n\t\t\t\t\tteachingMaterialSet.add(teachingMaterialSets.get(i));\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 6:{\r\n\t\t\t\tfor(int j=0;j<teachingMaterialSets.get(i).getModelList().size();j++){\r\n\t\t\t\t\tif(teachingMaterialSets.get(i).getModelList().get(j).getEditorName().indexOf(factorValue)!=-1){\r\n\t\t\t\t\t\tteachingMaterialSet.add(teachingMaterialSets.get(i));\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\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 7:{\r\n\t\t\t\tif(teachingMaterialSets.get(i).getModel().getResultsPostedStatus().indexOf(factorValue)!=-1){\r\n\t\t\t\t\tteachingMaterialSet.add(teachingMaterialSets.get(i));\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 8:{\r\n\t\t\t\tif(teachingMaterialSets.get(i).getModel().getSubmitUser()!=null){\r\n\t\t\t\t\tif(teachingMaterialSets.get(i).getModel().getSubmitUser().getUserName().indexOf(factorValue)!=-1){\r\n\t\t\t\t\t\tteachingMaterialSet.add(teachingMaterialSets.get(i));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 9:{\r\n\t\t\t\tif(teachingMaterialSets.get(i).getModel().getApprovedUser()!=null){\r\n\t\t\t\t\tif(teachingMaterialSets.get(i).getModel().getApprovedUser().getUserName().indexOf(factorValue)!=-1){\r\n\t\t\t\t\t\tteachingMaterialSet.add(teachingMaterialSets.get(i));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 10:{\r\n\t\t\t\tint status = java.lang.Integer.parseInt(factorValue);\r\n\t\t\t\tif(teachingMaterialSets.get(i).getModel().getStatus()==status){\r\n\t\t\t\t\tteachingMaterialSet.add(teachingMaterialSets.get(i));\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase 11:{\r\n\t\t\t\tint wordsNumbers = java.lang.Integer.parseInt(factorValue);\r\n\t\t\t\tif(teachingMaterialSets.get(i).getModel().getWordsNumbers()==wordsNumbers){\r\n\t\t\t\t\tteachingMaterialSet.add(teachingMaterialSets.get(i));\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase 12:{\r\n\t\t\t\tif(teachingMaterialSets.get(i).getModel().getRemarks().indexOf(factorValue)!=-1){\r\n\t\t\t\t\tteachingMaterialSet.add(teachingMaterialSets.get(i));\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase 13:{\r\n\t\t\t\tfloat collegeAward = java.lang.Float.parseFloat(factorValue);\r\n\t\t\t\tif(teachingMaterialSets.get(i).getModel().getCollegeAward()==collegeAward){\r\n\t\t\t\t\tteachingMaterialSet.add(teachingMaterialSets.get(i));\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tdefault :break;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn teachingMaterialSet;\r\n\t}", "public String getHomeTeam();", "public void sensibleMatches1() \n { \n Map<String, Set<String>> clientMap = new HashMap<>();\n Set<String> interests = new HashSet<>();\n\n interests.add(\"Food\");\n interests.add(\"Wine\");\n interests.add(\"Tandems\");\n clientMap.put(\"Hal\", interests);\n\t \n interests = new HashSet<>();\n interests.add(\"Food\");\n interests.add(\"Walking\");\n interests.add(\"Welding\");\n clientMap.put(\"Gemma\", interests);\n\t \n interests = new HashSet<>();\n interests.add(\"Food\");\n interests.add(\"Cinema\");\n interests.add(\"Wine\");\n clientMap.put(\"Caroline\", interests);\n\n Set<String> halsInterests = clientMap.get(\"Hal\");\n String outputString;\n Set<String> eachClientInterests;\n Set<String> intersection ;\n\n Map<String, Set<String>> mapWithoutHal = new HashMap<>(clientMap);\n mapWithoutHal.remove(\"Hal\");\n for (String eachClient : mapWithoutHal.keySet()) \n {\n eachClientInterests = clientMap.get(eachClient);\n intersection = new HashSet<>(halsInterests);\n intersection.retainAll(eachClientInterests);\n outputString = \"Hal and \" + eachClient \n + \" have common interests: \"\n + intersection;\n System.out.println(outputString);\n }\n }", "@Test\r\n\tpublic void testGetMembers() {\r\n\t\tassertTrue(meetingu1.getMembers().contains(teach1));\r\n\t\tassertTrue(meetingu1.getMembers().contains(teach2));\r\n\t}", "public String getAwayTeam();", "@Test\n public void test_get_scenario_names(){\n try {\n TestData X = new TestData(\"project2.opt\");\n Collection<String> x = X.project.get_scenario_names();\n assertEquals(1,x.size());\n assertTrue(x.contains(\"scenarioA\"));\n assertFalse(x.contains(\"scenarioB\"));\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }", "public synchronized Set<String> getMatchList(String word, MatchingStrategy strategy, Database database) throws DictConnectionException {\n Set<String> set = new LinkedHashSet<>();\n \n // DONE Add your code here\n String userInput;\n String fromServer;\n\n try {\n userInput = \"MATCH \" + database.getName() + \" \" + strategy.getName() + \" \" + \"\\\"\"+word+\"\\\"\" ;\n //out.println(\"Client: \" + userInput);\n output.println(userInput);\n\n String check = input.readLine();\n //out.println(\"Server: \" + check);\n\n if (check.contains(\"552\")) { // 552: no match\n return set ;\n }\n if (check.contains(\"152\")) { // 152: successfully found matches\n\n while ((fromServer = input.readLine()) != null) {\n if (fromServer.contains(\"250 ok\")) {\n //out.println(\"Server: Successfully found match \");\n break;\n }\n if (fromServer.contains(\"552 no match\")) {\n //out.println(\"Server: \" + fromServer);\n break;\n }\n if (!(fromServer.equals(\".\"))) {\n String[] temp = DictStringParser.splitAtoms(fromServer);\n set.add(temp[1]);\n }\n }\n\n }else {\n throw new DictConnectionException() ; // all other status codes throw exceptions\n }\n }catch (IOException e){\n throw new DictConnectionException() ;\n }\n //out.println(\"Server: \" + set);\n return set;\n }", "public static ArrayList<Team> findTeamProject() throws DALException {\n\t\t\tConnection cnx = null;\n\t\t\tPreparedStatement pstmt = null;\n\t\t\tResultSet rs = null;\n\t\t\tArrayList<Team> listTeams = new ArrayList<>();\n\n\t\t\ttry {\n\t\t\t\t// Connection DB\n\t\t\t\tcnx = DBConnection.connect();\n\t\t\t\tpstmt = cnx.prepareStatement(LIST_TEAMS_PROJECTS);\n\t\t\t\trs = pstmt.executeQuery();\n\n\t\t\t\t// For each team\n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\tTeam team = new Team();\n\t\t\t\t\tteam.setIdTeam(rs.getInt(\"Teams_IdTeams\"));\n\t\t\t\t\tteam.setName(rs.getString(\"Teams_name\"));\n\t\t\t\t\tteam.setIdProject(rs.getInt(\"idProjects\"));\n\t\t\t\t\tteam.setNameProject(rs.getString(\"nameProject\"));\n\t\t\t\t\tlistTeams.add(team);\n\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\n\t\t\t\tthrow new DALException(\"Problem - listTeamHisProject - TeamDAO - Request : \"+ pstmt+ \" \" + e.getMessage());\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (rs != null)\n\t\t\t\t\t\trs.close();\n\t\t\t\t\tif (pstmt != null)\n\t\t\t\t\t\tpstmt.close();\n\t\t\t\t\tif (cnx != null)\n\t\t\t\t\t\tcnx.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\tthrow new DALException(\"Problem - Closing connection - \" + e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn listTeams;\n\n\t\t}", "public static List<Player> getRankedPlayersInTeam(List<Player> players, Player.PlayerTeam team) {\n List<Player> choosenTeam = players.stream()\n .filter(player -> player.getTeam() == team)\n .collect(Collectors.toList());\n\n\n Comparator<Player> playerComparator = new Comparator<Player>() {\n @Override\n public int compare(Player o1, Player o2) {\n return o2.getCurrentScore() - o1.getCurrentScore();\n }\n };\n choosenTeam.sort(playerComparator);\n return choosenTeam;\n\n }", "Match getTeam2LooserOfMatch();", "public List<Team> getAllTeams() { \r\n\t\t\tif(teams==null)\t{\r\n\t\t\t\tteams=dao.listTeams(); //LIST\t\t\t\r\n\t\t\tfor(Team atemp:teams){\t\t\tthis.mapTeam.put(atemp.getTeam(), atemp);\t\t}\r\n\t\t\t\t}\r\n\t\t\treturn teams;\r\n\t\t}", "public boolean listingInfoEquals(Tournament t) {\n return extIdEquals(t) && nameEquals(t) && datesEquals(t);\n }", "void compareSearch();", "public abstract Set<String> getQueryNames();", "public synchronized OptionSet[] findOptSetsByNames(String[] names) {\n OptionSet[] optionSets = new OptionSet[names.length];\n for (int i = 0; i < names.length; ++i) {\n optionSets[i] = findOneOptSetByName(names[i]);\n }\n return optionSets;\n }", "public List<StaffMember> getTeamMembers(){\n\t\tSet<StaffMember> team = teamleader.getDirectSubordinates();\n\t\tStaffMemberIterator iterator = new StaffMemberIterator(team);\n\t\tList<StaffMember> listOfMembers = iterator.listOfStaffMember;\n\t\tlistOfMembers.add(teamleader);\n\t\tCollections.sort(listOfMembers);\n\t\treturn listOfMembers;\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 }", "public boolean matchResult(String expected,String count){\r\n List<String> expected_Result=new ArrayList<String>();\r\n String s1[];\r\n if(expected.contains(\",\")){\r\n s1 =expected.split(\",\");\r\n for(int i=0;i<s1.length;i++){\r\n expected_Result.add(s1[i]);\r\n }\r\n }\r\n else if(expected.length()!=0){\r\n expected_Result.add(expected);\r\n }\r\n\r\n Boolean match=islistmatching(expected_Result,getResult());\r\n\r\n return match;\r\n\r\n }", "public Results(ArrayList<String> nameList) {\r\n //Create an empty tree\r\n this.resultsTree = new TreeSet<>(lexicalSortByTeamName);\r\n \r\n //Create an arraylist containing the teams\r\n ArrayList<Team> teamList = new ArrayList<>();\r\n Iterator<String> itr = nameList.iterator();\r\n while (itr.hasNext()) {\r\n teamList.add(new Team(itr.next()));\r\n }\r\n \r\n //Create an arraylist containing all the possible matches\r\n //Then add it to the tree\r\n for (int i = 0; i < teamList.size(); i++) {\r\n for ( int j = i + 1; j < teamList.size(); j++) {\r\n this.resultsTree.add(new Match(teamList.get(i), teamList.get(j)));\r\n }\r\n }\r\n }", "public Result getResult(IMatch m) {\n if (m.getHomeTeam().equals(\"Sporting\")) return Result.AWAY;\n if (m.getAwayTeam().equals(\"Sporting\")) return Result.HOME;\n \n return gen.getRandomResult();\n }", "protected static LinkedList<Ticket> searchByName(LinkedList<Ticket> tickets)\n {\n LinkedList<Ticket> matchingTickets = new LinkedList<>();\n Scanner scan = new Scanner(System.in);\n String searchTerm = scan.nextLine();\n\n\n for (Ticket t : tickets)\n {\n if (t.getReporter().contains(searchTerm))\n {\n matchingTickets.add(t);\n }\n }\n\n return matchingTickets;\n }", "@Override\n\tpublic String toString() {\n\t\treturn teamName;\n\t}", "public Iterable<String> certificateOfElimination(String team) {\n if (!nameToId.containsKey(team)) {\n throw new IllegalArgumentException();\n }\n\n LinkedList<String> result = new LinkedList<>();\n int teamX = nameToId.get(team);\n\n for (int currentTeam = 0; currentTeam < numOfTeams; currentTeam++) {\n if (currentTeam == teamX) {\n continue;\n }\n\n if (wins(team) + remaining(team) < wins[currentTeam]) {\n result.addFirst(idToName.get(currentTeam));\n }\n }\n\n if (!result.isEmpty()) {\n return result;\n }\n\n int totalGames = 0;\n FlowNetwork network = new FlowNetwork(numOfVertices);\n\n for (int team1 = 0, offset = 0; team1 < numOfTeams; team1++) {\n for (int team2 = team1 + 1; team2 < numOfTeams; team2++, offset++) {\n network.addEdge(new FlowEdge(src, offset, against[team1][team2]));\n network.addEdge(new FlowEdge(offset, numOfGames + team1, Double.POSITIVE_INFINITY));\n network.addEdge(new FlowEdge(offset, numOfGames + team2, Double.POSITIVE_INFINITY));\n totalGames += against[team1][team2];\n }\n\n network.addEdge(new FlowEdge(numOfGames + team1, sink, wins(team) + remaining(team) - wins[team1]));\n }\n\n FordFulkerson ff = new FordFulkerson(network, src, sink);\n\n if ((int) ff.value() == totalGames) {\n return null;\n }\n\n for (int i = 0; i < numOfTeams; i++) {\n if (ff.inCut(numOfGames + i)) {\n result.add(idToName.get(i));\n }\n }\n\n return result;\n }", "@Override\n // report number of players on a given team (or all players, if null)\n\tpublic int numPlayers(String teamName) {\n\n int numPlayers = 0;\n\n\n if (teamName == null) {\n\n for (int i = 0; i < (stats.keySet()).toArray().length; i++) {\n\n numPlayers++;\n\n }\n\n return numPlayers;\n\n }\n\n else {\n\n Collection<SoccerPlayer> soccerPlayers = stats.values();\n\n for (SoccerPlayer sp: soccerPlayers) {\n\n if (sp.getTeamName().equals(teamName)){\n\n numPlayers++;\n }\n }\n\n return numPlayers;\n\n }\n\n\n\t}", "private void getPlayers() {\r\n\t\tSystem.out.println(\"How Many Players: \");\r\n\t\tpnum = getNumber(1, 3);\r\n\r\n\t\tfor(int i=0; i < pnum; i++){\r\n\t\t\tSystem.out.println(\"What is player \" + (i + 1) + \"'s name? \");\r\n\t\t\tString name = sc.next();\r\n\t\t\tboolean dupe = true;\r\n\t\t\twhile(dupe){\r\n\t\t\t\tint samecounter = 0;\r\n\t\t\t\tfor(Player p : players){\r\n\t\t\t\t\tif(name.equals(p.getName())){\r\n\t\t\t\t\t\tsamecounter += 1;\r\n\t\t\t\t\t\tSystem.out.println(\"Name is the same as another players. Please choose another name: \");\r\n\t\t\t\t\t\tname = sc.next();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(samecounter == 0){\r\n\t\t\t\t\tdupe = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tplayers.add(new Player(name));\r\n\r\n\t\t}\r\n\t}", "public static List<Team> getTeams() {\n return find().all();\n }" ]
[ "0.6880645", "0.65202576", "0.62041587", "0.6132686", "0.57763886", "0.57435215", "0.57417774", "0.5654043", "0.5642138", "0.56153136", "0.56030786", "0.5518785", "0.5490303", "0.5454364", "0.5443921", "0.5440527", "0.5384005", "0.5368198", "0.5355967", "0.53481257", "0.5330752", "0.529062", "0.5259728", "0.52566123", "0.5254173", "0.52540404", "0.5248598", "0.5245249", "0.5221903", "0.5214203", "0.5204192", "0.5203524", "0.51948655", "0.5192792", "0.51464397", "0.51296234", "0.5124642", "0.5111666", "0.5094248", "0.5092084", "0.5087007", "0.50811034", "0.50732416", "0.5062305", "0.50519127", "0.5043213", "0.5035151", "0.50185984", "0.50116056", "0.5007794", "0.50069827", "0.49990517", "0.4994229", "0.49920863", "0.49818838", "0.49726772", "0.4970342", "0.49585408", "0.4956847", "0.4952354", "0.49473625", "0.49301946", "0.49262542", "0.49234137", "0.4912853", "0.4912546", "0.49114844", "0.49089876", "0.4907227", "0.49039355", "0.49011484", "0.49001017", "0.4895294", "0.48923698", "0.48754746", "0.48739967", "0.48634008", "0.48577756", "0.48468593", "0.4845866", "0.48386246", "0.48352373", "0.48341796", "0.4828774", "0.482415", "0.4821207", "0.48099667", "0.48066542", "0.48041624", "0.4803217", "0.47994646", "0.47969618", "0.47946736", "0.4792132", "0.4788529", "0.47879407", "0.47844827", "0.47829857", "0.4779085", "0.47702563" ]
0.50264204
47
method to retrieve the teams name, wins and loses from the database
public ResultSet getStandings() throws SQLException { // Create a connection to the database. conn = DriverManager.getConnection(DB_URL); // Create a Statement object for the query. Statement stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY); // Execute the query. ResultSet resultSet = stmt.executeQuery("SELECT teamName, wins, loses FROM Team ORDER BY wins DESC"); return resultSet; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ResultSet getTeamInfo(String teamsname) throws SQLException\n\t{\n\t\t// Create a connection to the database.\n\t\t conn = DriverManager.getConnection(DB_URL);\n\t\t// Create a Statement object for the query.\n\t\tStatement stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);\n\t\t// Execute the query.\n\t\tResultSet resultSet = stmt.executeQuery(\"SELECT * FROM Team WHERE teamName = '\" + teamsname + \"'\");\n\t\t\n\t\treturn resultSet;\n\t\n\t}", "public String getStatsOfTeams(){\n\n String res = \"\";\n\n if (teams.size() <= 0){\n return \"No team registered in tournament\";\n }\n\n for(int num=0; num<teams.size(); num++)\n {\n SoccerTeam team = teams.get(num);\n res += team.toString() + \"\\n\";\n }\n return res;\n }", "public String getAwayTeam();", "public int wins(String team) {\n return getTeamByName(team).wins;\r\n }", "public static List<String> getAllTeams() throws URISyntaxException, IOException {\n HttpClient httpClient = HttpClientBuilder.create().build();\n URIBuilder uriBuilder = new URIBuilder();\n //http://api.football-data.org/v2/teams/\n uriBuilder.setScheme(\"http\").setHost(\"api.football-data.org\").setPath(\"v2/teams/\");\n HttpGet httpGet = new HttpGet(uriBuilder.build());\n httpGet.setHeader(\"X-Auth-Token\",\"7cf82ca9d95e498793ac0d3179e1ec9f\");\n httpGet.setHeader(\"Accept\",\"application/json\");\n HttpResponse response = httpClient.execute(httpGet);\n ObjectMapper objectMapper = new ObjectMapper();\n TeamsPojo pojo = objectMapper.readValue(response.getEntity().getContent(),TeamsPojo.class);\n List<String> willBeReturned = new ArrayList<>();\n List<Teams> teams = pojo.getTeams();\n for (int i =0 ; i<teams.size();i++){\n willBeReturned.add(teams.get(i).getName());\n }\n\n\n return willBeReturned;\n }", "public ResultSet getTeamNames() {\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString teamNamesRecords_sql = \"SELECT name FROM \" + team_table;\n\t\tconnection = connector.getConnection();\n\t\ttry {\n\t\t\tstatement = connection.prepareStatement(teamNamesRecords_sql);\n\t\t\trs = statement.executeQuery();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn rs;\n\t}", "public List<Team> getAll() {\n TeamDB tdb = new TeamDB();\n List<Team> teams = tdb.getAll();\n for (Team t : teams) {\n String teamName = t.getTeamName();\n teamName = teamName.replace(\"'\", \"\\\\\\'\");\n t.setTeamName(teamName);\n System.out.println(t.getTeamName());\n }\n return teams;\n }", "int getTeam();", "String getWonTeam() {\r\n return this.teamName;\r\n }", "Team findByName(String name);", "public ResultSet getTeams() throws SQLException {\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString teamRecords_sql = \"SELECT * FROM \" + team_table;\n\t\tconnection = connector.getConnection();\n\t\tstatement = connection.prepareStatement(teamRecords_sql);\n\t\trs = statement.executeQuery();\n\t\treturn rs;\n\t}", "private TeamId findWinningTeam(){\n if (state.score().totalPoints(TeamId.TEAM_1)>=Jass.WINNING_POINTS) {\n return TeamId.TEAM_1;\n }\n else {\n return TeamId.TEAM_2;\n }\n }", "public String[] getTeamNames() throws SQLException\n\t{\n\t\t// Create a connection to the database.\n\t\t conn = DriverManager.getConnection(DB_URL);\n\t\t// Create a Statement object for the query.\n\t\tStatement stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);\n\t\t// Execute the query.\n\t\tResultSet resultSet = stmt.executeQuery(\"SELECT teamName FROM Team\");\n\t \n\t\t// Get the number of rows\n\t\tresultSet.last(); \t\t// Move to the last row\n\t\tint numRows = resultSet.getRow(); \t// Get the current row number\n\t\tresultSet.first(); \t// Move back to the first row\n\t\n\t\t// Create an array for the team names.\n\t\tString[] names = new String[numRows];\n\t \n\t\t// Populate the array with team names.\n\t\tfor (int index = 0; index < numRows; index++)\n\t\t{\n\t\t\t// Store the team name in the array.\n\t\t\tnames[index] = resultSet.getString(1);\n\t\t\tSystem.out.println(names[index]);\n\t\t\t// Go to the next row in the result set.\n\t\t\tresultSet.next();\n\t\t}\n\t \n\t\t// Close the statement object.\n\t\tstmt.close();\n\t \n\t\treturn names;\n\t}", "public List<Team> getAllTeams() { \r\n\t\t\tif(teams==null)\t{\r\n\t\t\t\tteams=dao.listTeams(); //LIST\t\t\t\r\n\t\t\tfor(Team atemp:teams){\t\t\tthis.mapTeam.put(atemp.getTeam(), atemp);\t\t}\r\n\t\t\t\t}\r\n\t\t\treturn teams;\r\n\t\t}", "public int losses(String team) {\n return getTeamByName(team).losses;\r\n }", "public List<Team> getListOfTeams(){\n \tMap<String, Object> myMap = new HashMap<String, Object>();\n\t\tJSONObject jsonobj = null;\n\t\tList<Team> team = new ArrayList<>();\n\t\tTeamsJsonReader reader = new TeamsJsonReader();\n\t\tJSONParser parser = new JSONParser();\n\t\tObject obj = null;\n\n\t\ttry {\n\t\t\tobj = parser.parse(new FileReader(\"src/main/resources/db.json\"));\n\t\t\tJSONObject jsonObject = (JSONObject) obj;\n\t\t\tJSONArray jsonarr = (JSONArray) jsonObject.get(\"teams\");\n\t\t\tfor (int size = 0; size < jsonarr.size(); size++) {\n\t\t\t\tList<Individual> individualList = new ArrayList<>();\n\t\t\t\tjsonobj = (JSONObject) jsonarr.get(size);\n\t\t\t\tmyMap.put(\"name\", jsonobj.get(\"name\"));\n\t\t\t\tmyMap.put(\"id\", ((Long) jsonobj.get(\"id\")).intValue());\n\t\t\t\tJSONArray memberArray = (JSONArray) jsonobj.get(\"members\");\n\n\t\t\t\tfor (int index = 0; index < memberArray.size(); index++) {\n\n\t\t\t\t\tindividualList.add(reader.getIndividualById(((Long) memberArray.get(index)).intValue()));\n\n\t\t\t\t}\n\t\t\t\tmyMap.put(\"members\", individualList);\n\t\t\t\t\n\t\t\t\tteam.add(new Team(myMap));\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn team;\n }", "@Test\r\n\tpublic void findAllTeams() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: findAllTeams \r\n\t\tInteger startResult = 0;\r\n\t\tInteger maxRows = 0;\r\n\t\tList<Team> response = null;\r\n\t\tresponse = service.findAllTeams(startResult, maxRows);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: findAllTeams\r\n\t}", "public List<Team> getAllByLeague(League leagueID) {\n TeamDB tdb = new TeamDB();\n List<Team> teams = tdb.getAllByLeague(leagueID);\n for (Team t : teams) {\n String teamName = t.getTeamName();\n teamName = teamName.replace(\"'\", \"\\\\\\'\");\n t.setTeamName(teamName);\n System.out.println(t.getTeamName());\n }\n return teams;\n }", "public void retrieveAllTeamsFromDatabase(String dbMemberName) {\n\n DatabaseReference dbReference = FirebaseDatabase.getInstance().getReference().child(dbMemberName);\n Log.d(\">>>>>\", \"Starting method\");\n isTeamsRetrieved = false;\n// teamsList.clear();\n\n dbReference.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n teamsList.clear();\n Log.d(\">>>>>\", \"On 1 st method\");\n for (DataSnapshot postSnapshot : snapshot.getChildren()) {\n Log.d(\">>>>>\", \"On 2 nd method\");\n team = postSnapshot.getValue(Team.class);\n teamsList.add(team);\n\n // here you can access to name property like university.name\n System.out.println(\">>>>> Retrieving team -> \" + team);\n\n if (!isTeamsRetrieved) {\n isTeamsRetrieved = true;\n }\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n System.out.println(\"The read failed: \" + databaseError.getMessage());\n }\n });\n }", "Team getMyTeam();", "public List<VwTeams> browse(String[] params)\n\t{\n\t\tList<VwTeams> results\t= new ArrayList<VwTeams>();\n\t\tVwTeams[] array\t\t\t= null;\n\t\t\n\t\ttry\n\t\t{\n\t\t\tif (params == null)\n\t\t\t{\n\t\t\t\tarray = dao.findAll();\n\t\t\t}\n\t\t\telse \n\t\t\t{\t\t\t\t\n\t\t\t\t//like filter\n\t\t\t\tparams[0] = GeneralUtils.addLikeFormat(params[0]);\n\t\t\t\t\n\t\t\t\tString sql = \"\";\n\t\t\t\t\n\t\t\t\tsql = \"\tteam_name LIKE ? \";\n\t\t\t\tsql += \"\t\tevent_id = ? \";\n\t\t\t\t\t\t\t\t\n\t\t\t\tarray = dao.findByDynamicWhere(sql, params);\n\t\t\t}\n\t\t\t\n\t\t\t// convert array to list\n\t\t\tresults = Arrays.asList(array);\n\t\t}\n\t\tcatch (VwTeamsDaoException e)\n\t\t{\n\t\t\tlogger.error(e.getMessage());\n\t\t\t\n\t\t\terror.setCode(Errors.Codes.DB_DAO.getCode());\n\t\t\terror.setWindowTitle(Errors.Codes.DB_DAO.getWindowTitle());\n\t\t\terror.setMessage(Errors.Codes.DB_DAO.getMessage());\n\t\t\t\n\t\t\terror.setExceptionMessage(e.getMessage());\n\t\t\t\n\t\t\tpdr.setError(error);\n\t\t\t\n\t\t\tif (logger.isDebugEnabled())\n\t\t\t\te.printStackTrace();\n\t\t\t\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\treturn results;\n\t}", "@Override\r\n\tpublic List<String> getAllTeam() {\n\t\treturn dao.getAllTeam();\r\n\t}", "public static Team whoLostGameTeam() {\r\n\t\tint lowest = Main.loseScoreNumb;\r\n\t\tTeam loser = null;\r\n\t\t\r\n\t\t//Team one is the looser.\r\n\t\tif (Utils.stringToInt(Main.team1Score) >= lowest) {\r\n\t\t\tlowest = Utils.stringToInt(Main.team1Score);\r\n\t\t\tloser = Main.teamOne;\r\n\t\t}\r\n\t\t//Team two is the loser.\r\n\t\tif (Utils.stringToInt(Main.team2Score) >= lowest) {\r\n\t\t\tlowest = Utils.stringToInt(Main.team2Score);\r\n\t\t\tloser = Main.teamTwo;\r\n\t\t}\r\n\t\t\r\n\t\treturn loser;\r\n\t}", "Match getTeam1LooserOfMatch();", "public void getScores(){\n String p1 = \"Player 1 has \" + Integer.toString(player1.getWins());\n String p2 = \"Player 2 has \" + Integer.toString(player2.getWins());\n String winner = \"tie\";\n if(player1.getWins()>player2.getWins()){\n winner = player1.getName() + \" wins!!!!\";\n }\n else if(player2.getWins()>player1.getWins()){\n winner = player2.getName() + \" Wins!!!\";\n }\n JOptionPane.showMessageDialog(null, (p1 + \"\\n\" + p2 + \"\\n\" + winner));\n }", "public void printTeamsInLeague(){\n for (T i : teams){\n System.out.println(i.getTeamName());\n }\n }", "public String getGameStatus(String team) {\n\n String gameStatus = \"\";\n\n String[] mlbTeam = {\"D-backs\", \"Braves\", \"Orioles\", \"Red Sox\", \"Cubs\", \"White Sox\", \"Reds\", \"Indians\", \"Rockies\",\n \"Tigers\", \"Astros\", \"Royals\", \"Angels\", \"Dodgers\", \"Marlins\", \"Brewers\", \"Twins\", \"Mets\",\n \"Yankees\", \"Athletics\", \"Phillies\", \"Pirates\", \"Cardinals\", \"Padres\", \"Giants\", \"Mariners\",\n \"Rays\", \"Rangers\", \"Blue Jays\", \"Nationals\"};\n\n search:\n for (int i = 0; i < 1; i++) {\n\n for (int j = 0; j < mlbTeam.length; j++) {\n if (mlbTeam[j].equals(team)) {\n break search;\n }\n }\n\n team = \"No team\";\n i++;\n }\n try {\n // indicate if today is an off day for the team selected\n if (getPlayerInfo(team, \"status\", \"status\").equals(\"\")) {\n gameStatus = \"No game scheduled for the \" + uppercaseFirstLetters(team);\n }\n }\n catch (NullPointerException npe) {\n gameStatus = \"No game scheduled for the \" + uppercaseFirstLetters(team);\n }\n\n // display error message if there is no match to the team name inputted\n if (team.equals(\"No team\")) {\n gameStatus = \"ERROR: Please enter current MLB team name.\";\n }\n // indicate if today is an off day for the team selected\n else if (getPlayerInfo(team, \"status\", \"status\").equals(\"\")) {\n gameStatus = \"No game scheduled for the \" + team;\n }\n else {\n gameStatus = getPlayerInfo(team, \"status\", \"status\");\n }\n\n return gameStatus;\n }", "public List<PlayerWon> findByTeamId(int teamId);", "private Team getTeam(String teamName) {\n return scoreboard.getTeam(trimString(teamName));\n }", "public static Team whoWonGameTeam() {\r\n\t\tint highest = Main.winScoreNumb;\r\n\t\tTeam winner = null;\r\n\t\t\r\n\t\t//Winner is team one.\r\n\t\tif (Utils.stringToInt(Main.team1Score) >= highest) {\r\n\t\t\thighest = Utils.stringToInt(Main.team1Score);\r\n\t\t\twinner = Main.teamOne;\r\n\t\t}\r\n\t\t//Winner is team two.\r\n\t\tif (Utils.stringToInt(Main.team2Score) >= highest) {\r\n\t\t\thighest = Utils.stringToInt(Main.team2Score);\r\n\t\t\twinner = Main.teamTwo;\r\n\t\t}\r\n\t\t\r\n\t\treturn winner;\r\n\t}", "public Team getTeamByName(String name) {\n\t\tTeam t = null;\n\t\ttry {\n\t\t\tPreparedStatement statement = null;\n\t\t\tResultSet rs = null;\n\t\t\tString teamRecords_sql = \"SELECT * FROM \" + team_table + \" WHERE name='\" + name + \"'\";\n\t\t\tconnection = connector.getConnection();\n\t\t\tstatement = connection.prepareStatement(teamRecords_sql);\n\t\t\trs = statement.executeQuery();\n\t\t\tList<Player> players = new ArrayList<Player>();\n\t\t\tif (rs.next()) {\n\t\t\t\tplayers = formatPlayers(getPlayersByTeamId(rs.getInt(1)));\n\t\t\t\tt = new Team(players, rs.getString(2), rs.getString(3), rs.getString(4), rs.getDate(5));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn t;\n\t}", "public static List<Team> getTeams() {\n return find().all();\n }", "@Override\n public String getTeam(){\n return this.team;\n }", "public String getAwayWin(String team) {\n\n return getGameInfo(team, \"away_win\");\n }", "Match getTeam2LooserOfMatch();", "public int wins(String team) {\n return 0;\n }", "List<Team> findTeamsByUserId(UserId userId);", "public List<String> getSports(String name){\r\n\t\tList<String> list = new ArrayList<String>();\r\n\t\tConnection conn = DBConnect.getConnection();\r\n\t\tString sql = \"select sports_name from team where delegation_name= '\" + name + \"'\";\r\n\t\ttry {\r\n\t\t\tPreparedStatement pst = conn.prepareStatement(sql);\r\n\t\t\tResultSet rst = pst.executeQuery();\r\n\t\t\twhile(rst.next()) {\r\n\t\t\t\tString team = rst.getString(\"sports_name\");\r\n\t\t\t\tlist.add(team);\r\n\t\t\t}\r\n\t\t\trst.close();\r\n\t\t\tpst.close();\r\n\t\t}catch (SQLException e) {\r\n\t\t\t// TODO: handle exception\r\n e.printStackTrace();\t\t\t\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "public String getStatsOfGames(){\n\n String res = \"\";\n\n if (games.size() <= 0){\n return \"No game registered in tournament\";\n }\n\n for(int num=0; num<games.size(); num++)\n {\n SoccerGames game = games.get(num);\n res += \"Game Id: \" + game.getGameId() + \" \"+ game.getHostTeam().getName() + \": \" + game.goalsScored +\n \" VS \" + game.getOpponentTeam().getName() + \": \" + game.concededGoal;\n\n }\n return res;\n }", "@WebMethod public List<Team> getAllTeams();", "public String getTeam(int id){\r\n\t\treturn teamList.get(id);\r\n\t}", "public String getTeamName() {\r\n return teamName;\r\n }", "public ArrayList<CollegeFootballTeam> getTeamList();", "public League getLeagueName() {\n return leagueName;\n }", "@GetMapping(\"/leaderboard\")\n @Timed\n @PermitAll\n public ResponseEntity<Leaderboard> getAllTeams() {\n log.debug(\"REST request to get a leaderboard\");\n\n return ResponseEntity.ok().body(this.leaderboardService.findAll());\n }", "@Override\r\n\tpublic ArrayList<TeamPO> getAllTeams() {\n\t\treturn teams.getAllTeams() ;\r\n\t}", "private int get2(String name) {\n int t = 0;\n PlayerRecord curr = playerlist.first();\n while (curr != null) {\n if (curr.getTeamname().equals(name))\n t = t + curr.getWinninggoals(); // sum of all GWGs\n curr = playerlist.next();\n }\n return t;\n }", "private void fetchTeams() {\n String url = Teams.TEAMS_URL;\n\n JsonObjectRequest request = new JsonObjectRequest(Request.Method.GET, url, null,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(final JSONObject response) {\n Gson gson = new Gson();\n //Deserialize\n mTeams = gson.fromJson(response.toString(), Teams.class);\n for (Team team : mTeams.getTeams()) {\n //Add each team to the nav drawer with the appropriate icon\n mNavigationView.getMenu().add(team.getName()).setIcon(Utils.getDrawableForTeam(team));\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(final VolleyError error) {\n error.printStackTrace();\n }\n });\n //Singleton instance of Volley as per the documentation\n RequestQueue.getInstance(this).addToRequestQueue(request);\n }", "public int wins(String team) {\n validate(team);\n int t = st.get(team);\n return matTeam[t][1];\n }", "public String getHomeTeam();", "public List<PlayerWon> findByLeagueId(int leagueId);", "public static void saveTeamNames() {\r\n\t\tMain.team1 = Main.teamOne.name;\r\n\t\tMain.team2 = Main.teamTwo.name;\r\n\t}", "public String[] getAvailableTeams() {\n\n int team1 = 0;\n int team2 = 0;\n if (activePlayers > 0) {\n for (int i = 0; i < activePlayers; i++) {\n if (players[i].getTeam() == teams[0]) {\n team1++;\n continue;\n }\n team2++;\n }\n\n String[] team = new String[2];\n if ((activePlayers == numMaxPlayers - 1) && (team1 == 0 || team2 == 0)) {\n if (team1 == 0) {\n team[0] = teams[0].toString();\n return team;\n }\n team[0] = teams[1].toString();\n return team;\n }\n }\n return new String[]{teams[0].toString(), teams[1].toString(), null};\n }", "List<Team> findAll();", "public VwTeams get(int teamId)\n\t{\n\t\tVwTeams [] results = null;\n\t\t\n\t\ttry\n\t\t{\n\t\t\tresults = dao.findWhereTeamIdEquals(teamId);\t\t\t\n\t\t}\n\t\tcatch (VwTeamsDaoException e)\n\t\t{\n\t\t\tlogger.error(e.getMessage());\n\t\t\t\n\t\t\terror.setCode(Errors.Codes.DB_DAO.getCode());\n\t\t\terror.setWindowTitle(Errors.Codes.DB_DAO.getWindowTitle());\n\t\t\terror.setMessage(Errors.Codes.DB_DAO.getMessage());\n\t\t\t\n\t\t\terror.setExceptionMessage(e.getMessage());\n\t\t\t\n\t\t\tpdr.setError(error);\n\t\t\t\n\t\t\tif (logger.isDebugEnabled())\n\t\t\t\te.printStackTrace();\n\t\t\t\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\treturn results.length == 0 ? null : results[0];\n\t}", "public ArrayList<CollegeFootballTeam> rankTeams();", "String getWinner();", "public String getAwayRecord(String team) {\n\n String awayRecord = \"\";\n\n // if a team name has not been entered or an incorrect team name has been entered\n if (team.equals(\"\") || getGameStatus(team).equals(\"ERROR: Please enter current MLB team name.\")) {\n awayRecord = \"\";\n }\n // preview status, only provides team record one day after the current date\n else if (getGameStatus(team).equals(\"Preview\")) {\n try {\n if (compareDates(getGameInfo(team, \"original_date\"), 1)) {\n awayRecord = \"(\" + getAwayWin(team) + \" - \" + getAwayLoss(team) + \")\";\n }\n else {\n awayRecord = \"\";\n }\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }\n // if the game status is pre-game, warmup, in progress, postponed, completed early, game over, or final\n else if (getPlayerInfo(team, \"status\", \"status\").equals(\"Pre-Game\") ||\n getPlayerInfo(team, \"status\", \"status\").equals(\"Warmup\") ||\n getPlayerInfo(team, \"status\", \"status\").equals(\"In Progress\") ||\n getPlayerInfo(team, \"status\", \"status\").equals(\"Postponed\") ||\n getPlayerInfo(team, \"status\", \"status\").equals(\"Completed Early\") ||\n getPlayerInfo(team, \"status\", \"status\").equals(\"Game Over\") ||\n getPlayerInfo(team, \"status\", \"status\").equals(\"Final\")) {\n\n awayRecord = \"(\" + getAwayWin(team) + \" - \" + getAwayLoss(team) + \")\";\n }\n // if today is an off day\n else {\n awayRecord = \" \";\n }\n\n return awayRecord;\n }", "public String getTeam() {\n return team;\n }", "@Test\r\n\tpublic void loadTeams() {\r\n\t\tSet<Team> response = null;\r\n\t\tresponse = service.loadTeams();\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: loadTeams\r\n\t}", "public String winningTeam(String team1, String team2)\n {\n int r = new Random().nextInt(3 + 1);\n\n int team1Standing = -10;\n int team2Standing = -10;\n for (int i = 0 ; i < playoffs.length; i++)\n {\n if (playoffs[i].equals(team1))\n {\n team1Standing = i;\n break;\n }\n }\n\n for (int i = 0 ; i < playoffs.length; i++)\n {\n if (playoffs[i].equals(team2))\n {\n team2Standing = i;\n break;\n }\n }\n\n if(team1Standing < team2Standing && r == 1)\n return team1;\n else if (team1Standing > team2Standing && r == 1)\n return team2;\n\n else\n {\n r = new Random().nextInt(1 + 1);\n if(r == 0)\n return team1;\n else\n return team2;\n }\n\n }", "public ArrayList<Team> populateDefaultTeams() {\n\t\t\n\t\t///\n\t\t/// declare local variables\n\t\t///\n\t\t\n\t\tArrayList<Team> result = new ArrayList<Team>();\t// holds the resulting list of teams\n\n\t\tString query; \t\t\t\t\t\t\t\t\t// holds query string\n\t\tPreparedStatement stmt; \t\t\t\t\t\t// holds Prepared Statement to execute on the database\n\t\tResultSet rs; \t\t\t\t\t\t\t\t\t// holds the result from the database\n\t\t\n\t\ttry {\n\t\t\n\t\t\t// concatenate select query\n\t\t\tquery = \"SELECT * FROM \" + tableDefaultTeams + \" WHERE \" + columnTeamGender + \" = \" + \"?;\";\n\t\n\t\t\t// initialize the prepare statement, execute it, and\n\t\t\t// store the result\n\t\t\tstmt = conn.prepareStatement(query);\n\t\t\tstmt.setString(1, \"F\");\t\t// TODO: REMOVE HARDCODED GENDER IN SPRINT 2\n\t\t\trs = stmt.executeQuery();\n\t\t\t\n\t\t\twhile (rs.next()) {\n\t\t\t\tTeam team = new Team();\n\t\t\t\t// store the result from the database in the team object\n\t\t\t\tteam.setTeamId(rs.getInt(columnTeamId));\n\t\t\t\tteam.setName(rs.getString(columnTeamName));\n\t\t\t\tteam.setAddress(rs.getString(columnTeamAdress));\n\t\t\t\tteam.setCity(rs.getString(columnTeamCity));\n\t\t\t\tteam.setState(rs.getString(columnTeamState));\n\t\t\t\tteam.setZip(rs.getString(columnTeamZip));\n\t\t\t\tteam.setGender(rs.getString(columnTeamGender));\n\t\t\t\tteam.setLat(rs.getString(columnTeamLat));\n\t\t\t\tteam.setLng(rs.getString(columnTeamLng));\n\t\t\t\tresult.add(team);\n\t\t\t}\n\t\t\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.out.println(sqle.getMessage());\n\t\t}\n\t\t\n\t\t// return the list of teams\n\t\treturn result;\n\t\t\n\t}", "public FightTeam team();", "@SuppressWarnings(\"ResultOfObjectAllocationIgnored\")\n private String getWinnerList() {\n String list = \"\";\n\n ArrayList<IPlayer> arrlist = sortPlayerAfterPoints();\n\n for (IPlayer i : arrlist) {\n try {\n list += i.getName();\n list += \": \" + i.getPoints() + \"\\n\";\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n }\n\n try {\n if (dialog.getSoundBox().isSelected()) {\n if (iPlayerList.size() > 0) {\n if (playersAgentsMap.get(arrlist.get(0).getName()).get(0).getColor().equals(Color.decode(AgentUtils.ROT))) {\n new SoundClip(\"red_team_is_the_winner\");\n } else if (playersAgentsMap.get(arrlist.get(0).getName()).get(0).getColor().equals(Color.decode(AgentUtils.BLAU))) {\n new SoundClip(\"blue_team_is_the_winner\");\n } else {\n new SoundClip(\"Flawless_victory\");\n }\n } else {\n new SoundClip(\"players_left\");\n }\n }\n } catch (NumberFormatException | RemoteException e) {\n e.printStackTrace();\n }\n\n return list;\n }", "public int getTeam() {\n return team;\n }", "@Override\n public HashMap<String, ArrayList<League>> conditionedSelect(String[] conditions) {\n String query;\n Connection connection = DBConnector.getConnection();\n PreparedStatement statement = null;\n ResultSet retrievedLeagues = null;\n HashMap<String, ArrayList<League>> leagues = new HashMap<>();\n\n if (conditions.length == 0) {\n query = \"select * from [Leagues]\";\n } else {\n query = \"select * from [Leagues] where\";\n\n for (int i = 0; i < conditions.length; i++) {\n if (i % 2 == 0) {\n query += \" \" + conditions[i];\n } else {\n query += \" = ?\";\n if (i < conditions.length - 1)\n query += \" and\";\n }\n }\n }\n try {\n statement = connection.prepareStatement(query);\n\n if (conditions.length > 0) {\n int i = 0;\n while (i < conditions.length) {\n switch (conditions[i].toLowerCase()) {\n case \"leaguename\":\n statement.setString((int) (i / 2) + 1, conditions[i + 1]);\n break;\n\n case \"year\":\n case \"winPoints\":\n case \"drawPoints\":\n case \"losePoints\":\n statement.setInt((int) (i / 2) + 1, Integer.valueOf(conditions[i + 1]));\n break;\n\n case \"schedulingmethod\":\n statement.setBoolean((int) (i / 2) + 1, conditions[i + 1].equals(\"1\"));\n\n default:\n break;\n }\n i += 2;\n }\n }\n\n retrievedLeagues = statement.executeQuery();\n\n\n while (retrievedLeagues.next()) {\n String leagueName = retrievedLeagues.getString(1);\n int season = retrievedLeagues.getInt(2);\n boolean scheduling = retrievedLeagues.getBoolean(3);\n int winPoints = retrievedLeagues.getInt(4);\n int losePoints = retrievedLeagues.getInt(5);\n int drawPoints = retrievedLeagues.getInt(6);\n\n League league = new League(leagueName, season, scheduling, winPoints, drawPoints, losePoints);\n String seasonString = Integer.toString(season);\n ArrayList<League> leaguesList;\n\n if (leagues.containsKey(seasonString)) {\n leaguesList = leagues.get(seasonString);\n } else {\n leaguesList = new ArrayList<>();\n leagues.put(seasonString, leaguesList);\n }\n\n leaguesList.add(league);\n }\n } catch (SQLException e) {\n logger.error(e.getMessage());\n }\n\n return leagues;\n }", "@Override\n\tpublic String toString() {\n\t\treturn teamName;\n\t}", "public int numberOfTeams() {\n return noTeams;\n }", "public synchronized void announceWinner(Team team) {\n\n String[] gameStats = new String[players.length];\n for(int i = 0; i < players.length; i++){\n\n String s = players[i].getName() + \": \" + players[i].getCorrectAnswers();\n gameStats[i] = s;\n System.err.println(s);\n }\n\n for (PlayerHandler playerHandler : players) {\n\n if (playerHandler.getTeam() == team) {\n playerHandler.getOutputStream().println(\n GFXGenerator.drawYouWon(playerHandler.getTeam().getColor(), score, teams[0], teams[1]) +\n \"\\n\" + GFXGenerator.drawTable(gameStats, 4, \"GAME STATS (CORRECT ANSWERS)\"));\n\n continue;\n }\n\n playerHandler.getOutputStream().println(\n GFXGenerator.drawGameOver(playerHandler.getTeam().getColor(), score, teams[0], teams[1])+\n \"\\n\" + GFXGenerator.drawTable(gameStats, 4, \"GAME STATS (CORRECT ANSWERS)\"));\n }\n\n }", "private void populateTeams() {\n\n // TODO: Can't get teams assigned to judges for now. Instead, getting all teams in an event\n AsyncHttpClient client = new AsyncHttpClient();\n client.addHeader(\"Authorization\", \"Token token=\" + this.user.getToken().getAccess_token());\n client.get(LoginActivity.API_ROOT + \"events/\" + currEvent.getId() + \"/teams\",\n new BaseJsonHttpResponseHandler<Team[]>() {\n @Override\n public void onSuccess(int statusCode, Header[] headers, String rawJsonResponse,\n Team[] response) {\n teams_lv = (ListView) findViewById(R.id.teams_lv);\n teamsArr = response;\n\n // \"All\" will be the default category\n displayedTeams = teamsArr;\n\n // Make an \"empty\" Event in the case that there are no Events.\n if (teamsArr.length == 0) {\n teamsArr = new Team[1];\n teamsArr[0] = new Team(-1, -1, \"(No teams. Please see an admin for help.)\",\n null);\n teams_lv.setAdapter(new TeamAdapter(SelectionActivity.this,\n teamsArr));\n } else {\n teams_lv.setAdapter(new TeamAdapter(SelectionActivity.this,\n teamsArr));\n teams_lv.setOnItemClickListener(new TeamClickListener());\n }\n Log.d(\"GET TEAMS\", \"success\");\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, Throwable error,\n String rawJsonData, Team[] errorResponse) {\n Log.d(\"GET TEAMS\", \"failure\");\n }\n\n @Override\n protected Team[] 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_teams\");\n return new Gson().fromJson(teamsJSONArr.toString(), Team[].class);\n } else return null;\n }\n });\n }", "public List<VwTeams> getByEvent(int eventId)\n\t{\n\t\tList<VwTeams> results = new ArrayList<VwTeams>();\n\t\tVwTeams[] array = null;\n\t\t\n\t\ttry\n\t\t{\n\t\t\tarray = dao.findWhereEventIdEquals(eventId);\n\t\t\t\n\t\t\tresults = Arrays.asList(array);\n\t\t}\n\t\tcatch (VwTeamsDaoException e)\n\t\t{\n\t\t\tlogger.error(e.getMessage());\n\t\t\t\n\t\t\terror.setCode(Errors.Codes.DB_DAO.getCode());\n\t\t\terror.setWindowTitle(Errors.Codes.DB_DAO.getWindowTitle());\n\t\t\terror.setMessage(Errors.Codes.DB_DAO.getMessage());\n\t\t\t\n\t\t\terror.setExceptionMessage(e.getMessage());\n\t\t\t\n\t\t\tpdr.setError(error);\n\t\t\t\n\t\t\tif (logger.isDebugEnabled())\n\t\t\t\te.printStackTrace();\n\t\t\t\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\treturn results;\n\t}", "public Player getWinner();", "public int wins(String team) {\n return wins[findTeamIndex(team)];\n }", "public int wins(String team) {\n if (!nameToId.containsKey(team)) {\n throw new IllegalArgumentException();\n }\n\n return wins[nameToId.get(team)];\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"View all teams\");\n\t\tSystem.out.println(teamData.viewTeams());\n\t\t\n\t\tSystem.out.println(\"Search by conference\");\n\t\tSystem.out.println(teamData.searchConference(\"AFC\"));\n\t\tSystem.out.println(teamData.searchConference(\"NFC\"));\n\t\t\n\t\tSystem.out.println(\"Search by division\");\n\t\tSystem.out.println(teamData.searchDivision(\"NFC\", \"West\"));\n\t\tSystem.out.println(teamData.searchDivision(\"NFC\", \"East\"));\n\t\t\n\t\tSystem.out.println(\"View team roster\");\n\t\tSystem.out.println(teamData.viewTeamRoster(\"Bears\"));\n\t\tSystem.out.println(teamData.viewTeamRoster(\"Cowboys\"));\n\t\t\n\t\tSystem.out.println(\"List player data\");\n\t\tSystem.out.println(teamData.listPlayer(\"Romo\", \"Cowboys\"));\n\t\tSystem.out.println(teamData.listPlayer(\"Brady\", \"Patriots\"));\n\t\t\n\t\tSystem.out.println(\"List all match results\");\n\t\t//System.out.println(teamData.readMatchData()); //lists all match results for all weeks\n\t\t\n\t\tSystem.out.println(\"List match results by week\");\n\t\tSystem.out.println(teamData.viewMatchWeek(\"Week 5\"));\n\t\t\n\t\tSystem.out.println(\"View single team's match data\");\n\t\tSystem.out.println(teamData.viewMatchByTeam(\"Falcons\"));\n\t\tSystem.out.println(teamData.viewMatchByTeam(\"Cowboys\"));\n\t\t\n\t\tSystem.out.println(\"View Head to Head (team vs team)\");\n\t\tSystem.out.println(teamData.viewH2H(\"Patriots\", \"Dolphins\"));\n\t\tSystem.out.println(teamData.viewH2H(\"Panthers\", \"Eagles\"));\n\t\t\n\t\tSystem.out.println(\"View specific team wins\");\n\t\tSystem.out.println(teamData.viewTeamWins(\"Panthers\"));\n\t\t\n\t\tSystem.out.println(\"View specific team loses\");\n\t\tSystem.out.println(teamData.viewTeamLoses(\"Titans\"));\n\t\t\n\t\t//Haven't tested this fully\n\t\t//System.out.println(teamData.getTeamImage(\"Cowboys\"));\n\t}", "@Override\r\n\tpublic String getTeam() {\n\t\treturn team;\r\n\t}", "@Override\n public ArrayList<Pair<String, Integer>> getHouseLeaderBoard(String faculty) throws IOException {\n System.out.println(\"Database adapter zavolala sa metoda getHouseLeaderBoard\");\n ArrayList<Pair<String, Integer>> leaderboard = new ArrayList<>();\n\n String sql = \"SELECT playernick, max(score) AS score FROM sep2_schema.player_scores JOIN sep2_schema.player ON (playernick = nickname) WHERE faculty=? GROUP BY playernick ORDER BY score DESC;\";\n ArrayList<Object[]> result;\n String playernick = \"\";\n int score = 0;\n\n try {\n result = db.query(sql, faculty);\n for (int i = 0; i < result.size(); i++) {\n Object[] row = result.get(i);\n playernick = row[0].toString();\n score = (int) row[1];\n leaderboard.add(new Pair<>(playernick, score));\n }\n return leaderboard;\n } catch (SQLException e) {\n e.printStackTrace();\n return leaderboard;\n }\n }", "public static Player whoLostGame() {\r\n\t\tint lowest = Main.loseScoreNumb;\r\n\t\tPlayer loser = null;\r\n\t\t\r\n\t\t\r\n\t\t//Three handed play.\r\n\t\tif (Main.isThreeHanded){\r\n\t\t\tif (Utils.stringToInt(Main.player1Score) <= lowest) {\r\n\t\t\t\tlowest = Utils.stringToInt(Main.player1Score);\r\n\t\t\t\tloser = Main.playerOne;\r\n\t\t\t}\r\n\t\t\tif (Utils.stringToInt(Main.player2Score) <= lowest) {\r\n\t\t\t\tlowest = Utils.stringToInt(Main.player2Score);\r\n\t\t\t\tloser = Main.playerTwo;\r\n\t\t\t}\r\n\t\t\tif (Utils.stringToInt(Main.player3Score) <= lowest) {\r\n\t\t\t\tlowest = Utils.stringToInt(Main.player3Score);\r\n\t\t\t\tloser = Main.playerThree;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Four handed play with no teams.\r\n\t\tif (Main.isFourHandedSingle){\r\n\t\t\tif (Utils.stringToInt(Main.player1Score) <= lowest) {\r\n\t\t\t\tlowest = Utils.stringToInt(Main.player1Score);\r\n\t\t\t\tloser = Main.playerOne;\r\n\t\t\t}\r\n\t\t\tif (Utils.stringToInt(Main.player2Score) <= lowest) {\r\n\t\t\t\tlowest = Utils.stringToInt(Main.player2Score);\r\n\t\t\t\tloser = Main.playerTwo;\r\n\t\t\t}\r\n\t\t\tif (Utils.stringToInt(Main.player3Score) <= lowest) {\r\n\t\t\t\tlowest = Utils.stringToInt(Main.player3Score);\r\n\t\t\t\tloser = Main.playerThree;\r\n\t\t\t}\r\n\t\t\tif (Utils.stringToInt(Main.player4Score) <= lowest) {\r\n\t\t\t\tlowest = Utils.stringToInt(Main.player4Score);\r\n\t\t\t\tloser = Main.playerFour;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn loser;\r\n\t}", "public int losses(String team) {\n validate(team);\n int t = st.get(team);\n return matTeam[t][2];\n }", "public LinkedList<SoccerTeam> getTeams() {\n return this.teams;\n }", "public static void displayTeams(Team t)\n {\n String teams = t.name + \":\\n\" + t + \"\\n\";\n teams += \"\\n\" + t.enemyTeam.name + \":\\n\" + t.enemyTeam + \"\\n\";\n teams += \"\\nSelect OK when you are ready to choose a Fighter.\";\n JOptionPane.showMessageDialog(null, teams);\n }", "@Override\n // report number of players on a given team (or all players, if null)\n\tpublic int numPlayers(String teamName) {\n\n int numPlayers = 0;\n\n\n if (teamName == null) {\n\n for (int i = 0; i < (stats.keySet()).toArray().length; i++) {\n\n numPlayers++;\n\n }\n\n return numPlayers;\n\n }\n\n else {\n\n Collection<SoccerPlayer> soccerPlayers = stats.values();\n\n for (SoccerPlayer sp: soccerPlayers) {\n\n if (sp.getTeamName().equals(teamName)){\n\n numPlayers++;\n }\n }\n\n return numPlayers;\n\n }\n\n\n\t}", "public String getTeamNameById(int id) {\n\t\tString t = \"\";\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString teamByIdRecords_sql = \"SELECT name FROM \" + team_table + \" WHERE id='\" + id + \"'\";\n\t\tconnection = connector.getConnection();\n\t\ttry {\n\t\t\tstatement = connection.prepareStatement(teamByIdRecords_sql);\n\t\t\trs = statement.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tt = rs.getString(1);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn t;\n\t}", "public abstract ArrayList<String> getPlayer(int gameId) throws SQLException;", "public int wins(String team) {\n validateTeam_(team);\n TeamRecord_ teamRecord = teamsRecord_.get(team);\n validateTeamRecord_(teamRecord);\n return teamRecord.numberOfWins_;\n }", "public Team getTeam() {\n return team;\n }", "@Test\r\n\tpublic void findAllGames() {\r\n\t\t// DO: JUnit - Populate test inputs for operation: findAllGames \r\n\t\tInteger startResult = 0;\r\n\t\tInteger maxRows = 0;\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tList<Game> response = null;\r\n\t\tTswacct tswacct = null;\r\n\t\tresponse = service.findAllGames4tsw(tswacct, startResult, maxRows);\r\n\t\t// DO: JUnit - Add assertions to test outputs of operation: findAllGames\r\n\t}", "public Team getTeam1 () {\n return team1;\n }", "public int losses(String team) {\n if (!nameToId.containsKey(team)) {\n throw new IllegalArgumentException();\n }\n\n return losses[nameToId.get(team)];\n }", "Team findById(Long id);", "public String getTeam() {\r\n\t\treturn Team;\r\n\t}", "private static Team getTeam(Connection con,Long teamId) {\n\n Team team = null;\n\n String query = SQLConstants.GET_TEAM_BY_TEAM_ID;\n\n try {\n team = new Team();\n //Connection con = JdbcConnection.getConnection();\n PreparedStatement pstmt = con.prepareStatement(query);\n pstmt.setLong(1, teamId);\n\n ResultSet rs = pstmt.executeQuery();\n\n while (rs.next()) {\n team.setId(rs.getLong(\"id\"));\n team.setName(rs.getString(\"name\"));\n team.setDescribe(rs.getString(\"describe\"));\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return team;\n\n }", "private String getWinner() {\n\t\treturn winner;\n\t}", "@Override\n public List<Team> getTeamsOfUser(int userid){\n\t\tfinal String select_teams_of_user = \"SELECT * FROM Team WHERE userid = ?\";\n\t\tList<Team> teams = jdbc.query(select_teams_of_user, new TeamMapper(), userid);\n\t\taddUsertoTeams(teams);\n\t\treturn teams;\n\t}", "public SoccerTeam getWinner() {\n SoccerTeam winner = null;\n\n if (this.scoreOne > this.scoreTwo) {\n winner = this.teamOne;\n }\n else if (this.scoreOne < this.scoreTwo) {\n winner = this.teamTwo;\n }\n\n return winner;\n }", "public static ArrayList<Team> findTeamProject() throws DALException {\n\t\t\tConnection cnx = null;\n\t\t\tPreparedStatement pstmt = null;\n\t\t\tResultSet rs = null;\n\t\t\tArrayList<Team> listTeams = new ArrayList<>();\n\n\t\t\ttry {\n\t\t\t\t// Connection DB\n\t\t\t\tcnx = DBConnection.connect();\n\t\t\t\tpstmt = cnx.prepareStatement(LIST_TEAMS_PROJECTS);\n\t\t\t\trs = pstmt.executeQuery();\n\n\t\t\t\t// For each team\n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\tTeam team = new Team();\n\t\t\t\t\tteam.setIdTeam(rs.getInt(\"Teams_IdTeams\"));\n\t\t\t\t\tteam.setName(rs.getString(\"Teams_name\"));\n\t\t\t\t\tteam.setIdProject(rs.getInt(\"idProjects\"));\n\t\t\t\t\tteam.setNameProject(rs.getString(\"nameProject\"));\n\t\t\t\t\tlistTeams.add(team);\n\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\n\t\t\t\tthrow new DALException(\"Problem - listTeamHisProject - TeamDAO - Request : \"+ pstmt+ \" \" + e.getMessage());\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (rs != null)\n\t\t\t\t\t\trs.close();\n\t\t\t\t\tif (pstmt != null)\n\t\t\t\t\t\tpstmt.close();\n\t\t\t\t\tif (cnx != null)\n\t\t\t\t\t\tcnx.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\tthrow new DALException(\"Problem - Closing connection - \" + e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn listTeams;\n\n\t\t}", "public String getWinner() {\n return winner;\n }", "public String getWinnerName(String state) {\r\n \r\n result = table.get(state);\r\n String winner = result.get(1); // getting name of winner from array list and storing it\r\n \r\n return winner;\r\n }", "public Team get(Long id);", "private void getPlayerList(){\r\n\r\n PlayerDAO playerDAO = new PlayerDAO(Statistics.this);\r\n players = playerDAO.readListofPlayerNameswDefaultFirst();\r\n\r\n }" ]
[ "0.68279374", "0.6628758", "0.64461803", "0.64180326", "0.6360387", "0.6359614", "0.63321656", "0.6252729", "0.6241171", "0.62134856", "0.62011933", "0.6137459", "0.61249834", "0.6101", "0.60911745", "0.6088355", "0.60843056", "0.6072123", "0.60719466", "0.6071452", "0.6042772", "0.6018015", "0.60093284", "0.5991556", "0.59901327", "0.59697855", "0.5964732", "0.59444505", "0.59423965", "0.5939491", "0.5926682", "0.59187514", "0.5906061", "0.59001523", "0.5883145", "0.5878188", "0.5872732", "0.5863979", "0.586368", "0.58157116", "0.58140665", "0.58128977", "0.5809252", "0.5809022", "0.5805335", "0.5797294", "0.5796229", "0.5782016", "0.577733", "0.5773785", "0.5771818", "0.57547474", "0.5740579", "0.57392675", "0.57374996", "0.5709295", "0.5705169", "0.5704179", "0.57035387", "0.5699539", "0.5692654", "0.5691142", "0.5678391", "0.5674763", "0.5672138", "0.56602937", "0.56554693", "0.5639892", "0.5633906", "0.5621995", "0.5620202", "0.5617425", "0.5614434", "0.5613861", "0.56099415", "0.5570703", "0.55701506", "0.5569017", "0.55529106", "0.55511844", "0.5550355", "0.5547546", "0.55436945", "0.55406994", "0.55393136", "0.5538315", "0.55380106", "0.5528372", "0.55264163", "0.5515007", "0.55143005", "0.551077", "0.5510167", "0.5507141", "0.5505641", "0.55052173", "0.5504659", "0.5476661", "0.54756814", "0.5468772" ]
0.68263197
1
TODO Autogenerated method stub
@Override public void run() { while (true) { try { String text = broadcastTexts.take(); for (int i = 0; i < 2; i++) { switch (text.substring(0, 1).hashCode()) { case 65: createMediaPlayForSound(R.raw.a).start(); break; case 66: createMediaPlayForSound(R.raw.b).start(); break; case 67: createMediaPlayForSound(R.raw.c).start(); break; case 68: createMediaPlayForSound(R.raw.d).start(); break; case 69: createMediaPlayForSound(R.raw.e).start(); break; case 70: createMediaPlayForSound(R.raw.f).start(); break; case 71: createMediaPlayForSound(R.raw.g).start(); break; case 72: createMediaPlayForSound(R.raw.h).start(); break; case 73: createMediaPlayForSound(R.raw.i).start(); break; default: break; } Thread.sleep(300); for (char b : text.substring(1, text.length()).toCharArray()) { switch (b) { case 48: createMediaPlayForSound(R.raw.n0).start(); break; case 49: createMediaPlayForSound(R.raw.n1).start(); break; case 50: createMediaPlayForSound(R.raw.n2).start(); break; case 51: createMediaPlayForSound(R.raw.n3).start(); break; case 52: createMediaPlayForSound(R.raw.n4).start(); break; case 53: createMediaPlayForSound(R.raw.n5).start(); break; case 54: createMediaPlayForSound(R.raw.n6).start(); break; case 55: createMediaPlayForSound(R.raw.n7).start(); break; case 56: createMediaPlayForSound(R.raw.n8).start(); break; case 57: createMediaPlayForSound(R.raw.n9).start(); break; } Thread.sleep(300); } createMediaPlayForSound(R.raw.end).start(); Thread.sleep(1000); } } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub6
private void initTab() { linearLayoutCookingMethod = (AdvancedPagerSlidingTabStrip) findViewById(R.id.linearLayoutCookingMethod); mViewPager = (ViewPager) findViewById(R.id.viewPager_main_activity); if (mFragments != null) mFragments.clear(); else mFragments = new ArrayList<>(); for (int i = 0; i < SanyiSDK.rest.queues.size(); i++) { FragmentTable fragmentTable = new FragmentTable(); fragmentTable.setQueueId(i); mFragments.add(fragmentTable); } historyFragment = new FragmentHistory(); mFragments.add(historyFragment); myPagerAdapter = new PagerAdapter(getSupportFragmentManager(), mFragments); mViewPager.setAdapter(myPagerAdapter); mViewPager.setOffscreenPageLimit(SanyiSDK.rest.queues.size()); //SanyiSDK.rest.queues.size()这个的值不包含历史队伍 mViewPager.addOnPageChangeListener(new ViewPager.OnPageChangeListener() { @Override public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { } //每次滑动viewpager都要请求一次数据 @Override public void onPageSelected(int position) { queryTicket(); } @Override public void onPageScrollStateChanged(int state) { } }); linearLayoutCookingMethod.setViewPager(mViewPager); linearLayoutCookingMethod.setOnPageChangeListener(new ViewPager.OnPageChangeListener() { @Override public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { } @Override public void onPageSelected(int position) { // if (position < mFragments.size() - 1) { // ((FragmentTable) mFragments.get(position)).refresh(); // } else { // ((FragmentHistory) mFragments.get(position)).refresh(); // } } @Override public void onPageScrollStateChanged(int state) { } }); }
{ "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\n\tpublic void anular() {\n\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void gravarBd() {\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 rozmnozovat() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "public void mo38117a() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n protected void getExras() {\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 }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "protected void mo6255a() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public void mo55254a() {\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "public void mo4359a() {\n }", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo6081a() {\n }", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "private stendhal() {\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}", "@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 initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "public void mo3376r() {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public void mo1531a() {\n }", "@Override\n protected void prot() {\n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "public void mo9848a() {\n }", "protected boolean func_70814_o() { return true; }", "public void gored() {\n\t\t\n\t}", "public void mo21793R() {\n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "public void mo12930a() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\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 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 public void init() {\n\n }", "@Override\n public void memoria() {\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\tprotected void lazyLoad() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo12628c() {\n }", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}" ]
[ "0.6793389", "0.66927624", "0.6656138", "0.65739644", "0.6572455", "0.6554804", "0.64453214", "0.64343405", "0.6406329", "0.63769", "0.63690484", "0.63515097", "0.63515097", "0.6326063", "0.6318276", "0.63178307", "0.63083535", "0.6303116", "0.62730414", "0.6237185", "0.62304014", "0.6188845", "0.6184827", "0.6155368", "0.61450565", "0.61313665", "0.61313665", "0.6129014", "0.61119473", "0.60908127", "0.60908127", "0.60908127", "0.60908127", "0.60908127", "0.60908127", "0.60908127", "0.60808265", "0.6073763", "0.60718656", "0.60595876", "0.6052317", "0.6046989", "0.603888", "0.6036095", "0.60350925", "0.6026681", "0.6024914", "0.60098636", "0.60042506", "0.598972", "0.598608", "0.5979353", "0.5977362", "0.5971558", "0.5967945", "0.5967945", "0.5967945", "0.5967945", "0.5967945", "0.5967945", "0.5955304", "0.5955304", "0.59459597", "0.5943983", "0.5943547", "0.59335023", "0.59149575", "0.5914646", "0.59141445", "0.5913334", "0.5913334", "0.59113556", "0.5903409", "0.5895186", "0.58925265", "0.58877426", "0.5882119", "0.5879869", "0.5874202", "0.5864317", "0.58634967", "0.58631635", "0.5855465", "0.5853848", "0.5853848", "0.58531505", "0.58531505", "0.58531505", "0.5848849", "0.58415735", "0.5839689", "0.5839689", "0.5839689", "0.5839689", "0.5839689", "0.5835215", "0.58293736", "0.58270544", "0.5824481", "0.5824481", "0.5824481" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { Restaurant.usbDriver.setUsingPrinter(allPrinters.get(position)); printDialog.dismiss(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override protected void onDestroy() { super.onDestroy(); unregisterReceiver(myReceiver); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override protected void onResume() { super.onResume(); // queryTicket(); // timer = new Timer(); // timer.schedule(new TimerTask() { // // @Override // public void run() { // // TODO Auto-generated method stub // handler.sendEmptyMessage(1); // } // }, 0, 2000); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override protected void onPause() { super.onPause(); // timer.cancel(); }
{ "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
Use this factory method to create a new instance of this fragment using the provided parameters.
public static WalletInfoDetailFragment newInstance(String param1, String param2) { WalletInfoDetailFragment fragment = new WalletInfoDetailFragment(); Bundle args = new Bundle(); args.putString(ARG_PARAM1, param1); args.putString(ARG_PARAM2, param2); fragment.setArguments(args); return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "protected abstract Fragment createFragment();", "public void createFragment() {\n\n }", "@Override\n protected Fragment createFragment() {\n Intent intent = getIntent();\n\n long id = intent.getLongExtra(MovieDetailFragment.EXTRA_ID, -1);\n return MovieDetailFragment.newInstance(id);\n }", "public CuartoFragment() {\n }", "public StintFragment() {\n }", "public ExploreFragment() {\n\n }", "public RickAndMortyFragment() {\n }", "public FragmentMy() {\n }", "public LogFragment() {\n }", "public FeedFragment() {\n }", "public HistoryFragment() {\n }", "public HistoryFragment() {\n }", "public static MyFeedFragment newInstance() {\n return new MyFeedFragment();\n }", "public WkfFragment() {\n }", "public static ScheduleFragment newInstance() {\n ScheduleFragment fragment = new ScheduleFragment();\n Bundle args = new Bundle();\n //args.putString(ARG_PARAM1, param1);\n //args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public ProfileFragment(){}", "public WelcomeFragment() {}", "public static ForumFragment newInstance() {\n ForumFragment fragment = new ForumFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n\n return fragment;\n }", "public static NotificationFragment newInstance() {\n NotificationFragment fragment = new NotificationFragment();\n Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public progFragment() {\n }", "public HeaderFragment() {}", "public static RouteFragment newInstance() {\n RouteFragment fragment = new RouteFragment();\n Bundle args = new Bundle();\n //fragment.setArguments(args);\n return fragment;\n }", "public EmployeeFragment() {\n }", "public Fragment_Tutorial() {}", "public NewShopFragment() {\n }", "public FavoriteFragment() {\n }", "public static MyCourseFragment newInstance() {\n MyCourseFragment fragment = new MyCourseFragment();\r\n// fragment.setArguments(args);\r\n return fragment;\r\n }", "public static MessageFragment newInstance() {\n MessageFragment fragment = new MessageFragment();\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }", "public static ReservationFragment newInstance() {\n\n ReservationFragment _fragment = new ReservationFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return _fragment;\n }", "public CreateEventFragment() {\n // Required empty public constructor\n }", "public static RecipeListFragment newInstance() {\n RecipeListFragment fragment = new RecipeListFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return fragment;\n }", "public static Fragment newInstance() {\n\t\treturn new ScreenSlidePageFragment();\n\t}", "public NoteActivityFragment() {\n }", "public static WeekViewFragment newInstance(int param1, int param2) {\n WeekViewFragment fragment = new WeekViewFragment();\n //WeekViewFragment 객체 생성\n Bundle args = new Bundle();\n //Bundle 객체 생성\n args.putInt(ARG_PARAM1, param1);\n //ARG_PARAM1에 param1의 정수값 넣어서 args에 저장\n args.putInt(ARG_PARAM2, param2);\n //ARG_PARAM2에 param2의 정수값 넣어서 args에 저장\n fragment.setArguments(args);\n //args를 매개변수로 한 setArguments() 메소드 수행하여 fragment에 저장\n return fragment; //fragment 반환\n }", "public static Fragment0 newInstance(String param1, String param2) {\n Fragment0 fragment = new Fragment0();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static QueenBEmbassyF newInstance() {\n QueenBEmbassyF fragment = new QueenBEmbassyF();\n //the way to pass arguments between fragments\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }", "public static Fragment newInstance() {\n StatisticsFragment fragment = new StatisticsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public EventHistoryFragment() {\n\t}", "public HomeFragment() {}", "public PeopleFragment() {\n // Required empty public constructor\n }", "public static FeedFragment newInstance() {\n FeedFragment fragment = new FeedFragment();\n return fragment;\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public VantaggiFragment() {\n // Required empty public constructor\n }", "public AddressDetailFragment() {\n }", "public ArticleDetailFragment() { }", "public static DropboxMainFrag newInstance() {\n DropboxMainFrag fragment = new DropboxMainFrag();\n // set arguments in Bundle\n return fragment;\n }", "public RegisterFragment() {\n }", "public EmailFragment() {\n }", "public static CommentFragment newInstance() {\n CommentFragment fragment = new CommentFragment();\n\n return fragment;\n }", "public static FragmentComida newInstance(String param1) {\n FragmentComida fragment = new FragmentComida();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n\n\n }", "public static ParqueosFragment newInstance() {\n ParqueosFragment fragment = new ParqueosFragment();\n return fragment;\n }", "public ForecastFragment() {\n }", "public FExDetailFragment() {\n \t}", "public static AddressFragment newInstance(String param1) {\n AddressFragment fragment = new AddressFragment();\n\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n\n return fragment;\n }", "public TripNoteFragment() {\n }", "public ItemFragment() {\n }", "public NoteListFragment() {\n }", "public CreatePatientFragment() {\n\n }", "public DisplayFragment() {\n\n }", "public static frag4_viewcompliment newInstance(String param1, String param2) {\r\n frag4_viewcompliment fragment = new frag4_viewcompliment();\r\n Bundle args = new Bundle();\r\n args.putString(ARG_PARAM1, param1);\r\n args.putString(ARG_PARAM2, param2);\r\n fragment.setArguments(args);\r\n return fragment;\r\n }", "public static fragment_profile newInstance(String param1, String param2) {\n fragment_profile fragment = new fragment_profile();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "@Override\n\tprotected Fragment createFragment() {\n\t\treturn new FormFragment();\n\t}", "public static MainFragment newInstance() {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public ProfileFragment() {\n\n }", "public BackEndFragment() {\n }", "public CustomerFragment() {\n }", "public static FriendsFragment newInstance(int sectionNumber) {\n \tFriendsFragment fragment = new FriendsFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "public ArticleDetailFragment() {\n }", "public ArticleDetailFragment() {\n }", "public ArticleDetailFragment() {\n }", "public static Fragment newInstance() {\n return new SettingsFragment();\n }", "public SummaryFragment newInstance()\n {\n return new SummaryFragment();\n }", "public PeersFragment() {\n }", "public TagsFragment() {\n }", "public static ProfileFragment newInstance() {\n ProfileFragment fragment = new ProfileFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, \"\");\n args.putString(ARG_PARAM2, \"\");\n fragment.setArguments(args);\n return fragment;\n }", "public static FriendsFragment newInstance() {\n FriendsFragment fragment = new FriendsFragment();\n\n return fragment;\n }", "public HomeSectionFragment() {\n\t}", "public static FirstFragment newInstance(String text) {\n\n FirstFragment f = new FirstFragment();\n Bundle b = new Bundle();\n b.putString(\"msg\", text);\n\n f.setArguments(b);\n\n return f;\n }", "public PersonDetailFragment() {\r\n }", "public static LogFragment newInstance(Bundle params) {\n LogFragment fragment = new LogFragment();\n fragment.setArguments(params);\n return fragment;\n }", "public RegisterFragment() {\n // Required empty public constructor\n }", "public VehicleFragment() {\r\n }", "public static Fine newInstance(String param1, String param2) {\n Fine fragment = new Fine();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static FriendsFragment newInstance(String param1, String param2) {\n FriendsFragment fragment = new FriendsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public static ChangesViewFragment newInstance() {\n\t\tChangesViewFragment fragment = new ChangesViewFragment();\n\t\tBundle args = new Bundle();\n\t\targs.putInt(HomeViewActivity.ARG_SECTION_NUMBER, 2);\n\t\tfragment.setArguments(args);\n\t\treturn fragment;\n\t}", "public static NoteFragment newInstance(String param1, String param2) {\n NoteFragment fragment = new NoteFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MainFragment newInstance(Context context) {\n MainFragment fragment = new MainFragment();\n if(context != null)\n fragment.setVariables(context);\n return fragment;\n }", "@Override\n\tprotected Fragment createFragment() {\n\t\treturn new CrimeListFragment();\n\t}", "public static MoneyLogFragment newInstance() {\n MoneyLogFragment fragment = new MoneyLogFragment();\n return fragment;\n }", "public static ForecastFragment newInstance() {\n\n //Create new fragment\n ForecastFragment frag = new ForecastFragment();\n return(frag);\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MyTaskFragment newInstance(String param1) {\n MyTaskFragment fragment = new MyTaskFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n }", "public static MyProfileFragment newInstance(String param1, String param2) {\n MyProfileFragment fragment = new MyProfileFragment();\n return fragment;\n }", "public static MainFragment newInstance(int param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_PARAM1, param1);\n\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public PlaylistFragment() {\n }", "public static HistoryFragment newInstance() {\n HistoryFragment fragment = new HistoryFragment();\n return fragment;\n }", "public static SurvivorIncidentFormFragment newInstance(String param1, String param2) {\n// SurvivorIncidentFormFragment fragment = new SurvivorIncidentFormFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n// return fragment;\n\n SurvivorIncidentFormFragment fragment = new SurvivorIncidentFormFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n\n\n }", "public static PersonalFragment newInstance(String param1, String param2) {\n PersonalFragment fragment = new PersonalFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }" ]
[ "0.7259329", "0.72331375", "0.71140355", "0.69909847", "0.69902235", "0.6834592", "0.683074", "0.68134046", "0.6801526", "0.6801054", "0.67653185", "0.6739714", "0.6739714", "0.6727412", "0.6717231", "0.6705855", "0.6692112", "0.6691661", "0.66869426", "0.66606814", "0.6646188", "0.66410166", "0.6640725", "0.6634425", "0.66188246", "0.66140765", "0.6608169", "0.66045964", "0.65977716", "0.6592119", "0.659137", "0.65910816", "0.65830594", "0.65786606", "0.6562876", "0.65607685", "0.6557126", "0.65513307", "0.65510213", "0.65431285", "0.6540448", "0.65336084", "0.6532555", "0.6528302", "0.6524409", "0.652328", "0.6523149", "0.6516528", "0.65049976", "0.6497274", "0.6497235", "0.64949715", "0.64944136", "0.6484968", "0.6484214", "0.64805835", "0.64784926", "0.64755154", "0.64710265", "0.6466466", "0.6457089", "0.645606", "0.6454554", "0.6452161", "0.64520335", "0.6450325", "0.64488834", "0.6446765", "0.64430225", "0.64430225", "0.64430225", "0.64420956", "0.6441306", "0.64411277", "0.6438451", "0.64345145", "0.64289486", "0.64287597", "0.6423755", "0.64193285", "0.6418699", "0.6414679", "0.6412867", "0.6402168", "0.6400724", "0.6395624", "0.6395109", "0.6391252", "0.63891554", "0.63835025", "0.63788056", "0.63751805", "0.63751805", "0.63751805", "0.6374796", "0.63653135", "0.6364529", "0.6360922", "0.63538784", "0.6351111", "0.635067" ]
0.0
-1
List list = viewModel.homeUseCase.makeCertificateList();
public void setAdapter() { binding.RvwalletAmount.setLayoutManager(new GridLayoutManager(getActivity(), 2)); binding.RvwalletAmount.setHasFixedSize(true); WalletAdapter kyCuploadAdapter = new WalletAdapter(getActivity(), getListWallet(), this); binding.RvwalletAmount.setAdapter(kyCuploadAdapter); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<ListObject> getSupplimentalCodeList();", "public ArrayList <Course> getCourseList ()\n\n {\n\n // Returns courseList when called.\n return courseList;\n\n }", "public ArrayList getCourses();", "java.util.List<liubaninc.m0.pki.CertificateOuterClass.Certificate> \n getCertificateList();", "LiveData<WalletDataDecl.ListResultTmpl<Response>> results();", "Observable<AttestationProviderListResult> listAsync();", "public List<WTask> getTaskList(){return taskList;}", "ObservableList<Card> getCardList();", "public ArrayList makeStudentList() {\r\n ArrayList<String> studenter = new ArrayList();\r\n Student student = new Student();\r\n \r\n \r\n \r\n return studenter;\r\n}", "void selectList(ShoppingList _ShoppingList);", "ObservableList<Flashcard> getFlashcardList();", "public List<TempWTask> getTaskList(){return taskList;}", "protected List getList() {\n/* 88 */ return (List)getCollection();\n/* */ }", "private void getCourseList(){\r\n\r\n CourseDAO courseDAO = new CourseDAO(Statistics.this);\r\n List<Course> courseList= courseDAO.readListofCourses();\r\n for(Course course: courseList) {\r\n courses.add(course.getName());\r\n }\r\n\r\n }", "public OrderListController() {\n selectedOrderList = new ArrayList();\n }", "public ContactList()\n {\n myList = new ArrayList<>();\n }", "public interface ApartmentListView extends BaseView{\n void getDataSuccess(List<ApartmentListModel> list);\n}", "List<SchoolMasterVo> getSchoolMasterVoList();", "abstract void makeList();", "public void getShowRecord(List<MentalShowStruct> list) {\n/* 55 */ this.component.getRevertShowList(list);\n/* */ }", "void list()\n\t{\n\t\toperation.list();\n\t\t\n\t}", "Object getTolist();", "List<String> mo5876c();", "public List<New> list();", "List<Goods> getGoodsList();", "@Override\n public List<Programador> list() {\n return memoryDataBank;//To change body of generated methods, choose Tools | Templates.\n }", "public void populateList() {\n }", "public interface IContactAddView extends IBaseView {\n\n void showApplyVoList(List<ApplyVo> applyVoList);\n\n}", "private void CreateStudentList() {\r\n\t\tStudentList=new ArrayList<Student>();\t\r\n}", "public List<CustomerModel> getCustomers();", "public void ouvrirListe(){\n\t\n}", "public ArrayList<Concert> getConcertList(){\n return concertList;\n }", "public List<Product> list();", "public interface ReportListViewModel {\n\n void setReportsList(List<SFReportsModel> reports);\n\n}", "public ObjectList getList(){\n return payroll;\n }", "List<C1111j> mo5868a();", "public void populatePalicoWeaponList()\r\n\t{\r\n\t\tpalicoWeapons = FXCollections.observableArrayList();\r\n\t\tselect(\"SELECT * FROM Palico_Weapon\");\r\n\t}", "List<Product> getProductsList();", "public void populateListView() {\n\n\n }", "public List<Person> getPersonList(){\n return personList;\n }", "public interface ListFrgView extends BaseView {\n void getDpSuccess(List<Map<String, Object>> testModel);\n}", "public List<Prescription> getPrescription(){\n return prescriptions;\n }", "public UserList list();", "public List<Card> list();", "java.util.List<cb.Careerbuilder.Company.PhoneNumber> \n getPhoneList();", "public String productList(ProductDetails p);", "@Override\n public List<Customer> listAll() {\n\n\n Customer c1 = new Customer();\n Customer c2 = new Customer();\n Customer c3 = new Customer();\n\n List<Customer> list = new ArrayList<>();\n list.add(c1);\n list.add(c2);\n list.add(c3);\n\n System.out.println(\"demo\");\n System.out.println(\"Entering test\");\n\n return list;\n }", "private static void getListTest() {\n\t\tList<CartVo> list=new CartDao().getList();\r\n\t\t\r\n\t\tfor(CartVo cartVo : list) {\r\n\t\t\tSystem.out.println(cartVo);\r\n\t\t}\r\n\t}", "ObservableList<Attraction> getAttractionList();", "public void definirObjetos(ObservableList<ListaCompras> lista){\n this.data=lista;\n }", "public ObservableList<Company> LoadCombo() {\n ObservableList<Company> _list = FXCollections.observableArrayList();\n _list.add(new Company(\"20428776110\", \"ICR PERU\"));\n _list.add(new Company(\"20555029277\", \"ICR INSTALACIONES\"));\n return _list;\n }", "public ArrayList <Students> getStudentList ()\n\n {\n\n // Returns studentList when called.\n return studentList;\n\n }", "private List<SimpleComponent> list() {\n\t\treturn this.list(null);\n\t}", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "List<Product> list();", "public List<Pojo.OneWord> getOneWord(){ \n List<Pojo.OneWord> list=new ArrayList<Pojo.OneWord>(); \n list=template.loadAll(Pojo.OneWord.class); \n return list; \n}", "public List getList();", "Object getCclist();", "public ObservableList<Product> getProduct(){\n ObservableList<Product> products = FXCollections.observableArrayList();\n products.add(new Product(\"Laptop\", 859.00, 20));\n products.add(new Product(\"Bouncy Ball\", 2.49, 198));\n products.add(new Product(\"Toilet\", 99.00, 74));\n products.add(new Product(\"The Notebook DVD\", 19.99, 12));\n products.add(new Product(\"Corn\", 1.49, 856));\n return products;\n }", "void testCanGetList();", "public List getCoursesToSelect() {\n return coursesToSelect;\n }", "public interface CertificateOfBirthDataListView extends LoadDataView {\n\n /**\n * Render a certificate of birth list in the UI.\n *\n * @param dataModels The collection of {@link CertificateOfBirthDataModel} that will be shown.\n */\n void renderCertificateOfBirthList(Collection<CertificateOfBirthDataModel> dataModels);\n\n /**\n * View a {@link CertificateOfBirthDataModel} profile/details.\n *\n * @param model The user that will be shown.\n */\n void viewCertificateOfBirth(CertificateOfBirthDataModel model);\n\n}", "private List getList() {\n if(itemsList == null) {\n itemsList = new ArrayList<>();\n }\n return itemsList;\n }", "public static List<Course> createCourseList() {\n List<Course> courses = new ArrayList<Course>();\n courses.add(createCourse(\"12345\"));\n courses.add(createCourse(\"67890\"));\n return courses;\n }", "@Test\n public void testGetListItems() {\n System.out.println(\"getListItems\");\n DataModel instance = new DataModel();\n List expResult = null;\n List result = instance.getListItems();\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 List<EmployeeDetails> getEmployeeDetails();", "public List<People> getPeople();", "public interface SubjectView {\n\n void getSubjects(List<Subject> subjectList);\n void deleteSubject(int deletedCount);\n}", "ObservableList<Task> getTaskList();", "java.util.List<com.google.protobuf.ByteString> getCertificateList();", "@VTID(38)\n boolean getList();", "List<Customer> getCustomerList();", "ListItem createListItem();", "public List<TaskItemBean> getItemList(){\n return itemList;\n }", "List<Customer> getList();", "@GetMapping(\"/list\")\n\tpublic ModelAndView list() {\n\t\t\n\t\tLOGGER.info(\"Ingreso al metodo list\");\n\t\tModelAndView mav =new ModelAndView(Constant.COURSE_VIEW_COURSE);\n\t\tmav.addObject(\"listCourse\", courseService.getAll());\n\t\tmav.addObject(\"course\", new CourseDto());\n\n\t\treturn mav;\n\t\n\t\n\t}", "public List<Card> getVegasDeckCardList(){\n return vegasDeckCardList;\n }", "public List<Item> getItemList();", "public LazyDataModel<MotivoLlamadoAtencion> getListaMotivoLlamadoAtencion()\r\n/* 124: */ {\r\n/* 125:131 */ return this.listaMotivoLlamadoAtencion;\r\n/* 126: */ }", "private void listCourses() {\n Call<List<Course>> callListCourses = mService.listCourses(new HashMap<String, String>() {{\n put(\"wstoken\", mToken);\n put(\"wsfunction\", \"core_course_get_courses\");\n put(\"moodlewsrestformat\", \"json\");\n }});\n callListCourses.enqueue(new Callback<List<Course>>() {\n @Override\n public void onResponse(Call<List<Course>> call, Response<List<Course>> response) {\n List<Course> courses = response.body();\n mCourseAdapter.updateCourses(courses);\n }\n\n @Override\n public void onFailure(Call<List<Course>> call, Throwable t) {\n Log.e(\"ListCourses\", t.getMessage());\n }\n });\n }", "java.util.List<cb.Careerbuilder.Job> \n getJobsList();", "List<CaseLinkman> selectAll();", "public List<Product> getProducts();", "public List<Product> getProducts();", "public void setList() \n\t\t{\n\t\t\tVector<Course> items = client.ProfessorCourseList(prof.getID());\n\t\t\tmodel.removeAllElements();\n\t\t\tif(items == null)return;\n\t\t\tString s;\n\t\t\tfor(int i = 0; i < items.size(); i++)\n\t\t\t{\n\t\t\t\ts = items.get(i).getName();\n\t\t\t\tmodel.addElement(items.get(i));\n\t\t\t}\n\t\t}", "public List<Departmentdetails> getDepartmentDetails();", "public void listOrder()\r\n {o.listOrder();}", "public interface IViewKhuyenMai {\n void hienThiDanhSachKhuyenMai(List<KhuyenMai> khuyenMaiList);\n}", "@GetMapping(\"/listAll\")\n List<WebformMetabaseVO> getListWebforms();", "public interface TicketManageListView extends WrapView {\n\n\n void showTicketList(TicketManageListModel data);\n}", "public void loadAllLists(){\n }", "private ObservableList<String> fillComboBox() {\n\t\tObservableList<String> list = FXCollections.observableArrayList();\n\t\t\n\t\t/* Test Cases */\n\t\t\tlist.addAll(\"Item Code\", \"Description\");\n\t\t\n\t\treturn list;\n\t}", "java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();", "java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();", "java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();", "java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();", "public List<AlbumDTO> getAlbumList()\n/* */ {\n/* 90 */ return this.albumList;\n/* */ }", "ObservableList<Expense> getExpenseList();", "public void ShowInTeacherList(){\n \n for (TeacherBean tb : t_list) {\n this.t_model.addElement(tb); \n }\n}", "public ArrayList<Collectable> getItems(){\n return items;\n }" ]
[ "0.5945385", "0.5885619", "0.5835563", "0.5771763", "0.57708997", "0.57496583", "0.57451534", "0.57374644", "0.5706779", "0.5701421", "0.5698938", "0.56972617", "0.5687018", "0.56780684", "0.5676437", "0.5666167", "0.5643659", "0.56384766", "0.5636862", "0.56266826", "0.55920756", "0.5568048", "0.5559414", "0.55506706", "0.5539566", "0.5535387", "0.55333275", "0.5525515", "0.55192685", "0.55031854", "0.5502173", "0.54879606", "0.5478928", "0.54753655", "0.5454464", "0.5441492", "0.5437971", "0.5426419", "0.5425867", "0.54181176", "0.5414702", "0.5396453", "0.5383833", "0.53755057", "0.5371672", "0.5370237", "0.5367629", "0.53672045", "0.53650475", "0.53642786", "0.5358921", "0.5350627", "0.5345596", "0.53424674", "0.53424674", "0.5342321", "0.5339185", "0.5335224", "0.53332716", "0.5325775", "0.532201", "0.5316401", "0.53156143", "0.53148586", "0.5295909", "0.5295552", "0.5292695", "0.5270579", "0.5258526", "0.5256802", "0.5252494", "0.5243382", "0.52411276", "0.5237173", "0.52365977", "0.52356005", "0.52322716", "0.52230424", "0.5222067", "0.5221831", "0.52196664", "0.52073044", "0.5203432", "0.5202308", "0.5202308", "0.5198256", "0.519641", "0.5191026", "0.51903623", "0.5181732", "0.5179664", "0.5178403", "0.5175721", "0.5175403", "0.5175403", "0.5175403", "0.5175403", "0.5174979", "0.51722294", "0.51714253", "0.5168495" ]
0.0
-1
after crop image from gallery
@SuppressLint({"MissingPermission", "SetTextI18n"}) @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.user_area_activity); //-----------------Toolbar act as the action bar-------------------------------------------- toolbar = findViewById(R.id.toolbar); // Sets the Toolbar to act as the ActionBar for this Activity window. // Make sure the toolbar exists in the activity and is not null setSupportActionBar(toolbar); //----------------Device Serial Number------------------------------------------------------ btCameraDeviceSerial = findViewById(R.id.btCameraDeviceSerial); btDeviceSerialGallery = findViewById(R.id.btGallerySelect); ivDeviceSerialNumber = findViewById(R.id.IvDevice_serial_number); etDeviceSerialNumber = findViewById(R.id.etDeviceSerialNumber); tfDeviceSerialNumber = findViewById(R.id.tfDeviceSerialNumber); btBarCode = findViewById(R.id.btBarCode); //---------------Vehicle Plate Number------------------------------------------------------- etVehiclePlateNumber = findViewById(R.id.etVehiclePlateNumber); tfVehiclePlateNumber = findViewById(R.id.tfVehiclePlateNumber); //---------------Spinner Device Model------------------------------------------------------- spDeviceModel = findViewById(R.id.spDeviceModel); arrayDeviceType = new ArrayList<>(); getDeviceSpinner(); // To get all elements to spinner from database spDeviceModel.setOnItemSelectedListener(this); //--------------Vehicle Make and Model------------------------------------------------------ etVehicleMake = findViewById(R.id.etVehicleMake); etVehicleModel = findViewById(R.id.etVehicleModel); tfVehicleMake = findViewById(R.id.tfVehicleMake); tfVehicleModel = findViewById(R.id.tfVehicleModel); //--------Date and time--------------------------------------------------------------------- ivCustomDate = findViewById(R.id.ivCustomDate); tvSelectedDate = findViewById(R.id.tvSelectedDate); tvSelectedTime = findViewById(R.id.tvSelectedTime); cbDateTime = findViewById(R.id.cbDateTime); //--------Odometer number------------------------------------------------------------------- etOdometer = findViewById(R.id.etOdometer); tfOdometer = findViewById(R.id.tfOdometer); //---------Task type spinner---------------------------------------------------------------- spTaskType = findViewById(R.id.spTaskType); arrayTask = new ArrayList<>(); getTaskSpinner(); // To get all elements to spinner from database spTaskType.setOnItemSelectedListener(this); //--------Fleet ID-------------------------------------------------------------------------- etFleet = findViewById(R.id.etFleet); tfFleet = findViewById(R.id.tfFleet); //--------Company Name---------------------------------------------------------------------- spCustomer = findViewById(R.id.spCustomer); arrayCustomer = new ArrayList<>(); getCustomerSpinner(); // To get all elements to spinner from database spCustomer.setOnItemSelectedListener(this); //--------GPS Location---------------------------------------------------------------------- ivGPS = findViewById(R.id.ivGPS); //------To get technical id & name from login page while login------------------------------ Intent getIntent = getIntent(); id = getIntent.getIntExtra("tec ID", -1); name = getIntent.getStringExtra("name"); ActionBar actionBar = getSupportActionBar(); // To getActionBar(); if (actionBar != null) { actionBar.setTitle(name); } //----------Send Data Floating Action Button ----------------------------------------------- FABsend = findViewById(R.id.FABsend); //---------This thread to get time and date from system every sound------------------------- Thread t = new Thread() { @Override public void run() { try { while (!isInterrupted()) { Thread.sleep(1000); runOnUiThread(new Runnable() { @Override public void run() { long dateAndTime = System.currentTimeMillis(); // Get date and time in millis sound SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); // Set date format how it well display in text view SimpleDateFormat timeFormat = new SimpleDateFormat("kk:mm:ss"); // Set time format how it well display in text view String dateString = dateFormat.format(dateAndTime); // Set date format in string String timeString = timeFormat.format(dateAndTime); // Set time format in string appDate = dateString; appTime = timeString; //tvCurrentDate.setText(dateString); // Set date string in text view //tvCurrentTime.setText(timeString); // Set time string in text view //----------------------To refresh GPS every one sound-------------- locationManager = (LocationManager) getSystemService(LOCATION_SERVICE); locationListener = new LocationListener() { @SuppressLint({"SetTextI18n"}) @Override // To get latitude and longitude from GPS public void onLocationChanged(Location location) { if(location != null) { ivGPS.setImageResource(R.drawable.ic_gps_on); latitude = location.getLatitude(); longitude = location.getLongitude(); } else { ivGPS.setImageResource(R.drawable.ic_gps_off); } } @Override public void onStatusChanged(String provider, int status, Bundle extras) { } @Override public void onProviderEnabled(String provider) { } @Override // To open GPS setting when GPS in close in phone public void onProviderDisabled(String provider) { ivGPS.setImageResource(R.drawable.ic_gps_off); } }; if(locationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER)) { // To update GPS location ever 1000 millisecond when it move 0 distance locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 1000, 0, locationListener); } else { // To update GPS location ever 1000 millisecond when it move 0 distance locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1000, 0, locationListener); } } }); } } catch (InterruptedException e) { Toast.makeText(UserAreaActivity.this, "Error get time", Toast.LENGTH_LONG).show(); // If something waring happened } } }; t.start(); Day = 24*60*60*1000; // To count one day OneYears = (Day * 365); // To count one yeas => 365 is number of days in one year //-------------------Custom Date Button----------------------------------------------------- ivCustomDate.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Calendar date = Calendar.getInstance(); year = date.get(Calendar.YEAR); month = date.get(Calendar.MONTH); day = date.get(Calendar.DAY_OF_MONTH); DatePickerDialog datePickerDialog = new DatePickerDialog(UserAreaActivity.this, UserAreaActivity.this, year, month, day); datePickerDialog.getDatePicker().setMinDate(date.getTimeInMillis() - OneYears); datePickerDialog.getDatePicker().setMaxDate(date.getTimeInMillis()); datePickerDialog.show(); } }); //----------To hide and show current date or custom date------------------------------------ cbDateTime.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if(cbDateTime.isChecked()) { Toast.makeText(UserAreaActivity.this, "Current Date & Time", Toast.LENGTH_SHORT).show(); // To hide custom date button with selected date and time text view ivCustomDate.setVisibility(View.GONE); tvSelectedDate.setVisibility(View.GONE); tvSelectedTime.setVisibility(View.GONE); } else { Toast.makeText(UserAreaActivity.this, "Custom Date & Time", Toast.LENGTH_SHORT).show(); // To show custom date button with selected date and time text view ivCustomDate.setVisibility(View.VISIBLE); tvSelectedDate.setVisibility(View.VISIBLE); tvSelectedTime.setVisibility(View.VISIBLE); } } }); //-------------Camera button in device serial number---------------------------------------- btCameraDeviceSerial.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { invokeCameraSerialNumber(); } }); //---------------Gallery button in device serial number------------------------------------- btDeviceSerialGallery.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { selectImagesDeviceSerialNubmer(); } }); //-------------Barcode button in device serial number--------------------------------------- btBarCode.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent(UserAreaActivity.this, ScanActivity.class); startActivity(intent); } }); FABsend.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { progressDialog = new ProgressDialog(UserAreaActivity.this); progressDialog.setMessage("Loading..."); progressDialog.show(); hideKeyboard(UserAreaActivity.this); if(checkEmptyEditText(etDeviceSerialNumber, tfDeviceSerialNumber, "Empty Serial number !") && checkLengthDeviceSerialEditText(etDeviceSerialNumber, tfDeviceSerialNumber, "10 Digit only !") && checkEmptyEditText(etVehiclePlateNumber, tfVehiclePlateNumber, "Empty Vehicle plate !") && checkLengthPlateNumber(etVehiclePlateNumber, tfVehiclePlateNumber, "No more then 10 digit !") && checkEmptyEditText(etOdometer, tfOdometer, "Empty Odometer number !") && checkOdometerNumber(etOdometer,tfOdometer, "No more then 8 digit !") && checkEmptyEditText(etVehicleMake, tfVehicleMake, "Empty Vehicle make !") && checkEmptyEditText(etVehicleModel, tfVehicleModel, "Empty Vehicle model !") && checkVehicleModel(etVehicleModel, tfVehicleModel, "4 digit only !") && checkSpinner(TaskTypePostion, spTaskType,"Select Task Type !") && checkSpinner(DeviceModelPostion, spDeviceModel,"Select Device Model !") && checkSpinner(CustomerPostion, spCustomer, "Select Customer Name !") && checkGPS(latitude, longitude, "Refresh to get GPS location")) { String deviceSerialNumber = etDeviceSerialNumber.getText().toString(); String vehiclePlateNumber = etVehiclePlateNumber.getText().toString(); String odoMeter = etOdometer.getText().toString(); String vehicleMake = etVehicleMake.getText().toString(); int vehicleModel = Integer.parseInt(etVehicleModel.getText().toString()); String timeInSend, dataInSend, fleetId; if(etFleet.getText().toString().isEmpty()) // To check fleet id { fleetId = "null"; } else { fleetId = etFleet.getText().toString(); } if(cbDateTime.isChecked()) // To check current date or select date { Toast.makeText(UserAreaActivity.this, appDate + "--------" + appTime, Toast.LENGTH_LONG).show(); timeInSend = appTime; dataInSend = appDate; } else { Toast.makeText(UserAreaActivity.this, appSelectDate + "--------" + appSelectTime, Toast.LENGTH_LONG).show(); timeInSend = appSelectTime; dataInSend = appSelectDate; } Response.Listener<String> responseListener = new Response.Listener<String>() { @Override public void onResponse(String response) { try { JSONObject jsonResponse = new JSONObject(response); boolean success = jsonResponse.getBoolean("success"); if (success) { etDeviceSerialNumber.setText(""); // Empty spDeviceModel.setSelection(0); // set default selection etVehiclePlateNumber.setText(""); // Empty etOdometer.setText(""); // Empty etVehicleMake.setText(""); // Empty etVehicleModel.setText(""); // Empty etFleet.setText(""); // Empty Toast.makeText(UserAreaActivity.this, "OK !", Toast.LENGTH_LONG).show(); progressDialog.dismiss(); } else { Toast.makeText(UserAreaActivity.this, "Cannot Send ", Toast.LENGTH_LONG).show(); progressDialog.dismiss(); } } catch (JSONException e) { e.printStackTrace(); } } }; UserAreaRequest userAreaRequest = new UserAreaRequest(id, deviceSerialNumber,vehiclePlateNumber,CustomerPostion, odoMeter, fleetId, TaskTypePostion, DeviceModelPostion,vehicleMake,vehicleModel, latitude, longitude, dataInSend, timeInSend, responseListener); RequestQueue queue = Volley.newRequestQueue(UserAreaActivity.this); queue.add(userAreaRequest); Toast.makeText(UserAreaActivity.this, "Send", Toast.LENGTH_LONG).show(); } else { progressDialog.dismiss(); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void startCropImage() {\n }", "public void cropImage() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { // 마쉬멜로우 이상 버전일 때\n grantUriPermission(\"com.android.camera\", mImageCaptureUri,\n Intent.FLAG_GRANT_WRITE_URI_PERMISSION | Intent.FLAG_GRANT_READ_URI_PERMISSION);\n }\n Intent intent = new Intent(\"com.android.camera.action.CROP\");\n intent.setDataAndType(mImageCaptureUri, \"image/*\");\n\n List<ResolveInfo> list = getPackageManager().queryIntentActivities(intent, 0);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n grantUriPermission(list.get(0).activityInfo.packageName, mImageCaptureUri,\n Intent.FLAG_GRANT_WRITE_URI_PERMISSION | Intent.FLAG_GRANT_READ_URI_PERMISSION);\n }\n int size = list.size();\n if (size == 0) {\n Toast.makeText(ManualRegistActivity.this, \"취소 되었습니다.\", Toast.LENGTH_SHORT).show();\n return;\n } else {\n Toast.makeText(ManualRegistActivity.this, \"용량이 큰 사진의 경우 시간이 오래 걸릴 수 있습니다.\", Toast.LENGTH_SHORT).show();\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n intent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\n }\n intent.putExtra(\"crop\", \"true\");\n intent.putExtra(\"aspectX\", 1);\n intent.putExtra(\"aspectY\", 1);\n intent.putExtra(\"scale\", true);\n croppedFile = null;\n try {\n croppedFile = createImageFile();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n File folder = new File(Environment.getExternalStorageDirectory() + \"/BioCube/\");\n File tempFile = new File(folder.toString(), croppedFile.getName());\n\n mCurrentPhotoPath = tempFile.getAbsolutePath();\n mImageCaptureUri = FileProvider.getUriForFile(ManualRegistActivity.this,\n \"com.example.seongjun.biocube.provider\", tempFile);\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n intent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\n }\n\n intent.putExtra(\"return-data\", false);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, mImageCaptureUri);\n intent.putExtra(\"outputFormat\", Bitmap.CompressFormat.JPEG.toString());\n\n Intent i = new Intent(intent);\n ResolveInfo res = list.get(0);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n i.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n i.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\n\n grantUriPermission(res.activityInfo.packageName, mImageCaptureUri,\n Intent.FLAG_GRANT_WRITE_URI_PERMISSION | Intent.FLAG_GRANT_READ_URI_PERMISSION);\n }\n i.setComponent(new ComponentName(res.activityInfo.packageName, res.activityInfo.name));\n startActivityForResult(i, CROP_FROM_CAMERA);\n }\n }", "private void cropImage() {\n\t\t// Use existing crop activity.\n\t\tIntent intent = new Intent(\"com.android.camera.action.CROP\");\n\t\tintent.setDataAndType(mImageCaptureUri, IMAGE_UNSPECIFIED);\n\n\t\t// Specify image size\n\t\tintent.putExtra(\"outputX\", 100);\n\t\tintent.putExtra(\"outputY\", 100);\n\n\t\t// Specify aspect ratio, 1:1\n\t\tintent.putExtra(\"aspectX\", 1);\n\t\tintent.putExtra(\"aspectY\", 1);\n\t\tintent.putExtra(\"scale\", true);\n\t\tintent.putExtra(\"return-data\", true);\n\n\t\t// REQUEST_CODE_CROP_PHOTO is an integer tag you defined to\n\t\t// identify the activity in onActivityResult() when it returns\n\t\tstartActivityForResult(intent, REQUEST_CODE_CROP_PHOTO);\n\t}", "private void performCrop() {\n try {\r\n //call the standard crop action intent (the user device may not support it)\r\n Intent cropIntent = new Intent(\"com.android.camera.action.CROP\");\r\n //indicate image type and Uri\r\n cropIntent.setDataAndType(picUri, \"image/*\");\r\n //set crop properties\r\n cropIntent.putExtra(\"crop\", \"true\");\r\n //indicate aspect of desired crop\r\n// cropIntent.putExtra(\"aspectX\", 1);\r\n// cropIntent.putExtra(\"aspectY\", 1);\r\n //indicate output X and Y\r\n// cropIntent.putExtra(\"outputX\", 256);\r\n// cropIntent.putExtra(\"outputY\", 256);\r\n //retrieve data on return\r\n cropIntent.putExtra(\"return-data\", true);\r\n //start the activity - we handle returning li_history onActivityResult\r\n startActivityForResult(cropIntent, 2);\r\n }\r\n //respond to users whose devices do not support the crop action\r\n catch (ActivityNotFoundException anfe) {\r\n //display an error message\r\n String errorMessage = \"Whoops - your device doesn't support the crop action!\";\r\n Toast toast = Toast.makeText(this, errorMessage, Toast.LENGTH_SHORT);\r\n toast.show();\r\n }\r\n }", "public void cropImage() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {\n this.grantUriPermission(\"com.android.camera\", photoUri,\n Intent.FLAG_GRANT_WRITE_URI_PERMISSION | Intent.FLAG_GRANT_READ_URI_PERMISSION);\n }\n Intent intent = new Intent(\"com.android.camera.action.CROP\");\n intent.setDataAndType(photoUri, \"image/*\");\n\n List<ResolveInfo> list = getPackageManager().queryIntentActivities(intent, 0);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {\n grantUriPermission(list.get(0).activityInfo.packageName, photoUri,\n Intent.FLAG_GRANT_WRITE_URI_PERMISSION | Intent.FLAG_GRANT_READ_URI_PERMISSION);\n }\n int size = list.size();\n if (size == 0) {\n Toast.makeText(this, \"취소 되었습니다.\", Toast.LENGTH_SHORT).show();\n return;\n } else {\n// Toast.makeText(this, \"용량이 큰 사진의 경우 시간이 오래 걸릴 수 있습니다.\", Toast.LENGTH_SHORT).show();\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {\n intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n intent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\n }\n intent.putExtra(\"crop\", \"true\");\n// intent.putExtra(\"aspectX\", 3);\n// intent.putExtra(\"aspectY\", 4);\n intent.putExtra(\"scale\", true);\n File croppedFileName = null;\n try {\n croppedFileName = createImageFile();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n File folder = new File(Environment.getExternalStorageDirectory() + \"/Body_Img/\");\n File tempFile = new File(folder.toString(), croppedFileName.getName());\n\n photoUri = FileProvider.getUriForFile(Body_Img.this,\n \"com.example.a1013c.body_sns.provider\", tempFile);\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {\n intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n intent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\n }\n\n intent.putExtra(\"return-data\", false);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, photoUri);\n intent.putExtra(\"outputFormat\", Bitmap.CompressFormat.JPEG.toString());\n\n Intent i = new Intent(intent);\n ResolveInfo res = list.get(0);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {\n i.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n i.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\n\n grantUriPermission(res.activityInfo.packageName, photoUri,\n Intent.FLAG_GRANT_WRITE_URI_PERMISSION | Intent.FLAG_GRANT_READ_URI_PERMISSION);\n }\n i.setComponent(new ComponentName(res.activityInfo.packageName, res.activityInfo.name));\n startActivityForResult(i, CROP_FROM_CAMERA);\n }\n }", "@Override\n public void onCropWindowChanged() {\n Bitmap cropped = imageView.getCroppedImage();\n BitmapHelper.getInstance().setBitmap(cropped);\n bitmap=cropped;\n\n }", "private void performCrop(Uri img) {\n try {\r\n //call the standard crop action intent (the user device may not support it)\r\n Intent cropIntent = new Intent(\"com.android.camera.action.CROP\");\r\n //indicate image type and Uri\r\n cropIntent.setDataAndType(img, \"image/*\");\r\n //set crop properties\r\n cropIntent.putExtra(\"crop\", \"true\");\r\n //indicate aspect of desired crop\r\n // cropIntent.putExtra(\"aspectX\", 1);\r\n //cropIntent.putExtra(\"aspectY\", 1);\r\n //indicate output X and Y\r\n // cropIntent.putExtra(\"outputX\", 256);\r\n // cropIntent.putExtra(\"outputY\", 256);\r\n //retrieve data on return\r\n\r\n cropIntent.putExtra(\"return-data\", true);\r\n //start the activity - we handle returning in onActivityResult\r\n startActivityForResult(cropIntent, 2);\r\n }\r\n //respond to users whose devices do not support the crop action\r\n catch (ActivityNotFoundException anfe) {\r\n //display an error message\r\n String errorMessage = \"Whoops - your device doesn't support the crop action!\";\r\n Toast toast = Toast.makeText(this, errorMessage, Toast.LENGTH_SHORT);\r\n toast.show();\r\n }\r\n }", "protected void cropImage() {\n if (mOptions.noOutputImage) {\n setResult(null, null, 1);\n } else {\n Uri outputUri = getOutputUri();\n mCropImageView.saveCroppedImageAsync(\n outputUri,\n mOptions.outputCompressFormat,\n mOptions.outputCompressQuality,\n mOptions.outputRequestWidth,\n mOptions.outputRequestHeight,\n mOptions.outputRequestSizeOptions);\n }\n }", "private void handleCrop(int resultCode, Intent data) {\n if (resultCode == RESULT_OK) {\n Uri uri = Crop.getOutput(data);\n try {\n Bitmap bitmap = MediaStore.Images.Media.getBitmap(this.getContentResolver(), uri);\n mImageCaptureUri = uri;\n mImageView.setImageBitmap(bitmap);\n } catch (Exception e) {\n Log.d(TAG, e.getMessage());\n }\n\n } else if (resultCode == Crop.RESULT_ERROR) {\n Toast.makeText(this, Crop.getError(data).getMessage(), Toast.LENGTH_SHORT).show();\n }\n }", "private void handleCrop(int resultCode, Intent result) {\n if (resultCode == RESULT_OK) {\n try {\n Uri uri = Crop.getOutput(result);\n yourSelectedImage = MediaStore.Images.Media.getBitmap(this.getContentResolver(), Crop.getOutput(result));\n ivUserImage.setImageBitmap(yourSelectedImage);\n Uri tempUri = Util.getInstance().getImageUri(SignUp.this, yourSelectedImage);\n // createImageFromBitmap(yourSelectedImage);\n // tempFilePath = FileUtil.getPath(this,tempUri);\n tempFilePath = FileUtil.getPath(SignUp.this, tempUri);\n } catch (Exception e) {\n e.printStackTrace();\n }\n } else if (resultCode == Crop.RESULT_ERROR) {\n // Toast.makeText(this, Crop.getError(result).getMessage(), Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == CropImage.PICK_IMAGE_CHOOSER_REQUEST_CODE && resultCode == RESULT_OK) {\n Uri imageUri = CropImage.getPickImageResultUri(this, data);\n// startCropImageActivity(AsyncBlackBackgrImage.createBackground(context, imageUri));\n startCropImageActivity(imageUri);\n }\n\n if ((requestCode == GALLERY_INTENT || requestCode == CAMERA_INTENT) && resultCode == RESULT_OK) {\n Uri imageUri = CropImage.getPickImageResultUri(context, data);\n Log.d(getLocalClassName() + \"pick image\", imageUri.toString());\n\n// startCropImageActivity(AsyncBlackBackgrImage.createBackground(context, imageUri));\n startCropImageActivity(imageUri);\n }\n\n if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) {\n CropImage.ActivityResult result = CropImage.getActivityResult(data);\n if (resultCode == RESULT_OK) {\n ((ImageView) findViewById(R.id.imageview_myactivity)).setImageURI(result.getUri());\n\n Log.d(\"CropResultUri\", result.getUri().toString());\n\n MyBmpInfo bmpinfo = getThumbnail(result.getUri());\n Bitmap b = bmpinfo.result;\n if (bmpinfo.warnUser) {\n textInfoImage.setText(\"Warning: \" + bmpinfo.warning + \" ( \" + b.getWidth() + \" x \" + b.getHeight() + \" ) \");\n textInfoImage.setTextColor(Color.parseColor(\"#FFFF0000\"));\n } else textInfoImage.setText(\"\");\n\n Toast.makeText(this, \"Cropping successful\", Toast.LENGTH_LONG).show();\n\n b = watermark(b);\n // Save image as .jpg file in phone public \"Picture\" directory\n selectedImageFilePath = saveFile(b);\n selectedImageFilePath = new String[]{selectedImageFilePath[0], selectedImageFilePath[1], result.getUri().toString()};\n Toast.makeText(this, \"Saved successfully\", Toast.LENGTH_LONG).show();\n\n\n } else if (resultCode == CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE) {\n Toast.makeText(this, \"Cropping failed: \" + result.getError(), Toast.LENGTH_LONG).show();\n }\n }\n }", "public void getCroppedBitmap(final OnResultListener onResultListener) {\n setProgressBarVisibility(VISIBLE);\n AsyncTask.execute(new Runnable() {\n @Override\n public void run() {\n try {\n ContentResolver resolver = getContext().getContentResolver();\n InputStream inputStream = resolver.openInputStream(imageUri);\n Bitmap bitmap = BitmapFactory.decodeStream(inputStream);\n\n //rotate image\n Matrix matrix = new Matrix();\n matrix.postRotate(getOrientation() + getRotation());\n\n bitmap = Bitmap.createBitmap(bitmap, 0, 0,\n bitmap.getWidth(), bitmap.getHeight(), matrix, true);\n\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 90, outputStream);\n byte[] bitmapData = outputStream.toByteArray();\n ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(bitmapData);\n\n BitmapRegionDecoder decoder = BitmapRegionDecoder.\n newInstance(byteArrayInputStream, false);\n\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inSampleSize = 1;\n options.inJustDecodeBounds = false;\n\n Bitmap croppedBitmap = decoder.decodeRegion(cropRect, options);\n decoder.recycle();\n\n final Result result = new Result(imageUri, croppedBitmap);\n CropImageView.this.post(new Runnable() {\n @Override\n public void run() {\n onResultListener.onResult(result);\n setProgressBarVisibility(GONE);\n }\n });\n } catch (Exception | OutOfMemoryError e) {\n e.printStackTrace();\n CropImageView.this.post(new Runnable() {\n @Override\n public void run() {\n onResultListener.onResult(new Result(getImageUri(), null));\n setProgressBarVisibility(GONE);\n }\n });\n }\n }\n });\n }", "private void onSaveClicked() {\n if (mCrop == null || mIsSaving) {\n return;\n }\n mIsSaving = true;\n Bitmap croppedImage = null;\n Rect r = mCrop.getCropRect();\n int width = r.width();\n int height = r.height();\n\n int outWidth = width, outHeight = height;\n if (mMaxX > 0 && mMaxY > 0 && (width > mMaxX || height > mMaxY)) {\n float ratio = (float) width / (float) height;\n if ((float) mMaxX / (float) mMaxY > ratio) {\n outHeight = mMaxY;\n outWidth = (int) ((float) mMaxY * ratio + .5f);\n } else {\n outWidth = mMaxX;\n outHeight = (int) ((float) mMaxX / ratio + .5f);\n }\n }\n if (IN_MEMORY_CROP && mRotateBitmap != null) {\n croppedImage = inMemoryCrop( mRotateBitmap, croppedImage, r,\n width * sampleSize,\n height * sampleSize,\n outWidth * sampleSize,\n outHeight * sampleSize );\n if (croppedImage != null) {\n mImageView.setImageBitmapResetBase( croppedImage, true );\n mImageView.center( true, true );\n mImageView.mHighlightViews.clear();\n }\n } else {\n try {\n croppedImage = decodeRegionCrop( croppedImage, r );\n } catch (IllegalArgumentException e) {\n setResultException( e );\n finish();\n return;\n }\n\n if (croppedImage != null) {\n mImageView.setImageRotateBitmapResetBase( new RotateBitmap( croppedImage, mExifRotation ), true );\n mImageView.center( true, true );\n mImageView.mHighlightViews.clear();\n }\n }\n if(croppedImage.getWidth() > mMaxX || croppedImage.getHeight() > mMaxY) {\n croppedImage = getResizedBitmap(croppedImage, mMaxX, mMaxY);\n }\n\n saveImage(croppedImage);\n }", "@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\r\n super.onActivityResult(requestCode, resultCode, data);\r\n mImageUri = data.getData();\r\n if (requestCode == GALLERY_REQUEST && resultCode == Activity.RESULT_OK) {\r\n mImageUri = data.getData();\r\n if (data.getData() == null) {\r\n Toast.makeText(this, \"Failed to load Image,try again\", Toast.LENGTH_LONG).show();\r\n return;\r\n }\r\n try {\r\n outputUri =new getFileName(context).getDataFilesThumbnailUriPath(String.valueOf(System.currentTimeMillis()),context);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n CropImage.activity(mImageUri)\r\n .setGuidelines(CropImageView\r\n .Guidelines.ON)\r\n .setAspectRatio(1, 1)\r\n .setBackgroundColor(getApplicationContext().getResources().getColor(R.color.background))\r\n .setActivityMenuIconColor(getApplicationContext().getResources().getColor(R.color.colorPrimary))\r\n .setOutputUri(outputUri)\r\n .start(this);\r\n }\r\n if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) {\r\n CropImage.ActivityResult result = CropImage.getActivityResult(data);\r\n if (resultCode == RESULT_OK) {\r\n resultUri =Uri.fromFile(new File(new CompressingImage5kb(String.valueOf(System.currentTimeMillis()),context).compressImage(String.valueOf(result.getUri()),\"\",true)));\r\n mCircleImageView.setImageURI(resultUri);\r\n } else if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE) {\r\n Exception error = result.getError();\r\n }\r\n }\r\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode == 1 && resultCode == RESULT_OK && data != null && data.getData() != null) {\n\n //Getting the uri from gallery\n\n fileImageUri = data.getData();\n imageUri = fileImageUri;\n CropImage.activity(fileImageUri) //cropping the image\n\n .setGuidelines(CropImageView.Guidelines.ON)\n .setCropShape(CropImageView.CropShape.RECTANGLE)\n .setFixAspectRatio(true)\n .setAspectRatio(1,1)\n .start(this);\n\n\n\n }\n\n\n //After image will crop again taking the image uri\n\n if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) {\n CropImage.ActivityResult result = CropImage.getActivityResult(data);\n if (resultCode == RESULT_OK) {\n resultUri = result.getUri();\n\n uploadUserImageView.setImageURI(resultUri);\n\n } else if (resultCode == CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE) {\n Exception error = result.getError();\n Toast.makeText(this, \"Error While Getting uri\", Toast.LENGTH_SHORT).show();\n }\n }\n\n }", "public void loadImagefromGallery(View view) {\n Intent intent = new Intent(Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\n intent.putExtra(\"crop\", \"true\");\n intent.putExtra(\"aspectX\", 50);\n intent.putExtra(\"aspectY\", 50);\n intent.putExtra(\"outputX\", 100);\n intent.putExtra(\"outputY\", 100);\n\n try {\n // Start the Intent\n startActivityForResult(intent, PICK_FROM_GALLERY);\n } catch (ActivityNotFoundException ae) {\n\n } catch (Exception e) {\n\n }\n }", "protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) {\n CropImage.ActivityResult result = CropImage.getActivityResult(data);\n if (resultCode == RESULT_OK) {\n //getting Image to show\n Uri resultUri = result.getUri();\n profilePic.setImageURI(resultUri);\n\n //getting image to save bitmap formate\n try{\n bitmap = MediaStore.Images.Media.getBitmap(getContentResolver(),resultUri);\n imageChanged = true;\n }catch (IOException e){\n e.printStackTrace();\n }\n\n\n } else if (resultCode == CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE) {\n Exception error = result.getError();\n Toast.makeText(this, \"\"+error, Toast.LENGTH_SHORT).show();\n }\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) {\n CropImage.ActivityResult result = CropImage.getActivityResult(data);\n if (resultCode == RESULT_OK) {\n croppedURI = result.getUri();\n\n try {\n bitmap = MediaStore.Images.Media.getBitmap(this.getContentResolver(), croppedURI);\n\n Intent intent = new Intent(UploadHonjouActivity.this, ConfirmActivity.class);\n\n SharedPrefManager.getInstance(this).saveHonjou(getStringImage(bitmap));\n\n intent.putExtra(\"edit_flag\", false);\n\n startActivity(intent);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n } else if (resultCode == CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE) {\n\n }\n }\n }", "private void onSaveClicked() {\n if (mCropView == null) {\n return;\n }\n\n if (mSaving) return;\n mSaving = true;\n\n Bitmap croppedImage;\n\n // If the output is required to a specific size, create an new image\n // with the cropped image in the center and the extra space filled.\n if (outputX != 0 && outputY != 0 && !scale) {\n // Don't scale the image but instead fill it so it's the\n // required dimension\n croppedImage = Bitmap.createBitmap(outputX, outputY, Bitmap.Config.RGB_565);\n Canvas canvas = new Canvas(croppedImage);\n\n Rect srcRect = mCropView.getCropRect();\n Rect dstRect = new Rect(0, 0, outputX, outputY);\n\n int dx = (srcRect.width() - dstRect.width()) / 2;\n int dy = (srcRect.height() - dstRect.height()) / 2;\n\n // If the srcRect is too big, use the center part of it.\n srcRect.inset(Math.max(0, dx), Math.max(0, dy));\n\n // If the dstRect is too big, use the center part of it.\n dstRect.inset(Math.max(0, -dx), Math.max(0, -dy));\n\n // Draw the cropped bitmap in the center\n canvas.drawBitmap(mBitmap, srcRect, dstRect, null);\n\n // Release bitmap memory as soon as possible\n mImageView.clear();\n mBitmap.recycle();\n } else {\n Rect r = mCropView.getCropRect();\n\n int width = r.width();\n int height = r.height();\n\n // If we are circle cropping, we want alpha channel, which is the\n // third param here.\n croppedImage = Bitmap.createBitmap(width, height,\n circleCrop ? Bitmap.Config.ARGB_8888 : Bitmap.Config.RGB_565);\n\n Canvas canvas = new Canvas(croppedImage);\n\n if (circleCrop) {\n final int color = 0xffff0000;\n final Paint paint = new Paint();\n final Rect rect = new Rect(0, 0, croppedImage.getWidth(), croppedImage.getHeight());\n final RectF rectF = new RectF(rect);\n\n paint.setAntiAlias(true);\n paint.setDither(true);\n paint.setFilterBitmap(true);\n canvas.drawARGB(0, 0, 0, 0);\n paint.setColor(color);\n canvas.drawOval(rectF, paint);\n\n paint.setColor(Color.BLUE);\n paint.setStyle(Paint.Style.STROKE);\n paint.setStrokeWidth((float) 4);\n paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_IN));\n canvas.drawBitmap(mBitmap, r, rect, paint);\n }\n else {\n Rect dstRect = new Rect(0, 0, width, height);\n canvas.drawBitmap(mBitmap, r, dstRect, null);\n }\n\n // Release bitmap memory as soon as possible\n mImageView.clear();\n mBitmap.recycle();\n\n // If the required dimension is specified, scale the image.\n if (outputX != 0 && outputY != 0 && scale) {\n croppedImage = BitmapUtils.transform(new Matrix(), croppedImage,\n outputX, outputY, scaleUp, BitmapUtils.RECYCLE_INPUT);\n }\n }\n\n mImageView.setImageBitmapResetBase(croppedImage, true);\n mImageView.center(true, true);\n mImageView.getHighlightViews().clear();\n\n // save it to the specified URI.\n final Bitmap b = croppedImage;\n new AsyncTask<Void, Integer, IImage>() {\n ProgressDialog pd;\n\n @Override\n protected void onPreExecute() {\n pd = ProgressDialog.show(CropPhotoActivity.this, null,\n getResources().getString(R.string.saving_image));\n }\n\n @Override\n protected IImage doInBackground(Void[] params) {\n return saveOutput(b);\n }\n\n @Override\n protected void onPostExecute(IImage image) {\n pd.dismiss();\n mImageView.clear();\n b.recycle();\n\n if (image != null) {\n ArrayList<IImage> images = new ArrayList<>();\n images.add(image);\n\n Intent data = new Intent();\n data.putParcelableArrayListExtra(\"data\", images);\n setResult(Activity.RESULT_OK, data);\n finish();\n }\n }\n }.execute();\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n\n if (resultCode != RESULT_OK) {\n return;\n }\n\n switch (requestCode) {\n // Camera Implementation\n case REQUEST_CODE_CAMERA_PERMISSION:\n isPhotoTakenFromCamera = true;\n Bitmap rotatedBitmap = imageOrientationValidator(mPhotoFile); // check orientation\n if (rotatedBitmap != null) {\n try {\n FileOutputStream fOut = new FileOutputStream(mPhotoFile);\n rotatedBitmap.compress(Bitmap.CompressFormat.JPEG, 100, fOut);\n fOut.flush();\n fOut.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n // Send image taken from camera for cropping\n mImageCaptureUri = FileProvider.getUriForFile(this,\n BuildConfig.APPLICATION_ID,\n mPhotoFile);\n beginCrop(mImageCaptureUri);\n }\n break;\n\n // Gallery implementation here\n case REQUEST_CODE_GALLERY:\n isPhotoTakenFromCamera = false;\n if (data != null){\n beginCrop(data.getData());\n }\n break;\n\n //Crop implementation\n case Crop.REQUEST_CROP:\n // Update image view after image crop\n handleCrop(resultCode, data);\n // Delete temporary image taken by camera after crop.\n if (isPhotoTakenFromCamera) {\n File f = new File(Objects.requireNonNull(mImageCaptureUri.getPath()));\n if (f.exists()) {\n f.delete();\n }\n }\n break;\n\n }\n super.onActivityResult(requestCode, resultCode, data);\n }", "private void beginCrop(Uri source) {\n // pass URI as intent to the CROP Activity;\n if (mPhotoFile != null) {\n Uri destination = FileProvider.getUriForFile(this,\n BuildConfig.APPLICATION_ID,\n mPhotoFile);\n Log.d(TAG, \"URI: \" + destination.toString());\n Crop.of(source, destination).asSquare().start(this);\n }\n }", "@Override\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tLog.e(\"on success\", \"on success\");\n\t\tBitmap s = null;\n\n\t\tif (resultCode == getActivity().RESULT_OK) {\n\t\t\t// user is returning from capturing an image using the camera\n\t\t\tif (requestCode == CAMERA_CAPTURE) {\n\t\t\t\tLog.e(\"camera\", \"camera\");\n\t\t\t\tpicUri = data.getData();\n\t\t\t\tBundle extras = data.getExtras();\n\t\t\t\t// get the cropped bitmap\n\t\t\t\tBitmap thePic = extras.getParcelable(\"data\");\n\t\t\t\tsavetoaFileLocation(thePic);\n\t\t\t\tthePic = getResizedBitmap(thePic, 200, 200);\n\t\t\t\tcameraBitmap = thePic;\n\t\t\t\t// ImageView picView = (ImageView)\n\t\t\t\t// findViewById(R.id.img_userimage);\n\t\t\t\t// display the returned cropped image\n\t\t\t\tprofileimageeditflag=\"true\";\n\t\t\t\tGraphicsUtil graphicUtil = new GraphicsUtil();\n\t\t\t\t// picView.setImageBitmap(graphicUtil.getRoundedShape(thePic));\n\t\t\t\t\n\t\t\t\tpicview1.setImageBitmap(graphicUtil.getCircleBitmap(thePic, 16));\n\t\t\t\t//picview1.setImageBitmap(cameraBitmap);\n\t\t\t} else if (requestCode == GALLERY_CAPTURE) {\n\n\n\n\n\t\t\t\tUri selectedImage = data.getData();\n\n\t\t\t\tString stringUri;\n\t\t\t\tstringUri = selectedImage.toString();\n\t\t\t\tif ((stringUri != \"\") || stringUri != null) {\n\n\t\t\t\t\tString selectedImagePath = getPath(selectedImage);\ntry {\n\tExifInterface exifInterface = new ExifInterface(selectedImagePath);\n\torientation = exifInterface.getAttributeInt(ExifInterface.TAG_ORIENTATION, ExifInterface.ORIENTATION_NORMAL);\n\n}\ncatch (Exception e){}\n\n\n\n\t\t\t\t\tString[] filePathColumn = { MediaStore.Images.Media.DATA };\n\t\t\t\t\tCursor cursor = getActivity().getContentResolver().query(\n\t\t\t\t\t\t\tselectedImage, filePathColumn, null, null, null);\n\t\t\t\t\tcursor.moveToFirst();\n\t\t\t\t\tint columnIndex = cursor.getColumnIndex(filePathColumn[0]);\n\t\t\t\t\tString selectedimage_path = cursor.getString(columnIndex);\n\t\t\t\t\tLog.e(\"selected path\",selectedimage_path);\n\t\t\t\t\tcursor.close();\n\t\t\t\t\tif (selectedimage_path.startsWith(\"https://\")) {\n\t\t\t\t\t\tgetBiymapFromGoogleLocation(selectedimage_path);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t} else {\n\t\t\t\t\t\ts = getBitmapFromFile(selectedimage_path);\n\t\t\t\t\t}\n\t\t\t\t\ts = getResizedBitmap(s, 200, 200);\n\t\t\t\t\tcameraBitmap = s;\n\n\t\t\t\t\tswitch(orientation) {\n\t\t\t\t\t\tcase ExifInterface.ORIENTATION_ROTATE_90:\n\t\t\t\t\t\t\tcorrectedBitMap = rotateImage(cameraBitmap, 90);\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tcase ExifInterface.ORIENTATION_ROTATE_180:\n\t\t\t\t\t\t\tcorrectedBitMap = rotateImage(cameraBitmap, 180);\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tcase ExifInterface.ORIENTATION_ROTATE_270:\n\t\t\t\t\t\t\tcorrectedBitMap = rotateImage(cameraBitmap, 270);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tcorrectedBitMap=cameraBitmap;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t\t// ImageView picView = (ImageView)\n\t\t\t\t\t// findViewById(R.id.img_userimage);\n\t\t\t\t\t// display the returned cropped image\nprofileimageeditflag=\"true\";\n\t\t\t\t\tGraphicsUtil graphicUtil = new GraphicsUtil();\n\n\n\t/*\t\t\t\tif(correctedBitMap!= null)\n\t\t\t\t\t{\n\t\t\t\t\t\tpicView.setImageBitmap(graphicUtil.getCircleBitmap(\n\t\t\t\t\t\t\t\tcorrectedBitMap, 16));\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t// picView.setImageBitmap(graphicUtil.getRoundedShape(thePic));\n\t\t\t\t\t\tpicView.setImageBitmap(graphicUtil.getCircleBitmap(\n\t\t\t\t\t\t\t\tcameraBitmap, 16));\n\t\t\t\t\t}\n\n*/\n\n\t\t\t\t\tif (correctedBitMap != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tpicview1.setImageBitmap(graphicUtil.getCircleBitmap(correctedBitMap, 16));\n\t\t\t\t\t\tsavetoaFileLocation(correctedBitMap);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tpicview1.setImageBitmap(graphicUtil.getCircleBitmap(s, 16));\n\t\t\t\t\t\tsavetoaFileLocation(s);\n\t\t\t\t\t}\n\n\n\n\t\t\t\t\t// picView.setImageBitmap(graphicUtil.getRoundedShape(thePic));\n\t\t\t\n\t\t\t\t//\tpicview1.setImageBitmap(graphicUtil.getCircleBitmap(s, 16));\n\t\t\t\t//\tpicview1.setImageBitmap(cameraBitmap);\n\t\t\t\t//\tsavetoaFileLocation(s);\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}", "public void savePicture() {\n\t\tLog.d(TAG, \"savePicture\");\n\t\t\n\t\tFile cropFile = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES).getPath() + \"/Lente/crop.jpg\");\n\t\tmCropView.setDrawingCacheEnabled(true);\n\t\tBitmap bm = Bitmap.createBitmap(mCropView.getDrawingCache());\n\t\tmCropView.setDrawingCacheEnabled(false);\n\t\t\n\t\ttry {\n\t\t FileOutputStream outputStream = new FileOutputStream(cropFile);\n\t\t Log.d(TAG, \"Compressing and saving...\");\n\t\t bm.compress(Bitmap.CompressFormat.JPEG, 100, outputStream);\n\t\t outputStream.flush();\n\t\t outputStream.close();\n\t\t \n\t\t MediaScannerConnection.scanFile(getBaseContext(),\n\t new String[] { cropFile.toString() }, null,\n\t new MediaScannerConnection.OnScanCompletedListener() {\n\t public void onScanCompleted(String path, Uri uri) {\n\t Log.i(\"ExternalStorage\", \"Scanned \" + path + \":\");\n\t Log.i(\"ExternalStorage\", \"-> uri=\" + uri);\n\t //passUri(uri); //Pass the URI once obtained and move onto OCRopus\n\t }\n\t\t\t});\n\t }\n\t\t\n\t\tcatch (IOException e) {\n\t\t\tToast.makeText(ImageTextSelect.this, \"Failed to save selected image area.\", 2000).show();\n\t\t\tLog.e(TAG, \"IO Exception\");\n\t\t}\n\t}", "public native MagickImage cropImage(Rectangle chopInfo)\n\t\t\tthrows MagickException;", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (resultCode == RESULT_OK)\n {\n //------------Received image from camera in device serial number------------------------\n if (requestCode == CAMERA_DEVICE_SERIAL_NUMBER)\n {\n Uri picUri = pictureUri;\n startCropImageActivity(picUri, CROP_CAMERA_SERIAL_NUMBER);\n Toast.makeText(UserAreaActivity.this, \"Serial Number Image Saved!\", Toast.LENGTH_SHORT).show();\n }\n\n //---------------Cropped image from camera in device serial number----------------------\n if (requestCode == CROP_CAMERA_SERIAL_NUMBER)\n {\n CropImage.ActivityResult result = CropImage.getActivityResult(data);\n Croppedimage(result, ivDeviceSerialNumber, etDeviceSerialNumber);\n }\n\n //------------Received image from gallery in device serial number-----------------------\n if (requestCode == GALLERY_DEVICE_SERIAL_NUMBER)\n {\n startCropImageActivity(data.getData(), CROP_GALLERY_SERIAL_NUMBER);\n Toast.makeText(UserAreaActivity.this, \"Image from gallery\", Toast.LENGTH_SHORT).show();\n }\n\n //--------------Cropped image from gallery in device serial number----------------------\n if(requestCode == CROP_GALLERY_SERIAL_NUMBER)\n {\n CropImage.ActivityResult result = CropImage.getActivityResult(data);\n Croppedimage(result, ivDeviceSerialNumber, etDeviceSerialNumber);\n }\n\n }\n\n }", "private void beginCrop(Uri source) {\n Uri destination = Uri.fromFile(new File(getCacheDir(), \"cropped\"));\n Crop.of(source, destination).asSquare().start(this);\n }", "@Override\n protected void onImageLaidOut() {\n super.onImageLaidOut();\n final Drawable drawable = getDrawable();\n if (drawable == null) {\n return;\n }\n\n float drawableWidth = drawable.getIntrinsicWidth();\n float drawableHeight = drawable.getIntrinsicHeight();\n\n if (mTargetAspectRatio == SOURCE_IMAGE_ASPECT_RATIO) {\n mTargetAspectRatio = drawableWidth / drawableHeight;\n }\n\n int height = (int) (mThisWidth / mTargetAspectRatio);\n if (height > mThisHeight) {\n int width = (int) (mThisHeight * mTargetAspectRatio);\n int halfDiff = (mThisWidth - width) / 2;\n mCropRect.set(halfDiff, 0, width + halfDiff, mThisHeight);\n } else {\n int halfDiff = (mThisHeight - height) / 2;\n mCropRect.set(0, halfDiff, mThisWidth, height + halfDiff);\n }\n\n calculateImageScaleBounds(drawableWidth, drawableHeight);\n setupInitialImagePosition(drawableWidth, drawableHeight);\n\n if (mCropBoundsChangeListener != null) {\n mCropBoundsChangeListener.onCropAspectRatioChanged(mTargetAspectRatio);\n }\n if (mTransformImageListener != null) {\n// mTransformImageListener.onScale(getCurrentScale());\n// mTransformImageListener.onRotate(getCurrentAngle());\n mTransformImageListener.onBrightness(getCurrentBrightness());\n// mTransformImageListener.onContrast(getCurrentContrast());\n }\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t \t\n\t \tclass ToSaveCropped{\n\t \t\t\n\t \t\tfloat x=finalx;\n\t \t\tfloat y=finaly;\n\n\t\t\t\t\tprivate byte[] data = MainActivity.getbitmapData();\n\t\t\t Bitmap mImage = BitmapFactory.decodeByteArray(data, 0, data.length);\n\t\t\t \n\t\t\t Drawable myMask = getResources().getDrawable(R.drawable.mask);\n\t\t\t Bitmap mMask = ((BitmapDrawable) myMask).getBitmap();\n\t\t\t Bitmap mmImage = dv.bitmapRotate(mImage);\n\t\t\t \n\t\t\t Bitmap mmmImage = dv.getResizedBitmap(mmImage,height,width);\n\t\t\t \n\t\t\t Bitmap mmMask = dv.getResizedBitmap(mMask,wMask,wMask);\n\t\t\t\t\t\n\t\t\t\t\tpublic void onDraw(){\n\t\t\t\t\t\tCanvas canvas; \t\t\t\n\t \t\t\tint w = mmMask.getWidth(), h = mmMask.getHeight();\n\t \t\t\tBitmap.Config conf = Bitmap.Config.ARGB_8888; // see other conf types\n\t \t\t\tcroppedBitmap = Bitmap.createBitmap(w, h, conf); // this creates a MUTABLE bitmap\n\t \t\t\tcanvas = new Canvas(croppedBitmap);\n\t \t\t\t\n\t \t\t\tPaint maskPaint = new Paint();\n\t \t\t\tmaskPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DST_IN));\n\n\t Paint imagePaint = new Paint();\n\t imagePaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DST_OVER));\n\t \t\t\t//Log.i(\"\"+x,\"\"+y);\n\t \t//canvas.drawBitmap(mMask,x,y,maskPaint);\n\t \tcanvas.drawBitmap(mmmImage,-x,-y,imagePaint);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t \t}\t \t\n\t \tToSaveCropped tsc = new ToSaveCropped();\n\t \ttsc.onDraw();\n\t \tByteArrayOutputStream stream = new ByteArrayOutputStream();\n\t \tcroppedBitmap.compress(Bitmap.CompressFormat.PNG, 100, stream);\n\t \tbitData = stream.toByteArray();\n\t\t\t\t\n\t\t\t\tSaveFile sv = new SaveFile();\n\t\t\t\tsv.save();\n\t\t\t\t\n\t\t\t\tMediaStore.Images.Media.insertImage(getContentResolver(), croppedBitmap, \"\", \"\");\n\t\t\t\t\n\t\t\t}", "private void manageCrops() {\r\n// System.out.println(\"\\nThis is manage the crops option\");\r\n CropView.runCropsView();\r\n }", "public void cropMoleculeRecognition(){\n mOpenCameraView.disableView();\n\n Mat transformMat = Imgproc.getPerspectiveTransform(mCaptureAreaAdjusted,new MatOfPoint2f(new Point(0,0),new Point(0,400),new Point(400,400), new Point(400,0)));\n Mat croppedImage = new Mat();\n Imgproc.warpPerspective(mGray, croppedImage, transformMat, new Size(400, 400));\n\n /* cleanup the AR marker */\n int cropout = 240;\n\n croppedImage.submat(0,cropout,0,cropout).setTo(new Scalar(0));\n Core.MinMaxLocResult mmr;\n\n for(int i = 0; i<cropout; i++){\n mmr = Core.minMaxLoc(croppedImage.row(i).colRange(cropout,400));\n Core.add(croppedImage.row(i).colRange(0,cropout),new Scalar(mmr.maxVal/2),croppedImage.row(i).colRange(0,cropout));\n\n mmr = Core.minMaxLoc(croppedImage.col(i).rowRange(cropout, 400));\n Core.add(croppedImage.col(i).rowRange(0, cropout),new Scalar(mmr.maxVal/2),croppedImage.col(i).rowRange(0, cropout));\n }\n\n /*for now, just save the cropedImage*/\n /* in the live version, will need to sort out the ar marker on the top left */\n Imgcodecs.imwrite(getFilesDir().toString().concat(\"/croppedImg.png\"),croppedImage);\n Intent intent = new Intent(this,viewCapture.class);\n intent.putExtra(\"flagCaptureImage\",true);\n startActivity(intent);\n }", "@Override\n @SuppressLint(\"NewApi\")\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == CropImage.PICK_IMAGE_CHOOSER_REQUEST_CODE && resultCode == Activity.RESULT_OK) {\n Uri imageUri = CropImage.getPickImageResultUri(this, data);\n\n // For API >= 23 we need to check specifically that we have permissions to read external storage.\n if (CropImage.isReadExternalStoragePermissionsRequired(this, imageUri)) {\n // request permissions and handle the result in onRequestPermissionsResult()\n mCropImageUri = imageUri;\n requestPermissions(new String[]{android.Manifest.permission.READ_EXTERNAL_STORAGE}, CropImage.PICK_IMAGE_PERMISSIONS_REQUEST_CODE);\n } else {\n // no permissions required or already grunted, can start crop image activity\n startCropImageActivity(imageUri);\n }\n } else if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) {\n CropImage.ActivityResult result = CropImage.getActivityResult(data);\n if (resultCode == RESULT_OK) {\n mCropImageUri = result.getUri();\n InputStream imageStream = null;\n try {\n imageStream = getContentResolver().openInputStream(mCropImageUri);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n mCropImage = BitmapFactory.decodeStream(imageStream);\n imgRestaurant.setImageBitmap(mCropImage);\n\n } else if (resultCode == CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE) {\n Exception error = result.getError();\n Toast.makeText(NewRestaurantActivity.this, error.getMessage(), Toast.LENGTH_LONG).show();\n }\n }\n }", "@Override\n @SuppressLint(\"NewApi\")\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == CropImage.PICK_IMAGE_CHOOSER_REQUEST_CODE && resultCode == Activity.RESULT_OK) {\n Uri imageUri = CropImage.getPickImageResultUri(this, data);\n\n // For API >= 23 we need to check specifically that we have permissions to read external storage.\n if (CropImage.isReadExternalStoragePermissionsRequired(this, imageUri)) {\n // request permissions and handle the result in onRequestPermissionsResult()\n cropImageUri = imageUri;\n Log.d(TAG, \"onActivityResult PICK_IMAGE_CHOOSER_REQUEST_CODE:\" + cropImageUri);\n requestPermissions(new String[]{Manifest.permission.READ_EXTERNAL_STORAGE}, CropImage.PICK_IMAGE_PERMISSIONS_REQUEST_CODE);\n } else {\n // no permissions required or already grunted, can start crop image activity\n Log.d(TAG, \"onActivityResult PICK_IMAGE_CHOOSER_REQUEST_CODE no permission:\" + imageUri);\n startCropImageActivity(imageUri);\n\n }\n } else if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) {\n CropImage.ActivityResult result = CropImage.getActivityResult(data);\n if (resultCode == RESULT_OK) {\n Uri resultUri = result.getUri();\n Log.d(TAG, \"CROP_IMAGE_ACTIVITY_REQUEST_CODE ok:\" + resultUri);\n cropImageUri = resultUri;\n if (optionFragment == null) {\n vpSubArea.setAdapter(new TabsAdapter(getSupportFragmentManager()));\n }\n optionFragment.setVoteImage(resultUri);\n } else if (resultCode == CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE) {\n Exception error = result.getError();\n }\n }\n }", "@Method(selector = \"crop:imagePath:width:height:x:ycompletionBlock:\")\n\tpublic native void crop(String name, String imagePath, int width, int height, int x, int y, @Block App42ResponseBlock completionBlock);", "public static void performCrop(Activity activity, Uri picUri) {\n try {\n // call the standard crop action intent (the user device may not\n // support it)\n Intent cropIntent = new Intent(\"com.android.camera.action.CROP\");\n // indicate image type and Uri\n cropIntent.setDataAndType(picUri, \"image/*\");\n // set crop properties\n cropIntent.putExtra(\"crop\", \"true\");\n // indicate aspect of desired crop\n cropIntent.putExtra(\"aspectX\", 2);\n cropIntent.putExtra(\"aspectY\", 1);\n // indicate output X and Y\n cropIntent.putExtra(\"outputX\", 256);\n cropIntent.putExtra(\"outputY\", 256);\n // retrieve data on return\n cropIntent.putExtra(\"return-data\", true);\n // start the activity - we handle returning in onActivityResult\n activity.startActivityForResult(cropIntent, CROP_IMAGE);\n }\n // respond to users whose devices do not support the crop action\n catch (ActivityNotFoundException anfe) {\n Toast toast = Toast\n .makeText(activity, \"This device doesn't support the crop action!\", Toast.LENGTH_SHORT);\n toast.show();\n }\n\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\n super.onActivityResult(requestCode, resultCode, data);\n\n //this checks the checked imaged,so there should be no null image...\n if(requestCode== GalleryPic && resultCode == RESULT_OK && data != null) {\n Uri ImageUri = data.getData(); //here we getting the image.....in ImageUri\n\n //When the user Select the image he will be redirected to the Image Cropping Activity...\n CropImage.activity(ImageUri)\n .setAspectRatio(1,1)\n .setCropShape(CropImageView.CropShape.OVAL)\n .start(this);\n }\n //THIS CHECKS WHETHER WE SELECT THE CROP OPTION...\n if(requestCode==CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE)\n {\n //HERE WE GETTING CROPPED IMAGE...\n CropImage.ActivityResult result= CropImage.getActivityResult(data);\n\n if(resultCode == RESULT_OK) //IF CROPPING SUCCESSFULL...\n {\n loadingBar.setTitle(\"Saving Information\");\n loadingBar.setMessage(\"Please wait until we update your Profile Image\");\n loadingBar.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n loadingBar.show();\n loadingBar.setCanceledOnTouchOutside(true);\n\n //THIS OBJECTS CONTAINS THE CROPPED IMAGE....\n Uri resultUri =result.getUri();\n\n //WE STORING THE STORAGE REFERENCE AS A USERID.JPG.....\n StorageReference filePath = UserProfileImageRef.child(CurrentUserId + \".jpg\");\n\n //HERE STORING THE FILE IN filePath OBJECT..\n filePath.putFile(resultUri).addOnCompleteListener(new OnCompleteListener<UploadTask.TaskSnapshot>() {\n @Override\n public void onComplete(@NonNull Task<UploadTask.TaskSnapshot> task) {\n if(task.isSuccessful())\n {\n Toast.makeText(SetupActivity.this,\"Profile Image Stored to Database Successfully\",Toast.LENGTH_SHORT).show();\n\n //FINALLY STORING THE IMAGE IN DATABASE IN FIREBASE STORAGE...\n final String downloadUrl = task.getResult().getDownloadUrl().toString();\n UsersRef.child(\"profileImage\").setValue(downloadUrl).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if(task.isSuccessful())\n {\n //REDIRECTING TO SETUP ACTIVITY FROM CROPPING ACTIVITY....\n Intent selfIntent = new Intent(SetupActivity.this,SetupActivity.class);\n startActivity(selfIntent);\n Toast.makeText(SetupActivity.this, \"Profile Image is Stored Successfully\", Toast.LENGTH_SHORT).show();\n loadingBar.dismiss();\n }\n else{\n String message =task.getException().getMessage();\n Toast.makeText(SetupActivity.this, \"Error Occurred :\" +message, Toast.LENGTH_SHORT).show();\n loadingBar.dismiss();\n }\n }\n });\n }\n }\n });\n\n }\n\n else{\n //IF THE IMAGE IS UNABLE TO CROP...\n Toast.makeText(SetupActivity.this, \"Error Occurred : Image can't be Cropped,Try Again.\" , Toast.LENGTH_SHORT).show();\n loadingBar.dismiss();\n }\n\n }\n //else if(requestCode == CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE)\n }", "@Method(selector = \"crop:imageData:width:height:x:y:completionBlock:\")\n\tpublic native void crop(String name, NSData imageData, int width, int height, int x, int y, @Block App42ResponseBlock completionBlock);", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == CropImage.PICK_IMAGE_CHOOSER_REQUEST_CODE && resultCode == Activity.RESULT_OK) {\n Uri imageUri = CropImage.getPickImageResultUri(this, data);\n startCropImageActivity(imageUri);\n }\n\n // handle result of CropImageActivity\n if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) {\n CropImage.ActivityResult result = CropImage.getActivityResult(data);\n if (resultCode == RESULT_OK) {\n mCroppedImageUri = result.getUri();\n mImageView.setImageURI(mCroppedImageUri);\n }\n }\n }", "public interface Listener {\n void onCropImage(Bitmap original, Bitmap croppedBitmap);\n }", "@Override\n public void dataLoaded(Bitmap bitmap) {\n ivCrop.setImageToCrop(bitmap);\n Bitmap bm = null;\n if (ivCrop.canRightCrop()) bm = ivCrop.crop();\n if (bm != null) ivShow.setImageBitmap(bm);\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tif (resultCode != RESULT_OK) {\n\t\t\tLog.d(\"CS65\", \"Camera error: result not ok.\");\n\t\t\treturn;\n\t\t}\n\n\t\tswitch (requestCode) {\n\t\tcase REQUEST_CODE_CHOOSE_FROM_GALLERY:\n\t\t\t// Allow user to choose image from internal gallery.\n\t\t\tLog.d(\"CS65\", \"entered choose from gallery request\");\n\t\t\tmImageCaptureUri = data.getData();\n\t\t\tcropImage();\n\t\t\tbreak;\n\n\t\tcase REQUEST_CODE_TAKE_FROM_CAMERA:\n\t\t\t// Allow user to take a photo from the camera.\n\t\t\t// Send image taken from camera for cropping\n\t\t\tcropImage();\n\t\t\tbreak;\n\n\t\tcase REQUEST_CODE_CROP_PHOTO:\n\t\t\t// Update image view after image crop.\n\t\t\tBundle extras = data.getExtras();\n\t\t\t// Set the picture image in UI\n\t\t\tif (extras != null) {\n\t\t\t\t// Convert bitmap to a byte array and load.\n\t\t\t\tBitmap photo = (Bitmap) extras.getParcelable(\"data\");\n\t\t\t\tbitToByte(photo);\n\t\t\t\tloadImage();\n\t\t\t}\n\n\t\t\t// Delete temporary image taken by camera after crop.\n\t\t\tif (isTakenFromCamera) {\n\t\t\t\tFile f = new File(mImageCaptureUri.getPath());\n\t\t\t\tif (f.exists())\n\t\t\t\t\tf.delete();\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n public void onBitmapLoaded(Bitmap bitmap, Picasso.LoadedFrom from) {\n if(bitmap.getHeight()>bitmap.getWidth()){\n\n progressBar.setVisibility(View.INVISIBLE);\n //load to imageview and set scale type to center crop\n imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);\n imageView.setImageBitmap(bitmap);\n\n }else {\n\n progressBar.setVisibility(View.INVISIBLE);\n //load to imageview and set scale type to fitxy\n imageView.setScaleType(ImageView.ScaleType.FIT_XY);\n imageView.setImageBitmap(bitmap);\n\n }\n\n }", "@TargetApi(Build.VERSION_CODES.KITKAT)\n @Override\n public void onFinishTakeKitkatPhoto(int requestCode, Uri uri\n , int takeFlags, ContentResolver contentResolver, Cursor imageCursor) {\n contentResolver.takePersistableUriPermission(uri, takeFlags);\n\n String selectedImagePath = null;\n if (imageCursor.moveToFirst()) {\n selectedImagePath = imageCursor.getString(imageCursor.getColumnIndex(MediaStore.Images.Media.DATA));\n }\n doCropImage(selectedImagePath);\n //doLoadImage(selectedImagePath);\n //profileDetailView.doCrop(selectedImagePath);\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n // choose a image\n if (requestCode == RequestCode.CHOOSE_IMAGE) {\n if (resultCode == RESULT_OK) {\n if (data != null) {\n Uri dataUri = data.getData();\n if (dataUri != null) {\n // get a random name\n File imgFile = SpaceUtils.newUsableFile();\n mSelectPath = imgFile.getPath();\n Log.v(\"path\",mSelectPath);\n // the image intent just return a simple image\n // the Ucrop(裁剪) is solved after the image intent\n UCrop.Options options = new UCrop.Options();\n options.setCompressionQuality(100);\n UCrop.of(dataUri, Uri.fromFile(imgFile))\n .withOptions(options)\n .withMaxResultSize(mImageSize.x, mImageSize.y)\n .withAspectRatio(3, 4)\n .start(this, RequestCode.CROP_IMAGE);\n }\n }\n }\n } else if (requestCode == RequestCode.CROP_IMAGE) {\n // crop a image\n if (resultCode == RESULT_OK) {\n if (data != null) {\n Glide.with(this).load(mSelectPath).into(mImageViews.get(mCurrentIndex));\n startDetectFaceInfo();\n }\n }\n }\n super.onActivityResult(requestCode, resultCode, data);\n }", "private void previewCapturedImage() {\n try {\n imageProfile.setVisibility(View.VISIBLE);\n Log.d(\"preview\", currentPhotoPath);\n final Bitmap bitmap = CameraUtils.scaleDownAndRotatePic(currentPhotoPath);\n imageProfile.setImageBitmap(bitmap);\n } catch (NullPointerException e) {\n e.printStackTrace();\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n String[] galleryPermissions = {Manifest.permission.READ_EXTERNAL_STORAGE, Manifest.permission.WRITE_EXTERNAL_STORAGE};\n if (EasyPermissions.hasPermissions(this, galleryPermissions)) {\n if (requestCode == RESULT_LOAD_IMAGE && resultCode == RESULT_OK && null != data) {\n Uri selectedImage = data.getData();\n String[] filePathColumn = {MediaStore.Images.Media.DATA};\n if (selectedImage != null) {\n Cursor cursor = getContentResolver().query(selectedImage,\n filePathColumn, null, null, null);\n cursor.moveToFirst();\n\n int columnIndex = cursor.getColumnIndex(filePathColumn[0]);\n String picturePath = cursor.getString(columnIndex);\n cursor.close();\n\n ImageView imgView = (ImageView) findViewById(R.id.imgView);\n Bitmap pic = BitmapFactory.decodeFile(picturePath);\n imgView.setImageBitmap(pic);\n bitmapList = cutImage(pic);\n updateTileButtons();\n displayToast(\"Upload picture successfully!\");\n }\n }\n } else {\n EasyPermissions.requestPermissions(this, \"Access for storage\",\n 101, galleryPermissions);\n }\n }", "public void onPagesCropped() {\n/* 560 */ if (!this.mPdfViewCtrl.isUndoRedoEnabled()) {\n/* */ return;\n/* */ }\n/* */ \n/* */ try {\n/* 565 */ JSONObject jsonObj = new JSONObject();\n/* 566 */ if (this.mContext != null) {\n/* 567 */ String strCropPages = this.mContext.getResources().getString(R.string.pref_viewmode_user_crop);\n/* 568 */ jsonObj.put(\"Action\", strCropPages);\n/* */ } \n/* 570 */ jsonObj.put(\"Action event\", \"crop_pages\");\n/* */ \n/* 572 */ if (Utils.isNullOrEmpty(jsonObj.toString())) {\n/* 573 */ AnalyticsHandlerAdapter.getInstance().sendException(new Exception(\"takeUndoSnapshot with an empty string\"));\n/* */ }\n/* */ \n/* 576 */ takeUndoSnapshot(jsonObj.toString());\n/* 577 */ if (sDebug)\n/* 578 */ Log.d(TAG, \"snapshot: \" + jsonObj.toString()); \n/* 579 */ } catch (Exception e) {\n/* 580 */ AnalyticsHandlerAdapter.getInstance().sendException(e);\n/* */ } \n/* */ }", "private void cropEffect(int x, int y, int width, int height) {\n // int que estigui dins la imatge\n EffectFactory factory = effectContext.getFactory();\n effect = factory.createEffect(EffectFactory.EFFECT_CROP);\n effect.setParameter(\"xorigin\", x);\n effect.setParameter(\"yorigin\", y);\n effect.setParameter(\"width\", width);\n effect.setParameter(\"height\", height);\n effect.apply(textures[0], photoWidth, photoHeight, textures[1]);\n }", "private void getSetCropImage(Uri fileUri) {\n CropImage.activity(fileUri)\n .setGuidelines(CropImageView.Guidelines.ON)\n .setMinCropWindowSize(100, 100)\n .setAspectRatio(1, 1)\n .setFixAspectRatio(true)\n .setCropShape(CropImageView.CropShape.RECTANGLE)\n .start((Activity) mContext);\n }", "private void startCropImageActivity(Uri imageUri) {\n\n\n CropImage.ActivityBuilder a = CropImage.activity(imageUri);\n a.setFixAspectRatio(true);\n a.setAspectRatio(4, 3);\n a.setGuidelines(CropImageView.Guidelines.ON);\n a.setAllowCounterRotation(true);\n a.setAllowRotation(false);\n a.setMultiTouchEnabled(false);\n a.start(this, ActivityCrop.class);\n\n }", "private void previewCapturedImage(){\n \ttry{\n \t\timgPreview.setVisibility(View.VISIBLE);\n \t\t\n \t\t//Bitmap Factory\n \t\tBitmapFactory.Options options = new BitmapFactory.Options();\n \t\t\n \t\t//Downsizing image as it throws OutOfMemory Exception for large images\n \t\toptions.inSampleSize = 4;\n \t\t\n \t\tfinal Bitmap bitmap = BitmapFactory.decodeFile(fileUri.getPath(), options);\n \t\t\n \t\timgPreview.setImageBitmap(bitmap);\n \t}catch(NullPointerException e){\n \t\te.printStackTrace();\n \t}catch(OutOfMemoryError e){\n \t\te.printStackTrace();\n \t}\n }", "public static BufferedImage autoCrop(BufferedImage source, float threshold) {\n\n int rgb;\n int backlo;\n int backhi;\n int width = source.getWidth();\n int height = source.getHeight();\n int startx = width;\n int starty = height;\n int destx = 0;\n int desty = 0;\n\n rgb = source.getRGB(source.getWidth() - 1, source.getHeight() - 1);\n backlo = ((rgb >> 16) & 255) + ((rgb >> 8) & 255) + ((rgb) & 255) / 3;\n backlo = (int) (backlo - (backlo * threshold));\n if (backlo < 0) {\n backlo = 0;\n }\n backhi = ((rgb >> 16) & 255) + ((rgb >> 8) & 255) + ((rgb) & 255) / 3;\n backhi = (int) (backhi + (backhi * threshold));\n\n for (int y = 0; y < height; y++) {\n for (int x = 0; x < width; x++) {\n rgb = source.getRGB(x, y);\n int sum = ((rgb >> 16) & 255) + ((rgb >> 8) & 255) + ((rgb) & 255) / 3;\n if (sum < backlo || sum > backhi) {\n if (y < starty) {\n starty = y;\n }\n if (x < startx) {\n startx = x;\n }\n if (y > desty) {\n desty = y;\n }\n if (x > destx) {\n destx = x;\n }\n }\n }\n }\n System.out.println(\"crop: [\"\n + startx + \", \" + starty + \", \"\n + destx + \", \" + desty + \"]\");\n\n BufferedImage result = new BufferedImage(\n destx - startx, desty - starty,\n source.getType());\n result.getGraphics().drawImage(\n Toolkit.getDefaultToolkit().createImage(\n new FilteredImageSource(source.getSource(),\n new CropImageFilter(startx, starty, destx, desty))),\n 0, 0, null);\n return result;\n }", "private void resizePhoto() {\n if (photoPath.length() == 0) {\n return;\n }\n Log.d(LOG_TAG, \"Path dell' immagine: \" + photoPath);\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(photoPath, options);\n\n options = new BitmapFactory.Options();\n\n options.inJustDecodeBounds = true;\n photoBM = BitmapFactory.decodeFile(photoPath, options);\n Log.d(LOG_TAG, \"Width:\" + bitmapWidth + \" height:\" + bitmapHeight);\n\n options.inSampleSize = calculateInSampleSize(options, bitmapWidth, bitmapHeight);\n\n options.inJustDecodeBounds = false;\n //halfHorizontal = bitmapWidth / 2;\n photoBM = BitmapFactory.decodeFile(photoPath, options);\n\n }", "private void cropCurrRect() {\n\t\tRectangle cropRec = currRect.getBounds();\n\t\tBufferedImage img = currImage.getSubimage(cropRec.x, cropRec.y, cropRec.width, cropRec.height);\n\t\tAffineTransform rotAT = AffineTransform.getRotateInstance(-currRect.getTheta(), cropRec.width, cropRec.height);\n\n\t\tBufferedImageOp bio;\n\t\tbio = new AffineTransformOp(rotAT, AffineTransformOp.TYPE_BICUBIC);\n\t\tBufferedImage rotImg = bio.filter(img, null);\n\t\tColorSpace cs = ColorSpace.getInstance(ColorSpace.CS_GRAY);\n\t\tColorConvertOp op = new ColorConvertOp(cs, null);\n\t\trotImg = op.filter(rotImg, null);\n\t\t\n\t\tocrExtraction(rotImg);\n\t}", "public void onClick(View v) {\n\t\t\tFile avator=new File(FileUtil.getImgPath(),\"avator.jpg\");\n\t\t\tif(avator.exists())\n\t\t\t\tavator.delete();\n\t\t\ttry {\n\t\t\t\tavator.createNewFile();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\timageUri=Uri.fromFile(avator);//将file对象转换为uri对象。\n\t\t\tIntent intent=new Intent(\"com.android.camera.action.CROP\");\n\t\t\tintent.setAction(Intent.ACTION_PICK);\n\t\t\tintent.setType(\"image/*\");\n\t\t\tintent.putExtra(\"crop\", true);\n\t\t\tintent.putExtra(\"scale\", true);\n\t\t\tintent.putExtra(MediaStore.EXTRA_OUTPUT, imageUri);\n\t\t\tstartActivityForResult(intent, ADAVTOR_CONST);\n\t\t}", "public void Croppedimage(CropImage.ActivityResult result, ImageView iv, EditText et )\n {\n Uri resultUri = null; // get image uri\n if (result != null) {\n resultUri = result.getUri();\n }\n\n\n //set image to image view\n iv.setImageURI(resultUri);\n\n\n //get drawable bitmap for text recognition\n BitmapDrawable bitmapDrawable = (BitmapDrawable) iv.getDrawable();\n\n Bitmap bitmap = bitmapDrawable.getBitmap();\n\n TextRecognizer recognizer = new TextRecognizer.Builder(getApplicationContext()).build();\n\n if(!recognizer.isOperational())\n {\n Toast.makeText(this, \"Error No Text To Recognize\", Toast.LENGTH_LONG).show();\n }\n else\n {\n Frame frame = new Frame.Builder().setBitmap(bitmap).build();\n SparseArray<TextBlock> items = recognizer.detect(frame);\n StringBuilder ab = new StringBuilder();\n\n //get text from ab until there is no text\n for(int i = 0 ; i < items.size(); i++)\n {\n TextBlock myItem = items.valueAt(i);\n ab.append(myItem.getValue());\n\n }\n\n //set text to edit text\n et.setText(ab.toString());\n }\n\n }", "public void onCoverSelected() {\n final Optional<Uri> coverImageUriWrapper = entityToBind.getCoverImageUri();\n if (coverImageUriWrapper.isPresent()) {\n final int coverMaxWidth = assetsComputationHelper.getCoverMaxWidth();\n final int coverMaxHeight = assetsComputationHelper.getCoverMaxHeight();\n Glide.with(getContext())\n .load(coverImageUriWrapper.get())\n .override(coverMaxWidth, coverMaxHeight)\n .centerCrop()\n .into(coverImageView);\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (resultCode == RESULT_OK) {\n if (requestCode == CommenString.TAKE_PHOTO) {\n cameraUtil.photoZoomFromTake(CropperImageScale.square);\n } else if (requestCode == CommenString.LOCAL_PHOTO) {\n List<String> selectedImage = data.getStringArrayListExtra(\"paths\");\n cameraUtil.photoZoomFromMapStorage(selectedImage.get(0),\n CropperImageScale.square);\n } else if (requestCode == CommenString.PHOTO_RESULT) {\n Bundle extras = data.getExtras();\n if (extras != null) {\n headBitmap = extras.getParcelable(\"data\");\n image_up.setImageBitmap(headBitmap);\n }\n } else {\n }\n }\n }", "@Override\r\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\r\n\t\tif (requestCode == CAMERA_REQUEST_CODE) {\r\n\t\t\tif (data == null) {\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tBundle extras = data.getExtras();\r\n\t\t\t\tif (extras != null) {\r\n\t\t\t\t\tBitmap bm = extras.getParcelable(\"data\");\r\n\t\t\t\t\tUri uri = saveBitmap(bm);\r\n\t\t\t\t\tstartImageZoom(uri);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else if (requestCode == GALLERY_REQUEST_CODE) {\r\n\t\t\tif (data == null) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tUri uri;\r\n\t\t\turi = data.getData();\r\n\t\t\tUri fileUri = convertUri(uri);\r\n\t\t\tstartImageZoom(fileUri);\r\n\t\t} else if (requestCode == CROP_REQUEST_CODE) {\r\n\t\t\tif (data == null) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tBundle extras = data.getExtras();\r\n\t\t\tif (extras == null) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tbm = extras.getParcelable(\"data\");\r\n\t\t\tiv_user_img.setImageBitmap(bm);\r\n\t\t\t// sendImage(bm);\r\n\t\t}\r\n\t}", "public void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (resultCode != Activity.RESULT_OK) {\n return;\n }\n switch (requestCode) {\n case REQUEST_CODE_INITIAL_PIC_FROM_CAMERA:\n cropPicture();\n break;\n case REQUEST_CODE_INITIAL_PIC_FROM_GALLERY:\n try {\n //upload(sdcardTempFile.getAbsolutePath());\n } catch (Exception e) {\n e.printStackTrace();\n }\n break;\n case REQUEST_CODE_INITIAL_PIC_FROM_CROP:\n try {\n //upload(sdcardTempFile.getAbsolutePath());\n } catch (Exception e) {\n e.printStackTrace();\n }\n break;\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n try {\n if (requestCode == PHOTO_REQUEST) {\n if (resultCode == RESULT_OK) {\n ArrayList<TImage> images = (ArrayList<TImage>) data.getSerializableExtra(\"images\");\n if (images != null && !images.isEmpty()) {\n String path = images.get(0).getOriginalPath();\n\n File file = new File(path);\n if (file != null && file.exists()) {\n this.img_head.setImageURI(Uri.parse(path));\n }\n uploadImage(file);\n }\n }\n } else if (requestCode == PHOTO_REQUEST_GALLERY) {\n if (data != null) {\n // 得到图片的全路径\n Uri uri = data.getData();\n crop(uri);\n }\n\n } else if (requestCode == PHOTO_REQUEST_CAMERA) {\n if (CommFunAndroid.hasSdcard()) {\n tempFile = new File(CommFunAndroid.getDiskCachePath(), PHOTO_FILE_NAME);\n crop(Uri.fromFile(tempFile));\n } else {\n showMsg(\"未找到存储卡,无法存储照片!\");\n }\n\n } else if (requestCode == PHOTO_REQUEST_CUT) {\n try {\n //将Uri图片转换为Bitmap\n InputStream inputStream = getContentResolver().openInputStream(uritempFile);\n\n\n bitmap = BitmapFactory.decodeStream(inputStream);\n\n\n// bitmap = data.getParcelableExtra(\"data\");\n this.img_head.setImageBitmap(bitmap);\n //showMsg(uritempFile.getPath());\n tempSmallFile = new File(uritempFile.getPath());\n uploadImage(tempSmallFile);//上传头像\n //boolean delete = tempFile.delete();\n //Log.i(\"register\", \"register tempFile delete = \" + delete);\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n super.onActivityResult(requestCode, resultCode, data);\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent intent) {\n\n\n //photo taken from cam\n if (requestCode == REQUEST_IMAGE_CAPTURE && resultCode == RESULT_OK) {\n if (_mImageUri != null) {\n showTakenPhoto();\n }\n }\n\n //photo chosen\n if (requestCode == REQUEST_IMAGE_PICK && resultCode == RESULT_OK) {\n _mImageUri = intent.getData();\n\n\n try {\n _bitmap = MediaStore.Images.Media.getBitmap(\n getContentResolver(), _mImageUri);\n ImageView imageView = (ImageView) findViewById(R.id.uploadedImage);\n\n\n assert _bitmap != null;\n String[] filePathColumn = {MediaStore.Images.Media.DATA};\n\n Cursor cursor = getContentResolver().query(\n _mImageUri, filePathColumn, null, null, null);\n cursor.moveToFirst();\n\n int columnIndex = cursor.getColumnIndex(filePathColumn[0]);\n String filePath = cursor.getString(columnIndex);\n cursor.close();\n rotateImage(filePath);\n imageView.setImageBitmap(scaleBitmap(_bitmap, 350));\n _uploadButton.setEnabled(true);\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n\n\n }", "private Rect checkRectBounds(Rect cropRect, boolean resize) {\n Rect image = getImageRect();\n Rect newCropRect = cropRect;\n //check if inside image\n int width = newCropRect.width();\n int height = newCropRect.height();\n\n if (!image.contains(newCropRect)) {\n if (aspectRatio >= 0.0) {\n if (resize) {\n // new cropRect to big => try and fix size\n // check corners\n if (touchedCorner == TOP_LEFT) {\n if (image.left > newCropRect.left) {\n int delta = (int) ((image.left - newCropRect.left) / aspectRatio);\n newCropRect = new Rect(image.left, newCropRect.top + delta,\n newCropRect.right, newCropRect.bottom);\n }\n if (image.top > newCropRect.top) {\n int delta = (int) ((image.top - newCropRect.top) * aspectRatio);\n newCropRect = new Rect(newCropRect.left + delta, image.top,\n newCropRect.right, newCropRect.bottom);\n }\n } else if (touchedCorner == TOP_RIGHT) {\n if (image.right < newCropRect.right) {\n int delta = (int) ((newCropRect.right - image.right) / aspectRatio);\n newCropRect = new Rect(newCropRect.left, newCropRect.top + delta,\n image.right, newCropRect.bottom);\n }\n if (image.top > newCropRect.top) {\n int delta = (int) ((image.top - newCropRect.top) * aspectRatio);\n newCropRect = new Rect(newCropRect.left, image.top,\n newCropRect.right - delta, newCropRect.bottom);\n }\n } else if (touchedCorner == BOTTOM_RIGHT) {\n if (image.right < newCropRect.right) {\n int delta = (int) ((newCropRect.right - image.right) / aspectRatio);\n newCropRect = new Rect(newCropRect.left, newCropRect.top,\n image.right, newCropRect.bottom - delta);\n }\n if (image.bottom < newCropRect.bottom) {\n int delta = (int) ((newCropRect.bottom - image.bottom) * aspectRatio);\n newCropRect = new Rect(newCropRect.left, newCropRect.top,\n newCropRect.right - delta, image.bottom);\n }\n } else if (touchedCorner == BOTTOM_LEFT) {\n if (image.left > newCropRect.left) {\n int delta = (int) ((image.left - newCropRect.left) / aspectRatio);\n newCropRect = new Rect(image.left, newCropRect.top,\n newCropRect.right, newCropRect.bottom - delta);\n }\n if (image.bottom < newCropRect.bottom) {\n int delta = (int) ((newCropRect.bottom - image.bottom) * aspectRatio);\n newCropRect = new Rect(newCropRect.left + delta, newCropRect.top,\n newCropRect.right, image.bottom);\n }\n }\n } else {\n // check edges\n // left edges\n if (image.left > newCropRect.left) {\n newCropRect = new Rect(image.left, newCropRect.top,\n image.left + width, newCropRect.bottom);\n }\n // top edge\n if (image.top > newCropRect.top) {\n newCropRect = new Rect(newCropRect.left, image.top,\n newCropRect.right, image.top + height);\n }\n // right edge\n if (image.right < newCropRect.right) {\n newCropRect = new Rect(image.right - width, newCropRect.top,\n image.right, newCropRect.bottom);\n }\n // bottom edge\n if (image.bottom < newCropRect.bottom) {\n newCropRect = new Rect(newCropRect.left, image.bottom - height,\n newCropRect.right, image.bottom);\n }\n }\n } else {\n // cropRect not inside => try to fix it\n if (image.left > newCropRect.left) {\n newCropRect = new Rect(image.left, newCropRect.top,\n resize ? newCropRect.right : image.left + width,\n newCropRect.bottom);\n }\n\n if (image.top > newCropRect.top) {\n newCropRect = new Rect(newCropRect.left, image.top, newCropRect.right,\n resize ? newCropRect.bottom : image.top + height);\n }\n\n if (image.right < newCropRect.right) {\n newCropRect = new Rect(resize ? newCropRect.left : image.right - width,\n newCropRect.top, image.right, newCropRect.bottom);\n }\n\n if (image.bottom < newCropRect.bottom) {\n newCropRect = new Rect(newCropRect.left,\n resize ? newCropRect.top : image.bottom - height,\n newCropRect.right, image.bottom);\n }\n }\n }\n\n Rect minRect = getMinCropRect();\n //check min size\n width = newCropRect.width();\n if (width < minRect.width()) {\n if (touchedCorner == TOP_LEFT) {\n newCropRect = new Rect(newCropRect.right - minRect.width(),\n newCropRect.top, newCropRect.right, newCropRect.bottom);\n } else if (touchedCorner == TOP_RIGHT) {\n newCropRect = new Rect(newCropRect.left, newCropRect.top,\n newCropRect.left + minRect.width(),\n newCropRect.bottom);\n } else if (touchedCorner == BOTTOM_RIGHT) {\n newCropRect = new Rect(newCropRect.left, newCropRect.top,\n newCropRect.left + minRect.width(),\n newCropRect.bottom);\n } else if (touchedCorner == BOTTOM_LEFT) {\n newCropRect = new Rect(newCropRect.right - minRect.width(),\n newCropRect.top, newCropRect.right, newCropRect.bottom);\n }\n }\n\n height = newCropRect.height();\n if (height < minRect.height()) {\n if (touchedCorner == TOP_LEFT) {\n newCropRect = new Rect(newCropRect.left,\n newCropRect.bottom - minRect.height(),\n newCropRect.right, newCropRect.bottom);\n } else if (touchedCorner == TOP_RIGHT) {\n newCropRect = new Rect(newCropRect.left,\n newCropRect.bottom - minRect.height(),\n newCropRect.right, newCropRect.bottom);\n } else if (touchedCorner == BOTTOM_RIGHT) {\n newCropRect = new Rect(newCropRect.left, newCropRect.top,\n newCropRect.right,\n newCropRect.top + minRect.height());\n } else if (touchedCorner == BOTTOM_LEFT) {\n newCropRect = new Rect(newCropRect.left,\n newCropRect.top, newCropRect.right,\n newCropRect.top + minRect.height());\n }\n }\n\n return newCropRect;\n }", "private void setPic() {\n int targetW = img_clip.getWidth();\n int targetH = img_clip.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n img_clip.setImageBitmap(bitmap);\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (resultCode == Activity.RESULT_OK) {\n Uri selectedImageUri = data.getData();\n ParcelFileDescriptor parcelFileDescriptor;\n try {\n parcelFileDescriptor = getActivity().getContentResolver().openFileDescriptor(selectedImageUri, \"r\");\n FileDescriptor fileDescriptor = parcelFileDescriptor.getFileDescriptor();\n Bitmap mealImage = BitmapFactory.decodeFileDescriptor(fileDescriptor);\n parcelFileDescriptor.close();\n\n\n Bitmap mealImageScaled = Bitmap.createScaledBitmap(mealImage,\n LTAPIConstants.IMAGE_WIDTH_SIZE, LTAPIConstants.IMAGE_WIDTH_SIZE\n * mealImage.getHeight() / mealImage.getWidth(), false);\n\n Matrix matrix = new Matrix();\n //matrix.postRotate(90);\n Bitmap rotatedScaledMealImage = Bitmap.createBitmap(mealImageScaled, 0,\n 0, mealImageScaled.getWidth(), mealImageScaled.getHeight(),\n matrix, true);\n\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n rotatedScaledMealImage.compress(Bitmap.CompressFormat.JPEG, 100, bos);\n\n byte[] scaledData = bos.toByteArray();\n photoFile = new ParseFile(\"tripcard_photo.jpg\", scaledData);\n addPhotoToMealAndReturn(photoFile);\n\n photoFile.saveInBackground(new SaveCallback() {\n\n public void done(ParseException e) {\n if (e != null) {\n Toast.makeText(getActivity(),\n \"Error saving: \" + e.getMessage(),\n Toast.LENGTH_LONG).show();\n } else {\n debugShowToast(\"Saved???? \");\n }\n }\n });\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n // Override Android default landscape orientation and save portrait\n }\n }", "public void onPostExecute(ResizeBundle result) {\n JpegPictureCallback.this.saveFinalPhoto(result.jpegData, name, result.exif, cameraProxy);\n }", "public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n CropImage.ActivityResult result = CropImage.getActivityResult(data);\n if (resultCode == -1) {\n if (requestCode != 11) {\n String valueOf = String.valueOf(result.getUri());\n this.imageUri = valueOf;\n if (valueOf != null) {\n if (this.isattach.booleanValue()) {\n this.tv_attachfile.setText(this.imageUri);\n fileType = \"png\";\n Log.i(\"datafile\",result.toString() + \"\\n\" + result.getOriginalUri() + \"\\n\" + result.getUri());\n this.isattach = false;\n this.attach_file = this.imageUri;\n } else {\n this.eventphoto.setImageURI(Uri.parse(this.imageUri));\n this.upload_photo = this.imageUri;\n this.ismageEdited = true;\n }\n }\n } else if (requestCode == 11){\n this.tv_attachfilepdf.setText(data.getDataString());\n fileType = \"pdf\";\n\n String filePath = data.getData().getPath();\n String fileName = data.getData().getLastPathSegment();\n this.attach_file = data.getData().getPath();\n Log.i(\"file\", filePath + \"\\n\" + fileName + \"\\n\" + attach_file);\n\n /*uri = data.getData();\n this.attach_file = data.getData().toString();\n Log.i(\"uriii\", uri.toString());\n File file2 = new File(this.attach_file);\n Log.i(\"uriiName\", file2.getName());\n Log.i(\"uriiPath\", file2.getPath());\n Log.i(\"uriiParent\", file2.getParent());*/\n }\n }\n }", "@Override\n public void onClick(View v) {\n Bitmap zoomedBitmap= Bitmap.createScaledBitmap(bmp, photoView.getWidth(), photoView.getHeight(), true);\n SaveImage(zoomedBitmap);\n }", "public void handle(ActionEvent e) {\n Bounds selectionBounds = rubberBandSelection.getBounds();\n\n // show bounds info\n System.out.println( \"Selected area: \" + selectionBounds);\n\n // crop the image\n crop( selectionBounds);\n\n }", "private void startCropImageActivity(Uri imageUri) {\n CropImage.activity(imageUri)\n .setGuidelines(CropImageView.Guidelines.ON)\n .setMultiTouchEnabled(true)\n .start(this);\n }", "public void onPostExecute(byte[] originalJpegData) {\n PhotoModule.this.mInHdrProcess = false;\n ExifInterface exif = Exif.getExif(originalJpegData);\n final NamedEntity name = PhotoModule.this.mNamedImages.getNextNameEntity();\n if (PhotoModule.this.mShouldResizeTo16x9) {\n ResizeBundle dataBundle = new ResizeBundle();\n dataBundle.jpegData = originalJpegData;\n dataBundle.targetAspectRatio = 1.7777778f;\n dataBundle.exif = exif;\n new AsyncTask<ResizeBundle, Void, ResizeBundle>() {\n /* Access modifiers changed, original: protected|varargs */\n public ResizeBundle doInBackground(ResizeBundle... resizeBundles) {\n return PhotoModule.this.cropJpegDataToAspectRatio(resizeBundles[0]);\n }\n\n /* Access modifiers changed, original: protected */\n public void onPostExecute(ResizeBundle result) {\n JpegPictureCallback.this.saveFinalPhoto(result.jpegData, name, result.exif, cameraProxy);\n }\n }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, new ResizeBundle[]{dataBundle});\n } else {\n JpegPictureCallback.this.saveFinalPhoto(originalJpegData, name, exif, cameraProxy);\n }\n if (PhotoModule.this.isOptimizeCapture && exif.hasThumbnail()) {\n PhotoModule.this.updateThumbnail(exif);\n }\n }", "public static Bitmap cropImageVer2(Bitmap img, Bitmap templateImage, int width, int height) {\n // Merge two images together.\n int x=5,y=5;\n Bitmap bm = Bitmap.createBitmap(img.getWidth(), img.getHeight(), Bitmap.Config.ARGB_8888);\n Canvas combineImg = new Canvas(bm);\n combineImg.drawBitmap(img, 0f, 0f, null);\n combineImg.drawBitmap(templateImage, 0f, 0f, null);\n \n // Create new blank ARGB bitmap.\n Bitmap finalBm = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);\n \n // Get the coordinates for the middle of bm.\n int hMid = bm.getHeight() / 2;\n int wMid = bm.getWidth() / 2;\n int hfMid = finalBm.getHeight() / 2;\n int wfMid = finalBm.getWidth() / 2;\n\n int y2 = hfMid;\n int x2 = wfMid;\n\n for ( y = hMid; y >= 0; y--) {\n // Check Upper-left section of combineImg.\n for ( x = wMid; x >= 0; x--) {\n if (x2 < 0) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n // Get out of loop once it hits the left side of the template.\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2--;\n }\n \n // Check upper-right section of combineImage.\n x2 = wfMid;\n for (x = wMid; x < bm.getWidth(); x++) {\n if (x2 >= finalBm.getWidth()) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n // Get out of loop once it hits the right side of the template.\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2++;\n }\n \n // Get out of loop once it hits top most part of the template.\n int px = bm.getPixel(wMid, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } \n x2 = wfMid;\n y2--;\n }\n\n x2 = wfMid;\n y2 = hfMid;\n for (y = hMid; y <= bm.getHeight(); y++) {\n // Check bottom-left section of combineImage.\n for ( x = wMid; x >= 0; x--) {\n if (x2 < 0) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n // Get out of loop once it hits the left side of the template.\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2--;\n }\n\n // Check bottom-right section of combineImage.\n x2 = wfMid;\n for (x = wMid; x < bm.getWidth(); x++) {\n if (x2 >= finalBm.getWidth()) {\n break;\n }\n \n int px = bm.getPixel(x, y);\n // Get out of loop once it hits the right side of the template.\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2++;\n }\n \n // Get out of loop once it hits bottom most part of the template.\n int px = bm.getPixel(wMid, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } \n x2 = wfMid;\n y2++;\n }\n \n // Get rid of images that we finished with to save memory.\n img.recycle();\n templateImage.recycle();\n bm.recycle();\n return finalBm;\n }", "public BufferedImage crop(int row,int col){\n\t\treturn imageSheet.getSubimage((col*64)-64, (row*64)-64, 64, 64);\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (resultCode == RESULT_OK && data.getData()!=null) {\n if (requestCode == 2) {\n Uri selectedImage = data.getData();\n String[] filePath = { MediaStore.Images.Media.DATA };\n Cursor c = getContentResolver().query(selectedImage,filePath, null, null, null);\n c.moveToFirst();\n int columnIndex = c.getColumnIndex(filePath[0]);\n String picturePath = c.getString(columnIndex);\n c.close();\n Bitmap thumbnail = (BitmapFactory.decodeFile(picturePath));\n thumbnail= AppUtils.getResizedBitmap(thumbnail, 400);\n ivPic.setImageBitmap(thumbnail);\n\n //either update existing thumbnail\n if(thumbnailImage != null){\n thumbnailImage.setImage(thumbnail);\n viewModel.updateThumbnail(thumbnailImage);\n }\n //or create a new thumbnail\n else{\n contactGroup.setThumbnailId((int) viewModel.addThumbnailGetId(new ThumbnailImage(thumbnail)));\n viewModel.updateGroup(contactGroup);\n }\n }\n }\n }", "public native MagickImage chopImage(Rectangle chopInfo)\n\t\t\tthrows MagickException;", "public boolean isRectangularCrop() {\r\n return isRectangularCrop;\r\n }", "@Override\n\t protected int getCropItem()\n\t {\n\t\t return cropID;\n\t }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tif (resultCode == RESULT_OK) {\n\n\t\t\tif (requestCode == Constants.REQUEST_CODE_PROFILE_IMAGE_CAMERA) {\n\n\t\t\t\tUri imageUri = Utilities.createImage();\n\t\t\t\tUtilities.startCropImage(ProfileActivity.this,\n\t\t\t\t\t\tConstants.REQUEST_CODE_PROFILE_IMAGE_CROP, imageUri);\n imageUriUpload = imageUri;\n\t\t\t} else if (requestCode == Constants.REQUEST_CODE_PROFILE_IMAGE_GALLERY) {\n\n\t\t\t\tUri imageUri = data.getData();\n\t\t\t\tUtilities.startCropImage(ProfileActivity.this,\n\t\t\t\t\t\tConstants.REQUEST_CODE_PROFILE_IMAGE_CROP, imageUri);\n imageUriUpload = imageUri;\n\t\t\t} else if (requestCode == Constants.REQUEST_CODE_PROFILE_IMAGE_CROP) {\n\n\t\t\t\tBundle extras = data.getExtras();\n\t\t\t\tBitmap imgBmp = extras.getParcelable(\"data\");\n\t\t\t\tmProfileImg.setImageBitmap(imgBmp);\n\t\t\t\tmProfileImg.setTag(imgBmp);\n\t\t\t\tisImageChanged = true;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "private void prepararImagenYStorage() {\n mImageBitmap = null;\n\n //this.capturarFotoButton = (Button) findViewById(R.id.capturarFotoButton);\n// setBtnListenerOrDisable(\n// this.capturarFotoButton,\n// mTakePicSOnClickListener,\n// MediaStore.ACTION_IMAGE_CAPTURE\n// );\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.FROYO) {\n mAlbumStorageDirFactory = new FroyoAlbumDirFactory();\n } else {\n mAlbumStorageDirFactory = new BaseAlbumDirFactory();\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n snackbar.dismiss();\n if(requestCode == REQUEST_CODE_GALLERY && resultCode == RESULT_OK && data !=null){\n Uri uri = data.getData();\n try{\n InputStream inputStream = getContentResolver().openInputStream(uri);\n Bitmap bitmap = BitmapFactory.decodeStream(inputStream);\n profilePic.setImageBitmap(bitmap);\n imageSelected = \"Yes\";\n Toast.makeText(getApplicationContext(),\"Image Selected !!\",Toast.LENGTH_LONG).show();\n\n }catch (FileNotFoundException e){\n e.printStackTrace();\n }\n }\n\n //when use device camera\n\n if (requestCode == REQUEST_CODE_CAMERA && resultCode == Activity.RESULT_OK) {\n Bitmap photo = (Bitmap) data.getExtras().get(\"data\");\n profilePic.setImageBitmap(photo);\n imageSelected = \"Yes\";\n Toast.makeText(getApplicationContext(),\"Image Selected !!\",Toast.LENGTH_LONG).show();\n\n }\n\n /**if(requestCode == REQUEST_CODE_CAMERA && resultCode == RESULT_OK && data !=null){\n Uri uri = data.getData();\n try{\n /**BitmapFactory.Options options = new BitmapFactory.Options();\n options.inSampleSize = 8;\n Bitmap bitmap = BitmapFactory.decodeFile(FileUri.getPath());\n profilePic.setImageBitmap(bitmap);\n\n imageSelected = \"Yes\";\n Toast.makeText(getApplicationContext(),\"Image Selected !!\",Toast.LENGTH_LONG).show();**/\n /** InputStream inputStream = getContentResolver().openInputStream(uri);\n Bitmap bitmap = BitmapFactory.decodeStream(inputStream);\n profilePic.setImageBitmap(bitmap);\n imageSelected = \"Yes\";\n Toast.makeText(getApplicationContext(),\"Image Selected !!\",Toast.LENGTH_LONG).show();\n }catch (Exception e){\n e.printStackTrace();\n }\n }**/\n super.onActivityResult(requestCode, resultCode, data);\n }", "public void setCropRect(Rect cropRect) {\n this.cropRect = cropRect;\n //invalidate();\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == ACTIVITY_START_CAMERA_APP && resultCode == RESULT_OK){\n /*//Todo: Mensaje para mostrar al usuario al capturar la fotografia\n// Toast.makeText(this,\"Picture taken successfully\",Toast.LENGTH_LONG).show();\n\n //Todo: Se crea el objeto Bundle con el nombre extras\n Bundle extras = data.getExtras();\n //Todo: Devuelve el bundle que contenga el intent\n Bitmap photoCaptureBitmap = (Bitmap) extras.get(\"data\");\n //Todo: Se asigna a mPhotoCapturedImageView el valor que contenga el Bitmap photoCaptureBitmap\n mPhotoCapturedImageView.setImageBitmap(photoCaptureBitmap);\n*/\n //Bitmap photoCaptureBitmap = BitmapFactory.decodeFile(mImageFileLocation);\n //mPhotoCapturedImageView.setImageBitmap(photoCaptureBitmap);\n rotateImage(setReduceImageSize());\n }\n }", "private void startCropImageActivity(Uri imageUri, int requestCode) {\n Intent vCropIntent = CropImage.activity(imageUri)\n .setGuidelines(CropImageView.Guidelines.ON)\n .setMultiTouchEnabled(true)\n .getIntent(this);\n\n startActivityForResult(vCropIntent, requestCode);\n }", "public static Intent getCropImageIntent(Uri photoUri) {\n Intent intent = new Intent(\"com.android.camera.action.CROP\");\n intent.setDataAndType(photoUri, \"image/*\");\n intent.putExtra(\"crop\", \"true\");\n intent.putExtra(\"aspectX\", 1);\n intent.putExtra(\"aspectY\", 1);\n intent.putExtra(\"outputX\", ICON_SIZE);\n intent.putExtra(\"outputY\", ICON_SIZE);\n intent.putExtra(\"return-data\", true);\n return intent;\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n switch (requestCode) {\n case PICK_FROM_GALLERY_REQUEST_CODE:\n if (resultCode == RESULT_OK) {\n Uri targetUri = data.getData();\n String path = ImageFilePath.getPath(this, data.getData());\n Bitmap bitmap;\n try {\n bitmap = MediaStore.Images.Media.getBitmap(getContentResolver(), targetUri);\n Bitmap finalBitmap = BitmapMods.modifyOrientation(bitmap, path);\n mImages.add(BitmapMods.getResizedBitmap(finalBitmap, 400));\n initializeRecyclerView();\n } catch (Exception e) {\n onPhotoError();\n e.printStackTrace();\n }\n }\n break;\n\n case PICK_FROM_CAMERA_REQUEST_CODE:\n if (resultCode == RESULT_OK) {\n try {\n @SuppressWarnings(\"ConstantConditions\") Bitmap photo = (Bitmap) data.getExtras().get(\"data\");\n mImages.add(photo);\n initializeRecyclerView();\n } catch (Exception e) {\n onPhotoError();\n e.printStackTrace();\n }\n }\n }\n }", "private void processAndSetImage() {\n\n // Resample the saved image to fit the ImageView\n mResultsBitmap = resamplePic(this, mTempPhotoPath);\n\n// tv.setText(base64conversion(photoFile));\n//\n// Intent intent = new Intent(Intent.ACTION_SEND);\n// intent.setType(\"text/plain\");\n// intent.putExtra(Intent.EXTRA_TEXT, base64conversion(photoFile));\n// startActivity(intent);\n\n /**\n * UPLOAD IMAGE USING RETROFIT\n */\n\n retroFitHelper(base64conversion(photoFile));\n\n // Set the new bitmap to the ImageView\n imageView.setImageBitmap(mResultsBitmap);\n }", "protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n switch (requestCode) {\n case SELECTED_PICTURE:\n if (resultCode == RESULT_OK) {\n uri = data.getData();\n\n\n Log.e(\"Image path is \", \"\" + uri);\n String[] projection = {MediaStore.Images.Media.DATA};\n\n Cursor cursor = getContentResolver().query(uri, projection,\n null, null, null);\n cursor.moveToFirst();\n\n int columnIndex = cursor.getColumnIndex(projection[0]);\n String filePath = cursor.getString(columnIndex);\n String path = filePath;\n img = path;\n\n cursor.close();\n\n\n Bitmap yourSelectedImage = BitmapFactory.decodeFile(filePath);\n\n Drawable d = new BitmapDrawable(yourSelectedImage);\n\n newImage.setImageDrawable(d);\n Toast.makeText(getApplicationContext(), filePath,\n Toast.LENGTH_SHORT).show();\n\n\n\n }\n break;\n\n default:\n break;\n }\n }", "public void changeAction()\r\n {\r\n bufferedImage = imageCopy[0];\r\n edited = imageCopy[1];\r\n cropedPart = imageCopy[2];\r\n bufferedImage = imageCopy[3];\r\n\r\n isBlured = statesCopy[0];\r\n isReadyToSave = statesCopy[1];\r\n isChanged = statesCopy[2];\r\n isInverted = statesCopy[3];\r\n isRectangularCrop = statesCopy[4];\r\n isCircularCrop = statesCopy[5];\r\n isImageLoaded = statesCopy[6];\r\n }", "@Override\n protected void onActivityResult(int arg0, int arg1, Intent arg2) {\n super.onActivityResult(arg0, arg1, arg2);\n if (arg0 == 1) {\n // 相册返回\n if (arg1 == RESULT_OK) {\n if (arg2.getExtras() == null) {\n return;\n }\n photoList = (ArrayList<Map<String, Object>>) arg2\n .getSerializableExtra(\"selectedList\");\n if (photoList != null && photoList.size() > 0) {\n String outFile = getParse().isNull(\n photoList.get(0).get(\"imagePath\")).replace(\n \".\",\n MyUtils.getInstance().MD5(\n String.valueOf(System.currentTimeMillis()))\n + \".\");\n startPhotoZoom(\n Uri.fromFile(new File(getParse().isNull(\n photoList.get(0).get(\"imagePath\")))),\n Uri.fromFile(new File(outFile)));\n }\n }\n } else if (arg0 == 2) {\n // 裁剪图片返回\n if (arg1 == RESULT_OK) {\n File file = null;\n if (Environment.getExternalStorageState().equals(\n Environment.MEDIA_MOUNTED)) {\n file = new File(getExternalCacheDir().getPath()\n + \"/images_data\");\n } else {\n file = new File(getCacheDir().getPath() + \"/images_data\");\n }\n if (!file.exists()) {\n file.mkdirs();\n }\n file = new File(file.getPath()\n + \"/\"\n + MyUtils.getInstance().MD5(\n String.valueOf(System.currentTimeMillis()))\n + \".jpeg\");\n Bundle bundle = arg2.getExtras();\n Bitmap bitmap = null;\n if (bundle != null) {\n bitmap = bundle.getParcelable(\"data\");\n }\n\n if (bitmap != null) {// 保存图片\n FileOutputStream fos = null;\n try {\n fos = new FileOutputStream(file.getPath());\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, fos);\n imageFile = file.getPath();\n bitmap.recycle();\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n // e.printStackTrace();\n utils.showToast(getApplicationContext(), \"保存图片失败\");\n imageFile = null;\n }\n submitImage();\n }\n\n }\n } else if (arg0 == 3) {\n // 系统相机返回\n if (MyApplication.fileUri != null) {\n BitmapFactory.Options op = new BitmapFactory.Options();\n op.inSampleSize = 16;\n Bitmap bm = BitmapFactory.decodeFile(\n MyApplication.fileUri.getPath(), op);\n if (bm == null) {\n return;\n }\n Map<String, Object> map = new HashMap<String, Object>();\n map.put(\"isCheck\", true);\n map.put(\"imagePath\", MyApplication.fileUri);\n photoList.add(0, map);\n if (photoList != null && photoList.size() > 0) {\n String outFile = getParse().isNull(\n photoList.get(0).get(\"imagePath\"))\n .replace(\n \".\",\n utils.MD5(String.valueOf(System\n .currentTimeMillis())) + \".\");\n startPhotoZoom(\n Uri.fromFile(new File(getParse().isNull(\n photoList.get(0).get(\"imagePath\")))),\n Uri.fromFile(new File(outFile)));\n }\n }\n } else if (arg0 == 10) {// 修改其它资料成功返回\n if (arg1 == RESULT_OK) {\n\n }\n }\n }", "@Override\n public void onSuccess(Uri uri) {\n Picasso.get().load(uri).fit().centerCrop().into(someimage);\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode == PICK_IMAGE_REQUEST && resultCode == RESULT_OK && data != null && data.getData() != null) {\n FilePathUri = data.getData();\n try {\n bitmap = MediaStore.Images.Media.getBitmap(getContentResolver(), FilePathUri);\n cowImage.setImageBitmap(bitmap);\n galleryChoose.setText(\"Image Selected\");\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }else if (requestCode == 123) {\n File imgFile = new File(pictureImagePath);\n if(imgFile.exists()){\n FilePathUri = Uri.parse(pictureImagePath);\n FilePathUri = photoURI;\n Bitmap myBitmap = BitmapFactory.decodeFile(imgFile.getAbsolutePath());\n //ImageView myImage = (ImageView) findViewById(R.id.imageviewTest);\n cowImage.setImageBitmap(myBitmap);\n\n }\n }\n else{\n System.out.println(\"error\" );\n }\n }", "private void setPic() {\n int targetW = 210;\n int targetH = 320;\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(previewPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(previewPhotoPath, bmOptions);\n bitmap = RotateBitmap(bitmap,270);\n preview.setImageBitmap(bitmap);\n }", "public void camara(){\n Intent fotoPick = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);\n String fecha = new SimpleDateFormat(\"yyyy_MM_dd_HH_mm_ss\").format(new Date());\n Uri uriSavedImage=Uri.fromFile(new File(getExternalFilesDir(Environment.DIRECTORY_DCIM),\"inmueble_\"+id+\"_\"+fecha+\".jpg\"));\n fotoPick.putExtra(MediaStore.EXTRA_OUTPUT, uriSavedImage);\n startActivityForResult(fotoPick,TAKE_PICTURE);\n\n }", "private Bitmap setPic() {\n int targetH = 0; //mImageView.getHeight();\n int targetW = 0; //mImageView.getWidth();\n\n\n\t\t/* Get the size of the image */\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n if( photoH > photoW ){\n /*Se definen las dimensiones de la imagen que se desea generar*/\n targetH = Const.MedidasReduccionImagen.PEQUENA_PORTRAIT.heigh; // 640;\n targetW = Const.MedidasReduccionImagen.PEQUENA_PORTRAIT.width; //480;\n }else{\n targetH = Const.MedidasReduccionImagen.PEQUENA_LANDSCAPE.heigh; //480;\n targetW = Const.MedidasReduccionImagen.PEQUENA_LANDSCAPE.width; //640;\n }\n\n\t\t/* Figure out which way needs to be reduced less */\n int scaleFactor = 0;\n if ((targetW > 0) || (targetH > 0)) {\n scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n }\n\n\t\t/* Set bitmap options to scale the image decode target */\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n\t\t/* Decode the JPEG file into a Bitmap */\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\n return bitmap;\n }", "public void onPostExecute(ResizeBundle result) {\n LongshotPictureCallback.this.saveFinalPhoto(result.jpegData, LongshotPictureCallback.this.mName, result.exif, camera, externalBundle);\n }", "public void deleteFileFromGallary() {\n String[] projection = {\n MediaStore.Images.ImageColumns.SIZE, MediaStore.Images.ImageColumns.DISPLAY_NAME,\n MediaStore.Images.ImageColumns.DATA, BaseColumns._ID,\n };\n // intialize the Uri and the Cursor, and the current expected size.\n\n Cursor c = null;\n Uri u = MediaStore.Images.Media.EXTERNAL_CONTENT_URI;\n if (CurrentFile != null) {\n\n // Query the Uri to get the data path. Only if the Uri is valid,\n // and we had a valid size to be searching for.\n if ((u != null) && (CurrentFile.length() > 0)) {\n c = managedQuery(u, projection, null, null, null);\n }\n // If we found the cursor and found a record in it (we also have the\n // size).\n if ((c != null) && (c.moveToFirst())) {\n do {\n // Check each area in the gallary we built before.\n\n boolean bFound = false;\n for (String sGallery : GalleryList) {\n if (sGallery.equalsIgnoreCase(c.getString(1))) {\n bFound = true;\n break;\n }\n }\n\n // // To here we looped the full gallery.\n if (!bFound) {\n // This is the NEW image. If the size is bigger, copy\n // it.\n\n // Then delete it!\n File f = new File(c.getString(2));\n // Ensure it's there, check size, and delete!\n if ((f.exists()) && (CurrentFile.length() < c.getLong(0))\n && (CurrentFile.delete())) {\n // Finally we can stop the copy.\n\n try {\n CurrentFile.createNewFile();\n FileChannel source = null;\n FileChannel destination = null;\n try {\n source = new FileInputStream(f).getChannel();\n destination = new FileOutputStream(CurrentFile).getChannel();\n destination.transferFrom(source, 0, source.size());\n } finally {\n if (source != null) {\n source.close();\n }\n if (destination != null) {\n destination.close();\n }\n }\n } catch (IOException e) {\n // Could not copy the file over.\n // app.CallToast(PhotosActivity.this,\n // getString(R.string.ErrorOccured), 0);\n }\n\n }\n ContentResolver cr = getContentResolver();\n cr.delete(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, BaseColumns._ID\n + \"=\" + c.getString(3), null);\n break;\n }\n } while (c.moveToNext());\n }\n\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if(requestCode == TAKE_IMAGE && resultCode == RESULT_OK){\n Bundle extra = data.getExtras();\n bitmap = (Bitmap) extra.get(\"data\");\n imageView.setImageBitmap(bitmap);\n }\n else {\n if (requestCode == SELECT_IMAGE && resultCode == RESULT_OK) {\n Uri targetUri = data.getData();\n Toast.makeText(getApplicationContext(), targetUri.toString(), Toast.LENGTH_SHORT).show();\n //textTargetUri.setText(targetUri.toString());\n Bitmap bitmap;\n try {\n\n bitmap = BitmapFactory.decodeStream(getContentResolver().openInputStream(targetUri));\n imageView.setImageBitmap(bitmap);\n } catch (FileNotFoundException e) {\n\n e.printStackTrace();\n }\n /*String[] filePathColumn = {MediaStore.Images.Media.DATA};\n\n\t\t\tCursor cursor = getContentResolver().query(data.getData(), filePathColumn, null, null, null);\n\t\t\tcursor.moveToFirst();\n\n\t\t\tint columnIndex = cursor.getColumnIndex(filePathColumn[0]);\n\n\t\t\tString filePath = cursor.getString(columnIndex);\n\t\t\tcursor.close();\n\n\t\t\tBitmap yourSelectedImage = BitmapFactory.decodeFile(filePath);\n\t\t\tToast.makeText(getApplicationContext(), filePath, 1000).show();\n\t\t\timageView.setImageBitmap(yourSelectedImage);\n*/\n }\n }\n if(requestCode == 0 && resultCode == RESULT_OK){\n Bundle extra = data.getExtras();\n bitmap = (Bitmap) extra.get(\"data\");\n // imageView.setImageBitmap(bitmap);\n\n\n File root = Environment.getExternalStorageDirectory();\n File file = new File(root.getAbsolutePath()+\"/DCIM/Camera/img.jpg\");\n try\n {\n file.createNewFile();\n FileOutputStream ostream = new FileOutputStream(file);\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, ostream);\n ostream.close();\n }\n catch (Exception e)\n {\n e.printStackTrace();\n Toast.makeText(this,\"Failed to save image, try again\",Toast.LENGTH_LONG).show();\n }\n }\n }", "public void perform(GameState state) {\n\n selectCrop(state);\n\n// returnBack(state); // add back in for command lines\n }", "@Override\n protected void onActivityResult(int arg0, int arg1, Intent data) {\n\n switch (arg0) {\n case TAKE_PICTURE:\n if (mAdapter.mList.size() < 3) {\n if (arg1 == RESULT_OK) {\n if (null != data) {\n if (data.hasExtra(\"data\")) {\n mGrideviewUpload.setVisibility(View.VISIBLE);\n try {\n Bitmap thumbnail = data.getParcelableExtra(\"data\");\n mAdapter.mList.add(thumbnail);\n mAdapter.notifyDataSetChanged();\n } catch (Exception e) {\n e.printStackTrace();\n CustomToast.showShortToast(mContext, \"获取图片错误\");\n }\n\n }\n } else {\n mGrideviewUpload.setVisibility(View.VISIBLE);\n try {\n Bitmap bitmap;\n if (mPop != null && !TextUtils.isEmpty(mPop.getFilePath())) {\n File file = new File(mPop.getFilePath());\n mPicturePathList.add(mPop.getFilePath());\n mAdapter.mPicList.add(mPop.getFilePath());\n // bitmap = BitmapFactory.decodeFile(mPop.getFilePath(),\n // CommonUtils.getBitmapOption(4));\n bitmap = ImageLoader.getInstance().loadImageSync(\"file://\" + mPop.getFilePath());\n ImageLoader.getInstance().loadImage(\"file://\" + mPop.getFilePath(), new ImageLoadingListener() {\n\n @Override\n public void onLoadingStarted(String arg0, View arg1) {\n\n }\n\n @Override\n public void onLoadingFailed(String arg0, View arg1, FailReason arg2) {\n\n }\n\n @Override\n public void onLoadingComplete(String arg0, View arg1, Bitmap bitmap) {\n mAdapter.mList.add(bitmap);\n mAdapter.notifyDataSetChanged();\n }\n\n @Override\n public void onLoadingCancelled(String arg0, View arg1) {\n\n }\n });\n }\n else {\n File file = new File(mPhotoWillDestoryPlath);\n mPicturePathList.add(mPhotoWillDestoryPlath);\n mAdapter.mPicList.add(mPhotoWillDestoryPlath);\n bitmap = ImageLoader.getInstance().loadImageSync(\"file://\" +\n mPhotoWillDestoryPlath);\n ImageLoader.getInstance().loadImage(\"file://\" + mPhotoWillDestoryPlath, new ImageLoadingListener() {\n\n @Override\n public void onLoadingStarted(String arg0, View arg1) {\n\n }\n\n @Override\n public void onLoadingFailed(String arg0, View arg1, FailReason arg2) {\n\n }\n\n @Override\n public void onLoadingComplete(String arg0, View arg1, Bitmap bitmap) {\n mAdapter.mList.add(bitmap);\n mAdapter.notifyDataSetChanged();\n }\n\n @Override\n public void onLoadingCancelled(String arg0, View arg1) {\n\n }\n });\n // bitmap = BitmapFactory.decodeFile(,\n // CommonUtils.getBitmapOption(4));\n }\n // mAdapter.mList.add(CommonUtils.getBitmapFromFile(file,CAMERA_REQUESTz\n // 70, 70));//getImageFromLocal如果还是闪退可以试用这个方法\n // // 将图\n // mAdapter.mList.add(bitmap);\n\n } catch (Exception e) {\n e.printStackTrace();\n CustomToast.showShortToast(mContext, \"拍照失败,请确认是否开启拍照访问权限或存储卡不存在或内存已满!\");\n }\n\n }\n\n }\n }\n break;\n\n case 1015:\n if (arg1 == 1015) {\n if (data != null) {\n visitor_address_change.setTextColor(getResources().getColor(R.color.C4));\n visitor_address_change.setText(data.getStringExtra(\"adress\"));\n php_Lng = data.getStringExtra(\"Lng\");\n php_Lat = data.getStringExtra(\"Lat\");\n php_Address = data.getStringExtra(\"adress\");\n mOkTv.setText(\"完成\");\n }\n }\n break;\n }\n }", "public void restore() {\n setOrientation(0);\n setCropRect(getMaxCenteredCropRect(), false);\n autoZoom(true);\n }", "public void ImageTransform(){\n imageView.clearAnimation();\n Picasso.get()\n .load(url)\n .resize(150, 150)\n .centerCrop()\n .into(imageView);\n }", "static public Fits do_crop(Fits inFits, int extension,\n int min_x, int min_y, int max_x, int max_y)\n throws FitsException, IOException {\n int x_center = (min_x + max_x) / 2;\n int y_center = (min_y + max_y) / 2;\n int x_size = Math.abs(max_x - min_x);\n int y_size = Math.abs(max_y - min_y);\n\n ImageHDU h = (ImageHDU) inFits.getHDU(extension);\n Header old_header = h.getHeader();\n\n Fits out_fits =\n common_crop(h, old_header, x_center, y_center, x_size, y_size);\n return (out_fits);\n }" ]
[ "0.7858506", "0.7747307", "0.77332485", "0.7719723", "0.7607748", "0.74913955", "0.7462657", "0.73957646", "0.7353673", "0.7145276", "0.711068", "0.7095792", "0.7086065", "0.7076566", "0.7036086", "0.6970019", "0.69562364", "0.69404024", "0.6835353", "0.68046635", "0.6737009", "0.67170334", "0.66991377", "0.6672685", "0.6651915", "0.6637812", "0.6625883", "0.65939665", "0.6536702", "0.6523354", "0.65019834", "0.64463603", "0.64447254", "0.6442065", "0.64019734", "0.6388763", "0.63379115", "0.63137776", "0.6295777", "0.62587774", "0.61193615", "0.6109009", "0.6103847", "0.60686857", "0.6061074", "0.6059224", "0.6027462", "0.6000677", "0.5977562", "0.59683746", "0.5945492", "0.59282845", "0.59282684", "0.5920075", "0.5898648", "0.5875389", "0.58668256", "0.5864147", "0.5837747", "0.5817907", "0.5809189", "0.5808005", "0.58076847", "0.58065486", "0.5803335", "0.58028334", "0.5800681", "0.57843935", "0.57653826", "0.5756571", "0.57449406", "0.5742777", "0.57224715", "0.5696981", "0.5692811", "0.5686391", "0.5657626", "0.56485033", "0.56280756", "0.56213546", "0.5615126", "0.5603757", "0.55939305", "0.55919516", "0.55847216", "0.55813485", "0.55749035", "0.55718374", "0.55677927", "0.55644196", "0.5554555", "0.55397856", "0.55386084", "0.5530088", "0.5527779", "0.5517612", "0.5502647", "0.54997116", "0.54931736", "0.5483863", "0.54777634" ]
0.0
-1
To get selection item from spinner
@Override public void onNothingSelected(AdapterView<?> parent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n SpinnerValue = (String)spinner.getSelectedItem();\n }", "public T getSelectedItem() {\n\t\tT selectedItem = null;\n\t\tint position = spinner.getSelectedItemPosition();\n\t\tif(position >= 0) {\n\t\t\tselectedItem = adapter.getItem(position);\n\t\t}\n\t\treturn selectedItem;\n\t}", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String item = parent.getItemAtPosition(position).toString();\n\n //System.out.println(position);\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String item = parent.getItemAtPosition(position).toString();\n\n // Showing selected spinner item\n Toast.makeText(parent.getContext(), \"Selected: \" + item, Toast.LENGTH_LONG).show();\n\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n item = parent.getItemAtPosition(position).toString();\n isSelected = true;\n\n // Showing selected spinner item\n //Toast.makeText(parent.getContext(), \"Selected: \" + item, Toast.LENGTH_LONG).show();\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) {\n spinnerItemSelected = parent.getItemAtPosition(pos).toString();\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String item = (String) parent.getItemAtPosition(position);\n selectedSports = item;\n Log.d(\"testing Spinner\", \"Spinner item selected is: \" + selectedSports + \" \" + item.toString());\n }", "public String getSelectedItem() {\n if (selectedPosition != -1) {\n Toast.makeText(activity, \"Selected Item : \" + list.get(selectedPosition), Toast.LENGTH_SHORT).show();\n return list.get(selectedPosition);\n }\n return \"\";\n }", "public void onItemSelected(int position);", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n expertise_selected = adapterView.getItemAtPosition(i).toString();\n }", "String getSpinnerText();", "@Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int pos, long id) {\n choice=pos;\n }", "@Override\r\n public void onItemChosen(View labelledSpinner, AdapterView<?> adapterView, View itemView, int position, long id) {\r\n String selectedText = adapterView.getItemAtPosition(position).toString();\r\n switch (labelledSpinner.getId()) {\r\n case R.id.spinner_planets:\r\n //Toast.makeText(getActivity(), \"Selected: \" + selectedText, Toast.LENGTH_SHORT).show();\r\n selectTextSpinner = selectedText;\r\n break;\r\n // If you have multiple LabelledSpinners, you can add more cases here\r\n }\r\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position,\n long id) {\n\n }", "@Override\n\t\tpublic void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\t\t\tListView listView = (ListView) parent;\n\t\t\tString item = (String) listView.getSelectedItem();\n//\t\t\tToast.makeText(SearchGroupActivity.this, \"onItemSelected = \" + item, Toast.LENGTH_LONG).show();\n\t\t}", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "public void onItemSelected(int id);", "void onItemSelected();", "void onItemSelected();", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n item = parent.getItemAtPosition(position).toString();\n\n // Showing selected spinner item\n //Toast.makeText(parent.getContext(), \"Selected: \" + item, Toast.LENGTH_LONG).show();\n /*Intent people_intent= new Intent();\n people_intent.putExtra(\"people\",item);\n setResult(RESULT_OK,people_intent);\n finish();*/\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position,\n long id) {\n nama_dokter2 = parent.getItemAtPosition(position).toString();\n\n // Showing selected spinner item\n Toast.makeText(parent.getContext(), \"You selected: \" + nama_dokter2,\n Toast.LENGTH_LONG).show();\n\n }", "public void onItemSelected(AdapterView<?> parent, View view,\n int pos, long id) {\n\n }", "public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String item = parent.getItemAtPosition(position).toString();\n\n // Showing selected spinner item\n Toast.makeText(parent.getContext(), \"Selected: \" + item, Toast.LENGTH_LONG).show();\n }", "@Override\r\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n switch (position) {\r\n case 0:\r\n mode = 1;\r\n //mode = spinner.getSelectedItem().toString();\r\n break;\r\n case 1:\r\n mode = 2;\r\n //mode = spinner.getSelectedItem().toString();\r\n break;\r\n case 2:\r\n mode = 3;\r\n //mode = spinner.getSelectedItem().toString();\r\n break;\r\n }\r\n }", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1, int position,long id) {\n\n\n\n\n }", "public String getSelectedItem() {\n return (String) itsCombo.getSelectedItem();\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int position, long id) {\n\n\n try{\n String s = \"\";\n Log.e(\"mytag\",\"(String) parent.getItemAtPosition(position):\"+(String) parent.getItemAtPosition(position).toString().trim());\n if (parent.getItemAtPosition(position).toString().trim().equals(\"בחר\")){\n s = \"-1\";\n }else{\n s = String.valueOf(ctype_map.get(parent.getItemAtPosition(position).toString().trim()).getCtypeID());\n }\n setCcustomerSpinner(s);\n }catch(Exception e){\n helper.LogPrintExStackTrace(e);\n }\n Log.e(\"mytag\", (String) parent.getItemAtPosition(position));\n //statusID = db.getCallStatusByCallStatusName((String) parent.getItemAtPosition(position)).getCallStatusID();\n //statusName = db.getCallStatusByCallStatusName((String) parent.getItemAtPosition(position)).getCallStatusName();\n //Toast.makeText(getApplication(), \"status: \" + s, Toast.LENGTH_LONG).show();\n //Log.v(\"item\", (String) parent.getItemAtPosition(position));\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int position, long id)\n {\n }", "public void onItemSelected(String id);", "public void onItemSelected(String id);", "public void onItemSelected(String id);", "public void onItemSelected(String id);", "public void onItemSelected(String id);", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1,\n int pos, long arg3) {\n societyName = String.valueOf(societyNameSpinner\n .getSelectedItem());\n\n }", "@Override\n\tpublic void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\tlong arg3) {\n\t\tsearchText = spinner1.getSelectedItem().toString();\n\t\tSystem.out.println(\"Selected option = \"+searchText);\n\t\t\n\t}", "@Override\n public void onItemSelected(View view, int position) {\n }", "public void onItemSelected(Long id);", "@Override\n\t\t\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n int arg2, long arg3) {\n\t\t\t\t\t\tString sel = spinner.getSelectedItem().toString();\n\t\t\t\t\t\tLog.e(\"PowerSocketSensitive\", sel + \"\");\n\t\t\t\t\t}", "public void onItemSelected(AdapterView<?> parent, View view,\n int pos, long id) {\n Object item = parent.getItemAtPosition(pos);\n System.out.println(item.toString());\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View v, int position, long id)\n {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int position, long id) {\n }", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1,\n int arg2, long arg3) {\n\n\n }", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1,\n int arg2, long arg3) {\n String mselection = mSpinner.getSelectedItem().toString();\n Toast.makeText(getApplicationContext(), \"selected \" + mselection, 30).show();\n /**** do your code*****/\n\n if (mselection.equals(\"New Location\")){\n Intent i = new Intent(getApplicationContext(), NewLocation.class);\n startActivity(i);\n }\n }", "@Override\n\t\tpublic void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\n\t\t}", "@Override\n public void onItemSelected(AdapterView<?> adapterView,\n View view, int i, long l) {\n mSpinnerLabel = adapterView.getItemAtPosition(i).toString();\n showText(view);\n }", "@Override\n public void onItemSelected(MaterialSpinner view, int position, long id, Object item) {\n\n if(item.equals(\"Other\")){\n othereditText.setVisibility(View.VISIBLE);\n serviceSelected = othereditText.getText().toString().trim();\n }else{\n serviceSelected = item+\"\";\n }\n }", "public void onItemSelected(AdapterView<?> parent, View view, int position,\n long id) {\n nama_pasien2 = parent.getItemAtPosition(position).toString();\n\n // Showing selected spinner item\n Toast.makeText(parent.getContext(), \"You selected: \" + nama_pasien2,\n Toast.LENGTH_LONG).show();\n\n }", "@Override\n public void onItemSelected (AdapterView<?> parent, View view, int position, long id)\n {\n genderSelected = parent.getItemAtPosition(position).toString();\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view,\n int position, long id) {\n Matter matter = adapter.getItem(position);\n // Here you can do the action you want to...\n Toast.makeText(FilterActivity.this, \"ID: \" + matter.get_projeadi() + \"\\nName: \" + matter.get_projekodu(),\n Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n long arg3) {\n\n }", "public void onItemSelected(AdapterView<?> parent, View view,\n int pos, long id) {\n }", "void onItemSelected(int index, T item) throws RemoteException;", "@Override\r\n\t\t\tpublic void onItemSelected(AdapterView<?> parent, View view, int pos, long id) {\n\t\t\t\thasilSpinJurusan = parent.getItemAtPosition(pos).toString();\r\n\t\t\t\tString[] parts = hasilSpinJurusan.split(\"--\");\r\n\t\t\t\tString kode = parts[0];\r\n\t\t\t\tkodeJurusan=kode;\r\n\t\t\t}", "public void onItemSelected(AdapterView<?> arg0, View arg1,\n int arg2, long arg3) {\n\n \t hometown=spinner1.getSelectedItem().toString();\n \t\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n id = i;\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n recipeType = (String) recipeAdapter.getRecipeType(position);\n\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n //NOTE: Position 0 is reserved for the manually added Prompt\n if (position > 0) {\n //Retrieving the Category Name of the selection\n mCategoryLastSelected = parent.getItemAtPosition(position).toString();\n //Calling the Presenter method to take appropriate action\n //(For showing/hiding the EditText field of Category OTHER)\n mPresenter.onCategorySelected(mCategoryLastSelected);\n } else {\n //On other cases, reset the Category Name saved\n mCategoryLastSelected = \"\";\n }\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n compaCategory = parent.getItemAtPosition(position).toString();\n }", "private void updateSpinner() {\n ArrayAdapter<CharSequence> adaptador = new ArrayAdapter(getContext(), android.R.layout.simple_spinner_item,nombresEnComboBox);\n spinner.setAdapter(adaptador);\n //guardo el item seleccionado del combo\n spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener(){\n @Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n nombreDeLocSeleccionada[0] = (String) spinner.getAdapter().getItem(i);\n for (int j=0 ; j < listaLocalidades.size() ; j++){\n if (listaLocalidades.get(j).getNombreLocalidad().equals(nombreDeLocSeleccionada[0])) {\n idLoc = listaLocalidades.get(j).getIdLocalidad() ;\n break;\n }\n }\n //Toast.makeText(getActivity(), nombreDeLocSeleccionada[0], Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> adapterView) {\n\n }\n });\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n\n try {\n JSONObject dataClicked = units_array.getJSONObject(i);\n id_unit = dataClicked.getInt(\"id\");\n\n\n } catch (Exception e) {\n e.printStackTrace();\n\n }\n }", "@Override\n\tpublic void onItemSelected(AdapterView<?> parent, View view, int pos,\n\t\t\tlong id) {\n\t\t\n\t\t\n\t}", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n brand_id = String.valueOf(brand_list.get(i).getBrandId());\n brandName = brand_list.get(i).getBrand_name();\n\n Log.d(\"fsdklj\", brand_id + brandName);\n\n hitSpinnerSeries(brand_id);\n\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n itemname = parent.getItemAtPosition(position).toString();\n }", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t}", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n item = parent.getItemAtPosition(position).toString();\n //beaconselected.setText(item);\n\n // Showing selected spinner item\n if(!item.equals(\"select a beacon\")){\n //Toast.makeText(parent.getContext(), \"Selected: \" + item, Toast.LENGTH_LONG).show();\n x++;\n beaconManager.stopRanging(beaconRegion);\n t=0;\n //Toast.makeText(this, \"Search stopped\", Toast.LENGTH_SHORT).show();\n }\n\n\n\n }", "private void spinner() {\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this,\n R.array.planets_array, R.layout.simple_spinner_item_new);\n// Specify the layout to use when the list of choices appears\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n// Apply the adapter to the spinner\n// dropDownViewTheme.\n planetsSpinner.setAdapter(adapter);\n planetsSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n Object itemAtPosition = parent.getItemAtPosition(position);\n Log.d(TAG, \"onItemSelected: \" + itemAtPosition);\n\n String[] stringArray = getResources().getStringArray(R.array.planets_array);\n Toast.makeText(DialogListActivity.this, \"选择 \" + stringArray[position], Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n Toast.makeText(DialogListActivity.this, \"未选择\", Toast.LENGTH_SHORT).show();\n }\n });\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n\n // To retrieve the user's selected item in the Spinner, use getItemAtPosition().\n String spinnerLabel = adapterView.getItemAtPosition(i).toString();\n displayToast(spinnerLabel);\n }", "@Override\n\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\tlong arg3) {\n\t\t\t\n\t\t}", "public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n userType = (int) arg3;\n /* 将mySpinner 显示*/\n arg0.setVisibility(View.VISIBLE);\n }", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1,\n int arg2, long arg3) {\n str_loc = Arraylist_location.get(arg2);\n str_loc_id = Arraylist_location_id.get(arg2);\n\n System.out.println(\"### ID : \" + str_loc + \" : \" + str_loc_id);\n\n\n\n }", "public void onItemSelected(AdapterView<?> parent, View view, \r\n int pos, long id) {\n\t\tString word = (String) parent.getItemAtPosition(pos);\r\n\t\tif (!word.equalsIgnoreCase(\"select a word from this list\")) {\r\n\t\t\tToast.makeText(this, \"You selected \\\"\" + parent.getItemAtPosition(pos) + \"\\\" from the Spinner\", Toast.LENGTH_LONG).show();\r\n\t\t}\r\n }", "@Override\n public void onItemSelected(AdapterView<?> adapter, View v,\n int position, long id) {\n mappos = position;\n findmapinfo(position , adapter.getItemAtPosition(position).toString());\n \n // Showing selected spinner item\n \n }", "public Item getSelectedItem() { return this.getSelectedSlot().getMappedItem(); }", "@Override\n public void onItemSelected(AdapterView<?> parent, View arg1, int position, long id) {\n if(parent.getId()==R.id.branch)\n branchRes=branches[position];\n else if (parent.getId()==R.id.interviewDifficulty)\n diffRes=difficulty[position];\n else if(parent.getId()==R.id.interviewMode)\n modeRes=interviewMode[position];\n }", "void onItemSelected(Bundle args);", "public void onItemSelected(AdapterView<?> parent, View view, int position, long id) \r\n\t{\n\t\tString food = parent.getItemAtPosition(position).toString();\r\n\t\t\r\n // Showing selected spinner item\r\n Toast.makeText(parent.getContext(), \"You selected: \" + food,\r\n Toast.LENGTH_LONG).show();\r\n\t\t\r\n\t}", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String item = parent.getItemAtPosition(position).toString();\n areaId = dbHendler.getAreaID(item);\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n switch (parent.getId()) {\n case R.id.fromspinner:\n fromitem = parent.getItemAtPosition(position)\n .toString().replaceAll(\" \", \"_\").toLowerCase();\n break;\n case R.id.tospinner:\n toitem = parent.getItemAtPosition(position)\n .toString().replaceAll(\" \", \"_\").toLowerCase();\n break;\n }\n }", "@Nullable\n public T getSelectedItem() {\n return SerDes.unmirror(getElement().getSelectedItem(), getItemClass());\n }", "public void onItemSelected(AdapterView<?> parent, View v, \n\t int pos, long id) {\n\t }", "public void onItemSelected(AdapterView<?> parent, View view, int pos, long id){\n this.mAssessmentType = parent.getItemAtPosition(pos).toString();\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String item = parent.getItemAtPosition(position).toString();\n tuning = position;\n setUpDisplay();\n\n // Showing selected spinner item\n if (tuner1 == 3) {\n Toast.makeText(TunerActivity.this, \"\" + item, Toast.LENGTH_LONG).show();\n }\n }", "@Override\n\t\t\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\t\t\tint position = gameSpinner.getSelectedItemPosition();\n\t\t\t\t\t\tif (macGames[+position] != \"-- Choose sport --\") {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t/*Toast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\t\t\"You have selected \" + macGames[+position],\n\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();*/\n\t\t\t\t\t\t\tchosenGame = macGames[+position];\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String item = parent.getItemAtPosition(position).toString();\n ArrayList<Integer> list = map.get(item);\n a = list.get(0);\n b = list.get(1);\n setupChart();\n // Showing selected spinner ite\n Toast.makeText(parent.getContext(), \"Selected: \" + item, Toast.LENGTH_LONG).show();\n }", "@Override\r\n\t\t\tpublic void onItemSelected(AdapterView<?> parent, View view,\r\n\t\t\t\t\tint position, long id) {\n\r\n\t\t\t\tlocation_id = _locationAdapter.getItem(position).getStrId();\r\n\r\n\t\t\t}", "@Override\n\t\t\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\t\t\tmBookLocationStr = getLocationKey(arg2);\n\t\t\t\t\t\t// Log.e(\"LOCATION-INDEX\", arg2 + \"\");\n\t\t\t\t\t}", "private String getSelectedString() {\n\t\treturn menuItem[selectedIndex];\r\n\t}", "public void onItemSelected(String studentSelected);", "public Object getValue() {\n return spinner.getValue();\n }", "public void onItemSelected(AdapterView<?> parent, View view,\n int position, long id) {\n\n selectedTech = TECH_ARRAY.get(parent.getSelectedItem().toString());\n Log.e(\"Selected Car\", selectedTech);\n ParseQuery<ParseUser> query = ParseQuery.getQuery(\"_User\");\n query.getInBackground(selectedTech, new GetCallback<ParseUser>() {\n public void done(ParseUser object, ParseException e) {\n if (e == null) {\n tech = object;\n // object will be your car\n } else {\n // something went wrong\n }\n }\n });\n\n }", "@Override\n public void onItemSelected(AdapterView<?> parentView, View selectedItemView, int position, long id) {\n spnDistrict.setAdapter(C.getArrayAdapter(\"select ZIlLAID||'-'||ZILLANAMEENG DistName from Zilla where DIVID='\" + Global.Left(spnDiv.getSelectedItem().toString(), 2) + \"'\"));// Global.Left(spnDiv.getSelectedItem().toString(),2)\n spnDistrict.setSelection(DivzillaSelect(\"zilla\"));\n\n\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n huruf = dataSandiItem.get(position).getHuruf();\n drajatX = dataSandiItem.get(position).getDerajat_lengan_x();\n drajatY = dataSandiItem.get(position).getDerajat_lengan_y();\n gambar = dataSandiItem.get(position).getGambar();\n }", "@Override\r\n\t\t\tpublic void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\r\n\t\t\t\tGender_ID = adapter.getPosition(parent.getItemAtPosition(position).toString());\r\n\t\t\t\tSystem.out.println(\"Gender_ID index--->\" + Age_ID);\r\n\r\n\t\t\t}" ]
[ "0.7838047", "0.7752305", "0.75873756", "0.7515844", "0.7389098", "0.7379968", "0.73454463", "0.7331636", "0.7326538", "0.7230902", "0.7230902", "0.72119457", "0.72085124", "0.72067755", "0.72012466", "0.7201072", "0.7195014", "0.7177317", "0.7172398", "0.71603996", "0.71603996", "0.71603996", "0.71384925", "0.71384925", "0.7126949", "0.71165127", "0.71165127", "0.71156436", "0.71062505", "0.7105175", "0.70900524", "0.70892787", "0.7083683", "0.70831525", "0.7081791", "0.7065991", "0.7061885", "0.7061885", "0.7061885", "0.7061885", "0.7061885", "0.70496863", "0.7041696", "0.7023252", "0.7020869", "0.70133007", "0.69964546", "0.6992787", "0.6985586", "0.69767535", "0.6965897", "0.69631225", "0.69591606", "0.69568163", "0.69396764", "0.69331455", "0.6921661", "0.6921186", "0.6915094", "0.69148326", "0.6908931", "0.68880403", "0.6882297", "0.68814385", "0.68460965", "0.6844831", "0.6843978", "0.68338215", "0.68315095", "0.682982", "0.68286395", "0.6826024", "0.6825663", "0.68201107", "0.68120134", "0.6803899", "0.6793527", "0.6793007", "0.6791789", "0.6784544", "0.6783742", "0.6775751", "0.67624766", "0.67507714", "0.6748009", "0.67357427", "0.67148024", "0.6709895", "0.67072684", "0.67044216", "0.6696002", "0.6688933", "0.66834086", "0.66792476", "0.66747284", "0.66673434", "0.6658763", "0.6658524", "0.66529065", "0.66382664", "0.66372156" ]
0.0
-1
do nothing no select
private void invokeCameraSerialNumber() { // get a file reference pictureUri = FileProvider.getUriForFile(this, getApplicationContext().getPackageName(), createImageFile()); // Make Uri file example file://storage/emulated/0/Pictures/Civil_ID20180924_180619.jpg Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); // Go to camera // tell the camera where to save the image. intent.putExtra(MediaStore.EXTRA_OUTPUT, pictureUri); // tell the camera to request WRITE permission. intent.setFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION); startActivityForResult(intent, CAMERA_DEVICE_SERIAL_NUMBER); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void prepareExecuteNoSelect() {\n setCallFromStatement();\n // The statement is no longer require so can be released.\n clearStatement();\n\n super.prepareExecuteNoSelect();\n }", "protected void execute() {\n \t// literally still do nothing\n }", "public void doNothing(){\n\t}", "public void select() {}", "@Override\n\tpublic ResultSet select() {\n\t\treturn null;\n\t}", "@Override\n protected void processSelect() {\n \n }", "public static void doNothing(){\n\t}", "@Override\n\tpublic void select() {\n\t}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tno();\n\t\t\t\t}", "void defSelect(Variable var){\r\n \t//if (isSelectAll()){\r\n \t\taddSelect(var);\r\n \t//}\r\n }", "protected abstract void select();", "@Override\n\tpublic void unselect() {\n\t}", "@Override\n public Collection<KlantBedrijf> select() {\n return null;\n }", "@Override\n\tpublic void onNothingSelected() {\n\t}", "@Override\n\tpublic void onNothingSelected() {\n\n\t}", "@Override\n protected void processUnselect() {\n \n }", "public void select();", "public void select ();", "private void doSelect() {\n this.setVisible(false);\n }", "public void prepareExecuteSelect() {\n setCallFromStatement();\n // The statement is no longer require so can be released.\n clearStatement();\n\n super.prepareExecuteSelect();\n }", "@Override\r\n\tpublic void just() {\n\t\t\r\n\t}", "public boolean requiresSelectVarious() {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic int selectCount() {\n\t\treturn 0;\n\t}", "void cancelSelectMode();", "Object executeSelectQuery(String sql) { return null;}", "public void noReturnOnVoid() {\n\t\treturn;\n\t}", "public void prepareSelectOneRow() {\n setCallFromStatement();\n // The statement is no longer require so can be released.\n clearStatement();\n\n super.prepareSelectOneRow();\n }", "void clearSelection();", "@Override\n public void onNothingSelected(AdapterView<?> parent) {\n //No-op\n }", "@Override\r\n\tpublic void noControl() {\r\n q.put(null);\r\n v.put(null);\r\n }", "@Override\r\n\tpublic BaseBean select(int id, Connection con) {\n\t\treturn null;\r\n\t}", "public void noReturn() {\n\t\tSystem.out.println(\"noReturn method will not returing any thing\");\n\t}", "public void deselectAll()\n {\n }", "void select();", "@Override\r\n\tprotected Object getSelectData() {\n\t\treturn null;\r\n\t}", "protected void nop() throws Exception {\n reply_ok();\n }", "public boolean execute(){\n return false;\n }", "@Override\n public void onNothingSelected (AdapterView<?> parent)\n {\n // don't care, not used.\n }", "public void clearSelection() {\n\t\ttable.clearSelection();\n\t}", "public abstract void select(boolean select);", "@Override\n public void executeTransaction() {\n System.out.println(\"Please make a selection first\");\n }", "@Override\r\n\tpublic boolean forceSelection() {\r\n\t\treturn false;\r\n\t}", "public void __noop() {\n __send(__buildMessage(FTPCommand.getCommand(32), null));\n __getReplyNoReport();\n }", "public void selectAll() {\n/* 101 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "protected abstract NonMatchingResult processSelection(\n\t\t\tTableEntitySelection selection,\n\t\t\tSession session);", "Select(){\n }", "@Override\n\tpublic Object selectOne() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Object selectOne() {\n\t\treturn null;\n\t}", "public void unExecute()\n\t{\n\t}", "@Override\n\tpublic boolean Unexecute() \n\t{\n\t\treturn false;\n\t}", "@Override\n public int cancelTransaction() {\n System.out.println(\"Please make a selection first\");\n return 0;\n }", "boolean doFilter() { return false; }", "public void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\t\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t }", "@Override\n\t\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t }", "public void clearChoiceSelect() {\n choiceSelect = -1;\n }", "public void onNothingSelected(AdapterView<?> parent) {\r\n\r\n // do nothing\r\n\r\n }", "public void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t}", "@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> parentView){\n\t\t\t\t// do nothing\n\t\t\t}", "public void onNothingSelected(AdapterView<?> arg0) {\n \t\t\t\n \t\t}", "public void stringCommandNoReturn(String command) throws SQLException {\n try (PreparedStatement prep = conn.prepareStatement(command)) {\n //executes command\n try {\n prep.execute();\n } catch (SQLException e) {\n throw new SQLException(\"Failed to execute query: \" + e);\n }\n }\n }", "public void clearSelection()\n\t{\n\t\tgetObject().clearSelection();\n\t\treturn;\n\t}", "public void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tpublic void unexecute() {\n\t\t\r\n\t}", "public void clearSelection() {\n grid.getSelectionModel().deselectAll();\n }", "public abstract void resetQuery();", "public void clearChoiceSelect() {\n choiceSelect = -1;\n }", "@Override\n\tpublic Object selectOne2(Object map) {\n\t\treturn null;\n\t}", "public void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t // TODO Auto-generated method stub\t \n\t\t\t }", "public void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t // TODO Auto-generated method stub\t \n\t\t\t }", "@Override\n\tprotected String findAllStatement() {\n\t\treturn null;\n\t}", "public Object select(Object obj) throws SQLException {\n\t\treturn null;\r\n\t}", "public void onNothingSelected(AdapterView<?> arg0) {\n\t }", "@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\n\t\t\t}" ]
[ "0.6777587", "0.6663586", "0.6484423", "0.6452379", "0.63142866", "0.62582046", "0.6237028", "0.60420513", "0.5976116", "0.5962437", "0.5902555", "0.58921045", "0.5878672", "0.5854584", "0.5821732", "0.5802151", "0.5800892", "0.5777293", "0.57761157", "0.57645893", "0.5763839", "0.57593435", "0.57368803", "0.56982034", "0.568946", "0.5658016", "0.56499994", "0.5643123", "0.5604696", "0.5598927", "0.55937976", "0.5592615", "0.55835694", "0.5574339", "0.556141", "0.5560423", "0.55434495", "0.55409074", "0.55357563", "0.55284625", "0.5522401", "0.55219615", "0.5516369", "0.55154014", "0.5509201", "0.5508535", "0.5507264", "0.5507264", "0.5486522", "0.54834116", "0.54712236", "0.5468911", "0.5464252", "0.54570633", "0.54570633", "0.5452755", "0.5450216", "0.5449144", "0.5445827", "0.54408914", "0.5440685", "0.5438842", "0.54356277", "0.5433547", "0.5433345", "0.5415327", "0.541529", "0.5410187", "0.54087365", "0.54087365", "0.54087365", "0.54087365", "0.54087365", "0.54087365", "0.54087365", "0.54087365", "0.54087365", "0.54087365", "0.54087365", "0.54087365", "0.54075235", "0.54075235", "0.53991467", "0.53978866", "0.53887063", "0.53830826", "0.53830826", "0.53830826", "0.53830826", "0.53830826", "0.53830826", "0.53830826", "0.53830826", "0.53830826", "0.53830826", "0.53830826", "0.53830826", "0.53830826", "0.53830826", "0.53830826", "0.53830826" ]
0.0
-1
open camera for device serial number
private void selectImagesDeviceSerialNubmer() { Intent galleryIntent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.INTERNAL_CONTENT_URI); startActivityForResult(galleryIntent, GALLERY_DEVICE_SERIAL_NUMBER); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void invokeCameraSerialNumber() {\n\n // get a file reference\n pictureUri = FileProvider.getUriForFile(this, getApplicationContext().getPackageName(), createImageFile()); // Make Uri file example file://storage/emulated/0/Pictures/Civil_ID20180924_180619.jpg\n\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); // Go to camera\n\n // tell the camera where to save the image.\n intent.putExtra(MediaStore.EXTRA_OUTPUT, pictureUri);\n\n // tell the camera to request WRITE permission.\n intent.setFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\n\n startActivityForResult(intent, CAMERA_DEVICE_SERIAL_NUMBER);\n\n }", "public void openCamera() {\n \n\n }", "public void openCamera() {\n\n Uri photoURI = FileProvider.getUriForFile(this, BuildConfig.APPLICATION_ID + \".provider\", getTempImage());\n\n if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {\n photoURI = Uri.fromFile(getTempImage());\n }\n\n Intent cIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n cIntent.putExtra(MediaStore.EXTRA_OUTPUT, photoURI);\n startActivityForResult(cIntent, CAPTURE_PHOTO);\n }", "public void openCamera() {\n Toast.makeText(this, \"Coming soon...\", Toast.LENGTH_SHORT).show();\n }", "private void openCamera() {\n CameraManager manager = (CameraManager) getSystemService(Context.CAMERA_SERVICE);\n try {\n String mCameraId = manager.getCameraIdList()[0];\n CameraCharacteristics characteristics = manager.getCameraCharacteristics(mCameraId);\n StreamConfigurationMap map = characteristics.\n get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP);\n assert map != null;\n mImageDimension = map.getOutputSizes(SurfaceTexture.class)[0];\n // Add permission for camera and let user grant the permission\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA) !=\n PackageManager.PERMISSION_GRANTED &&\n ActivityCompat.checkSelfPermission(this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE) !=\n PackageManager.PERMISSION_GRANTED) {\n\n ActivityCompat.requestPermissions(CameraActivity.this, new\n String[]{Manifest.permission.CAMERA,\n Manifest.permission.WRITE_EXTERNAL_STORAGE},\n REQUEST_CAMERA_PERMISSION);\n }\n manager.openCamera(mCameraId, mStateCallback, null);\n } catch (CameraAccessException e) {\n e.printStackTrace();\n }\n }", "public void openCamera(View view){\n if (isInspecting) {\n Context context = App.getContext();\n Intent intent = new Intent(Inspector.this, PhotoManager.class);\n intent.putExtra(\"blueprint\", blueprint);\n intent.putExtra(\"isInspecting\", isInspecting);\n intent.putExtra(\"filename\", filename);\n View parent = (View) view.getParent();\n String tag = parent.getTag().toString();\n intent.putExtra(\"cameraID\", tag);\n LogManager.reportStatus(context, \"INSPECTOR\", \"parent tag = \" + tag);\n startActivity(intent);\n }\n }", "private native void iniciarCamara(int idCamera);", "public void openCamera(View view) {\n Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n\n mImagePath = getFile();\n takePictureIntent.putExtra(MediaStore.EXTRA_OUTPUT, mImagePath);\n startActivityForResult(takePictureIntent, TAKE_PIC_CODE);\n }", "private void openCamera() {\n Intent intent=new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n // intent.setAction(Intent.ACTION_PICK);\n // intent.putExtra(MediaStore.EXTRA_OUTPUT,Image_uri);\n startActivityForResult(intent, camera_image_code);\n\n }", "private void openCamera() {\n CameraManager manager = (CameraManager) getSystemService(Context.CAMERA_SERVICE);\n try {\n String cameraId = manager.getCameraIdList()[0];\n CameraCharacteristics characteristics = manager.getCameraCharacteristics(cameraId);\n StreamConfigurationMap map = characteristics.get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP);\n assert map != null;\n imageDimension = map.getOutputSizes(SurfaceTexture.class)[0];\n // Add permission for camera and let user grant the permission\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.CAMERA, Manifest.permission.WRITE_EXTERNAL_STORAGE}, REQUEST_CAMERA_PERMISSION);\n return;\n }\n manager.openCamera(cameraId, stateCallback, null);\n } catch (CameraAccessException e) {\n Toast.makeText(this, \"Camera failed to open.\", Toast.LENGTH_SHORT).show();\n e.printStackTrace();\n }\n }", "public int cameraOn() {\r\n System.out.println(\"hw- ligarCamera\");\r\n return serialPort.enviaDados(\"!111O*\");//camera ON \r\n }", "public void getCameraInstance() {\n newOpenCamera();\n }", "public void startCamera()\n \t{\n\t\t// start the video capture\n\t\t//this.capture.open(0);\n\t\tcapture.open(cameraNumber);\n\n\n\n\t\t// is the video stream available?\n\t\tif (capture.isOpened())\n\t\t{\n\t\t\t// grab a frame every 33 ms (30 frames/sec)\n\t\t\tRunnable frameGrabber = new Runnable() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void run()\n\t\t\t\t{\n\t\t\t\t\tgrabFrame();\n\t\t\t\t}\n\t\t\t};\n\n\t\t\ttimer = Executors.newSingleThreadScheduledExecutor();\n\t\t\ttimer.scheduleAtFixedRate(frameGrabber, 0, 500, TimeUnit.MILLISECONDS);\n\n\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// log the error\n\t\t\tSystem.err.println(\"Impossible to open the camera connection...\");\n\t\t}\n \t}", "public void OpenCamera (View view){\n\t \t\n\t \t//Open Next Camera Activity and give the mood to it\n\t \tIntent intent = new Intent(this, Camera.class);\n\t \tintent.putExtra(\"mood\", Bar.getProgress());\n\t \tstartActivity(intent);\t\n\t }", "private void newOpenCamera() {\n if (mThread == null) {\n mThread = new CameraHandlerThread();\n }\n\n synchronized (mThread) {\n mThread.openCamera();\n }\n }", "private void launchCamera() {\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n // Create a File reference to access to future access\n photoFile = getPhotoFileUri(photoFileName);\n\n // wrap File object into a content provider\n // required for API >= 24\n // See https://guides.codepath.com/android/Sharing-Content-with-Intents#sharing-files-with-api-24-or-higher\n Uri fileProvider = FileProvider.getUriForFile(getContext(), \"com.codepath.fileprovider\", photoFile);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, fileProvider);\n\n // If you call startActivityForResult() using an intent that no app can handle, your app will crash.\n // So as long as the result is not null, it's safe to use the intent.\n if (intent.resolveActivity(getContext().getPackageManager()) != null) {\n // Start the image capture intent to take photo\n startActivityForResult(intent, CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE);\n }\n }", "private void launchCamera() {\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n // Create a File reference for future access\n photoFile = getPhotoFileUri(photoFileName);\n\n // wrap File object into a content provider\n // required for API >= 24\n // See https://guides.codepath.com/android/Sharing-Content-with-Intents#sharing-files-with-api-24-or-higher\n Uri fileProvider = FileProvider.getUriForFile(getContext(), \"com.codepath.fileprovider\", photoFile);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, fileProvider);\n\n // If you call startActivityForResult() using an intent that no app can handle, your app will crash.\n // So as long as the result is not null, it's safe to use the intent.\n if (intent.resolveActivity(getContext().getPackageManager()) != null) {\n // Start the image capture intent to take photo\n startActivityForResult(intent, CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE);\n }\n }", "private void openCamera(int width, int height) {\n setupCamera(width, height);\n configureTransform(width, height);\n Activity activity = mActivity;\n CameraManager cameraManager = (CameraManager) mActivity.getSystemService(Context.CAMERA_SERVICE);\n try {\n if (ContextCompat.checkSelfPermission(mActivity, Manifest.permission.CAMERA) ==\n PackageManager.PERMISSION_GRANTED) {\n // connect the camera\n // TODO: add comments\n cameraManager.openCamera(mCameraId, mStateCallback, mBackgroundHandler);\n }\n } catch (CameraAccessException e) {\n e.printStackTrace();\n }\n }", "private void oldOpenCamera() {\n try {\n mCamera = Camera.open(); // attempt to get a Camera instance\n mCamera.setPreviewCallbackWithBuffer(this);\n Log.i(TAG, \"Instance created\");\n } catch (Exception e) {\n Log.e(TAG, \"Error getting Camera instance: \" + e.getMessage());\n }\n }", "private void clickpic() {\n if (getApplicationContext().getPackageManager().hasSystemFeature(\n PackageManager.FEATURE_CAMERA)) {\n // Open default camera\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, fileUri);\n\n // start the image capture Intent\n startActivityForResult(intent, 100);\n\n\n } else {\n Toast.makeText(getApplication(), \"Camera not supported\", Toast.LENGTH_LONG).show();\n }\n }", "public static Camera open() { \n return new Camera(); \n }", "public void onCameraOpened() {\n openCameraCommon();\n initializeControlByIntent();\n new Thread() {\n public void run() {\n try {\n Thread.sleep(500);\n PhotoModule.this.mIsCameraOpened = true;\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }.start();\n }", "protected void startCamera() {\n profileImageCaptured = new File(\n Environment.getExternalStorageDirectory() + \"/\" + \"temp.png\");\n if (profileImageCaptured.exists())\n profileImageCaptured.delete();\n\n outputFileUri = Uri.fromFile(profileImageCaptured);\n Intent intent = new Intent(\n android.provider.MediaStore.ACTION_IMAGE_CAPTURE);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, outputFileUri);\n intent.putExtra(\"return-data\", true);\n startActivityForResult(intent, CAMERA_REQUEST);\n\n }", "private void openCamera(int desiredWidth, int desiredHeight) {\n if (mCamera != null) {\n throw new RuntimeException(\"camera already initialized\");\n }\n\n android.hardware.Camera.CameraInfo info = new android.hardware.Camera.CameraInfo();\n\n // Try to find a front-facing camera (e.g. for videoconferencing).\n int numCameras = android.hardware.Camera.getNumberOfCameras();\n for (int i = 0; i < numCameras; i++) {\n android.hardware.Camera.getCameraInfo(i, info);\n if (info.facing == android.hardware.Camera.CameraInfo.CAMERA_FACING_BACK) {\n mCamera = android.hardware.Camera.open(i);\n break;\n }\n }\n if (mCamera == null) {\n// Log.d(TAG, \"No front-facing camera found; opening default\");\n mCamera = android.hardware.Camera.open(); // opens first back-facing camera\n }\n if (mCamera == null) {\n throw new RuntimeException(\"Unable to open camera\");\n }\n\n android.hardware.Camera.Parameters parms = mCamera.getParameters();\n\n CameraUtils.choosePreviewSize(parms, desiredWidth, desiredHeight);\n\n // Give the camera a hint that we're recording video. This can have a big\n // impact on frame rate.\n parms.setRecordingHint(true);\n\n // leave the frame rate set to default\n mCamera.setParameters(parms);\n\n int[] fpsRange = new int[2];\n android.hardware.Camera.Size mCameraPreviewSize = parms.getPreviewSize();\n parms.getPreviewFpsRange(fpsRange);\n String previewFacts = mCameraPreviewSize.width + \"x\" + mCameraPreviewSize.height;\n if (fpsRange[0] == fpsRange[1]) {\n previewFacts += \" @\" + (fpsRange[0] / 1000.0) + \"fps\";\n } else {\n previewFacts += \" @[\" + (fpsRange[0] / 1000.0) +\n \" - \" + (fpsRange[1] / 1000.0) + \"] fps\";\n }\n// TextView text = (TextView) findViewById(R.id.cameraParams_text);\n// text.setText(previewFacts);\n\n mCameraPreviewWidth = mCameraPreviewSize.width;\n mCameraPreviewHeight = mCameraPreviewSize.height;\n\n\n// AspectFrameLayout layout = (AspectFrameLayout) findViewById(R.id.cameraPreview_afl);\n\n Display display = ((WindowManager)getSystemService(WINDOW_SERVICE)).getDefaultDisplay();\n\n if(display.getRotation() == Surface.ROTATION_0) {\n mCamera.setDisplayOrientation(90);\n// layout.setAspectRatio((double) mCameraPreviewHeight / mCameraPreviewWidth);\n } else if(display.getRotation() == Surface.ROTATION_270) {\n// layout.setAspectRatio((double) mCameraPreviewHeight/ mCameraPreviewWidth);\n mCamera.setDisplayOrientation(180);\n } else {\n // Set the preview aspect ratio.\n// layout.setAspectRatio((double) mCameraPreviewWidth / mCameraPreviewHeight);\n }\n }", "protected void open_camera_and_save_image() {\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n\n // Ensure that there is a camera activity to handle the intent.\n if(intent.resolveActivity(getPackageManager()) != null) {\n // create the file where the photo should go\n File photoFile = null;\n try {\n photoFile = createImageFile();\n } catch (IOException e) {\n // error occurred while creating the file\n result.setText(R.string.fail_in_creating_photo);\n }\n\n if(photoFile != null) {\n Uri photoURI = FileProvider.getUriForFile(this,\n \"com.example.jiankaiwang.fileprovider\", photoFile);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, photoURI);\n\n // pass to another external activity\n startActivityForResult(intent, REQUEST_IMAGE_CAPTURE);\n }\n }\n }", "public void sendIntentToCamera() {\n\t\tIntent i = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);\n\t\t\n\t\t// Send the intent with id 2\n\t\tstartActivityForResult(i, 2);\n\t}", "private void getCamera() {\n if (camera == null) {\n try {\n camera = Camera.open();\n params = camera.getParameters();\n } catch (RuntimeException e) {\n\n }\n }\n }", "@Override\n public void startCameraIntent() {\n Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);\n startActivityForResult(cameraIntent, PICK_FROM_CAMERA_REQUEST_CODE);\n }", "private Camera selectAndOpenCamera() {\n\t\tCamera.CameraInfo info = new Camera.CameraInfo();\n\t\tint numberOfCameras = Camera.getNumberOfCameras();\n\n\t\tint selected = -1;\n\n\t\tfor (int i = 0; i < numberOfCameras; i++) {\n\t\t\tCamera.getCameraInfo(i, info);\n\n\t\t\tif( info.facing == Camera.CameraInfo.CAMERA_FACING_BACK ) {\n\t\t\t\tselected = i;\n\t\t\t\tflipHorizontal = false;\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\t// default to a front facing camera if a back facing one can't be found\n\t\t\t\tselected = i;\n\t\t\t\tflipHorizontal = true;\n\t\t\t}\n\t\t}\n\n\t\tif( selected == -1 ) {\n\t\t\tdialogNoCamera();\n\t\t\treturn null; // won't ever be called\n\t\t} else {\n\t\t\treturn Camera.open(selected);\n\t\t}\n\t}", "private void openCamera() {\n currentDateTimeString = new SimpleDateFormat(\"yyyy-MM-dd\").format(new Date());\n txtDate.setText(currentDateTimeString);\n txtDate.setEnabled(false);\n String state = Environment.getExternalStorageState();\n imageName = currentDateTimeString+\"@\"+userName+\"@\"+timestamp+ ApplicationConstant.EXTENTION_JPG;\n if (Environment.MEDIA_MOUNTED.equals(state)) {\n mFileTemp = new File(ApplicationConstant.FOLDER_PATH, imageName);\n } else {\n mFileTemp = new File(getFilesDir(), imageName);\n }\n /*Uri.fromFile(mFileTemp)*/\n Uri photoURI = null;\n if (android.os.Build.VERSION.SDK_INT >= ApplicationConstant.API_LEVEL_23) {\n photoURI = FileProvider.getUriForFile(UploadActivity.this, BuildConfig.APPLICATION_ID + \".provider\", mFileTemp);\n } else {\n photoURI = Uri.fromFile(mFileTemp);\n }\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n intent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\n } else {\n List<ResolveInfo> resInfoList = UploadActivity.this.getPackageManager().queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY);\n for (ResolveInfo resolveInfo : resInfoList) {\n String packageName = resolveInfo.activityInfo.packageName;\n UploadActivity.this.grantUriPermission(packageName, photoURI, Intent.FLAG_GRANT_WRITE_URI_PERMISSION | Intent.FLAG_GRANT_READ_URI_PERMISSION);\n }\n }\n intent.putExtra(MediaStore.EXTRA_OUTPUT, photoURI);\n startActivityForResult(intent, ApplicationConstant.RESULT_OPEN_CAMERA);\n }", "public void startCameraProcessing() {\n this.checkCameraPermission();\n\n try {\n cameraManager.openCamera(cameraId, new CameraDevice.StateCallback() {\n @Override\n public void onOpened(@NonNull CameraDevice camera) {\n cameraDevice = camera;\n onCameraOpened();\n }\n\n @Override\n public void onDisconnected(@NonNull CameraDevice camera) {\n\n }\n\n @Override\n public void onError(@NonNull CameraDevice camera, int error) {\n System.out.println(\"CAMERA ERROR OCCURRED: \" + error);\n }\n\n @Override\n public void onClosed(@NonNull CameraDevice camera) {\n super.onClosed(camera);\n }\n }, null);\n }\n catch (Exception e) {\n System.out.println(\"CAMERA FAILED TO OPEN\");\n e.printStackTrace();\n }\n }", "private void requestRecord() throws IOException {\n\n String targetCamCode = dis.readUTF();\n\n Cam targetCam = CamRegister.findRegisteredCam(targetCamCode);\n\n try {\n DataOutputStream targetDos = new DataOutputStream(targetCam.getCamSocket().getOutputStream());\n targetDos.writeInt(RECORD_CAM_COMMAND);\n targetDos.flush();\n\n dos.writeInt(SUCCESS_CODE);\n dos.flush();\n } catch (Exception e) {\n dos.writeInt(NOT_FOUND_CODE);\n dos.flush();\n }\n }", "public void onLaunchCamera(View view) {\n Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);\n\n\n data.insertAnImage(OptionID.get(alg), null);\n Cursor imageCursor = data.getImageData(OptionID.get(alg));\n imageCursor.moveToNext();\n intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(new File(getPhotoFileUri(imageCursor.getString(0))))); // set the image file name\n\n // If you call startActivityForResult() using an intent that no app can handle, your app will crash.\n // So as long as the result is not null, it's safe to use the intent.\n if (intent.resolveActivity(getPackageManager()) != null) {\n // Start the image capture intent to take photo\n startActivityForResult(intent, CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE);\n }\n }", "public void openDriver(SurfaceHolder holder, int cameraPosition)\n\t{\n\t\tif (camera == null) {\n\t\t\tcamera = openCamera(cameraPosition);\n\t\t\tif (camera == null) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tcamera.setPreviewDisplay(holder);\n\t\t\t} catch (IOException e) {\n\t\t\t\tLog.d(TAG, \"cannot set preview display\");\n\t\t\t}\n\t\t\tupdateCameraDisplayOrientation();\n\t\t\tif (!initialized) {\n\t\t\t\tinitialized = true;\n\t\t\t\tconfigManager.initFromCameraParameters(camera);\n\t\t\t}\n\t\t\tconfigManager.setDesiredCameraParameters(camera);\n\t\t\t\n\t\t}\n\t}", "public synchronized void openDriver(SurfaceHolder holder) throws IOException {\n OpenCamera theCamera = camera;\n if (theCamera == null) {\n theCamera = OpenCameraInterface.open(-1);\n if (theCamera == null) {\n throw new IOException(\"Camera.open() failed to return object from driver\");\n }\n camera = theCamera;\n }\n\n Camera cameraObject = theCamera.getCamera();\n Camera.Parameters parameters = cameraObject.getParameters();\n String parametersFlattened = parameters == null ? null : parameters.flatten(); // Save these, temporarily\n try {\n setDesiredCameraParameters(theCamera, false);\n } catch (RuntimeException re) {\n // Driver failed\n Log.w(TAG, \"Camera rejected parameters. Setting only minimal safe-mode parameters\");\n Log.i(TAG, \"Resetting to saved camera params: \" + parametersFlattened);\n // Reset:\n if (parametersFlattened != null) {\n parameters = cameraObject.getParameters();\n parameters.unflatten(parametersFlattened);\n try {\n cameraObject.setParameters(parameters);\n setDesiredCameraParameters(theCamera, true);\n } catch (RuntimeException re2) {\n // Well, darn. Give up\n Log.w(TAG, \"Camera rejected even safe-mode parameters! No configuration\");\n }\n }\n }\n cameraObject.setPreviewDisplay(holder);\n previewCallback = new PreviewCallback(previewSize);\n }", "private void launchCamera() {\n Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n\n // Ensure that there's a camera activity to handle the intent\n if (takePictureIntent.resolveActivity(getPackageManager()) != null) {\n // Create the temporary File where the photo should go\n try {\n photoFile = createTempImageFile(PhotoActivity.this);\n } catch (IOException ex) {\n // Error occurred while creating the File\n ex.printStackTrace();\n }\n // Continue only if the File was successfully created\n if (photoFile != null) {\n\n // Get the path of the temporary file\n mTempPhotoPath = photoFile.getAbsolutePath();\n\n // Get the content URI for the image file\n Uri photoURI = FileProvider.getUriForFile(this,\n FILE_PROVIDER_AUTHORITY,\n photoFile);\n\n // Add the URI so the camera can store the image\n takePictureIntent.putExtra(MediaStore.EXTRA_OUTPUT, photoURI);\n\n // Launch the camera activity\n startActivityForResult(takePictureIntent, REQUEST_IMAGE_CAPTURE);\n }\n }\n }", "Camera getCamera();", "public void onCameraPressed(View view) {\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\r\n\r\n // create a file handle for the phoot that will be taken\r\n this.photoFile = getFileForPhoto(this.filename);\r\n Uri fileProvider = FileProvider.getUriForFile(PersonDetailsActivity.this, \"com.example.labtest1\", this.photoFile);\r\n intent.putExtra(MediaStore.EXTRA_OUTPUT, fileProvider);\r\n\r\n // Try to open the camera app\r\n if (intent.resolveActivity(getPackageManager()) != null) {\r\n startActivityForResult(intent, TAKE_PHOTO_ACTIVITY_REQUEST_CODE);\r\n }\r\n }", "public void openReader(){\r\n handle = -1;\r\n try {\r\n cardReader = new ACR120U();\r\n } catch (java.lang.UnsatisfiedLinkError e) {\r\n e.printStackTrace();\r\n System.err.println(\"Are you sure the DLL is installed???\");\r\n message = \"DLL Installation problem.\";\r\n return;\r\n }\r\n handle = cardReader.open(ACR120U.ACR120_USB1); \r\n if (handle < 0){\r\n //message = \"Error opening reader [port may be in use or reader not in binary mode]\";\r\n message = \"No reader found\";\r\n System.err.println(message);\r\n return;\r\n }\r\n message = \"Device opened.\";\r\n }", "public int switchCamera() {\n return mRtcEngine.switchCamera();\n }", "public void cameraIntent() {\n startActivityForResult(new Intent(\"android.media.action.IMAGE_CAPTURE\"), 1);\n }", "@Override\n public void onOpened(CameraDevice camera) {\n cameraDevice = camera;\n createCameraPreview();\n }", "@Override\n public void onOpened(CameraDevice camera) {\n cameraDevice = camera;\n createCameraPreview();\n }", "@Override\n public void onClick(View view) {\n try {\n if (ActivityCompat.checkSelfPermission(getApplicationContext(), Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n cameraManager.openCamera(cameraManager.getCameraIdList()[0],\n new CameraState(cameraView), null);\n } catch (CameraAccessException e) {\n Log.d(\"msg\",\"CameraAccessException\");\n e.printStackTrace();\n }\n\n }", "public void onLaunchCamera(View view) {\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n // Create a File reference to access to future access\n /*photoFile = getPhotoFileUri(photoFileName);\n\n // wrap File object into a content provider\n // required for API >= 24\n // See https://guides.codepath.com/android/Sharing-Content-with-Intents#sharing-files-with-api-24-or-higher\n Uri fileProvider = FileProvider.getUriForFile(this, \"com.codepath.fileprovider\", photoFile);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, fileProvider);*/\n\n // If you call startActivityForResult() using an intent that no app can handle, your app will crash.\n // So as long as the result is not null, it's safe to use the intent.\n if (intent.resolveActivity(getPackageManager()) != null) {\n // Start the image capture intent to take photo\n File photoFile = null;\n try {\n photoFile = createImageFile();\n } catch (IOException ex) {\n // Error occurred while creating the File\n\n }\n\n if (photoFile != null) {\n Uri photoURI = FileProvider.getUriForFile(this,\n \"com.example.android.fileprovider\",\n photoFile);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, photoURI);\n startActivityForResult(intent, CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE);\n }\n }\n }", "public void onLaunchCamera() {\n takePic.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // create Intent to take a picture and return control to the calling application\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n // Create a File reference to access to future access\n photoFile = getPhotoFileUri(photoFileName);\n\n // wrap File object into a content provider\n // required for API >= 24\n // See https://guides.codepath.com/android/Sharing-Content-with-Intents#sharing-files-with-api-24-or-higher\n Uri fileProvider = FileProvider.getUriForFile(Driver_License_Scan.this, \"com.codepath.fileprovider\", photoFile);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, fileProvider);\n\n // If you call startActivityForResult() using an intent that no app can handle, your app will crash.\n // So as long as the result is not null, it's safe to use the intent.\n if (intent.resolveActivity(getPackageManager()) != null) {\n // Start the image capture intent to take photo\n startActivityForResult(intent, CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE);\n }\n }\n });\n }", "@Override\n public void openVideoCapture(Map<String, Object> parameters) throws Exception {\n checkNotNull(camera, \"Camera required\");\n ImageView viewCamera = checkNotNull((ImageView) parameters.get(\"viewCamera\"),\n \"Camera's ImageView required\");\n\n videoCapture.open(camera.getWebCamIndex());\n\n videoCapture.set(3, camera.getWidth());\n videoCapture.set(4, camera.getHeight());\n\n Runnable frameGrabber = () -> viewCamera.setImage(grabFrame(new HashMap<>()));\n timer = Executors.newSingleThreadScheduledExecutor();\n timer.scheduleAtFixedRate(frameGrabber, 0, 33, TimeUnit.MICROSECONDS);\n }", "public interface ICamera {\n\n /**\n * Return frame access interface for client usage\n *\n * @param interface_index\n * @return\n */\n public long getFrameAccessIfc(int interface_index);\n\n /**\n * Start the camera stream\n */\n public void start();\n\n /**\n * Stop the camera stream\n */\n public void stop();\n\n public String prepare(final UsbMonitor.UsbConnectionData connectionData);\n\n /**\n * Register json status callback\n *\n * @param callback\n */\n public void setStatusCallback(final IStatusCallback callback);\n\n /**\n * Queries camera for supported mode\n *\n * @return supported video modes String\n */\n public String getSupportedVideoModes();\n\n// /**\n// * Select camera capture mode\n// *\n// * @param width\n// * @param height\n// * @param frameFormat\n// */\n// public void setCaptureMode(final int width, final int height, final int frameFormat);\n\n /**\n * Select camera capture mode\n *\n * @param width\n * @param height\n * @param min_fps\n * @param max_fps\n * @param frameFormat\n */\n public void setCaptureMode(final int width, final int height, final int min_fps, final int max_fps, final int frameFormat);\n}", "public SmartCamera( String cameraName ) {\r\n\t\t\r\n\t\tCameraServer.getInstance().setQuality(50);\r\n\t\t\r\n\t\ttry{\r\n\t\t\tframe = NIVision.imaqCreateImage(NIVision.ImageType.IMAGE_RGB, 0);\r\n\t\r\n\t // the camera name (ex \"cam0\") can be found through the roborio web interface\r\n\t cameraSession = NIVision.IMAQdxOpenCamera( cameraName,\r\n\t NIVision.IMAQdxCameraControlMode.CameraControlModeController);\r\n\t NIVision.IMAQdxConfigureGrab(cameraSession);\r\n\t NIVision.IMAQdxStartAcquisition(cameraSession);\r\n\t\t}catch (VisionException vx){\r\n\t\t\tvisionBroken=true;\r\n\t\t}\r\n\t}", "@Override\n public void onOpened(CameraDevice camera) {\n Log.e(TAG, \"onOpened\");\n cameraDevice = camera;\n createCameraPreview();\n }", "@Override\n public void onOpened(CameraDevice camera) {\n Log.e(TAG, \"onOpened\");\n cameraDevice = camera;\n createCameraPreview();\n }", "public void startCamera()\n {\n startCamera(null);\n }", "@Override\n public void onOpened(CameraDevice camera) {\n Log.e(TAG, \"onOpened\");\n mCameraDevice = camera;\n startPreview();\n }", "private void setCamera() {\n\t\tCamera.CameraInfo cameraInfo = new Camera.CameraInfo();\n\t\tint cameraCount = Camera.getNumberOfCameras();\n\t\tLog.i(TAG, \"count = \" + cameraCount);\n\t\tLog.i(TAG, \"isBack = \" + isBack);\n\t\tint id = 0;\n\n\t\tfor (int camIdx = 0; camIdx < cameraCount; camIdx++) {\n\t\t\tCamera.getCameraInfo(camIdx, cameraInfo);\n\t\t\tLog.i(TAG, \"cameraInfoFacing = \" + cameraInfo.facing);\n\t\t\tif (cameraInfo.facing == Camera.CameraInfo.CAMERA_FACING_BACK\n\t\t\t\t\t&& isBack) {\n\t\t\t\ttry {\n\t\t\t\t\tLog.i(TAG, \"SETTING mCamera\");\n\t\t\t\t\tmCamera = Camera.open(camIdx);\n\t\t\t\t\tid = camIdx;\n\t\t\t\t} catch (RuntimeException e) {\n\t\t\t\t\tLog.e(TAG,\n\t\t\t\t\t\t\t\"Camera failed to open: \" + e.getLocalizedMessage());\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t} else if (cameraInfo.facing == Camera.CameraInfo.CAMERA_FACING_FRONT\n\t\t\t\t\t&& !isBack){\n\t\t\t\ttry {\n\t\t\t\t\tLog.i(TAG, \"SETTING mCamera\");\n\t\t\t\t\tmCamera = Camera.open(camIdx);\n\t\t\t\t\tid = camIdx;\n\t\t\t\t} catch (RuntimeException e) {\n\t\t\t\t\tLog.e(TAG,\n\t\t\t\t\t\t\t\"Camera failed to open: \" + e.getLocalizedMessage());\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (mCamera != null) {\n\t\t\tCamera.Parameters cameraParameters = mCamera.getParameters();\n\t\t\tDisplay display = getActivity().getWindowManager().getDefaultDisplay();\n\t\t\tPoint size = new Point();\n\t\t\tdisplay.getSize(size);\n\t\t\tint screenWidth = size.x;\n\t\t\tint width = Integer.MAX_VALUE;\n\t\t\tint height = 0;\n\t\t\tLog.i(TAG, \"SCREENWIDTH: \" + screenWidth);\n\t\t\tList<Camera.Size> sizes = cameraParameters.getSupportedPreviewSizes();\n\t\t\tfor (Camera.Size cSize : sizes) {\n\t\t\t\tif (cSize.width >= screenWidth && cSize.width <= width) {\n\t\t\t\t\twidth = cSize.width;\n\t\t\t\t\theight = cSize.height;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tLog.i(TAG, \"Width: \" + width + \" HEIGHT: \" + height);\n\n\t\t\tif (mPreview != null) {\n\t\t\t\tmPreview.switchCamera(mCamera, id, width, height);\n\t\t\t} else {\n\t\t\t\tmPreview = new CameraPreview(getActivity(), mCamera, id, width, height);\n\t\t\t\tFrameLayout preview = (FrameLayout) view\n\t\t\t\t\t\t.findViewById(R.id.camera_preview);\n\t\t\t\tpreview.addView(mPreview);\n\t\t\t}\n\t\t\tmCamera.startPreview();\n\t\t}\n\t}", "public void camera(){\n System.out.println(\"I am taking pictures...\");\r\n }", "public Vision() {\n\n visionCam = CameraServer.getInstance().startAutomaticCapture(\"HatchCam\", 0);\n visionCam.setVideoMode(PixelFormat.kMJPEG, 320, 240, 115200);\n \n int retry = 0;\n while(cam == null && retry < 10) {\n try {\n System.out.println(\"Connecting to jevois serial port ...\");\n cam = new SerialPort(115200, SerialPort.Port.kUSB1);\n System.out.println(\"Success!!!\");\n } catch (Exception e) {\n System.out.println(\"We all shook out\");\n e.printStackTrace();\n sleep(500);\n System.out.println(\"Retry\" + Integer.toString(retry));\n retry++;\n }\n }\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n }", "@FXML\r\n protected void startCamera() {\r\n // set a fixed width for the frame\r\n this.currentFrame.setFitWidth(600);\r\n // preserve image ratio\r\n this.currentFrame.setPreserveRatio(true);\r\n\r\n if (!this.cameraActive) {\r\n\r\n // start the video capture\r\n //this.capture.open(0);\r\n //Read the video (Chage video)\r\n this.capture.open(\"Faruri.m4v\");\r\n\r\n\r\n System.out.println(\"start capture...\");\r\n // is the video stream available?\r\n if (this.capture.isOpened()) {\r\n System.out.println(\"inif\");\r\n this.cameraActive = true;\r\n\r\n // grab a frame every 33 ms (30 frames/sec)\r\n Runnable frameGrabber = new Runnable() {\r\n\r\n @Override\r\n public void run() {\r\n // effectively grab and process a single frame\r\n Mat frame = grabFrame();\r\n\r\n//\t\t\t\t\t\t// convert and show the frame\r\n//\t\t\t\t\t\tImage imageToShow = Utils.mat2Image(frame);\r\n//\t\t\t\t\t\tupdateImageView(currentFrame, imageToShow);\r\n }\r\n };\r\n\r\n this.timer = Executors.newSingleThreadScheduledExecutor();\r\n this.timer.scheduleAtFixedRate(frameGrabber, 0, 33, TimeUnit.MILLISECONDS);\r\n\r\n // update the button content\r\n this.button.setText(\"Stop Video\");\r\n } else {\r\n // log the error\r\n System.err.println(\"Impossible to open the video...\");\r\n }\r\n } else {\r\n // the camera is not active at this point\r\n this.cameraActive = false;\r\n // update again the button content\r\n this.button.setText(\"Start Video\");\r\n\r\n // stop the timer\r\n this.stopAcquisition();\r\n }\r\n }", "private void pickFromCamera() {\n Intent startCamera = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n startCamera.putExtra(MediaStore.EXTRA_OUTPUT, uriImage);\n startActivityForResult(startCamera, IMAGE_PICK_CAMERA_CODE);\n\n }", "public void openInAppCamera(SmartCameraListener smartCameraListener, CameraConfigInformation cameraConfigInfo) {\n\t\tLog.d(SmartConstants.APP_NAME, \"SmartViewActivity->openInAppCamera->cameraConfigInfo:\" + cameraConfigInfo);\n\t\tthis.smartCameraListener = smartCameraListener;\n\t\tthis.cameraConfigInformation = cameraConfigInfo;\n\t\tIntent intent = new Intent(\"android.media.action.IMAGE_CAPTURE\");\n\n\t\t// for experimentation only\n\t\tFile output = getCameraTempFile();\n\t\tintent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(output));\n\t\t// ----------------------------\n\n\t\tstartActivityForResult(intent, SmartConstants.REQ_CODE_LAUNCH_CAMERA_APP);\n\t}", "public void open(Activity activity, boolean isSecureCamera, boolean isCaptureIntent);", "public VideoCapture(int device)\n {\n \n nativeObj = VideoCapture_2(device);\n \n return;\n }", "public static Camera openCamera(Activity activity, int cameraId)\n throws Exception {\n if (!activity.isFinishing()) {\n DevicePolicyManager dpm = (DevicePolicyManager) activity.getSystemService(\n Context.DEVICE_POLICY_SERVICE);\n if (dpm.getCameraDisabled(null) == true) {\n throw new Exception();\n }\n for (int i = 0; i < OPEN_RETRY_COUNT; i++) {\n try {\n return CameraHolder.instance().open(cameraId);\n } catch (Exception e) {\n if (i == 0) {\n try {\n //wait some time, and try another time\n //Camera device may be using by VT or atv.\n Thread.sleep(1000);\n } catch (InterruptedException ie) {\n }\n continue;\n } else {\n // In eng build, we throw the exception so that test tool\n // can detect it and report it\n if (\"eng\".equals(Build.TYPE)) {\n if (BuildConfig.DEBUG) Log.i(TAG, \"Open Camera fail\", e);\n throw e;\n //QA will always consider JE as bug, so..\n //throw new RuntimeException(\"openCamera failed\", e);\n } else {\n throw e;\n }\n }\n }\n }\n //just for build pass\n }\n throw new Exception(new RuntimeException(\"Should never get here\"));\n\n }", "public Camera open(int cameraId) {\r\n Camera camera = null;\r\n try {\r\n if (mMethodOpenLevel9 != null) {\r\n Object[] argList = new Object[1];\r\n argList[0] = cameraId;\r\n camera = (Camera) mMethodOpenLevel9.invoke(null, argList);\r\n }\r\n } catch (Exception e) {\r\n Log.w(LOG_TAG, \"CameraHideMethods:mMethodOpenLevel9()\", e);\r\n }\r\n\r\n return camera;\r\n }", "public static void letCamera(Activity activity) {\n\t\tIntent imageCaptureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n\t\tstrImgPath = Environment.getExternalStorageDirectory().toString()\n\t\t\t\t+ \"/dlion/\";// �����Ƭ���ļ���\n\t\tString fileName = new SimpleDateFormat(\"yyyyMMddHHmmss\")\n\t\t\t\t.format(new Date()) + \".jpg\";// ��Ƭ����\n\t\tFile out = new File(strImgPath);\n\t\tif (!out.exists()) {\n\t\t\tout.mkdirs();\n\t\t}\n\t\tout = new File(strImgPath, fileName);\n\t\tstrImgPath = strImgPath + fileName;// ����Ƭ�ľ���·��\n\n\t\tUri uri = Uri.fromFile(out);\n\t\timageCaptureIntent.putExtra(MediaStore.EXTRA_OUTPUT, uri);\n\t\timageCaptureIntent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 2);\n\t\tactivity.startActivityForResult(imageCaptureIntent, 1);\n\t}", "public void init(HardwareMap hwMap){\n int cameraMonitorViewID = hwMap.appContext.getResources().getIdentifier(\"cameraMonitorViewId\", \"id\", hwMap.appContext.getPackageName());\n phoneCam = OpenCvCameraFactory.getInstance().createInternalCamera(OpenCvInternalCamera.CameraDirection.BACK,cameraMonitorViewID);\n phoneCam.openCameraDevice();\n phoneCam.setPipeline(counter);\n phoneCam.openCameraDeviceAsync(new OpenCvCamera.AsyncCameraOpenListener()\n {\n @Override\n public void onOpened()\n {\n phoneCam.startStreaming(320, 240, OpenCvCameraRotation.UPRIGHT);\n }\n });\n }", "public static Camera getCameraInstance(){\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD) {\n return Camera.open(0); // This is the line the error occurs\n } else {\n return Camera.open();\n }\n }", "org.auvua.utils.protobuffer.AUVprotocol.AUVState.Telemetry.Camera getCamera(int index);", "public void openCamera(View view) {\n //do something here\n dispatchTakePictureIntent();\n\n }", "public static void camDebug(Camera camera) {\n\t}", "public void startFrontCam() {\n }", "private void requestCameraPermission() {\r\n Dexter.withActivity(this)\r\n .withPermission(Manifest.permission.CAMERA)\r\n .withListener(new PermissionListener() {\r\n @Override\r\n public void onPermissionGranted(PermissionGrantedResponse response) {\r\n // permission is granted\r\n Toast.makeText(getApplicationContext(), \"Camera permission are granted!\", Toast.LENGTH_SHORT).show();\r\n\r\n Intent camera_intent=new Intent(MainActivity.this,CameraActivity.class);\r\n startActivity(camera_intent);\r\n }\r\n\r\n @Override\r\n public void onPermissionDenied(PermissionDeniedResponse response) {\r\n // check for permanent denial of permission\r\n if (response.isPermanentlyDenied()) {\r\n showSettingsDialog();\r\n }\r\n }\r\n\r\n @Override\r\n public void onPermissionRationaleShouldBeShown(PermissionRequest permission, PermissionToken token) {\r\n token.continuePermissionRequest();\r\n }\r\n }).check();\r\n }", "public void setCaptureDevice(String devid);", "public CameraManager(HardwareMap hardwareMap) {\n int cameraMonitorViewId = hardwareMap.appContext.getResources().getIdentifier(\"cameraMonitorViewId\", \"id\", hardwareMap.appContext.getPackageName());\n phoneCam = OpenCvCameraFactory.getInstance().createInternalCamera(OpenCvInternalCamera.CameraDirection.BACK, cameraMonitorViewId);\n pipeline = new CvPipeline();\n phoneCam.setPipeline(pipeline);\n }", "@Override\n public void onOpened(@NonNull CameraDevice camera) {\n mCameraDevice = camera;\n if (mIsRecording) {\n try {\n mVideoFilePath = FileUtils.createVideoFile(getApplicationContext());\n } catch (IOException e) {\n e.printStackTrace();\n }\n startNewVideo();\n } else {\n startPreview();\n }\n }", "public void takePictureFromCamera() {\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n startActivityForResult(intent, CAMERA_REQUEST_CODE);\n\n }", "public void onSwitchCameraClicked(View view) {\n // Switch the camera\n mRtcEngine.switchCamera();\n }", "private static UsbCamera setUsbCamera(String camName, int cameraId) {\n // This gets the image from a USB camera \n // Usually this will be on device 0, but there are other overloads\n // that can be used\n UsbCamera camera = new UsbCamera(camName, cameraId);\n camera.setResolution(PIXEL_WIDTH, PIXEL_HEIGHT);\n camera.setBrightness(BRIGHTNESS);\n camera.setExposureManual(EXPOSURE);\n camera.setWhiteBalanceManual(WHITE_BALANCE);\n camera.setFPS(FRAMES_PER_SEC);\n System.out.println(camera.getName());\n System.out.println(camera.getDescription());\n System.out.println(camera.getPath());\n System.out.println(camera.getKind());\n System.out.println(camera.isConnected());\n return camera;\n }", "private void takePhoto() {\n Uri fileUri = FileProvider.getUriForFile(Mic.getmCtx(), \"com.jay.appdemo1.fileProvider\", getOutputMediaFile());\n Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, fileUri);\n intent.putExtra(MediaStore.EXTRA_DURATION_LIMIT, 10); //限制的录制时长 以秒为单位\n// intent.putExtra(MediaStore.EXTRA_SIZE_LIMIT, 1024); //限制视频文件大小 以字节为单位\n// intent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 1); //设置拍摄的质量0~1\n// intent.putExtra(MediaStore.EXTRA_FULL_SCREEN, false); // 全屏设置\n startActivityForResult(intent, RECORD_SYSTEM_VIDEO);\n }", "public S<T> camVid(int code){\n\t Intent intent = new Intent(android.provider.MediaStore.ACTION_VIDEO_CAPTURE);\n\t activity.startActivityForResult(intent, code);\n\t return this;\n\t }", "@Override\n public void onOpened(@NonNull CameraDevice camera) {\n cameraDevice = camera;\n createCameraPreview();\n }", "void connectToCameraSystem(@NonNull CameraSystem cameraSystem);", "public void toTakeAPicture(View view) {\n requestCameraPermissions();\n Intent launchCamera = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n startActivityForResult(launchCamera, Constants.CAM_REQUEST);\n\n\n\n }", "public void setCamera(int camera) {\n\t\tCameraInfo cameraInfo = new CameraInfo();\n\t\tint numberOfCameras = Camera.getNumberOfCameras();\n\t\tfor (int i=0;i<numberOfCameras;i++) {\n\t\t\tCamera.getCameraInfo(i, cameraInfo);\n\t\t\tif (cameraInfo.facing == camera) {\n\t\t\t\tthis.mCameraId = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void onOpened(@NonNull CameraDevice camera) {\n mCameraDevice = camera;\n createCameraPreview();\n }", "public static Camera getCameraInstance() {\n Camera c = null;\n try {\n c = Camera.open(nextCam); // attempt to get a Camera instance\n } catch (Exception e) {\n // Camera is not available (in use or does not exist)\n }\n return c; // returns null if camera is unavailable\n }", "protected void startReport(){\n Intent cameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n startActivityForResult(cameraIntent,REQUEST_CODE);\n }", "public void startStreaming() {\n// phoneCam.setViewportRenderingPolicy(OpenCvCamera.ViewportRenderingPolicy.OPTIMIZE_VIEW);\n phoneCam.startStreaming(320, 240, OpenCvCameraRotation.SIDEWAYS_RIGHT);\n }", "private void requestCameraPermission(final int type) {\n Dexter.withActivity(this)\n .withPermissions(Manifest.permission.CAMERA,\n Manifest.permission.WRITE_EXTERNAL_STORAGE)\n .withListener(new MultiplePermissionsListener() {\n @Override\n public void onPermissionsChecked(MultiplePermissionsReport report) {\n if (report.areAllPermissionsGranted()) {\n\n openCamera(type);\n Log.e(\"tipe cam :\", String.valueOf(type));\n\n } else if (report.isAnyPermissionPermanentlyDenied()) {\n showPermissionsAlert();\n }\n }\n\n @Override\n public void onPermissionRationaleShouldBeShown(List<PermissionRequest> permissions, PermissionToken token) {\n token.continuePermissionRequest();\n }\n }).check();\n }", "private static UsbCamera setUsbCamera(String camName, int cameraId, MjpegServer server) {\n\t // This gets the image from a USB camera \n\t // Usually this will be on device 0, but there are other overloads\n\t // that can be used\n\t UsbCamera camera = new UsbCamera(camName, cameraId);\n\t camera.setResolution(PIXEL_WIDTH,PIXEL_HEIGHT);\n\t camera.setBrightness(BRIGHTNESS);\n\t camera.setExposureManual(EXPOSURE);\n\t camera.setWhiteBalanceManual(WHITE_BALANCE);\n\t camera.setFPS(FRAMES_PER_SEC);\n\t server.setSource(camera);\n\t return camera;\n\t}", "private void takePicture() {\n Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n // check if there is a camera app installed\n if (takePictureIntent.resolveActivity(getPackageManager()) != null) {\n // build the photo file\n mPhotoFile = new File(getExternalFilesDir(null), code + \".jpg\");\n // get URI using a file provider\n Uri photoURI = FileProvider.getUriForFile(this,\n \"com.martindisch.fileprovider\",\n mPhotoFile);\n // put URI into Intent\n takePictureIntent.putExtra(MediaStore.EXTRA_OUTPUT, photoURI);\n // send Intent\n startActivityForResult(takePictureIntent, REQUEST_IMAGE_CAPTURE);\n } else {\n Toast.makeText(this, R.string.no_camera, Toast.LENGTH_SHORT).show();\n }\n }", "public String getCaptureDevice();", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\n\t\t\t\t\tIntent openCameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n\t\t\t\t\tUri imageUri = Uri.fromFile(new File(Environment.getExternalStorageDirectory(),fileName));\n\t\t\t\t\topenCameraIntent.putExtra(MediaStore.EXTRA_OUTPUT, imageUri);\n\t\t\t\t\tstartActivityForResult(openCameraIntent, 1);\n\t\t\t\t\tdismiss();\n\t\t\t\t}", "public void getImageFromCamera() {\n String capturedPath = \"image_\" + System.currentTimeMillis() + \".jpg\";\n File file = new File(Environment.getExternalStorageDirectory().getAbsolutePath()\n + \"/DCIM\", capturedPath);\n file.getParentFile().mkdirs();\n mCapturedImageUri = Uri.fromFile(file);\n\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, mCapturedImageUri);\n startActivityForResult(intent, CAPTURE_IMAGE_REQUEST_CODE);\n }", "private void cameraIntent() {\n Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n if (takePictureIntent.resolveActivity(context.getPackageManager()) != null) {\n File photoFile = null;\n try {\n photoFile = createImageFile();\n } catch (IOException ex) {\n // Error occurred while creating the File\n\n }\n // Continue only if the File was successfully created\n if (photoFile != null) {\n takePictureIntent.putExtra(MediaStore.EXTRA_OUTPUT,\n Uri.fromFile(photoFile));\n ((MessageActivity) context).startActivityForResult(takePictureIntent, CAMERA_REQUEST);\n }\n }\n }", "@OnClick(R.id.bt_camera)\n public void onClick() {\n rxPermissions.requestEach(Manifest.permission.CAMERA, Manifest.permission.WRITE_EXTERNAL_STORAGE)\n .subscribe(new Consumer<Permission>() {\n @Override\n public void accept(Permission permission) throws Exception {\n if (permission.granted) {\n// releaseCamera();\n// camera = Camera.open(0);\n// try {\n// camera.setPreviewDisplay(surfaceView.getHolder());\n// camera.startPreview();\n// } catch (IOException e) {\n// Log.e(TAG, \"Error while trying to display the camera preview\", e);\n// }\n ToastUtil.showS(\"已获取到权限\");\n } else if (permission.shouldShowRequestPermissionRationale) {\n // Denied permission without ask never again\n Toast.makeText(mContext,\n \"Denied permission without ask never again\",\n Toast.LENGTH_SHORT).show();\n } else {\n // Denied permission with ask never again\n // Need to go to the settings\n Toast.makeText(mContext,\n \"Permission denied, can't enable the camera\",\n Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "public void configureCamera(){\n try{\n camera = Camera.open(findBackFacingCamera());\n } catch (Exception e){}\n\n if(camera != null) {\n cameraView = new CameraView(this.getApplicationContext(), camera);\n FrameLayout camera_view = (FrameLayout)findViewById(R.id.CameraView);\n camera_view.addView(cameraView);\n }\n }", "public void chooseCamera() {\n if (cameraFront) {\n int cameraId = findBackFacingCamera();\n if (cameraId >= 0) {\n //open the backFacingCamera\n //set a picture callback\n //refresh the preview\n\n mCamera = Camera.open(cameraId);\n setRotation(mCamera, mCamera.getParameters(), cameraId);\n // mCamera.setDisplayOrientation(90);\n mPicture = getPictureCallback();\n mPreview.refreshCamera(mCamera);\n }\n } else {\n int cameraId = findFrontFacingCamera();\n if (cameraId >= 0) {\n //open the backFacingCamera\n //set a picture callback\n //refresh the preview\n mCamera = Camera.open(cameraId);\n setRotation(mCamera, mCamera.getParameters(), cameraId);\n // mCamera.setDisplayOrientation(90);\n mPicture = getPictureCallback();\n mPreview.refreshCamera(mCamera);\n }\n }\n }", "private static native boolean open_1(long nativeObj, int device);", "public void onCamera();", "@Override\n public void onOpened(@NonNull CameraDevice cameraDevice) {\n Log.d(TAG, \"Camera opened\");\n\n mImageReader = ImageReader.newInstance(\n CAMERA_RESOLUTION_WIDTH,\n CAMERA_RESOLUTION_HEIGHT,\n ImageFormat.YUV_420_888,\n 1);\n\n mImageReader.setOnImageAvailableListener(mImageAvailableListener, null);\n mCaptureSurface = mImageReader.getSurface();\n try {\n cameraDevice.createCaptureSession(\n Collections.singletonList(mCaptureSurface),\n mCameraCaptureSessionStateCallback,\n null);\n } catch (CameraAccessException cae) {\n throw new RuntimeException(\"Error encountered creating camera capture session\", cae);\n }\n }" ]
[ "0.7717478", "0.72830886", "0.7043686", "0.69432056", "0.69061255", "0.68256986", "0.68050945", "0.6774917", "0.6768146", "0.67002374", "0.6611029", "0.65494055", "0.6515817", "0.6498392", "0.649753", "0.6404375", "0.6401769", "0.6390523", "0.63662136", "0.63464504", "0.63001275", "0.62592435", "0.6247774", "0.62184215", "0.6206436", "0.6202628", "0.61907774", "0.6182366", "0.61770463", "0.6162767", "0.6161405", "0.61606234", "0.61585355", "0.6148764", "0.6121602", "0.61166596", "0.61067086", "0.6097853", "0.6091593", "0.6089697", "0.60721916", "0.60706884", "0.60706884", "0.6054027", "0.60388696", "0.60338116", "0.60252637", "0.6019803", "0.6018689", "0.60143536", "0.60143536", "0.6000354", "0.59977376", "0.59844285", "0.5956023", "0.5952426", "0.5942815", "0.5941084", "0.59172064", "0.58984995", "0.58962554", "0.5893755", "0.5883406", "0.5879939", "0.5871502", "0.5870124", "0.5869599", "0.585148", "0.58326256", "0.58237886", "0.5822614", "0.5818996", "0.5808856", "0.58055604", "0.58049476", "0.5790666", "0.5782569", "0.5768673", "0.5767956", "0.5759934", "0.57582074", "0.5753064", "0.5749652", "0.5746867", "0.5730116", "0.5696316", "0.56921315", "0.56887984", "0.56855536", "0.5685287", "0.56783545", "0.56782895", "0.567697", "0.56726325", "0.56628424", "0.5659397", "0.5641137", "0.56372947", "0.5636415", "0.5634179" ]
0.6030502
46
To select image from gallery in device serial number
public File createImageFile() { // the public picture director File picturesDirectory = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES); // To get pictures directory from android system // timestamp makes unique name. @SuppressLint("SimpleDateFormat") SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd_HHmmss"); String timestamp = sdf.format(new Date()); // put together the directory and the timestamp to make a unique image location. File imageFile = new File(picturesDirectory, timestamp + ".jpg"); return imageFile; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void selectImagesDeviceSerialNubmer() {\n Intent galleryIntent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.INTERNAL_CONTENT_URI);\n startActivityForResult(galleryIntent, GALLERY_DEVICE_SERIAL_NUMBER);\n }", "private void selectImageFromGallery() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, getString(R.string.select_picture)),\n REQUEST_IMAGE_OPEN);\n }", "private void selectImage() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(\n Intent.createChooser(\n intent,\n \"Select Image from here...\"),\n PICK_IMAGE_REQUEST);\n }", "@Override\n public void startDeviceImageIntent() {\n Intent galleryIntent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(galleryIntent, PICK_FROM_GALLERY_REQUEST_CODE);\n }", "public void onLaunchSelect() {\n Intent intent = new Intent(Intent.ACTION_PICK,\n MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\n\n // If you call startActivityForResult() using an intent that no app can handle, your app will crash.\n // So as long as the result is not null, it's safe to use the intent.\n if (intent.resolveActivity(getPackageManager()) != null) {\n // Bring up gallery to select a photo\n startActivityForResult(intent, SELECT_IMAGE_REQUEST_CODE);\n }\n }", "private void selectImage(){\n final CharSequence[] options = { \"Choose from Gallery\",\"Cancel\" };\n AlertDialog.Builder builder = new AlertDialog.Builder(activity);\n builder.setItems(options, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int item) {\n if (options[item].equals(\"Choose from Gallery\"))\n {\n Intent intent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n startActivityForResult(intent, 2);\n }\n else if (options[item].equals(\"Cancel\")) {\n dialog.dismiss();\n }\n }\n });\n builder.show();\n }", "public void selectImage(View view){\n Intent intent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.INTERNAL_CONTENT_URI);\n startActivityForResult(intent,PICK_IMAGE);\n }", "private void pickImageFromGallery() {\n Intent intent = new Intent(Intent.ACTION_PICK);\n intent.setType(\"image/*\");\n startActivityForResult(intent, IMAGE_PICK_CODE);\n\n }", "private void choseImage() {\n Intent intent = new Intent(Intent.ACTION_GET_CONTENT);\n intent.setType(\"image/*\");\n\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivityForResult(intent, GALLERY_REQ_CODE);\n } else {\n Toast.makeText(this, R.string.no_image_picker, Toast.LENGTH_SHORT).show();\n }\n }", "private void openGallery() {\n Intent gallery = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.INTERNAL_CONTENT_URI);\n startActivityForResult(gallery, REQUEST_IMAGE_SELECT);\n }", "private void dispatchGalleryIntent() {\n Intent pickPhoto = new Intent(Intent.ACTION_PICK,\n MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n pickPhoto.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n startActivityForResult(pickPhoto, REQUEST_CHOOSE_PHOTO_NUM);\n }", "void selectImage(String path);", "private void imagePic(){\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"),1);\n\n }", "private void pickFromGallery() {\n\n Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);\n intent.addCategory(Intent.CATEGORY_OPENABLE);\n intent.setType(\"*/*\");\n\n intent.setType(\"image/*\");\n\n //We pass an extra array with the accepted mime types. This will ensure only components with these MIME types as targeted.\n String[] mimeTypes = {\"image/jpeg\", \"image/png\",\"image/jpg\"};\n intent.putExtra(Intent.EXTRA_MIME_TYPES,mimeTypes);\n // Launching the Intent\n startActivityForResult(intent,GALLERY_REQUEST_CODE);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_PICK);\n intent.setType(\"image/*\");\n // the one is the number attached to the intent\n //it capture the number and goes with the result\n startActivityForResult(intent,1);\n }", "void imageChooser() {\n\n // create an instance of the\n // intent of the type image\n Intent i = new Intent();\n i.setType(\"image/*\");\n i.setAction(Intent.ACTION_GET_CONTENT);\n\n\n // pass the constant to compare it\n // with the returned requestCode\n startActivityForResult(Intent.createChooser(i, \"Select Picture\"), SELECT_PICTURE);\n }", "private void OpenGallery() {\n Intent pickImage = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(pickImage, RequestCode);\n }", "private void pickFromGallery() {\n Intent intent = new Intent(Intent.ACTION_PICK);\r\n // Sets the type as image/*. This ensures only components of type image are selected\r\n intent.setType(\"image/*\");\r\n //We pass an extra array with the accepted mime types. This will ensure only components with these MIME types as targeted.\r\n String[] mimeTypes = {\"image/jpeg\", \"image/png\"};\r\n intent.putExtra(Intent.EXTRA_MIME_TYPES, mimeTypes);\r\n // Launching the Intent\r\n startActivityForResult(intent, 0);\r\n }", "private void showGalleryChooser() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE_REQUEST);\n }", "private void openFileChoose() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(intent, PEGA_IMAGEM);\n }", "void imageChooser() {\n\n\n Intent i = new Intent();\n i.setType(\"image/*\");\n i.setAction(Intent.ACTION_GET_CONTENT);\n\n\n startActivityForResult(Intent.createChooser(i, \"Select Picture\"), SELECT_PICTURE);\n }", "public void getImage(int index) {\n\t\tcurrentIndex = index;\n Intent pickPhoto = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(pickPhoto, 1);//one can be replaced with any action code\n }", "public void escolherImagem(int requestCode) {\n\n Intent i = new Intent(Intent.ACTION_PICK,\n MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(i, requestCode);\n\n }", "@Override\n public void onClick(View view) {\n Intent gallery_intent=new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(gallery_intent,RESULT_LOAD_IMAGE);//Paasing intentobject and an integer value\n\n }", "public void choosePicture() {\n\n Intent intent = new Intent();\n intent.setType(\"image/*\"); //inserting all images inside this Image folder\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(intent, 1);\n\n }", "private void openGallery(){\n Intent gallery = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.INTERNAL_CONTENT_URI);\n startActivityForResult(gallery, PICK_IMAGE);\n }", "private void selectImage() {\n final CharSequence[] items = {\"Take Photo\", \"Choose from Library\",\n \"Cancel\"};\n\n AlertDialog.Builder builder = new AlertDialog.Builder(Timetable.this);\n builder.setTitle(\"Add Photo!\");\n builder.setItems(items, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int item) {\n if (items[item].equals(\"Take Photo\")) {\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n startActivityForResult(intent, REQUEST_CAMERA);\n } else if (items[item].equals(\"Choose from Library\")) {\n Intent intent = new Intent(\n Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n intent.setType(\"image/*\");\n startActivityForResult(\n Intent.createChooser(intent, \"Select File\"),\n SELECT_FILE);\n } else if (items[item].equals(\"Cancel\")) {\n dialog.dismiss();\n }\n }\n });\n builder.show();\n }", "public void OpenGallery(){\n Intent gallery = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(gallery, PICK_IMAGE);\n }", "private void pickFromGallery(){\n Intent intent=new Intent(Intent.ACTION_PICK);\n // Sets the type as image/*. This ensures only components of type image are selected\n intent.setType(\"image/*\");\n //We pass an extra array with the accepted mime types. This will ensure only components with these MIME types as targeted.\n String[] mimeTypes = {\"image/jpeg\", \"image/png\"};\n intent.putExtra(Intent.EXTRA_MIME_TYPES,mimeTypes);\n // Launching the Intent\n startActivityForResult(intent,1);\n }", "@Override\n public void onClick(View v) {\n\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n Intent pickIntent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n pickIntent.setType(\"image/*\");\n Intent chooserIntent = Intent.createChooser(intent, \"Select Image\");\n chooserIntent.putExtra(Intent.EXTRA_INITIAL_INTENTS, new Intent[] {pickIntent});\n startActivityForResult(chooserIntent,PICK_IMAGE_REQUEST);\n }", "@Override\n public void onClick(View v) {\n\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true);\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), 1);\n\n }", "private void galleryIntent() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);//\n startActivityForResult(Intent.createChooser(intent, \"Select Photo\"), SELECT_PHOTO);\n }", "@Override\n public void imageFromGallery() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select picture\"), PICK_IMAGE);\n }", "public void invokeSelectPhotosAction() {\n\t\tfinal File root = new File(Environment.getExternalStorageDirectory()\n\t\t\t\t+ File.separator + PgrsConstants.DIRECTORY_CAMERA_IMAGE\n\t\t\t\t+ File.separator);\n\t\troot.mkdirs();\n\t\tfinal String fname = PgrsHelper.getInstance()\n\t\t\t\t.getUniqueImageFilename();\n\t\tfinal File sdImageMainDirectory = new File(root, fname);\n\t\toutputFileUri = Uri.fromFile(sdImageMainDirectory);\n\n\t\t// Camera.\n\t\tfinal List<Intent> cameraIntents = new ArrayList<Intent>();\n\t\tfinal Intent captureIntent = new Intent(\n\t\t\t\tandroid.provider.MediaStore.ACTION_IMAGE_CAPTURE);\n\t\tfinal PackageManager packageManager = getPackageManager();\n\t\tfinal List<ResolveInfo> listCam = packageManager.queryIntentActivities(\n\t\t\t\tcaptureIntent, 0);\n\t\tfor (ResolveInfo res : listCam) {\n\t\t\tfinal String packageName = res.activityInfo.packageName;\n\t\t\tfinal Intent intent = new Intent(captureIntent);\n\t\t\tintent.setComponent(new ComponentName(res.activityInfo.packageName,\n\t\t\t\t\tres.activityInfo.name));\n\t\t\tintent.setPackage(packageName);\n\t\t\tintent.putExtra(MediaStore.EXTRA_OUTPUT, outputFileUri);\n\t\t\tcameraIntents.add(intent);\n\t\t}\n\n\t\t// Filesystem.\n\t\tIntent galleryIntent = null;\n\t\tif (Build.VERSION.SDK_INT < 19) {\n\t\t\tgalleryIntent = new Intent();\n\t\t\tgalleryIntent.setType(\"image/*\");\n\t\t\tgalleryIntent.setAction(Intent.ACTION_GET_CONTENT);\n\n\t\t} else {\n\n\t\t\tgalleryIntent = new Intent(\n\t\t\t\t\tIntent.ACTION_PICK,\n\t\t\t\t\tandroid.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\t\t}\n\n\t\t// Set Common Flags to Gallery Intent\n\t\tif (Build.VERSION.SDK_INT > Build.VERSION_CODES.GINGERBREAD_MR1) {\n\t\t\tgalleryIntent.putExtra(Intent.EXTRA_LOCAL_ONLY, true);\n\t\t}\n\t\tgalleryIntent.putExtra(Intent.CATEGORY_OPENABLE, true);\n\n\t\t// Chooser of filesystem options.\n\t\tfinal Intent chooserIntent = Intent.createChooser(galleryIntent,\n\t\t\t\tPgrsConstants.INTENT_TITLE_PICK_PHOTOS);\n\n\t\t// Add the camera options.\n\t\tchooserIntent.putExtra(Intent.EXTRA_INITIAL_INTENTS,\n\t\t\t\tcameraIntents.toArray(new Parcelable[] {}));\n\n\t\tstartActivityForResult(chooserIntent,\n\t\t\t\tPgrsConstants.REQUEST_CODE_PICK_PICTURES_FOR_COMPLAINTS);\n\t}", "private void selectImage() {\n final CharSequence[] options = { \"Take Photo\", \"Choose from Gallery\",\"Cancel\" };\n AlertDialog.Builder builder = new AlertDialog.Builder(EventsActivity.this);\n\n builder.setTitle(\"Search Events By Photo\");\n\n builder.setItems(options, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int item) {\n if(options[item].equals(\"Take Photo\")){\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n if (intent.resolveActivity(getPackageManager()) != null) {\n File photoFile = null;\n try {\n photoFile = createImageFile();\n } catch (IOException ex) {\n\n }\n if (photoFile != null) {\n Uri photoURI = FileProvider.getUriForFile(context,\n \"com.example.android.fileprovider\",\n photoFile);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, photoURI);\n startActivityForResult(intent, 1);\n }\n }\n }\n else if(options[item].equals(\"Choose from Gallery\")) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select File\"),2);\n }\n else if(options[item].equals(\"Cancel\")) {\n dialog.dismiss();\n }\n }\n });\n builder.show();\n }", "public void getPhoto() {\n Intent intent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\n //for startActivityForResult, the second parameter, requestCode is used to identify this particular intent\n startActivityForResult(intent, 1);\n }", "private void pickImageIntent(){\n\n Intent intent=new Intent();\n intent.setType(\"image/*\");\n intent.putExtra(intent.EXTRA_ALLOW_MULTIPLE,true);\n intent.setAction(Intent.ACTION_OPEN_DOCUMENT);\n startActivityForResult(Intent.createChooser(intent,\"Select Images\"),PICK_IMAGES_CODE);\n\n\n\n }", "@Override\n public void onClick(View v) {\n Intent i = new Intent(\n Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(i , RESULT_LOAD_IMAGE);\n\n\n }", "@Override\n public void onClick(View v) {\n Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);\n //Where do we want to find the data\n File pictureDirectory = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\n //Get the name of the directory\n String pictureDirectoryPath = pictureDirectory.getPath();\n //Get a URI representation of the Path because this is what android needs to deal with\n Uri data = Uri.parse(pictureDirectoryPath);\n //Set the data (where we want to look for this media) and the type (what media do we want to look for).Get all image types\n photoPickerIntent.setDataAndType(data, \"image/*\");\n //We invoke the image gallery and receive something from it\n if (photoPickerIntent.resolveActivity(getPackageManager()) != null) {\n startActivityForResult(photoPickerIntent, IMAGE_GALLERY_REQUEST);\n }\n\n }", "private void select_image() {\n\n final CharSequence[] items = {\"Camera\", \"Gallery\", \"Cancel\"};\n\n AlertDialog.Builder builder = new AlertDialog.Builder(step4.this);\n builder.setTitle(\"Add Image\");\n builder.setItems(items, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface DialogInterface, int i) {\n if (items[i].equals(\"Camera\")) {\n\n Intent camera = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);\n if (ActivityCompat.checkSelfPermission(step4.this, Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED) {\n Toast.makeText(getApplicationContext(), \"Please grant permission to access Camera\", Toast.LENGTH_LONG).show();\n ActivityCompat.requestPermissions(step4.this, new String[]{Manifest.permission.CAMERA}, 1);\n startActivityForResult(camera,REQUEST_CAMERA);\n\n } else {\n startActivityForResult(camera,REQUEST_CAMERA);\n\n }\n\n\n\n } else if (items[i].equals(\"Gallery\")) {\n\n Intent gallery = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n gallery.setType(\"image/*\");\n startActivityForResult(gallery, select_file);\n\n\n } else if (items[i].equals(\"Cancel\")) {\n\n DialogInterface.dismiss();\n\n\n }\n }\n\n\n });\n builder.show();\n }", "public void gallery(View view) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), REQUEST_IMAGE_GALLERY);\n\n\n }", "private void pickFromGallery(){\n Intent intent=new Intent(Intent.ACTION_PICK);\n // Sets the type as image/*. This ensures only components of type image are selected\n intent.setType(\"image/*\");\n //We pass an extra array with the accepted mime types. This will ensure only components with these MIME types as targeted.\n String[] mimeTypes = {\"image/jpeg\", \"image/png\"};\n intent.putExtra(Intent.EXTRA_MIME_TYPES,mimeTypes);\n // Launching the Intent\n startActivityForResult(intent,GALLERY_REQUEST_CODE);\n }", "private void pickFromGallery(){\n Intent intent=new Intent(Intent.ACTION_PICK);\n // Sets the type as image/*. This ensures only components of type image are selected\n intent.setType(\"image/*\");\n //We pass an extra array with the accepted mime types. This will ensure only components with these MIME types as targeted.\n String[] mimeTypes = {\"image/jpeg\", \"image/png\"};\n intent.putExtra(Intent.EXTRA_MIME_TYPES,mimeTypes);\n // Launching the Intent\n startActivityForResult(intent,GALLERY_REQUEST_CODE);\n }", "public void showImageChooser() {\n Intent intent2 = new Intent();\n intent2.setType(\"image/*\");\n intent2.setAction(\"android.intent.action.GET_CONTENT\");\n startActivityForResult(Intent.createChooser(intent2, \"Select Picture\"), PICK_IMAGE_REQUEST);\n }", "@Override\n public void onClick(View v) {\n\n Intent intent = new Intent( Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n intent.setType(\"image/*\");\n startActivityForResult(Intent.createChooser(intent, \"Select File\"), 1);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n // image k selection k liey requesting code jo hai upar vo 1234 hai ye dena hota hai\n startActivityForResult(Intent.createChooser(intent, \"Select Image\"), REQUEST_CODE);\n }", "private void pickFromCamera() {\n Intent startCamera = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n startCamera.putExtra(MediaStore.EXTRA_OUTPUT, uriImage);\n startActivityForResult(startCamera, IMAGE_PICK_CAMERA_CODE);\n\n }", "private void galleryIntent()\r\n {\r\nIntent gallery=new Intent();\r\ngallery.setType(\"image/*\");\r\ngallery.setAction(Intent.ACTION_GET_CONTENT);\r\n\r\nstartActivityForResult(Intent.createChooser(gallery,\"Select Picture \"),PICK_IMAGE );\r\n }", "@Override\n public void onClick(View v) {\n\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent,\n \"Select Picture\"), IMG_RESULT);\n\n }", "private void galleryIntent() {\n Intent intent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n intent.setType(\"image/*\");\n ((MessageActivity) context).startActivityForResult(Intent.createChooser(intent,\n \"Select Picture\"), SELECT_PICTURE);\n\n }", "public void opengallery() {\n Intent gallery = new Intent();\n gallery.setType(\"image/*\");\n gallery.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(getIntent().createChooser(gallery, \"Choose image\"), PICK_IMAGE);\n\n }", "public void onImageGalleryClicked(View v){\n //invoke the image gallery using an implicit intent\n Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);\n\n //decides where to store pictures\n File pictureDirectory = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\n String pictureDirectoryPath = pictureDirectory.getPath();\n\n //gets URI representation\n Uri data = Uri.parse(pictureDirectoryPath);\n\n //sets the data and type of media to look for\n photoPickerIntent.setDataAndType(data,\"image/*\");\n startActivityForResult(photoPickerIntent, Image_Gallery_Request);\n }", "@Override\n\t\tpublic void onClick(View v) { Intent galleryIntent = new Intent(Intent.ACTION_PICK,\n\t\t\t\t\tandroid.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\n\t\t\t// Start the Intent\n\t\t\tstartActivityForResult(\n\t\t\t\t\tIntent.createChooser(galleryIntent, \"Select Picture\"), REQUEST_CODE);\n\t\t}", "public void onImageClick(View view) {\n Intent photo_picker = new Intent(Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n photo_picker.setType(\"image/jpeg\");\n startActivityForResult(photo_picker,PHOTO_PICK);\n }", "public void sendIntentToGallery() {\n\t\tIntent i = new Intent(\n\t\t\t\tIntent.ACTION_PICK,\n\t\t\t\tandroid.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\n\t\t// Send the intent with id 1\n\t\tstartActivityForResult(i, 1);\n\t}", "private void openFileChooser() {\n Intent imageIntent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n imageIntent.setType(\"image/*\");\n startActivityForResult(imageIntent, GALLERY_REQUEST);\n }", "private void getImage() {\n\n Intent intent = new Intent(\n Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\n //intent.setType(\"text/xls\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n\n try {\n startActivityForResult(\n Intent.createChooser(intent, \"Complete action using\"),\n MY_INTENT_CLICK);\n }catch (Exception e) {\n e.getMessage();\n }\n }", "@Override\n public void onClick(View v) {\n Intent i = new Intent(\n Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(i, SELECTED_PICTURE);\n }", "public void startImageSwitch() {\n Intent intent = new Intent(this, AlbumCompatActivity.class);\r\n intent.putExtra(AlbumCompatActivity.CHOOSE_MODE, AlbumCompatActivity.CHOOSE_MODE_SECTION); // ImageUtil.getPathForUpload(mImageKey).getAbsolutePath()\r\n intent.putExtra(AlbumCompatActivity.K_ALBUM_RST_COUNT, 5);\r\n startActivityForResult(intent, SELECT_IMAGE_COMPLETE);\r\n }", "public Intent select() {\n final Activity activity = (Activity)getContext();\n try {\n\n final List<Intent> cameraIntents = new ArrayList<>();\n final Intent captureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n final PackageManager packageManager = activity.getPackageManager();\n final List<ResolveInfo> listCam = packageManager.queryIntentActivities(captureIntent, 0);\n for (ResolveInfo res : listCam) {\n final String packageName = res.activityInfo.packageName;\n final Intent intent = new Intent(captureIntent);\n intent.setPackage(packageName);\n cameraIntents.add(intent);\n }\n Intent galleryIntent;\n\n if (Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT) {\n galleryIntent = new Intent();\n galleryIntent.setAction(Intent.ACTION_GET_CONTENT);\n } else {\n galleryIntent = new Intent(Intent.ACTION_OPEN_DOCUMENT);\n galleryIntent.addCategory(Intent.CATEGORY_OPENABLE);\n }\n galleryIntent.setType(\"image/*\");\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2) {\n galleryIntent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true);\n }\n\n final Intent chooserIntent = Intent.createChooser(galleryIntent, \"Select Source\");\n chooserIntent.putExtra(\n Intent.EXTRA_INITIAL_INTENTS,\n cameraIntents.toArray(new Parcelable[]{}));\n\n return chooserIntent;\n } catch (Exception e) {\n Toast.makeText(\n getContext(),\n getResources().getString(R.string.unknown_error),\n Toast.LENGTH_SHORT\n ).show();\n Log.e(getResources().getString(R.string.app_name), \"exception\", e);\n }\n return null;\n }", "private void openGallery() {\n\n Intent galleryIntent = new Intent(Intent.ACTION_GET_CONTENT);\n galleryIntent.setType(\"image/*\");\n startActivityForResult(galleryIntent, REQUESCODE);\n }", "private void dispatchGetPictureFromGalleryIntent() {\n Intent pickPhoto = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n if (pickPhoto.resolveActivity(getContext().getPackageManager()) != null) {\n this.startActivityForResult(pickPhoto, PICK_IMAGE);\n }\n }", "private void showFileChooser() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), 234);\n }", "@Override\n public void onClick(View v) {\n Intent camIntent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\n camIntent.setType(\"image/*\");\n startActivityForResult(camIntent,CAMERA_REQUEST);\n }", "public void loadImagefromGallery(View view) {\n Intent galleryIntent = new Intent(Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n // Start the Intent\n startActivityForResult(galleryIntent, RESULT_LOAD_IMG);\n\n }", "private void selectOptionOfPicture() {\n final CharSequence[] options = { \"Take Photo\", \"Choose from Gallery\",\"Cancel\" };\n AlertDialog.Builder builder = new AlertDialog.Builder(view.getContext());\n builder.setTitle(\"Add Photo!\");\n builder.setItems(options, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int item) {\n if (options[item].equals(\"Take Photo\"))\n {\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n startActivityForResult(intent, 1);\n }\n else if (options[item].equals(\"Choose from Gallery\"))\n {\n Intent intent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.INTERNAL_CONTENT_URI);\n startActivityForResult(intent, 2);\n }\n else if (options[item].equals(\"Cancel\")) {\n dialog.dismiss();\n }\n }\n });\n builder.show();\n }", "public void onClick(View v) {\n intent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(intent, SELECTED_IMAGE);\n }", "private void chooseImageAndUpload() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), Common.PICK_IMAGE_REQUEST);\n\n }", "private void openGallery() {\n\n Intent galleryIntent = new Intent(Intent.ACTION_GET_CONTENT);\n galleryIntent.setType(\"image/*\");\n startActivityForResult(galleryIntent, REQUESCODE);\n }", "protected void startGallery() {\n Intent photoPickerIntent = new Intent(Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n photoPickerIntent.setType(\"image/*\");\n startActivityForResult(photoPickerIntent, GALLERY_REQUEST);\n\n }", "public void onClick(View arg0) {\n Intent intent = new Intent();\r\n intent.setType(\"image/*\");\r\n intent.setAction(Intent.ACTION_GET_CONTENT);\r\n startActivityForResult(Intent.createChooser(intent,\r\n \"Select Picture\"), SELECT_PICTURE);\r\n }", "private void invokeGetPhoto() {\n // invoke the image gallery using an implicit intent.\n Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);\n // Show only images, no videos or anything else\n photoPickerIntent.setType(\"image/*\");\n photoPickerIntent.setAction(Intent.ACTION_GET_CONTENT);\n // Always show the chooser (if there are multiple options available)\n startActivityForResult(Intent.createChooser(photoPickerIntent, \"Choose a picture\"), REQUEST_IMAGE_CAPTURE);\n }", "@Override\n public void onClick(View v) {\n Intent i = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\n startActivityForResult(i, RESULT_LOAD_IMAGE);\n }", "public void openGallery(){\n Intent intentImg=new Intent(Intent.ACTION_GET_CONTENT);\n intentImg.setType(\"image/*\");\n startActivityForResult(intentImg,200);\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n\n startActivityForResult(Intent.createChooser(intent,\"Choose an app to select a image\"), 1);\n }", "@Override\n public boolean onTouch(View v, MotionEvent event) {\n Intent galleryIntent = new Intent(Intent.ACTION_PICK,\n MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n // Start the Intent\n startActivityForResult(galleryIntent, RESULT_LOAD_IMG);\n return false;\n }", "@Override\n public void onClick(View v) {\n Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);\n photoPickerIntent.setType(\"image/*\");\n startActivityForResult(photoPickerIntent, SELECT_PHOTO);\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t dia.dismiss();\n\t\t\t\tIntent intent = new Intent( Intent.ACTION_PICK,android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\t\t\t\t startActivityForResult(intent, 1);\n\t\t\t\t\n\t\t\t}", "private void showFileChooser() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE_REQUEST);\n }", "private void showFileChooser() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE_REQUEST);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent,\n \"Select Picture\"), SELECT_PICTURE);\n }", "public void loadImagefromGallery(View view) {\n Intent galleryIntent = new Intent(Intent.ACTION_PICK,\n MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n // Start the Intent\n startActivityForResult(galleryIntent, RESULT_LOAD_IMG);\n }", "private void showFileChooser() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE_REQUEST);\n }", "public static void pickPhotoFromGallery(Context context) {\n try {\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.KITKAT) {\n Intent intent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n ((Activity) context).startActivityForResult(intent, PICK_PHOTO_KITKAT);\n } else {\n Intent intent = new Intent(Intent.ACTION_GET_CONTENT, null);\n intent.setType(\"image/*\");\n ((Activity) context).startActivityForResult(intent, PICK_PHOTO);\n }\n } catch (ActivityNotFoundException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"SELECT IMAGE\"), GALLERY_PICK);\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), REQUEST_IMAGE);\n }", "private void showImageChooser() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Profile Image\"), CHOOSE_IMAGE);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n ((MainActivity) getActivity()).startActivityForResult(\n Intent.createChooser(intent, \"Select Picture\"),\n MainActivity.GALLERY_CODE);\n\n }", "@JavascriptInterface\n public String choosePhoto() {\n String file = \"test\";\n Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);\n photoPickerIntent.setType(\"image/*\");\n startActivityForResult(photoPickerIntent, SELECT_GALLERY_PHOTO);\n return file;\n }", "private void pickFromCamera() {\n ContentValues values = new ContentValues();\n values.put(MediaStore.Images.Media.TITLE, \"Temp Pic\");\n values.put(MediaStore.Images.Media.DESCRIPTION, \"Temp Description\");\n\n //put Image uri\n image_uri = UserProfile.this.getContentResolver().insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values);\n\n //intent to start Camera\n Intent cameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n cameraIntent.putExtra(MediaStore.EXTRA_OUTPUT, image_uri);\n startActivityForResult(cameraIntent, IMAGE_PICK_CAMERA_CODE);\n }", "public void pickFromGallery(View view) {\n //Create an Intent with action as ACTION_OPEN_DOCUMENT\n Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);\n\n /*\n Make sure that the user has given storage permissions.\n Note that granting the WRITE_EXTERNAL_STORAGE permission automatically grants the\n READ_EXTERNAL_STORAGE permission.\n */\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {\n Log.d(TAG, \"Write storage permission denied\");\n\n // If permission is denied, ask for permission.\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},\n MY_PERMISSIONS_REQUEST_WRITE_STORAGE);\n }\n else {\n // Sets the type as image/*. This ensures only components of type image are selected\n intent.setType(\"image/*\");\n //We pass an extra array with the accepted mime types. This will ensure only components with these MIME types as targeted.\n String[] mimeTypes = {\"image/jpeg\", \"image/png\"};\n intent.putExtra(Intent.EXTRA_MIME_TYPES, mimeTypes);\n // Launching the Intent\n startActivityForResult(intent, GALLERY_REQUEST_CODE);\n }\n }", "public void call1()\n\t{\n\t\tIntent intent = new Intent();\n\t\tintent.setType(\"image/*\");\n\t\tintent.setAction(Intent.ACTION_GET_CONTENT);\n\t\tstartActivityForResult(Intent.createChooser(intent,\n\t\t\t\t\"Select Picture\"), SELECT_PICTURE);\n\n\n\t}", "public void cargarimagen(){\n Intent intent= new Intent(Intent.ACTION_GET_CONTENT, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n intent.setType(\"image/*\");\n startActivityForResult(intent.createChooser(intent,\"Seleccione la imagen\"),69);\n }", "public void clickPickImage(View view) {\n Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);\n photoPickerIntent.setType(\"image/*\");\n startActivityForResult(photoPickerIntent, 10);\n }", "private void openFileChooser() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(intent, PICK_IMAGE_REQUEST);\n\n }", "public void camara(){\n Intent fotoPick = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);\n String fecha = new SimpleDateFormat(\"yyyy_MM_dd_HH_mm_ss\").format(new Date());\n Uri uriSavedImage=Uri.fromFile(new File(getExternalFilesDir(Environment.DIRECTORY_DCIM),\"inmueble_\"+id+\"_\"+fecha+\".jpg\"));\n fotoPick.putExtra(MediaStore.EXTRA_OUTPUT, uriSavedImage);\n startActivityForResult(fotoPick,TAKE_PICTURE);\n\n }", "public Intent getPickImageChooserIntent() {\n File f = new File(android.os.Environment.getExternalStorageDirectory(), \"temp.jpg\");\n Uri outputFileUri = Uri.fromFile(f);\n List<Intent> allIntents = new ArrayList<>();\n PackageManager packageManager = mContext.getPackageManager();\n\n // collect all camera intents\n Intent captureIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);\n List<ResolveInfo> listCam = packageManager.queryIntentActivities(captureIntent, 0);\n for (ResolveInfo res : listCam) {\n Intent intent = new Intent(captureIntent);\n intent.setComponent(new ComponentName(res.activityInfo.packageName, res.activityInfo.name));\n intent.setPackage(res.activityInfo.packageName);\n if (outputFileUri != null) {\n intent.putExtra(MediaStore.EXTRA_OUTPUT, outputFileUri);\n }\n allIntents.add(intent);\n }\n\n // collect all gallery intents\n Intent galleryIntent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n galleryIntent.setType(\"image/*\");\n List<ResolveInfo> listGallery = packageManager.queryIntentActivities(galleryIntent, 0);\n for (ResolveInfo res : listGallery) {\n Intent intent = new Intent(galleryIntent);\n intent.setComponent(new ComponentName(res.activityInfo.packageName, res.activityInfo.name));\n intent.setPackage(res.activityInfo.packageName);\n allIntents.add(intent);\n }\n\n // the main intent is the last in the list (fucking android) so pickup the useless one\n Intent mainIntent = allIntents.get(allIntents.size() - 1);\n for (Intent intent : allIntents) {\n if (intent.getComponent().getClassName().equals(\"com.android.documentsui.DocumentsActivity\")) {\n mainIntent = intent;\n break;\n }\n }\n allIntents.remove(mainIntent);\n\n // Create a chooser from the main intent\n Intent chooserIntent = Intent.createChooser(mainIntent, \"Select source\");\n\n // Add all other intents\n chooserIntent.putExtra(Intent.EXTRA_INITIAL_INTENTS, allIntents.toArray(new Parcelable[allIntents.size()]));\n\n return chooserIntent;\n }", "public void openImage() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(intent, IMAGE_REQUEST);\n }", "public void imageclick(View view)\n {\n //for logo image upload\n\n\n Intent i =new Intent();\n i.setType(\"image/*\");\n i.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(i,\"select an image\"),imagerequestcode);\n\n }", "private void invokeCameraSerialNumber() {\n\n // get a file reference\n pictureUri = FileProvider.getUriForFile(this, getApplicationContext().getPackageName(), createImageFile()); // Make Uri file example file://storage/emulated/0/Pictures/Civil_ID20180924_180619.jpg\n\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); // Go to camera\n\n // tell the camera where to save the image.\n intent.putExtra(MediaStore.EXTRA_OUTPUT, pictureUri);\n\n // tell the camera to request WRITE permission.\n intent.setFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\n\n startActivityForResult(intent, CAMERA_DEVICE_SERIAL_NUMBER);\n\n }", "public void onClick(View v) {\n Intent i = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(i, RESULT_LOAD_IMAGE);\n }" ]
[ "0.8623837", "0.75559235", "0.75305045", "0.7395445", "0.7346476", "0.72586054", "0.7228222", "0.7180121", "0.7094976", "0.7076991", "0.70708007", "0.70496154", "0.700753", "0.7006183", "0.7005055", "0.6978898", "0.6972888", "0.69494516", "0.6949101", "0.6940847", "0.69393945", "0.6935703", "0.69325554", "0.6922484", "0.6910021", "0.68871284", "0.6880213", "0.68545437", "0.68497276", "0.6825722", "0.6824533", "0.6817369", "0.68113124", "0.67959267", "0.6794901", "0.67926633", "0.67915493", "0.67897564", "0.6776936", "0.67688453", "0.67684954", "0.67549115", "0.67549115", "0.6754183", "0.67472434", "0.6747124", "0.6736547", "0.67337334", "0.67183924", "0.6716253", "0.6714991", "0.67103416", "0.66889316", "0.66795135", "0.6671203", "0.66679555", "0.66658205", "0.66635734", "0.66580725", "0.66529065", "0.6652363", "0.6630668", "0.6619871", "0.66192245", "0.6618183", "0.6612598", "0.6591703", "0.65889156", "0.6586261", "0.6574152", "0.6570035", "0.656907", "0.65674174", "0.65398073", "0.65146923", "0.65123993", "0.6511119", "0.651064", "0.6508469", "0.6508469", "0.6504434", "0.6503566", "0.6496372", "0.64952826", "0.6486934", "0.64829904", "0.6475537", "0.6473141", "0.6465369", "0.64615715", "0.6447091", "0.6426044", "0.64193463", "0.63974184", "0.6394325", "0.63909495", "0.6373571", "0.637216", "0.63708514", "0.6357931", "0.63529277" ]
0.0
-1
Tp create file image with date title
@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (resultCode == RESULT_OK) { //------------Received image from camera in device serial number------------------------ if (requestCode == CAMERA_DEVICE_SERIAL_NUMBER) { Uri picUri = pictureUri; startCropImageActivity(picUri, CROP_CAMERA_SERIAL_NUMBER); Toast.makeText(UserAreaActivity.this, "Serial Number Image Saved!", Toast.LENGTH_SHORT).show(); } //---------------Cropped image from camera in device serial number---------------------- if (requestCode == CROP_CAMERA_SERIAL_NUMBER) { CropImage.ActivityResult result = CropImage.getActivityResult(data); Croppedimage(result, ivDeviceSerialNumber, etDeviceSerialNumber); } //------------Received image from gallery in device serial number----------------------- if (requestCode == GALLERY_DEVICE_SERIAL_NUMBER) { startCropImageActivity(data.getData(), CROP_GALLERY_SERIAL_NUMBER); Toast.makeText(UserAreaActivity.this, "Image from gallery", Toast.LENGTH_SHORT).show(); } //--------------Cropped image from gallery in device serial number---------------------- if(requestCode == CROP_GALLERY_SERIAL_NUMBER) { CropImage.ActivityResult result = CropImage.getActivityResult(data); Croppedimage(result, ivDeviceSerialNumber, etDeviceSerialNumber); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private File createImageFileName() throws IOException {\n String timestamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n //there are two types of SimpleDateFormat and Date()\n String prepend = \"JPEG_\" + timestamp + \"_\";\n File imageFile = File.createTempFile(prepend, \".jpg\", mImageFolder);\n mImageFileName = imageFile.getAbsolutePath();\n return imageFile;\n\n }", "private File createImageFile() throws IOException{\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\"+timeStamp;\n File image = File.createTempFile(imageFileName, \".jpg\", this.savePath);\n \n return image;\n }", "private static File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = JPEG_FILE_PREFIX + timeStamp + \"_\";\n File albumF = getAlbumDir();\n File imageF = File.createTempFile(imageFileName, JPEG_FILE_SUFFIX, albumF);\n return imageF;\n }", "private static File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = JPEG_FILE_PREFIX + timeStamp + \"_\";\n File albumF = getAlbumDir();\n File imageF = File.createTempFile(imageFileName, JPEG_FILE_SUFFIX, albumF);\n return imageF;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(getString(R.string.day_format)).format(new Date());\n String imageFileName = getString(R.string.image_file_prefix) + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(imageFileName, getString(R.string.image_file_format),\n storageDir\n );\n\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = JPEG_FILE_PREFIX + timeStamp + \"_\";\n File albumF = getAlbumDir();\n File imageF = File.createTempFile(imageFileName, JPEG_FILE_SUFFIX, albumF);\n return imageF;\n }", "private File createImageFile() throws IOException{\n @SuppressLint(\"SimpleDateFormat\")\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"img_\"+timeStamp+\"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\n return File.createTempFile(imageFileName,\".jpg\",storageDir);\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\")\n .format(new Date());\n String imageFileName = JPEG_FILE_PREFIX + timeStamp + \"_\";\n File albumF = getAlbumDir();\n File imageF = File.createTempFile(imageFileName, JPEG_FILE_SUFFIX,\n albumF);\n return imageF;\n }", "public void titleImage(){\r\n\t\tint x = 75;\r\n\t\tint y = 100;\r\n\t\t//Title is displayed\r\n\t\tString title = \"Ticket Master\";\r\n\t\ttitleImage = new GLabel(title,x,y);\r\n\t\ttitleImage.setColor(Color.green);\r\n\t\ttitleImage.setFont(\"Arial-100\");\r\n\t\tcanvas.add(titleImage);\r\n\t}", "public void pintaFecha(){\n \tImage image;\r\n \ttry {\r\n\t \r\n \t\tString imageUrl = PropiedadesJLet.getInstance().getProperty(\"path.img.logoinvoice\") + \"FondoLeppardPico1.png\";\r\n\t\r\n\t\t\timage = Image.getInstance(imageUrl);\r\n\t\t image.setAbsolutePosition(inmargde-10, 725);\r\n\t\t image.scaleAbsolute(50,20);\r\n\t\t image.setAlignment(Image.LEFT | Image.TEXTWRAP);//Code 2\r\n\t\t\tdocumento.add(image);\r\n \r\n\t\t\tFRAparen.absTextBoldColor(writer,\"Fecha \",inmargde,730,10,new BaseColor(255,255,255));\r\n\t\t\tFRAparen.absText(writer,FRAparen.fechaNormal(fhfactur),inmargde + 45,730,10);\r\n\t\t\t\r\n\t\t\timage = Image.getInstance(imageUrl);\r\n\t\t image.setAbsolutePosition(inmargde-10, 700);\r\n\t\t image.scaleAbsolute(100,20);\r\n\t\t image.setAlignment(Image.LEFT | Image.TEXTWRAP);//Code 2\r\n\t\t\tdocumento.add(image);\r\n\t\t\t\r\n\t\t\tif (cabecNFC.equals(\"COND\") || cabecNFC.equals(\"R\")){\r\n\t\t\t\tFRAparen.absTextBoldColor(writer,cabecNFC +\" \"+ numerNFC +\" \",inmargde,705,10,new BaseColor(255,255,255));\r\n\t\t\t} else {\r\n\t\t\t\tFRAparen.absTextBoldColor(writer,\"NFC \"+ cabecNFC +\" \"+ numerNFC +\" \",inmargde,705,10,new BaseColor(255,255,255));\r\n\t\t\t}\r\n\t\t\t\r\n \t} catch (Exception e) {\r\n \t\tSystem.err.println(this.getClass().getName() +\" ERROR pintaFecha() - \"+ e.getMessage());\r\n \t}\r\n \t\r\n }", "public void createNewImageFile(){\n fillNewImage();\n\n try {\n ImageIO.write(newImage, imageFileType, new File(k + \"_Colored_\" + fileName.substring(0,fileName.length() - 4) + \".\" + imageFileType));\n } catch (IOException e){\n e.printStackTrace();\n }\n \n }", "private File createImageFile() throws IOException {\n // Create an image file name\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"MAZE_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n return image;\n }", "@SuppressLint(\"SimpleDateFormat\")\n public static File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = JPEG_FILE_PREFIX + timeStamp + JPEG_FILE_SUFFIX;\n String nameAlbum = Environment.getExternalStorageDirectory().getAbsolutePath() + \"/\" + nameDir;// getString(R.string.app_name);\n File albumF = new File(nameAlbum);\n if (!albumF.exists()) {\n albumF.mkdirs();\n File noMedia = new File(albumF, \".nomedia\");\n noMedia.createNewFile();\n }\n\n File imageF = new File(albumF, imageFileName);\n imageF.createNewFile();\n return imageF;\n }", "private File createImageFile() throws IOException {\n // Create an image file name\n String timeStamp = new SimpleDateFormat ( \"yyyyMMdd_HHmmss\" ).format ( new Date () );\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir ( Environment.DIRECTORY_PICTURES );\n File image = File.createTempFile (\n imageFileName , /* prefix */\n \".jpg\" , /* suffix */\n storageDir /* directory */\n );\n\n // luu file: su dung ACTION_VIEW\n pathToFile = image.getAbsolutePath ();\n return image;\n }", "public File createImageFile() {\n // the public picture director\n File picturesDirectory = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES); // To get pictures directory from android system\n\n // timestamp makes unique name.\n @SuppressLint(\"SimpleDateFormat\") SimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd_HHmmss\");\n String timestamp = sdf.format(new Date());\n\n // put together the directory and the timestamp to make a unique image location.\n File imageFile = new File(picturesDirectory, timestamp + \".jpg\");\n\n return imageFile;\n }", "private File createImageFile(String imgDir) throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = imgDir + File.separator + timeStamp + \"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES);\n return File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n }", "@Override\r\n\tpublic String getDescription() {\r\n\t\treturn \"Image Files\";\r\n\t}", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES);\n File imageFile = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n return imageFile;\n }", "private File createImageFile() throws IOException\n {\n String timeStamp = new SimpleDateFormat(\"yyyymmddHHmmss\").format(new Date());\n String imageFileName = timeStamp;\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n userCacheDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n return image;\n }", "private File createImageFile() throws IOException {\n // Create an image file name\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n return File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"1mind_\" + timeStamp + \".png\";\n File photo = new File(Environment.getExternalStorageDirectory(), imageFileName);\n mCurrentPhotoPath = photo.getAbsolutePath();\n return photo;\n }", "public abstract String getImageSuffix();", "private File createImageFile() throws IOException {\n @SuppressLint({\"NewApi\", \"LocalSuppress\"}) String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\", Locale.getDefault()).format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES);\n return File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n }", "private File createImageFile() throws IOException\n {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n return image;\n }", "private File createImageFile() {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = new File(Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_DCIM), \"GIS\");\n File image = null;\n\n if(!storageDir.exists()){\n\n storageDir.mkdirs();\n\n }\n try {\n image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n }catch (Exception e){\n\n e.printStackTrace();\n\n }\n // Save a file: path for use with ACTION_VIEW intents\n\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\", Locale.US).format(new Date());\n String imageFileName = \"perfil_\" + timeStamp + \"_\";\n String outputPath = PATH;\n File storageDir = new File(outputPath);\n if(!storageDir.exists())storageDir.mkdirs();\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = \"file:\" + image.getAbsolutePath();\n return image;\n }", "private void modifyCreationDateForSingleFile() throws IOException {\n int n = (int) (Math.random() * NUMBER_OF_TEST_FILES);\n File f = new File(path, \"file_\" + n + \".txt\");\n Path path = Paths.get(f.toURI());\n BasicFileAttributes attr;\n attr = Files.readAttributes(path, BasicFileAttributes.class);\n FileTime creationTime = attr.creationTime();\n Calendar c = new GregorianCalendar();\n c.setTime(new Date(creationTime.toMillis()));\n c.add(Calendar.DAY_OF_YEAR, -10);\n BasicFileAttributeView attributes = Files.getFileAttributeView(path, BasicFileAttributeView.class);\n FileTime time = FileTime.fromMillis(c.getTimeInMillis());\n attributes.setTimes(time, time, time);\n }", "private File createImageFile() throws IOException {\n // Create an image file name\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\n File imageFile = File.createTempFile(imageFileName, \".jpg\", storageDir);\n return imageFile;\n }", "private static File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = MyApplication.getContext().getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp;\n\n String folderName = context.getString(R.string.app_name).toLowerCase();\n\n File path = new File(ContextCompat.getExternalFilesDirs(getActivity(), null)[0]\n .getAbsolutePath() + \"/\" + folderName);\n\n //make sure folder exists\n path.mkdirs();\n\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n path /* directory */\n );\n\n return image;\n }", "private File createImageFile() throws IOException {\n // Create an image file name\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getContext().getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n return image;\n }", "public File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getActivity().getFilesDir();\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n return image;\n }", "File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n //Todo:Este sera el nombre que tendra el archivo\n String imageFileName = \"IMAGE_\" + timeStamp + \"_\";\n //Todo:Ruta donde se almacenara la imagen\n File storageDirectory = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\n\n //Todo:El tipo de archivo que se almacenara en el directorio\n File image = File.createTempFile(imageFileName,\".jpg\",storageDirectory);\n //Todo: mImageFileLocation sera el valor que se\n mImageFileLocation = image.getAbsolutePath();\n\n return image;\n }", "private File createImageFile() throws IOException {\n // Create an image file name\n String timeStamp = new SimpleDateFormat(\"yyyyMMddHHmmss\").format(new Date());\n String mFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File mFile = File.createTempFile(mFileName, \".jpg\", storageDir);\n return mFile;\n }", "private File createImageFile() throws IOException {\n Date d = new Date();\n String nameDate = new SimpleDateFormat(\"ddMMyyyy_HHmmss\").format(d);\n this.date = new SimpleDateFormat(\"dd/MM/yyyy\").format(d);\n String imageFileName = \"JPEG_\" + nameDate + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private String getHistoryTabImgTitle(String title) {\n return \"<span style=\\\"font-family: 'calibri';\\\">\" + Canvas.imgHTML(\"pieces/16/history.png\") + \"&nbsp;\" + title + \"</span>\";\n }", "public File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES);\n File imageFile = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n return imageFile;\n }", "private File createImageFile() {\n\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\", Locale.getDefault()).format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n\n File storageDir = Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES + APP_PICTURE_DIRECTORY);\n storageDir.mkdirs();\n\n File imageFile = null;\n\n try {\n imageFile = File.createTempFile(\n imageFileName, /* prefix */\n FILE_SUFFIX_JPG, /* suffix */\n storageDir /* directory */\n );\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return imageFile;\n }", "private File getImageFile() throws IOException {\n\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n\n String imageName = \".jpg_\" + timeStamp + \"_\";\n\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n\n\n File imageFile = File.createTempFile(imageName, \".jpg\", storageDir);\n\n\n return imageFile;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new java.util.Date());\n String imageFileName = \"WILDLIFE_JPEG_\" + timeStamp + \"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }", "public File getImageFile() throws IOException {\n String timeStamp=new SimpleDateFormat(\"yyyymmdd_HHmmss\").format(new Date());\n String imageName=timeStamp;\n File storageDir=getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File imageFile=File.createTempFile(imageName,\".jpg\",storageDir);\n currentImagePath=imageFile.getAbsolutePath();\n imguri.setText(currentImagePath);\n return imageFile;\n }", "private File createImageFile() throws IOException\n {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"Picko_JPEG\" + timeStamp + \"_\";\n File storageDir = new File(Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_DOCUMENTS),\"Whatsapp\");\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n String mCurrentPhotoPath = \"file:\" + image.getAbsolutePath();\n return image;\n\n\n }", "private File createImageFile() throws IOException\r\n {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\r\n String imageFileName = \"MYAPPTEMP_\" + timeStamp + \"_\";\r\n File storageDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\r\n File image = File.createTempFile(imageFileName, /* prefix */\r\n \".jpg\", /* suffix */\r\n storageDir /* directory */\r\n );\r\n\r\n return image;\r\n }", "void createLogo(String logoCode);", "private File createImageFile() {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n //File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File storageDir = new File(utils.getSentImagesDirectory());\n\n File image = null;\n try {\n image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n // Save a file: path for use with ACTION_VIEW intents\n //LOG.info(\"test place3\");\n try {\n imageFilePath = image.getAbsolutePath();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n //LOG.info(\"test place4\");\n if (image == null) {\n LOG.info(\"image file is null\");\n } else {\n LOG.info(\"image file is not null path is:\" + imageFilePath);\n }\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\r\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\r\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\r\n File image = File.createTempFile(\r\n imageFileName, // prefix //\r\n \".jpg\", // suffix //\r\n storageDir // directory //\r\n );\r\n\r\n // Save a file: path for use with ACTION_VIEW intents\r\n mPath = image.getAbsolutePath();\r\n return image;\r\n }", "public abstract String createFilename(Entity entity);", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n String z = image.getAbsolutePath();\n return image;\n }", "private String createScreenshotFilePath() {\n String fileName = new SimpleDateFormat(FILE_NAME_FORMAT).format(new Date());\n String filePath = MainMenu.PUBLIC_EXTERNAL_PICTURES_ORION_PATH + fileName;\n return filePath;\n }", "protected File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n strAbsolutePath = image.getAbsolutePath();\n Log.e(\"XpathX\", image.getAbsolutePath());\n return image;\n }", "public static String createFotoFileName(String prefix) {\n return prefix + \"_\" + DateUtil.getCurrentDateTimeAsString(\"yyyyMMdd_hhmmss\") + \".jpg\";\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMddHHmmss\").format(new Date());\n String mFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File mFile = File.createTempFile(mFileName, \".jpg\", storageDir);\n pictureFilePath = mFile.getAbsolutePath();\n return mFile;\n }", "static String getMascotImageFilename() {\n Path filePath = Paths.get(badgeResourcePath, \"kumoricon_2017-mascot_chibi.png\");\n return filePath.toAbsolutePath().toString();\n }", "public File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = mContext.getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n return File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, // prefix\n \".jpg\", // suffix\n storageDir // directory\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = \"file:\" + image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n pictureImagePath = image.getAbsolutePath();\n return image;\n\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getActivity().getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".png\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n // Create an image file name\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n //The directory where to save the file image\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n //The actual image file\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n // Save a file: path for use with ACTION_VIEW intents\n mPhotoPath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n //galleryAddPic();\n return image;\n }", "public File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\", Locale.US).format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = new File(getPhotoLocation());\n File image = File.createTempFile(\n imageFileName,\n \".jpg\",\n storageDir\n );\n\n setCurrentPhotoFile(image.getAbsolutePath());\n return image;\n }", "Image createImage();", "public static String getFileName()\r\n\t{\r\n\t\tString name = \"d3_\";\r\n\t\tjava.util.Date tNow = new java.util.Date();\r\n\r\n\t\tjava.text.SimpleDateFormat df = new java.text.SimpleDateFormat(\"mm_ss\");\r\n\r\n\t\tname = name + \"_\" + df.format(tNow) + \".wmf\";\r\n\r\n\t\treturn name;\r\n\t}", "private File createImageFile() throws IOException {\n String imageFileName = new SimpleDateFormat(\"yyyyMMdd-HHmmss\", Locale.ENGLISH).format(new Date());\n String storageDir = Environment.getExternalStorageDirectory() + \"/DokuChat\";\n File dir = new File(storageDir);\n if (!dir.exists())\n dir.mkdir();\n\n image = new File(storageDir + \"/\" + imageFileName + \".jpg\");\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }", "IMG createIMG();", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n pictureImagePath = image.getAbsolutePath();\n return image;\n }", "@Override\n public String createFile(String date, String todaysDate) throws FlooringMasteryPersistenceException{\n \n return \"You are in Training mode, cannot create file\";\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }", "public abstract String getImageFormat();", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n savePhotoPathToSharedPrefs();\n return image;\n }", "public static void CreateFile(){\n try{\n new File(\"wipimages\").mkdir();\n logscommissions.createNewFile();\n }catch(Exception e){\n e.printStackTrace();\n System.out.println(\"CreateFile Failed\\n\");\n }\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format( new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\" ;\n File storageDir = Environment.getExternalStoragePublicDirectory(Environment. DIRECTORY_PICTURES);\n File image = File. createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = SettingsHelper.getPrivateImageFolder(this);\n if (!storageDir.exists()) {\n storageDir.mkdirs();\n }\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n imageUri = Uri.fromFile(image);\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n// File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File storageDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n// File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File storageDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private static File createImageFile(Activity activity) throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = activity.getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = \"file:\" + image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\", Locale.ENGLISH).format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = new File(Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_DCIM), \"Camera\");\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = \"file:\" + image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\", Locale.CANADA).format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = mActivity.getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName,\n \".jpg\",\n storageDir\n );\n\n cameraFilePath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\r\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\r\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\r\n File image = File.createTempFile(\r\n imageFileName, /* prefix */\r\n \".jpg\", /* suffix */\r\n storageDir /* directory */\r\n );\r\n\r\n // Save a file: path for use with ACTION_VIEW intents\r\n mCurrentPhotoPath = image.getAbsolutePath();\r\n return image;\r\n\r\n }", "private File createImageFile() throws IOException {\n // Create an image file name\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(imageFileName, \".jpg\", storageDir);\n\n // Save a file: path for use with ACTION_VIEW intents\n this.currentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private Image createImage(String image_file) {\n\t\tImage img = new Image(image_file);\n\t\treturn img;\n\t}", "public static void createReportICD10(String title, String date) {\n try {\n Document document = new Document(PageSize.A5.rotate());\n PdfWriter.getInstance(document, new FileOutputStream(title));\n document.open();\n addMetaDataICD10(document);\n addTitleICD10(document, date);\n addDataICD10(document, date);\n addFooterICD10(document);\n document.close();\n\n PrintTest2.print3(title);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void createImageFiles() {\n\t\tswitchIconClosed = Icon.createImageIcon(\"/images/events/switchImageClosed.png\");\n\t\tswitchIconOpen = Icon.createImageIcon(\"/images/events/switchImageOpen.png\");\n\t\tswitchIconEmpty = Icon.createImageIcon(\"/images/events/switchImageEmpty.png\");\n\t\tswitchIconOff = Icon.createImageIcon(\"/images/events/switchImageOff.png\");\n\t\tswitchIconOn = Icon.createImageIcon(\"/images/events/switchImageOn.png\");\n\t\tleverIconClean = Icon.createImageIcon(\"/images/events/leverImageClean.png\");\n\t\tleverIconRusty = Icon.createImageIcon(\"/images/events/leverImageRusty.png\");\n\t\tleverIconOn = Icon.createImageIcon(\"/images/events/leverImageOn.png\");\n\t}", "public boolean saveImage(String _element) {\r\n\t\tGregorianCalendar cal = new GregorianCalendar();\r\n\t\tDecimalFormat format = org.opensourcephysics.numerics.Util.newDecimalFormat(\"00\");\r\n\t\tString date = cal.get(Calendar.YEAR) + \"\" + format.format(cal.get(Calendar.MONTH)) + \"\"\r\n\t\t\t\t+ format.format(cal.get(Calendar.DATE)) + \"_\" + format.format(cal.get(Calendar.HOUR_OF_DAY)) + \"\"\r\n\t\t\t\t+ format.format(cal.get(Calendar.MINUTE)) + \"\" + format.format(cal.get(Calendar.SECOND));\r\n\t\treturn saveImage(getClassname() + \"_\" + date + \".jpg\", _element);\r\n\t}", "FileContent createFileContent();", "private File createImageFile() throws IOException {\n // Create an image file name\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp;\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }", "public String fileFormat() {\n DateTimeFormatter df = DateTimeFormatter.ofPattern(\"dd MMM yyyy HHmm\");\n return \"D | \" + (super.isDone ? \"1 | \" : \"0 | \") + this.description + \" | \" + df.format(this.date);\n }", "private File createFilePictures() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String pictureName = \"BEER_\" + timeStamp + \"_\";\n File storageDir = getActivity().getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n pictureName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPicturePath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = new File(Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_DCIM), \"Camera\");\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = \"file:\" + image.getAbsolutePath();\n return image;\n }", "private void createImage()\n {\n GreenfootImage image = new GreenfootImage(width, height);\n setImage(\"Player.png\");\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n //This is the directory in which the file will be created. This is the default location of Camera photos\n File storageDir = new File(Environment.getExternalStorageDirectory(), getString(R.string.app_name));\n if (!storageDir.exists()){\n storageDir.mkdir();\n }\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n // Save a file: path for using again\n cameraFilePath = \"file://\" + image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = activity.getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }" ]
[ "0.67900676", "0.6256257", "0.6235719", "0.6235719", "0.6197852", "0.61652815", "0.61529803", "0.6113348", "0.60774887", "0.60655135", "0.60645115", "0.60573053", "0.60124594", "0.5975949", "0.5929609", "0.5917437", "0.5915502", "0.5913176", "0.5911419", "0.59113085", "0.58962744", "0.5890175", "0.5887313", "0.5881173", "0.587707", "0.5869927", "0.58553344", "0.58535075", "0.5845752", "0.582927", "0.58153987", "0.58029", "0.5776232", "0.5769459", "0.5765025", "0.5757801", "0.5752863", "0.5752536", "0.5750893", "0.5738449", "0.57353544", "0.57347745", "0.5731161", "0.57191616", "0.5705931", "0.57048094", "0.5694241", "0.56924415", "0.56889653", "0.56882864", "0.5680162", "0.56719077", "0.56713897", "0.5669346", "0.5649016", "0.5634294", "0.5631603", "0.5630074", "0.5612013", "0.561114", "0.5610552", "0.5602356", "0.55980825", "0.5589902", "0.5585653", "0.55765486", "0.55713946", "0.55694556", "0.5567714", "0.5561954", "0.55521774", "0.5551847", "0.5538486", "0.55353826", "0.55353826", "0.55296904", "0.5525131", "0.5522894", "0.5522483", "0.55198437", "0.5517848", "0.5517848", "0.5517848", "0.5517848", "0.5517848", "0.5517401", "0.5510387", "0.5505063", "0.5501042", "0.54983646", "0.54908276", "0.5489339", "0.5486958", "0.548669", "0.5483462", "0.5478194", "0.5475281", "0.5474529", "0.5469718", "0.54684013", "0.5467519" ]
0.0
-1
Received image and crop image from camera or gallery
private void startCropImageActivity(Uri imageUri, int requestCode) { Intent vCropIntent = CropImage.activity(imageUri) .setGuidelines(CropImageView.Guidelines.ON) .setMultiTouchEnabled(true) .getIntent(this); startActivityForResult(vCropIntent, requestCode); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void cropImage() {\n\t\t// Use existing crop activity.\n\t\tIntent intent = new Intent(\"com.android.camera.action.CROP\");\n\t\tintent.setDataAndType(mImageCaptureUri, IMAGE_UNSPECIFIED);\n\n\t\t// Specify image size\n\t\tintent.putExtra(\"outputX\", 100);\n\t\tintent.putExtra(\"outputY\", 100);\n\n\t\t// Specify aspect ratio, 1:1\n\t\tintent.putExtra(\"aspectX\", 1);\n\t\tintent.putExtra(\"aspectY\", 1);\n\t\tintent.putExtra(\"scale\", true);\n\t\tintent.putExtra(\"return-data\", true);\n\n\t\t// REQUEST_CODE_CROP_PHOTO is an integer tag you defined to\n\t\t// identify the activity in onActivityResult() when it returns\n\t\tstartActivityForResult(intent, REQUEST_CODE_CROP_PHOTO);\n\t}", "private void performCrop() {\n try {\r\n //call the standard crop action intent (the user device may not support it)\r\n Intent cropIntent = new Intent(\"com.android.camera.action.CROP\");\r\n //indicate image type and Uri\r\n cropIntent.setDataAndType(picUri, \"image/*\");\r\n //set crop properties\r\n cropIntent.putExtra(\"crop\", \"true\");\r\n //indicate aspect of desired crop\r\n// cropIntent.putExtra(\"aspectX\", 1);\r\n// cropIntent.putExtra(\"aspectY\", 1);\r\n //indicate output X and Y\r\n// cropIntent.putExtra(\"outputX\", 256);\r\n// cropIntent.putExtra(\"outputY\", 256);\r\n //retrieve data on return\r\n cropIntent.putExtra(\"return-data\", true);\r\n //start the activity - we handle returning li_history onActivityResult\r\n startActivityForResult(cropIntent, 2);\r\n }\r\n //respond to users whose devices do not support the crop action\r\n catch (ActivityNotFoundException anfe) {\r\n //display an error message\r\n String errorMessage = \"Whoops - your device doesn't support the crop action!\";\r\n Toast toast = Toast.makeText(this, errorMessage, Toast.LENGTH_SHORT);\r\n toast.show();\r\n }\r\n }", "public void cropImage() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {\n this.grantUriPermission(\"com.android.camera\", photoUri,\n Intent.FLAG_GRANT_WRITE_URI_PERMISSION | Intent.FLAG_GRANT_READ_URI_PERMISSION);\n }\n Intent intent = new Intent(\"com.android.camera.action.CROP\");\n intent.setDataAndType(photoUri, \"image/*\");\n\n List<ResolveInfo> list = getPackageManager().queryIntentActivities(intent, 0);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {\n grantUriPermission(list.get(0).activityInfo.packageName, photoUri,\n Intent.FLAG_GRANT_WRITE_URI_PERMISSION | Intent.FLAG_GRANT_READ_URI_PERMISSION);\n }\n int size = list.size();\n if (size == 0) {\n Toast.makeText(this, \"취소 되었습니다.\", Toast.LENGTH_SHORT).show();\n return;\n } else {\n// Toast.makeText(this, \"용량이 큰 사진의 경우 시간이 오래 걸릴 수 있습니다.\", Toast.LENGTH_SHORT).show();\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {\n intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n intent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\n }\n intent.putExtra(\"crop\", \"true\");\n// intent.putExtra(\"aspectX\", 3);\n// intent.putExtra(\"aspectY\", 4);\n intent.putExtra(\"scale\", true);\n File croppedFileName = null;\n try {\n croppedFileName = createImageFile();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n File folder = new File(Environment.getExternalStorageDirectory() + \"/Body_Img/\");\n File tempFile = new File(folder.toString(), croppedFileName.getName());\n\n photoUri = FileProvider.getUriForFile(Body_Img.this,\n \"com.example.a1013c.body_sns.provider\", tempFile);\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {\n intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n intent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\n }\n\n intent.putExtra(\"return-data\", false);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, photoUri);\n intent.putExtra(\"outputFormat\", Bitmap.CompressFormat.JPEG.toString());\n\n Intent i = new Intent(intent);\n ResolveInfo res = list.get(0);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {\n i.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n i.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\n\n grantUriPermission(res.activityInfo.packageName, photoUri,\n Intent.FLAG_GRANT_WRITE_URI_PERMISSION | Intent.FLAG_GRANT_READ_URI_PERMISSION);\n }\n i.setComponent(new ComponentName(res.activityInfo.packageName, res.activityInfo.name));\n startActivityForResult(i, CROP_FROM_CAMERA);\n }\n }", "private void performCrop(Uri img) {\n try {\r\n //call the standard crop action intent (the user device may not support it)\r\n Intent cropIntent = new Intent(\"com.android.camera.action.CROP\");\r\n //indicate image type and Uri\r\n cropIntent.setDataAndType(img, \"image/*\");\r\n //set crop properties\r\n cropIntent.putExtra(\"crop\", \"true\");\r\n //indicate aspect of desired crop\r\n // cropIntent.putExtra(\"aspectX\", 1);\r\n //cropIntent.putExtra(\"aspectY\", 1);\r\n //indicate output X and Y\r\n // cropIntent.putExtra(\"outputX\", 256);\r\n // cropIntent.putExtra(\"outputY\", 256);\r\n //retrieve data on return\r\n\r\n cropIntent.putExtra(\"return-data\", true);\r\n //start the activity - we handle returning in onActivityResult\r\n startActivityForResult(cropIntent, 2);\r\n }\r\n //respond to users whose devices do not support the crop action\r\n catch (ActivityNotFoundException anfe) {\r\n //display an error message\r\n String errorMessage = \"Whoops - your device doesn't support the crop action!\";\r\n Toast toast = Toast.makeText(this, errorMessage, Toast.LENGTH_SHORT);\r\n toast.show();\r\n }\r\n }", "public void cropImage() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { // 마쉬멜로우 이상 버전일 때\n grantUriPermission(\"com.android.camera\", mImageCaptureUri,\n Intent.FLAG_GRANT_WRITE_URI_PERMISSION | Intent.FLAG_GRANT_READ_URI_PERMISSION);\n }\n Intent intent = new Intent(\"com.android.camera.action.CROP\");\n intent.setDataAndType(mImageCaptureUri, \"image/*\");\n\n List<ResolveInfo> list = getPackageManager().queryIntentActivities(intent, 0);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n grantUriPermission(list.get(0).activityInfo.packageName, mImageCaptureUri,\n Intent.FLAG_GRANT_WRITE_URI_PERMISSION | Intent.FLAG_GRANT_READ_URI_PERMISSION);\n }\n int size = list.size();\n if (size == 0) {\n Toast.makeText(ManualRegistActivity.this, \"취소 되었습니다.\", Toast.LENGTH_SHORT).show();\n return;\n } else {\n Toast.makeText(ManualRegistActivity.this, \"용량이 큰 사진의 경우 시간이 오래 걸릴 수 있습니다.\", Toast.LENGTH_SHORT).show();\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n intent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\n }\n intent.putExtra(\"crop\", \"true\");\n intent.putExtra(\"aspectX\", 1);\n intent.putExtra(\"aspectY\", 1);\n intent.putExtra(\"scale\", true);\n croppedFile = null;\n try {\n croppedFile = createImageFile();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n File folder = new File(Environment.getExternalStorageDirectory() + \"/BioCube/\");\n File tempFile = new File(folder.toString(), croppedFile.getName());\n\n mCurrentPhotoPath = tempFile.getAbsolutePath();\n mImageCaptureUri = FileProvider.getUriForFile(ManualRegistActivity.this,\n \"com.example.seongjun.biocube.provider\", tempFile);\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n intent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\n }\n\n intent.putExtra(\"return-data\", false);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, mImageCaptureUri);\n intent.putExtra(\"outputFormat\", Bitmap.CompressFormat.JPEG.toString());\n\n Intent i = new Intent(intent);\n ResolveInfo res = list.get(0);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n i.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n i.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\n\n grantUriPermission(res.activityInfo.packageName, mImageCaptureUri,\n Intent.FLAG_GRANT_WRITE_URI_PERMISSION | Intent.FLAG_GRANT_READ_URI_PERMISSION);\n }\n i.setComponent(new ComponentName(res.activityInfo.packageName, res.activityInfo.name));\n startActivityForResult(i, CROP_FROM_CAMERA);\n }\n }", "private void handleCrop(int resultCode, Intent data) {\n if (resultCode == RESULT_OK) {\n Uri uri = Crop.getOutput(data);\n try {\n Bitmap bitmap = MediaStore.Images.Media.getBitmap(this.getContentResolver(), uri);\n mImageCaptureUri = uri;\n mImageView.setImageBitmap(bitmap);\n } catch (Exception e) {\n Log.d(TAG, e.getMessage());\n }\n\n } else if (resultCode == Crop.RESULT_ERROR) {\n Toast.makeText(this, Crop.getError(data).getMessage(), Toast.LENGTH_SHORT).show();\n }\n }", "protected void cropImage() {\n if (mOptions.noOutputImage) {\n setResult(null, null, 1);\n } else {\n Uri outputUri = getOutputUri();\n mCropImageView.saveCroppedImageAsync(\n outputUri,\n mOptions.outputCompressFormat,\n mOptions.outputCompressQuality,\n mOptions.outputRequestWidth,\n mOptions.outputRequestHeight,\n mOptions.outputRequestSizeOptions);\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n\n if (resultCode != RESULT_OK) {\n return;\n }\n\n switch (requestCode) {\n // Camera Implementation\n case REQUEST_CODE_CAMERA_PERMISSION:\n isPhotoTakenFromCamera = true;\n Bitmap rotatedBitmap = imageOrientationValidator(mPhotoFile); // check orientation\n if (rotatedBitmap != null) {\n try {\n FileOutputStream fOut = new FileOutputStream(mPhotoFile);\n rotatedBitmap.compress(Bitmap.CompressFormat.JPEG, 100, fOut);\n fOut.flush();\n fOut.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n // Send image taken from camera for cropping\n mImageCaptureUri = FileProvider.getUriForFile(this,\n BuildConfig.APPLICATION_ID,\n mPhotoFile);\n beginCrop(mImageCaptureUri);\n }\n break;\n\n // Gallery implementation here\n case REQUEST_CODE_GALLERY:\n isPhotoTakenFromCamera = false;\n if (data != null){\n beginCrop(data.getData());\n }\n break;\n\n //Crop implementation\n case Crop.REQUEST_CROP:\n // Update image view after image crop\n handleCrop(resultCode, data);\n // Delete temporary image taken by camera after crop.\n if (isPhotoTakenFromCamera) {\n File f = new File(Objects.requireNonNull(mImageCaptureUri.getPath()));\n if (f.exists()) {\n f.delete();\n }\n }\n break;\n\n }\n super.onActivityResult(requestCode, resultCode, data);\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (resultCode == RESULT_OK)\n {\n //------------Received image from camera in device serial number------------------------\n if (requestCode == CAMERA_DEVICE_SERIAL_NUMBER)\n {\n Uri picUri = pictureUri;\n startCropImageActivity(picUri, CROP_CAMERA_SERIAL_NUMBER);\n Toast.makeText(UserAreaActivity.this, \"Serial Number Image Saved!\", Toast.LENGTH_SHORT).show();\n }\n\n //---------------Cropped image from camera in device serial number----------------------\n if (requestCode == CROP_CAMERA_SERIAL_NUMBER)\n {\n CropImage.ActivityResult result = CropImage.getActivityResult(data);\n Croppedimage(result, ivDeviceSerialNumber, etDeviceSerialNumber);\n }\n\n //------------Received image from gallery in device serial number-----------------------\n if (requestCode == GALLERY_DEVICE_SERIAL_NUMBER)\n {\n startCropImageActivity(data.getData(), CROP_GALLERY_SERIAL_NUMBER);\n Toast.makeText(UserAreaActivity.this, \"Image from gallery\", Toast.LENGTH_SHORT).show();\n }\n\n //--------------Cropped image from gallery in device serial number----------------------\n if(requestCode == CROP_GALLERY_SERIAL_NUMBER)\n {\n CropImage.ActivityResult result = CropImage.getActivityResult(data);\n Croppedimage(result, ivDeviceSerialNumber, etDeviceSerialNumber);\n }\n\n }\n\n }", "private void startCropImage() {\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tif (resultCode != RESULT_OK) {\n\t\t\tLog.d(\"CS65\", \"Camera error: result not ok.\");\n\t\t\treturn;\n\t\t}\n\n\t\tswitch (requestCode) {\n\t\tcase REQUEST_CODE_CHOOSE_FROM_GALLERY:\n\t\t\t// Allow user to choose image from internal gallery.\n\t\t\tLog.d(\"CS65\", \"entered choose from gallery request\");\n\t\t\tmImageCaptureUri = data.getData();\n\t\t\tcropImage();\n\t\t\tbreak;\n\n\t\tcase REQUEST_CODE_TAKE_FROM_CAMERA:\n\t\t\t// Allow user to take a photo from the camera.\n\t\t\t// Send image taken from camera for cropping\n\t\t\tcropImage();\n\t\t\tbreak;\n\n\t\tcase REQUEST_CODE_CROP_PHOTO:\n\t\t\t// Update image view after image crop.\n\t\t\tBundle extras = data.getExtras();\n\t\t\t// Set the picture image in UI\n\t\t\tif (extras != null) {\n\t\t\t\t// Convert bitmap to a byte array and load.\n\t\t\t\tBitmap photo = (Bitmap) extras.getParcelable(\"data\");\n\t\t\t\tbitToByte(photo);\n\t\t\t\tloadImage();\n\t\t\t}\n\n\t\t\t// Delete temporary image taken by camera after crop.\n\t\t\tif (isTakenFromCamera) {\n\t\t\t\tFile f = new File(mImageCaptureUri.getPath());\n\t\t\t\tif (f.exists())\n\t\t\t\t\tf.delete();\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}", "public void getCroppedBitmap(final OnResultListener onResultListener) {\n setProgressBarVisibility(VISIBLE);\n AsyncTask.execute(new Runnable() {\n @Override\n public void run() {\n try {\n ContentResolver resolver = getContext().getContentResolver();\n InputStream inputStream = resolver.openInputStream(imageUri);\n Bitmap bitmap = BitmapFactory.decodeStream(inputStream);\n\n //rotate image\n Matrix matrix = new Matrix();\n matrix.postRotate(getOrientation() + getRotation());\n\n bitmap = Bitmap.createBitmap(bitmap, 0, 0,\n bitmap.getWidth(), bitmap.getHeight(), matrix, true);\n\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 90, outputStream);\n byte[] bitmapData = outputStream.toByteArray();\n ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(bitmapData);\n\n BitmapRegionDecoder decoder = BitmapRegionDecoder.\n newInstance(byteArrayInputStream, false);\n\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inSampleSize = 1;\n options.inJustDecodeBounds = false;\n\n Bitmap croppedBitmap = decoder.decodeRegion(cropRect, options);\n decoder.recycle();\n\n final Result result = new Result(imageUri, croppedBitmap);\n CropImageView.this.post(new Runnable() {\n @Override\n public void run() {\n onResultListener.onResult(result);\n setProgressBarVisibility(GONE);\n }\n });\n } catch (Exception | OutOfMemoryError e) {\n e.printStackTrace();\n CropImageView.this.post(new Runnable() {\n @Override\n public void run() {\n onResultListener.onResult(new Result(getImageUri(), null));\n setProgressBarVisibility(GONE);\n }\n });\n }\n }\n });\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == CropImage.PICK_IMAGE_CHOOSER_REQUEST_CODE && resultCode == RESULT_OK) {\n Uri imageUri = CropImage.getPickImageResultUri(this, data);\n// startCropImageActivity(AsyncBlackBackgrImage.createBackground(context, imageUri));\n startCropImageActivity(imageUri);\n }\n\n if ((requestCode == GALLERY_INTENT || requestCode == CAMERA_INTENT) && resultCode == RESULT_OK) {\n Uri imageUri = CropImage.getPickImageResultUri(context, data);\n Log.d(getLocalClassName() + \"pick image\", imageUri.toString());\n\n// startCropImageActivity(AsyncBlackBackgrImage.createBackground(context, imageUri));\n startCropImageActivity(imageUri);\n }\n\n if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) {\n CropImage.ActivityResult result = CropImage.getActivityResult(data);\n if (resultCode == RESULT_OK) {\n ((ImageView) findViewById(R.id.imageview_myactivity)).setImageURI(result.getUri());\n\n Log.d(\"CropResultUri\", result.getUri().toString());\n\n MyBmpInfo bmpinfo = getThumbnail(result.getUri());\n Bitmap b = bmpinfo.result;\n if (bmpinfo.warnUser) {\n textInfoImage.setText(\"Warning: \" + bmpinfo.warning + \" ( \" + b.getWidth() + \" x \" + b.getHeight() + \" ) \");\n textInfoImage.setTextColor(Color.parseColor(\"#FFFF0000\"));\n } else textInfoImage.setText(\"\");\n\n Toast.makeText(this, \"Cropping successful\", Toast.LENGTH_LONG).show();\n\n b = watermark(b);\n // Save image as .jpg file in phone public \"Picture\" directory\n selectedImageFilePath = saveFile(b);\n selectedImageFilePath = new String[]{selectedImageFilePath[0], selectedImageFilePath[1], result.getUri().toString()};\n Toast.makeText(this, \"Saved successfully\", Toast.LENGTH_LONG).show();\n\n\n } else if (resultCode == CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE) {\n Toast.makeText(this, \"Cropping failed: \" + result.getError(), Toast.LENGTH_LONG).show();\n }\n }\n }", "private void handleCrop(int resultCode, Intent result) {\n if (resultCode == RESULT_OK) {\n try {\n Uri uri = Crop.getOutput(result);\n yourSelectedImage = MediaStore.Images.Media.getBitmap(this.getContentResolver(), Crop.getOutput(result));\n ivUserImage.setImageBitmap(yourSelectedImage);\n Uri tempUri = Util.getInstance().getImageUri(SignUp.this, yourSelectedImage);\n // createImageFromBitmap(yourSelectedImage);\n // tempFilePath = FileUtil.getPath(this,tempUri);\n tempFilePath = FileUtil.getPath(SignUp.this, tempUri);\n } catch (Exception e) {\n e.printStackTrace();\n }\n } else if (resultCode == Crop.RESULT_ERROR) {\n // Toast.makeText(this, Crop.getError(result).getMessage(), Toast.LENGTH_SHORT).show();\n }\n }", "public static void performCrop(Activity activity, Uri picUri) {\n try {\n // call the standard crop action intent (the user device may not\n // support it)\n Intent cropIntent = new Intent(\"com.android.camera.action.CROP\");\n // indicate image type and Uri\n cropIntent.setDataAndType(picUri, \"image/*\");\n // set crop properties\n cropIntent.putExtra(\"crop\", \"true\");\n // indicate aspect of desired crop\n cropIntent.putExtra(\"aspectX\", 2);\n cropIntent.putExtra(\"aspectY\", 1);\n // indicate output X and Y\n cropIntent.putExtra(\"outputX\", 256);\n cropIntent.putExtra(\"outputY\", 256);\n // retrieve data on return\n cropIntent.putExtra(\"return-data\", true);\n // start the activity - we handle returning in onActivityResult\n activity.startActivityForResult(cropIntent, CROP_IMAGE);\n }\n // respond to users whose devices do not support the crop action\n catch (ActivityNotFoundException anfe) {\n Toast toast = Toast\n .makeText(activity, \"This device doesn't support the crop action!\", Toast.LENGTH_SHORT);\n toast.show();\n }\n\n }", "public native MagickImage cropImage(Rectangle chopInfo)\n\t\t\tthrows MagickException;", "@Override\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tLog.e(\"on success\", \"on success\");\n\t\tBitmap s = null;\n\n\t\tif (resultCode == getActivity().RESULT_OK) {\n\t\t\t// user is returning from capturing an image using the camera\n\t\t\tif (requestCode == CAMERA_CAPTURE) {\n\t\t\t\tLog.e(\"camera\", \"camera\");\n\t\t\t\tpicUri = data.getData();\n\t\t\t\tBundle extras = data.getExtras();\n\t\t\t\t// get the cropped bitmap\n\t\t\t\tBitmap thePic = extras.getParcelable(\"data\");\n\t\t\t\tsavetoaFileLocation(thePic);\n\t\t\t\tthePic = getResizedBitmap(thePic, 200, 200);\n\t\t\t\tcameraBitmap = thePic;\n\t\t\t\t// ImageView picView = (ImageView)\n\t\t\t\t// findViewById(R.id.img_userimage);\n\t\t\t\t// display the returned cropped image\n\t\t\t\tprofileimageeditflag=\"true\";\n\t\t\t\tGraphicsUtil graphicUtil = new GraphicsUtil();\n\t\t\t\t// picView.setImageBitmap(graphicUtil.getRoundedShape(thePic));\n\t\t\t\t\n\t\t\t\tpicview1.setImageBitmap(graphicUtil.getCircleBitmap(thePic, 16));\n\t\t\t\t//picview1.setImageBitmap(cameraBitmap);\n\t\t\t} else if (requestCode == GALLERY_CAPTURE) {\n\n\n\n\n\t\t\t\tUri selectedImage = data.getData();\n\n\t\t\t\tString stringUri;\n\t\t\t\tstringUri = selectedImage.toString();\n\t\t\t\tif ((stringUri != \"\") || stringUri != null) {\n\n\t\t\t\t\tString selectedImagePath = getPath(selectedImage);\ntry {\n\tExifInterface exifInterface = new ExifInterface(selectedImagePath);\n\torientation = exifInterface.getAttributeInt(ExifInterface.TAG_ORIENTATION, ExifInterface.ORIENTATION_NORMAL);\n\n}\ncatch (Exception e){}\n\n\n\n\t\t\t\t\tString[] filePathColumn = { MediaStore.Images.Media.DATA };\n\t\t\t\t\tCursor cursor = getActivity().getContentResolver().query(\n\t\t\t\t\t\t\tselectedImage, filePathColumn, null, null, null);\n\t\t\t\t\tcursor.moveToFirst();\n\t\t\t\t\tint columnIndex = cursor.getColumnIndex(filePathColumn[0]);\n\t\t\t\t\tString selectedimage_path = cursor.getString(columnIndex);\n\t\t\t\t\tLog.e(\"selected path\",selectedimage_path);\n\t\t\t\t\tcursor.close();\n\t\t\t\t\tif (selectedimage_path.startsWith(\"https://\")) {\n\t\t\t\t\t\tgetBiymapFromGoogleLocation(selectedimage_path);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t} else {\n\t\t\t\t\t\ts = getBitmapFromFile(selectedimage_path);\n\t\t\t\t\t}\n\t\t\t\t\ts = getResizedBitmap(s, 200, 200);\n\t\t\t\t\tcameraBitmap = s;\n\n\t\t\t\t\tswitch(orientation) {\n\t\t\t\t\t\tcase ExifInterface.ORIENTATION_ROTATE_90:\n\t\t\t\t\t\t\tcorrectedBitMap = rotateImage(cameraBitmap, 90);\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tcase ExifInterface.ORIENTATION_ROTATE_180:\n\t\t\t\t\t\t\tcorrectedBitMap = rotateImage(cameraBitmap, 180);\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tcase ExifInterface.ORIENTATION_ROTATE_270:\n\t\t\t\t\t\t\tcorrectedBitMap = rotateImage(cameraBitmap, 270);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tcorrectedBitMap=cameraBitmap;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t\t// ImageView picView = (ImageView)\n\t\t\t\t\t// findViewById(R.id.img_userimage);\n\t\t\t\t\t// display the returned cropped image\nprofileimageeditflag=\"true\";\n\t\t\t\t\tGraphicsUtil graphicUtil = new GraphicsUtil();\n\n\n\t/*\t\t\t\tif(correctedBitMap!= null)\n\t\t\t\t\t{\n\t\t\t\t\t\tpicView.setImageBitmap(graphicUtil.getCircleBitmap(\n\t\t\t\t\t\t\t\tcorrectedBitMap, 16));\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t// picView.setImageBitmap(graphicUtil.getRoundedShape(thePic));\n\t\t\t\t\t\tpicView.setImageBitmap(graphicUtil.getCircleBitmap(\n\t\t\t\t\t\t\t\tcameraBitmap, 16));\n\t\t\t\t\t}\n\n*/\n\n\t\t\t\t\tif (correctedBitMap != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tpicview1.setImageBitmap(graphicUtil.getCircleBitmap(correctedBitMap, 16));\n\t\t\t\t\t\tsavetoaFileLocation(correctedBitMap);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tpicview1.setImageBitmap(graphicUtil.getCircleBitmap(s, 16));\n\t\t\t\t\t\tsavetoaFileLocation(s);\n\t\t\t\t\t}\n\n\n\n\t\t\t\t\t// picView.setImageBitmap(graphicUtil.getRoundedShape(thePic));\n\t\t\t\n\t\t\t\t//\tpicview1.setImageBitmap(graphicUtil.getCircleBitmap(s, 16));\n\t\t\t\t//\tpicview1.setImageBitmap(cameraBitmap);\n\t\t\t\t//\tsavetoaFileLocation(s);\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode == 1 && resultCode == RESULT_OK && data != null && data.getData() != null) {\n\n //Getting the uri from gallery\n\n fileImageUri = data.getData();\n imageUri = fileImageUri;\n CropImage.activity(fileImageUri) //cropping the image\n\n .setGuidelines(CropImageView.Guidelines.ON)\n .setCropShape(CropImageView.CropShape.RECTANGLE)\n .setFixAspectRatio(true)\n .setAspectRatio(1,1)\n .start(this);\n\n\n\n }\n\n\n //After image will crop again taking the image uri\n\n if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) {\n CropImage.ActivityResult result = CropImage.getActivityResult(data);\n if (resultCode == RESULT_OK) {\n resultUri = result.getUri();\n\n uploadUserImageView.setImageURI(resultUri);\n\n } else if (resultCode == CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE) {\n Exception error = result.getError();\n Toast.makeText(this, \"Error While Getting uri\", Toast.LENGTH_SHORT).show();\n }\n }\n\n }", "@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\r\n super.onActivityResult(requestCode, resultCode, data);\r\n mImageUri = data.getData();\r\n if (requestCode == GALLERY_REQUEST && resultCode == Activity.RESULT_OK) {\r\n mImageUri = data.getData();\r\n if (data.getData() == null) {\r\n Toast.makeText(this, \"Failed to load Image,try again\", Toast.LENGTH_LONG).show();\r\n return;\r\n }\r\n try {\r\n outputUri =new getFileName(context).getDataFilesThumbnailUriPath(String.valueOf(System.currentTimeMillis()),context);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n CropImage.activity(mImageUri)\r\n .setGuidelines(CropImageView\r\n .Guidelines.ON)\r\n .setAspectRatio(1, 1)\r\n .setBackgroundColor(getApplicationContext().getResources().getColor(R.color.background))\r\n .setActivityMenuIconColor(getApplicationContext().getResources().getColor(R.color.colorPrimary))\r\n .setOutputUri(outputUri)\r\n .start(this);\r\n }\r\n if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) {\r\n CropImage.ActivityResult result = CropImage.getActivityResult(data);\r\n if (resultCode == RESULT_OK) {\r\n resultUri =Uri.fromFile(new File(new CompressingImage5kb(String.valueOf(System.currentTimeMillis()),context).compressImage(String.valueOf(result.getUri()),\"\",true)));\r\n mCircleImageView.setImageURI(resultUri);\r\n } else if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE) {\r\n Exception error = result.getError();\r\n }\r\n }\r\n }", "protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) {\n CropImage.ActivityResult result = CropImage.getActivityResult(data);\n if (resultCode == RESULT_OK) {\n //getting Image to show\n Uri resultUri = result.getUri();\n profilePic.setImageURI(resultUri);\n\n //getting image to save bitmap formate\n try{\n bitmap = MediaStore.Images.Media.getBitmap(getContentResolver(),resultUri);\n imageChanged = true;\n }catch (IOException e){\n e.printStackTrace();\n }\n\n\n } else if (resultCode == CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE) {\n Exception error = result.getError();\n Toast.makeText(this, \"\"+error, Toast.LENGTH_SHORT).show();\n }\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) {\n CropImage.ActivityResult result = CropImage.getActivityResult(data);\n if (resultCode == RESULT_OK) {\n croppedURI = result.getUri();\n\n try {\n bitmap = MediaStore.Images.Media.getBitmap(this.getContentResolver(), croppedURI);\n\n Intent intent = new Intent(UploadHonjouActivity.this, ConfirmActivity.class);\n\n SharedPrefManager.getInstance(this).saveHonjou(getStringImage(bitmap));\n\n intent.putExtra(\"edit_flag\", false);\n\n startActivity(intent);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n } else if (resultCode == CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE) {\n\n }\n }\n }", "@Method(selector = \"crop:imageData:width:height:x:y:completionBlock:\")\n\tpublic native void crop(String name, NSData imageData, int width, int height, int x, int y, @Block App42ResponseBlock completionBlock);", "private void beginCrop(Uri source) {\n // pass URI as intent to the CROP Activity;\n if (mPhotoFile != null) {\n Uri destination = FileProvider.getUriForFile(this,\n BuildConfig.APPLICATION_ID,\n mPhotoFile);\n Log.d(TAG, \"URI: \" + destination.toString());\n Crop.of(source, destination).asSquare().start(this);\n }\n }", "@Override\n @SuppressLint(\"NewApi\")\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == CropImage.PICK_IMAGE_CHOOSER_REQUEST_CODE && resultCode == Activity.RESULT_OK) {\n Uri imageUri = CropImage.getPickImageResultUri(this, data);\n\n // For API >= 23 we need to check specifically that we have permissions to read external storage.\n if (CropImage.isReadExternalStoragePermissionsRequired(this, imageUri)) {\n // request permissions and handle the result in onRequestPermissionsResult()\n mCropImageUri = imageUri;\n requestPermissions(new String[]{android.Manifest.permission.READ_EXTERNAL_STORAGE}, CropImage.PICK_IMAGE_PERMISSIONS_REQUEST_CODE);\n } else {\n // no permissions required or already grunted, can start crop image activity\n startCropImageActivity(imageUri);\n }\n } else if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) {\n CropImage.ActivityResult result = CropImage.getActivityResult(data);\n if (resultCode == RESULT_OK) {\n mCropImageUri = result.getUri();\n InputStream imageStream = null;\n try {\n imageStream = getContentResolver().openInputStream(mCropImageUri);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n mCropImage = BitmapFactory.decodeStream(imageStream);\n imgRestaurant.setImageBitmap(mCropImage);\n\n } else if (resultCode == CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE) {\n Exception error = result.getError();\n Toast.makeText(NewRestaurantActivity.this, error.getMessage(), Toast.LENGTH_LONG).show();\n }\n }\n }", "@Override\r\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\r\n\t\tif (requestCode == CAMERA_REQUEST_CODE) {\r\n\t\t\tif (data == null) {\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tBundle extras = data.getExtras();\r\n\t\t\t\tif (extras != null) {\r\n\t\t\t\t\tBitmap bm = extras.getParcelable(\"data\");\r\n\t\t\t\t\tUri uri = saveBitmap(bm);\r\n\t\t\t\t\tstartImageZoom(uri);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else if (requestCode == GALLERY_REQUEST_CODE) {\r\n\t\t\tif (data == null) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tUri uri;\r\n\t\t\turi = data.getData();\r\n\t\t\tUri fileUri = convertUri(uri);\r\n\t\t\tstartImageZoom(fileUri);\r\n\t\t} else if (requestCode == CROP_REQUEST_CODE) {\r\n\t\t\tif (data == null) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tBundle extras = data.getExtras();\r\n\t\t\tif (extras == null) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tbm = extras.getParcelable(\"data\");\r\n\t\t\tiv_user_img.setImageBitmap(bm);\r\n\t\t\t// sendImage(bm);\r\n\t\t}\r\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n // choose a image\n if (requestCode == RequestCode.CHOOSE_IMAGE) {\n if (resultCode == RESULT_OK) {\n if (data != null) {\n Uri dataUri = data.getData();\n if (dataUri != null) {\n // get a random name\n File imgFile = SpaceUtils.newUsableFile();\n mSelectPath = imgFile.getPath();\n Log.v(\"path\",mSelectPath);\n // the image intent just return a simple image\n // the Ucrop(裁剪) is solved after the image intent\n UCrop.Options options = new UCrop.Options();\n options.setCompressionQuality(100);\n UCrop.of(dataUri, Uri.fromFile(imgFile))\n .withOptions(options)\n .withMaxResultSize(mImageSize.x, mImageSize.y)\n .withAspectRatio(3, 4)\n .start(this, RequestCode.CROP_IMAGE);\n }\n }\n }\n } else if (requestCode == RequestCode.CROP_IMAGE) {\n // crop a image\n if (resultCode == RESULT_OK) {\n if (data != null) {\n Glide.with(this).load(mSelectPath).into(mImageViews.get(mCurrentIndex));\n startDetectFaceInfo();\n }\n }\n }\n super.onActivityResult(requestCode, resultCode, data);\n }", "public void loadImagefromGallery(View view) {\n Intent intent = new Intent(Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\n intent.putExtra(\"crop\", \"true\");\n intent.putExtra(\"aspectX\", 50);\n intent.putExtra(\"aspectY\", 50);\n intent.putExtra(\"outputX\", 100);\n intent.putExtra(\"outputY\", 100);\n\n try {\n // Start the Intent\n startActivityForResult(intent, PICK_FROM_GALLERY);\n } catch (ActivityNotFoundException ae) {\n\n } catch (Exception e) {\n\n }\n }", "@Override\n public void onCropWindowChanged() {\n Bitmap cropped = imageView.getCroppedImage();\n BitmapHelper.getInstance().setBitmap(cropped);\n bitmap=cropped;\n\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == CropImage.PICK_IMAGE_CHOOSER_REQUEST_CODE && resultCode == Activity.RESULT_OK) {\n Uri imageUri = CropImage.getPickImageResultUri(this, data);\n startCropImageActivity(imageUri);\n }\n\n // handle result of CropImageActivity\n if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) {\n CropImage.ActivityResult result = CropImage.getActivityResult(data);\n if (resultCode == RESULT_OK) {\n mCroppedImageUri = result.getUri();\n mImageView.setImageURI(mCroppedImageUri);\n }\n }\n }", "@Method(selector = \"crop:imagePath:width:height:x:ycompletionBlock:\")\n\tpublic native void crop(String name, String imagePath, int width, int height, int x, int y, @Block App42ResponseBlock completionBlock);", "public void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (resultCode != Activity.RESULT_OK) {\n return;\n }\n switch (requestCode) {\n case REQUEST_CODE_INITIAL_PIC_FROM_CAMERA:\n cropPicture();\n break;\n case REQUEST_CODE_INITIAL_PIC_FROM_GALLERY:\n try {\n //upload(sdcardTempFile.getAbsolutePath());\n } catch (Exception e) {\n e.printStackTrace();\n }\n break;\n case REQUEST_CODE_INITIAL_PIC_FROM_CROP:\n try {\n //upload(sdcardTempFile.getAbsolutePath());\n } catch (Exception e) {\n e.printStackTrace();\n }\n break;\n }\n }", "public void cropMoleculeRecognition(){\n mOpenCameraView.disableView();\n\n Mat transformMat = Imgproc.getPerspectiveTransform(mCaptureAreaAdjusted,new MatOfPoint2f(new Point(0,0),new Point(0,400),new Point(400,400), new Point(400,0)));\n Mat croppedImage = new Mat();\n Imgproc.warpPerspective(mGray, croppedImage, transformMat, new Size(400, 400));\n\n /* cleanup the AR marker */\n int cropout = 240;\n\n croppedImage.submat(0,cropout,0,cropout).setTo(new Scalar(0));\n Core.MinMaxLocResult mmr;\n\n for(int i = 0; i<cropout; i++){\n mmr = Core.minMaxLoc(croppedImage.row(i).colRange(cropout,400));\n Core.add(croppedImage.row(i).colRange(0,cropout),new Scalar(mmr.maxVal/2),croppedImage.row(i).colRange(0,cropout));\n\n mmr = Core.minMaxLoc(croppedImage.col(i).rowRange(cropout, 400));\n Core.add(croppedImage.col(i).rowRange(0, cropout),new Scalar(mmr.maxVal/2),croppedImage.col(i).rowRange(0, cropout));\n }\n\n /*for now, just save the cropedImage*/\n /* in the live version, will need to sort out the ar marker on the top left */\n Imgcodecs.imwrite(getFilesDir().toString().concat(\"/croppedImg.png\"),croppedImage);\n Intent intent = new Intent(this,viewCapture.class);\n intent.putExtra(\"flagCaptureImage\",true);\n startActivity(intent);\n }", "private void beginCrop(Uri source) {\n Uri destination = Uri.fromFile(new File(getCacheDir(), \"cropped\"));\n Crop.of(source, destination).asSquare().start(this);\n }", "@Override\n @SuppressLint(\"NewApi\")\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == CropImage.PICK_IMAGE_CHOOSER_REQUEST_CODE && resultCode == Activity.RESULT_OK) {\n Uri imageUri = CropImage.getPickImageResultUri(this, data);\n\n // For API >= 23 we need to check specifically that we have permissions to read external storage.\n if (CropImage.isReadExternalStoragePermissionsRequired(this, imageUri)) {\n // request permissions and handle the result in onRequestPermissionsResult()\n cropImageUri = imageUri;\n Log.d(TAG, \"onActivityResult PICK_IMAGE_CHOOSER_REQUEST_CODE:\" + cropImageUri);\n requestPermissions(new String[]{Manifest.permission.READ_EXTERNAL_STORAGE}, CropImage.PICK_IMAGE_PERMISSIONS_REQUEST_CODE);\n } else {\n // no permissions required or already grunted, can start crop image activity\n Log.d(TAG, \"onActivityResult PICK_IMAGE_CHOOSER_REQUEST_CODE no permission:\" + imageUri);\n startCropImageActivity(imageUri);\n\n }\n } else if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) {\n CropImage.ActivityResult result = CropImage.getActivityResult(data);\n if (resultCode == RESULT_OK) {\n Uri resultUri = result.getUri();\n Log.d(TAG, \"CROP_IMAGE_ACTIVITY_REQUEST_CODE ok:\" + resultUri);\n cropImageUri = resultUri;\n if (optionFragment == null) {\n vpSubArea.setAdapter(new TabsAdapter(getSupportFragmentManager()));\n }\n optionFragment.setVoteImage(resultUri);\n } else if (resultCode == CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE) {\n Exception error = result.getError();\n }\n }\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tif (resultCode == RESULT_OK) {\n\n\t\t\tif (requestCode == Constants.REQUEST_CODE_PROFILE_IMAGE_CAMERA) {\n\n\t\t\t\tUri imageUri = Utilities.createImage();\n\t\t\t\tUtilities.startCropImage(ProfileActivity.this,\n\t\t\t\t\t\tConstants.REQUEST_CODE_PROFILE_IMAGE_CROP, imageUri);\n imageUriUpload = imageUri;\n\t\t\t} else if (requestCode == Constants.REQUEST_CODE_PROFILE_IMAGE_GALLERY) {\n\n\t\t\t\tUri imageUri = data.getData();\n\t\t\t\tUtilities.startCropImage(ProfileActivity.this,\n\t\t\t\t\t\tConstants.REQUEST_CODE_PROFILE_IMAGE_CROP, imageUri);\n imageUriUpload = imageUri;\n\t\t\t} else if (requestCode == Constants.REQUEST_CODE_PROFILE_IMAGE_CROP) {\n\n\t\t\t\tBundle extras = data.getExtras();\n\t\t\t\tBitmap imgBmp = extras.getParcelable(\"data\");\n\t\t\t\tmProfileImg.setImageBitmap(imgBmp);\n\t\t\t\tmProfileImg.setTag(imgBmp);\n\t\t\t\tisImageChanged = true;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "private void previewCapturedImage(){\n \ttry{\n \t\timgPreview.setVisibility(View.VISIBLE);\n \t\t\n \t\t//Bitmap Factory\n \t\tBitmapFactory.Options options = new BitmapFactory.Options();\n \t\t\n \t\t//Downsizing image as it throws OutOfMemory Exception for large images\n \t\toptions.inSampleSize = 4;\n \t\t\n \t\tfinal Bitmap bitmap = BitmapFactory.decodeFile(fileUri.getPath(), options);\n \t\t\n \t\timgPreview.setImageBitmap(bitmap);\n \t}catch(NullPointerException e){\n \t\te.printStackTrace();\n \t}catch(OutOfMemoryError e){\n \t\te.printStackTrace();\n \t}\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (resultCode == RESULT_OK) {\n if (requestCode == CommenString.TAKE_PHOTO) {\n cameraUtil.photoZoomFromTake(CropperImageScale.square);\n } else if (requestCode == CommenString.LOCAL_PHOTO) {\n List<String> selectedImage = data.getStringArrayListExtra(\"paths\");\n cameraUtil.photoZoomFromMapStorage(selectedImage.get(0),\n CropperImageScale.square);\n } else if (requestCode == CommenString.PHOTO_RESULT) {\n Bundle extras = data.getExtras();\n if (extras != null) {\n headBitmap = extras.getParcelable(\"data\");\n image_up.setImageBitmap(headBitmap);\n }\n } else {\n }\n }\n }", "public interface Listener {\n void onCropImage(Bitmap original, Bitmap croppedBitmap);\n }", "public static Intent getCropImageIntent(Uri photoUri) {\n Intent intent = new Intent(\"com.android.camera.action.CROP\");\n intent.setDataAndType(photoUri, \"image/*\");\n intent.putExtra(\"crop\", \"true\");\n intent.putExtra(\"aspectX\", 1);\n intent.putExtra(\"aspectY\", 1);\n intent.putExtra(\"outputX\", ICON_SIZE);\n intent.putExtra(\"outputY\", ICON_SIZE);\n intent.putExtra(\"return-data\", true);\n return intent;\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n try {\n if (requestCode == PHOTO_REQUEST) {\n if (resultCode == RESULT_OK) {\n ArrayList<TImage> images = (ArrayList<TImage>) data.getSerializableExtra(\"images\");\n if (images != null && !images.isEmpty()) {\n String path = images.get(0).getOriginalPath();\n\n File file = new File(path);\n if (file != null && file.exists()) {\n this.img_head.setImageURI(Uri.parse(path));\n }\n uploadImage(file);\n }\n }\n } else if (requestCode == PHOTO_REQUEST_GALLERY) {\n if (data != null) {\n // 得到图片的全路径\n Uri uri = data.getData();\n crop(uri);\n }\n\n } else if (requestCode == PHOTO_REQUEST_CAMERA) {\n if (CommFunAndroid.hasSdcard()) {\n tempFile = new File(CommFunAndroid.getDiskCachePath(), PHOTO_FILE_NAME);\n crop(Uri.fromFile(tempFile));\n } else {\n showMsg(\"未找到存储卡,无法存储照片!\");\n }\n\n } else if (requestCode == PHOTO_REQUEST_CUT) {\n try {\n //将Uri图片转换为Bitmap\n InputStream inputStream = getContentResolver().openInputStream(uritempFile);\n\n\n bitmap = BitmapFactory.decodeStream(inputStream);\n\n\n// bitmap = data.getParcelableExtra(\"data\");\n this.img_head.setImageBitmap(bitmap);\n //showMsg(uritempFile.getPath());\n tempSmallFile = new File(uritempFile.getPath());\n uploadImage(tempSmallFile);//上传头像\n //boolean delete = tempFile.delete();\n //Log.i(\"register\", \"register tempFile delete = \" + delete);\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n super.onActivityResult(requestCode, resultCode, data);\n }", "private void previewCapturedImage() {\n try {\n imageProfile.setVisibility(View.VISIBLE);\n Log.d(\"preview\", currentPhotoPath);\n final Bitmap bitmap = CameraUtils.scaleDownAndRotatePic(currentPhotoPath);\n imageProfile.setImageBitmap(bitmap);\n } catch (NullPointerException e) {\n e.printStackTrace();\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n switch (requestCode) {\n case PICK_FROM_GALLERY_REQUEST_CODE:\n if (resultCode == RESULT_OK) {\n Uri targetUri = data.getData();\n String path = ImageFilePath.getPath(this, data.getData());\n Bitmap bitmap;\n try {\n bitmap = MediaStore.Images.Media.getBitmap(getContentResolver(), targetUri);\n Bitmap finalBitmap = BitmapMods.modifyOrientation(bitmap, path);\n mImages.add(BitmapMods.getResizedBitmap(finalBitmap, 400));\n initializeRecyclerView();\n } catch (Exception e) {\n onPhotoError();\n e.printStackTrace();\n }\n }\n break;\n\n case PICK_FROM_CAMERA_REQUEST_CODE:\n if (resultCode == RESULT_OK) {\n try {\n @SuppressWarnings(\"ConstantConditions\") Bitmap photo = (Bitmap) data.getExtras().get(\"data\");\n mImages.add(photo);\n initializeRecyclerView();\n } catch (Exception e) {\n onPhotoError();\n e.printStackTrace();\n }\n }\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n String[] galleryPermissions = {Manifest.permission.READ_EXTERNAL_STORAGE, Manifest.permission.WRITE_EXTERNAL_STORAGE};\n if (EasyPermissions.hasPermissions(this, galleryPermissions)) {\n if (requestCode == RESULT_LOAD_IMAGE && resultCode == RESULT_OK && null != data) {\n Uri selectedImage = data.getData();\n String[] filePathColumn = {MediaStore.Images.Media.DATA};\n if (selectedImage != null) {\n Cursor cursor = getContentResolver().query(selectedImage,\n filePathColumn, null, null, null);\n cursor.moveToFirst();\n\n int columnIndex = cursor.getColumnIndex(filePathColumn[0]);\n String picturePath = cursor.getString(columnIndex);\n cursor.close();\n\n ImageView imgView = (ImageView) findViewById(R.id.imgView);\n Bitmap pic = BitmapFactory.decodeFile(picturePath);\n imgView.setImageBitmap(pic);\n bitmapList = cutImage(pic);\n updateTileButtons();\n displayToast(\"Upload picture successfully!\");\n }\n }\n } else {\n EasyPermissions.requestPermissions(this, \"Access for storage\",\n 101, galleryPermissions);\n }\n }", "private void onSaveClicked() {\n if (mCropView == null) {\n return;\n }\n\n if (mSaving) return;\n mSaving = true;\n\n Bitmap croppedImage;\n\n // If the output is required to a specific size, create an new image\n // with the cropped image in the center and the extra space filled.\n if (outputX != 0 && outputY != 0 && !scale) {\n // Don't scale the image but instead fill it so it's the\n // required dimension\n croppedImage = Bitmap.createBitmap(outputX, outputY, Bitmap.Config.RGB_565);\n Canvas canvas = new Canvas(croppedImage);\n\n Rect srcRect = mCropView.getCropRect();\n Rect dstRect = new Rect(0, 0, outputX, outputY);\n\n int dx = (srcRect.width() - dstRect.width()) / 2;\n int dy = (srcRect.height() - dstRect.height()) / 2;\n\n // If the srcRect is too big, use the center part of it.\n srcRect.inset(Math.max(0, dx), Math.max(0, dy));\n\n // If the dstRect is too big, use the center part of it.\n dstRect.inset(Math.max(0, -dx), Math.max(0, -dy));\n\n // Draw the cropped bitmap in the center\n canvas.drawBitmap(mBitmap, srcRect, dstRect, null);\n\n // Release bitmap memory as soon as possible\n mImageView.clear();\n mBitmap.recycle();\n } else {\n Rect r = mCropView.getCropRect();\n\n int width = r.width();\n int height = r.height();\n\n // If we are circle cropping, we want alpha channel, which is the\n // third param here.\n croppedImage = Bitmap.createBitmap(width, height,\n circleCrop ? Bitmap.Config.ARGB_8888 : Bitmap.Config.RGB_565);\n\n Canvas canvas = new Canvas(croppedImage);\n\n if (circleCrop) {\n final int color = 0xffff0000;\n final Paint paint = new Paint();\n final Rect rect = new Rect(0, 0, croppedImage.getWidth(), croppedImage.getHeight());\n final RectF rectF = new RectF(rect);\n\n paint.setAntiAlias(true);\n paint.setDither(true);\n paint.setFilterBitmap(true);\n canvas.drawARGB(0, 0, 0, 0);\n paint.setColor(color);\n canvas.drawOval(rectF, paint);\n\n paint.setColor(Color.BLUE);\n paint.setStyle(Paint.Style.STROKE);\n paint.setStrokeWidth((float) 4);\n paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_IN));\n canvas.drawBitmap(mBitmap, r, rect, paint);\n }\n else {\n Rect dstRect = new Rect(0, 0, width, height);\n canvas.drawBitmap(mBitmap, r, dstRect, null);\n }\n\n // Release bitmap memory as soon as possible\n mImageView.clear();\n mBitmap.recycle();\n\n // If the required dimension is specified, scale the image.\n if (outputX != 0 && outputY != 0 && scale) {\n croppedImage = BitmapUtils.transform(new Matrix(), croppedImage,\n outputX, outputY, scaleUp, BitmapUtils.RECYCLE_INPUT);\n }\n }\n\n mImageView.setImageBitmapResetBase(croppedImage, true);\n mImageView.center(true, true);\n mImageView.getHighlightViews().clear();\n\n // save it to the specified URI.\n final Bitmap b = croppedImage;\n new AsyncTask<Void, Integer, IImage>() {\n ProgressDialog pd;\n\n @Override\n protected void onPreExecute() {\n pd = ProgressDialog.show(CropPhotoActivity.this, null,\n getResources().getString(R.string.saving_image));\n }\n\n @Override\n protected IImage doInBackground(Void[] params) {\n return saveOutput(b);\n }\n\n @Override\n protected void onPostExecute(IImage image) {\n pd.dismiss();\n mImageView.clear();\n b.recycle();\n\n if (image != null) {\n ArrayList<IImage> images = new ArrayList<>();\n images.add(image);\n\n Intent data = new Intent();\n data.putParcelableArrayListExtra(\"data\", images);\n setResult(Activity.RESULT_OK, data);\n finish();\n }\n }\n }.execute();\n }", "private void onSaveClicked() {\n if (mCrop == null || mIsSaving) {\n return;\n }\n mIsSaving = true;\n Bitmap croppedImage = null;\n Rect r = mCrop.getCropRect();\n int width = r.width();\n int height = r.height();\n\n int outWidth = width, outHeight = height;\n if (mMaxX > 0 && mMaxY > 0 && (width > mMaxX || height > mMaxY)) {\n float ratio = (float) width / (float) height;\n if ((float) mMaxX / (float) mMaxY > ratio) {\n outHeight = mMaxY;\n outWidth = (int) ((float) mMaxY * ratio + .5f);\n } else {\n outWidth = mMaxX;\n outHeight = (int) ((float) mMaxX / ratio + .5f);\n }\n }\n if (IN_MEMORY_CROP && mRotateBitmap != null) {\n croppedImage = inMemoryCrop( mRotateBitmap, croppedImage, r,\n width * sampleSize,\n height * sampleSize,\n outWidth * sampleSize,\n outHeight * sampleSize );\n if (croppedImage != null) {\n mImageView.setImageBitmapResetBase( croppedImage, true );\n mImageView.center( true, true );\n mImageView.mHighlightViews.clear();\n }\n } else {\n try {\n croppedImage = decodeRegionCrop( croppedImage, r );\n } catch (IllegalArgumentException e) {\n setResultException( e );\n finish();\n return;\n }\n\n if (croppedImage != null) {\n mImageView.setImageRotateBitmapResetBase( new RotateBitmap( croppedImage, mExifRotation ), true );\n mImageView.center( true, true );\n mImageView.mHighlightViews.clear();\n }\n }\n if(croppedImage.getWidth() > mMaxX || croppedImage.getHeight() > mMaxY) {\n croppedImage = getResizedBitmap(croppedImage, mMaxX, mMaxY);\n }\n\n saveImage(croppedImage);\n }", "public void savePicture() {\n\t\tLog.d(TAG, \"savePicture\");\n\t\t\n\t\tFile cropFile = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES).getPath() + \"/Lente/crop.jpg\");\n\t\tmCropView.setDrawingCacheEnabled(true);\n\t\tBitmap bm = Bitmap.createBitmap(mCropView.getDrawingCache());\n\t\tmCropView.setDrawingCacheEnabled(false);\n\t\t\n\t\ttry {\n\t\t FileOutputStream outputStream = new FileOutputStream(cropFile);\n\t\t Log.d(TAG, \"Compressing and saving...\");\n\t\t bm.compress(Bitmap.CompressFormat.JPEG, 100, outputStream);\n\t\t outputStream.flush();\n\t\t outputStream.close();\n\t\t \n\t\t MediaScannerConnection.scanFile(getBaseContext(),\n\t new String[] { cropFile.toString() }, null,\n\t new MediaScannerConnection.OnScanCompletedListener() {\n\t public void onScanCompleted(String path, Uri uri) {\n\t Log.i(\"ExternalStorage\", \"Scanned \" + path + \":\");\n\t Log.i(\"ExternalStorage\", \"-> uri=\" + uri);\n\t //passUri(uri); //Pass the URI once obtained and move onto OCRopus\n\t }\n\t\t\t});\n\t }\n\t\t\n\t\tcatch (IOException e) {\n\t\t\tToast.makeText(ImageTextSelect.this, \"Failed to save selected image area.\", 2000).show();\n\t\t\tLog.e(TAG, \"IO Exception\");\n\t\t}\n\t}", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\n\t\t/*if (requestCode == REQUEST_CODE_TAKE_FROM_CAMERA && resultCode == RESULT_OK) {\n\t\t\tBundle extras = data.getExtras();\n\t\t\tBitmap imageBitmap = (Bitmap) extras.get(\"data\");\n\t\t\tif(imageBitmap!=null){\n\t\t\t\tBitmap scaledImageBitmap = getScaledImage(imageBitmap);\n\t\t\t\tprofilePic.setImageBitmap( scaledImageBitmap );\n\t\t\t}\n\n\t\t\tfinish();\n\t\t}*/\n\t}", "@Override\n protected void onImageLaidOut() {\n super.onImageLaidOut();\n final Drawable drawable = getDrawable();\n if (drawable == null) {\n return;\n }\n\n float drawableWidth = drawable.getIntrinsicWidth();\n float drawableHeight = drawable.getIntrinsicHeight();\n\n if (mTargetAspectRatio == SOURCE_IMAGE_ASPECT_RATIO) {\n mTargetAspectRatio = drawableWidth / drawableHeight;\n }\n\n int height = (int) (mThisWidth / mTargetAspectRatio);\n if (height > mThisHeight) {\n int width = (int) (mThisHeight * mTargetAspectRatio);\n int halfDiff = (mThisWidth - width) / 2;\n mCropRect.set(halfDiff, 0, width + halfDiff, mThisHeight);\n } else {\n int halfDiff = (mThisHeight - height) / 2;\n mCropRect.set(0, halfDiff, mThisWidth, height + halfDiff);\n }\n\n calculateImageScaleBounds(drawableWidth, drawableHeight);\n setupInitialImagePosition(drawableWidth, drawableHeight);\n\n if (mCropBoundsChangeListener != null) {\n mCropBoundsChangeListener.onCropAspectRatioChanged(mTargetAspectRatio);\n }\n if (mTransformImageListener != null) {\n// mTransformImageListener.onScale(getCurrentScale());\n// mTransformImageListener.onRotate(getCurrentAngle());\n mTransformImageListener.onBrightness(getCurrentBrightness());\n// mTransformImageListener.onContrast(getCurrentContrast());\n }\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent intent) {\n\n\n //photo taken from cam\n if (requestCode == REQUEST_IMAGE_CAPTURE && resultCode == RESULT_OK) {\n if (_mImageUri != null) {\n showTakenPhoto();\n }\n }\n\n //photo chosen\n if (requestCode == REQUEST_IMAGE_PICK && resultCode == RESULT_OK) {\n _mImageUri = intent.getData();\n\n\n try {\n _bitmap = MediaStore.Images.Media.getBitmap(\n getContentResolver(), _mImageUri);\n ImageView imageView = (ImageView) findViewById(R.id.uploadedImage);\n\n\n assert _bitmap != null;\n String[] filePathColumn = {MediaStore.Images.Media.DATA};\n\n Cursor cursor = getContentResolver().query(\n _mImageUri, filePathColumn, null, null, null);\n cursor.moveToFirst();\n\n int columnIndex = cursor.getColumnIndex(filePathColumn[0]);\n String filePath = cursor.getString(columnIndex);\n cursor.close();\n rotateImage(filePath);\n imageView.setImageBitmap(scaleBitmap(_bitmap, 350));\n _uploadButton.setEnabled(true);\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n\n\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == ACTIVITY_START_CAMERA_APP && resultCode == RESULT_OK){\n /*//Todo: Mensaje para mostrar al usuario al capturar la fotografia\n// Toast.makeText(this,\"Picture taken successfully\",Toast.LENGTH_LONG).show();\n\n //Todo: Se crea el objeto Bundle con el nombre extras\n Bundle extras = data.getExtras();\n //Todo: Devuelve el bundle que contenga el intent\n Bitmap photoCaptureBitmap = (Bitmap) extras.get(\"data\");\n //Todo: Se asigna a mPhotoCapturedImageView el valor que contenga el Bitmap photoCaptureBitmap\n mPhotoCapturedImageView.setImageBitmap(photoCaptureBitmap);\n*/\n //Bitmap photoCaptureBitmap = BitmapFactory.decodeFile(mImageFileLocation);\n //mPhotoCapturedImageView.setImageBitmap(photoCaptureBitmap);\n rotateImage(setReduceImageSize());\n }\n }", "@TargetApi(Build.VERSION_CODES.KITKAT)\n @Override\n public void onFinishTakeKitkatPhoto(int requestCode, Uri uri\n , int takeFlags, ContentResolver contentResolver, Cursor imageCursor) {\n contentResolver.takePersistableUriPermission(uri, takeFlags);\n\n String selectedImagePath = null;\n if (imageCursor.moveToFirst()) {\n selectedImagePath = imageCursor.getString(imageCursor.getColumnIndex(MediaStore.Images.Media.DATA));\n }\n doCropImage(selectedImagePath);\n //doLoadImage(selectedImagePath);\n //profileDetailView.doCrop(selectedImagePath);\n }", "public void Croppedimage(CropImage.ActivityResult result, ImageView iv, EditText et )\n {\n Uri resultUri = null; // get image uri\n if (result != null) {\n resultUri = result.getUri();\n }\n\n\n //set image to image view\n iv.setImageURI(resultUri);\n\n\n //get drawable bitmap for text recognition\n BitmapDrawable bitmapDrawable = (BitmapDrawable) iv.getDrawable();\n\n Bitmap bitmap = bitmapDrawable.getBitmap();\n\n TextRecognizer recognizer = new TextRecognizer.Builder(getApplicationContext()).build();\n\n if(!recognizer.isOperational())\n {\n Toast.makeText(this, \"Error No Text To Recognize\", Toast.LENGTH_LONG).show();\n }\n else\n {\n Frame frame = new Frame.Builder().setBitmap(bitmap).build();\n SparseArray<TextBlock> items = recognizer.detect(frame);\n StringBuilder ab = new StringBuilder();\n\n //get text from ab until there is no text\n for(int i = 0 ; i < items.size(); i++)\n {\n TextBlock myItem = items.valueAt(i);\n ab.append(myItem.getValue());\n\n }\n\n //set text to edit text\n et.setText(ab.toString());\n }\n\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == CAMERA_CAPTURE_IMAGE_REQUEST_CODE) {\n if (resultCode == RESULT_OK) {\n // successfully captured the image\n // display it in image view\n Utils.previewCapturedImage(this, realm, Integer.valueOf(station.getId()));\n //Toast.makeText(getApplicationContext(),intent.getStringExtra(\"id_station\"), Toast.LENGTH_SHORT).show();\n } else if (resultCode == RESULT_CANCELED) {\n // user cancelled Image capture\n Toast.makeText(getApplicationContext(),\n \"User cancelled image capture\", Toast.LENGTH_SHORT)\n .show();\n } else {\n // failed to capture image\n Toast.makeText(getApplicationContext(),\n \"Sorry! Failed to capture image\", Toast.LENGTH_SHORT)\n .show();\n }\n }\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t \t\n\t \tclass ToSaveCropped{\n\t \t\t\n\t \t\tfloat x=finalx;\n\t \t\tfloat y=finaly;\n\n\t\t\t\t\tprivate byte[] data = MainActivity.getbitmapData();\n\t\t\t Bitmap mImage = BitmapFactory.decodeByteArray(data, 0, data.length);\n\t\t\t \n\t\t\t Drawable myMask = getResources().getDrawable(R.drawable.mask);\n\t\t\t Bitmap mMask = ((BitmapDrawable) myMask).getBitmap();\n\t\t\t Bitmap mmImage = dv.bitmapRotate(mImage);\n\t\t\t \n\t\t\t Bitmap mmmImage = dv.getResizedBitmap(mmImage,height,width);\n\t\t\t \n\t\t\t Bitmap mmMask = dv.getResizedBitmap(mMask,wMask,wMask);\n\t\t\t\t\t\n\t\t\t\t\tpublic void onDraw(){\n\t\t\t\t\t\tCanvas canvas; \t\t\t\n\t \t\t\tint w = mmMask.getWidth(), h = mmMask.getHeight();\n\t \t\t\tBitmap.Config conf = Bitmap.Config.ARGB_8888; // see other conf types\n\t \t\t\tcroppedBitmap = Bitmap.createBitmap(w, h, conf); // this creates a MUTABLE bitmap\n\t \t\t\tcanvas = new Canvas(croppedBitmap);\n\t \t\t\t\n\t \t\t\tPaint maskPaint = new Paint();\n\t \t\t\tmaskPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DST_IN));\n\n\t Paint imagePaint = new Paint();\n\t imagePaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DST_OVER));\n\t \t\t\t//Log.i(\"\"+x,\"\"+y);\n\t \t//canvas.drawBitmap(mMask,x,y,maskPaint);\n\t \tcanvas.drawBitmap(mmmImage,-x,-y,imagePaint);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t \t}\t \t\n\t \tToSaveCropped tsc = new ToSaveCropped();\n\t \ttsc.onDraw();\n\t \tByteArrayOutputStream stream = new ByteArrayOutputStream();\n\t \tcroppedBitmap.compress(Bitmap.CompressFormat.PNG, 100, stream);\n\t \tbitData = stream.toByteArray();\n\t\t\t\t\n\t\t\t\tSaveFile sv = new SaveFile();\n\t\t\t\tsv.save();\n\t\t\t\t\n\t\t\t\tMediaStore.Images.Media.insertImage(getContentResolver(), croppedBitmap, \"\", \"\");\n\t\t\t\t\n\t\t\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\n super.onActivityResult(requestCode, resultCode, data);\n\n //this checks the checked imaged,so there should be no null image...\n if(requestCode== GalleryPic && resultCode == RESULT_OK && data != null) {\n Uri ImageUri = data.getData(); //here we getting the image.....in ImageUri\n\n //When the user Select the image he will be redirected to the Image Cropping Activity...\n CropImage.activity(ImageUri)\n .setAspectRatio(1,1)\n .setCropShape(CropImageView.CropShape.OVAL)\n .start(this);\n }\n //THIS CHECKS WHETHER WE SELECT THE CROP OPTION...\n if(requestCode==CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE)\n {\n //HERE WE GETTING CROPPED IMAGE...\n CropImage.ActivityResult result= CropImage.getActivityResult(data);\n\n if(resultCode == RESULT_OK) //IF CROPPING SUCCESSFULL...\n {\n loadingBar.setTitle(\"Saving Information\");\n loadingBar.setMessage(\"Please wait until we update your Profile Image\");\n loadingBar.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n loadingBar.show();\n loadingBar.setCanceledOnTouchOutside(true);\n\n //THIS OBJECTS CONTAINS THE CROPPED IMAGE....\n Uri resultUri =result.getUri();\n\n //WE STORING THE STORAGE REFERENCE AS A USERID.JPG.....\n StorageReference filePath = UserProfileImageRef.child(CurrentUserId + \".jpg\");\n\n //HERE STORING THE FILE IN filePath OBJECT..\n filePath.putFile(resultUri).addOnCompleteListener(new OnCompleteListener<UploadTask.TaskSnapshot>() {\n @Override\n public void onComplete(@NonNull Task<UploadTask.TaskSnapshot> task) {\n if(task.isSuccessful())\n {\n Toast.makeText(SetupActivity.this,\"Profile Image Stored to Database Successfully\",Toast.LENGTH_SHORT).show();\n\n //FINALLY STORING THE IMAGE IN DATABASE IN FIREBASE STORAGE...\n final String downloadUrl = task.getResult().getDownloadUrl().toString();\n UsersRef.child(\"profileImage\").setValue(downloadUrl).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if(task.isSuccessful())\n {\n //REDIRECTING TO SETUP ACTIVITY FROM CROPPING ACTIVITY....\n Intent selfIntent = new Intent(SetupActivity.this,SetupActivity.class);\n startActivity(selfIntent);\n Toast.makeText(SetupActivity.this, \"Profile Image is Stored Successfully\", Toast.LENGTH_SHORT).show();\n loadingBar.dismiss();\n }\n else{\n String message =task.getException().getMessage();\n Toast.makeText(SetupActivity.this, \"Error Occurred :\" +message, Toast.LENGTH_SHORT).show();\n loadingBar.dismiss();\n }\n }\n });\n }\n }\n });\n\n }\n\n else{\n //IF THE IMAGE IS UNABLE TO CROP...\n Toast.makeText(SetupActivity.this, \"Error Occurred : Image can't be Cropped,Try Again.\" , Toast.LENGTH_SHORT).show();\n loadingBar.dismiss();\n }\n\n }\n //else if(requestCode == CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE)\n }", "private void startCropImageActivity(Uri imageUri) {\n\n\n CropImage.ActivityBuilder a = CropImage.activity(imageUri);\n a.setFixAspectRatio(true);\n a.setAspectRatio(4, 3);\n a.setGuidelines(CropImageView.Guidelines.ON);\n a.setAllowCounterRotation(true);\n a.setAllowRotation(false);\n a.setMultiTouchEnabled(false);\n a.start(this, ActivityCrop.class);\n\n }", "private void previewCapturedImage(Bitmap bitmap, Bitmap bmp,int tipe) {\n try {\n\n if(tipe == CAMERA_KTP){\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG,50, baos);\n byte[] b = baos.toByteArray();\n encodedImageKtp = Base64.encodeToString(b,Base64.DEFAULT);\n\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\n bmp.compress(Bitmap.CompressFormat.JPEG, bitmap_size, bytes);\n decoded = BitmapFactory.decodeStream(new ByteArrayInputStream(bytes.toByteArray()));\n\n //byte[] byteArray = bytes.toByteArray();\n //encodedImageKtp = Base64.encodeToString(byteArray, Base64.DEFAULT);\n fixencodedImageKtp = \"data:image/jpeg;base64,\" + encodedImageKtp.replace(\" \", \"\").replace(\"\\n\", \"\");\n\n viewKtp.setVisibility(View.VISIBLE);\n viewKtp.setImageBitmap(decoded);\n }else if(tipe == CAMERA_SATU){\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG,50, baos);\n byte[] b = baos.toByteArray();\n encodedImageF1 = Base64.encodeToString(b,Base64.DEFAULT);\n\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\n bmp.compress(Bitmap.CompressFormat.JPEG, bitmap_size, bytes);\n decoded = BitmapFactory.decodeStream(new ByteArrayInputStream(bytes.toByteArray()));\n\n //byte[] byteArray = bytes.toByteArray();\n //encodedImageF1 = Base64.encodeToString(byteArray, Base64.DEFAULT);\n fixencodedImageF1 = \"data:image/jpeg;base64,\" + encodedImageF1.replace(\" \", \"\").replace(\"\\n\", \"\");\n\n viewFoto1.setVisibility(View.VISIBLE);\n viewFoto1.setImageBitmap(decoded);\n }else if(tipe == CAMERA_DUA){\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG,50, baos);\n byte[] b = baos.toByteArray();\n encodedImageF2 = Base64.encodeToString(b,Base64.DEFAULT);\n\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\n bmp.compress(Bitmap.CompressFormat.JPEG, bitmap_size, bytes);\n decoded = BitmapFactory.decodeStream(new ByteArrayInputStream(bytes.toByteArray()));\n\n //byte[] byteArray = bytes.toByteArray();\n //encodedImageF2 = Base64.encodeToString(byteArray, Base64.DEFAULT);\n fixencodedImageF2 = \"data:image/jpeg;base64,\" + encodedImageF2.replace(\" \", \"\").replace(\"\\n\", \"\");\n\n viewFoto2.setVisibility(View.VISIBLE);\n viewFoto2.setImageBitmap(decoded);\n }else if(tipe == CAMERA_TIGA){\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG,50, baos);\n byte[] b = baos.toByteArray();\n encodedImageF3 = Base64.encodeToString(b,Base64.DEFAULT);\n\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\n bmp.compress(Bitmap.CompressFormat.JPEG, bitmap_size, bytes);\n decoded = BitmapFactory.decodeStream(new ByteArrayInputStream(bytes.toByteArray()));\n\n //byte[] byteArray = bytes.toByteArray();\n //encodedImageF3 = Base64.encodeToString(byteArray, Base64.DEFAULT);\n fixencodedImageF3 = \"data:image/jpeg;base64,\" + encodedImageF3.replace(\" \", \"\").replace(\"\\n\", \"\");\n\n viewFoto3.setVisibility(View.VISIBLE);\n viewFoto3.setImageBitmap(decoded);\n }else if(tipe == CAMERA_EMPAT){\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG,50, baos);\n byte[] b = baos.toByteArray();\n encodedImageF4 = Base64.encodeToString(b,Base64.DEFAULT);\n\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\n bmp.compress(Bitmap.CompressFormat.JPEG, bitmap_size, bytes);\n decoded = BitmapFactory.decodeStream(new ByteArrayInputStream(bytes.toByteArray()));\n\n //byte[] byteArray = bytes.toByteArray();\n //encodedImageF4 = Base64.encodeToString(byteArray, Base64.DEFAULT);\n fixencodedImageF4 = \"data:image/jpeg;base64,\" + encodedImageF4.replace(\" \", \"\").replace(\"\\n\", \"\");\n\n viewFoto4.setVisibility(View.VISIBLE);\n viewFoto4.setImageBitmap(decoded);\n }else if(tipe == CAMERA_LIMA){\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG,50, baos);\n byte[] b = baos.toByteArray();\n encodedImageF5 = Base64.encodeToString(b,Base64.DEFAULT);\n\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\n bmp.compress(Bitmap.CompressFormat.JPEG, bitmap_size, bytes);\n decoded = BitmapFactory.decodeStream(new ByteArrayInputStream(bytes.toByteArray()));\n\n //byte[] byteArray = bytes.toByteArray();\n //encodedImageF5 = Base64.encodeToString(byteArray, Base64.DEFAULT);\n fixencodedImageF5 = \"data:image/jpeg;base64,\" + encodedImageF5.replace(\" \", \"\").replace(\"\\n\", \"\");\n\n viewFoto5.setVisibility(View.VISIBLE);\n viewFoto5.setImageBitmap(decoded);\n }\n\n } catch (NullPointerException e) {\n e.printStackTrace();\n }\n }", "private void pickFromCamera() {\n Intent startCamera = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n startCamera.putExtra(MediaStore.EXTRA_OUTPUT, uriImage);\n startActivityForResult(startCamera, IMAGE_PICK_CAMERA_CODE);\n\n }", "@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent returnedIntent) {\r\n super.onActivityResult(requestCode, resultCode, returnedIntent);\r\n try {\r\n // When an Image is picked\r\n if (resultCode == RESULT_OK && null != returnedIntent) {\r\n // Get the Image from data\r\n Uri imageLocation = returnedIntent.getData();\r\n InputStream imageStream = getContentResolver().openInputStream(imageLocation);\r\n Bitmap selectedImage = BitmapFactory.decodeStream(imageStream);\r\n selectedImage = getResizedBitmap(selectedImage,1080/4,1920/4);\r\n currentUserEdit.setImageBitmap(selectedImage);\r\n currentSaveCharacter.setImage(selectedImage);\r\n saveCharacters(context);\r\n }\r\n } catch (Exception e) {\r\n Toast.makeText(this, \"ImageGet ERROR\", Toast.LENGTH_LONG)\r\n .show();\r\n Log.d(\"ImageGet ERROR\", e.toString());\r\n }\r\n\r\n }", "private void captureImage() {\n camera.takePicture(null, null, jpegCallback);\r\n }", "public native MagickImage chopImage(Rectangle chopInfo)\n\t\t\tthrows MagickException;", "private void getSetCropImage(Uri fileUri) {\n CropImage.activity(fileUri)\n .setGuidelines(CropImageView.Guidelines.ON)\n .setMinCropWindowSize(100, 100)\n .setAspectRatio(1, 1)\n .setFixAspectRatio(true)\n .setCropShape(CropImageView.CropShape.RECTANGLE)\n .start((Activity) mContext);\n }", "private void processAndSetImage() {\n\n // Resample the saved image to fit the ImageView\n mResultsBitmap = resamplePic(this, mTempPhotoPath);\n\n// tv.setText(base64conversion(photoFile));\n//\n// Intent intent = new Intent(Intent.ACTION_SEND);\n// intent.setType(\"text/plain\");\n// intent.putExtra(Intent.EXTRA_TEXT, base64conversion(photoFile));\n// startActivity(intent);\n\n /**\n * UPLOAD IMAGE USING RETROFIT\n */\n\n retroFitHelper(base64conversion(photoFile));\n\n // Set the new bitmap to the ImageView\n imageView.setImageBitmap(mResultsBitmap);\n }", "private void cropCurrRect() {\n\t\tRectangle cropRec = currRect.getBounds();\n\t\tBufferedImage img = currImage.getSubimage(cropRec.x, cropRec.y, cropRec.width, cropRec.height);\n\t\tAffineTransform rotAT = AffineTransform.getRotateInstance(-currRect.getTheta(), cropRec.width, cropRec.height);\n\n\t\tBufferedImageOp bio;\n\t\tbio = new AffineTransformOp(rotAT, AffineTransformOp.TYPE_BICUBIC);\n\t\tBufferedImage rotImg = bio.filter(img, null);\n\t\tColorSpace cs = ColorSpace.getInstance(ColorSpace.CS_GRAY);\n\t\tColorConvertOp op = new ColorConvertOp(cs, null);\n\t\trotImg = op.filter(rotImg, null);\n\t\t\n\t\tocrExtraction(rotImg);\n\t}", "public RoeImage takePicture() \r\n {\r\n // return variable\r\n RoeImage result = new RoeImage();\r\n \r\n // take picture \r\n this.cam.read(this.frame);\r\n \r\n // update timestamp for image capturing\r\n this.timestamp = System.currentTimeMillis();\r\n \r\n // add picture to result\r\n result.SetImage(this.frame);\r\n \r\n // add timestamp of captured image\r\n result.setTimeStamp(this.timestamp);\r\n\r\n // the image captured with properties\r\n return result;\r\n }", "public File cropIntentDataUri(Uri imageUri, double yxRatio){\n File file = getFileFromItentUri(imageUri);\n if (!file.exists() || file.isDirectory()){\n Log.d(LOG_TAG,\"getFilesFromUris(activity, new Uri[]{imageUri}, false) is null or isDirectory , imageUri=\"+ imageUri.toString());\n return null;\n }\n return cropContentFile(file, yxRatio);\n }", "private Rect checkRectBounds(Rect cropRect, boolean resize) {\n Rect image = getImageRect();\n Rect newCropRect = cropRect;\n //check if inside image\n int width = newCropRect.width();\n int height = newCropRect.height();\n\n if (!image.contains(newCropRect)) {\n if (aspectRatio >= 0.0) {\n if (resize) {\n // new cropRect to big => try and fix size\n // check corners\n if (touchedCorner == TOP_LEFT) {\n if (image.left > newCropRect.left) {\n int delta = (int) ((image.left - newCropRect.left) / aspectRatio);\n newCropRect = new Rect(image.left, newCropRect.top + delta,\n newCropRect.right, newCropRect.bottom);\n }\n if (image.top > newCropRect.top) {\n int delta = (int) ((image.top - newCropRect.top) * aspectRatio);\n newCropRect = new Rect(newCropRect.left + delta, image.top,\n newCropRect.right, newCropRect.bottom);\n }\n } else if (touchedCorner == TOP_RIGHT) {\n if (image.right < newCropRect.right) {\n int delta = (int) ((newCropRect.right - image.right) / aspectRatio);\n newCropRect = new Rect(newCropRect.left, newCropRect.top + delta,\n image.right, newCropRect.bottom);\n }\n if (image.top > newCropRect.top) {\n int delta = (int) ((image.top - newCropRect.top) * aspectRatio);\n newCropRect = new Rect(newCropRect.left, image.top,\n newCropRect.right - delta, newCropRect.bottom);\n }\n } else if (touchedCorner == BOTTOM_RIGHT) {\n if (image.right < newCropRect.right) {\n int delta = (int) ((newCropRect.right - image.right) / aspectRatio);\n newCropRect = new Rect(newCropRect.left, newCropRect.top,\n image.right, newCropRect.bottom - delta);\n }\n if (image.bottom < newCropRect.bottom) {\n int delta = (int) ((newCropRect.bottom - image.bottom) * aspectRatio);\n newCropRect = new Rect(newCropRect.left, newCropRect.top,\n newCropRect.right - delta, image.bottom);\n }\n } else if (touchedCorner == BOTTOM_LEFT) {\n if (image.left > newCropRect.left) {\n int delta = (int) ((image.left - newCropRect.left) / aspectRatio);\n newCropRect = new Rect(image.left, newCropRect.top,\n newCropRect.right, newCropRect.bottom - delta);\n }\n if (image.bottom < newCropRect.bottom) {\n int delta = (int) ((newCropRect.bottom - image.bottom) * aspectRatio);\n newCropRect = new Rect(newCropRect.left + delta, newCropRect.top,\n newCropRect.right, image.bottom);\n }\n }\n } else {\n // check edges\n // left edges\n if (image.left > newCropRect.left) {\n newCropRect = new Rect(image.left, newCropRect.top,\n image.left + width, newCropRect.bottom);\n }\n // top edge\n if (image.top > newCropRect.top) {\n newCropRect = new Rect(newCropRect.left, image.top,\n newCropRect.right, image.top + height);\n }\n // right edge\n if (image.right < newCropRect.right) {\n newCropRect = new Rect(image.right - width, newCropRect.top,\n image.right, newCropRect.bottom);\n }\n // bottom edge\n if (image.bottom < newCropRect.bottom) {\n newCropRect = new Rect(newCropRect.left, image.bottom - height,\n newCropRect.right, image.bottom);\n }\n }\n } else {\n // cropRect not inside => try to fix it\n if (image.left > newCropRect.left) {\n newCropRect = new Rect(image.left, newCropRect.top,\n resize ? newCropRect.right : image.left + width,\n newCropRect.bottom);\n }\n\n if (image.top > newCropRect.top) {\n newCropRect = new Rect(newCropRect.left, image.top, newCropRect.right,\n resize ? newCropRect.bottom : image.top + height);\n }\n\n if (image.right < newCropRect.right) {\n newCropRect = new Rect(resize ? newCropRect.left : image.right - width,\n newCropRect.top, image.right, newCropRect.bottom);\n }\n\n if (image.bottom < newCropRect.bottom) {\n newCropRect = new Rect(newCropRect.left,\n resize ? newCropRect.top : image.bottom - height,\n newCropRect.right, image.bottom);\n }\n }\n }\n\n Rect minRect = getMinCropRect();\n //check min size\n width = newCropRect.width();\n if (width < minRect.width()) {\n if (touchedCorner == TOP_LEFT) {\n newCropRect = new Rect(newCropRect.right - minRect.width(),\n newCropRect.top, newCropRect.right, newCropRect.bottom);\n } else if (touchedCorner == TOP_RIGHT) {\n newCropRect = new Rect(newCropRect.left, newCropRect.top,\n newCropRect.left + minRect.width(),\n newCropRect.bottom);\n } else if (touchedCorner == BOTTOM_RIGHT) {\n newCropRect = new Rect(newCropRect.left, newCropRect.top,\n newCropRect.left + minRect.width(),\n newCropRect.bottom);\n } else if (touchedCorner == BOTTOM_LEFT) {\n newCropRect = new Rect(newCropRect.right - minRect.width(),\n newCropRect.top, newCropRect.right, newCropRect.bottom);\n }\n }\n\n height = newCropRect.height();\n if (height < minRect.height()) {\n if (touchedCorner == TOP_LEFT) {\n newCropRect = new Rect(newCropRect.left,\n newCropRect.bottom - minRect.height(),\n newCropRect.right, newCropRect.bottom);\n } else if (touchedCorner == TOP_RIGHT) {\n newCropRect = new Rect(newCropRect.left,\n newCropRect.bottom - minRect.height(),\n newCropRect.right, newCropRect.bottom);\n } else if (touchedCorner == BOTTOM_RIGHT) {\n newCropRect = new Rect(newCropRect.left, newCropRect.top,\n newCropRect.right,\n newCropRect.top + minRect.height());\n } else if (touchedCorner == BOTTOM_LEFT) {\n newCropRect = new Rect(newCropRect.left,\n newCropRect.top, newCropRect.right,\n newCropRect.top + minRect.height());\n }\n }\n\n return newCropRect;\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == TAKE_IMAGE && resultCode == RESULT_OK) {\n Bundle extra = data.getExtras();\n bitmap = (Bitmap) extra.get(\"data\");\n saveImage(bitmap);\n imageView.setImageBitmap(bitmap);\n } else if (requestCode == SELECT_IMAGE && resultCode == RESULT_OK) {\n Uri targetUri = data.getData();\n Toast.makeText(getApplicationContext(), targetUri.toString(), Toast.LENGTH_LONG).show();\n Bitmap bitmap;\n try {\n\n bitmap = BitmapFactory.decodeStream(getContentResolver().openInputStream(targetUri));\n\n imageView.setImageBitmap(bitmap);\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n }", "public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n CropImage.ActivityResult result = CropImage.getActivityResult(data);\n if (resultCode == -1) {\n if (requestCode != 11) {\n String valueOf = String.valueOf(result.getUri());\n this.imageUri = valueOf;\n if (valueOf != null) {\n if (this.isattach.booleanValue()) {\n this.tv_attachfile.setText(this.imageUri);\n fileType = \"png\";\n Log.i(\"datafile\",result.toString() + \"\\n\" + result.getOriginalUri() + \"\\n\" + result.getUri());\n this.isattach = false;\n this.attach_file = this.imageUri;\n } else {\n this.eventphoto.setImageURI(Uri.parse(this.imageUri));\n this.upload_photo = this.imageUri;\n this.ismageEdited = true;\n }\n }\n } else if (requestCode == 11){\n this.tv_attachfilepdf.setText(data.getDataString());\n fileType = \"pdf\";\n\n String filePath = data.getData().getPath();\n String fileName = data.getData().getLastPathSegment();\n this.attach_file = data.getData().getPath();\n Log.i(\"file\", filePath + \"\\n\" + fileName + \"\\n\" + attach_file);\n\n /*uri = data.getData();\n this.attach_file = data.getData().toString();\n Log.i(\"uriii\", uri.toString());\n File file2 = new File(this.attach_file);\n Log.i(\"uriiName\", file2.getName());\n Log.i(\"uriiPath\", file2.getPath());\n Log.i(\"uriiParent\", file2.getParent());*/\n }\n }\n }", "public BufferedImage cropImageSquare( byte[] image ) throws IOException {\n InputStream in = new ByteArrayInputStream( image );\n BufferedImage originalImage = ImageIO.read( in );\n\n // Get image dimensions\n int height = originalImage.getHeight();\n int width = originalImage.getWidth();\n\n // The image is already a square\n if ( height == width ) {\n return originalImage;\n }\n\n // Compute the size of the square\n int squareSize = ( height > width ? width : height );\n\n // Coordinates of the image's middle\n int xc = width / 2;\n int yc = height / 2;\n\n // Crop\n BufferedImage croppedImage = originalImage.getSubimage(\n xc - ( squareSize / 2 ), // x coordinate of the upper-left\n // corner\n yc - ( squareSize / 2 ), // y coordinate of the upper-left\n // corner\n squareSize, // widht\n squareSize // height\n );\n return croppedImage;\n }", "public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n switch (requestCode) {\n case CAMERA_APP:\n if (resultCode == Activity.RESULT_OK) {\n //Accedemos al contenido de la imagen\n ContentResolver contRes = getContentResolver();\n contRes.notifyChange(this.pictureId, null);\n Bitmap picture;\n try {\n picture = android.provider.MediaStore.Images.Media\n .getBitmap(contRes, pictureId);\n //Reducimos la imagen\n int height = (int) (picture.getHeight() * 800 / picture.getWidth());\n Bitmap resized = Bitmap.createScaledBitmap(picture, 800, height, true);\n //Guardamos el mapa de bits\n FileOutputStream stream = new FileOutputStream(pictureId.toString().replace(\"file://\", \"\"));\n resized.compress(Bitmap.CompressFormat.JPEG, 100, stream);\n stream.flush();\n stream.close();\n //Lo asignamos al imageview\n ivProfileImage.setImageBitmap(resized);\n } catch (Exception e) {\n Log.i(\"Photo\", \"Something were wrong!\");\n }\n }\n }\n }", "public static BufferedImage autoCrop(BufferedImage source, float threshold) {\n\n int rgb;\n int backlo;\n int backhi;\n int width = source.getWidth();\n int height = source.getHeight();\n int startx = width;\n int starty = height;\n int destx = 0;\n int desty = 0;\n\n rgb = source.getRGB(source.getWidth() - 1, source.getHeight() - 1);\n backlo = ((rgb >> 16) & 255) + ((rgb >> 8) & 255) + ((rgb) & 255) / 3;\n backlo = (int) (backlo - (backlo * threshold));\n if (backlo < 0) {\n backlo = 0;\n }\n backhi = ((rgb >> 16) & 255) + ((rgb >> 8) & 255) + ((rgb) & 255) / 3;\n backhi = (int) (backhi + (backhi * threshold));\n\n for (int y = 0; y < height; y++) {\n for (int x = 0; x < width; x++) {\n rgb = source.getRGB(x, y);\n int sum = ((rgb >> 16) & 255) + ((rgb >> 8) & 255) + ((rgb) & 255) / 3;\n if (sum < backlo || sum > backhi) {\n if (y < starty) {\n starty = y;\n }\n if (x < startx) {\n startx = x;\n }\n if (y > desty) {\n desty = y;\n }\n if (x > destx) {\n destx = x;\n }\n }\n }\n }\n System.out.println(\"crop: [\"\n + startx + \", \" + starty + \", \"\n + destx + \", \" + desty + \"]\");\n\n BufferedImage result = new BufferedImage(\n destx - startx, desty - starty,\n source.getType());\n result.getGraphics().drawImage(\n Toolkit.getDefaultToolkit().createImage(\n new FilteredImageSource(source.getSource(),\n new CropImageFilter(startx, starty, destx, desty))),\n 0, 0, null);\n return result;\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n snackbar.dismiss();\n if(requestCode == REQUEST_CODE_GALLERY && resultCode == RESULT_OK && data !=null){\n Uri uri = data.getData();\n try{\n InputStream inputStream = getContentResolver().openInputStream(uri);\n Bitmap bitmap = BitmapFactory.decodeStream(inputStream);\n profilePic.setImageBitmap(bitmap);\n imageSelected = \"Yes\";\n Toast.makeText(getApplicationContext(),\"Image Selected !!\",Toast.LENGTH_LONG).show();\n\n }catch (FileNotFoundException e){\n e.printStackTrace();\n }\n }\n\n //when use device camera\n\n if (requestCode == REQUEST_CODE_CAMERA && resultCode == Activity.RESULT_OK) {\n Bitmap photo = (Bitmap) data.getExtras().get(\"data\");\n profilePic.setImageBitmap(photo);\n imageSelected = \"Yes\";\n Toast.makeText(getApplicationContext(),\"Image Selected !!\",Toast.LENGTH_LONG).show();\n\n }\n\n /**if(requestCode == REQUEST_CODE_CAMERA && resultCode == RESULT_OK && data !=null){\n Uri uri = data.getData();\n try{\n /**BitmapFactory.Options options = new BitmapFactory.Options();\n options.inSampleSize = 8;\n Bitmap bitmap = BitmapFactory.decodeFile(FileUri.getPath());\n profilePic.setImageBitmap(bitmap);\n\n imageSelected = \"Yes\";\n Toast.makeText(getApplicationContext(),\"Image Selected !!\",Toast.LENGTH_LONG).show();**/\n /** InputStream inputStream = getContentResolver().openInputStream(uri);\n Bitmap bitmap = BitmapFactory.decodeStream(inputStream);\n profilePic.setImageBitmap(bitmap);\n imageSelected = \"Yes\";\n Toast.makeText(getApplicationContext(),\"Image Selected !!\",Toast.LENGTH_LONG).show();\n }catch (Exception e){\n e.printStackTrace();\n }\n }**/\n super.onActivityResult(requestCode, resultCode, data);\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if(requestCode == TAKE_IMAGE && resultCode == RESULT_OK){\n Bundle extra = data.getExtras();\n bitmap = (Bitmap) extra.get(\"data\");\n imageView.setImageBitmap(bitmap);\n }\n else {\n if (requestCode == SELECT_IMAGE && resultCode == RESULT_OK) {\n Uri targetUri = data.getData();\n Toast.makeText(getApplicationContext(), targetUri.toString(), Toast.LENGTH_SHORT).show();\n //textTargetUri.setText(targetUri.toString());\n Bitmap bitmap;\n try {\n\n bitmap = BitmapFactory.decodeStream(getContentResolver().openInputStream(targetUri));\n imageView.setImageBitmap(bitmap);\n } catch (FileNotFoundException e) {\n\n e.printStackTrace();\n }\n /*String[] filePathColumn = {MediaStore.Images.Media.DATA};\n\n\t\t\tCursor cursor = getContentResolver().query(data.getData(), filePathColumn, null, null, null);\n\t\t\tcursor.moveToFirst();\n\n\t\t\tint columnIndex = cursor.getColumnIndex(filePathColumn[0]);\n\n\t\t\tString filePath = cursor.getString(columnIndex);\n\t\t\tcursor.close();\n\n\t\t\tBitmap yourSelectedImage = BitmapFactory.decodeFile(filePath);\n\t\t\tToast.makeText(getApplicationContext(), filePath, 1000).show();\n\t\t\timageView.setImageBitmap(yourSelectedImage);\n*/\n }\n }\n if(requestCode == 0 && resultCode == RESULT_OK){\n Bundle extra = data.getExtras();\n bitmap = (Bitmap) extra.get(\"data\");\n // imageView.setImageBitmap(bitmap);\n\n\n File root = Environment.getExternalStorageDirectory();\n File file = new File(root.getAbsolutePath()+\"/DCIM/Camera/img.jpg\");\n try\n {\n file.createNewFile();\n FileOutputStream ostream = new FileOutputStream(file);\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, ostream);\n ostream.close();\n }\n catch (Exception e)\n {\n e.printStackTrace();\n Toast.makeText(this,\"Failed to save image, try again\",Toast.LENGTH_LONG).show();\n }\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if(requestCode == REQUEST_IMAGE_CAPTURE && resultCode == RESULT_OK){\n Bundle extras = data.getExtras();\n imageBitmap = (Bitmap) extras.get(\"data\");\n imgFoto.setImageBitmap(imageBitmap);\n }\n }", "private void cropEffect(int x, int y, int width, int height) {\n // int que estigui dins la imatge\n EffectFactory factory = effectContext.getFactory();\n effect = factory.createEffect(EffectFactory.EFFECT_CROP);\n effect.setParameter(\"xorigin\", x);\n effect.setParameter(\"yorigin\", y);\n effect.setParameter(\"width\", width);\n effect.setParameter(\"height\", height);\n effect.apply(textures[0], photoWidth, photoHeight, textures[1]);\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode,\n Intent data) {\n if (requestCode == CAMERA_REQUEST_CODE && resultCode == RESULT_OK) {\n bitmap = (Bitmap) data.getExtras().get(\"data\");\n imageView.setImageBitmap(bitmap);\n callCloudVision(bitmap, feature);\n }\n }", "protected void setCertificateCameraImage(Intent intent, int resultCode) {\n\n mImagePicker = new ImagePicker();\n certificateBitmap = (Bitmap) intent.getExtras().get(\"data\");\n mCertificateImage = (ImageView) findViewById(R.id.certificateImage);\n\n //Uri mCapturedImageUri = intent.getData();\n\n try {\n String[] ids = mCameraManager.getCameraIdList();\n //Log.e(TAG, \"Ids of Camera \" + Arrays.toString(ids));\n\n for (String id : ids) {\n CameraCharacteristics props = mCameraManager.getCameraCharacteristics(id);\n assertNotNull(\"Can't get camera characteristics for camera \" + id, props);\n\n Integer lensFacing = props.get(CameraCharacteristics.LENS_FACING);\n assertNotNull(\"Can't get lens facing info\", lensFacing);\n\n //Camera device faces the opposite direction as the device's screen\n if (lensFacing == CameraCharacteristics.LENS_FACING_BACK) {\n assertTrue(\"System doesn't have back camera feature\",\n mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_AUTOFOCUS));\n try {\n //Bitmap bp = MediaStore.Images.Media.getBitmap(this.getContentResolver(), mCapturedImageUri);\n Bitmap bp = ImagePicker.getImageFromResult(this, resultCode, intent);\n assert bp != null;\n mCertificateImage.setImageBitmap(bp);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n //Camera device faces the same direction as the device's screen\n } else if (lensFacing == CameraCharacteristics.LENS_FACING_FRONT) {\n assertTrue(\"System doesn't have front camera feature\",\n mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_FRONT));\n try {\n //Bitmap bp = MediaStore.Images.Media.getBitmap(this.getContentResolver(), mCapturedImageUri);\n Bitmap bp = ImagePicker.getImageFromResult(this, resultCode, intent);\n assert bp !=null;\n mCertificateImage.setImageBitmap(bp);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }else {\n fail(\"Unknown camera lens facing \" + lensFacing.toString());\n }\n }\n }catch (CameraAccessException e) {\n e.printStackTrace();\n }\n }", "public void camara(){\n Intent fotoPick = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);\n String fecha = new SimpleDateFormat(\"yyyy_MM_dd_HH_mm_ss\").format(new Date());\n Uri uriSavedImage=Uri.fromFile(new File(getExternalFilesDir(Environment.DIRECTORY_DCIM),\"inmueble_\"+id+\"_\"+fecha+\".jpg\"));\n fotoPick.putExtra(MediaStore.EXTRA_OUTPUT, uriSavedImage);\n startActivityForResult(fotoPick,TAKE_PICTURE);\n\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (resultCode == RESULT_OK && data.getData()!=null) {\n if (requestCode == 2) {\n Uri selectedImage = data.getData();\n String[] filePath = { MediaStore.Images.Media.DATA };\n Cursor c = getContentResolver().query(selectedImage,filePath, null, null, null);\n c.moveToFirst();\n int columnIndex = c.getColumnIndex(filePath[0]);\n String picturePath = c.getString(columnIndex);\n c.close();\n Bitmap thumbnail = (BitmapFactory.decodeFile(picturePath));\n thumbnail= AppUtils.getResizedBitmap(thumbnail, 400);\n ivPic.setImageBitmap(thumbnail);\n\n //either update existing thumbnail\n if(thumbnailImage != null){\n thumbnailImage.setImage(thumbnail);\n viewModel.updateThumbnail(thumbnailImage);\n }\n //or create a new thumbnail\n else{\n contactGroup.setThumbnailId((int) viewModel.addThumbnailGetId(new ThumbnailImage(thumbnail)));\n viewModel.updateGroup(contactGroup);\n }\n }\n }\n }", "protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\ttry\n\t\t{\n\t\t\tif (requestCode == CAMERA_CAPTURE_IMAGE_REQUEST_CODE)\n\t\t\t{\n\t\t\t\tif (resultCode == RESULT_OK) {\n\n\t\t\t\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\t\t\t\tBitmapFactory.Options options = new BitmapFactory.Options();\n\t\t\t\t\toptions.inSampleSize = 8;\n\t\t\t\t\t//i=IdNo;\n\t\t\t\t\tString filePath =\"\";\n\t\t\t\t\t//Get File URi Path Start\n\t\t\t\t\t//Uri fileUri;\n\t\t\t\t\t//fileUri = getOutputMediaFileUri(MEDIA_TYPE_IMAGE);\n\t\t\t\t\tif(fileUri==null || fileUri.equals(\"\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"Device Error Try Again !\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t//return;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tfilePath=fileUri.getPath();\n\t\t\t\t\t\tUrlData=filePath;\n\t\t\t\t\t\tImageView img=new ImageView(this);\n\t\t\t\t\t\tfinal Bitmap bitmap = BitmapFactory.decodeFile(fileUri.getPath(),options);\n\t\t\t\t\t\timage1.setImageBitmap(bitmap);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (resultCode == RESULT_CANCELED) {\n\t\t\t\t\t// user cancelled Image capture\n\t\t\t\t\tToast.makeText(getApplicationContext(),\"User Cancelled Image Capture\", Toast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tToast.makeText(getApplicationContext(),\"Sorry! Failed To Capture Image\", Toast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(Exception ex)\n\t\t{\n\t\t\tLog.d(\"Error\", ex.getMessage());\n\t\t\tToast.makeText(getApplicationContext(), \"Error : \"+ex.getMessage(), Toast.LENGTH_LONG).show();\n\t\t}\n\t}", "private void startCropImageActivity(Uri imageUri) {\n CropImage.activity(imageUri)\n .setGuidelines(CropImageView.Guidelines.ON)\n .setMultiTouchEnabled(true)\n .start(this);\n }", "public static BufferedImage cropImage(BufferedImage image, int topX,\r\n\t\t\tint topY, int width, int height) {\r\n\t\t// create cropping rectangle\r\n\t\tBufferedImage dest = image.getSubimage(topX, topY, width, height);\r\n\t\t// return cropped image\r\n\t\treturn dest;\r\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (resultCode == RESULT_OK) {\n //everything processed successfully\n if (requestCode == Image_Gallery_Request) {\n //image gallery correctly responds\n Uri imageUri = data.getData(); //address of image on SD Card\n InputStream inputStream; //declaring stream to read data from SD card\n try {\n inputStream = getContentResolver().openInputStream(imageUri);\n Bitmap imagebtmp = BitmapFactory.decodeStream(inputStream); //Puts stream data into bitmap format\n Profile_Picture.setImageBitmap(imagebtmp); //Loads Image to ImageView\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n //error message if image is unavailable\n Toast.makeText(this, \"Unable to open image\", Toast.LENGTH_LONG).show();\n }\n }\n }\n }", "public static Bitmap cropImageVer2(Bitmap img, Bitmap templateImage, int width, int height) {\n // Merge two images together.\n int x=5,y=5;\n Bitmap bm = Bitmap.createBitmap(img.getWidth(), img.getHeight(), Bitmap.Config.ARGB_8888);\n Canvas combineImg = new Canvas(bm);\n combineImg.drawBitmap(img, 0f, 0f, null);\n combineImg.drawBitmap(templateImage, 0f, 0f, null);\n \n // Create new blank ARGB bitmap.\n Bitmap finalBm = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);\n \n // Get the coordinates for the middle of bm.\n int hMid = bm.getHeight() / 2;\n int wMid = bm.getWidth() / 2;\n int hfMid = finalBm.getHeight() / 2;\n int wfMid = finalBm.getWidth() / 2;\n\n int y2 = hfMid;\n int x2 = wfMid;\n\n for ( y = hMid; y >= 0; y--) {\n // Check Upper-left section of combineImg.\n for ( x = wMid; x >= 0; x--) {\n if (x2 < 0) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n // Get out of loop once it hits the left side of the template.\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2--;\n }\n \n // Check upper-right section of combineImage.\n x2 = wfMid;\n for (x = wMid; x < bm.getWidth(); x++) {\n if (x2 >= finalBm.getWidth()) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n // Get out of loop once it hits the right side of the template.\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2++;\n }\n \n // Get out of loop once it hits top most part of the template.\n int px = bm.getPixel(wMid, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } \n x2 = wfMid;\n y2--;\n }\n\n x2 = wfMid;\n y2 = hfMid;\n for (y = hMid; y <= bm.getHeight(); y++) {\n // Check bottom-left section of combineImage.\n for ( x = wMid; x >= 0; x--) {\n if (x2 < 0) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n // Get out of loop once it hits the left side of the template.\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2--;\n }\n\n // Check bottom-right section of combineImage.\n x2 = wfMid;\n for (x = wMid; x < bm.getWidth(); x++) {\n if (x2 >= finalBm.getWidth()) {\n break;\n }\n \n int px = bm.getPixel(x, y);\n // Get out of loop once it hits the right side of the template.\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2++;\n }\n \n // Get out of loop once it hits bottom most part of the template.\n int px = bm.getPixel(wMid, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } \n x2 = wfMid;\n y2++;\n }\n \n // Get rid of images that we finished with to save memory.\n img.recycle();\n templateImage.recycle();\n bm.recycle();\n return finalBm;\n }", "public static BufferedImage cropImage(int x1, int y1, int x2, int y2, BufferedImage src){\n\t\tBufferedImage dest = null;\n\t\t\n\t\tif(x1>x2){\n\t\t\tint tmp = x1;\n\t\t\tx1 = x2;\n\t\t\tx2 = tmp;\n\t\t}\n\t\t\n\t\tif(y1>y2){\n\t\t\tint tmp = y1;\n\t\t\ty1 = y2;\n\t\t\ty2 = tmp;\n\t\t}\n\t\t\n\t\tx1 = Math.max(x1, 0);\n\t\tx2 = Math.min(x2, src.getWidth()-1);\n\t\t\t\t\n\t\ty1 = Math.max(y1, 0);\n\t\ty2 = Math.min(y2, src.getHeight()-1);\n\t\t\n\t\tdest = src.getSubimage(x1, y1, Math.abs(x2 - x1), Math.abs(y2 - y1));\n\n\t\treturn dest;\n\t}", "public void onInsuranceFragmentInteraction(Uri uri, int selectedImageView, Bitmap croppedBitmapImage, String base64Path);", "private void takePhoto() {\n Intent cameraIntent = new Intent(Intent.ACTION_PICK);\n cameraIntent.setType(\"image/*\");\n //startActivityForResult(cameraIntent, CAMERA_PIC_REQUEST);\n startActivityForResult(cameraIntent, GALLERY_PIC_REQUEST);\n }", "private void resizePhoto() {\n if (photoPath.length() == 0) {\n return;\n }\n Log.d(LOG_TAG, \"Path dell' immagine: \" + photoPath);\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(photoPath, options);\n\n options = new BitmapFactory.Options();\n\n options.inJustDecodeBounds = true;\n photoBM = BitmapFactory.decodeFile(photoPath, options);\n Log.d(LOG_TAG, \"Width:\" + bitmapWidth + \" height:\" + bitmapHeight);\n\n options.inSampleSize = calculateInSampleSize(options, bitmapWidth, bitmapHeight);\n\n options.inJustDecodeBounds = false;\n //halfHorizontal = bitmapWidth / 2;\n photoBM = BitmapFactory.decodeFile(photoPath, options);\n\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent intent)\n {\n if(requestCode==REQUEST_IMAGE_CAPTURE && resultCode==RESULT_OK)\n {\n mCurFaceImg.process();\n }\n super.onActivityResult(requestCode, resultCode, intent);\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode == 1 && resultCode == getActivity().RESULT_OK && data != null && data.getData() != null) {\n\n Uri uri = data.getData();\n\n try {\n ByteArrayOutputStream boas = new ByteArrayOutputStream();\n\n\n Bitmap btmap = MediaStore.Images.Media.getBitmap(getActivity().getContentResolver(), uri);\n\n btmap.compress(Bitmap.CompressFormat.JPEG, 70, boas); //bm is the bitmap object\n byte[] byteArrayImage = boas.toByteArray();\n\n\n BitmapFactory.Options opt;\n\n opt = new BitmapFactory.Options();\n opt.inTempStorage = new byte[16 * 1024];\n opt.inSampleSize = 2;\n Bitmap bitmap = BitmapFactory.decodeByteArray(byteArrayImage, 0, byteArrayImage.length, opt);\n\n ImageView imageView = (ImageView) getActivity().findViewById(R.id.profile_back);\n CircleImageView dp = (CircleImageView) getActivity().findViewById(R.id.dp1);\n dp.setImageBitmap(bitmap);\n Bitmap bitmap1=grayscale(bitmap);\n Bitmap blurred = blurRenderScript(bitmap1, 25);\n imageView.setImageBitmap(blurred);\n } catch (OutOfMemoryError a) {\n Toast.makeText(getActivity().getApplicationContext(), \"Image size high\", Toast.LENGTH_SHORT).show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "public static BufferedImage cropImage(BufferedImage img, Rectangle bounds)\n\t{\n\t\tBufferedImage dest = img.getSubimage(bounds.x, bounds.y, bounds.width, bounds.height);\n\t\treturn dest; \n\t}", "protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n switch (requestCode) {\n case SELECTED_PICTURE:\n if (resultCode == RESULT_OK) {\n uri = data.getData();\n\n\n Log.e(\"Image path is \", \"\" + uri);\n String[] projection = {MediaStore.Images.Media.DATA};\n\n Cursor cursor = getContentResolver().query(uri, projection,\n null, null, null);\n cursor.moveToFirst();\n\n int columnIndex = cursor.getColumnIndex(projection[0]);\n String filePath = cursor.getString(columnIndex);\n String path = filePath;\n img = path;\n\n cursor.close();\n\n\n Bitmap yourSelectedImage = BitmapFactory.decodeFile(filePath);\n\n Drawable d = new BitmapDrawable(yourSelectedImage);\n\n newImage.setImageDrawable(d);\n Toast.makeText(getApplicationContext(), filePath,\n Toast.LENGTH_SHORT).show();\n\n\n\n }\n break;\n\n default:\n break;\n }\n }", "@Override public Bitmap transform(Bitmap source) {\n int width = source.getWidth(); //Width of source\n int height = source.getHeight(); //Height of source\n\n Bitmap result = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);\n\n Drawable mask = getMaskDrawable(mContext, mMaskId); //Init mask from resources\n\n //Using mask\n Canvas canvas = new Canvas(result);\n mask.setBounds(0, 0, width, height);\n mask.draw(canvas);\n canvas.drawBitmap(source, 0, 0, mMaskingPaint);\n\n source.recycle();\n\n //Return bitmap of cropped image\n return result;\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n switch (requestCode) {\n case 3: {\n if (resultCode == Activity.RESULT_OK && data != null) {\n Uri image = data.getData();\n try {\n Bitmap temp = MediaStore.Images.Media.getBitmap(getActivity().getContentResolver(), image);\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n temp.compress(Bitmap.CompressFormat.JPEG, 100, byteArrayOutputStream);\n byte[] byteArray = byteArrayOutputStream.toByteArray();\n int num = 50;\n while (byteArray.length > 10000 && num > 0) { // compress image to not more than 10 kb\n byteArrayOutputStream.flush();\n byteArrayOutputStream.reset();\n\n temp.compress(Bitmap.CompressFormat.JPEG, num, byteArrayOutputStream);\n num = num / 2;\n byteArray = byteArrayOutputStream.toByteArray();\n }\n this.profilePic = Base64.encodeToString(byteArrayOutputStream.toByteArray(), Base64.DEFAULT);\n profilePicChanged = true;\n Toast.makeText(dialog.getContext(), \"Image Uploaded\", Toast.LENGTH_SHORT).show();\n decodeImage(profilePic, editImage);\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }\n\n }", "@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\r\n super.onActivityResult(requestCode, resultCode, data);\r\n if (requestCode == RESULT_LOAD_IMAGE && resultCode == RESULT_OK && null != data) {\r\n Uri selectedImageURI = data.getData();\r\n String[] filePathColumn = {MediaStore.Images.Media.DATA};\r\n\r\n Cursor cursor = getContentResolver().query(selectedImageURI,\r\n filePathColumn, null, null, null);\r\n cursor.moveToFirst();\r\n\r\n int columnIndex = cursor.getColumnIndex(filePathColumn[0]);\r\n String picturePath = cursor.getString(columnIndex);\r\n cursor.close();\r\n\r\n selectedImage.setVisibility(View.VISIBLE);\r\n selectedImage.setImageBitmap(BitmapFactory.decodeFile(picturePath));\r\n\r\n //get the bytes from image that will be uploaded\r\n selectedImage.setDrawingCacheEnabled(true);\r\n selectedImage.buildDrawingCache();\r\n Bitmap bitmap = ((BitmapDrawable) selectedImage.getDrawable()).getBitmap();\r\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\r\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, baos);\r\n imageBytes = baos.toByteArray();\r\n }\r\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tif (resultCode == RESULT_OK) {\n\t\t\tswitch (requestCode) {\n//\t\t\tcase EDIT_FROM_EDITOR:\n//\t\t\t\tbyte[] bb = data.getByteArrayExtra(\"bitmap\");\n//\t\t\t\tBitmap tmp_bitmap = BitmapFactory.decodeByteArray(bb, 0,\n//\t\t\t\t\t\tbb.length);\n//\t\t\t\tcur_bitmap_list.add(tmp_bitmap);\n//\t\t\t\tiv_seller_reply_img.setImageBitmap(cur_bitmap_list.get(0));\n//\t\t\t\tbreak;\n\t\t\tcase PICK_FROM_ALBUM :\n//\t\t\t\tIntent intent = new Intent(Consumer_post.this, ImageEditActivity.class);\n//\t\t\t\tintent.putExtra(\"output\", data.getData());\n//\t\t\t\tintent.putExtra(\"flag\", \"album\");\n//\t\t\t\tstartActivityForResult(intent, EDIT_FROM_EDITOR);\n\t\t\t\tif (!addImage(data)) {\n\t\t\t\t\tToast.makeText(Seller_reply.this, \"사진 첨부 실패\",\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\tbreak;\n//\t\t\tcase PICK_FROM_CAMERA:\n//\t\t\t\tIntent intent2 = new Intent(Seller_reply.this,\n//\t\t\t\t\t\tImageEditActivity.class);\n//\t\t\t\tintent2.putExtra(\"output\", path + \"/\" + TEMP_IMAGE);\n//\t\t\t\tintent2.putExtra(\"flag\", \"camera\");\n//\t\t\t\tstartActivityForResult(intent2, EDIT_FROM_EDITOR);\n//\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n try {\n\n // camera photo\n if (requestCode == REQUEST_IMAGE_CAPTURE && resultCode == RESULT_OK) {\n imageUri = Uri.fromFile(new File(mCameraFileName)); //zwraca zdjęcie z aparatu jako ścieszkę uri\n Log.d(TAG, \"onActivityResult: imageUri z aparatu: \" + imageUri);\n }\n\n // save picture to imageBitmap from taken mageUri from camera\n imageBitmap = MediaStore.Images.Media.getBitmap(this.getContentResolver(), imageUri);\n imageViewOfPhotoFromCamera.setImageBitmap(imageBitmap); // set imageBitmap in image View\n Log.d(TAG, \"onActivityResult, imageBitmap SAVED and set in imageView\");\n\n } catch (Exception e) {\n Log.d(TAG, \"onActivityResult, ERROr, imageBitmap NOT saved because e: \" + e);\n }\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if(resultCode == RESULT_OK && requestCode ==200){\n Uri uri_img=data.getData();\n try{\n assert uri_img != null;\n InputStream input_img = updateView.getContext().getContentResolver().openInputStream(uri_img);\n DecodeImage_stream = BitmapFactory.decodeStream(input_img);\n chooseImage.setImageBitmap(DecodeImage_stream);\n }catch (FileNotFoundException f){\n Log.d(\"add new file not found:\",f.getMessage());\n }\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n \tsuper.onActivityResult(requestCode, resultCode, data);\n \t\n \tif(requestCode == RESPONSE_TAKE_PHOTO && resultCode == Activity.RESULT_OK){\n \t\tBitmapFactory.Options options = new BitmapFactory.Options();\n \t options.inSampleSize = 4;\n\n \t Bitmap thumbnail = (Bitmap) data.getExtras().get(\"data\"); \n \t mImage.setImageBitmap(thumbnail);\n\n \t}\n }" ]
[ "0.80573994", "0.7841507", "0.78106654", "0.7806732", "0.7762914", "0.7488133", "0.72875535", "0.724575", "0.7217617", "0.7208964", "0.70628345", "0.7031493", "0.69514716", "0.69400275", "0.6867375", "0.68578315", "0.68533486", "0.6827691", "0.6744015", "0.6724813", "0.6719918", "0.6715228", "0.669149", "0.6656704", "0.66542304", "0.6619024", "0.6607221", "0.65801114", "0.6542352", "0.6530274", "0.6474896", "0.64501065", "0.6437612", "0.6419058", "0.6404075", "0.63655025", "0.6352128", "0.6337848", "0.62515205", "0.62320673", "0.6145241", "0.6124452", "0.6121016", "0.611583", "0.61140156", "0.6112752", "0.60888165", "0.60860914", "0.6080598", "0.6073914", "0.60680604", "0.6047649", "0.6024963", "0.59766734", "0.59696555", "0.59277695", "0.5899131", "0.58976483", "0.5888073", "0.587706", "0.58716", "0.5859605", "0.5857623", "0.5850789", "0.5822767", "0.57926625", "0.5790571", "0.5785855", "0.57713324", "0.57712615", "0.57617986", "0.5756359", "0.5752903", "0.5752381", "0.575229", "0.574353", "0.57431036", "0.5732887", "0.57327294", "0.57289207", "0.57288474", "0.57248163", "0.5721705", "0.57171607", "0.5694478", "0.56841797", "0.56803447", "0.567157", "0.5665584", "0.5663685", "0.5660035", "0.565381", "0.5637986", "0.5634799", "0.5632421", "0.5630713", "0.5629962", "0.56267214", "0.56263655", "0.56254935" ]
0.59779763
53
To crop image from camera or gallery / To set cropped image in image view and get text or number from image and set it in edit text.
public void Croppedimage(CropImage.ActivityResult result, ImageView iv, EditText et ) { Uri resultUri = null; // get image uri if (result != null) { resultUri = result.getUri(); } //set image to image view iv.setImageURI(resultUri); //get drawable bitmap for text recognition BitmapDrawable bitmapDrawable = (BitmapDrawable) iv.getDrawable(); Bitmap bitmap = bitmapDrawable.getBitmap(); TextRecognizer recognizer = new TextRecognizer.Builder(getApplicationContext()).build(); if(!recognizer.isOperational()) { Toast.makeText(this, "Error No Text To Recognize", Toast.LENGTH_LONG).show(); } else { Frame frame = new Frame.Builder().setBitmap(bitmap).build(); SparseArray<TextBlock> items = recognizer.detect(frame); StringBuilder ab = new StringBuilder(); //get text from ab until there is no text for(int i = 0 ; i < items.size(); i++) { TextBlock myItem = items.valueAt(i); ab.append(myItem.getValue()); } //set text to edit text et.setText(ab.toString()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void cropImage() {\n\t\t// Use existing crop activity.\n\t\tIntent intent = new Intent(\"com.android.camera.action.CROP\");\n\t\tintent.setDataAndType(mImageCaptureUri, IMAGE_UNSPECIFIED);\n\n\t\t// Specify image size\n\t\tintent.putExtra(\"outputX\", 100);\n\t\tintent.putExtra(\"outputY\", 100);\n\n\t\t// Specify aspect ratio, 1:1\n\t\tintent.putExtra(\"aspectX\", 1);\n\t\tintent.putExtra(\"aspectY\", 1);\n\t\tintent.putExtra(\"scale\", true);\n\t\tintent.putExtra(\"return-data\", true);\n\n\t\t// REQUEST_CODE_CROP_PHOTO is an integer tag you defined to\n\t\t// identify the activity in onActivityResult() when it returns\n\t\tstartActivityForResult(intent, REQUEST_CODE_CROP_PHOTO);\n\t}", "public void cropImage() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {\n this.grantUriPermission(\"com.android.camera\", photoUri,\n Intent.FLAG_GRANT_WRITE_URI_PERMISSION | Intent.FLAG_GRANT_READ_URI_PERMISSION);\n }\n Intent intent = new Intent(\"com.android.camera.action.CROP\");\n intent.setDataAndType(photoUri, \"image/*\");\n\n List<ResolveInfo> list = getPackageManager().queryIntentActivities(intent, 0);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {\n grantUriPermission(list.get(0).activityInfo.packageName, photoUri,\n Intent.FLAG_GRANT_WRITE_URI_PERMISSION | Intent.FLAG_GRANT_READ_URI_PERMISSION);\n }\n int size = list.size();\n if (size == 0) {\n Toast.makeText(this, \"취소 되었습니다.\", Toast.LENGTH_SHORT).show();\n return;\n } else {\n// Toast.makeText(this, \"용량이 큰 사진의 경우 시간이 오래 걸릴 수 있습니다.\", Toast.LENGTH_SHORT).show();\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {\n intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n intent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\n }\n intent.putExtra(\"crop\", \"true\");\n// intent.putExtra(\"aspectX\", 3);\n// intent.putExtra(\"aspectY\", 4);\n intent.putExtra(\"scale\", true);\n File croppedFileName = null;\n try {\n croppedFileName = createImageFile();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n File folder = new File(Environment.getExternalStorageDirectory() + \"/Body_Img/\");\n File tempFile = new File(folder.toString(), croppedFileName.getName());\n\n photoUri = FileProvider.getUriForFile(Body_Img.this,\n \"com.example.a1013c.body_sns.provider\", tempFile);\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {\n intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n intent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\n }\n\n intent.putExtra(\"return-data\", false);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, photoUri);\n intent.putExtra(\"outputFormat\", Bitmap.CompressFormat.JPEG.toString());\n\n Intent i = new Intent(intent);\n ResolveInfo res = list.get(0);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {\n i.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n i.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\n\n grantUriPermission(res.activityInfo.packageName, photoUri,\n Intent.FLAG_GRANT_WRITE_URI_PERMISSION | Intent.FLAG_GRANT_READ_URI_PERMISSION);\n }\n i.setComponent(new ComponentName(res.activityInfo.packageName, res.activityInfo.name));\n startActivityForResult(i, CROP_FROM_CAMERA);\n }\n }", "private void performCrop() {\n try {\r\n //call the standard crop action intent (the user device may not support it)\r\n Intent cropIntent = new Intent(\"com.android.camera.action.CROP\");\r\n //indicate image type and Uri\r\n cropIntent.setDataAndType(picUri, \"image/*\");\r\n //set crop properties\r\n cropIntent.putExtra(\"crop\", \"true\");\r\n //indicate aspect of desired crop\r\n// cropIntent.putExtra(\"aspectX\", 1);\r\n// cropIntent.putExtra(\"aspectY\", 1);\r\n //indicate output X and Y\r\n// cropIntent.putExtra(\"outputX\", 256);\r\n// cropIntent.putExtra(\"outputY\", 256);\r\n //retrieve data on return\r\n cropIntent.putExtra(\"return-data\", true);\r\n //start the activity - we handle returning li_history onActivityResult\r\n startActivityForResult(cropIntent, 2);\r\n }\r\n //respond to users whose devices do not support the crop action\r\n catch (ActivityNotFoundException anfe) {\r\n //display an error message\r\n String errorMessage = \"Whoops - your device doesn't support the crop action!\";\r\n Toast toast = Toast.makeText(this, errorMessage, Toast.LENGTH_SHORT);\r\n toast.show();\r\n }\r\n }", "private void performCrop(Uri img) {\n try {\r\n //call the standard crop action intent (the user device may not support it)\r\n Intent cropIntent = new Intent(\"com.android.camera.action.CROP\");\r\n //indicate image type and Uri\r\n cropIntent.setDataAndType(img, \"image/*\");\r\n //set crop properties\r\n cropIntent.putExtra(\"crop\", \"true\");\r\n //indicate aspect of desired crop\r\n // cropIntent.putExtra(\"aspectX\", 1);\r\n //cropIntent.putExtra(\"aspectY\", 1);\r\n //indicate output X and Y\r\n // cropIntent.putExtra(\"outputX\", 256);\r\n // cropIntent.putExtra(\"outputY\", 256);\r\n //retrieve data on return\r\n\r\n cropIntent.putExtra(\"return-data\", true);\r\n //start the activity - we handle returning in onActivityResult\r\n startActivityForResult(cropIntent, 2);\r\n }\r\n //respond to users whose devices do not support the crop action\r\n catch (ActivityNotFoundException anfe) {\r\n //display an error message\r\n String errorMessage = \"Whoops - your device doesn't support the crop action!\";\r\n Toast toast = Toast.makeText(this, errorMessage, Toast.LENGTH_SHORT);\r\n toast.show();\r\n }\r\n }", "public void cropImage() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { // 마쉬멜로우 이상 버전일 때\n grantUriPermission(\"com.android.camera\", mImageCaptureUri,\n Intent.FLAG_GRANT_WRITE_URI_PERMISSION | Intent.FLAG_GRANT_READ_URI_PERMISSION);\n }\n Intent intent = new Intent(\"com.android.camera.action.CROP\");\n intent.setDataAndType(mImageCaptureUri, \"image/*\");\n\n List<ResolveInfo> list = getPackageManager().queryIntentActivities(intent, 0);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n grantUriPermission(list.get(0).activityInfo.packageName, mImageCaptureUri,\n Intent.FLAG_GRANT_WRITE_URI_PERMISSION | Intent.FLAG_GRANT_READ_URI_PERMISSION);\n }\n int size = list.size();\n if (size == 0) {\n Toast.makeText(ManualRegistActivity.this, \"취소 되었습니다.\", Toast.LENGTH_SHORT).show();\n return;\n } else {\n Toast.makeText(ManualRegistActivity.this, \"용량이 큰 사진의 경우 시간이 오래 걸릴 수 있습니다.\", Toast.LENGTH_SHORT).show();\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n intent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\n }\n intent.putExtra(\"crop\", \"true\");\n intent.putExtra(\"aspectX\", 1);\n intent.putExtra(\"aspectY\", 1);\n intent.putExtra(\"scale\", true);\n croppedFile = null;\n try {\n croppedFile = createImageFile();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n File folder = new File(Environment.getExternalStorageDirectory() + \"/BioCube/\");\n File tempFile = new File(folder.toString(), croppedFile.getName());\n\n mCurrentPhotoPath = tempFile.getAbsolutePath();\n mImageCaptureUri = FileProvider.getUriForFile(ManualRegistActivity.this,\n \"com.example.seongjun.biocube.provider\", tempFile);\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n intent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\n }\n\n intent.putExtra(\"return-data\", false);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, mImageCaptureUri);\n intent.putExtra(\"outputFormat\", Bitmap.CompressFormat.JPEG.toString());\n\n Intent i = new Intent(intent);\n ResolveInfo res = list.get(0);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n i.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n i.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\n\n grantUriPermission(res.activityInfo.packageName, mImageCaptureUri,\n Intent.FLAG_GRANT_WRITE_URI_PERMISSION | Intent.FLAG_GRANT_READ_URI_PERMISSION);\n }\n i.setComponent(new ComponentName(res.activityInfo.packageName, res.activityInfo.name));\n startActivityForResult(i, CROP_FROM_CAMERA);\n }\n }", "@Override\n public void onCropWindowChanged() {\n Bitmap cropped = imageView.getCroppedImage();\n BitmapHelper.getInstance().setBitmap(cropped);\n bitmap=cropped;\n\n }", "private void handleCrop(int resultCode, Intent data) {\n if (resultCode == RESULT_OK) {\n Uri uri = Crop.getOutput(data);\n try {\n Bitmap bitmap = MediaStore.Images.Media.getBitmap(this.getContentResolver(), uri);\n mImageCaptureUri = uri;\n mImageView.setImageBitmap(bitmap);\n } catch (Exception e) {\n Log.d(TAG, e.getMessage());\n }\n\n } else if (resultCode == Crop.RESULT_ERROR) {\n Toast.makeText(this, Crop.getError(data).getMessage(), Toast.LENGTH_SHORT).show();\n }\n }", "protected void cropImage() {\n if (mOptions.noOutputImage) {\n setResult(null, null, 1);\n } else {\n Uri outputUri = getOutputUri();\n mCropImageView.saveCroppedImageAsync(\n outputUri,\n mOptions.outputCompressFormat,\n mOptions.outputCompressQuality,\n mOptions.outputRequestWidth,\n mOptions.outputRequestHeight,\n mOptions.outputRequestSizeOptions);\n }\n }", "private void handleCrop(int resultCode, Intent result) {\n if (resultCode == RESULT_OK) {\n try {\n Uri uri = Crop.getOutput(result);\n yourSelectedImage = MediaStore.Images.Media.getBitmap(this.getContentResolver(), Crop.getOutput(result));\n ivUserImage.setImageBitmap(yourSelectedImage);\n Uri tempUri = Util.getInstance().getImageUri(SignUp.this, yourSelectedImage);\n // createImageFromBitmap(yourSelectedImage);\n // tempFilePath = FileUtil.getPath(this,tempUri);\n tempFilePath = FileUtil.getPath(SignUp.this, tempUri);\n } catch (Exception e) {\n e.printStackTrace();\n }\n } else if (resultCode == Crop.RESULT_ERROR) {\n // Toast.makeText(this, Crop.getError(result).getMessage(), Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == CropImage.PICK_IMAGE_CHOOSER_REQUEST_CODE && resultCode == RESULT_OK) {\n Uri imageUri = CropImage.getPickImageResultUri(this, data);\n// startCropImageActivity(AsyncBlackBackgrImage.createBackground(context, imageUri));\n startCropImageActivity(imageUri);\n }\n\n if ((requestCode == GALLERY_INTENT || requestCode == CAMERA_INTENT) && resultCode == RESULT_OK) {\n Uri imageUri = CropImage.getPickImageResultUri(context, data);\n Log.d(getLocalClassName() + \"pick image\", imageUri.toString());\n\n// startCropImageActivity(AsyncBlackBackgrImage.createBackground(context, imageUri));\n startCropImageActivity(imageUri);\n }\n\n if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) {\n CropImage.ActivityResult result = CropImage.getActivityResult(data);\n if (resultCode == RESULT_OK) {\n ((ImageView) findViewById(R.id.imageview_myactivity)).setImageURI(result.getUri());\n\n Log.d(\"CropResultUri\", result.getUri().toString());\n\n MyBmpInfo bmpinfo = getThumbnail(result.getUri());\n Bitmap b = bmpinfo.result;\n if (bmpinfo.warnUser) {\n textInfoImage.setText(\"Warning: \" + bmpinfo.warning + \" ( \" + b.getWidth() + \" x \" + b.getHeight() + \" ) \");\n textInfoImage.setTextColor(Color.parseColor(\"#FFFF0000\"));\n } else textInfoImage.setText(\"\");\n\n Toast.makeText(this, \"Cropping successful\", Toast.LENGTH_LONG).show();\n\n b = watermark(b);\n // Save image as .jpg file in phone public \"Picture\" directory\n selectedImageFilePath = saveFile(b);\n selectedImageFilePath = new String[]{selectedImageFilePath[0], selectedImageFilePath[1], result.getUri().toString()};\n Toast.makeText(this, \"Saved successfully\", Toast.LENGTH_LONG).show();\n\n\n } else if (resultCode == CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE) {\n Toast.makeText(this, \"Cropping failed: \" + result.getError(), Toast.LENGTH_LONG).show();\n }\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode == 1 && resultCode == RESULT_OK && data != null && data.getData() != null) {\n\n //Getting the uri from gallery\n\n fileImageUri = data.getData();\n imageUri = fileImageUri;\n CropImage.activity(fileImageUri) //cropping the image\n\n .setGuidelines(CropImageView.Guidelines.ON)\n .setCropShape(CropImageView.CropShape.RECTANGLE)\n .setFixAspectRatio(true)\n .setAspectRatio(1,1)\n .start(this);\n\n\n\n }\n\n\n //After image will crop again taking the image uri\n\n if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) {\n CropImage.ActivityResult result = CropImage.getActivityResult(data);\n if (resultCode == RESULT_OK) {\n resultUri = result.getUri();\n\n uploadUserImageView.setImageURI(resultUri);\n\n } else if (resultCode == CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE) {\n Exception error = result.getError();\n Toast.makeText(this, \"Error While Getting uri\", Toast.LENGTH_SHORT).show();\n }\n }\n\n }", "private void startCropImage() {\n }", "protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) {\n CropImage.ActivityResult result = CropImage.getActivityResult(data);\n if (resultCode == RESULT_OK) {\n //getting Image to show\n Uri resultUri = result.getUri();\n profilePic.setImageURI(resultUri);\n\n //getting image to save bitmap formate\n try{\n bitmap = MediaStore.Images.Media.getBitmap(getContentResolver(),resultUri);\n imageChanged = true;\n }catch (IOException e){\n e.printStackTrace();\n }\n\n\n } else if (resultCode == CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE) {\n Exception error = result.getError();\n Toast.makeText(this, \"\"+error, Toast.LENGTH_SHORT).show();\n }\n }\n }", "private void onSaveClicked() {\n if (mCropView == null) {\n return;\n }\n\n if (mSaving) return;\n mSaving = true;\n\n Bitmap croppedImage;\n\n // If the output is required to a specific size, create an new image\n // with the cropped image in the center and the extra space filled.\n if (outputX != 0 && outputY != 0 && !scale) {\n // Don't scale the image but instead fill it so it's the\n // required dimension\n croppedImage = Bitmap.createBitmap(outputX, outputY, Bitmap.Config.RGB_565);\n Canvas canvas = new Canvas(croppedImage);\n\n Rect srcRect = mCropView.getCropRect();\n Rect dstRect = new Rect(0, 0, outputX, outputY);\n\n int dx = (srcRect.width() - dstRect.width()) / 2;\n int dy = (srcRect.height() - dstRect.height()) / 2;\n\n // If the srcRect is too big, use the center part of it.\n srcRect.inset(Math.max(0, dx), Math.max(0, dy));\n\n // If the dstRect is too big, use the center part of it.\n dstRect.inset(Math.max(0, -dx), Math.max(0, -dy));\n\n // Draw the cropped bitmap in the center\n canvas.drawBitmap(mBitmap, srcRect, dstRect, null);\n\n // Release bitmap memory as soon as possible\n mImageView.clear();\n mBitmap.recycle();\n } else {\n Rect r = mCropView.getCropRect();\n\n int width = r.width();\n int height = r.height();\n\n // If we are circle cropping, we want alpha channel, which is the\n // third param here.\n croppedImage = Bitmap.createBitmap(width, height,\n circleCrop ? Bitmap.Config.ARGB_8888 : Bitmap.Config.RGB_565);\n\n Canvas canvas = new Canvas(croppedImage);\n\n if (circleCrop) {\n final int color = 0xffff0000;\n final Paint paint = new Paint();\n final Rect rect = new Rect(0, 0, croppedImage.getWidth(), croppedImage.getHeight());\n final RectF rectF = new RectF(rect);\n\n paint.setAntiAlias(true);\n paint.setDither(true);\n paint.setFilterBitmap(true);\n canvas.drawARGB(0, 0, 0, 0);\n paint.setColor(color);\n canvas.drawOval(rectF, paint);\n\n paint.setColor(Color.BLUE);\n paint.setStyle(Paint.Style.STROKE);\n paint.setStrokeWidth((float) 4);\n paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_IN));\n canvas.drawBitmap(mBitmap, r, rect, paint);\n }\n else {\n Rect dstRect = new Rect(0, 0, width, height);\n canvas.drawBitmap(mBitmap, r, dstRect, null);\n }\n\n // Release bitmap memory as soon as possible\n mImageView.clear();\n mBitmap.recycle();\n\n // If the required dimension is specified, scale the image.\n if (outputX != 0 && outputY != 0 && scale) {\n croppedImage = BitmapUtils.transform(new Matrix(), croppedImage,\n outputX, outputY, scaleUp, BitmapUtils.RECYCLE_INPUT);\n }\n }\n\n mImageView.setImageBitmapResetBase(croppedImage, true);\n mImageView.center(true, true);\n mImageView.getHighlightViews().clear();\n\n // save it to the specified URI.\n final Bitmap b = croppedImage;\n new AsyncTask<Void, Integer, IImage>() {\n ProgressDialog pd;\n\n @Override\n protected void onPreExecute() {\n pd = ProgressDialog.show(CropPhotoActivity.this, null,\n getResources().getString(R.string.saving_image));\n }\n\n @Override\n protected IImage doInBackground(Void[] params) {\n return saveOutput(b);\n }\n\n @Override\n protected void onPostExecute(IImage image) {\n pd.dismiss();\n mImageView.clear();\n b.recycle();\n\n if (image != null) {\n ArrayList<IImage> images = new ArrayList<>();\n images.add(image);\n\n Intent data = new Intent();\n data.putParcelableArrayListExtra(\"data\", images);\n setResult(Activity.RESULT_OK, data);\n finish();\n }\n }\n }.execute();\n }", "public void savePicture() {\n\t\tLog.d(TAG, \"savePicture\");\n\t\t\n\t\tFile cropFile = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES).getPath() + \"/Lente/crop.jpg\");\n\t\tmCropView.setDrawingCacheEnabled(true);\n\t\tBitmap bm = Bitmap.createBitmap(mCropView.getDrawingCache());\n\t\tmCropView.setDrawingCacheEnabled(false);\n\t\t\n\t\ttry {\n\t\t FileOutputStream outputStream = new FileOutputStream(cropFile);\n\t\t Log.d(TAG, \"Compressing and saving...\");\n\t\t bm.compress(Bitmap.CompressFormat.JPEG, 100, outputStream);\n\t\t outputStream.flush();\n\t\t outputStream.close();\n\t\t \n\t\t MediaScannerConnection.scanFile(getBaseContext(),\n\t new String[] { cropFile.toString() }, null,\n\t new MediaScannerConnection.OnScanCompletedListener() {\n\t public void onScanCompleted(String path, Uri uri) {\n\t Log.i(\"ExternalStorage\", \"Scanned \" + path + \":\");\n\t Log.i(\"ExternalStorage\", \"-> uri=\" + uri);\n\t //passUri(uri); //Pass the URI once obtained and move onto OCRopus\n\t }\n\t\t\t});\n\t }\n\t\t\n\t\tcatch (IOException e) {\n\t\t\tToast.makeText(ImageTextSelect.this, \"Failed to save selected image area.\", 2000).show();\n\t\t\tLog.e(TAG, \"IO Exception\");\n\t\t}\n\t}", "private void onSaveClicked() {\n if (mCrop == null || mIsSaving) {\n return;\n }\n mIsSaving = true;\n Bitmap croppedImage = null;\n Rect r = mCrop.getCropRect();\n int width = r.width();\n int height = r.height();\n\n int outWidth = width, outHeight = height;\n if (mMaxX > 0 && mMaxY > 0 && (width > mMaxX || height > mMaxY)) {\n float ratio = (float) width / (float) height;\n if ((float) mMaxX / (float) mMaxY > ratio) {\n outHeight = mMaxY;\n outWidth = (int) ((float) mMaxY * ratio + .5f);\n } else {\n outWidth = mMaxX;\n outHeight = (int) ((float) mMaxX / ratio + .5f);\n }\n }\n if (IN_MEMORY_CROP && mRotateBitmap != null) {\n croppedImage = inMemoryCrop( mRotateBitmap, croppedImage, r,\n width * sampleSize,\n height * sampleSize,\n outWidth * sampleSize,\n outHeight * sampleSize );\n if (croppedImage != null) {\n mImageView.setImageBitmapResetBase( croppedImage, true );\n mImageView.center( true, true );\n mImageView.mHighlightViews.clear();\n }\n } else {\n try {\n croppedImage = decodeRegionCrop( croppedImage, r );\n } catch (IllegalArgumentException e) {\n setResultException( e );\n finish();\n return;\n }\n\n if (croppedImage != null) {\n mImageView.setImageRotateBitmapResetBase( new RotateBitmap( croppedImage, mExifRotation ), true );\n mImageView.center( true, true );\n mImageView.mHighlightViews.clear();\n }\n }\n if(croppedImage.getWidth() > mMaxX || croppedImage.getHeight() > mMaxY) {\n croppedImage = getResizedBitmap(croppedImage, mMaxX, mMaxY);\n }\n\n saveImage(croppedImage);\n }", "@Override\n @SuppressLint(\"NewApi\")\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == CropImage.PICK_IMAGE_CHOOSER_REQUEST_CODE && resultCode == Activity.RESULT_OK) {\n Uri imageUri = CropImage.getPickImageResultUri(this, data);\n\n // For API >= 23 we need to check specifically that we have permissions to read external storage.\n if (CropImage.isReadExternalStoragePermissionsRequired(this, imageUri)) {\n // request permissions and handle the result in onRequestPermissionsResult()\n mCropImageUri = imageUri;\n requestPermissions(new String[]{android.Manifest.permission.READ_EXTERNAL_STORAGE}, CropImage.PICK_IMAGE_PERMISSIONS_REQUEST_CODE);\n } else {\n // no permissions required or already grunted, can start crop image activity\n startCropImageActivity(imageUri);\n }\n } else if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) {\n CropImage.ActivityResult result = CropImage.getActivityResult(data);\n if (resultCode == RESULT_OK) {\n mCropImageUri = result.getUri();\n InputStream imageStream = null;\n try {\n imageStream = getContentResolver().openInputStream(mCropImageUri);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n mCropImage = BitmapFactory.decodeStream(imageStream);\n imgRestaurant.setImageBitmap(mCropImage);\n\n } else if (resultCode == CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE) {\n Exception error = result.getError();\n Toast.makeText(NewRestaurantActivity.this, error.getMessage(), Toast.LENGTH_LONG).show();\n }\n }\n }", "@Override\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tLog.e(\"on success\", \"on success\");\n\t\tBitmap s = null;\n\n\t\tif (resultCode == getActivity().RESULT_OK) {\n\t\t\t// user is returning from capturing an image using the camera\n\t\t\tif (requestCode == CAMERA_CAPTURE) {\n\t\t\t\tLog.e(\"camera\", \"camera\");\n\t\t\t\tpicUri = data.getData();\n\t\t\t\tBundle extras = data.getExtras();\n\t\t\t\t// get the cropped bitmap\n\t\t\t\tBitmap thePic = extras.getParcelable(\"data\");\n\t\t\t\tsavetoaFileLocation(thePic);\n\t\t\t\tthePic = getResizedBitmap(thePic, 200, 200);\n\t\t\t\tcameraBitmap = thePic;\n\t\t\t\t// ImageView picView = (ImageView)\n\t\t\t\t// findViewById(R.id.img_userimage);\n\t\t\t\t// display the returned cropped image\n\t\t\t\tprofileimageeditflag=\"true\";\n\t\t\t\tGraphicsUtil graphicUtil = new GraphicsUtil();\n\t\t\t\t// picView.setImageBitmap(graphicUtil.getRoundedShape(thePic));\n\t\t\t\t\n\t\t\t\tpicview1.setImageBitmap(graphicUtil.getCircleBitmap(thePic, 16));\n\t\t\t\t//picview1.setImageBitmap(cameraBitmap);\n\t\t\t} else if (requestCode == GALLERY_CAPTURE) {\n\n\n\n\n\t\t\t\tUri selectedImage = data.getData();\n\n\t\t\t\tString stringUri;\n\t\t\t\tstringUri = selectedImage.toString();\n\t\t\t\tif ((stringUri != \"\") || stringUri != null) {\n\n\t\t\t\t\tString selectedImagePath = getPath(selectedImage);\ntry {\n\tExifInterface exifInterface = new ExifInterface(selectedImagePath);\n\torientation = exifInterface.getAttributeInt(ExifInterface.TAG_ORIENTATION, ExifInterface.ORIENTATION_NORMAL);\n\n}\ncatch (Exception e){}\n\n\n\n\t\t\t\t\tString[] filePathColumn = { MediaStore.Images.Media.DATA };\n\t\t\t\t\tCursor cursor = getActivity().getContentResolver().query(\n\t\t\t\t\t\t\tselectedImage, filePathColumn, null, null, null);\n\t\t\t\t\tcursor.moveToFirst();\n\t\t\t\t\tint columnIndex = cursor.getColumnIndex(filePathColumn[0]);\n\t\t\t\t\tString selectedimage_path = cursor.getString(columnIndex);\n\t\t\t\t\tLog.e(\"selected path\",selectedimage_path);\n\t\t\t\t\tcursor.close();\n\t\t\t\t\tif (selectedimage_path.startsWith(\"https://\")) {\n\t\t\t\t\t\tgetBiymapFromGoogleLocation(selectedimage_path);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t} else {\n\t\t\t\t\t\ts = getBitmapFromFile(selectedimage_path);\n\t\t\t\t\t}\n\t\t\t\t\ts = getResizedBitmap(s, 200, 200);\n\t\t\t\t\tcameraBitmap = s;\n\n\t\t\t\t\tswitch(orientation) {\n\t\t\t\t\t\tcase ExifInterface.ORIENTATION_ROTATE_90:\n\t\t\t\t\t\t\tcorrectedBitMap = rotateImage(cameraBitmap, 90);\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tcase ExifInterface.ORIENTATION_ROTATE_180:\n\t\t\t\t\t\t\tcorrectedBitMap = rotateImage(cameraBitmap, 180);\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tcase ExifInterface.ORIENTATION_ROTATE_270:\n\t\t\t\t\t\t\tcorrectedBitMap = rotateImage(cameraBitmap, 270);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tcorrectedBitMap=cameraBitmap;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t\t// ImageView picView = (ImageView)\n\t\t\t\t\t// findViewById(R.id.img_userimage);\n\t\t\t\t\t// display the returned cropped image\nprofileimageeditflag=\"true\";\n\t\t\t\t\tGraphicsUtil graphicUtil = new GraphicsUtil();\n\n\n\t/*\t\t\t\tif(correctedBitMap!= null)\n\t\t\t\t\t{\n\t\t\t\t\t\tpicView.setImageBitmap(graphicUtil.getCircleBitmap(\n\t\t\t\t\t\t\t\tcorrectedBitMap, 16));\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t// picView.setImageBitmap(graphicUtil.getRoundedShape(thePic));\n\t\t\t\t\t\tpicView.setImageBitmap(graphicUtil.getCircleBitmap(\n\t\t\t\t\t\t\t\tcameraBitmap, 16));\n\t\t\t\t\t}\n\n*/\n\n\t\t\t\t\tif (correctedBitMap != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tpicview1.setImageBitmap(graphicUtil.getCircleBitmap(correctedBitMap, 16));\n\t\t\t\t\t\tsavetoaFileLocation(correctedBitMap);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tpicview1.setImageBitmap(graphicUtil.getCircleBitmap(s, 16));\n\t\t\t\t\t\tsavetoaFileLocation(s);\n\t\t\t\t\t}\n\n\n\n\t\t\t\t\t// picView.setImageBitmap(graphicUtil.getRoundedShape(thePic));\n\t\t\t\n\t\t\t\t//\tpicview1.setImageBitmap(graphicUtil.getCircleBitmap(s, 16));\n\t\t\t\t//\tpicview1.setImageBitmap(cameraBitmap);\n\t\t\t\t//\tsavetoaFileLocation(s);\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}", "public void loadImagefromGallery(View view) {\n Intent intent = new Intent(Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\n intent.putExtra(\"crop\", \"true\");\n intent.putExtra(\"aspectX\", 50);\n intent.putExtra(\"aspectY\", 50);\n intent.putExtra(\"outputX\", 100);\n intent.putExtra(\"outputY\", 100);\n\n try {\n // Start the Intent\n startActivityForResult(intent, PICK_FROM_GALLERY);\n } catch (ActivityNotFoundException ae) {\n\n } catch (Exception e) {\n\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (resultCode == RESULT_OK)\n {\n //------------Received image from camera in device serial number------------------------\n if (requestCode == CAMERA_DEVICE_SERIAL_NUMBER)\n {\n Uri picUri = pictureUri;\n startCropImageActivity(picUri, CROP_CAMERA_SERIAL_NUMBER);\n Toast.makeText(UserAreaActivity.this, \"Serial Number Image Saved!\", Toast.LENGTH_SHORT).show();\n }\n\n //---------------Cropped image from camera in device serial number----------------------\n if (requestCode == CROP_CAMERA_SERIAL_NUMBER)\n {\n CropImage.ActivityResult result = CropImage.getActivityResult(data);\n Croppedimage(result, ivDeviceSerialNumber, etDeviceSerialNumber);\n }\n\n //------------Received image from gallery in device serial number-----------------------\n if (requestCode == GALLERY_DEVICE_SERIAL_NUMBER)\n {\n startCropImageActivity(data.getData(), CROP_GALLERY_SERIAL_NUMBER);\n Toast.makeText(UserAreaActivity.this, \"Image from gallery\", Toast.LENGTH_SHORT).show();\n }\n\n //--------------Cropped image from gallery in device serial number----------------------\n if(requestCode == CROP_GALLERY_SERIAL_NUMBER)\n {\n CropImage.ActivityResult result = CropImage.getActivityResult(data);\n Croppedimage(result, ivDeviceSerialNumber, etDeviceSerialNumber);\n }\n\n }\n\n }", "@Method(selector = \"crop:imagePath:width:height:x:ycompletionBlock:\")\n\tpublic native void crop(String name, String imagePath, int width, int height, int x, int y, @Block App42ResponseBlock completionBlock);", "@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\r\n super.onActivityResult(requestCode, resultCode, data);\r\n mImageUri = data.getData();\r\n if (requestCode == GALLERY_REQUEST && resultCode == Activity.RESULT_OK) {\r\n mImageUri = data.getData();\r\n if (data.getData() == null) {\r\n Toast.makeText(this, \"Failed to load Image,try again\", Toast.LENGTH_LONG).show();\r\n return;\r\n }\r\n try {\r\n outputUri =new getFileName(context).getDataFilesThumbnailUriPath(String.valueOf(System.currentTimeMillis()),context);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n CropImage.activity(mImageUri)\r\n .setGuidelines(CropImageView\r\n .Guidelines.ON)\r\n .setAspectRatio(1, 1)\r\n .setBackgroundColor(getApplicationContext().getResources().getColor(R.color.background))\r\n .setActivityMenuIconColor(getApplicationContext().getResources().getColor(R.color.colorPrimary))\r\n .setOutputUri(outputUri)\r\n .start(this);\r\n }\r\n if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) {\r\n CropImage.ActivityResult result = CropImage.getActivityResult(data);\r\n if (resultCode == RESULT_OK) {\r\n resultUri =Uri.fromFile(new File(new CompressingImage5kb(String.valueOf(System.currentTimeMillis()),context).compressImage(String.valueOf(result.getUri()),\"\",true)));\r\n mCircleImageView.setImageURI(resultUri);\r\n } else if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE) {\r\n Exception error = result.getError();\r\n }\r\n }\r\n }", "public static void performCrop(Activity activity, Uri picUri) {\n try {\n // call the standard crop action intent (the user device may not\n // support it)\n Intent cropIntent = new Intent(\"com.android.camera.action.CROP\");\n // indicate image type and Uri\n cropIntent.setDataAndType(picUri, \"image/*\");\n // set crop properties\n cropIntent.putExtra(\"crop\", \"true\");\n // indicate aspect of desired crop\n cropIntent.putExtra(\"aspectX\", 2);\n cropIntent.putExtra(\"aspectY\", 1);\n // indicate output X and Y\n cropIntent.putExtra(\"outputX\", 256);\n cropIntent.putExtra(\"outputY\", 256);\n // retrieve data on return\n cropIntent.putExtra(\"return-data\", true);\n // start the activity - we handle returning in onActivityResult\n activity.startActivityForResult(cropIntent, CROP_IMAGE);\n }\n // respond to users whose devices do not support the crop action\n catch (ActivityNotFoundException anfe) {\n Toast toast = Toast\n .makeText(activity, \"This device doesn't support the crop action!\", Toast.LENGTH_SHORT);\n toast.show();\n }\n\n }", "private void getSetCropImage(Uri fileUri) {\n CropImage.activity(fileUri)\n .setGuidelines(CropImageView.Guidelines.ON)\n .setMinCropWindowSize(100, 100)\n .setAspectRatio(1, 1)\n .setFixAspectRatio(true)\n .setCropShape(CropImageView.CropShape.RECTANGLE)\n .start((Activity) mContext);\n }", "public native MagickImage cropImage(Rectangle chopInfo)\n\t\t\tthrows MagickException;", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == CropImage.PICK_IMAGE_CHOOSER_REQUEST_CODE && resultCode == Activity.RESULT_OK) {\n Uri imageUri = CropImage.getPickImageResultUri(this, data);\n startCropImageActivity(imageUri);\n }\n\n // handle result of CropImageActivity\n if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) {\n CropImage.ActivityResult result = CropImage.getActivityResult(data);\n if (resultCode == RESULT_OK) {\n mCroppedImageUri = result.getUri();\n mImageView.setImageURI(mCroppedImageUri);\n }\n }\n }", "public void getCroppedBitmap(final OnResultListener onResultListener) {\n setProgressBarVisibility(VISIBLE);\n AsyncTask.execute(new Runnable() {\n @Override\n public void run() {\n try {\n ContentResolver resolver = getContext().getContentResolver();\n InputStream inputStream = resolver.openInputStream(imageUri);\n Bitmap bitmap = BitmapFactory.decodeStream(inputStream);\n\n //rotate image\n Matrix matrix = new Matrix();\n matrix.postRotate(getOrientation() + getRotation());\n\n bitmap = Bitmap.createBitmap(bitmap, 0, 0,\n bitmap.getWidth(), bitmap.getHeight(), matrix, true);\n\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 90, outputStream);\n byte[] bitmapData = outputStream.toByteArray();\n ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(bitmapData);\n\n BitmapRegionDecoder decoder = BitmapRegionDecoder.\n newInstance(byteArrayInputStream, false);\n\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inSampleSize = 1;\n options.inJustDecodeBounds = false;\n\n Bitmap croppedBitmap = decoder.decodeRegion(cropRect, options);\n decoder.recycle();\n\n final Result result = new Result(imageUri, croppedBitmap);\n CropImageView.this.post(new Runnable() {\n @Override\n public void run() {\n onResultListener.onResult(result);\n setProgressBarVisibility(GONE);\n }\n });\n } catch (Exception | OutOfMemoryError e) {\n e.printStackTrace();\n CropImageView.this.post(new Runnable() {\n @Override\n public void run() {\n onResultListener.onResult(new Result(getImageUri(), null));\n setProgressBarVisibility(GONE);\n }\n });\n }\n }\n });\n }", "private void manageCrops() {\r\n// System.out.println(\"\\nThis is manage the crops option\");\r\n CropView.runCropsView();\r\n }", "@Method(selector = \"crop:imageData:width:height:x:y:completionBlock:\")\n\tpublic native void crop(String name, NSData imageData, int width, int height, int x, int y, @Block App42ResponseBlock completionBlock);", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) {\n CropImage.ActivityResult result = CropImage.getActivityResult(data);\n if (resultCode == RESULT_OK) {\n croppedURI = result.getUri();\n\n try {\n bitmap = MediaStore.Images.Media.getBitmap(this.getContentResolver(), croppedURI);\n\n Intent intent = new Intent(UploadHonjouActivity.this, ConfirmActivity.class);\n\n SharedPrefManager.getInstance(this).saveHonjou(getStringImage(bitmap));\n\n intent.putExtra(\"edit_flag\", false);\n\n startActivity(intent);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n } else if (resultCode == CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE) {\n\n }\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n\n if (resultCode != RESULT_OK) {\n return;\n }\n\n switch (requestCode) {\n // Camera Implementation\n case REQUEST_CODE_CAMERA_PERMISSION:\n isPhotoTakenFromCamera = true;\n Bitmap rotatedBitmap = imageOrientationValidator(mPhotoFile); // check orientation\n if (rotatedBitmap != null) {\n try {\n FileOutputStream fOut = new FileOutputStream(mPhotoFile);\n rotatedBitmap.compress(Bitmap.CompressFormat.JPEG, 100, fOut);\n fOut.flush();\n fOut.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n // Send image taken from camera for cropping\n mImageCaptureUri = FileProvider.getUriForFile(this,\n BuildConfig.APPLICATION_ID,\n mPhotoFile);\n beginCrop(mImageCaptureUri);\n }\n break;\n\n // Gallery implementation here\n case REQUEST_CODE_GALLERY:\n isPhotoTakenFromCamera = false;\n if (data != null){\n beginCrop(data.getData());\n }\n break;\n\n //Crop implementation\n case Crop.REQUEST_CROP:\n // Update image view after image crop\n handleCrop(resultCode, data);\n // Delete temporary image taken by camera after crop.\n if (isPhotoTakenFromCamera) {\n File f = new File(Objects.requireNonNull(mImageCaptureUri.getPath()));\n if (f.exists()) {\n f.delete();\n }\n }\n break;\n\n }\n super.onActivityResult(requestCode, resultCode, data);\n }", "@Override\n @SuppressLint(\"NewApi\")\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == CropImage.PICK_IMAGE_CHOOSER_REQUEST_CODE && resultCode == Activity.RESULT_OK) {\n Uri imageUri = CropImage.getPickImageResultUri(this, data);\n\n // For API >= 23 we need to check specifically that we have permissions to read external storage.\n if (CropImage.isReadExternalStoragePermissionsRequired(this, imageUri)) {\n // request permissions and handle the result in onRequestPermissionsResult()\n cropImageUri = imageUri;\n Log.d(TAG, \"onActivityResult PICK_IMAGE_CHOOSER_REQUEST_CODE:\" + cropImageUri);\n requestPermissions(new String[]{Manifest.permission.READ_EXTERNAL_STORAGE}, CropImage.PICK_IMAGE_PERMISSIONS_REQUEST_CODE);\n } else {\n // no permissions required or already grunted, can start crop image activity\n Log.d(TAG, \"onActivityResult PICK_IMAGE_CHOOSER_REQUEST_CODE no permission:\" + imageUri);\n startCropImageActivity(imageUri);\n\n }\n } else if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) {\n CropImage.ActivityResult result = CropImage.getActivityResult(data);\n if (resultCode == RESULT_OK) {\n Uri resultUri = result.getUri();\n Log.d(TAG, \"CROP_IMAGE_ACTIVITY_REQUEST_CODE ok:\" + resultUri);\n cropImageUri = resultUri;\n if (optionFragment == null) {\n vpSubArea.setAdapter(new TabsAdapter(getSupportFragmentManager()));\n }\n optionFragment.setVoteImage(resultUri);\n } else if (resultCode == CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE) {\n Exception error = result.getError();\n }\n }\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t \t\n\t \tclass ToSaveCropped{\n\t \t\t\n\t \t\tfloat x=finalx;\n\t \t\tfloat y=finaly;\n\n\t\t\t\t\tprivate byte[] data = MainActivity.getbitmapData();\n\t\t\t Bitmap mImage = BitmapFactory.decodeByteArray(data, 0, data.length);\n\t\t\t \n\t\t\t Drawable myMask = getResources().getDrawable(R.drawable.mask);\n\t\t\t Bitmap mMask = ((BitmapDrawable) myMask).getBitmap();\n\t\t\t Bitmap mmImage = dv.bitmapRotate(mImage);\n\t\t\t \n\t\t\t Bitmap mmmImage = dv.getResizedBitmap(mmImage,height,width);\n\t\t\t \n\t\t\t Bitmap mmMask = dv.getResizedBitmap(mMask,wMask,wMask);\n\t\t\t\t\t\n\t\t\t\t\tpublic void onDraw(){\n\t\t\t\t\t\tCanvas canvas; \t\t\t\n\t \t\t\tint w = mmMask.getWidth(), h = mmMask.getHeight();\n\t \t\t\tBitmap.Config conf = Bitmap.Config.ARGB_8888; // see other conf types\n\t \t\t\tcroppedBitmap = Bitmap.createBitmap(w, h, conf); // this creates a MUTABLE bitmap\n\t \t\t\tcanvas = new Canvas(croppedBitmap);\n\t \t\t\t\n\t \t\t\tPaint maskPaint = new Paint();\n\t \t\t\tmaskPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DST_IN));\n\n\t Paint imagePaint = new Paint();\n\t imagePaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DST_OVER));\n\t \t\t\t//Log.i(\"\"+x,\"\"+y);\n\t \t//canvas.drawBitmap(mMask,x,y,maskPaint);\n\t \tcanvas.drawBitmap(mmmImage,-x,-y,imagePaint);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t \t}\t \t\n\t \tToSaveCropped tsc = new ToSaveCropped();\n\t \ttsc.onDraw();\n\t \tByteArrayOutputStream stream = new ByteArrayOutputStream();\n\t \tcroppedBitmap.compress(Bitmap.CompressFormat.PNG, 100, stream);\n\t \tbitData = stream.toByteArray();\n\t\t\t\t\n\t\t\t\tSaveFile sv = new SaveFile();\n\t\t\t\tsv.save();\n\t\t\t\t\n\t\t\t\tMediaStore.Images.Media.insertImage(getContentResolver(), croppedBitmap, \"\", \"\");\n\t\t\t\t\n\t\t\t}", "private void setPic() {\n int targetW = img_clip.getWidth();\n int targetH = img_clip.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n img_clip.setImageBitmap(bitmap);\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tif (resultCode != RESULT_OK) {\n\t\t\tLog.d(\"CS65\", \"Camera error: result not ok.\");\n\t\t\treturn;\n\t\t}\n\n\t\tswitch (requestCode) {\n\t\tcase REQUEST_CODE_CHOOSE_FROM_GALLERY:\n\t\t\t// Allow user to choose image from internal gallery.\n\t\t\tLog.d(\"CS65\", \"entered choose from gallery request\");\n\t\t\tmImageCaptureUri = data.getData();\n\t\t\tcropImage();\n\t\t\tbreak;\n\n\t\tcase REQUEST_CODE_TAKE_FROM_CAMERA:\n\t\t\t// Allow user to take a photo from the camera.\n\t\t\t// Send image taken from camera for cropping\n\t\t\tcropImage();\n\t\t\tbreak;\n\n\t\tcase REQUEST_CODE_CROP_PHOTO:\n\t\t\t// Update image view after image crop.\n\t\t\tBundle extras = data.getExtras();\n\t\t\t// Set the picture image in UI\n\t\t\tif (extras != null) {\n\t\t\t\t// Convert bitmap to a byte array and load.\n\t\t\t\tBitmap photo = (Bitmap) extras.getParcelable(\"data\");\n\t\t\t\tbitToByte(photo);\n\t\t\t\tloadImage();\n\t\t\t}\n\n\t\t\t// Delete temporary image taken by camera after crop.\n\t\t\tif (isTakenFromCamera) {\n\t\t\t\tFile f = new File(mImageCaptureUri.getPath());\n\t\t\t\tif (f.exists())\n\t\t\t\t\tf.delete();\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n public boolean onSelection(MaterialDialog dialog, View view, int which, CharSequence text) {\n if(which == 1){\n Crop.pickImage(ProductDetailActivity.this);\n }\n return true;\n }", "@Override\n public void dataLoaded(Bitmap bitmap) {\n ivCrop.setImageToCrop(bitmap);\n Bitmap bm = null;\n if (ivCrop.canRightCrop()) bm = ivCrop.crop();\n if (bm != null) ivShow.setImageBitmap(bm);\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\n super.onActivityResult(requestCode, resultCode, data);\n\n //this checks the checked imaged,so there should be no null image...\n if(requestCode== GalleryPic && resultCode == RESULT_OK && data != null) {\n Uri ImageUri = data.getData(); //here we getting the image.....in ImageUri\n\n //When the user Select the image he will be redirected to the Image Cropping Activity...\n CropImage.activity(ImageUri)\n .setAspectRatio(1,1)\n .setCropShape(CropImageView.CropShape.OVAL)\n .start(this);\n }\n //THIS CHECKS WHETHER WE SELECT THE CROP OPTION...\n if(requestCode==CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE)\n {\n //HERE WE GETTING CROPPED IMAGE...\n CropImage.ActivityResult result= CropImage.getActivityResult(data);\n\n if(resultCode == RESULT_OK) //IF CROPPING SUCCESSFULL...\n {\n loadingBar.setTitle(\"Saving Information\");\n loadingBar.setMessage(\"Please wait until we update your Profile Image\");\n loadingBar.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n loadingBar.show();\n loadingBar.setCanceledOnTouchOutside(true);\n\n //THIS OBJECTS CONTAINS THE CROPPED IMAGE....\n Uri resultUri =result.getUri();\n\n //WE STORING THE STORAGE REFERENCE AS A USERID.JPG.....\n StorageReference filePath = UserProfileImageRef.child(CurrentUserId + \".jpg\");\n\n //HERE STORING THE FILE IN filePath OBJECT..\n filePath.putFile(resultUri).addOnCompleteListener(new OnCompleteListener<UploadTask.TaskSnapshot>() {\n @Override\n public void onComplete(@NonNull Task<UploadTask.TaskSnapshot> task) {\n if(task.isSuccessful())\n {\n Toast.makeText(SetupActivity.this,\"Profile Image Stored to Database Successfully\",Toast.LENGTH_SHORT).show();\n\n //FINALLY STORING THE IMAGE IN DATABASE IN FIREBASE STORAGE...\n final String downloadUrl = task.getResult().getDownloadUrl().toString();\n UsersRef.child(\"profileImage\").setValue(downloadUrl).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if(task.isSuccessful())\n {\n //REDIRECTING TO SETUP ACTIVITY FROM CROPPING ACTIVITY....\n Intent selfIntent = new Intent(SetupActivity.this,SetupActivity.class);\n startActivity(selfIntent);\n Toast.makeText(SetupActivity.this, \"Profile Image is Stored Successfully\", Toast.LENGTH_SHORT).show();\n loadingBar.dismiss();\n }\n else{\n String message =task.getException().getMessage();\n Toast.makeText(SetupActivity.this, \"Error Occurred :\" +message, Toast.LENGTH_SHORT).show();\n loadingBar.dismiss();\n }\n }\n });\n }\n }\n });\n\n }\n\n else{\n //IF THE IMAGE IS UNABLE TO CROP...\n Toast.makeText(SetupActivity.this, \"Error Occurred : Image can't be Cropped,Try Again.\" , Toast.LENGTH_SHORT).show();\n loadingBar.dismiss();\n }\n\n }\n //else if(requestCode == CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE)\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n // choose a image\n if (requestCode == RequestCode.CHOOSE_IMAGE) {\n if (resultCode == RESULT_OK) {\n if (data != null) {\n Uri dataUri = data.getData();\n if (dataUri != null) {\n // get a random name\n File imgFile = SpaceUtils.newUsableFile();\n mSelectPath = imgFile.getPath();\n Log.v(\"path\",mSelectPath);\n // the image intent just return a simple image\n // the Ucrop(裁剪) is solved after the image intent\n UCrop.Options options = new UCrop.Options();\n options.setCompressionQuality(100);\n UCrop.of(dataUri, Uri.fromFile(imgFile))\n .withOptions(options)\n .withMaxResultSize(mImageSize.x, mImageSize.y)\n .withAspectRatio(3, 4)\n .start(this, RequestCode.CROP_IMAGE);\n }\n }\n }\n } else if (requestCode == RequestCode.CROP_IMAGE) {\n // crop a image\n if (resultCode == RESULT_OK) {\n if (data != null) {\n Glide.with(this).load(mSelectPath).into(mImageViews.get(mCurrentIndex));\n startDetectFaceInfo();\n }\n }\n }\n super.onActivityResult(requestCode, resultCode, data);\n }", "@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent returnedIntent) {\r\n super.onActivityResult(requestCode, resultCode, returnedIntent);\r\n try {\r\n // When an Image is picked\r\n if (resultCode == RESULT_OK && null != returnedIntent) {\r\n // Get the Image from data\r\n Uri imageLocation = returnedIntent.getData();\r\n InputStream imageStream = getContentResolver().openInputStream(imageLocation);\r\n Bitmap selectedImage = BitmapFactory.decodeStream(imageStream);\r\n selectedImage = getResizedBitmap(selectedImage,1080/4,1920/4);\r\n currentUserEdit.setImageBitmap(selectedImage);\r\n currentSaveCharacter.setImage(selectedImage);\r\n saveCharacters(context);\r\n }\r\n } catch (Exception e) {\r\n Toast.makeText(this, \"ImageGet ERROR\", Toast.LENGTH_LONG)\r\n .show();\r\n Log.d(\"ImageGet ERROR\", e.toString());\r\n }\r\n\r\n }", "private void startCropImageActivity(Uri imageUri) {\n\n\n CropImage.ActivityBuilder a = CropImage.activity(imageUri);\n a.setFixAspectRatio(true);\n a.setAspectRatio(4, 3);\n a.setGuidelines(CropImageView.Guidelines.ON);\n a.setAllowCounterRotation(true);\n a.setAllowRotation(false);\n a.setMultiTouchEnabled(false);\n a.start(this, ActivityCrop.class);\n\n }", "public void setPreviewBitmapWithCenterCrop(String previewPath)\n {\n if (previewPath != null) {\n // Set the preview image via Glide Library\n Glide.with(ITFImageView.this)\n .load(new File(previewPath)) // Uri of the picture\n .apply(new RequestOptions().transforms(new CropTransformation(300, 200, CropTransformation.CropType.CENTER)))\n .into(ITFImageView.this);\n }\n }", "private void startCropImageActivity(Uri imageUri) {\n CropImage.activity(imageUri)\n .setGuidelines(CropImageView.Guidelines.ON)\n .setMultiTouchEnabled(true)\n .start(this);\n }", "public void setCropRect(Rect cropRect) {\n this.cropRect = cropRect;\n //invalidate();\n }", "private void beginCrop(Uri source) {\n // pass URI as intent to the CROP Activity;\n if (mPhotoFile != null) {\n Uri destination = FileProvider.getUriForFile(this,\n BuildConfig.APPLICATION_ID,\n mPhotoFile);\n Log.d(TAG, \"URI: \" + destination.toString());\n Crop.of(source, destination).asSquare().start(this);\n }\n }", "private void previewCapturedImage(){\n \ttry{\n \t\timgPreview.setVisibility(View.VISIBLE);\n \t\t\n \t\t//Bitmap Factory\n \t\tBitmapFactory.Options options = new BitmapFactory.Options();\n \t\t\n \t\t//Downsizing image as it throws OutOfMemory Exception for large images\n \t\toptions.inSampleSize = 4;\n \t\t\n \t\tfinal Bitmap bitmap = BitmapFactory.decodeFile(fileUri.getPath(), options);\n \t\t\n \t\timgPreview.setImageBitmap(bitmap);\n \t}catch(NullPointerException e){\n \t\te.printStackTrace();\n \t}catch(OutOfMemoryError e){\n \t\te.printStackTrace();\n \t}\n }", "private void previewCapturedImage() {\n try {\n imageProfile.setVisibility(View.VISIBLE);\n Log.d(\"preview\", currentPhotoPath);\n final Bitmap bitmap = CameraUtils.scaleDownAndRotatePic(currentPhotoPath);\n imageProfile.setImageBitmap(bitmap);\n } catch (NullPointerException e) {\n e.printStackTrace();\n }\n }", "@Override\r\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\r\n\t\tif (requestCode == CAMERA_REQUEST_CODE) {\r\n\t\t\tif (data == null) {\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tBundle extras = data.getExtras();\r\n\t\t\t\tif (extras != null) {\r\n\t\t\t\t\tBitmap bm = extras.getParcelable(\"data\");\r\n\t\t\t\t\tUri uri = saveBitmap(bm);\r\n\t\t\t\t\tstartImageZoom(uri);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else if (requestCode == GALLERY_REQUEST_CODE) {\r\n\t\t\tif (data == null) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tUri uri;\r\n\t\t\turi = data.getData();\r\n\t\t\tUri fileUri = convertUri(uri);\r\n\t\t\tstartImageZoom(fileUri);\r\n\t\t} else if (requestCode == CROP_REQUEST_CODE) {\r\n\t\t\tif (data == null) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tBundle extras = data.getExtras();\r\n\t\t\tif (extras == null) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tbm = extras.getParcelable(\"data\");\r\n\t\t\tiv_user_img.setImageBitmap(bm);\r\n\t\t\t// sendImage(bm);\r\n\t\t}\r\n\t}", "public interface Listener {\n void onCropImage(Bitmap original, Bitmap croppedBitmap);\n }", "private void setPic() {\n int targetW = 210;\n int targetH = 320;\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(previewPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(previewPhotoPath, bmOptions);\n bitmap = RotateBitmap(bitmap,270);\n preview.setImageBitmap(bitmap);\n }", "public static void loadTakenImage(Bitmap takenImage, ImageView imageView, Context context) {\n RequestOptions circleProp = new RequestOptions();\n circleProp = circleProp.transform(new CircleCrop());\n Glide.with(context)\n .load(takenImage)\n .apply(circleProp)\n .into(imageView);\n }", "public void onClick(View v) {\n\t\t\tFile avator=new File(FileUtil.getImgPath(),\"avator.jpg\");\n\t\t\tif(avator.exists())\n\t\t\t\tavator.delete();\n\t\t\ttry {\n\t\t\t\tavator.createNewFile();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\timageUri=Uri.fromFile(avator);//将file对象转换为uri对象。\n\t\t\tIntent intent=new Intent(\"com.android.camera.action.CROP\");\n\t\t\tintent.setAction(Intent.ACTION_PICK);\n\t\t\tintent.setType(\"image/*\");\n\t\t\tintent.putExtra(\"crop\", true);\n\t\t\tintent.putExtra(\"scale\", true);\n\t\t\tintent.putExtra(MediaStore.EXTRA_OUTPUT, imageUri);\n\t\t\tstartActivityForResult(intent, ADAVTOR_CONST);\n\t\t}", "@Override\n protected void onImageLaidOut() {\n super.onImageLaidOut();\n final Drawable drawable = getDrawable();\n if (drawable == null) {\n return;\n }\n\n float drawableWidth = drawable.getIntrinsicWidth();\n float drawableHeight = drawable.getIntrinsicHeight();\n\n if (mTargetAspectRatio == SOURCE_IMAGE_ASPECT_RATIO) {\n mTargetAspectRatio = drawableWidth / drawableHeight;\n }\n\n int height = (int) (mThisWidth / mTargetAspectRatio);\n if (height > mThisHeight) {\n int width = (int) (mThisHeight * mTargetAspectRatio);\n int halfDiff = (mThisWidth - width) / 2;\n mCropRect.set(halfDiff, 0, width + halfDiff, mThisHeight);\n } else {\n int halfDiff = (mThisHeight - height) / 2;\n mCropRect.set(0, halfDiff, mThisWidth, height + halfDiff);\n }\n\n calculateImageScaleBounds(drawableWidth, drawableHeight);\n setupInitialImagePosition(drawableWidth, drawableHeight);\n\n if (mCropBoundsChangeListener != null) {\n mCropBoundsChangeListener.onCropAspectRatioChanged(mTargetAspectRatio);\n }\n if (mTransformImageListener != null) {\n// mTransformImageListener.onScale(getCurrentScale());\n// mTransformImageListener.onRotate(getCurrentAngle());\n mTransformImageListener.onBrightness(getCurrentBrightness());\n// mTransformImageListener.onContrast(getCurrentContrast());\n }\n }", "protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n switch (requestCode) {\n case SELECTED_PICTURE:\n if (resultCode == RESULT_OK) {\n uri = data.getData();\n\n\n Log.e(\"Image path is \", \"\" + uri);\n String[] projection = {MediaStore.Images.Media.DATA};\n\n Cursor cursor = getContentResolver().query(uri, projection,\n null, null, null);\n cursor.moveToFirst();\n\n int columnIndex = cursor.getColumnIndex(projection[0]);\n String filePath = cursor.getString(columnIndex);\n String path = filePath;\n img = path;\n\n cursor.close();\n\n\n Bitmap yourSelectedImage = BitmapFactory.decodeFile(filePath);\n\n Drawable d = new BitmapDrawable(yourSelectedImage);\n\n newImage.setImageDrawable(d);\n Toast.makeText(getApplicationContext(), filePath,\n Toast.LENGTH_SHORT).show();\n\n\n\n }\n break;\n\n default:\n break;\n }\n }", "private void processAndSetImage() {\n\n // Resample the saved image to fit the ImageView\n mResultsBitmap = resamplePic(this, mTempPhotoPath);\n\n// tv.setText(base64conversion(photoFile));\n//\n// Intent intent = new Intent(Intent.ACTION_SEND);\n// intent.setType(\"text/plain\");\n// intent.putExtra(Intent.EXTRA_TEXT, base64conversion(photoFile));\n// startActivity(intent);\n\n /**\n * UPLOAD IMAGE USING RETROFIT\n */\n\n retroFitHelper(base64conversion(photoFile));\n\n // Set the new bitmap to the ImageView\n imageView.setImageBitmap(mResultsBitmap);\n }", "@TargetApi(Build.VERSION_CODES.KITKAT)\n @Override\n public void onFinishTakeKitkatPhoto(int requestCode, Uri uri\n , int takeFlags, ContentResolver contentResolver, Cursor imageCursor) {\n contentResolver.takePersistableUriPermission(uri, takeFlags);\n\n String selectedImagePath = null;\n if (imageCursor.moveToFirst()) {\n selectedImagePath = imageCursor.getString(imageCursor.getColumnIndex(MediaStore.Images.Media.DATA));\n }\n doCropImage(selectedImagePath);\n //doLoadImage(selectedImagePath);\n //profileDetailView.doCrop(selectedImagePath);\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if(requestCode == TAKE_IMAGE && resultCode == RESULT_OK){\n Bundle extra = data.getExtras();\n bitmap = (Bitmap) extra.get(\"data\");\n imageView.setImageBitmap(bitmap);\n }\n else {\n if (requestCode == SELECT_IMAGE && resultCode == RESULT_OK) {\n Uri targetUri = data.getData();\n Toast.makeText(getApplicationContext(), targetUri.toString(), Toast.LENGTH_SHORT).show();\n //textTargetUri.setText(targetUri.toString());\n Bitmap bitmap;\n try {\n\n bitmap = BitmapFactory.decodeStream(getContentResolver().openInputStream(targetUri));\n imageView.setImageBitmap(bitmap);\n } catch (FileNotFoundException e) {\n\n e.printStackTrace();\n }\n /*String[] filePathColumn = {MediaStore.Images.Media.DATA};\n\n\t\t\tCursor cursor = getContentResolver().query(data.getData(), filePathColumn, null, null, null);\n\t\t\tcursor.moveToFirst();\n\n\t\t\tint columnIndex = cursor.getColumnIndex(filePathColumn[0]);\n\n\t\t\tString filePath = cursor.getString(columnIndex);\n\t\t\tcursor.close();\n\n\t\t\tBitmap yourSelectedImage = BitmapFactory.decodeFile(filePath);\n\t\t\tToast.makeText(getApplicationContext(), filePath, 1000).show();\n\t\t\timageView.setImageBitmap(yourSelectedImage);\n*/\n }\n }\n if(requestCode == 0 && resultCode == RESULT_OK){\n Bundle extra = data.getExtras();\n bitmap = (Bitmap) extra.get(\"data\");\n // imageView.setImageBitmap(bitmap);\n\n\n File root = Environment.getExternalStorageDirectory();\n File file = new File(root.getAbsolutePath()+\"/DCIM/Camera/img.jpg\");\n try\n {\n file.createNewFile();\n FileOutputStream ostream = new FileOutputStream(file);\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, ostream);\n ostream.close();\n }\n catch (Exception e)\n {\n e.printStackTrace();\n Toast.makeText(this,\"Failed to save image, try again\",Toast.LENGTH_LONG).show();\n }\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n\n if (requestCode == CAPTURE_IMAGE_REQUEST && resultCode == RESULT_OK) {\n Bitmap myBitmap = BitmapFactory.decodeFile(photoFile.getAbsolutePath());\n imgDisplay.setImageBitmap(myBitmap);\n textPath.setText(photoFile.getName());\n } else {\n displayMessage(getBaseContext(), \"Request cancelled or something went wrong.\");\n }\n\n }", "private void setPic() {\n int targetW = imageView.getWidth();\n int targetH = imageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n imageView.setImageBitmap(bitmap);\n imageView.invalidate();\n }", "@Override\n\t protected int getCropItem()\n\t {\n\t\t return cropID;\n\t }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data)\n {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (resultCode == RESULT_OK) {\n if (requestCode == SELECT_PICTURE) {\n\n Uri selectedImageURI = data.getData();\n\n image_uri.setText(selectedImageURI.toString());\n Picasso.with(getBaseContext()).load(selectedImageURI).noPlaceholder().centerCrop().fit()\n .into((ImageView) findViewById(R.id.imageViewCountry));\n\n }\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode == PICK_IMAGE_REQUEST && resultCode == RESULT_OK && data != null && data.getData() != null) {\n FilePathUri = data.getData();\n try {\n bitmap = MediaStore.Images.Media.getBitmap(getContentResolver(), FilePathUri);\n cowImage.setImageBitmap(bitmap);\n galleryChoose.setText(\"Image Selected\");\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }else if (requestCode == 123) {\n File imgFile = new File(pictureImagePath);\n if(imgFile.exists()){\n FilePathUri = Uri.parse(pictureImagePath);\n FilePathUri = photoURI;\n Bitmap myBitmap = BitmapFactory.decodeFile(imgFile.getAbsolutePath());\n //ImageView myImage = (ImageView) findViewById(R.id.imageviewTest);\n cowImage.setImageBitmap(myBitmap);\n\n }\n }\n else{\n System.out.println(\"error\" );\n }\n }", "private void setPic() {\n int targetW = imageView.getMaxWidth();\n int targetH = imageView.getMaxHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(currentPhotoPath, bmOptions);\n bitmap = Bitmap.createScaledBitmap(bitmap, 1280, 960,false);\n Log.d(\"demo\", \"setPic: \"+ bitmap.getWidth()+\" \"+bitmap.getHeight());\n Log.d(\"demo\", \"setPic: \"+ bitmap.getByteCount()/1000);\n imageView.setImageBitmap(bitmap);\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n String[] galleryPermissions = {Manifest.permission.READ_EXTERNAL_STORAGE, Manifest.permission.WRITE_EXTERNAL_STORAGE};\n if (EasyPermissions.hasPermissions(this, galleryPermissions)) {\n if (requestCode == RESULT_LOAD_IMAGE && resultCode == RESULT_OK && null != data) {\n Uri selectedImage = data.getData();\n String[] filePathColumn = {MediaStore.Images.Media.DATA};\n if (selectedImage != null) {\n Cursor cursor = getContentResolver().query(selectedImage,\n filePathColumn, null, null, null);\n cursor.moveToFirst();\n\n int columnIndex = cursor.getColumnIndex(filePathColumn[0]);\n String picturePath = cursor.getString(columnIndex);\n cursor.close();\n\n ImageView imgView = (ImageView) findViewById(R.id.imgView);\n Bitmap pic = BitmapFactory.decodeFile(picturePath);\n imgView.setImageBitmap(pic);\n bitmapList = cutImage(pic);\n updateTileButtons();\n displayToast(\"Upload picture successfully!\");\n }\n }\n } else {\n EasyPermissions.requestPermissions(this, \"Access for storage\",\n 101, galleryPermissions);\n }\n }", "private void setPic() {\n int targetW = mainImageView.getWidth();\n int targetH = mainImageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n// bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n mainImageView.setImageBitmap(bitmap);\n\n// bmOptions.inBitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n// mainImageView.setImageBitmap(bmOptions.inBitmap);\n }", "@Override\n public void onClick(View v) {\n CropImage.activity()\n .setGuidelines(CropImageView.Guidelines.ON)\n .start(SettingActivityDonor.this);\n\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tif (resultCode == RESULT_OK) {\n\n\t\t\tif (requestCode == Constants.REQUEST_CODE_PROFILE_IMAGE_CAMERA) {\n\n\t\t\t\tUri imageUri = Utilities.createImage();\n\t\t\t\tUtilities.startCropImage(ProfileActivity.this,\n\t\t\t\t\t\tConstants.REQUEST_CODE_PROFILE_IMAGE_CROP, imageUri);\n imageUriUpload = imageUri;\n\t\t\t} else if (requestCode == Constants.REQUEST_CODE_PROFILE_IMAGE_GALLERY) {\n\n\t\t\t\tUri imageUri = data.getData();\n\t\t\t\tUtilities.startCropImage(ProfileActivity.this,\n\t\t\t\t\t\tConstants.REQUEST_CODE_PROFILE_IMAGE_CROP, imageUri);\n imageUriUpload = imageUri;\n\t\t\t} else if (requestCode == Constants.REQUEST_CODE_PROFILE_IMAGE_CROP) {\n\n\t\t\t\tBundle extras = data.getExtras();\n\t\t\t\tBitmap imgBmp = extras.getParcelable(\"data\");\n\t\t\t\tmProfileImg.setImageBitmap(imgBmp);\n\t\t\t\tmProfileImg.setTag(imgBmp);\n\t\t\t\tisImageChanged = true;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "private void setPic() {\n int targetW = mImageView.getWidth();\n int targetH = mImageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW / targetW, photoH / targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\n// Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n mImageView.setImageBitmap(bitmap);\n }", "private void setImage(String image) {\n Bitmap bitmap;\n try {\n byte[] encodeByte = Base64.decode(image, Base64.DEFAULT);\n bitmap = BitmapFactory.decodeByteArray(encodeByte, 0, encodeByte.length);\n } catch (Exception e) {\n e.getMessage();\n Log.d(\"No valid image\", \"setImage: Failed\");\n return;\n }\n\n ImageView imgView = (ImageView) findViewById(R.id.cameraView);\n if (imgView != null && image != null) {\n imgView.setImageBitmap(bitmap);\n }\n }", "private void startCropImageActivity(Uri imageUri, int requestCode) {\n Intent vCropIntent = CropImage.activity(imageUri)\n .setGuidelines(CropImageView.Guidelines.ON)\n .setMultiTouchEnabled(true)\n .getIntent(this);\n\n startActivityForResult(vCropIntent, requestCode);\n }", "public String getCropName(){\n return this.cropName;\n }", "private void setPic() {\n int targetW = mImageView.getWidth();\n int targetH = mImageView.getHeight();\n\n\t\t/* Get the size of the image */\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n\t\t/* Figure out which way needs to be reduced less */\n int scaleFactor = 1;\n if ((targetW > 0) || (targetH > 0)) {\n scaleFactor = Math.min(photoW / targetW, photoH / targetH);\n }\n\n\t\t/* Set bitmap options to scale the image decode target */\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n\t\t/* Decode the JPEG file into a Bitmap */\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\n\t\t/* Associate the Bitmap to the ImageView */\n mImageView.setImageBitmap(bitmap);\n mTextView.setText(mCurrentPhotoPath);\n\n // SendImage(mCurrentPhotoPath);\n\n // AsyncCallWS task = new AsyncCallWS();\n // Call execute\n // task.execute();\n }", "@Override\n\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\tnew AlertDialog.Builder(TianJia.this).setTitle(\"获得美食\")\n\t\t\t\t\t\t.setNegativeButton(\"取存货\", new DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\tif (mIsKitKat) {\n\t\t\t\t\t\t\t\t\tselectImageUriAfterKikat();\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tcropImageUri();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}).setPositiveButton(\"现烹饪\", new DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\tIntent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n\t\t\t\t\t\t\t\tintent.putExtra(MediaStore.EXTRA_OUTPUT,\n\t\t\t\t\t\t\t\t\t\tUri.fromFile(new File(IMGPATH, IMAGE_FILE_NAME)));\n\t\t\t\t\t\t\t\tstartActivityForResult(intent, TAKE_A_PICTURE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}).show();\n\t\t\t\t\t}", "private void setPic() {\n int targetW =200;\n int targetH = 300;\n\n\n\t\t/* Get the size of the image */\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n\t\t/* Figure out which way needs to be reduced less */\n int scaleFactor = 1;\n if ((targetW > 0) || (targetH > 0)) {\n scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n }\n\n\t\t/* Set bitmap options to scale the image decode target */\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n\t\t/* Decode the JPEG file into a Bitmap */\n bitmap1 = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\n Log.e(\"bitmap\", \"\" + bitmap1);\n mAdapter = new MyAdapter(Goonlineactivity2.this,TITLES,ICONS,NAME,EMAIL,PROFILE); // Creating the Adapter of MyAdapter class(which we are going to see in a bit)\n // And passing the titles,icons,header view name, header view email,\n // and header view profile picture\n\n mRecyclerView.setAdapter(mAdapter);\n //profile11.setImageBitmap(bitmap1);\n\n \t\t/* Associate the Bitmap to the ImageView */\n\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (resultCode == RESULT_OK) {\n if (requestCode == CommenString.TAKE_PHOTO) {\n cameraUtil.photoZoomFromTake(CropperImageScale.square);\n } else if (requestCode == CommenString.LOCAL_PHOTO) {\n List<String> selectedImage = data.getStringArrayListExtra(\"paths\");\n cameraUtil.photoZoomFromMapStorage(selectedImage.get(0),\n CropperImageScale.square);\n } else if (requestCode == CommenString.PHOTO_RESULT) {\n Bundle extras = data.getExtras();\n if (extras != null) {\n headBitmap = extras.getParcelable(\"data\");\n image_up.setImageBitmap(headBitmap);\n }\n } else {\n }\n }\n }", "private void setPic() {\n\t\tint targetW = Constant.sRealWidth;\n\t\tint targetH = Constant.sRealHeight;\n\n\t\t/* Get the size of the image */\n\t\tBitmapFactory.Options bmOptions = new BitmapFactory.Options();\n\t\tbmOptions.inJustDecodeBounds = true;\n\t\tBitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\t\tint photoW = bmOptions.outWidth;\n\t\tint photoH = bmOptions.outHeight;\n\t\t\n\t\t/* Figure out which way needs to be reduced less */\n\t\tint scaleFactor = 1;\n\t\tif ((targetW > 0) || (targetH > 0)) {\n\t\t\tscaleFactor = Math.min(photoW/targetW, photoH/targetH);\t\n\t\t}\n\n\t\t/* Set bitmap options to scale the image decode target */\n\t\tbmOptions.inJustDecodeBounds = false;\n\t\tbmOptions.inSampleSize = scaleFactor;\n\t\tbmOptions.inPurgeable = true;\n\n\t\t/* Decode the JPEG file into a Bitmap */\n\t\tBitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\t\t\n\t\tint rotate = ViewUtils.handleRotateBitmap(mCurrentPhotoPath);\n\t\tif (rotate != 0) {\n\t\t\tbitmap = ViewUtils.rotaingBitmap(\n\t\t\t\t\trotate, bitmap);\n\t\t}\n\t\t/* Associate the Bitmap to the ImageView */\n\t\tmPictureView.setImageBitmap(bitmap);\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n try {\n if (requestCode == PHOTO_REQUEST) {\n if (resultCode == RESULT_OK) {\n ArrayList<TImage> images = (ArrayList<TImage>) data.getSerializableExtra(\"images\");\n if (images != null && !images.isEmpty()) {\n String path = images.get(0).getOriginalPath();\n\n File file = new File(path);\n if (file != null && file.exists()) {\n this.img_head.setImageURI(Uri.parse(path));\n }\n uploadImage(file);\n }\n }\n } else if (requestCode == PHOTO_REQUEST_GALLERY) {\n if (data != null) {\n // 得到图片的全路径\n Uri uri = data.getData();\n crop(uri);\n }\n\n } else if (requestCode == PHOTO_REQUEST_CAMERA) {\n if (CommFunAndroid.hasSdcard()) {\n tempFile = new File(CommFunAndroid.getDiskCachePath(), PHOTO_FILE_NAME);\n crop(Uri.fromFile(tempFile));\n } else {\n showMsg(\"未找到存储卡,无法存储照片!\");\n }\n\n } else if (requestCode == PHOTO_REQUEST_CUT) {\n try {\n //将Uri图片转换为Bitmap\n InputStream inputStream = getContentResolver().openInputStream(uritempFile);\n\n\n bitmap = BitmapFactory.decodeStream(inputStream);\n\n\n// bitmap = data.getParcelableExtra(\"data\");\n this.img_head.setImageBitmap(bitmap);\n //showMsg(uritempFile.getPath());\n tempSmallFile = new File(uritempFile.getPath());\n uploadImage(tempSmallFile);//上传头像\n //boolean delete = tempFile.delete();\n //Log.i(\"register\", \"register tempFile delete = \" + delete);\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n super.onActivityResult(requestCode, resultCode, data);\n }", "public String GetCropType()\n {\n return this.cropType;\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == PICK_IMAGE && resultCode == RESULT_OK && data != null && data.getData() != null) {\n filePath = data.getData();\n try {\n Bitmap bitmap = MediaStore.Images.Media.getBitmap(getContentResolver(), filePath);\n Image_brand.setImageBitmap(bitmap);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "public int getCropType() {\n\n return cropType;\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == TAKE_IMAGE && resultCode == RESULT_OK) {\n Bundle extra = data.getExtras();\n bitmap = (Bitmap) extra.get(\"data\");\n saveImage(bitmap);\n imageView.setImageBitmap(bitmap);\n } else if (requestCode == SELECT_IMAGE && resultCode == RESULT_OK) {\n Uri targetUri = data.getData();\n Toast.makeText(getApplicationContext(), targetUri.toString(), Toast.LENGTH_LONG).show();\n Bitmap bitmap;\n try {\n\n bitmap = BitmapFactory.decodeStream(getContentResolver().openInputStream(targetUri));\n\n imageView.setImageBitmap(bitmap);\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n }", "public static Intent getCropImageIntent(Uri photoUri) {\n Intent intent = new Intent(\"com.android.camera.action.CROP\");\n intent.setDataAndType(photoUri, \"image/*\");\n intent.putExtra(\"crop\", \"true\");\n intent.putExtra(\"aspectX\", 1);\n intent.putExtra(\"aspectY\", 1);\n intent.putExtra(\"outputX\", ICON_SIZE);\n intent.putExtra(\"outputY\", ICON_SIZE);\n intent.putExtra(\"return-data\", true);\n return intent;\n }", "private void beginCrop(Uri source) {\n Uri destination = Uri.fromFile(new File(getCacheDir(), \"cropped\"));\n Crop.of(source, destination).asSquare().start(this);\n }", "private Bitmap setPic() {\n int targetH = 0; //mImageView.getHeight();\n int targetW = 0; //mImageView.getWidth();\n\n\n\t\t/* Get the size of the image */\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n if( photoH > photoW ){\n /*Se definen las dimensiones de la imagen que se desea generar*/\n targetH = Const.MedidasReduccionImagen.PEQUENA_PORTRAIT.heigh; // 640;\n targetW = Const.MedidasReduccionImagen.PEQUENA_PORTRAIT.width; //480;\n }else{\n targetH = Const.MedidasReduccionImagen.PEQUENA_LANDSCAPE.heigh; //480;\n targetW = Const.MedidasReduccionImagen.PEQUENA_LANDSCAPE.width; //640;\n }\n\n\t\t/* Figure out which way needs to be reduced less */\n int scaleFactor = 0;\n if ((targetW > 0) || (targetH > 0)) {\n scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n }\n\n\t\t/* Set bitmap options to scale the image decode target */\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n\t\t/* Decode the JPEG file into a Bitmap */\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\n return bitmap;\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == REQUEST_IMAGE_CAPTURE && resultCode == RESULT_OK) {\n Bundle extras = data.getExtras();\n Bitmap imageBitmap = (Bitmap) extras.get(\"data\");\n\n detextTextFromImage(imageBitmap);\n\n }\n }", "private void setPic() {\n int targetW = imageIV.getWidth();\n int targetH = imageIV.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n imageIV.setImageBitmap(bitmap);\n }", "private void setPic() {\n int targetW =20;// mImageView.getWidth();\n int targetH =20;// mImageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;//设置仅加载位图边界信息(相当于位图的信息,但没有加载位图)\n\n //返回为NULL,即不会返回bitmap,但可以返回bitmap的横像素和纵像素还有图片类型\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n mImageView.setImageBitmap(bitmap);\n }", "public void setCropName(String cropName) {\n\t\n\t\tthis.cropName = cropName;\n\t\n\t}", "public void selectImage(View view){\n Intent intent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.INTERNAL_CONTENT_URI);\n startActivityForResult(intent,PICK_IMAGE);\n }", "public void changePic(View v){\n //Intent gallery = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.INTERNAL_CONTENT_URI);\n //startActivityForResult(gallery,PICK_IMAGE);\n new AlertDialog.Builder(ProfileModify.this)\n .setIcon(android.R.drawable.ic_dialog_alert)\n .setTitle(\"Choose\")\n .setItems(Choose, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n if(which == 0) {\n Intent iGallery = new Intent(Intent.ACTION_PICK,MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(iGallery,PICK_GALLERY);\n }\n else {\n Intent iCamera = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n if(iCamera.resolveActivity(getPackageManager()) != null){\n startActivityForResult(iCamera,REQUEST_IMAGE_CAPTURE);\n }\n }\n }\n }).create().show();\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if(requestCode == REQUEST_IMAGE_CAPTURE && resultCode == RESULT_OK){\n Bundle extras = data.getExtras();\n imageBitmap = (Bitmap) extras.get(\"data\");\n imgFoto.setImageBitmap(imageBitmap);\n }\n }", "public String getCropName() {\n\t\n\t\treturn cropName;\n\t\n\t}", "public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n CropImage.ActivityResult result = CropImage.getActivityResult(data);\n if (resultCode == -1) {\n if (requestCode != 11) {\n String valueOf = String.valueOf(result.getUri());\n this.imageUri = valueOf;\n if (valueOf != null) {\n if (this.isattach.booleanValue()) {\n this.tv_attachfile.setText(this.imageUri);\n fileType = \"png\";\n Log.i(\"datafile\",result.toString() + \"\\n\" + result.getOriginalUri() + \"\\n\" + result.getUri());\n this.isattach = false;\n this.attach_file = this.imageUri;\n } else {\n this.eventphoto.setImageURI(Uri.parse(this.imageUri));\n this.upload_photo = this.imageUri;\n this.ismageEdited = true;\n }\n }\n } else if (requestCode == 11){\n this.tv_attachfilepdf.setText(data.getDataString());\n fileType = \"pdf\";\n\n String filePath = data.getData().getPath();\n String fileName = data.getData().getLastPathSegment();\n this.attach_file = data.getData().getPath();\n Log.i(\"file\", filePath + \"\\n\" + fileName + \"\\n\" + attach_file);\n\n /*uri = data.getData();\n this.attach_file = data.getData().toString();\n Log.i(\"uriii\", uri.toString());\n File file2 = new File(this.attach_file);\n Log.i(\"uriiName\", file2.getName());\n Log.i(\"uriiPath\", file2.getPath());\n Log.i(\"uriiParent\", file2.getParent());*/\n }\n }\n }", "private void cropEffect(int x, int y, int width, int height) {\n // int que estigui dins la imatge\n EffectFactory factory = effectContext.getFactory();\n effect = factory.createEffect(EffectFactory.EFFECT_CROP);\n effect.setParameter(\"xorigin\", x);\n effect.setParameter(\"yorigin\", y);\n effect.setParameter(\"width\", width);\n effect.setParameter(\"height\", height);\n effect.apply(textures[0], photoWidth, photoHeight, textures[1]);\n }", "private void saveAvatar(Intent picData) {\n if(cropFilePath != null) {\n File cropFile = new File(cropFilePath);\n if(cropFile.exists()) {\n HjtApp.getInstance().getAppService().uploadAvatar(cropFilePath);\n } else {\n onAvatarUploadEvent(new AvatarUploadEvent(false, \"Crop file not exist\"));\n }\n } else {\n onAvatarUploadEvent(new AvatarUploadEvent(false, \"no Extras back from scale image\"));\n }\n }", "@Override\n public void onBindViewHolder(@NonNull final RecyclerViewCropDetailCard.ViewHolder viewHolder, final int i) {\n Log.d(TAG, \"onBindViewHolder: called\");\n if (i == miCropName.size() - 1) {\n viewHolder.arrow_r.setVisibility(View.INVISIBLE);\n } else if (i == 0) {\n viewHolder.arrow_l.setVisibility(View.INVISIBLE);\n }else{\n viewHolder.arrow_l.setVisibility(View.VISIBLE);\n viewHolder.arrow_r.setVisibility(View.VISIBLE);\n }\n\n //getting image in image view widget\n\n\n Glide.with(micontext)\n .load(miImage.get(i))\n .apply(new RequestOptions().override(460, 460).fitCenter())\n .into(viewHolder.itemImage);\n\n //setting text\n viewHolder.cropName.setText(miCropName.get(i));\n viewHolder.cropFarmName.setText(miCropFarmName.get(i));\n viewHolder.cropVariety.setText(miCropVariety.get(i));\n viewHolder.cropLandArea.setText(miCropLandSize.get(i));\n viewHolder.cropDateOfSow.setText(miCropSOD.get(i));\n\n\n //Setting what happens when clicked on name or image area\n viewHolder.parent_layout.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Log.d(TAG, \"OnClick\" + miImage.get(i));\n }\n });\n }", "public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (resultCode == RESULT_OK) {\n\n // compare the resultCode with the\n // SELECT_PICTURE constant\n if (requestCode == SELECT_PICTURE) {\n Uri selectedImageURI = data.getData();\n// File imageFile = new File(getRealPathFromURI(selectedImageURI));\n Uri selectedImageUri = data.getData( );\n String picturePath = getPath( getApplicationContext( ), selectedImageUri );\n Log.d(\"Picture Path\", picturePath);\n\n // Get the url of the image from data\n selectedImageUri = data.getData();\n if (null != selectedImageUri) {\n bitmap = null;\n // update the preview image in the layout\n try {\n bitmap = MediaStore.Images.Media.getBitmap(this.getContentResolver(), selectedImageUri);\n } catch (IOException e) {\n e.printStackTrace();\n }\n// IVPreviewImage.setImageURI(selectedImageUri);\n// runTextRecognition(bitmap);\n IVPreviewImage.setImageBitmap(bitmap);\n\n }\n }\n\n if (requestCode == 123) {\n\n\n Bitmap photo = (Bitmap) data.getExtras()\n .get(\"data\");\n\n // Set the image in imageview for display\n IVPreviewImage.setImageBitmap(photo);\n runTextRecognition(photo);\n\n }\n\n }\n }", "public static BufferedImage cropImage(BufferedImage img, Rectangle bounds)\n\t{\n\t\tBufferedImage dest = img.getSubimage(bounds.x, bounds.y, bounds.width, bounds.height);\n\t\treturn dest; \n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode == PICK_IMAGE_REQUEST && resultCode == RESULT_OK && data != null && data.getData() != null) {\n filePath = data.getData();\n try {\n bitmap = MediaStore.Images.Media.getBitmap(getContentResolver(), filePath);\n imageView.setImageBitmap(bitmap);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "public void onPickImage(View view) {\n ImagePicker.pickImage(this, \"Select your image:\");\r\n }" ]
[ "0.765973", "0.7449422", "0.7433082", "0.7406832", "0.7346666", "0.7060954", "0.70276207", "0.70166314", "0.69276625", "0.68696356", "0.685827", "0.6750908", "0.6728456", "0.66951996", "0.66335166", "0.66140944", "0.6611718", "0.65832907", "0.6581336", "0.6545868", "0.6508359", "0.64818734", "0.64472675", "0.6426698", "0.6390746", "0.6365169", "0.6362933", "0.6355595", "0.6339738", "0.62976694", "0.6240557", "0.6238747", "0.621098", "0.61800206", "0.61758745", "0.6114989", "0.60718703", "0.60288113", "0.6023727", "0.6015509", "0.5992169", "0.59645987", "0.5953346", "0.5950133", "0.593841", "0.5936435", "0.5925378", "0.5922092", "0.5909704", "0.586619", "0.5865775", "0.58506835", "0.58170366", "0.5781686", "0.57704854", "0.5765995", "0.5760624", "0.5747462", "0.5740693", "0.57371014", "0.5734319", "0.57205766", "0.57132584", "0.5711782", "0.57004076", "0.56994206", "0.56962305", "0.5693173", "0.56539756", "0.56527525", "0.5652708", "0.5651688", "0.5639863", "0.5637778", "0.56075716", "0.56054914", "0.5591369", "0.55889463", "0.5584512", "0.55765724", "0.55763024", "0.55749005", "0.557307", "0.5566994", "0.5562019", "0.55572367", "0.5546026", "0.5544029", "0.5532421", "0.55116093", "0.55098206", "0.5509148", "0.5500905", "0.5498403", "0.5494188", "0.54800606", "0.54784465", "0.54761755", "0.54700017", "0.5469978" ]
0.7473817
1
To get selected date and set it in text view then well open time picker
@Override public void onTimeSet(TimePicker view, int hourOfDay, int minute) { String time = hourOfDay+":"+minute; tvSelectedTime.setText(time); appSelectTime = time; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog13 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t13Hour13 = hourOfDay1;\n t13Minute13 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t13Hour13, t13Minute13);\n //set selected time on text view\n\n\n timeS7 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime7.setText(timeS7);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog13.updateTime(t13Hour13, t13Minute13);\n //show dialog\n timePickerDialog13.show();\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(select_time_date.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog31 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t31Hour31 = hourOfDay1;\n t31Minute31 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t31Hour31, t31Minute31);\n //set selected time on text view\n\n\n timeS16 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime16.setText(timeS16);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog31.updateTime(t31Hour31, t31Minute31);\n //show dialog\n timePickerDialog31.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog19 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t19Hour19 = hourOfDay1;\n t19Minute19 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t19Hour19, t19Minute19);\n //set selected time on text view\n\n\n timeS10 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime10.setText(timeS10);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog19.updateTime(t19Hour19, t19Minute19);\n //show dialog\n timePickerDialog19.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog12 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t12Hour12 = hourOfDay1;\n t12Minute12 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t12Hour12, t12Minute12);\n //set selected time on text view\n\n\n timeE6 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime6.setText(timeE6);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog12.updateTime(t12Hour12, t12Minute12);\n //show dialog\n timePickerDialog12.show();\n }", "@Override\n public void onDateSet(DatePicker view, int year,\n int monthOfYear, int dayOfMonth) {\n CharSequence strDate = null;\n Time chosenDate = new Time();\n chosenDate.set(dayOfMonth, monthOfYear, year);\n\n long dateAttendance = chosenDate.toMillis(true);\n strDate = DateFormat.format(\"dd-MM-yyyy\", dateAttendance);\n\n edt_std_leave_eDate.setText(strDate);\n currentDate = String.valueOf(strDate);\n }", "public void showDateTimePickerDialog(final EditText view) {\n final Dialog dialog = new Dialog(getActivity());\n dialog.setContentView(R.layout.dialog_viewing_time);\n dialog.setTitle(\"Select Viewing Date\");\n final StringBuilder selectedDateTime = new StringBuilder();\n final DatePicker datePicker = (DatePicker) dialog.findViewById(R.id.datePicker);\n\n Button selectDateTimeButton = (Button) dialog.findViewById(R.id.selectDateTimeButton);\n\n selectDateTimeButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n selectedDateTime.append(datePicker.getDayOfMonth())\n .append(ApplicationConstants.DATE_SEPERATOR)\n .append(datePicker.getMonth() + 1)\n .append(ApplicationConstants.DATE_SEPERATOR)\n .append(datePicker.getYear());\n view.setText(selectedDateTime.toString());\n dialog.dismiss();\n }\n });\n\n dialog.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog45 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t45Hour45 = hourOfDay1;\n t45Minute45 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t45Hour45, t45Minute45);\n //set selected time on text view\n\n\n timeS23 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime23.setText(timeS23);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog45.updateTime(t45Hour45, t45Minute45);\n //show dialog\n timePickerDialog45.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog39 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t39Hour39 = hourOfDay1;\n t39Minute39 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t39Hour39, t39Minute39);\n //set selected time on text view\n\n\n timeS20 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime20.setText(timeS20);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog39.updateTime(t39Hour39, t39Minute39);\n //show dialog\n timePickerDialog39.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog21 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t21Hour21 = hourOfDay1;\n t21Minute21 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t21Hour21, t21Minute21);\n //set selected time on text view\n\n\n timeS11 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime11.setText(timeS11);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog21.updateTime(t21Hour21, t21Minute21);\n //show dialog\n timePickerDialog21.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog43 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t43Hour43 = hourOfDay1;\n t43Minute43 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t43Hour43, t43Minute43);\n //set selected time on text view\n\n\n timeS22 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime22.setText(timeS22);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog43.updateTime(t43Hour43, t43Minute43);\n //show dialog\n timePickerDialog43.show();\n }", "@Override\n public void onDateSet(DatePicker view, int year,\n int monthOfYear, int dayOfMonth) {\n\n CharSequence strDate = null;\n Time chosenDate = new Time();\n chosenDate.set(dayOfMonth, monthOfYear, year);\n\n long dateAttendance = chosenDate.toMillis(true);\n strDate = DateFormat.format(\"dd-MM-yyyy\", dateAttendance);\n\n edt_std_leave_sDate.setText(strDate);\n currentDate = String.valueOf(strDate);\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog23 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t23Hour23 = hourOfDay1;\n t23Minute23 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t23Hour23, t23Minute23);\n //set selected time on text view\n\n\n timeS12 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime12.setText(timeS12);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog23.updateTime(t23Hour23, t23Minute23);\n //show dialog\n timePickerDialog23.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog4 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t4Hour4 = hourOfDay1;\n t4Minute4 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t4Hour4, t4Minute4);\n //set selected time on text view\n\n\n timeE2 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime2.setText(timeE2);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog4.updateTime(t4Hour4, t4Minute4);\n //show dialog\n timePickerDialog4.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog14 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t14Hour14 = hourOfDay1;\n t14Minute14 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t14Hour14, t14Minute14);\n //set selected time on text view\n\n\n timeE7 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime7.setText(timeE7);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog14.updateTime(t14Hour14, t14Minute14);\n //show dialog\n timePickerDialog14.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog37 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t37Hour37 = hourOfDay1;\n t37Minute37 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t37Hour37, t37Minute37);\n //set selected time on text view\n\n\n timeS19 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime19.setText(timeS19);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog37.updateTime(t37Hour37, t37Minute37);\n //show dialog\n timePickerDialog37.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog1 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t1Hour1 = hourOfDay1;\n t1Minute1 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t1Hour1, t1Minute1);\n //set selected time on text view\n\n\n timeS1 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime1.setText(timeS1);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog1.updateTime(t1Hour1, t1Minute1);\n //show dialog\n timePickerDialog1.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog29 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t29Hour29 = hourOfDay1;\n t29Minute29 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t29Hour29, t29Minute29);\n //set selected time on text view\n\n\n timeS15 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime15.setText(timeS15);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog29.updateTime(t29Hour29, t29Minute29);\n //show dialog\n timePickerDialog29.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog16 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t16Hour16 = hourOfDay1;\n t16Minute16 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t16Hour16, t16Minute16);\n //set selected time on text view\n\n\n timeE8 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime8.setText(timeE8);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog16.updateTime(t16Hour16, t16Minute16);\n //show dialog\n timePickerDialog16.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog46 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t46Hour46 = hourOfDay1;\n t46Minute46 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t46Hour46, t46Minute46);\n //set selected time on text view\n\n\n timeE23 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime23.setText(timeE23);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog46.updateTime(t46Hour46, t46Minute46);\n //show dialog\n timePickerDialog46.show();\n }", "@Override\n public void onClick(View v) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(AddRDV.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n editTextHeur.setText(String.format(\"%02d\",selectedHour) + \":\" + String.format(\"%02d\" ,selectedMinute)+\":\"+\"00\");\n }\n }, hour, minute, true);//Yes 24 hour time\n mTimePicker.setTitle(\"Select time of your appointment\");\n mTimePicker.show();\n\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog36 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t36Hour36 = hourOfDay1;\n t36Minute36 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t36Hour36, t36Minute36);\n //set selected time on text view\n\n\n timeE18 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime18.setText(timeE18);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog36.updateTime(t36Hour36, t36Minute36);\n //show dialog\n timePickerDialog36.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog41 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t41Hour41 = hourOfDay1;\n t41Minute41 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t41Hour41, t41Minute41);\n //set selected time on text view\n\n\n timeS21 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime21.setText(timeS21);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog41.updateTime(t41Hour41, t41Minute41);\n //show dialog\n timePickerDialog41.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog35 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t35Hour35 = hourOfDay1;\n t35Minute35 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t35Hour35, t35Minute35);\n //set selected time on text view\n\n\n timeS18 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime18.setText(timeS18);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog35.updateTime(t35Hour35, t35Minute35);\n //show dialog\n timePickerDialog35.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog42 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t42Hour42 = hourOfDay1;\n t42Minute42 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t42Hour42, t42Minute42);\n //set selected time on text view\n\n\n timeE21 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime21.setText(timeE21);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog42.updateTime(t42Hour42, t42Minute42);\n //show dialog\n timePickerDialog42.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog27 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t27Hour27 = hourOfDay1;\n t27Minute27 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t27Hour27, t27Minute27);\n //set selected time on text view\n\n\n timeS14 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime14.setText(timeS14);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog27.updateTime(t27Hour27, t27Minute27);\n //show dialog\n timePickerDialog27.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog18 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t18Hour18 = hourOfDay1;\n t18Minute18 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t18Hour18, t18Minute18);\n //set selected time on text view\n\n\n timeE9 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime9.setText(timeE9);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog18.updateTime(t18Hour18, t18Minute18);\n //show dialog\n timePickerDialog18.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog32 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t32Hour32 = hourOfDay1;\n t32Minute32 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t32Hour32, t32Minute32);\n //set selected time on text view\n\n\n timeE16 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime16.setText(timeE16);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog32.updateTime(t32Hour32, t32Minute32);\n //show dialog\n timePickerDialog32.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog2 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t2Hour2 = hourOfDay1;\n t2Minute2 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t2Hour2, t2Minute2);\n //set selected time on text view\n\n\n timeE1 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime1.setText(timeE1);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog2.updateTime(t2Hour2, t2Minute2);\n //show dialog\n timePickerDialog2.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog20 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t20Hour20 = hourOfDay1;\n t20Minute20 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t20Hour20, t20Minute20);\n //set selected time on text view\n\n\n timeE10 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime10.setText(timeE10);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog20.updateTime(t20Hour20, t20Minute20);\n //show dialog\n timePickerDialog20.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog34 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t34Hour34 = hourOfDay1;\n t34Minute34 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t34Hour34, t34Minute34);\n //set selected time on text view\n\n\n timeE17 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime17.setText(timeE17);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog34.updateTime(t34Hour34, t34Minute34);\n //show dialog\n timePickerDialog34.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog47 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t47Hour47 = hourOfDay1;\n t47Minute47 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t47Hour47, t47Minute47);\n //set selected time on text view\n\n\n timeS24 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime24.setText(timeS24);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog47.updateTime(t47Hour47, t47Minute47);\n //show dialog\n timePickerDialog47.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog11 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t11Hour11 = hourOfDay1;\n t11Minute11 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t11Hour11, t11Minute11);\n //set selected time on text view\n\n\n timeS6 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime6.setText(timeS6);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog11.updateTime(t11Hour11, t11Minute11);\n //show dialog\n timePickerDialog11.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog25 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t25Hour25 = hourOfDay1;\n t25Minute25 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t25Hour25, t25Minute25);\n //set selected time on text view\n\n\n timeS13 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime13.setText(timeS13);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog25.updateTime(t25Hour25, t25Minute25);\n //show dialog\n timePickerDialog25.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog26 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t26Hour26 = hourOfDay1;\n t26Minute26 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t26Hour26, t26Minute26);\n //set selected time on text view\n\n\n timeE13 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime13.setText(timeE13);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog26.updateTime(t26Hour26, t26Minute26);\n //show dialog\n timePickerDialog26.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog24 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t24Hour24 = hourOfDay1;\n t24Minute24 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t24Hour24, t24Minute24);\n //set selected time on text view\n\n\n timeE12 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime12.setText(timeE12);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog24.updateTime(t24Hour24, t24Minute24);\n //show dialog\n timePickerDialog24.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog9 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t9Hour9 = hourOfDay1;\n t9Minute9 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t9Hour9, t9Minute9);\n //set selected time on text view\n\n\n timeS5 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime5.setText(timeS5);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog9.updateTime(t9Hour9, t9Minute9);\n //show dialog\n timePickerDialog9.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog40 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t40Hour40 = hourOfDay1;\n t40Minute40 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t40Hour40, t40Minute40);\n //set selected time on text view\n\n\n timeE20 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime20.setText(timeE20);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog40.updateTime(t40Hour40, t40Minute40);\n //show dialog\n timePickerDialog40.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog15 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t15Hour15 = hourOfDay1;\n t15Minute15 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t15Hour15, t15Minute15);\n //set selected time on text view\n\n\n timeS8 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime8.setText(timeS8);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog15.updateTime(t15Hour15, t15Minute15);\n //show dialog\n timePickerDialog15.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog10 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t10Hour10 = hourOfDay1;\n t10Minute10 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t10Hour10, t10Minute10);\n //set selected time on text view\n\n\n timeE5 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime5.setText(timeE5);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog10.updateTime(t10Hour10, t10Minute10);\n //show dialog\n timePickerDialog10.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog28 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t28Hour28 = hourOfDay1;\n t28Minute28 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t28Hour28, t28Minute28);\n //set selected time on text view\n\n\n timeE14 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime14.setText(timeE14);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog28.updateTime(t28Hour28, t28Minute28);\n //show dialog\n timePickerDialog28.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog3 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t3Hour3 = hourOfDay1;\n t3Minute3 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t3Hour3, t3Minute3);\n //set selected time on text view\n\n\n timeS2 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime2.setText(timeS2);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog3.updateTime(t3Hour3, t3Minute3);\n //show dialog\n timePickerDialog3.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog17 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t17Hour17 = hourOfDay1;\n t17Minute17 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t17Hour17, t17Minute17);\n //set selected time on text view\n\n\n timeS9 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime9.setText(timeS9);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog17.updateTime(t17Hour17, t17Minute17);\n //show dialog\n timePickerDialog17.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog49 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t49Hour49 = hourOfDay1;\n t49Minute49 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t49Hour49, t49Minute49);\n //set selected time on text view\n\n\n timeS25 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime25.setText(timeS25);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog49.updateTime(t49Hour49, t49Minute49);\n //show dialog\n timePickerDialog49.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog48 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t48Hour48 = hourOfDay1;\n t48Minute48 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t48Hour48, t48Minute48);\n //set selected time on text view\n\n\n timeE24 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime24.setText(timeE24);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog48.updateTime(t48Hour48, t48Minute48);\n //show dialog\n timePickerDialog48.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog38 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t38Hour38 = hourOfDay1;\n t38Minute38 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t38Hour38, t38Minute38);\n //set selected time on text view\n\n\n timeE19 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime19.setText(timeE19);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog38.updateTime(t38Hour38, t38Minute38);\n //show dialog\n timePickerDialog38.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog5 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t5Hour5 = hourOfDay1;\n t5Minute5 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t5Hour5, t5Minute5);\n //set selected time on text view\n\n\n timeS3 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime3.setText(timeS3);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog5.updateTime(t5Hour5, t5Minute5);\n //show dialog\n timePickerDialog5.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog22 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t22Hour22 = hourOfDay1;\n t22Minute22 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t22Hour22, t22Minute22);\n //set selected time on text view\n\n\n timeE11 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime11.setText(timeE11);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog22.updateTime(t22Hour22, t22Minute22);\n //show dialog\n timePickerDialog22.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog33 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t33Hour33 = hourOfDay1;\n t33Minute33 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t33Hour33, t33Minute33);\n //set selected time on text view\n\n\n timeS17 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime17.setText(timeS17);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog33.updateTime(t33Hour33, t33Minute33);\n //show dialog\n timePickerDialog33.show();\n }", "private void showDialogTime() {\n final TimePickerDialog timePickerDialog = new TimePickerDialog(getActivity(),\n new TimePickerDialog.OnTimeSetListener() {\n\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n\n mCal.set(Calendar.HOUR_OF_DAY, hourOfDay);\n mCal.set(Calendar.MINUTE, minute);\n\n tvDate.setText(getDateString(mCal));\n\n }\n }, mCal.get(Calendar.HOUR_OF_DAY), mCal.get(Calendar.MINUTE), true);\n\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(),\n new DatePickerDialog.OnDateSetListener() {\n\n @Override\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n\n mCal.set(Calendar.YEAR, year);\n mCal.set(Calendar.MONTH, monthOfYear);\n mCal.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n\n timePickerDialog.show();\n }\n }, mCal.get(Calendar.YEAR), mCal.get(Calendar.MONTH), mCal.get(Calendar.DAY_OF_MONTH));\n datePickerDialog.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog8 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t8Hour8 = hourOfDay1;\n t8Minute8 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t8Hour8, t8Minute8);\n //set selected time on text view\n\n\n timeE4 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime4.setText(timeE4);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog8.updateTime(t8Hour8, t8Minute8);\n //show dialog\n timePickerDialog8.show();\n }", "@Override\r\n public void onClick(View v) {\n final Calendar c = Calendar.getInstance();\r\n int mYear = c.get(Calendar.YEAR); // current year\r\n int mMonth = c.get(Calendar.MONTH); // current month\r\n int mDay = c.get(Calendar.DAY_OF_MONTH); // current day\r\n\r\n\r\n // date picker dialog\r\n datePickerDialog = new DatePickerDialog(task_setting.this,\r\n new DatePickerDialog.OnDateSetListener() {\r\n\r\n\r\n @Override\r\n public void onDateSet(DatePicker view, int year,\r\n int monthOfYear, int dayOfMonth) {\r\n // set day of month , month and year value in the edit text\r\n\r\n final String[] MONTHS = {\"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\"};\r\n String mon = MONTHS[monthOfYear];\r\n date.setText(mon + \" \" + dayOfMonth + \", \" + year);\r\n }\r\n }, mYear, mMonth, mDay);\r\n datePickerDialog.getDatePicker().setMinDate(System.currentTimeMillis() - 1000);\r\n datePickerDialog.show();\r\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog44 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t44Hour44 = hourOfDay1;\n t44Minute44 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t44Hour44, t44Minute44);\n //set selected time on text view\n\n\n timeE22 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime22.setText(timeE22);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog44.updateTime(t44Hour44, t44Minute44);\n //show dialog\n timePickerDialog44.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog7 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t7Hour7 = hourOfDay1;\n t7Minute7 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t7Hour7, t7Minute7);\n //set selected time on text view\n\n\n timeS4 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime4.setText(timeS4);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog7.updateTime(t7Hour7, t7Minute7);\n //show dialog\n timePickerDialog7.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog50 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t50Hour50 = hourOfDay1;\n t50Minute50 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t50Hour50, t50Minute50);\n //set selected time on text view\n\n\n timeE25 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime25.setText(timeE25);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog50.updateTime(t50Hour50, t50Minute50);\n //show dialog\n timePickerDialog50.show();\n }", "public void selectDate(){\r\n\t\tcloseDateText.sendKeys(ConvertDate());\r\n\t}", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog30 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t30Hour30 = hourOfDay1;\n t30Minute30 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t30Hour30, t30Minute30);\n //set selected time on text view\n\n\n timeE15 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime15.setText(timeE15);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog30.updateTime(t30Hour30, t30Minute30);\n //show dialog\n timePickerDialog30.show();\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t7Hour7 = hourOfDay1;\n t7Minute7 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t7Hour7, t7Minute7);\n //set selected time on text view\n\n\n timeS4 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime4.setText(timeS4);\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog6 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t6Hour6 = hourOfDay1;\n t6Minute6 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t6Hour6, t6Minute6);\n //set selected time on text view\n\n\n timeE3 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime3.setText(timeE3);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog6.updateTime(t6Hour6, t6Minute6);\n //show dialog\n timePickerDialog6.show();\n }", "@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t DatePickerDialog mDatePicker=new DatePickerDialog(contextyeild, new OnDateSetListener() { \n\t\t\t\t\t\t public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) {\n\t\t\t\t\t\t // TODO Auto-generated method stub \n\t\t\t\t\t\t /* Your code to get date and time */\n\t\t\t\t\t\t \t//final Calendar c = Calendar.getInstance();\n\t\t\t\t\t\t \t\t//\tc.set(selectedyear, selectedmonth, selectedday);\n\t\t\t\t\t\t \t\t\tstart_day = selectedday;\n\t\t\t\t\t\t \t\t\tstart_month = selectedmonth;\n\t\t\t\t\t\t \t\t\tstart_year = selectedyear;\n\t\t\t\t\t\t \t\t\t//final Date date = new Date(c.getTimeInMillis());\n\t\t\t\t\t\t \t\t\t//final SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\t\t\t \t\t\t//harvestdate1.setText(dateFormat.format(date));\n\t\t\t\t\t\t harvestdate1.setText(new StringBuilder().append(start_day).append(\"-\").append(start_month+1)\n\t\t\t\t\t .append(\"-\").append(start_year)\n\t\t\t\t\t .append(\" \")); \t\n\t\t\t\t\t\t // set selected date into Date Picker\n\t\t\t\t\t\t datepicker.init(start_year, start_month, start_day, null);\n\n\t\t\t\t\t\t }\n\t\t\t\t\t\t },start_year, start_month, start_day);\n\t\t\t\t\t\t mDatePicker.setTitle(\"Select date\"); \n\t\t\t\t\t\t mDatePicker.show(); \n\t\t\t\t\t\t\t}", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t1Hour1 = hourOfDay1;\n t1Minute1 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t1Hour1, t1Minute1);\n //set selected time on text view\n\n\n timeS1 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime1.setText(timeS1);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t5Hour5 = hourOfDay1;\n t5Minute5 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t5Hour5, t5Minute5);\n //set selected time on text view\n\n\n timeS3 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime3.setText(timeS3);\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(getActivity(), startdatepicker, trigger.getStarttime().get(Calendar.YEAR), trigger.getStarttime().get(Calendar.MONTH), trigger.getStarttime().get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t13Hour13 = hourOfDay1;\n t13Minute13 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t13Hour13, t13Minute13);\n //set selected time on text view\n\n\n timeS7 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime7.setText(timeS7);\n }", "@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t DatePickerDialog mDatePicker=new DatePickerDialog(contextyeild, new OnDateSetListener() { \n\t\t\t\t\t public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) {\n\t\t\t\t\t // TODO Auto-generated method stub \n\t\t\t\t\t /* Your code to get date and time */\n\t\t\t\t\t \t//final Calendar c = Calendar.getInstance();\n\t\t\t\t\t \t\t//\tc.set(selectedyear, selectedmonth, selectedday);\n\t\t\t\t\t \t\t\tstart_day = selectedday;\n\t\t\t\t\t \t\t\tstart_month = selectedmonth;\n\t\t\t\t\t \t\t\tstart_year = selectedyear;\n\t\t\t\t\t \t\t\t//final Date date = new Date(c.getTimeInMillis());\n\t\t\t\t\t \t\t\t//final SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\t\t \t\t\t//harvestdate1.setText(dateFormat.format(date));\n\t\t\t\t\t harvestdate1.setText(new StringBuilder().append(start_day).append(\"-\").append(start_month+1)\n\t\t\t\t .append(\"-\").append(start_year)\n\t\t\t\t .append(\" \")); \t\n\t\t\t\t\t // set selected date into Date Picker\n\t\t\t\t\t datepicker.init(start_year, start_month, start_day, null);\n\n\t\t\t\t\t }\n\t\t\t\t\t },start_year, start_month, start_day);\n\t\t\t\t\t mDatePicker.setTitle(\"Select date\"); \n\t\t\t\t\t mDatePicker.show(); \n\t\t\t\t\t\t\t}", "private void setTime(TextView textView) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(getActivity(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n textView.setText( selectedHour + \":\" + selectedMinute);\n }\n }, hour, minute, false);//Yes 24 hour time\n mTimePicker.setTitle(\"Select Time\");\n mTimePicker.show();\n }", "@Override\n public void onClick(View v) {\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(android.widget.DatePicker view, int year, int month, int dayOfMonth) {\n month = month + 1;\n String date =String.format(\"%02d/%02d/%d\", dayOfMonth,month, year);\n TextViewCheckIn.setText(date);\n\n }\n },year,month,day);\n long today = Calendar.getTimeInMillis();\n datePickerDialog.getDatePicker().setMinDate(today);\n datePickerDialog.show();\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t14Hour14 = hourOfDay1;\n t14Minute14 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t14Hour14, t14Minute14);\n //set selected time on text view\n\n\n timeE7 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime7.setText(timeE7);\n }", "@Override\n\t\t\t\t\t\t\tpublic void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n\t\t\t\t\t\t\t\tcalendar.set(Calendar.HOUR_OF_DAY,hourOfDay);\n\t\t\t\t\t\t\t\tcalendar.set(Calendar.MINUTE,minute);\n\t\t\t\t\t\t\t\tcalendar.set(Calendar.SECOND,0);\n\t\t\t\t\t\t\t\tdate=new SimpleDateFormat(\"yyyy/MM/dd hh:mm\").format(calendar.getTimeInMillis());\n\t\t\t\t\t\t\t\ttv_tiem.setText(date);\n\t\t\t\t\t\t\t}", "@Override\n public void onDateSet(DatePicker view, int selectedYear,\n int selectedMonth, int selectedDay) {\n\n year = selectedYear;\n month = selectedMonth;\n day = selectedDay;\n\n showDialog(AppUtils.TIME_DIALOG_ID);\n\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t19Hour19 = hourOfDay1;\n t19Minute19 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t19Hour19, t19Minute19);\n //set selected time on text view\n\n\n timeS10 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime10.setText(timeS10);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t23Hour23 = hourOfDay1;\n t23Minute23 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t23Hour23, t23Minute23);\n //set selected time on text view\n\n\n timeS12 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime12.setText(timeS12);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t6Hour6 = hourOfDay1;\n t6Minute6 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t6Hour6, t6Minute6);\n //set selected time on text view\n\n\n timeE3 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime3.setText(timeE3);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t39Hour39 = hourOfDay1;\n t39Minute39 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t39Hour39, t39Minute39);\n //set selected time on text view\n\n\n timeS20 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime20.setText(timeS20);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t37Hour37 = hourOfDay1;\n t37Minute37 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t37Hour37, t37Minute37);\n //set selected time on text view\n\n\n timeS19 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime19.setText(timeS19);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t12Hour12 = hourOfDay1;\n t12Minute12 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t12Hour12, t12Minute12);\n //set selected time on text view\n\n\n timeE6 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime6.setText(timeE6);\n }", "@Override\n public void onDateSet(DatePickerDialog view, int year, int month, int date)\n {\n String dateSet = \"\" + year + \"-\" + (++month) + \"-\" + date;\n selectDateTextView.setText(dateSet);\n\n\n\n\n// _device_id = \"2345\";\n// _expiry_date = T.parseDate(dateSet);\n// _document_type = \"Driving Licence\";\n//\n// uploadDocumentImage();\n }", "@Override\n public void onClick(View v) {\n Calendar mcurrentDate = Calendar.getInstance();\n int mYear = mcurrentDate.get(Calendar.YEAR);\n int mMonth = mcurrentDate.get(Calendar.MONTH);\n int mDay = mcurrentDate.get(Calendar.DAY_OF_MONTH);\n\n DatePickerDialog mDatePicker;\n mDatePicker = new DatePickerDialog(SingleEventActivity.this, new DatePickerDialog.OnDateSetListener() {\n public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) {\n // TODO Auto-generated method stub\n /* Your code to get date and time */\n// selectedmonth = selectedmonth + 1;\n\n try{\n Date date = new Date(selectedyear-1900, selectedmonth,selectedday);\n SimpleDateFormat formatter = new SimpleDateFormat(\"MM-dd-yyyy\");\n cDate = formatter.format(date);\n// DateFormat aoriginalFormat = new SimpleDateFormat(\"dd MMM yyyy\", Locale.getDefault());\n DateFormat atargetFormat = new SimpleDateFormat(\"dd MMM,yyyy\");\n Date date2 = formatter.parse(cDate);\n formattedDate = atargetFormat.format(date2);\n }catch (ParseException e1){\n e1.printStackTrace(); }\n catch (java.text.ParseException e) {\n e.printStackTrace();\n }\n\n e1.setText(formattedDate);\n// if(String.valueOf(selectedday).length()== 1 )\n// {\n//\n// if(String.valueOf(selectedmonth).length()== 1)\n// {\n// e1.setText(\"0\"+selectedday + \"-0\" + selectedmonth + \"-\" + selectedyear);\n// }\n//\n// e1.setText(\"0\"+selectedday + selectedmonth + \"-\" + selectedyear);\n//\n// }\n//\n// else{\n// e1.setText(selectedday + \"-\" + selectedmonth + \"-\" + selectedyear);\n// }\n//\n// e1.setText(\"0\"+selectedday + \"-0\" + selectedmonth + \"-\" + selectedyear);\n\n }\n }, mYear, mMonth, mDay);\n mDatePicker.setTitle(\"Select Date\");\n mDatePicker.show();\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t24Hour24 = hourOfDay1;\n t24Minute24 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t24Hour24, t24Minute24);\n //set selected time on text view\n\n\n timeE12 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime12.setText(timeE12);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t29Hour29 = hourOfDay1;\n t29Minute29 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t29Hour29, t29Minute29);\n //set selected time on text view\n\n\n timeS15 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime15.setText(timeS15);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t25Hour25 = hourOfDay1;\n t25Minute25 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t25Hour25, t25Minute25);\n //set selected time on text view\n\n\n timeS13 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime13.setText(timeS13);\n }", "private void dateOfBirthPicker() {\n _nextActionDate.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n final Calendar c = Calendar.getInstance();\n int mYear = c.get(Calendar.YEAR);\n int mMonth = c.get(Calendar.MONTH);\n int mDay = c.get(Calendar.DAY_OF_MONTH);\n DatePickerDialog dateDialog = new DatePickerDialog(v.getContext(), new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n Time chosenDate = new Time();\n chosenDate.set(dayOfMonth, month, year);\n long dtDob = chosenDate.toMillis(true);\n\n String format = new SimpleDateFormat(\"yyyy-MM-dd\").format(dtDob);\n _nextActionDate.setText(format);\n\n }\n }, mYear, mMonth, mDay);\n //dateDialog.getDatePicker().setMaxDate(new Date().getTime());\n dateDialog.show();\n }\n });\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t20Hour20 = hourOfDay1;\n t20Minute20 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t20Hour20, t20Minute20);\n //set selected time on text view\n\n\n timeE10 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime10.setText(timeE10);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t21Hour21 = hourOfDay1;\n t21Minute21 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t21Hour21, t21Minute21);\n //set selected time on text view\n\n\n timeS11 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime11.setText(timeS11);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t43Hour43 = hourOfDay1;\n t43Minute43 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t43Hour43, t43Minute43);\n //set selected time on text view\n\n\n timeS22 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime22.setText(timeS22);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t4Hour4 = hourOfDay1;\n t4Minute4 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t4Hour4, t4Minute4);\n //set selected time on text view\n\n\n timeE2 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime2.setText(timeE2);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t10Hour10 = hourOfDay1;\n t10Minute10 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t10Hour10, t10Minute10);\n //set selected time on text view\n\n\n timeE5 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime5.setText(timeE5);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t31Hour31 = hourOfDay1;\n t31Minute31 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t31Hour31, t31Minute31);\n //set selected time on text view\n\n\n timeS16 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime16.setText(timeS16);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t27Hour27 = hourOfDay1;\n t27Minute27 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t27Hour27, t27Minute27);\n //set selected time on text view\n\n\n timeS14 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime14.setText(timeS14);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t45Hour45 = hourOfDay1;\n t45Minute45 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t45Hour45, t45Minute45);\n //set selected time on text view\n\n\n timeS23 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime23.setText(timeS23);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t15Hour15 = hourOfDay1;\n t15Minute15 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t15Hour15, t15Minute15);\n //set selected time on text view\n\n\n timeS8 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime8.setText(timeS8);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t26Hour26 = hourOfDay1;\n t26Minute26 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t26Hour26, t26Minute26);\n //set selected time on text view\n\n\n timeE13 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime13.setText(timeE13);\n }", "private void showDateDialog(){\n final Calendar newCalendar = Calendar.getInstance();\n\n /**\n * Initiate DatePicker dialog\n */\n datePickerDialog = new DatePickerDialog(this, new DatePickerDialog.OnDateSetListener() {\n\n @Override\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n\n /**\n * Method ini dipanggil saat kita selesai memilih tanggal di DatePicker\n */\n\n /**\n * Set Calendar untuk menampung tanggal yang dipilih\n */\n Calendar newDate = Calendar.getInstance();\n newDate.set(year, monthOfYear, dayOfMonth);\n\n\n if(!newDate.before(newCalendar)){\n /**\n * Update TextView with choosen date\n */\n newDate.set(Calendar.HOUR_OF_DAY, 0);\n newDate.set(Calendar.MINUTE, 0);\n newDate.set(Calendar.SECOND, 0);\n newDate.set(Calendar.MILLISECOND,0);\n mDateTextView.setTextColor(Color.BLACK);\n String day = mDateFormatter.getDayName(newDate.getTime());\n String date = mDateFormatter.getOnlyDate(newDate.getTime());\n String month = mDateFormatter.getMonth(newDate.getTime());\n mDateTextView.setText(day + \" \" + date + \",\" + month);\n mChoosenSaveDate = newDate;\n }else{\n mDateTextView.setText(\"Deadline has to be at leats same as current date\");\n mDateTextView.setTextColor(Color.RED);\n Toast.makeText(view.getContext(),\"invalid choosen date\",\n Toast.LENGTH_LONG).show();\n }\n\n\n }\n\n },newCalendar.get(Calendar.YEAR), newCalendar.get(Calendar.MONTH), newCalendar.get(Calendar.DAY_OF_MONTH));\n\n /**\n * Tampilkan DatePicker dialog\n */\n datePickerDialog.show();\n\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t8Hour8 = hourOfDay1;\n t8Minute8 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t8Hour8, t8Minute8);\n //set selected time on text view\n\n\n timeE4 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime4.setText(timeE4);\n }", "private void selectTime() {\n Calendar calendar = Calendar.getInstance();\n int hour = calendar.get(Calendar.HOUR_OF_DAY);\n int minute = calendar.get(Calendar.MINUTE);\n TimePickerDialog timePickerDialog = new TimePickerDialog(this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int i, int i1) {\n timeTonotify = i + \":\" + i1; //temp variable to store the time to set alarm\n mTimebtn.setText(FormatTime(i, i1)); //sets the button text as selected time\n }\n }, hour, minute, false);\n timePickerDialog.show();\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t9Hour9 = hourOfDay1;\n t9Minute9 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t9Hour9, t9Minute9);\n //set selected time on text view\n\n\n timeS5 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime5.setText(timeS5);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t3Hour3 = hourOfDay1;\n t3Minute3 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t3Hour3, t3Minute3);\n //set selected time on text view\n\n\n timeS2 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime2.setText(timeS2);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t11Hour11 = hourOfDay1;\n t11Minute11 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t11Hour11, t11Minute11);\n //set selected time on text view\n\n\n timeS6 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime6.setText(timeS6);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t16Hour16 = hourOfDay1;\n t16Minute16 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t16Hour16, t16Minute16);\n //set selected time on text view\n\n\n timeE8 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime8.setText(timeE8);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t2Hour2 = hourOfDay1;\n t2Minute2 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t2Hour2, t2Minute2);\n //set selected time on text view\n\n\n timeE1 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime1.setText(timeE1);\n }", "@Override\n public void onDateSet(DatePicker view, int year,\n int monthOfYear, int dayOfMonth) {\n\n autoD8.setText(dayOfMonth + \" \" + monthString(monthOfYear + 1) + \" \" + year);\n\n dialogueCal.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n dialogueCal.set(Calendar.YEAR, year);\n dialogueCal.set(Calendar.MONTH, monthOfYear);\n timeAndDate = dialogueCal.getTimeInMillis();\n\n }" ]
[ "0.7407775", "0.73857135", "0.73780286", "0.73777294", "0.73769027", "0.73714364", "0.73664564", "0.7357898", "0.7355884", "0.73532563", "0.7353141", "0.73484993", "0.73468703", "0.73457724", "0.7345592", "0.7344937", "0.7340589", "0.73385763", "0.7336171", "0.7335725", "0.7329125", "0.73269904", "0.7323648", "0.731446", "0.7313138", "0.73086035", "0.7306478", "0.7303852", "0.7300267", "0.73001903", "0.72996306", "0.72992927", "0.7298748", "0.7297286", "0.7295792", "0.7293517", "0.7292027", "0.7290943", "0.72891164", "0.7287532", "0.7285353", "0.72850966", "0.72812957", "0.72785634", "0.7272563", "0.7268039", "0.7262001", "0.7254286", "0.7252763", "0.7248329", "0.72318536", "0.7229536", "0.7220798", "0.72161174", "0.71962214", "0.71812576", "0.7163881", "0.7163774", "0.71561056", "0.7155909", "0.7129377", "0.7125017", "0.70981264", "0.7065028", "0.706086", "0.70542336", "0.70530134", "0.70415664", "0.70408124", "0.7039052", "0.7036386", "0.7029137", "0.70279133", "0.70198023", "0.70162326", "0.70150876", "0.70142704", "0.701146", "0.70108366", "0.7002318", "0.700003", "0.69974035", "0.6995662", "0.6994705", "0.69886625", "0.6988658", "0.69857943", "0.6981285", "0.6977965", "0.6975185", "0.69737583", "0.6973243", "0.6972848", "0.6971848", "0.6964431", "0.69609934", "0.69605196", "0.6960365", "0.6959241", "0.695574", "0.69546866" ]
0.0
-1
To get selected time and set it in text view
private boolean checkEmptyEditText(EditText text, TextInputLayout TFB, String massage) { if (text.getText().toString().isEmpty()) { TFB.setErrorEnabled(true); TFB.setError(massage); return false; } else { TFB.setErrorEnabled(false); return true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t5Hour5 = hourOfDay1;\n t5Minute5 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t5Hour5, t5Minute5);\n //set selected time on text view\n\n\n timeS3 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime3.setText(timeS3);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t7Hour7 = hourOfDay1;\n t7Minute7 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t7Hour7, t7Minute7);\n //set selected time on text view\n\n\n timeS4 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime4.setText(timeS4);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t1Hour1 = hourOfDay1;\n t1Minute1 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t1Hour1, t1Minute1);\n //set selected time on text view\n\n\n timeS1 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime1.setText(timeS1);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t25Hour25 = hourOfDay1;\n t25Minute25 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t25Hour25, t25Minute25);\n //set selected time on text view\n\n\n timeS13 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime13.setText(timeS13);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t43Hour43 = hourOfDay1;\n t43Minute43 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t43Hour43, t43Minute43);\n //set selected time on text view\n\n\n timeS22 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime22.setText(timeS22);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t6Hour6 = hourOfDay1;\n t6Minute6 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t6Hour6, t6Minute6);\n //set selected time on text view\n\n\n timeE3 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime3.setText(timeE3);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t3Hour3 = hourOfDay1;\n t3Minute3 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t3Hour3, t3Minute3);\n //set selected time on text view\n\n\n timeS2 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime2.setText(timeS2);\n }", "private void setTime(TextView textView) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(getActivity(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n textView.setText( selectedHour + \":\" + selectedMinute);\n }\n }, hour, minute, false);//Yes 24 hour time\n mTimePicker.setTitle(\"Select Time\");\n mTimePicker.show();\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t23Hour23 = hourOfDay1;\n t23Minute23 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t23Hour23, t23Minute23);\n //set selected time on text view\n\n\n timeS12 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime12.setText(timeS12);\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog43 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t43Hour43 = hourOfDay1;\n t43Minute43 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t43Hour43, t43Minute43);\n //set selected time on text view\n\n\n timeS22 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime22.setText(timeS22);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog43.updateTime(t43Hour43, t43Minute43);\n //show dialog\n timePickerDialog43.show();\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t19Hour19 = hourOfDay1;\n t19Minute19 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t19Hour19, t19Minute19);\n //set selected time on text view\n\n\n timeS10 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime10.setText(timeS10);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t13Hour13 = hourOfDay1;\n t13Minute13 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t13Hour13, t13Minute13);\n //set selected time on text view\n\n\n timeS7 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime7.setText(timeS7);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t20Hour20 = hourOfDay1;\n t20Minute20 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t20Hour20, t20Minute20);\n //set selected time on text view\n\n\n timeE10 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime10.setText(timeE10);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t4Hour4 = hourOfDay1;\n t4Minute4 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t4Hour4, t4Minute4);\n //set selected time on text view\n\n\n timeE2 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime2.setText(timeE2);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t16Hour16 = hourOfDay1;\n t16Minute16 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t16Hour16, t16Minute16);\n //set selected time on text view\n\n\n timeE8 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime8.setText(timeE8);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t32Hour32 = hourOfDay1;\n t32Minute32 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t32Hour32, t32Minute32);\n //set selected time on text view\n\n\n timeE16 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime16.setText(timeE16);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t49Hour49 = hourOfDay1;\n t49Minute49 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t49Hour49, t49Minute49);\n //set selected time on text view\n\n\n timeS25 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime25.setText(timeS25);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t31Hour31 = hourOfDay1;\n t31Minute31 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t31Hour31, t31Minute31);\n //set selected time on text view\n\n\n timeS16 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime16.setText(timeS16);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t37Hour37 = hourOfDay1;\n t37Minute37 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t37Hour37, t37Minute37);\n //set selected time on text view\n\n\n timeS19 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime19.setText(timeS19);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t35Hour35 = hourOfDay1;\n t35Minute35 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t35Hour35, t35Minute35);\n //set selected time on text view\n\n\n timeS18 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime18.setText(timeS18);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t39Hour39 = hourOfDay1;\n t39Minute39 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t39Hour39, t39Minute39);\n //set selected time on text view\n\n\n timeS20 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime20.setText(timeS20);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t21Hour21 = hourOfDay1;\n t21Minute21 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t21Hour21, t21Minute21);\n //set selected time on text view\n\n\n timeS11 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime11.setText(timeS11);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t11Hour11 = hourOfDay1;\n t11Minute11 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t11Hour11, t11Minute11);\n //set selected time on text view\n\n\n timeS6 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime6.setText(timeS6);\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog25 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t25Hour25 = hourOfDay1;\n t25Minute25 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t25Hour25, t25Minute25);\n //set selected time on text view\n\n\n timeS13 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime13.setText(timeS13);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog25.updateTime(t25Hour25, t25Minute25);\n //show dialog\n timePickerDialog25.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog31 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t31Hour31 = hourOfDay1;\n t31Minute31 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t31Hour31, t31Minute31);\n //set selected time on text view\n\n\n timeS16 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime16.setText(timeS16);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog31.updateTime(t31Hour31, t31Minute31);\n //show dialog\n timePickerDialog31.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog49 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t49Hour49 = hourOfDay1;\n t49Minute49 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t49Hour49, t49Minute49);\n //set selected time on text view\n\n\n timeS25 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime25.setText(timeS25);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog49.updateTime(t49Hour49, t49Minute49);\n //show dialog\n timePickerDialog49.show();\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t45Hour45 = hourOfDay1;\n t45Minute45 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t45Hour45, t45Minute45);\n //set selected time on text view\n\n\n timeS23 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime23.setText(timeS23);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t10Hour10 = hourOfDay1;\n t10Minute10 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t10Hour10, t10Minute10);\n //set selected time on text view\n\n\n timeE5 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime5.setText(timeE5);\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog13 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t13Hour13 = hourOfDay1;\n t13Minute13 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t13Hour13, t13Minute13);\n //set selected time on text view\n\n\n timeS7 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime7.setText(timeS7);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog13.updateTime(t13Hour13, t13Minute13);\n //show dialog\n timePickerDialog13.show();\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t8Hour8 = hourOfDay1;\n t8Minute8 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t8Hour8, t8Minute8);\n //set selected time on text view\n\n\n timeE4 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime4.setText(timeE4);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t27Hour27 = hourOfDay1;\n t27Minute27 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t27Hour27, t27Minute27);\n //set selected time on text view\n\n\n timeS14 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime14.setText(timeS14);\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog46 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t46Hour46 = hourOfDay1;\n t46Minute46 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t46Hour46, t46Minute46);\n //set selected time on text view\n\n\n timeE23 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime23.setText(timeE23);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog46.updateTime(t46Hour46, t46Minute46);\n //show dialog\n timePickerDialog46.show();\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t26Hour26 = hourOfDay1;\n t26Minute26 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t26Hour26, t26Minute26);\n //set selected time on text view\n\n\n timeE13 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime13.setText(timeE13);\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog47 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t47Hour47 = hourOfDay1;\n t47Minute47 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t47Hour47, t47Minute47);\n //set selected time on text view\n\n\n timeS24 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime24.setText(timeS24);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog47.updateTime(t47Hour47, t47Minute47);\n //show dialog\n timePickerDialog47.show();\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t9Hour9 = hourOfDay1;\n t9Minute9 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t9Hour9, t9Minute9);\n //set selected time on text view\n\n\n timeS5 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime5.setText(timeS5);\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog35 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t35Hour35 = hourOfDay1;\n t35Minute35 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t35Hour35, t35Minute35);\n //set selected time on text view\n\n\n timeS18 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime18.setText(timeS18);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog35.updateTime(t35Hour35, t35Minute35);\n //show dialog\n timePickerDialog35.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog32 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t32Hour32 = hourOfDay1;\n t32Minute32 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t32Hour32, t32Minute32);\n //set selected time on text view\n\n\n timeE16 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime16.setText(timeE16);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog32.updateTime(t32Hour32, t32Minute32);\n //show dialog\n timePickerDialog32.show();\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t12Hour12 = hourOfDay1;\n t12Minute12 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t12Hour12, t12Minute12);\n //set selected time on text view\n\n\n timeE6 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime6.setText(timeE6);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t29Hour29 = hourOfDay1;\n t29Minute29 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t29Hour29, t29Minute29);\n //set selected time on text view\n\n\n timeS15 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime15.setText(timeS15);\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog16 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t16Hour16 = hourOfDay1;\n t16Minute16 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t16Hour16, t16Minute16);\n //set selected time on text view\n\n\n timeE8 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime8.setText(timeE8);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog16.updateTime(t16Hour16, t16Minute16);\n //show dialog\n timePickerDialog16.show();\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t46Hour46 = hourOfDay1;\n t46Minute46 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t46Hour46, t46Minute46);\n //set selected time on text view\n\n\n timeE23 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime23.setText(timeE23);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t2Hour2 = hourOfDay1;\n t2Minute2 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t2Hour2, t2Minute2);\n //set selected time on text view\n\n\n timeE1 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime1.setText(timeE1);\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog3 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t3Hour3 = hourOfDay1;\n t3Minute3 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t3Hour3, t3Minute3);\n //set selected time on text view\n\n\n timeS2 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime2.setText(timeS2);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog3.updateTime(t3Hour3, t3Minute3);\n //show dialog\n timePickerDialog3.show();\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t24Hour24 = hourOfDay1;\n t24Minute24 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t24Hour24, t24Minute24);\n //set selected time on text view\n\n\n timeE12 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime12.setText(timeE12);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t22Hour22 = hourOfDay1;\n t22Minute22 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t22Hour22, t22Minute22);\n //set selected time on text view\n\n\n timeE11 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime11.setText(timeE11);\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog45 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t45Hour45 = hourOfDay1;\n t45Minute45 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t45Hour45, t45Minute45);\n //set selected time on text view\n\n\n timeS23 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime23.setText(timeS23);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog45.updateTime(t45Hour45, t45Minute45);\n //show dialog\n timePickerDialog45.show();\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t33Hour33 = hourOfDay1;\n t33Minute33 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t33Hour33, t33Minute33);\n //set selected time on text view\n\n\n timeS17 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime17.setText(timeS17);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t47Hour47 = hourOfDay1;\n t47Minute47 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t47Hour47, t47Minute47);\n //set selected time on text view\n\n\n timeS24 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime24.setText(timeS24);\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog33 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t33Hour33 = hourOfDay1;\n t33Minute33 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t33Hour33, t33Minute33);\n //set selected time on text view\n\n\n timeS17 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime17.setText(timeS17);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog33.updateTime(t33Hour33, t33Minute33);\n //show dialog\n timePickerDialog33.show();\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t41Hour41 = hourOfDay1;\n t41Minute41 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t41Hour41, t41Minute41);\n //set selected time on text view\n\n\n timeS21 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime21.setText(timeS21);\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog37 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t37Hour37 = hourOfDay1;\n t37Minute37 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t37Hour37, t37Minute37);\n //set selected time on text view\n\n\n timeS19 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime19.setText(timeS19);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog37.updateTime(t37Hour37, t37Minute37);\n //show dialog\n timePickerDialog37.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog36 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t36Hour36 = hourOfDay1;\n t36Minute36 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t36Hour36, t36Minute36);\n //set selected time on text view\n\n\n timeE18 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime18.setText(timeE18);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog36.updateTime(t36Hour36, t36Minute36);\n //show dialog\n timePickerDialog36.show();\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t15Hour15 = hourOfDay1;\n t15Minute15 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t15Hour15, t15Minute15);\n //set selected time on text view\n\n\n timeS8 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime8.setText(timeS8);\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog4 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t4Hour4 = hourOfDay1;\n t4Minute4 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t4Hour4, t4Minute4);\n //set selected time on text view\n\n\n timeE2 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime2.setText(timeE2);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog4.updateTime(t4Hour4, t4Minute4);\n //show dialog\n timePickerDialog4.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog12 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t12Hour12 = hourOfDay1;\n t12Minute12 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t12Hour12, t12Minute12);\n //set selected time on text view\n\n\n timeE6 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime6.setText(timeE6);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog12.updateTime(t12Hour12, t12Minute12);\n //show dialog\n timePickerDialog12.show();\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t34Hour34 = hourOfDay1;\n t34Minute34 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t34Hour34, t34Minute34);\n //set selected time on text view\n\n\n timeE17 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime17.setText(timeE17);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t18Hour18 = hourOfDay1;\n t18Minute18 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t18Hour18, t18Minute18);\n //set selected time on text view\n\n\n timeE9 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime9.setText(timeE9);\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog23 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t23Hour23 = hourOfDay1;\n t23Minute23 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t23Hour23, t23Minute23);\n //set selected time on text view\n\n\n timeS12 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime12.setText(timeS12);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog23.updateTime(t23Hour23, t23Minute23);\n //show dialog\n timePickerDialog23.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog42 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t42Hour42 = hourOfDay1;\n t42Minute42 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t42Hour42, t42Minute42);\n //set selected time on text view\n\n\n timeE21 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime21.setText(timeE21);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog42.updateTime(t42Hour42, t42Minute42);\n //show dialog\n timePickerDialog42.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog34 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t34Hour34 = hourOfDay1;\n t34Minute34 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t34Hour34, t34Minute34);\n //set selected time on text view\n\n\n timeE17 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime17.setText(timeE17);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog34.updateTime(t34Hour34, t34Minute34);\n //show dialog\n timePickerDialog34.show();\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t50Hour50 = hourOfDay1;\n t50Minute50 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t50Hour50, t50Minute50);\n //set selected time on text view\n\n\n timeE25 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime25.setText(timeE25);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t38Hour38 = hourOfDay1;\n t38Minute38 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t38Hour38, t38Minute38);\n //set selected time on text view\n\n\n timeE19 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime19.setText(timeE19);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t40Hour40 = hourOfDay1;\n t40Minute40 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t40Hour40, t40Minute40);\n //set selected time on text view\n\n\n timeE20 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime20.setText(timeE20);\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog41 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t41Hour41 = hourOfDay1;\n t41Minute41 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t41Hour41, t41Minute41);\n //set selected time on text view\n\n\n timeS21 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime21.setText(timeS21);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog41.updateTime(t41Hour41, t41Minute41);\n //show dialog\n timePickerDialog41.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog19 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t19Hour19 = hourOfDay1;\n t19Minute19 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t19Hour19, t19Minute19);\n //set selected time on text view\n\n\n timeS10 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime10.setText(timeS10);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog19.updateTime(t19Hour19, t19Minute19);\n //show dialog\n timePickerDialog19.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog29 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t29Hour29 = hourOfDay1;\n t29Minute29 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t29Hour29, t29Minute29);\n //set selected time on text view\n\n\n timeS15 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime15.setText(timeS15);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog29.updateTime(t29Hour29, t29Minute29);\n //show dialog\n timePickerDialog29.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog21 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t21Hour21 = hourOfDay1;\n t21Minute21 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t21Hour21, t21Minute21);\n //set selected time on text view\n\n\n timeS11 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime11.setText(timeS11);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog21.updateTime(t21Hour21, t21Minute21);\n //show dialog\n timePickerDialog21.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog50 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t50Hour50 = hourOfDay1;\n t50Minute50 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t50Hour50, t50Minute50);\n //set selected time on text view\n\n\n timeE25 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime25.setText(timeE25);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog50.updateTime(t50Hour50, t50Minute50);\n //show dialog\n timePickerDialog50.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog48 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t48Hour48 = hourOfDay1;\n t48Minute48 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t48Hour48, t48Minute48);\n //set selected time on text view\n\n\n timeE24 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime24.setText(timeE24);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog48.updateTime(t48Hour48, t48Minute48);\n //show dialog\n timePickerDialog48.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog27 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t27Hour27 = hourOfDay1;\n t27Minute27 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t27Hour27, t27Minute27);\n //set selected time on text view\n\n\n timeS14 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime14.setText(timeS14);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog27.updateTime(t27Hour27, t27Minute27);\n //show dialog\n timePickerDialog27.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog9 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t9Hour9 = hourOfDay1;\n t9Minute9 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t9Hour9, t9Minute9);\n //set selected time on text view\n\n\n timeS5 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime5.setText(timeS5);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog9.updateTime(t9Hour9, t9Minute9);\n //show dialog\n timePickerDialog9.show();\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t17Hour17 = hourOfDay1;\n t17Minute17 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t17Hour17, t17Minute17);\n //set selected time on text view\n\n\n timeS9 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime9.setText(timeS9);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t36Hour36 = hourOfDay1;\n t36Minute36 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t36Hour36, t36Minute36);\n //set selected time on text view\n\n\n timeE18 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime18.setText(timeE18);\n }", "private void selectTime() {\n Calendar calendar = Calendar.getInstance();\n int hour = calendar.get(Calendar.HOUR_OF_DAY);\n int minute = calendar.get(Calendar.MINUTE);\n TimePickerDialog timePickerDialog = new TimePickerDialog(this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int i, int i1) {\n timeTonotify = i + \":\" + i1; //temp variable to store the time to set alarm\n mTimebtn.setText(FormatTime(i, i1)); //sets the button text as selected time\n }\n }, hour, minute, false);\n timePickerDialog.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog18 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t18Hour18 = hourOfDay1;\n t18Minute18 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t18Hour18, t18Minute18);\n //set selected time on text view\n\n\n timeE9 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime9.setText(timeE9);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog18.updateTime(t18Hour18, t18Minute18);\n //show dialog\n timePickerDialog18.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog5 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t5Hour5 = hourOfDay1;\n t5Minute5 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t5Hour5, t5Minute5);\n //set selected time on text view\n\n\n timeS3 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime3.setText(timeS3);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog5.updateTime(t5Hour5, t5Minute5);\n //show dialog\n timePickerDialog5.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog39 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t39Hour39 = hourOfDay1;\n t39Minute39 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t39Hour39, t39Minute39);\n //set selected time on text view\n\n\n timeS20 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime20.setText(timeS20);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog39.updateTime(t39Hour39, t39Minute39);\n //show dialog\n timePickerDialog39.show();\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t14Hour14 = hourOfDay1;\n t14Minute14 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t14Hour14, t14Minute14);\n //set selected time on text view\n\n\n timeE7 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime7.setText(timeE7);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t44Hour44 = hourOfDay1;\n t44Minute44 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t44Hour44, t44Minute44);\n //set selected time on text view\n\n\n timeE22 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime22.setText(timeE22);\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog11 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t11Hour11 = hourOfDay1;\n t11Minute11 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t11Hour11, t11Minute11);\n //set selected time on text view\n\n\n timeS6 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime6.setText(timeS6);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog11.updateTime(t11Hour11, t11Minute11);\n //show dialog\n timePickerDialog11.show();\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t48Hour48 = hourOfDay1;\n t48Minute48 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t48Hour48, t48Minute48);\n //set selected time on text view\n\n\n timeE24 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime24.setText(timeE24);\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog17 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t17Hour17 = hourOfDay1;\n t17Minute17 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t17Hour17, t17Minute17);\n //set selected time on text view\n\n\n timeS9 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime9.setText(timeS9);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog17.updateTime(t17Hour17, t17Minute17);\n //show dialog\n timePickerDialog17.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog26 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t26Hour26 = hourOfDay1;\n t26Minute26 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t26Hour26, t26Minute26);\n //set selected time on text view\n\n\n timeE13 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime13.setText(timeE13);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog26.updateTime(t26Hour26, t26Minute26);\n //show dialog\n timePickerDialog26.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog2 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t2Hour2 = hourOfDay1;\n t2Minute2 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t2Hour2, t2Minute2);\n //set selected time on text view\n\n\n timeE1 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime1.setText(timeE1);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog2.updateTime(t2Hour2, t2Minute2);\n //show dialog\n timePickerDialog2.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog40 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t40Hour40 = hourOfDay1;\n t40Minute40 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t40Hour40, t40Minute40);\n //set selected time on text view\n\n\n timeE20 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime20.setText(timeE20);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog40.updateTime(t40Hour40, t40Minute40);\n //show dialog\n timePickerDialog40.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog38 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t38Hour38 = hourOfDay1;\n t38Minute38 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t38Hour38, t38Minute38);\n //set selected time on text view\n\n\n timeE19 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime19.setText(timeE19);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog38.updateTime(t38Hour38, t38Minute38);\n //show dialog\n timePickerDialog38.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog8 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t8Hour8 = hourOfDay1;\n t8Minute8 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t8Hour8, t8Minute8);\n //set selected time on text view\n\n\n timeE4 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime4.setText(timeE4);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog8.updateTime(t8Hour8, t8Minute8);\n //show dialog\n timePickerDialog8.show();\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t42Hour42 = hourOfDay1;\n t42Minute42 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t42Hour42, t42Minute42);\n //set selected time on text view\n\n\n timeE21 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime21.setText(timeE21);\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog22 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t22Hour22 = hourOfDay1;\n t22Minute22 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t22Hour22, t22Minute22);\n //set selected time on text view\n\n\n timeE11 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime11.setText(timeE11);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog22.updateTime(t22Hour22, t22Minute22);\n //show dialog\n timePickerDialog22.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog15 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t15Hour15 = hourOfDay1;\n t15Minute15 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t15Hour15, t15Minute15);\n //set selected time on text view\n\n\n timeS8 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime8.setText(timeS8);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog15.updateTime(t15Hour15, t15Minute15);\n //show dialog\n timePickerDialog15.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog10 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t10Hour10 = hourOfDay1;\n t10Minute10 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t10Hour10, t10Minute10);\n //set selected time on text view\n\n\n timeE5 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime5.setText(timeE5);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog10.updateTime(t10Hour10, t10Minute10);\n //show dialog\n timePickerDialog10.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog44 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t44Hour44 = hourOfDay1;\n t44Minute44 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t44Hour44, t44Minute44);\n //set selected time on text view\n\n\n timeE22 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime22.setText(timeE22);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog44.updateTime(t44Hour44, t44Minute44);\n //show dialog\n timePickerDialog44.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog24 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t24Hour24 = hourOfDay1;\n t24Minute24 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t24Hour24, t24Minute24);\n //set selected time on text view\n\n\n timeE12 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime12.setText(timeE12);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog24.updateTime(t24Hour24, t24Minute24);\n //show dialog\n timePickerDialog24.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog14 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t14Hour14 = hourOfDay1;\n t14Minute14 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t14Hour14, t14Minute14);\n //set selected time on text view\n\n\n timeE7 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime7.setText(timeE7);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog14.updateTime(t14Hour14, t14Minute14);\n //show dialog\n timePickerDialog14.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog28 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t28Hour28 = hourOfDay1;\n t28Minute28 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t28Hour28, t28Minute28);\n //set selected time on text view\n\n\n timeE14 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime14.setText(timeE14);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog28.updateTime(t28Hour28, t28Minute28);\n //show dialog\n timePickerDialog28.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog20 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t20Hour20 = hourOfDay1;\n t20Minute20 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t20Hour20, t20Minute20);\n //set selected time on text view\n\n\n timeE10 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime10.setText(timeE10);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog20.updateTime(t20Hour20, t20Minute20);\n //show dialog\n timePickerDialog20.show();\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t30Hour30 = hourOfDay1;\n t30Minute30 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t30Hour30, t30Minute30);\n //set selected time on text view\n\n\n timeE15 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime15.setText(timeE15);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t28Hour28 = hourOfDay1;\n t28Minute28 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t28Hour28, t28Minute28);\n //set selected time on text view\n\n\n timeE14 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime14.setText(timeE14);\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog1 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t1Hour1 = hourOfDay1;\n t1Minute1 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t1Hour1, t1Minute1);\n //set selected time on text view\n\n\n timeS1 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime1.setText(timeS1);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog1.updateTime(t1Hour1, t1Minute1);\n //show dialog\n timePickerDialog1.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog7 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t7Hour7 = hourOfDay1;\n t7Minute7 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t7Hour7, t7Minute7);\n //set selected time on text view\n\n\n timeS4 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime4.setText(timeS4);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog7.updateTime(t7Hour7, t7Minute7);\n //show dialog\n timePickerDialog7.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog6 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t6Hour6 = hourOfDay1;\n t6Minute6 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t6Hour6, t6Minute6);\n //set selected time on text view\n\n\n timeE3 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime3.setText(timeE3);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog6.updateTime(t6Hour6, t6Minute6);\n //show dialog\n timePickerDialog6.show();\n }" ]
[ "0.78114796", "0.7751186", "0.7741298", "0.77164996", "0.7710284", "0.7702009", "0.7692462", "0.7692112", "0.7690251", "0.76766205", "0.7673401", "0.767148", "0.76662004", "0.7664653", "0.7662537", "0.76611686", "0.7658395", "0.7657355", "0.7656952", "0.76565063", "0.76564294", "0.76512015", "0.7650501", "0.76502055", "0.76495284", "0.76469547", "0.7646727", "0.76455355", "0.7645531", "0.7642618", "0.7636658", "0.7635543", "0.7635258", "0.7634717", "0.76325494", "0.76317227", "0.7631449", "0.763065", "0.7630038", "0.7629993", "0.76294094", "0.7628178", "0.76272166", "0.7624662", "0.7622254", "0.76170754", "0.761609", "0.7615506", "0.76138633", "0.76136345", "0.7612946", "0.76115865", "0.76114917", "0.7611022", "0.7610109", "0.7609244", "0.7609006", "0.76058984", "0.76054937", "0.76041824", "0.76019174", "0.7600217", "0.759567", "0.7595503", "0.7594933", "0.75938296", "0.7586889", "0.7586701", "0.75857884", "0.75856024", "0.7584346", "0.75826585", "0.7582522", "0.7580788", "0.7580457", "0.7578648", "0.75721335", "0.75698894", "0.7569282", "0.7567454", "0.7565757", "0.7562328", "0.7560654", "0.7552827", "0.75505745", "0.7547945", "0.7546243", "0.75446147", "0.7544093", "0.75429755", "0.754195", "0.7533719", "0.75326616", "0.75283504", "0.7527409", "0.75262344", "0.75208765", "0.7517218", "0.7516916", "0.75054115", "0.7496871" ]
0.0
-1
To check empty edit text
private boolean checkLengthDeviceSerialEditText (EditText text, TextInputLayout TFB, String massage) { if(text.getText().toString().length() > 10 || text.getText().toString().length() < 10) { TFB.setErrorEnabled(true); TFB.setError(massage); return false; } else { TFB.setErrorEnabled(false); return true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isEmpty(EditText text){\n CharSequence check = text.getText().toString().trim();\n return TextUtils.isEmpty(check);\n }", "public boolean textboxIsEmpty(EditText editText) {\n return editText.getText().toString().trim().length() == 0;\n }", "private boolean isEmpty(EditText etText) {\n return etText.getText().toString().trim().length() <= 0;\n }", "public boolean isEmpty(EditText etText){\n return etText.getText().toString().length() == 0;\n }", "private boolean isEmpty(EditText etText) {\n\t\tif (etText.getText().toString().trim().length() > 0)\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}", "private static boolean isEmpty(EditText etText) {\n if (etText.getText().toString().trim().length() > 0)\n return false;\n\n return true;\n }", "private boolean isEmptyField (EditText editText){\n boolean result = editText.getText().toString().length() <= 0;\n if (result)\n Toast.makeText(UserSignUp.this, \"Fill all fields!\", Toast.LENGTH_SHORT).show();\n return result;\n }", "private boolean isEmpty(TextInputEditText textInputEditText) {\n if (textInputEditText.getText().toString().trim().length() > 0)\n return false;\n return true;\n }", "protected boolean isFieldEmpty(EditText text) {\n if (text.getText().toString().trim().length() == 0) {\n text.setError(getString(R.string.empty_field));\n text.requestFocus();\n return true;\n }\n return false;\n }", "public boolean isFilled() {\n return(!this.getText().trim().equals(\"\"));\n }", "public void CheckEditTextIsEmptyOrNot()\r\n {\r\n ename_holder = name_event.getText().toString();\r\n edesc_holder = desc_event.getText().toString();\r\n eloc_holder = loc_event.getText().toString();\r\n edate_holder = date_event.getText().toString();\r\n etime_holder = time_event.getText().toString();\r\n elat_holder = lat_event.getText().toString();\r\n elong_holder = long_event.getText().toString();\r\n\r\n if(TextUtils.isEmpty(ename_holder) || TextUtils.isEmpty(edesc_holder) || TextUtils.isEmpty(eloc_holder) || TextUtils.isEmpty(edate_holder) || TextUtils.isEmpty(etime_holder) || TextUtils.isEmpty(elat_holder) || TextUtils.isEmpty(elong_holder))\r\n {\r\n CheckEditText = false;\r\n }\r\n else\r\n {\r\n CheckEditText = true;\r\n }\r\n }", "private Boolean isFieldEmpty(EditText field) {\n return field.getText().toString().trim().equals(\"\");\n }", "public static boolean isEditTextEmpty(EditText editText, String warning) {\n\t\treturn isEditTextEmpty(editText, warning, null);\n\t}", "private boolean checkEmptyEditText(EditText text, TextInputLayout TFB, String massage) {\n\n if (text.getText().toString().isEmpty())\n {\n TFB.setErrorEnabled(true);\n TFB.setError(massage);\n return false;\n\n }\n else\n {\n TFB.setErrorEnabled(false);\n return true;\n }\n\n }", "public boolean checkBlankCorrectness(LinearLayout layout) {\n boolean isCorrect = false;\n int count = layout.getChildCount();\n try {\n for (int i = 0; i < count; i++) {\n EditText view = ((EditText) layout.getChildAt(i));\n if (!TextUtils.isEmpty(view.getTag().toString().trim())) {\n\n /*Replacing ck-editor ghost character with blank*/\n String correctAnswer = view.getTag().toString().trim();\n correctAnswer = correctAnswer.replace(ConstantUtil.CK_EDITOR_GHOST_CHARACTER, ConstantUtil.BLANK);\n\n isCorrect = correctAnswer.trim().equalsIgnoreCase(view.getText().toString().trim());\n\n } else {\n return false;\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return isCorrect;\n }", "public void CheckEditTextStatus(){\n\n // Getting value from All EditText and storing into String Variables.\n NameHolder = Name.getText().toString();\n EmailHolder = Email.getText().toString();\n PasswordHolder = Password.getText().toString();\n\n // Checking EditText is empty or no using TextUtils.\n if( TextUtils.isEmpty(NameHolder)|| TextUtils.isEmpty(EmailHolder)|| TextUtils.isEmpty(PasswordHolder)){\n\n EditTextEmptyHolder = false ;\n\n }\n else {\n\n EditTextEmptyHolder = true ;\n }\n }", "private boolean isAnyEmpty(){\n //get everything\n return (fname.getText().toString().trim().length() == 0)\n || (lname.getText().toString().trim().length() == 0)\n || (email.getText().toString().trim().length() == 0)\n || (password.getText().toString().trim().length() == 0);\n }", "public static boolean isEmpty(EditText et) {\n return TextUtils.isEmpty(et.getText().toString().trim());\n }", "private boolean emptyBoxes() {\n return (FirstName.getText().toString().isEmpty() || LastName.getText().toString().isEmpty() ||\n ID.getText().toString().isEmpty() || PhoneNumber.getText().toString().isEmpty() ||\n EmailAddress.getText().toString().isEmpty() || CreditCard.getText().toString().isEmpty() ||\n Password.getText().toString().isEmpty());\n }", "private boolean check()\n\t{\n\t\tComponent[] comp = contentPanel.getComponents();\n\t\tint check=0;\n\t\tfor(Component c:comp)\n\t\t{\n\t\t\tif(c instanceof JTextField)\n\t\t\t{\n\t\t\t\tif(((JTextField)c).getText().trim().equals(\"\"))\n\t\t\t\t\tcheck++;\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\t\n\t\treturn check==0 ? true : false;\n\t}", "public void onTextChanged(CharSequence s, int start, int before, int count) {\n if (et_One.getText().length() == 1) {\r\n }\r\n }", "public static boolean isEmpty(TextView view) {\n if (view != null && view.getText() != null) {\n return getString(view).length() == 0;\n }\n return false;\n }", "private boolean isComboBoxEmpty(String entry){\n return entry == null || entry.isBlank();\n }", "public boolean isEmpty() {\n return (this.text == null);\n }", "public static boolean validateTextViewEmpty(TextView textView,\n String message,\n Context context,\n String textData)\n {\n\n if (textView.getText().toString().equals(textData))\n {\n Toast toast = Toast.makeText(context, \"\" + message, Toast.LENGTH_LONG);\n toast.show();\n return false;\n }\n else\n {\n return true;\n }\n\n\n }", "private boolean checkInputValidation(){\n if(facility_EDT_value.getText().toString().trim().isEmpty()){\n Toast.makeText(getContext(), \"Please enter search value!\", Toast.LENGTH_LONG).show();\n return false;\n }\n return true;\n }", "private boolean checkEmptyTitle(TextInputLayout name) {\n if (\"\".equals(Objects.requireNonNull(name.getEditText()).getText().toString())) {\n name.setErrorEnabled(true);\n name.setError(getString(R.string.non_empty_field));\n return false;\n }\n\n return true;\n }", "@MediumTest\n\t public void testInfoTextViewText_isEmpty() {\n\t assertEquals(\"\", mtextView1.getText());\n\t }", "@Override\n public void afterTextChanged(Editable s) {\n\n if(!txt_codigo.getText().toString().equals(\"\")){\n //LLAMAR AL METODO QUE COMPRUEBA SI EL CODIGO INGRESADO ES VALIDO O NO (TRUE O FALSE)\n //IF(CODIGO ES VALIDO) ENTONCES TOAST = CODIGO AGREGADO ELSE CODIGOERRONEO\n\n //TXT.CODIGO.SETTEXT(\"\");\n }\n }", "public boolean check(){\n for(TextField texts:textFields){\n if(texts.getText().isEmpty()){\n return false;\n }\n }\n return true;\n }", "@Override\n\t\tprotected boolean isTextValid()\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (getField().getText().isEmpty())\n\t\t\t\t\tthrow new AppException(ErrorId.NO_FILTER);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tcatch (AppException e)\n\t\t\t{\n\t\t\t\tGuiUtils.setFocus(getField());\n\t\t\t\tJOptionPane.showMessageDialog(this, e, App.SHORT_NAME, JOptionPane.ERROR_MESSAGE);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn (getSelection() == null);\n\t}", "private boolean haveEmptyField() {\n return getTextID(FIRST_NAME).isEmpty() ||\n getTextID(LAST_NAME).isEmpty() ||\n getTextID(ADDRESS).isEmpty();\n }", "@Override\n public void afterTextChanged(Editable editable) {\n checkFieldsForEmptyValues();\n }", "@Override\r\n public void afterTextChanged(Editable editable) {\n checkFieldsForEmptyValues();\r\n }", "public static boolean isEditTextEmpty(EditText editText, String warning,\n\t\t\tDrawable drawable) {\n\t\t// reference is null\n\t\tif (editText == null) {\n\t\t\treturn true;\n\t\t}\n\t\t// this is emptyfield\n\t\tif (isTextEmpty(editText.getText().toString())) {\n\t\t\t// display warning in editText\n\t\t\tif (!isTextEmpty(warning)) {\n\t\t\t\tif (drawable == null) {\n\t\t\t\t\teditText.setError(warning);\n\t\t\t\t} else {\n\t\t\t\t\teditText.setError(warning, drawable);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean hasText() {\n return !TextUtils.isEmpty(mText);\n }", "@Override\n\t\t\tpublic void afterTextChanged(Editable s) {\n\n\t\t\t\tLog.e(\"dajiayilian\", \"watcher\" + s.toString());\n\t\t\t\tif (TextUtils.isEmpty(s)) {\n\n\t\t\t\t} else {\n\n\t\t\t\t}\n\t\t\t}", "private boolean hasInput(TextView numberInput) {\n return numberInput.getText().length() > 0;\n }", "@Override\r\n\t\t\tpublic void beforeTextChanged(CharSequence arg0, int arg1,\r\n\t\t\t\t\tint arg2, int arg3) {\n\t\t\t\tString edit = keyword.getText().toString();\r\n\t\t\t\tLog.i(\"cheshi\", \"洛克萨斯edit:\" + edit);\r\n\t\t\t\tif (edit.length() == 0 && edit.equals(\"null\")) {\r\n\t\t\t\t\tdelete.setVisibility(delete.GONE);\r\n\t\t\t\t\tLog.i(\"cheshi\", \"洛克萨斯\");\r\n\t\t\t\t}\r\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onTextChanged(CharSequence arg0, int arg1, int arg2,\r\n\t\t\t\t\tint arg3) {\n\t\t\t\tString edit = keyword.getText().toString();\r\n\t\t\t\tLog.i(\"cheshi\", \"赵信edit:\" + edit);\r\n\t\t\t\tif (edit.length() != 0 && !edit.equals(\"null\")) {\r\n\t\t\t\t\tLog.i(\"cheshi\", \"赵信\");\r\n\t\t\t\t\tdelete.setVisibility(delete.VISIBLE);\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}", "protected boolean isEmpty(String text) {\r\n if (text == null) {\r\n return true;\r\n }\r\n\r\n if (text.trim().length() == 0) {\r\n return true;\r\n }\r\n return false;\r\n }", "private boolean emptyText(String itemType, String building,String room,String brand, String os, String serialNumber){\n if(TextUtils.isEmpty(serialNumber) || serialNumber.equals(\"\")){\n return true;\n }else if(TextUtils.isEmpty(building) || building.equals(\"\")){\n return true;\n }else if(TextUtils.isEmpty(room) || room.equals(\"\")){\n return true;\n }else if(TextUtils.isEmpty(brand) || brand.equals(\"\")) {\n return true;\n }else if(itemType.equals(\"Computer\")){\n if(TextUtils.isEmpty(os) || os.equals(\"\")){\n return true;\n }else{\n return false;\n }\n }else{\n return false;\n }\n }", "@Override\n public void afterTextChanged(Editable editable) {\n try {\n if (!editable.toString().trim().equals(\"\")) {\n filter(editable.toString());\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n }", "private boolean isInvalid(JTextField campo) {\n return campo.getText().isEmpty();\n }", "private boolean isFormEmpty(){\n if(pickupLocationInput.getText().toString().length() != 0){\n return false;\n }\n\n if(destinationInput.getText().toString().length() != 0){\n return false;\n }\n\n if(notesInput.getText().toString().length() != 0){\n return false;\n }\n\n return true;\n }", "private boolean validarComunicacion() {\n String texto = textInputAnadirComunicacion.getEditText().getText().toString().trim();\n if (texto.isEmpty()) {\n textInputAnadirComunicacion.setError(\"El campo no puede estar vacío\");\n return false;\n } else {\n textInputAnadirComunicacion.setError(null);\n return true;\n }\n }", "@Override\n public boolean isValid() {\n if((eMultipleAnswerType == null && textAnswerIn.getText().toString().trim().isEmpty()) || (eMultipleAnswerType != null && !compoundButtonController.isChecked())){\n try {\n invalidText = getResources().getString(R.string.output_invalidField_questionAnswering_notAnswered);\n } catch (NullPointerException e){\n e.printStackTrace();\n }\n return false;\n }\n return true;\n }", "@Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n if (editText.getTag() == null) {\n hasBeenSetManually = true;\n }\n }", "@Override\r\n\t\t\tpublic void afterTextChanged(Editable arg0) {\n\t\t\t\tString edit = keyword.getText().toString();\r\n\t\t\t\tLog.i(\"cheshi\", \"德玛edit:\" + edit);\r\n\t\t\t\tif (edit.length() == 0) {\r\n\t\t\t\t\tdelete.setVisibility(delete.GONE);\r\n\t\t\t\t\tLog.i(\"cheshi\", \"德玛\");\r\n\t\t\t\t}\r\n\t\t\t}", "public void onTextChanged(CharSequence s, int start, int before, int count) {\n if (edtCodeNumber6.getText().toString().length() == 1) //size as per your requirement\n {\n\n }\n }", "static boolean isBlank(Token t) {\n return t.getText().isBlank(); // trim().length() == 0\n }", "@Override\n\t\t\tpublic void afterTextChanged(Editable s) {\n\t\t\t\tString content = mEditTextContent.getText().toString();\n\t\t\t\tif (StringUtil.isEmpty(content)) {\n\t\t\t\t\ttv_send.setVisibility(View.GONE);\n\t\t\t\t\tmoreBtn.setVisibility(View.VISIBLE);\n\t\t\t\t} else {\n\t\t\t\t\ttv_send.setVisibility(View.VISIBLE);\n\t\t\t\t\tmoreBtn.setVisibility(View.GONE);\n\t\t\t\t}\n\t\t\t}", "@Override\n public void afterTextChanged(Editable s) {\n //s.toString();\n if (!s.toString().isEmpty()) {\n czyNazwisko = true;\n } else\n czyNazwisko = false;\n pokazOblicz();\n }", "private void InputTextValidator () {\n isNotNull = !txtCategoryNo.getText().equals(\"\") && !txtCategoryName.getText().equals(\"\");\n }", "private void checkFieldsForEmptyValues() {\n String s1 = edtEmail.getText().toString();\n String s2 = edtDisplayName.getText().toString();\n String s3 = edtPaswd.getText().toString();\n\n if (s1.equals(\"\") || s2.equals(\"\") || s3.equals(\"\")) { //disables the button\n btnRegister.setEnabled(false);\n } else { //enables the button\n btnRegister.setEnabled(true);\n }\n }", "public void onClick(View view) {\n if(Instruction.getText().length()>=0) {\n //do something\n\n }\n else {\n\n }\n\n }", "@Override\n public void onClick(View v) {\n String userEnteredText = ((EditText) findViewById(R.id.editText)).getText().toString();\n\n // If the text field is empty , update label with default text string.\n if (userEnteredText.isEmpty()) {\n textView.setText(\"Enter your own text\");\n } else {\n textView.setText(userEnteredText);\n }\n }", "public boolean validarCampos(){\n String nome = campoNome.getText().toString();\n String descricao = campoDescricao.getText().toString();\n String valor = String.valueOf(campoValor.getRawValue());\n\n\n if(!nome.isEmpty()){\n if(!descricao.isEmpty()){\n if(!valor.isEmpty() && !valor.equals(\"0\")){\n return true;\n }else{\n exibirToast(\"Preencha o valor do seu serviço\");\n return false;\n }\n }else{\n exibirToast(\"Preencha a descrição do seu serviço\");\n return false;\n }\n }else{\n exibirToast(\"Preencha o nome do seu serviço\");\n return false;\n }\n }", "public boolean hasTextValue() {\r\n return getTextValue() != null;\r\n // return StringUtils.isNotBlank(getTextValue());\r\n }", "private void checkForEmptyFields() throws EmptyTextFieldException {\n\n if (date == null || title.equals(\"\") || function.equals(\"\") || protagonist.equals(\"\")\n || source.equals(\"\") || references.equals(\"\") || description.equals(\"\")) {\n throw new EmptyTextFieldException();\n }\n }", "@Override\r\n public boolean checkNull() {\r\n // Check if the two textfields are null or default \r\n return newIng_ingName.getText().equals(\"\") || newIng_ingCal.getText().equals(\"\");\r\n }", "public static void emptyEditText(EditText editText) {\n if (editText != null) {\n editText.setText(\"\");\n }\n }", "public static boolean validarVacio(JTextField text) {\n String vText = text.getText().trim();\n if (\"\".equals(vText)) {\n MensajeSistema.MensajeVarios(\"Este campo no se puede vacio!!!\", MensajeSistema.ERROR_MESSAGE());\n text.setText(null);\n text.grabFocus();\n return false;\n } else {\n text.setText(vText);\n return true;\n }\n }", "public boolean validarIngreso(String texto) {\n if (texto.trim().length() == 0) {\n return true;\n } else {\n return false;\n }\n }", "@Test\n public void testEditTextCleanup() throws Exception {\n\n // perform text input\n onView(withId(R.id.editText))\n .perform(typeText(LOG_TAG));\n\n // click pin button\n onView(withText(R.string.button_name))\n .perform(click());\n\n // verify empty edittext\n onView(withId(R.id.editText))\n .check(matches(withText(\"\")));\n }", "private boolean noFieldsEmpty() {\n if ( nameField.getText().isEmpty()\n || addressField.getText().isEmpty()\n || cityField.getText().isEmpty()\n || countryComboBox.getSelectionModel().getSelectedItem() == null\n || divisionComboBox.getSelectionModel().getSelectedItem() == null\n || postalField.getText().isEmpty()\n || phoneField.getText().isEmpty() ) {\n errorLabel.setText(rb.getString(\"fieldBlank\"));\n return false;\n }\n return true;\n }", "@Override\n\t\tpublic void onTextChanged(CharSequence s, int start, int before, int count) {\n\t\t\tif(!TextUtils.isEmpty(et_password.getText()))\n\t\t\t{\n\t\t\t\ttv_error_password.setVisibility(View.INVISIBLE);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ttv_error_password.setText(\"*密码不能为空\");\n\t\t\t\ttv_error_password.setVisibility(View.VISIBLE);\n\t\t\t}\n\t\t}", "public boolean shouldPaintPrompt(JTextComponent txt)\n/* */ {\n/* 295 */ return (txt.getText() == null) || (txt.getText().length() == 0);\n/* */ }", "private void emptyInputEditText() {\n nomeLogin.setText(null);\n emailLogin.setText(null);\n senhaLogin.setText(null);\n senhaLoginConfirmar.setText(null);\n }", "private boolean validate() {\n if (activityAddTodoBinding.etTitle.getText().toString().trim().isEmpty())\n {\n activityAddTodoBinding.etTitle.setError(getString(R.string.enter_title));\n return false;\n }\n else if (activityAddTodoBinding.etDesc.getText().toString().trim().isEmpty())\n {\n activityAddTodoBinding.etDesc.setError(getString(R.string.enter_desc));\n return false;\n }\n return true;\n }", "private void verificarEmpty() {\n\t\t\tif (tvContactInfoBooks.getText().toString().equals(\"Contacto: \"))\n\t\t\t\ttvContactInfoBooks.setVisibility(View.GONE);\n\t\t\telse\n\t\t\t\ttvContactInfoBooks.setVisibility(View.VISIBLE);\n\t\t\tif (tvAditionalInfoBooks.getText().toString()\n\t\t\t\t\t.equals(\"Información Adicional: \"))\n\t\t\t\ttvAditionalInfoBooks.setVisibility(View.GONE);\n\t\t\telse\n\t\t\t\ttvAditionalInfoBooks.setVisibility(View.VISIBLE);\n\t\t\tif (tvPriceBooks.getText().toString().equals(\"Precio: $0.00\")) {\n\t\t\t\ttvPriceBooks.setVisibility(View.GONE);\n\t\t\t\tResources resources = tvPriceBooks.getResources();\n\t\t\t\tDisplayMetrics metrics = resources.getDisplayMetrics();\n\t\t\t\tfloat px = 10 * (metrics.densityDpi / 160f);\n\t\t\t\tfloat px2 = (float) (2.5 * (metrics.densityDpi / 160f));\n\t\t\t\ttvOfferTypeBooks.setPadding((int) px, 0, 0, (int) px2);\n\t\t\t} else\n\t\t\t\ttvPriceBooks.setVisibility(View.VISIBLE);\n\t\t}", "public boolean checkInput(){\n if(spelerIDField.getText().equals(\"\") || typeField.getText().equals(\"\") || codeField.getText().equals(\"\") || heeftBetaaldField.getText().equals(\"\")){\n return true;\n } else { return false; }\n }", "public static boolean isEmpty (TextFragment textFragment) {\r\n \t\treturn (textFragment == null || (textFragment != null && textFragment.isEmpty()));\r\n \t}", "private boolean hayCamposVacios() {\r\n\t\tif(nomTextField.getText().isEmpty()\r\n\t\t\t|| claveTextField.getText().isEmpty()\r\n\t\t\t\t|| reingresoTextField.getText().isEmpty()\r\n\t\t\t\t\t|| preguntaTextField.getText().isEmpty()\r\n\t\t\t\t\t\t|| respuestaTextField.getText().isEmpty())\r\n\t\t\treturn true;\t\t\r\n\t\treturn false;\r\n\t}", "@Override\n\tpublic void afterTextChanged(Editable s) {\n\t String value = s.toString();\n\t if (value.trim().length() > 0) {\n\t\tet.setError(null);\n\t\tvalidCustomer = true;\n\t } else {\n\t\tet.setError(\"Blank Field\");\n\t\tvalidCustomer = false;\n\t\treturn;\n\t }\n\t}", "boolean hasText();", "boolean hasText();", "boolean hasText();", "boolean hasText();", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Utility.hideKeyBoard(editText, mContext);\n if (editText.getText().toString().trim().length() > 0) {\n pump_no.setText(editText.getText().toString().trim());\n } else {\n pump_no.setText(\"\");\n }\n }", "private void emptyInputEditText() {\n mNameText.setText(null);\n mEmailText.setText(null);\n mPasswordText.setText(null);\n mConfirmPasswordText.setText(null);\n }", "@Override\n\t\t\tpublic void onTextChanged(CharSequence s, int start, int before, int count) {\n\t\t\t\tif(!TextUtils.isEmpty(et_username.getText()))\n\t\t\t\t{\n\t\t\t\t\ttv_errortip_username.setVisibility(View.INVISIBLE);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttv_errortip_username.setText(\"*用户名输入不能为空\");\n\t\t\t\t\ttv_errortip_username.setVisibility(View.VISIBLE);\n\t\t\t\t}\n\t\t\t}", "@Override\n public void afterTextChanged(Editable s) {\n if (s.length() != 0) {\n search(searchIput.getText().toString()); // search user\n } // if input is not empty\n }", "@Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n if (s.length() > 0 || !s.equals(\"\")) {\n searchBottom.setVisibility(View.GONE);\n }\n if (s.length() <= 0) {\n searchBottom.setVisibility(View.VISIBLE);\n updateHistory();\n }\n }", "public boolean isBlank() {\n return (tags.length() == 0);\n }", "private void onTextChanged(CharSequence newText) {\n if (!TextUtils.isEmpty(searchEditText.getText())) {\n displayClearButton(true);\n } else {\n displayClearButton(false);\n }\n }", "public void popUpEmptyTextView() {\n final Intent intent = new Intent(this, AddUserDetailsActivity.class);\n AlertDialog alertDialog = new AlertDialog.Builder(AddUserDetailsActivity.this).create();\n alertDialog.setTitle(\"ERROR\");\n alertDialog.setMessage(\"One of the fields have been left empty, please try again.\"\n );\n alertDialog.setButton(AlertDialog.BUTTON_NEUTRAL, \"OK\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n //Intent intent = new Intent(this, AddUserDetailsActivity.class);\n startActivity(intent);\n finish();\n\n }\n });\n alertDialog.show();\n }", "public void onTextChanged(CharSequence s, int start,int before, int count)\n {\n if(et1.getText().toString().length()==1) //size as per your requirement\n {\n et11.requestFocus();\n }\n }", "public static final boolean m73351b(EditText editText) {\n C7573i.m23587b(editText, \"$this$isEmpty\");\n return TextUtils.isEmpty(editText.getText());\n }", "public boolean isSetText() {\r\n return this.text != null;\r\n }", "public boolean isSetText() {\n return this.text != null;\n }", "@Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n if (mEmailAddress.length() > 0) {\n mAutoFill.setVisibility(View.INVISIBLE);\n } else {\n //Visible again when text is deleted\n mAutoFill.setVisibility(View.VISIBLE);\n }\n }", "public final boolean hasTextForm ()\r\n {\r\n return isSpecialForm() && !specialForm().isValue();\r\n }", "public void onTextChanged(CharSequence s, int start,int before, int count)\n {\n if(ett9.getText().toString().length()==1) //size as per your requirement\n {\n ett10.requestFocus();\n }\n }", "private boolean campiVuoti(){\n return nomeVarTextField.getText().equals(\"\") || tipoVarComboBox.getSelectedIndex() == -1;\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Utility.hideKeyBoard(editText, mContext);\n if (editText.getText().toString().trim().length() > 0) {\n motor_no.setText(editText.getText().toString().trim());\n } else {\n motor_no.setText(\"\");\n }\n }", "@Override\n public void afterTextChanged(Editable s) {\n if (s.toString().length() == 1 && !s.toString().startsWith(\"3\")) {\n s.clear();\n }\n }", "private void verifyInput(){\n String firstName = mFirstNameField.getText().toString();\n String lastName = mLastNameField.getText().toString();\n\n mNameFieldsFilled = !TextUtils.isEmpty(firstName) && !TextUtils.isEmpty(lastName);\n\n }", "public boolean validate() {\n boolean validate = true;\n String titleStr = etTitle.getText().toString();\n String contentStr = etContent.getText().toString();\n if (titleStr.isEmpty() || titleStr.matches(\"\")) {\n etTitle.setError(\"Please Fill Title\");\n validate = false;\n }\n if (contentStr.isEmpty() || contentStr.matches(\"\")) {\n etContent.setError(\"Please Fill Content\");\n validate = false;\n }\n\n return validate;\n }", "@Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n if (mEmailAddress.length() == 0) {\n mAutoFill.setVisibility(View.VISIBLE);\n }\n }" ]
[ "0.824133", "0.815842", "0.8101514", "0.80667645", "0.80134064", "0.79735434", "0.7840596", "0.7668422", "0.76490843", "0.76261675", "0.7571611", "0.7504824", "0.748611", "0.7449482", "0.73945504", "0.7297859", "0.72874", "0.7265835", "0.71428996", "0.71345884", "0.7108926", "0.7088799", "0.6976513", "0.6973683", "0.69686276", "0.69645125", "0.69297105", "0.68993145", "0.68974143", "0.68789613", "0.68172836", "0.6783022", "0.67749524", "0.67699015", "0.67538476", "0.6715841", "0.6700405", "0.6696136", "0.66522217", "0.6632689", "0.6632127", "0.66246766", "0.65810937", "0.6567254", "0.6549063", "0.6543185", "0.654146", "0.65295213", "0.6527402", "0.65220356", "0.65171444", "0.65117717", "0.6511301", "0.6509021", "0.6483146", "0.647492", "0.6405532", "0.6403638", "0.6394263", "0.6379873", "0.6361067", "0.63401586", "0.6320852", "0.63169956", "0.6292113", "0.6279574", "0.6275734", "0.6272281", "0.6257155", "0.6243061", "0.62412435", "0.6239994", "0.6235205", "0.6232842", "0.6227223", "0.62261564", "0.62159926", "0.62159926", "0.62159926", "0.62159926", "0.61933696", "0.6192725", "0.6191671", "0.6185643", "0.61752874", "0.61744016", "0.61436105", "0.6141913", "0.61354584", "0.6126041", "0.61207676", "0.61125284", "0.6110834", "0.6102455", "0.6100555", "0.6096094", "0.60956234", "0.60864025", "0.608617", "0.6079718", "0.60728663" ]
0.0
-1
To check length of device serial number
private boolean checkLengthPlateNumber(EditText text, TextInputLayout TFB, String massage) { if(text.getText().toString().length() > 10) { TFB.setErrorEnabled(true); TFB.setError(massage); return false; } else { TFB.setErrorEnabled(false); return true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Boolean checkLength(String detail);", "private boolean checkLengthDeviceSerialEditText (EditText text, TextInputLayout TFB, String massage) {\n if(text.getText().toString().length() > 10 || text.getText().toString().length() < 10)\n {\n TFB.setErrorEnabled(true);\n TFB.setError(massage);\n return false;\n }\n else\n {\n TFB.setErrorEnabled(false);\n return true;\n }\n\n\n }", "boolean checkLen(int epcbytes)\n {\n return true;\n }", "public int length();", "public int length();", "public int length();", "public int length();", "public int length();", "public int length() {\r\n int length = 1 + 2 + deviceToken.length + 2 + payload.length;\r\n final int marshalledLength = marshall().length;\r\n assert marshalledLength == length;\r\n return length;\r\n }", "int length();", "int length();", "int length();", "int length();", "int length();", "int length();", "int length();", "public int get_length();", "public int getLength() {\n\t\treturn length & 0xffff;\n\t}", "public int getLength(){\n return sequence.length(); \n\t}", "public void findLength()\n\t{\n\t\tlength = name.length();\n\t}", "public long getLength();", "public long getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "public short getValueLength() throws ToolkitException {\n byte[] buffer = getAPDUBuffer();\n short Lc = (short)(buffer[OFFSET_LC] & 0xFF);\n short TLVOffset = getLastTLVOffset(buffer, Lc);\n if (TLVOffset >= Lc) {\n ToolkitException.throwIt(ToolkitException.UNAVAILABLE_ELEMENT);\n }\n return (short)(buffer[(short)\n\t\t\t (TLVOffset + 1)] & 0xFF); // return the length\n }", "public abstract int length();", "public abstract int length();", "public int getLength() {\n/* 301 */ return this.stream.getInt(COSName.LENGTH, 0);\n/* */ }", "public int length() {\n/* 46 */ return (this.value != null) ? 1 : 0;\n/* */ }", "private int length() { return length; }", "public int length() {\n int counter = 0;\n while (bitAt(counter) == '1' || bitAt(counter) == '0') {\n counter = counter + 1;\n }\n return counter;\n }", "public short getLength() throws ToolkitException {\n byte[] buffer = getAPDUBuffer();\n short length = (short)(buffer[(short)(currentTLVOffset + 1)] & 0xFF);\n return length;\n }", "public int getLength();", "public int getLength();", "public int getLength();", "public int getLength() {\r\n return this.seqLength;\r\n }", "private int getLength() throws IOException {\n\n\t\t\tint i = this.in.read();\n\t\t\tif (i == -1) {\n\t\t\t\tthrow new IllegalStateException(\"Invalid DER: length missing\");\n\t\t\t}\n\n\t\t\t// A single byte short length\n\t\t\tif ((i & ~0x7F) == 0) {\n\t\t\t\treturn i;\n\t\t\t}\n\n\t\t\tint num = i & 0x7F;\n\n\t\t\t// We can't handle length longer than 4 bytes\n\t\t\tif (i >= 0xFF || num > 4) {\n\t\t\t\tthrow new IllegalStateException(\"Invalid DER: length field too big (\" + i + \")\");\n\t\t\t}\n\n\t\t\tbyte[] bytes = new byte[num];\n\t\t\tint n = this.in.read(bytes);\n\t\t\tif (n < num) {\n\t\t\t\tthrow new IllegalStateException(\"Invalid DER: length too short\");\n\t\t\t}\n\n\t\t\treturn new BigInteger(1, bytes).intValue();\n\t\t}", "private int exitOkIgnoreLength() {\r\n\t\tthis.updateUnitStatus();\r\n\t\tthis.eventLogger.logLine(\" => DEVICE_END\");\r\n\t\treturn iDeviceStatus.INCORRECT_LENGTH_IS_OK | iDeviceStatus.DEVICE_END;\r\n\t}", "public int getLength()\n\t{\n\t\treturn length;\n\t}", "public int getLength()\n\t{\n\t\treturn length;\n\t}", "public int getLength()\n {\n return seq.length;\n }", "public int getLength()\n {\n\treturn length;\n }", "public int getLength() {\r\n\t\treturn length;\r\n\t}", "int getLength() throws IOException;", "public int getLength() {\r\n return length;\r\n }", "public int getLength() {\r\n return length;\r\n }", "public int getLength() {\r\n return length;\r\n }", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "private static boolean checkLength(String password) {\n \treturn password.length() >= minLength;\n }", "public int getLength() { return length;\t}", "public int length() {\n // PUT YOUR CODE HERE\n }", "public int getLength() {\n return length;\n }", "public int getLength()\n\t{\n\t\treturn (int) length;\n\t}", "private String validateSerialNo(Equipment equipment, OrderHeader order) {\n\t\tif (equipment.getSerialNo() == null || equipment.getSerialNo().length() < 7) {\n\t\t\treturn SERIAL_NO_TOO_SHORT;\n\t\t}\n\t\t// - serial number not registered on current order\n\t\tfor (OrderLine line : order.getOrderLines()) {\n\t\t\tfor (Equipment equip : line.getEquipments()) {\n\t\t\t\tif (equip.getSerialNo().equals(equipment.getSerialNo())) {\n\t\t\t\t\treturn SERIAL_NO_ON_CURRENT_ORDER + \" (\" + equipment.getSerialNo() + \")\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// - serial number not registered on other order\n\t\tList<Equipment> equipments = equipmentRepo.findBySerialNo(equipment.getSerialNo());\n\t\tif (equipments != null && equipments.size() > 0) {\n\t\t\tEquipment equip = equipments.get(0);\n\t\t\tif (equip.getOrderLine() != null && equip.getOrderLine().getOrderHeader() != null) {\n\t\t\t\treturn SERIAL_NO_ON_OTHER_ORDER + equip.getOrderLine().getOrderHeader().getOrderNumber() + \" (\" + equipment.getSerialNo() + \")\";\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn RESULT_OK;\n\t}", "public abstract long getLength();", "public abstract long getLength();", "protected abstract int getLength();", "private int getLength() throws IOException {\n\n int i = in.read();\n if ( i == -1 ) {\n throw new IOException( BaseMessages\n .getString( MQTTPublisherMeta.PKG, \"MQTTClientSSL.Error.InvalidDERLengthMissing\" ) );\n }\n\n // A single byte short length\n if ( ( i & ~0x7F ) == 0 ) {\n return i;\n }\n\n int num = i & 0x7F;\n\n // We can't handle length longer than 4 bytes\n if ( i >= 0xFF || num > 4 ) {\n throw new IOException(\n BaseMessages.getString( MQTTPublisherMeta.PKG, \"MQTTClientSSL.Error.InvalidDERFieldTooBig\", i ) );\n }\n\n byte[] bytes = new byte[num];\n int n = in.read( bytes );\n if ( n < num ) {\n throw new IOException(\n BaseMessages.getString( MQTTPublisherMeta.PKG, \"MQTTClientSSL.Error.InvalidDERLengthTooShort\" ) );\n }\n\n return new BigInteger( 1, bytes ).intValue();\n }", "public int length() {\n return aminoAcidSequence.length();\n }", "public boolean mo9444d() {\n if (!isLengthGreaterZero()) {\n return false;\n }\n byte[] bArr = this.byteArr;\n if (bArr.length >= 32) {\n return IsFullyValid(bArr, checkAndGetTypeLength());\n }\n return true;\n }", "public int getLength(){\n\t\treturn length;\n\t}", "public int getLength(){\n\t\treturn length;\n\t}", "public String getlength()\n\t{\n\t\treturn length.getText();\n\t}", "public int getProtocolDelimitedLength();", "static int getLength(String line)\n{\n\tString pattern = \"SVLEN=\";\n\tint idx = line.indexOf(pattern);\n\tif(idx == -1) return 0;\n\tline = line.toUpperCase();\n\tidx += pattern.length();\n\tint end = idx;\n\tint length = 0;\n\twhile(end < line.length() && line.charAt(end) >= '0' && line.charAt(end) <= '9')\n\t{\n\t length = length * 10 + (line.charAt(end) - '0');\n\t end++;\n\t}\n\treturn length;\n}", "private int length() {\n\t\treturn this.lenght;\n\t}", "int length()\n\t{\n\t\treturn length;\n\t}", "public int length() {\n \treturn length;\n }", "public int getLength() {\n return length;\n }", "public int getLength() {\n return length;\n }", "public int length()\n\t{\n\t\treturn length;\n\t}", "protected int getLength() {\n return length;\n }", "public int getLength() {return length;}", "public boolean meetsMinimumLength(){\n\n return alg.meetsMinimumLength(input.getText().toString());\n }", "public int length() {\n \t \n \t //return the length\n \t return(len);\n }", "long countMessageLengthTill(long maxLength) throws IllegalStateException;", "public int getLength()\n {\n return length;\n }", "static int size_of_rlc(String passed){\n\t\treturn 1;\n\t}", "int getTextLength();", "public abstract int getLength();", "public abstract int getLength();", "public int getLength() {\n return length_;\n }", "public int length(){\n\t\treturn this.tamanho;\n\t}", "public int my_length();", "int minLength();", "private boolean isPhoneValid(String password) {\n return password.length() == 10;\r\n }", "public int length() {\n\t\treturn length;\n\t}", "public int length() {\n\t\treturn length;\n\t}" ]
[ "0.66446114", "0.62027276", "0.6129831", "0.6083508", "0.6083508", "0.6083508", "0.6083508", "0.6083508", "0.6067864", "0.6022701", "0.6022701", "0.6022701", "0.6022701", "0.6022701", "0.6022701", "0.6022701", "0.60202473", "0.59350926", "0.5920708", "0.59170985", "0.58859", "0.58859", "0.5854257", "0.5854257", "0.5854257", "0.5854257", "0.5854257", "0.5854257", "0.5854257", "0.5854257", "0.5854257", "0.5854257", "0.5849834", "0.584436", "0.584436", "0.58385676", "0.5833951", "0.58150387", "0.5763297", "0.5757347", "0.57534117", "0.57534117", "0.57534117", "0.5740278", "0.5739937", "0.572315", "0.57148194", "0.57148194", "0.5708956", "0.57063264", "0.569322", "0.56917334", "0.5671553", "0.5671553", "0.5671553", "0.56698424", "0.56698424", "0.56698424", "0.56698424", "0.56698424", "0.56698424", "0.5665092", "0.5663802", "0.5662761", "0.566099", "0.5653769", "0.56503594", "0.5650288", "0.5650288", "0.5648508", "0.564743", "0.564447", "0.56433594", "0.56425977", "0.56425977", "0.5639514", "0.5630461", "0.56291246", "0.5628058", "0.56218433", "0.56104416", "0.5601106", "0.5601106", "0.55905515", "0.5589643", "0.55880344", "0.55850494", "0.55815476", "0.5549824", "0.5548569", "0.5543421", "0.55365974", "0.55219084", "0.55219084", "0.5512646", "0.55069166", "0.5502966", "0.5497528", "0.54973775", "0.54848874", "0.54848874" ]
0.0
-1
To check length of plate number
private boolean checkOdometerNumber(EditText text, TextInputLayout TFB, String massage) { if(text.getText().toString().length() > 8) { TFB.setErrorEnabled(true); TFB.setError(massage); return false; } else { TFB.setErrorEnabled(false); return true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean checkLineLength(String matrice){\r\n String[] lignes = matrice.trim().split(\" {1,}\");\r\n int longeur = lignes[0].length();\r\n int i = 1;\r\n boolean memeLongeur = true;\r\n while(i < lignes.length && memeLongeur){\r\n memeLongeur = (longeur == lignes[i].length());\r\n ++i;\r\n }\r\n\r\n if(! memeLongeur){\r\n System.out.println(\"Matrice invalide, lignes de longueurs differentes !\");\r\n }\r\n\r\n return memeLongeur;\r\n }", "boolean testLength(Tester t) {\n return t.checkExpect(lob3.length(), 3) && t.checkExpect(los3.length(), 3)\n && t.checkExpect(los1.length(), 1) && t.checkExpect(new MtLoGamePiece().length(), 0);\n }", "Boolean checkLength(String detail);", "@Test\r\n\tpublic void testLength() {\r\n\t\tassertEquals(LENGTH, validRectangle.length());\r\n\t}", "private boolean checkLengthPlateNumber(EditText text, TextInputLayout TFB, String massage) {\n if(text.getText().toString().length() > 10)\n {\n TFB.setErrorEnabled(true);\n TFB.setError(massage);\n return false;\n }\n else\n {\n TFB.setErrorEnabled(false);\n return true;\n }\n }", "int getWayLength();", "public int checkNoOfRapelPlayerHolds () { return noOfRapels; }", "boolean checkLen(int epcbytes)\n {\n return true;\n }", "private boolean checkDigit(String code, int length) {\n int len = length - 1;\n int[] digits = new int[len];\n int digitSum = 0;\n int lastDigit;\n\n if (length == 13) {\n lastDigit = Integer.parseInt(String.valueOf(code.charAt(len)));\n for (int i = 0; i < len; i++) {\n int digit = Integer.parseInt(String.valueOf(code.charAt(i)));\n\n if (i % 2 == 0) {\n digits[i] = digit;\n } else {\n digits[i] = digit * 3;\n }\n }\n\n for (int i = 0; i < digits.length; i++) {\n digitSum = digitSum + digits[i];\n }\n\n if (10 - (digitSum % 10) == lastDigit) {\n return true;\n } else if ((digitSum % 10) == 0 && lastDigit == 0) {\n return true;\n } else {\n return false;\n }\n\n } else if (length == 10) {\n if (String.valueOf(code.charAt(len)).equals(\"X\") ||\n String.valueOf(code.charAt(len)).equals(\"x\")) {\n lastDigit = 10;\n } else {\n lastDigit = Integer.parseInt(String.valueOf(code.charAt(len)));\n }\n\n int weight = 11;\n for (int i = 0; i < len; i++) {\n int digit = Integer.parseInt(String.valueOf(code.charAt(i)));\n weight--;\n digits[i] = digit * weight;\n }\n\n for (int i = 0; i < digits.length; i++) {\n digitSum = digitSum + digits[i];\n }\n\n if (11 - (digitSum % 11) == lastDigit) {\n return true;\n } else {\n return false;\n }\n\n } else {\n return false;\n }\n }", "public static int cvvLength(CardBrand card) {\n if (card == null || card == CardBrand.unknown || card == CardBrand.americanExpress) {\n return 4;\n }\n else {\n return 3;\n }\n }", "protected int length() { return FormatTools.getRasterLength(lengths); }", "public boolean validate() {\n\n String plate = _licensePlate.getText().toString();\n\n if(plate.isEmpty() || plate.length() < 8)\n return false;\n\n else if(plate.charAt(2) == '-' || plate.charAt(5) == '-') {\n\n if (Character.isUpperCase(plate.charAt(0)) && Character.isUpperCase(plate.charAt(1))) { // first case\n if (Character.isDigit(plate.charAt(3)) && Character.isDigit(plate.charAt(4))\n && Character.isDigit(plate.charAt(6)) && Character.isDigit(plate.charAt(7)))\n return true;\n }\n\n else if(Character.isUpperCase(plate.charAt(3)) && Character.isUpperCase(plate.charAt(4))) { // second case\n if (Character.isDigit(plate.charAt(0)) && Character.isDigit(plate.charAt(1))\n && Character.isDigit(plate.charAt(6)) && Character.isDigit(plate.charAt(7)))\n return true;\n }\n\n else if(Character.isUpperCase(plate.charAt(6)) && Character.isUpperCase(plate.charAt(7))) { // third case\n if (Character.isDigit(plate.charAt(0)) && Character.isDigit(plate.charAt(1))\n && Character.isDigit(plate.charAt(3)) && Character.isDigit(plate.charAt(4)))\n return true;\n }\n\n else\n return false;\n\n }\n\n return false;\n }", "public void testLength()\n {\n LinearSearch ls = new LinearSearch();\n\n assertFalse(ls.validLength(int [15] haystack));\n }", "static int getLength(String line)\n{\n\tString pattern = \"SVLEN=\";\n\tint idx = line.indexOf(pattern);\n\tif(idx == -1) return 0;\n\tline = line.toUpperCase();\n\tidx += pattern.length();\n\tint end = idx;\n\tint length = 0;\n\twhile(end < line.length() && line.charAt(end) >= '0' && line.charAt(end) <= '9')\n\t{\n\t length = length * 10 + (line.charAt(end) - '0');\n\t end++;\n\t}\n\treturn length;\n}", "static int size_of_rlc(String passed){\n\t\treturn 1;\n\t}", "public int length() {\n int counter = 0;\n while (bitAt(counter) == '1' || bitAt(counter) == '0') {\n counter = counter + 1;\n }\n return counter;\n }", "public void findLength()\n\t{\n\t\tlength = name.length();\n\t}", "private boolean checkResolution(double tar_LonDPP) {\n double LonDPP = (this.lrlon - this.ullon) / 256;\n return LonDPP <= tar_LonDPP;\n }", "public int length() {\n/* 46 */ return (this.value != null) ? 1 : 0;\n/* */ }", "public int length();", "public int length();", "public int length();", "public int length();", "public int length();", "int length();", "int length();", "int length();", "int length();", "int length();", "int length();", "int length();", "private static int calcPyramidSize(int length)\r\n\t{\r\n\t\tdouble n = (-1 + Math.sqrt(1 + 8 * length)) / 2;\r\n\t\treturn (int)n; //Smallest value.\r\n\t}", "public int get_length();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "public boolean meetsMinimumLength(){\n\n return alg.meetsMinimumLength(input.getText().toString());\n }", "public int getSnakeStartLength();", "public int getTerminalExonLength() { \n\t\tfinal BEDentry te = getBEDentry().getBlockAtRelativePosition(-1); \n\t\treturn( te.getChromEnd() - te.getChromStart() ); \n\t}", "private Integer getNGramLength(Long[][] pasMat){\n\t\tInteger result = 0;\n\t\tfor(int i=0; i<pasMat.length; i++){\n\t\t\tif(pasMat[i] != null)\n\t\t\t\tresult++;\n\t\t}\n\t\treturn result;\n\t}", "private void check3(){\n \n if (errorCode == 0){\n \n if (firstDigit * fifthDigit * ninthDigit != 24){\n valid = false;\n errorCode = 3;\n }\n }\n\t}", "float getLength();", "float getLength();", "@Override\n public final int length() {\n return upper - lower;\n }", "public abstract int length();", "public abstract int length();", "@Test\r\n\tpublic void testPerimeter() {\r\n\t\tint perimeter = LENGTH + WIDTH + LENGTH + WIDTH;\r\n\t\tassertEquals(perimeter, validRectangle.perimeter());\r\n\t}", "public int length() {\n \t\tif (-1 == n_points) setupForDisplay();\n \t\treturn n_points;\n \t}", "private int countLength ( StringBuffer sequence )\n{\n int bases = 0;\n\n // Count up the non-gap base characters.\n for ( int i = 0; i < sequence.length (); i++ )\n\n if ( sequence.charAt ( i ) != '*' ) bases++;\n\n return bases;\n}", "public boolean checkLength(Contribution contribution) {\n\t\tint longness= jdbc.queryForObject(\"select lineLength from stories where title=:title\", \n\t\t\t\tnew MapSqlParameterSource(\"title\", contribution.getTitle()), Integer.class);\n\t\tSystem.out.println(\"Your content: \"+contribution.getAddition().length()+\" the max length: \"+longness);\n\t\tif(contribution.getAddition().length() > longness) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public boolean checkLength(String password) {\n return password.matches(\"^.{8,25}$\");\n }", "public boolean isCnpRightLength(Person person) {\n\t\tString cnp = person.getCnp();\n\t\tif (cnp.length() < 12) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\n\t}", "public int length(){\n return pilha.size();\n }", "abstract double getLength();", "public long length() {\n\tint nBits;\n\tlong x, y;\n\tlong length = 7 + Math.max(minBitsS(toFixed(getTranslateX())),\n\t\t\t\t minBitsS(toFixed(getTranslateY())));\n\tif (hasScale()) {\n\t length += 5 + Math.max(minBitsS(toFixed(getScaleX())),\n\t\t\t\t minBitsS(toFixed(getScaleY())));\n\t}\n\tif (hasRotate()) {\n\t length += 5 + Math.max(minBitsS(toFixed(getRotate1())),\n\t\t\t\t minBitsS(toFixed(getRotate2())));\n\t}\n\treturn length;\n }", "public double getLength();", "private void check1(){\n \n\t\tif (firstDigit != 4){\n valid = false;\n errorCode = 1;\n }\n\t}", "public long length() {\n return kmers_num;\n }", "public int length() {\n return 0; // REPLACE THIS LINE WITH THE RIGHT ANSWER.\n }", "Length createLength();", "public boolean isWin_DragonKingOfArms(){\r\n // player got LordSelachii card\r\n /*Player playerHoldCard = null;\r\n for (Player player : discWorld.getPlayer_HASH().values()) {\r\n if (player.getPersonalityCardID() == 5) {\r\n playerHoldCard = player;\r\n break;\r\n }\r\n }*/\r\n int count = 0;\r\n for(TroubleMarker troubleMarker : discWorld.getTroubleMarker_HASH().values()){\r\n if(troubleMarker.getAreaNumber() != ConstantField.DEFAULT_PIECE_AREA_NUMBER){\r\n count++;\r\n }\r\n }\r\n \r\n if(count >= 8){\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n \r\n }", "public int getNumSquares(int length)\n {\n int numSquares = 0;\n for(int x = 0; x < GRID_SIZE - length; x++){\n for(int y = 0; y < GRID_SIZE - length; y++){\n Point test = new Point(x, y);\n if(hasSquare(test, length)) numSquares++;\n }\n }\n return numSquares;\n }", "public int length() {\n // PUT YOUR CODE HERE\n }", "public boolean testWidth(EIfcpixeltexture type) throws SdaiException;", "private int length() { return length; }", "public int getLength(){\n return sequence.length(); \n\t}", "public int length() {\n return discharge.length;\n }", "private static boolean checkLength(String password) {\n \treturn password.length() >= minLength;\n }", "public abstract void getLength(double length);", "public static boolean isArmStrongNumber(int num){\n\n String number = String.valueOf(num); // converting int to String (String.valueOf)\n int multiplier = number.length(); // find the length; if length is 3 digits\n int sum =0;\n\n for(int i=0; i<multiplier; i++){ // loop the original number\n int digit = Integer.parseInt(\"\" +number.charAt(i));\n sum += Math.pow(digit,multiplier);\n }\n return sum == num;\n\n\n\n }", "public boolean mo9444d() {\n if (!isLengthGreaterZero()) {\n return false;\n }\n byte[] bArr = this.byteArr;\n if (bArr.length >= 32) {\n return IsFullyValid(bArr, checkAndGetTypeLength());\n }\n return true;\n }", "public void setLength(){\n out.print(\"Please enter a number greater than 0:\\t\");\n while (true) {\n try {\n this.sideLength = Integer.parseInt(sc.next());\n if (this.sideLength > 0) {\n break;\n } else {\n out.print(\"Please re-enter a number greater than 0!:\\t\");\n }// End if else\n } catch (NumberFormatException e) {\n out.print(\"Please enter a number (not a letter) greater than 0!:\\t\");\n //this.sideLength = 0;\n }// End try catch\n }// End running while loop\n }", "public int getLength() {\n/* 301 */ return this.stream.getInt(COSName.LENGTH, 0);\n/* */ }", "int minLength();", "BigInteger getLength();", "public int my_length();", "@Test\n public void length() {\n float result = 0.0f;\n float[] a = new float[] {1.001f, 2.002f, 2.0f, 3.0f, 4.0f, 6.0f}; \n float expect = 65.0f;\n // 1)\n result = Vec4f.length(a, 2);\n assertTrue(Math.abs(result*result-expect) < 1E-6f);\n \n //2)\n float[] a2 = new float[] {2.0f, 3.0f, 4.0f, 6.0f}; \n float result2 = Vec4f.length(a2);\n assertTrue(Math.abs(result2*result2-expect) < 1E-6f);\n }", "private void check4(){\n \n if (errorCode == 0){\n int sum = 0;\n \n for(int i = 0; i < number.length();){\n sum += Integer.parseInt(number.substring(i, ++i));\n }\n \n if (sum % 4 != 0){\n valid = false;\n errorCode = 4;\n }\n }\n\t}", "static int size_of_rpe(String passed){\n\t\treturn 1;\n\t}", "@Override\n public boolean validate(long number) {\n List<Integer> digits = split(number);\n int multiplier = 1;\n int sum = 0;\n for (int digit : Lists.reverse(digits)) {\n int product = multiplier * digit;\n sum += product / BASE + product % BASE;\n multiplier = 3 - multiplier;\n }\n return sum % BASE == 0;\n }", "public long getLength();", "public long getLength();", "public int getLength();", "public int getLength();", "public int getLength();", "protected abstract int getLength();", "public abstract int getPuzzleLengthSize();", "public int perimeter()\n\t{\n\t\treturn 2*(length+width);\n\t}", "static int size_of_rpo(String passed){\n\t\treturn 1;\n\t}", "public int mo41471a() {\n return this.f11339a.length;\n }", "public double length() {\n return Vecteur.add(this.OB, this.OA.opposé()).length();\n }", "private boolean estSurPlateau(Coordonnees emplacement) {\n return emplacement.getLigne() >= 0 && emplacement.getColonne() >= 0 && emplacement.getLigne() < Plateau.NOMBRE_COLONNE && emplacement.getColonne() < Plateau.NOMBRE_LIGNE;\n }", "public boolean checkRapelState () { return noOfRapels > 0; }", "public abstract long getLength() throws VlException;" ]
[ "0.6295943", "0.6132431", "0.6064659", "0.5983619", "0.59182096", "0.58265084", "0.57746863", "0.5763938", "0.57572156", "0.5718532", "0.5674809", "0.5671173", "0.56359774", "0.5628321", "0.56066877", "0.5594029", "0.55676514", "0.5566616", "0.5561893", "0.5560532", "0.5560532", "0.5560532", "0.5560532", "0.5560532", "0.55547416", "0.55547416", "0.55547416", "0.55547416", "0.55547416", "0.55547416", "0.55547416", "0.5539523", "0.5532294", "0.5528002", "0.5528002", "0.5528002", "0.5528002", "0.5528002", "0.5528002", "0.5528002", "0.5528002", "0.5528002", "0.5528002", "0.5526756", "0.5490048", "0.54678524", "0.54634464", "0.54535943", "0.5442777", "0.5442777", "0.5432158", "0.5419334", "0.5419334", "0.54117924", "0.5410823", "0.5401414", "0.5401206", "0.53836364", "0.5383153", "0.536577", "0.5365361", "0.5364641", "0.53626925", "0.53616804", "0.5360031", "0.53530395", "0.5346473", "0.5344919", "0.5344386", "0.5343273", "0.53226495", "0.53188306", "0.5304899", "0.5302797", "0.52926236", "0.5287117", "0.52698475", "0.5269784", "0.5267283", "0.52615917", "0.5259823", "0.52551055", "0.52481335", "0.5246427", "0.5241694", "0.5241235", "0.5239588", "0.52366084", "0.52366084", "0.52281773", "0.52281773", "0.52281773", "0.5215986", "0.5212541", "0.5211492", "0.52062494", "0.52047175", "0.51798785", "0.51788944", "0.5176996", "0.51712805" ]
0.0
-1
To check length of odometer number
private boolean checkVehicleModel(EditText text, TextInputLayout TFB, String massage) { if(text.getText().toString().length() > 4 || text.getText().toString().length() < 4) { TFB.setErrorEnabled(true); TFB.setError(massage); return false; } else { TFB.setErrorEnabled(false); return true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Boolean checkLength(String detail);", "boolean testLength(Tester t) {\n return t.checkExpect(lob3.length(), 3) && t.checkExpect(los3.length(), 3)\n && t.checkExpect(los1.length(), 1) && t.checkExpect(new MtLoGamePiece().length(), 0);\n }", "private int validate(final String lcono) {\n\n if (lcono == null || lcono.isEmpty())\n return 1;\n else if (!lcono.matches(\"\\\\d*\\\\.?\\\\d+\"))\n return 2;\n\n return 0;\n }", "private boolean checkOdometerNumber(EditText text, TextInputLayout TFB, String massage) {\n if(text.getText().toString().length() > 8)\n {\n TFB.setErrorEnabled(true);\n TFB.setError(massage);\n return false;\n }\n else\n {\n TFB.setErrorEnabled(false);\n return true;\n }\n }", "public int length() {\n/* 46 */ return (this.value != null) ? 1 : 0;\n/* */ }", "public void testLength()\n {\n LinearSearch ls = new LinearSearch();\n\n assertFalse(ls.validLength(int [15] haystack));\n }", "private static boolean isLengthValue(String pageSizeChunk) {\n return CssUtils.isMetricValue(pageSizeChunk) || CssUtils.isRelativeValue(pageSizeChunk);\n }", "public int m18992OooO00o() {\n return this.f20240OooO00o.length();\n }", "abstract double getLength();", "public int getLength() {\n/* 301 */ return this.stream.getInt(COSName.LENGTH, 0);\n/* */ }", "public double getLength();", "float getLength();", "float getLength();", "private boolean isLengthCorrect(final String token) {\n return token.length() == VALID_TOKEN_LENGTH;\n }", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "public boolean m18994OooO00o() {\n return this.OooO00o < this.f20240OooO00o.length();\n }", "public int get_length();", "public abstract void getLength(double length);", "public double length() {\n return Vecteur.add(this.OB, this.OA.opposé()).length();\n }", "public boolean meetsMinimumLength(){\n\n return alg.meetsMinimumLength(input.getText().toString());\n }", "int getWayLength();", "public int length();", "public int length();", "public int length();", "public int length();", "public int length();", "public long getLength();", "public long getLength();", "public boolean isCnpRightLength(Person person) {\n\t\tString cnp = person.getCnp();\n\t\tif (cnp.length() < 12) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\n\t}", "public void findLength()\n\t{\n\t\tlength = name.length();\n\t}", "public int length() {\n int counter = 0;\n while (bitAt(counter) == '1' || bitAt(counter) == '0') {\n counter = counter + 1;\n }\n return counter;\n }", "public int getLength();", "public int getLength();", "public int getLength();", "int length();", "int length();", "int length();", "int length();", "int length();", "int length();", "int length();", "boolean checkLen(int epcbytes)\n {\n return true;\n }", "public int getTerminalExonLength() { \n\t\tfinal BEDentry te = getBEDentry().getBlockAtRelativePosition(-1); \n\t\treturn( te.getChromEnd() - te.getChromStart() ); \n\t}", "boolean hasSearchLength();", "Length createLength();", "@Test\r\n\tpublic void testLength() {\r\n\t\tassertEquals(LENGTH, validRectangle.length());\r\n\t}", "public double getLength(){\r\n\t\treturn length;\r\n\t}", "protected int getLength() {\n int length = super.getLength(); //see if it is defined in the ncml\n if (length < 0) {\n double[] t = getTimes();\n if (t != null) length = t.length;\n else length = 0;\n }\n return length;\n }", "public java.lang.Integer getNumberLength() {\r\n return numberLength;\r\n }", "BigInteger getLength();", "public abstract int length();", "public abstract int length();", "public int probar(String poox){\r\n int numero = Character.getNumericValue(poox.charAt(0))+ Character.getNumericValue(poox.charAt(1))+ Character.getNumericValue(poox.charAt(2))+ \r\n Character.getNumericValue(poox.charAt(3))+ Character.getNumericValue(poox.charAt(4));\r\n int comprobar;\r\n if(numero >= 30){\r\n comprobar = 2;\r\n System.out.println( numero +\" Digito verificar = \" + comprobar);\r\n }else if (numero >=20 && numero <= 29){\r\n comprobar = 1;\r\n System.out.println(numero + \" Digito verificar = \" + comprobar);\r\n }else{\r\n comprobar = 0;\r\n System.out.println(numero + \" Digito verificar = \" + comprobar);\r\n }\r\n return comprobar;\r\n }", "private static boolean checkLength(String password) {\n \treturn password.length() >= minLength;\n }", "@Override\n public boolean validate(long number) {\n List<Integer> digits = split(number);\n int multiplier = 1;\n int sum = 0;\n for (int digit : Lists.reverse(digits)) {\n int product = multiplier * digit;\n sum += product / BASE + product % BASE;\n multiplier = 3 - multiplier;\n }\n return sum % BASE == 0;\n }", "protected abstract int getLength();", "private int length() { return length; }", "public abstract long getLength();", "public abstract long getLength();", "static int size_of_ora(String passed){\n\t\treturn 1;\n\t}", "private int length() {\n\t\treturn this.lenght;\n\t}", "@Test\n\tpublic void invalidLengthShort() {\n\t\tboolean result = validator.isValid(\"73602851\");\n\t\tassertFalse(result);\n\t}", "private void check6(){\n \n if (errorCode == 0){\n \n int firstSecond = Integer.parseInt(number.substring(0,2));\n int seventhEight = Integer.parseInt(number.substring(6,8));\n \n if (firstSecond + seventhEight != 100){\n valid = false;\n errorCode = 6;\n }\n }\n\t}", "private boolean isPhoneValid(String password) {\n return password.length() == 10;\r\n }", "public int length() {\n return (isSupportYear()\n ? mYear.length : 0)\n + (isSupportMonth()\n ? mMonth.length : 0)\n + (isSupportDay()\n ? mDay.length : 0)\n + (isSupportHours()\n ? mHours.length : 0)\n + (isSupportMinutes()\n ? mMinutes.length : 0)\n + (isSupportSeconds()\n ? mSeconds.length : 0);\n }", "int minLength();", "public int length() {\n return discharge.length;\n }", "public double getLength()\n\t{\n\t\treturn length;\n\t}", "public double getLength() {\r\n\t\t\treturn length;\r\n\t\t}", "public boolean compareLength(Length l1, Length l2){\n return Double.compare(l1.value*l1.unit.baseUnitConversion, l2.value*l2.unit.baseUnitConversion) == 0;\n }", "public int getLength()\n {\n\treturn length;\n }", "public int mo41471a() {\n return this.f11339a.length;\n }", "public double getLength() {\r\n\t\treturn length;\r\n\t}", "public int getIntronLength() { \n\t\tfinal int start = getLast5SSPos(); \n\t\tfinal int end = getLast3SSPos();\n\t\treturn( Math.abs( end - start ) ); \n\t}", "public boolean setLength(double Length);", "public void setLength(){\n out.print(\"Please enter a number greater than 0:\\t\");\n while (true) {\n try {\n this.sideLength = Integer.parseInt(sc.next());\n if (this.sideLength > 0) {\n break;\n } else {\n out.print(\"Please re-enter a number greater than 0!:\\t\");\n }// End if else\n } catch (NumberFormatException e) {\n out.print(\"Please enter a number (not a letter) greater than 0!:\\t\");\n //this.sideLength = 0;\n }// End try catch\n }// End running while loop\n }", "public int getLength() { return length;\t}", "private boolean checkDigit(String code, int length) {\n int len = length - 1;\n int[] digits = new int[len];\n int digitSum = 0;\n int lastDigit;\n\n if (length == 13) {\n lastDigit = Integer.parseInt(String.valueOf(code.charAt(len)));\n for (int i = 0; i < len; i++) {\n int digit = Integer.parseInt(String.valueOf(code.charAt(i)));\n\n if (i % 2 == 0) {\n digits[i] = digit;\n } else {\n digits[i] = digit * 3;\n }\n }\n\n for (int i = 0; i < digits.length; i++) {\n digitSum = digitSum + digits[i];\n }\n\n if (10 - (digitSum % 10) == lastDigit) {\n return true;\n } else if ((digitSum % 10) == 0 && lastDigit == 0) {\n return true;\n } else {\n return false;\n }\n\n } else if (length == 10) {\n if (String.valueOf(code.charAt(len)).equals(\"X\") ||\n String.valueOf(code.charAt(len)).equals(\"x\")) {\n lastDigit = 10;\n } else {\n lastDigit = Integer.parseInt(String.valueOf(code.charAt(len)));\n }\n\n int weight = 11;\n for (int i = 0; i < len; i++) {\n int digit = Integer.parseInt(String.valueOf(code.charAt(i)));\n weight--;\n digits[i] = digit * weight;\n }\n\n for (int i = 0; i < digits.length; i++) {\n digitSum = digitSum + digits[i];\n }\n\n if (11 - (digitSum % 11) == lastDigit) {\n return true;\n } else {\n return false;\n }\n\n } else {\n return false;\n }\n }", "public double getLength() {\r\n return length;\r\n }", "public int getLength(){\n\t\treturn length;\n\t}", "public int getLength(){\n\t\treturn length;\n\t}", "public int getLength() {return length;}", "@Test\n public void testGetSize() {\n int expResult = 2;\n int result = this.dummyDigitSize.getSize();\n assertEquals(expResult, result);\n }", "public int length() {\n return 0; // REPLACE THIS LINE WITH THE RIGHT ANSWER.\n }", "public int my_length();", "public boolean Digito(){\n return ((byte)this.caracter>=48 && (byte)this.caracter<=57);\n }", "public String getlength()\n\t{\n\t\treturn length.getText();\n\t}", "public abstract int getLength();", "public abstract int getLength();", "static int size_of_inr(String passed){\n\t\treturn 1;\n\t}", "public double getLength() {\n\t\treturn length;\n\t}", "public boolean O00000Oo(String str) {\r\n int length = str.length();\r\n if (length > this.O00000o - this.O00000oO) {\r\n return false;\r\n }\r\n for (int i = 0; i < length; i++) {\r\n if (str.charAt(i) != this.O00000o0[this.O00000oO + i]) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }" ]
[ "0.64505404", "0.6257752", "0.6162069", "0.6107466", "0.6098424", "0.6007357", "0.5992223", "0.597656", "0.5894145", "0.5862251", "0.5854842", "0.58445233", "0.58445233", "0.5841243", "0.57988447", "0.57988447", "0.57988447", "0.57988447", "0.57988447", "0.57988447", "0.57988447", "0.57988447", "0.57988447", "0.57988447", "0.5775619", "0.5766737", "0.5751674", "0.5729343", "0.5728397", "0.57163554", "0.5712119", "0.5712119", "0.5712119", "0.5712119", "0.5712119", "0.56892127", "0.56892127", "0.5682684", "0.567716", "0.56626225", "0.56539106", "0.56539106", "0.56539106", "0.5647447", "0.5647447", "0.5647447", "0.5647447", "0.5647447", "0.5647447", "0.5647447", "0.56297857", "0.56179667", "0.5613566", "0.56097424", "0.5586869", "0.55693984", "0.55619943", "0.5541771", "0.55323684", "0.552828", "0.552828", "0.5528147", "0.5527732", "0.5527684", "0.55178565", "0.5511952", "0.55112743", "0.55112743", "0.55096966", "0.5494618", "0.54819375", "0.5474989", "0.54671377", "0.545999", "0.5455543", "0.5453198", "0.5451868", "0.5450347", "0.5449703", "0.54448724", "0.54422295", "0.54406464", "0.54395485", "0.5438247", "0.5435733", "0.54354775", "0.5433503", "0.54327476", "0.5426631", "0.5426631", "0.5421038", "0.5420839", "0.54207104", "0.5418865", "0.5417023", "0.54166424", "0.5408433", "0.5408433", "0.54072505", "0.54047054", "0.54029655" ]
0.0
-1
To check length of vehicle model
private boolean checkSpinner(String postion, MaterialSpinner sp, String massage) { if(postion.equals("Select Task Type") || postion.equals("Select Device Type") || postion.equals("Select Customer")) { sp.setError(massage); return false; } else { return true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Boolean checkLength(String detail);", "public int size() {\n\t\treturn vehicles.size();\n\t}", "public void testLength()\n {\n LinearSearch ls = new LinearSearch();\n\n assertFalse(ls.validLength(int [15] haystack));\n }", "public abstract long getLength() throws VlException;", "boolean testLength(Tester t) {\n return t.checkExpect(lob3.length(), 3) && t.checkExpect(los3.length(), 3)\n && t.checkExpect(los1.length(), 1) && t.checkExpect(new MtLoGamePiece().length(), 0);\n }", "public int getSize() {\n return this.numberOfVehicle;\n }", "public int get_length();", "@Override\n\tprotected void checkNumberOfInputs(int length) {\n\n\t}", "public int checkAndGetTypeLength() {\n return checkAndGetTypeLength(this.byteArr);\n }", "public double getLength();", "public boolean meetsMinimumLength(){\n\n return alg.meetsMinimumLength(input.getText().toString());\n }", "@Test\r\n\tpublic void testLength() {\r\n\t\tassertEquals(LENGTH, validRectangle.length());\r\n\t}", "public int length() {\n // PUT YOUR CODE HERE\n }", "int getWayLength();", "public void findLength()\n\t{\n\t\tlength = name.length();\n\t}", "abstract double getLength();", "public double getMaxVehicleLength() {\n return Math.max(maxCarLength, maxTruckLength);\n }", "public int getLength();", "public int getLength();", "public int getLength();", "float getLength();", "float getLength();", "public String getVestLength() {\r\n\t\treturn vestLength;\r\n\t}", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "public int length();", "public int length();", "public int length();", "public int length();", "public int length();", "@Test\n public void length() {\n float result = 0.0f;\n float[] a = new float[] {1.001f, 2.002f, 2.0f, 3.0f, 4.0f, 6.0f}; \n float expect = 65.0f;\n // 1)\n result = Vec4f.length(a, 2);\n assertTrue(Math.abs(result*result-expect) < 1E-6f);\n \n //2)\n float[] a2 = new float[] {2.0f, 3.0f, 4.0f, 6.0f}; \n float result2 = Vec4f.length(a2);\n assertTrue(Math.abs(result2*result2-expect) < 1E-6f);\n }", "boolean hasSearchLength();", "public abstract int length();", "public abstract int length();", "public long getLength();", "public long getLength();", "protected int getLength() {\n int length = super.getLength(); //see if it is defined in the ncml\n if (length < 0) {\n double[] t = getTimes();\n if (t != null) length = t.length;\n else length = 0;\n }\n return length;\n }", "public int getLength() {\n return length;\n }", "private int length() {\n\t\treturn this.lenght;\n\t}", "public int getLength() {return length;}", "public int getLength() {\r\n return length;\r\n }", "public int getLength() {\r\n return length;\r\n }", "public int getLength() {\r\n return length;\r\n }", "private int length() { return length; }", "public double getLength(){\r\n\t\treturn length;\r\n\t}", "public int getRoadLength() {\n \t\treturn roadLength;\n \t}", "public Boolean isFull() {\n\t\tif (this.mVehicles.size() == this.mCapacity)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "public int getLength()\n {\n return length;\n }", "public int getLength(){\n\t\treturn length;\n\t}", "public int getLength(){\n\t\treturn length;\n\t}", "public abstract int getLength();", "public abstract int getLength();", "public int getLength() {\n return length;\n }", "public int getLength() {\n return length;\n }", "public int getLength()\n {\n\treturn length;\n }", "protected abstract int getLength();", "protected int getLength() {\n return length;\n }", "public int getLength()\n\t{\n\t\treturn length;\n\t}", "public int getLength()\n\t{\n\t\treturn length;\n\t}", "public int getLength() { return length;\t}", "@Test\n\tpublic void testLength()throws Exception {\n\n\t\t\t SET setarray= new SET( new int[]{6,7,8,10});\n\t\t\t int returnedValue =setarray.Size(); \n\t\t\t int expectedValue = 4;\n\t\t\t Assert.assertEquals( expectedValue, returnedValue );\n\t}", "public double getLength() {\r\n return length;\r\n }", "public static int cvvLength(CardBrand card) {\n if (card == null || card == CardBrand.unknown || card == CardBrand.americanExpress) {\n return 4;\n }\n else {\n return 3;\n }\n }", "public abstract long getLength();", "public abstract long getLength();", "public int getLength() {\r\n\t\treturn length;\r\n\t}", "public int length() {\n return 0; // REPLACE THIS LINE WITH THE RIGHT ANSWER.\n }", "public double getLength() {\r\n\t\t\treturn length;\r\n\t\t}", "public double getLength() {\n return length;\n }", "public double length() {\n return Vecteur.add(this.OB, this.OA.opposé()).length();\n }", "public double getLength()\n {\n return length;\n }", "public double getLength()\n\t{\n\t\treturn length;\n\t}", "public double getLength() {\r\n\t\treturn length;\r\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public long getLength() { \n return length; \n }", "public int length() {\n \treturn length;\n }", "public int getLength(){\n return length;\n }", "public double getLength() {\n\t\treturn length;\n\t}", "public Integer getLength() {\n return _length;\n }", "public Integer getLength() {\n return _length;\n }", "public int my_length();", "public abstract void getLength(double length);", "public int getNbVehicles() {\n\t\t\treturn K;\r\n\t\t}", "public int vecLength();", "public int getLength() {\n return length_;\n }", "public int getLength() {\n return this.length;\n }", "public int getLength() {\n return this.length;\n }", "private boolean checkRaschModel(){\n ItemResponseModel irm = null;\n int count = 0;\n for(VariableName v : itemFormY.keySet()) {\n irm = itemFormY.get(v);\n\n if(irm.getType() == IrmType.L3 || irm.getType() == IrmType.L4) {\n if (irm.getGuessing() == 0 && irm.getDiscrimination() == 1.0 && irm.getSlipping() == 1.0) {\n count++;\n }\n }else if (irm.getType() == IrmType.PCM) {\n count++;\n }else {\n return false;\n }\n }\n return count==itemFormY.size();\n }" ]
[ "0.6689655", "0.6346375", "0.62649965", "0.6259721", "0.6203045", "0.6157886", "0.6140713", "0.61125165", "0.60522926", "0.60451806", "0.6022756", "0.60126305", "0.60015124", "0.6001286", "0.5974003", "0.59588283", "0.59484965", "0.5940637", "0.5940637", "0.5940637", "0.5929864", "0.5929864", "0.5928533", "0.5920525", "0.5920525", "0.5920525", "0.5920525", "0.5920525", "0.5920525", "0.5920525", "0.5920525", "0.5920525", "0.5920525", "0.5909243", "0.5909243", "0.5909243", "0.5909243", "0.5909243", "0.5896045", "0.58832824", "0.5858489", "0.5858489", "0.58563805", "0.58563805", "0.5843035", "0.58389413", "0.58373743", "0.583473", "0.58234954", "0.58234954", "0.58234954", "0.5815367", "0.5814553", "0.5810556", "0.58054084", "0.58009696", "0.5792175", "0.5792175", "0.5788876", "0.5788876", "0.57827395", "0.57827395", "0.5780427", "0.5772865", "0.57653546", "0.57610524", "0.57610524", "0.575425", "0.5748773", "0.5739727", "0.5735581", "0.5732824", "0.5732824", "0.5722918", "0.5714833", "0.5708155", "0.5704856", "0.5701565", "0.56949586", "0.56864804", "0.5684821", "0.567631", "0.567631", "0.567631", "0.567631", "0.567631", "0.567631", "0.56697774", "0.56674033", "0.5662344", "0.56499434", "0.5649672", "0.5649672", "0.56496114", "0.56478643", "0.5635527", "0.56354713", "0.56333727", "0.56324226", "0.56324226", "0.56300515" ]
0.0
-1
To check spinner selection
private boolean checkGPS(double latitude, double longitude, String massage) { if(latitude == 0.0 && longitude == 0.0) { Toast.makeText(this, massage, Toast.LENGTH_LONG).show(); return false; } else { return true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean hasSpinnerPrompt(String value) {\n if (value.contains(\"select\")) {\n return true;\n }\n return false;\n }", "private void checkSpinnerText() {\n\n for (int i = 0; i < 8; i++) {\n\n // Opens the spinner\n onView(withId(R.id.notifyTime)).perform(click());\n String strToCheck = \"\";\n\n // Sets the proper string that will be checked, depending on the loop\n switch (i) {\n case 0:\n strToCheck = spinHint;\n break;\n case 1:\n strToCheck = s1;\n break;\n case 2:\n strToCheck = s2;\n break;\n case 3:\n strToCheck = s3;\n break;\n case 4:\n strToCheck = s4;\n break;\n case 5:\n strToCheck = s5;\n break;\n case 6:\n strToCheck = s6;\n break;\n case 7:\n strToCheck = s7;\n break;\n }\n\n // Clicks each spinner option and checks if it was selected correctly\n // http://stackoverflow.com/questions/31420839/android-espresso-check-selected-spinner-text\n onData(allOf(is(instanceOf(String.class)), is(strToCheck))).perform(click());\n onView(withId(R.id.notifyTime))\n .check(matches(withSpinnerText(containsString(strToCheck))));\n }\n }", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1,\n int arg2, long arg3) {\n String mselection = mSpinner.getSelectedItem().toString();\n Toast.makeText(getApplicationContext(), \"selected \" + mselection, 30).show();\n /**** do your code*****/\n\n if (mselection.equals(\"New Location\")){\n Intent i = new Intent(getApplicationContext(), NewLocation.class);\n startActivity(i);\n }\n }", "private boolean checkSpinner(String postion, MaterialSpinner sp, String massage) {\n if(postion.equals(\"Select Task Type\") || postion.equals(\"Select Device Type\") || postion.equals(\"Select Customer\"))\n {\n\n sp.setError(massage);\n return false;\n }\n else\n {\n return true;\n }\n\n }", "private void itemtypeSpinner() {\n ArrayAdapter<CharSequence> staticAdapter = ArrayAdapter\n .createFromResource(getContext(), R.array.select_array,\n android.R.layout.simple_spinner_item);\n\n // Specify the layout to use when the list of choices appears\n staticAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\n // Apply the adapter to the spinner\n mItemTypeSpinnerA2.setAdapter(staticAdapter);\n\n mItemTypeSpinnerA2.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int position, long id) {\n String itemtypeText = (String) parent.getItemAtPosition(position);\n if (itemtypeText.equals(\"Mobile Phones\")) {\n\n mInputLayoutSerialNoA2.setVisibility(View.VISIBLE);\n mInputLayoutSerialNoA2.setClickable(true);\n mInputLayoutItemImeiA2.setVisibility(View.VISIBLE);\n mInputLayoutItemImeiA2.setClickable(true);\n\n\n } else if (itemtypeText.equals(\"Laptops\")) {\n\n mInputLayoutSerialNoA2.setVisibility(View.VISIBLE);\n mInputLayoutSerialNoA2.setClickable(true);\n mInputLayoutItemImeiA2.setVisibility(View.GONE);\n mInputLayoutItemImeiA2.setClickable(false);\n\n } else {\n mInputLayoutSerialNoA2.setVisibility(View.GONE);\n mInputLayoutSerialNoA2.setClickable(false);\n mInputLayoutItemImeiA2.setVisibility(View.GONE);\n mInputLayoutItemImeiA2.setClickable(false);\n }\n\n\n\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n mItemTypeSpinnerA2.getItemAtPosition(0);\n mInputLayoutSerialNoA2.setVisibility(View.GONE);\n mInputLayoutSerialNoA2.setClickable(false);\n mInputLayoutItemImeiA2.setVisibility(View.GONE);\n mInputLayoutItemImeiA2.setClickable(false);\n\n\n }\n });\n\n }", "public void onNothingSelected(AdapterView<?> parent) {\n // Toast.makeText(getApplicationContext(), \"nada en el spinner\", Toast.LENGTH_LONG).show();\n }", "public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n userType = (int) arg3;\n /* 将mySpinner 显示*/\n arg0.setVisibility(View.VISIBLE);\n }", "private boolean CheckParkSelection() {\n\t\tif (Park_ComboBox.getSelectionModel().isEmpty()) {\n\t\t\tif (!Park_ComboBox.getStyleClass().contains(\"error\"))\n\t\t\t\tPark_ComboBox.getStyleClass().add(\"error\");\n\t\t\tParkNote.setText(\"* Select park\");\n\t\t\treturn false;\n\t\t}\n\t\tPark_ComboBox.getStyleClass().remove(\"error\");\n\t\tParkNote.setText(\"*\");\n\t\treturn true;\n\t}", "public void onItemSelected(AdapterView<?> adapterView, \n\t\t View view, int i, long l) {\n\t\t \tString selected2 = colorGraySpin.getSelectedItem().toString();\n\t\t\t Toast.makeText(PainActivity.this,\"You Selected : \"\n\t\t\t + selected2,Toast.LENGTH_SHORT).show(); \n\t\t if (selected2.equals(\"Colorscale\")) {\n\t\t \t setColorBrush(false);\n\t\t } else{\n\t\t \t setColorBrush(true);\n\t\t }\n\t\t \t\n\t\t }", "public void onItemSelected(AdapterView<?> parent, View view, \r\n int pos, long id) {\n\t\tString word = (String) parent.getItemAtPosition(pos);\r\n\t\tif (!word.equalsIgnoreCase(\"select a word from this list\")) {\r\n\t\t\tToast.makeText(this, \"You selected \\\"\" + parent.getItemAtPosition(pos) + \"\\\" from the Spinner\", Toast.LENGTH_LONG).show();\r\n\t\t}\r\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n item = parent.getItemAtPosition(position).toString();\n //beaconselected.setText(item);\n\n // Showing selected spinner item\n if(!item.equals(\"select a beacon\")){\n //Toast.makeText(parent.getContext(), \"Selected: \" + item, Toast.LENGTH_LONG).show();\n x++;\n beaconManager.stopRanging(beaconRegion);\n t=0;\n //Toast.makeText(this, \"Search stopped\", Toast.LENGTH_SHORT).show();\n }\n\n\n\n }", "private void spinner() {\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this,\n R.array.planets_array, R.layout.simple_spinner_item_new);\n// Specify the layout to use when the list of choices appears\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n// Apply the adapter to the spinner\n// dropDownViewTheme.\n planetsSpinner.setAdapter(adapter);\n planetsSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n Object itemAtPosition = parent.getItemAtPosition(position);\n Log.d(TAG, \"onItemSelected: \" + itemAtPosition);\n\n String[] stringArray = getResources().getStringArray(R.array.planets_array);\n Toast.makeText(DialogListActivity.this, \"选择 \" + stringArray[position], Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n Toast.makeText(DialogListActivity.this, \"未选择\", Toast.LENGTH_SHORT).show();\n }\n });\n }", "@Override\n public void onItemSelected(MaterialSpinner view, int position, long id, Object item) {\n\n if(item.equals(\"Other\")){\n othereditText.setVisibility(View.VISIBLE);\n serviceSelected = othereditText.getText().toString().trim();\n }else{\n serviceSelected = item+\"\";\n }\n }", "public boolean hasValidItemSelected() {\n return !(autoComplete.getSelection() == null || ((Comboitem)autoComplete.getSelection()).getValue() == null);\n }", "public void addListenerOnButton() {\n\n isempleado = (Spinner) findViewById(R.id.spinnerWifi);\n spinner2 = (Spinner) findViewById(R.id.spinner2);\n\n\n Toast.makeText(getApplicationContext(), \"Spinner 1 \"+String.valueOf(isempleado.getSelectedItem()) +\n \"Spinner 2 : \"+ String.valueOf(spinner2.getSelectedItem()), Toast.LENGTH_LONG).show();\n\n\n }", "@Override\n\t\t\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\t\t\tint position = gameSpinner.getSelectedItemPosition();\n\t\t\t\t\t\tif (macGames[+position] != \"-- Choose sport --\") {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t/*Toast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\t\t\"You have selected \" + macGames[+position],\n\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();*/\n\t\t\t\t\t\t\tchosenGame = macGames[+position];\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "private boolean verifica(){\n if(et_nomeAddFamiliar.getText().length()>3 && spinnerParentesco.getSelectedItemPosition()>0){\n return true;\n }\n else return false;\n\n }", "@Override\n public void onClick(View v) {\n String selectSpinner = objSpinner.getSelectedItem().toString();\n //Validamos la seleccion del spinner\n if (objSpinner.getSelectedItemPosition() != 0) {\n //Almacenamos la seleccion de RadioButton\n int selectRadio = objGroup.getCheckedRadioButtonId();\n int result = objConfigura.creaEntradaSalida(selectSpinner, selectRadio);\n if (result == 1) {\n Toast.makeText(objContext, \"Entrada guardada.\", Toast.LENGTH_SHORT).show();\n } else if (result == 2) {\n Toast.makeText(objContext, \"Salida guardada.\", Toast.LENGTH_SHORT).show();\n }\n objSpinner.setSelection(0);\n }else {\n Toast.makeText(objContext, \"Seleccione una clase de vehiculo.\", Toast.LENGTH_SHORT).show();\n }\n }", "void onItemSelected();", "void onItemSelected();", "private void spinner() {\n spn_semester.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n id_database = position;\n if(spn_semester.getSelectedItemPosition() == 0){\n listadaptor1();\n }\n else if(spn_semester.getSelectedItemPosition() == 1){\n listadaptor2();\n }\n else{\n listadaptor3();\n }\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n //Nothing\n }\n });\n }", "@Then(\"^I choose the park on combobox$\")\n public void i_choose_the_park_on_combobox() {\n onViewWithId(R.id.spinnerParks).click();\n onViewWithText(\"Parque D\").isDisplayed();\n onViewWithText(\"Parque D\").click();\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int position, long id) {\n\n if (syrupA2.getSelectedItemPosition() < 1 || syrupE3.getSelectedItemPosition() < 1 || syrupN4.getSelectedItemPosition() < 1) {\n syrupA2.setSelection(syrupM1.getSelectedItemPosition());\n syrupE3.setSelection(syrupM1.getSelectedItemPosition());\n syrupN4.setSelection(syrupM1.getSelectedItemPosition());\n }\n\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int position, long id) {\n if (syrupM1.getSelectedItemPosition() < 1 || syrupA2.getSelectedItemPosition() < 1 || syrupN4.getSelectedItemPosition() < 1) {\n syrupM1.setSelection(syrupE3.getSelectedItemPosition());\n syrupA2.setSelection(syrupE3.getSelectedItemPosition());\n syrupN4.setSelection(syrupE3.getSelectedItemPosition());\n }\n }", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\tint position, long arg3) {\n\t\t\t\tif (position == 1) {\n\t\t\t\t\t// show it\n\t\t\t\t\tsubjectSpinner.setVisibility(View.VISIBLE);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// hide it\n\t\t\t\t\tsubjectSpinner.setVisibility(View.GONE);\n\t\t\t\t}\n\t\t\t}", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "private void spinnerAction() {\n Spinner spinnerphonetype = (Spinner) findViewById(R.id.activity_one_phonetype_spinner);//phonetype spinner declaration\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this,\n R.array.phone_spinner, android.R.layout.simple_spinner_item); //create the spinner array\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); //set the drop down function\n spinnerphonetype.setAdapter(adapter); //set the spinner array\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int position, long id) {\n if (syrupM1.getSelectedItemPosition() < 1 || syrupE3.getSelectedItemPosition() < 1 || syrupN4.getSelectedItemPosition() < 1) {\n syrupM1.setSelection(syrupA2.getSelectedItemPosition());\n syrupE3.setSelection(syrupA2.getSelectedItemPosition());\n syrupN4.setSelection(syrupA2.getSelectedItemPosition());\n }\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n item = parent.getItemAtPosition(position).toString();\n isSelected = true;\n\n // Showing selected spinner item\n //Toast.makeText(parent.getContext(), \"Selected: \" + item, Toast.LENGTH_LONG).show();\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n if (position != mClickTypeSelection) {\n setActionSpinner(true, position);\n }\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int position, long id) {\n\n\n try{\n String s = \"\";\n Log.e(\"mytag\",\"(String) parent.getItemAtPosition(position):\"+(String) parent.getItemAtPosition(position).toString().trim());\n if (parent.getItemAtPosition(position).toString().trim().equals(\"בחר\")){\n s = \"-1\";\n }else{\n s = String.valueOf(ctype_map.get(parent.getItemAtPosition(position).toString().trim()).getCtypeID());\n }\n setCcustomerSpinner(s);\n }catch(Exception e){\n helper.LogPrintExStackTrace(e);\n }\n Log.e(\"mytag\", (String) parent.getItemAtPosition(position));\n //statusID = db.getCallStatusByCallStatusName((String) parent.getItemAtPosition(position)).getCallStatusID();\n //statusName = db.getCallStatusByCallStatusName((String) parent.getItemAtPosition(position)).getCallStatusName();\n //Toast.makeText(getApplication(), \"status: \" + s, Toast.LENGTH_LONG).show();\n //Log.v(\"item\", (String) parent.getItemAtPosition(position));\n }", "private void updateSpinner() {\n ArrayAdapter<CharSequence> adaptador = new ArrayAdapter(getContext(), android.R.layout.simple_spinner_item,nombresEnComboBox);\n spinner.setAdapter(adaptador);\n //guardo el item seleccionado del combo\n spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener(){\n @Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n nombreDeLocSeleccionada[0] = (String) spinner.getAdapter().getItem(i);\n for (int j=0 ; j < listaLocalidades.size() ; j++){\n if (listaLocalidades.get(j).getNombreLocalidad().equals(nombreDeLocSeleccionada[0])) {\n idLoc = listaLocalidades.get(j).getIdLocalidad() ;\n break;\n }\n }\n //Toast.makeText(getActivity(), nombreDeLocSeleccionada[0], Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> adapterView) {\n\n }\n });\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int position, long id) {\n if (syrupM1.getSelectedItemPosition() < 1 && syrupA2.getSelectedItemPosition() < 1 && syrupE3.getSelectedItemPosition() < 1) {\n syrupM1.setSelection(syrupN4.getSelectedItemPosition());\n syrupA2.setSelection(syrupN4.getSelectedItemPosition());\n syrupE3.setSelection(syrupN4.getSelectedItemPosition());\n }\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n }", "@Override\n\t\t\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n int arg2, long arg3) {\n\t\t\t\t\t\tString sel = spinner.getSelectedItem().toString();\n\t\t\t\t\t\tLog.e(\"PowerSocketSensitive\", sel + \"\");\n\t\t\t\t\t}", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1,\n int arg2, long arg3) {\n\n\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n SpinnerValue = (String)spinner.getSelectedItem();\n }", "public boolean isSelected_txt_Pick_Up_Text(){\r\n\t\tif(txt_Pick_Up_Text.isSelected()) { return true; } else { return false;} \r\n\t}", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View spinnerView, int position,\n long spinnerId) {\n\n try {\n\n if (parent.getId() == R.id.aptNameSpinner) {\n\n if (SAConstants.OTHER.equals(apartmentNameSpinner.getItemAtPosition(position).toString())) {\n DialogFragment apartmentName = new NewApartmentDialog();\n apartmentName.show(getSupportFragmentManager(), \"\");\n }\n } else if (parent.getId() == R.id.aptTypeSpinnerSearch || parent.getId() == R.id.universityNamesSpinner) {\n addApartmentNames();\n }\n\n\n } catch (Exception e) {\n ErrorReporting.logReport(e);\n }\n\n }", "private void setUpSpinner(){\n ArrayAdapter paymentSpinnerAdapter =ArrayAdapter.createFromResource(this,R.array.array_gender_option,android.R.layout.simple_spinner_item);\n\n // Specify dropdown layout style - simple list view with 1 item per line, then apply adapter to the spinner\n paymentSpinnerAdapter.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);\n mPaymentSpinner.setAdapter(paymentSpinnerAdapter);\n\n // To set the spinner to the selected payment method by the user when clicked from cursor adapter.\n if (payMode != null) {\n if (payMode.equalsIgnoreCase(\"COD\")) {\n mPaymentSpinner.setSelection(0);\n } else {\n mPaymentSpinner.setSelection(1);\n }\n mPaymentSpinner.setOnTouchListener(mTouchListener);\n }\n\n mPaymentSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String selectedPayment = (String)parent.getItemAtPosition(position);\n if(!selectedPayment.isEmpty()){\n if(selectedPayment.equals(getString(R.string.payment_cod))){\n mPaymentMode = clientContract.ClientInfo.PAYMENT_COD; // COD = 1\n }else{\n\n mPaymentMode = clientContract.ClientInfo.PAYMENT_ONLINE; // ONLINE = 0\n }\n }\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n\n }\n });\n\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\n }", "@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_22.setVisibility(View.INVISIBLE);\r\n item22_t= item22;\r\n item22 = 0;\r\n Log.i(TAG,\"item22\" + item22);\r\n }else{\r\n spinner_item_22.setVisibility(View.VISIBLE);\r\n item22 = item22_t;\r\n Log.i(TAG,\"item22\" + item22);\r\n }\r\n }", "private void setupSpinner() {\n // Create adapter for spinner. The list options are from the String array it will use\n // the spinner will use the default layout\n ArrayAdapter fruitSpinnerAdapter = ArrayAdapter.createFromResource(this,\n R.array.array_fruit_options, android.R.layout.simple_spinner_item);\n\n // Specify dropdown layout style - simple list view with 1 item per line\n fruitSpinnerAdapter.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);\n\n // Apply the adapter to the spinner\n mTypeSpinner.setAdapter(fruitSpinnerAdapter);\n\n // Set the integer mSelected to the constant values\n mTypeSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String selection = (String) parent.getItemAtPosition(position);\n if (!TextUtils.isEmpty(selection)) {\n if (selection.equals(getString(R.string.apple))) {\n mFruit = FruitEntry.TYPE_APPLE;\n } else if (selection.equals(getString(R.string.banana))) {\n mFruit = FruitEntry.TYPE_BANANA;\n } else if (selection.equals(getString(R.string.peach))) {\n mFruit = FruitEntry.TYPE_PEACH;\n } else if (selection.equals(getString(R.string.pineapple))) {\n mFruit = FruitEntry.TYPE_PINEAPPLE;\n } else if (selection.equals(getString(R.string.strawberry))) {\n mFruit = FruitEntry.TYPE_STRAWBERRY;\n } else if (selection.equals(getString(R.string.watermelon))) {\n mFruit = FruitEntry.TYPE_WATERMELON;\n } else {\n mFruit = FruitEntry.TYPE_NOTSELECTED;\n }\n }\n }\n\n // Because AdapterView is an abstract class, onNothingSelected must be defined\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n mFruit = FruitEntry.TYPE_NOTSELECTED;\n }\n });\n }", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\tif (spinner3.getSelectedItem().equals(\"Sedentary\")) {\n\t\t\t\t\tactive = 1.2;\n\t\t\t\t} else if (spinner3.getSelectedItem().equals(\"Lightly Active\")) {\n\t\t\t\t\tactive = 1.375;\n\t\t\t\t} else if (spinner3.getSelectedItem().equals(\n\t\t\t\t\t\t\"Moderately Active\")) {\n\t\t\t\t\tactive = 1.55;\n\t\t\t\t} else if (spinner3.getSelectedItem().equals(\"Highly Active\")) {\n\t\t\t\t\tactive = 1.725;\n\t\t\t\t} else if (spinner3.getSelectedItem().equals(\"Extra Active\")) {\n\t\t\t\t\tactive = 1.9;\n\t\t\t\t}\n\t\t\t}", "public boolean isSelectionChanged();", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1, int position,long id) {\n\n\n\n\n }", "@Override\n\tpublic void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\tlong arg3) {\n\t\tsearchText = spinner1.getSelectedItem().toString();\n\t\tSystem.out.println(\"Selected option = \"+searchText);\n\t\t\n\t}", "private void select(JSpinner spinner) {\n/* 194 */ JComponent editor = spinner.getEditor();\n/* */ \n/* 196 */ if (editor instanceof JSpinner.DateEditor) {\n/* */ \n/* 198 */ JSpinner.DateEditor dateEditor = (JSpinner.DateEditor)editor;\n/* 199 */ JFormattedTextField ftf = dateEditor.getTextField();\n/* 200 */ Format format = dateEditor.getFormat();\n/* */ \n/* */ Object value;\n/* 203 */ if (format != null && (value = spinner.getValue()) != null) {\n/* */ \n/* 205 */ SpinnerDateModel model = dateEditor.getModel();\n/* 206 */ DateFormat.Field field = DateFormat.Field.ofCalendarField(model.getCalendarField());\n/* */ \n/* 208 */ if (field != null) {\n/* */ \n/* */ try {\n/* */ \n/* 212 */ AttributedCharacterIterator iterator = format.formatToCharacterIterator(value);\n/* 213 */ if (!select(ftf, iterator, field) && field == DateFormat.Field.HOUR0)\n/* */ {\n/* 215 */ select(ftf, iterator, DateFormat.Field.HOUR1);\n/* */ }\n/* 217 */ } catch (IllegalArgumentException iae) {}\n/* */ }\n/* */ } \n/* */ } \n/* */ }", "@Override\r\n public void onItemChosen(View labelledSpinner, AdapterView<?> adapterView, View itemView, int position, long id) {\r\n String selectedText = adapterView.getItemAtPosition(position).toString();\r\n switch (labelledSpinner.getId()) {\r\n case R.id.spinner_planets:\r\n //Toast.makeText(getActivity(), \"Selected: \" + selectedText, Toast.LENGTH_SHORT).show();\r\n selectTextSpinner = selectedText;\r\n break;\r\n // If you have multiple LabelledSpinners, you can add more cases here\r\n }\r\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int position, long id)\n {\n }", "@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_21.setVisibility(View.INVISIBLE);\r\n item21_t= item21;\r\n item21 = 0;\r\n Log.i(TAG,\"item21\" + item21);\r\n }else{\r\n spinner_item_21.setVisibility(View.VISIBLE);\r\n item21 = item21_t;\r\n Log.i(TAG,\"item21\" + item21);\r\n }\r\n }", "private void checkSelection() {\n \t\tboolean oldIsSelection = isSelection;\n \t\tisSelection = text.getSelectionCount() > 0;\n \t\tif (oldIsSelection != isSelection) {\n \t\t\tfireEnablementChanged(COPY);\n \t\t\tfireEnablementChanged(CUT);\n \t\t}\n \t}", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n String taskType = adapterView.getItemAtPosition(i).toString();\n Log.d(TAG, \"SPINNER: \" + taskType);\n\n\n String[] tasks = getResources().getStringArray(R.array.tasktypelist);\n\n if (tasks.length > 0 && taskType.equals(tasks[0])) {\n taskParamsLayout.removeAllViews();\n\n piPointsNo = new EditText(MainActivity.this);\n piPointsNo.setInputType(InputType.TYPE_CLASS_NUMBER);\n piPointsNo.setHint(R.string.taskpi_help_points);\n\n taskParamsLayout.addView(piPointsNo);\n\n }\n\n else if (tasks.length > 1 && taskType.equals(tasks[1])) {\n taskParamsLayout.removeAllViews();\n\n Message msg=new Message();\n msg.obj=\"Wait! This task is a false one! :( \";\n toastHandler.sendMessage(msg);\n }\n\n else if (tasks.length > 2 && taskType.equals(tasks[2])) {\n taskParamsLayout.removeAllViews();\n\n Message msg=new Message();\n msg.obj=\"Wait! This task is a false one! :( \";\n toastHandler.sendMessage(msg);\n }\n\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position,\n long id) {\n\n }", "@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_23.setVisibility(View.INVISIBLE);\r\n item23_t= item23;\r\n item23 = 0;\r\n Log.i(TAG,\"item23\" + item23);\r\n }else{\r\n spinner_item_23.setVisibility(View.VISIBLE);\r\n item23 = item23_t;\r\n Log.i(TAG,\"item23\" + item23);\r\n }\r\n }", "public void addListenerOnSpinnerItemSelection() {\n spinner1.setOnItemSelectedListener(new CustomOnItemSelectedListener());\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) {\n spinnerItemSelected = parent.getItemAtPosition(pos).toString();\n }", "public void spinner() {\n /**\n * calls if the tasks was weekly, if not, it will be automatically set to \"once\"\n */\n if(weekly) {\n String[] items = new String[]{activity.getResources().getString(R.string.sunday), activity.getResources().getString(R.string.monday), activity.getResources().getString(R.string.tuesday), activity.getResources().getString(R.string.wednesday), activity.getResources().getString(R.string.thursday), activity.getResources().getString(R.string.friday), activity.getResources().getString(R.string.saturday)};\n ArrayAdapter<String> frequencyAdapter = new ArrayAdapter<String>(activity.getBaseContext(), android.R.layout.simple_spinner_dropdown_item, items);\n weekday.setAdapter(frequencyAdapter);\n weekday.getBackground().setColorFilter(activity.getResources().getColor(R.color.colorAccent), PorterDuff.Mode.SRC_ATOP);\n weekday.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\n day = String.valueOf(position + 1); //chosen day is stored\n\n }\n\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n\n }\n });\n } else {\n day = \"8\";\n weekday.setVisibility(View.GONE);\n }\n }", "public void onItemSelected(int position);", "@Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int pos, long id) {\n choice=pos;\n }", "private void setupSpinner() {\n // Create adapter for spinner. The list options are from the String array it will use\n // the spinner will use the default layout\n ArrayAdapter supplierSpinnerAdapter = ArrayAdapter.createFromResource(this,\n R.array.array_supplier_options, android.R.layout.simple_spinner_item);\n\n // Specify dropdown layout style - simple list view with 1 item per line\n supplierSpinnerAdapter.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);\n\n // Apply the adapter to the spinner\n mSupplierSpinner.setAdapter(supplierSpinnerAdapter);\n\n // Set the integer mSelected to the constant values\n mSupplierSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String selection = (String) parent.getItemAtPosition(position);\n if (!TextUtils.isEmpty(selection)) {\n if (selection.equals(getString(R.string.supplier_one))) {\n mSupplier = BookEntry.SUPPLIER_ONE;\n } else if (selection.equals(getString(R.string.supplier_two))) {\n mSupplier = BookEntry.SUPPLIER_TWO;\n } else {\n mSupplier = BookEntry.SUPPLIER_UNKNOWN;\n }\n }\n }\n\n // Because AdapterView is an abstract class, onNothingSelected must be defined\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n mSupplier = BookEntry.SUPPLIER_UNKNOWN;\n }\n });\n }", "@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_26.setVisibility(View.INVISIBLE);\r\n item26_t= item26;\r\n item26 = 0;\r\n Log.i(TAG,\"item26\" + item26);\r\n }else{\r\n spinner_item_26.setVisibility(View.VISIBLE);\r\n item26 = item26_t;\r\n Log.i(TAG,\"item26\" + item26);\r\n }\r\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View v, int position, long id)\n {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position,\n long id) {\n nama_dokter2 = parent.getItemAtPosition(position).toString();\n\n // Showing selected spinner item\n Toast.makeText(parent.getContext(), \"You selected: \" + nama_dokter2,\n Toast.LENGTH_LONG).show();\n\n }", "@Override\r\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n switch (position) {\r\n case 0:\r\n mode = 1;\r\n //mode = spinner.getSelectedItem().toString();\r\n break;\r\n case 1:\r\n mode = 2;\r\n //mode = spinner.getSelectedItem().toString();\r\n break;\r\n case 2:\r\n mode = 3;\r\n //mode = spinner.getSelectedItem().toString();\r\n break;\r\n }\r\n }", "@Override\n public void onItemSelected(View view, int position) {\n }", "String getSpinnerText();", "public void addListenerOnButton() {\n\n /* spinner1 = (Spinner) findViewById(R.id.spinner1);\n spinner2 = (Spinner) findViewById(R.id.spinner2);\n btnSubmit = (Button) findViewById(R.id.btnSubmit);\n\n btnSubmit.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n\n Toast.makeText(askquestion.this,\n \"OnClickListener : \" +\n \"\\nSpinner 1 : \"+ String.valueOf(spinner1.getSelectedItem()) +\n \"\\nSpinner 2 : \"+ String.valueOf(spinner2.getSelectedItem()),\n Toast.LENGTH_SHORT).show();\n }\n\n });*/\n }", "@Override\n\t\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\t\tprefs.edit().putInt(\"CHOOSE\",(int)choose.getSelectedItemId()).commit();\n\n\t\t\t\t\tif(choose.getSelectedItemId()==0)\n\t\t \t\t\tcontacts.setVisibility(View.GONE);\n\t\t\t\t\telse \n\t\t \t\t\tcontacts.setVisibility(View.VISIBLE);\n\t\t\t\t}", "@Override\n public void onClick(View view) {\n\n if (material_type.getSelectedItem().equals(\"--Select Material Type--\")) {\n Toast.makeText(Activity_Sell.this, \"Select Material Type to continue\", Toast.LENGTH_SHORT).show();\n } else {\n\n// LoadMaterialTypeSpinner();\n alertDialog.dismiss();\n getMaterial();\n /* getMaterialClasses();\n getMaterialDetails();\n getMaterialUnits();*/\n\n }\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String item = parent.getItemAtPosition(position).toString();\n\n // Showing selected spinner item\n Toast.makeText(parent.getContext(), \"Selected: \" + item, Toast.LENGTH_LONG).show();\n\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int position, long id) {\n }", "@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_25.setVisibility(View.INVISIBLE);\r\n item25_t= item25;\r\n item25 = 0;\r\n Log.i(TAG,\"item25\" + item25);\r\n }else{\r\n spinner_item_25.setVisibility(View.VISIBLE);\r\n item25 = item25_t;\r\n Log.i(TAG,\"item25\" + item25);\r\n }\r\n }", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n long arg3) {\n\n }", "@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_24.setVisibility(View.INVISIBLE);\r\n item24_t= item24;\r\n item24 = 0;\r\n Log.i(TAG,\"item24\" + item24);\r\n }else{\r\n spinner_item_24.setVisibility(View.VISIBLE);\r\n item24 = item24_t;\r\n Log.i(TAG,\"item24\" + item24);\r\n }\r\n }", "public abstract boolean hasSelection();", "public void handleItemSpinnerChange(){\n String itemTypeText = itemType.getSelectedItem().toString();\n if(itemTypeText.equals(\"Computer\")){\n osTextView.setVisibility(View.VISIBLE);\n osInput.setVisibility(View.VISIBLE);\n printerTextView.setVisibility(View.INVISIBLE);\n printerType.setVisibility(View.GONE);\n }\n else if(itemTypeText.equals(\"Printer\")){\n osTextView.setVisibility(View.INVISIBLE);\n osInput.setVisibility(View.INVISIBLE);\n printerTextView.setVisibility(View.VISIBLE);\n printerType.setVisibility(View.VISIBLE);\n }\n }", "public void onItemSelected(int id);", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String item = parent.getItemAtPosition(position).toString();\n tuning = position;\n setUpDisplay();\n\n // Showing selected spinner item\n if (tuner1 == 3) {\n Toast.makeText(TunerActivity.this, \"\" + item, Toast.LENGTH_LONG).show();\n }\n }", "@Override\n public void onItemSelected(OurPlace place) {\n\n Log.i(LOG_TAG, \"YES!\");\n }", "public void onItemSelected(AdapterView<?> adapterView, \n\t\t View view, int i, long l) {\n\t\t \tString selected = spinner.getSelectedItem().toString();\n\t\t\t Toast.makeText(PainActivity.this,\"You Selected : \"\n\t\t\t + selected +\" brush \",Toast.LENGTH_SHORT).show(); \n\t\t \n\t\t \tif (selected.equals(\"Small\")) {\n\t\t \t\tdrawPaint.setStrokeWidth(20);\n\t\t \t} else if (selected.equals(\"Medium\")){\n\t\t \t\tdrawPaint.setStrokeWidth(40);\n\t\t \t} else {\n\t\t \t\tdrawPaint.setStrokeWidth(60);\n\t\t \t}\n\t\t }", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1,\n int arg2, long arg3) {\n actionType = String.valueOf(actionTypeSpiner\n .getSelectedItem());\n if (actionType == \"Upload\"\n || actionType.equals(\"Upload\")) {\n viewLay.setVisibility(View.GONE);\n action = true;\n fileNameTxt.setVisibility(View.GONE);\n doOpen();\n } else if (actionType == \"View\"\n || actionType.equals(\"View\")) {\n action = false;\n fileNameTxt.setVisibility(View.GONE);\n submitTxt.setEnabled(true);\n }\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n if (position != mHoldTypeSelection) {\n setActionSpinner(false, position);\n }\n }", "@Override\n\t\tpublic void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\n\t\t}", "private void povoarSpinners() {\n List<String> lista = new ArrayList<>();\n lista.add(UsuarioNivelConstantes.VETOR_DESCRICOES[0]);\n lista.add(UsuarioNivelConstantes.VETOR_DESCRICOES[1]);\n lista.add(UsuarioNivelConstantes.VETOR_DESCRICOES[2]);\n ArrayAdapter<String> arrayAdapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_dropdown_item, lista);\n arrayAdapter.setDropDownViewResource(android.R.layout.simple_spinner_item);\n spnNivel.setAdapter(arrayAdapter);\n lista = new ArrayList<>();\n lista.add(UsuarioEstadoConstantes.VETOR_DESCRICOES[0]);\n lista.add(UsuarioEstadoConstantes.VETOR_DESCRICOES[1]);\n arrayAdapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_dropdown_item, lista);\n arrayAdapter.setDropDownViewResource(android.R.layout.simple_spinner_item);\n spnEstado.setAdapter(arrayAdapter);\n }", "@Override\n public void onClick(View v)\n {\n mySpinner.performClick();\n int getPosition = (Integer) v.getTag();\n\n toggleSelection(getPosition);\n\n\n notifyDataSetChanged();\n\n /**\n * if clicked position is one\n * that means you want clear all select item in list\n */\n /* if (getPosition == 1)\n {\n clearList();\n }\n */\n /**\n * if clicked position is two\n * that means you want select all item in list\n */\n /* else if (getPosition == 2)\n {\n fillList();\n }*/\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n state = input_add_new_state.getText().toString();\n System.out.println(\"hehe=\"+state);\n db_table_result_rows_list.remove(0);\n db_table_result_rows_list.add(state);\n\n ArrayAdapter<String> spinnerArrayAdapter = new ArrayAdapter<String>(AddNewLocation.this.getApplicationContext(), android.R.layout.simple_spinner_item, db_table_result_rows_list);\n spinnerArrayAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); // The drop down view\n statesSpinner.setAdapter(spinnerArrayAdapter);\n\n statesSpinner.setSelection(((ArrayAdapter<String>)statesSpinner.getAdapter()).getPosition(state));\n\n //district spinner flow starts here\n if(state != \"\")\n {\n System.out.println(\"entered to district spinner flow\");\n districtsSpinner.setOnTouchListener(new AdapterView.OnTouchListener() {\n @Override\n public boolean onTouch(View view, MotionEvent motionEvent) {\n table_name = \"districts\";\n column_to_fetch = \"district\";\n column_to_serach = \"state\";\n value_to_search = new String[]{state};\n\n db_table_result_rows_list = travlogDB.getAllQueriedRows(column_to_fetch, table_name, column_to_serach, value_to_search);\n\n db_table_result_rows_list.add(\"Add District +\");\n\n ArrayAdapter<String> spinnerArrayAdapterDistrict = new ArrayAdapter<String>(AddNewLocation.this.getApplicationContext(), android.R.layout.simple_spinner_item, db_table_result_rows_list);\n spinnerArrayAdapterDistrict.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); // The drop down view\n districtsSpinner.setAdapter(spinnerArrayAdapterDistrict);\n\n districtsSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n district = districtsSpinner.getSelectedItem().toString();\n// System.out.println(\"selected district = \"+district);\n if(district == \"Add District +\")\n {\n //showing pop up alert dialog box to add new item\n AlertDialog.Builder builder = new AlertDialog.Builder(AddNewLocation.this);\n builder.setTitle(\"Add New District\");\n builder.setMessage(\"Enter District Name\");\n\n final EditText input_add_new_district = new EditText(AddNewLocation.this);\n LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(\n LinearLayout.LayoutParams.MATCH_PARENT,\n LinearLayout.LayoutParams.MATCH_PARENT);\n input_add_new_district.setLayoutParams(lp);\n builder.setView(input_add_new_district);\n\n builder.setCancelable(true)\n .setPositiveButton(\"Add\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n // this block will execute when we click on \"Yes\"\n district = input_add_new_district.getText().toString();\n\n db_table_result_rows_list.remove(0);\n db_table_result_rows_list.add(district);\n\n ArrayAdapter<String> spinnerArrayAdapterDistrict = new ArrayAdapter<String>(AddNewLocation.this.getApplicationContext(), android.R.layout.simple_spinner_item, db_table_result_rows_list);\n spinnerArrayAdapterDistrict.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); // The drop down view\n districtsSpinner.setAdapter(spinnerArrayAdapterDistrict);\n\n districtsSpinner.setSelection(((ArrayAdapter<String>)districtsSpinner.getAdapter()).getPosition(district));\n\n }\n }).setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n // this block will execute when we click on \"Cancel\"\n district = \"\";\n dialogInterface.cancel();\n }\n });\n\n AlertDialog alertDialog = builder.create();\n alertDialog.setTitle(\"Add New District\");\n alertDialog.show();\n }\n\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> adapterView) {\n district = \"\";\n }\n });\n return false;\n }\n });\n }\n\n //district spinnner flow ends here\n\n }", "@Override\r\n public void onNothingChosen(View labelledSpinner, AdapterView<?> adapterView) {\r\n // Do something here\r\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String item = (String) parent.getItemAtPosition(position);\n selectedSports = item;\n Log.d(\"testing Spinner\", \"Spinner item selected is: \" + selectedSports + \" \" + item.toString());\n }", "@Override\n\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\tlong arg3) {\n\t\t\t\n\t\t}", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\n quanHuyens = sqLite_quanHuyen.getDSQH(arrTinhTP.get(position).getId());\n adapterRecyclerViewChonQuan = new AdapterRecyclerViewChonQuan(quanHuyens, getApplicationContext());\n recycleQH.setAdapter(adapterRecyclerViewChonQuan);\n\n //spinnerQuanHuyen_adapter = new SpinnerQuanHuyen_Adapter(getApplicationContext(), arrQuanHuyen);\n //spinnerQuanHuyen_adapter.notifyDataSetChanged();\n //spinnerQuanHuyen.setAdapter(spinnerQuanHuyen_adapter);\n\n }", "public void onItemSelected(String studentSelected);", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\n //prendo il valore dell'elemento selezionato\n String item = parent.getItemAtPosition(position).toString();\n\n if(item.equals(\"Colosseo\")){\n Intent openTreasurePage2 = new Intent(TreasurePortalPag1.this,TreasurePortalPag2.class);\n startActivity(openTreasurePage2);\n }\n //visualizzo l'elemento selezionato\n if(!(item.equals(\"\"))&& (!item.equals(\"Colosseo\")))\n Toast.makeText(parent.getContext(),item,Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\n switch (parent.getId())\n {\n case R.id.spiEspecie:\n /**Vericamos si la posicion seleccionada es mayor que cero, ya que el numero 0 es un valor por default\n y no tiene ningun valor en la base de datos*/\n if(position>0)\n {\n\n //Desbloqueamos la base el sepinner de razas\n enableSpinnerAndButton(spiRaza,agregarRaza);\n /**Establecemos un observador para obtener las razas por especie seleccianada, en esta caso este se encarga de actualizar\n * cada vez que agreguemos una nueva raza\n * */\n instanciaDB.getRazaDAO().getAllBreedsFromSpecie(parent.getSelectedItem().toString()).observe(CreacionPerfiles.this,\n new Observer<List<RazaDAO.NombreRaza>>() {\n @Override\n public void onChanged(List<RazaDAO.NombreRaza> nombreRazas) {\n arrayNombreRazas.clear();\n /**Este metodo esta asociado a un Observer que decta cuando se han cambiado los datos para actualizar\n * de forma asincrona, por tal razan validdamos cuando es guardar y cuando es actualizar en caso de ser\n * \"guardar\" entonces solo actualiza el spinner raza cuando se selecciona una especie */\n if (accion == Constantes.GUARDAR) {\n for (RazaDAO.NombreRaza raza : nombreRazas) {\n arrayNombreRazas.add(raza.getNombreRaza());\n }\n }\n else if (accion == Constantes.ACTUALIZAR) {\n for(int i=0;i<nombreRazas.size();i++)\n {\n if(nombreRazas.get(i).getNombreRaza().equals(raza))\n {\n /**Se obtiene la posición y se le suma 1 porque el 0 es el valor por defecto*/\n postionItemRaza =i+1;\n }\n arrayNombreRazas.add(i,nombreRazas.get(i).getNombreRaza());\n }\n }\n\n /** Independientemente si es actualizacion o se esta guardando la opcion por default siempre va e\n * existir por eso se coloca al final de las evaluaciones*/\n arrayNombreRazas.add(0,\"Seleccione Raza\");\n spiRaza.setSelection(postionItemRaza);\n /** Se resetea esta posición con el objetivo que la proxima vez que seleccione una nueva especie y\n * no tenga razas relacionadas en la base de datos, el valor por defecto se seleccione*/\n postionItemRaza=0;\n }\n });\n /**\n * Cada vez que se selecciona una especie se recarga las razas pertenecientes a esa especie, por tanto el primer item seleccionado sea el cero\n * ya que es el valor por defecto \"Seleccione raza\", que le indica al usuario que hacer\n * */\n\n }\n else\n {\n /**Se selecciona el valor po defecto*/\n spiRaza.setSelection(postionItemRaza);\n disableSpinnerAndButton(spiRaza,agregarRaza);\n\n }\n\n\n\n break;\n }\n }", "void onItemSelected(Bundle args);" ]
[ "0.7402322", "0.7217892", "0.68763053", "0.67927057", "0.6738477", "0.6737433", "0.6736291", "0.6664746", "0.66617656", "0.65885544", "0.65695906", "0.65677786", "0.65665114", "0.65653557", "0.6547873", "0.6508895", "0.65031326", "0.6441629", "0.6439371", "0.6439371", "0.6422781", "0.6416874", "0.63997966", "0.6393215", "0.63877314", "0.6377952", "0.6377952", "0.6366663", "0.6366169", "0.63652396", "0.6358616", "0.63574415", "0.63532966", "0.6353104", "0.6333325", "0.6333325", "0.6333325", "0.63275725", "0.6309602", "0.62811875", "0.62775874", "0.62709105", "0.62671894", "0.62671894", "0.6263974", "0.6254118", "0.6249142", "0.62491214", "0.62465537", "0.6241592", "0.6230694", "0.62218195", "0.62104976", "0.62046313", "0.6200725", "0.61984086", "0.61960185", "0.61950237", "0.61939055", "0.6190849", "0.6181867", "0.61729926", "0.61697567", "0.61630416", "0.6162141", "0.61594546", "0.61581796", "0.61568296", "0.61430895", "0.6141617", "0.61367077", "0.6134486", "0.6128893", "0.6125997", "0.61248344", "0.6114062", "0.6110827", "0.61016196", "0.6097059", "0.60808396", "0.60763645", "0.6073786", "0.6059819", "0.6055314", "0.6055269", "0.6040892", "0.60406774", "0.6038003", "0.60365486", "0.60353017", "0.6031755", "0.6028039", "0.602556", "0.6022253", "0.60197127", "0.6009697", "0.600679", "0.5991641", "0.5989232", "0.5986651", "0.5986395" ]
0.0
-1
To check GPS number
private void getTaskSpinner() { StringRequest stringRequest = new StringRequest("https://cardtest10.000webhostapp.com/Sync_Spinner_T.php", new Response.Listener<String>() { @Override public void onResponse(String response) { try{ JSONObject jsonResponse = new JSONObject(response); JSONArray jsonArraytask = jsonResponse.getJSONArray("task"); for(int i=0; i < jsonArraytask.length(); i++) { JSONObject jsonObjecttask = jsonArraytask.getJSONObject(i); String task = jsonObjecttask.optString("Type"); arrayTask.add(task); } }catch (JSONException e){ e.printStackTrace(); } // Applying the adapter to our spinner spTaskType.setAdapter(new ArrayAdapter <>(UserAreaActivity.this, android.R.layout.simple_spinner_dropdown_item, arrayTask)); } }, new Response.ErrorListener() { @Override public void onErrorResponse(VolleyError error) { Toast.makeText(UserAreaActivity.this, error + "", Toast.LENGTH_SHORT).show(); } }); RequestQueue requestQueue = Volley.newRequestQueue(this); requestQueue.add(stringRequest); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkGPS(double latitude, double longitude, String massage) {\n if(latitude == 0.0 && longitude == 0.0)\n {\n Toast.makeText(this, massage, Toast.LENGTH_LONG).show();\n return false;\n }\n else\n {\n return true;\n }\n }", "public boolean CheckGPS(){\n\n boolean status;\n LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n status = locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);\n return status;\n }", "private Boolean displayGetGPSStatus() {\n boolean gpsStatus = locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);\n// ContentResolver contentResolver = getContentResolver();\n// boolean gpsStatus = Settings.Secure.isLocationProviderEnabled(\n// contentResolver,\n// LocationManager.GPS_PROVIDER\n// );\n\n if (gpsStatus) {\n return true;\n } else {\n\n return false;\n }\n }", "private void readGPS() {\n }", "public void checkGPS()\r\n {\r\n\t\tlm = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);\r\n\t\tif (!lm.isProviderEnabled(LocationManager.GPS_PROVIDER)) {\r\n\t\t\tbuildAlertMessageNoGps();\r\n\t\t} else {\r\n\t\t\tlm = (LocationManager) this\r\n\t\t\t\t\t.getSystemService(Context.LOCATION_SERVICE);\r\n\t\t\tlm.getProvider(LocationManager.GPS_PROVIDER);\r\n\t\t\tlocationListener = new UserLocationListener();\r\n\t\t\tlm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 5000, 10,\r\n\t\t\t\t\tlocationListener);\r\n\t\t}\r\n\t}", "public void testGPS() {\n\t\tgps = new GPSTracker(gps);\n \tdouble [] coordinate = new double[2];\n\t\tdouble latitude = gps.getLatitude();\n\t\tdouble longitude = gps.getLongitude();\n\t\tcoordinate[0] = latitude;\n\t\tcoordinate[1] = longitude;\n\t\tassertTrue(Math.floor(latitude) == 0 && Math.floor(longitude) == 0);\n\t\t\n\t\tString address = GeoCoder.toAdress(53.5267620,-113.5271460);\n\t\tLog.d(LOG_TAG, address);\n\t\tString testAddress = \"Edmonton, Alberta/CA\";\n\t\tLog.d(LOG_TAG, testAddress);\n\t\tassertEquals(address, testAddress);\n\t\t\n\t}", "private void checkPointLon(){\n double glon = Double.parseDouble(point_lon);\n if(glon > 180.0){\n double glon360 = glon % 360.0;\n //west\n if(glon360 > 180.0){\n point_lon = Double.toString(glon360-360.0);\n //System.out.println(point_lon);\n //east\n }else{\n point_lon = Double.toString(glon360);\n //System.out.println(point_lon);\n }\n }\n if(glon < -180.0){\n double glon360 = glon % 360.0;\n //east\n if(glon360 < -180.0){\n point_lon = Double.toString(glon360+360.0);\n //west\n }else{\n point_lon = Double.toString(glon360);\n }\n }\n }", "boolean hasLatitude();", "boolean hasLatitude();", "public void GPSStatus() {\n locationManager = (LocationManager) getApplicationContext().getSystemService(getApplicationContext().LOCATION_SERVICE);\n GpsStatus = locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);\n }", "boolean hasHasLatitude();", "boolean hasLongitude();", "boolean hasLongitude();", "public Location myLocation() {\n\n // Acquire a reference to the system Location Manager\n LocationManager locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);\n Criteria criteria = new Criteria();\n criteria.setHorizontalAccuracy(Criteria.ACCURACY_FINE);\n String provider = locationManager.getBestProvider(criteria, true);\n // Define a listener that responds to location updates\n LocationListener locationListener = new LocationListener() {\n\n //When the location of the device changes\n public void onLocationChanged(Location location) {\n\n //Display the current location\n double latitude = location.getLatitude();\n double longitude = location.getLongitude();\n MapProjection mapProjection = MapProjection.getDefault();\n GridPoint gp = mapProjection.toGridPoint(latitude,longitude);\n mGPSon.setText(\"Latitude: \"+Math.round(gp.x)+\"\\nLongitude: \"+Math.round(gp.y));\n\n }\n\n //When the status of the GNSS receiver changes\n public void onStatusChanged(String provider, int status, Bundle extras) {\n\n\n\n }\n\n //When the location provider is enabled\n public void onProviderEnabled(String provider) {\n\n\n\n }\n\n //When the location provider is disabled\n public void onProviderDisabled(String provider) {\n\n\n\n }\n\n };\n // Register the listener with the Location Manager to receive location updates\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,0,0,locationListener);\n // Obtain the current location\n Location myLocation = locationManager.getLastKnownLocation(provider);\n\n //Only if the current location is passed\n if (myLocation != null) {\n\n //Project the Location object to a GridPoint object\n double latitude = myLocation.getLatitude();\n double longitude = myLocation.getLongitude();\n MapProjection mapProjection = MapProjection.getDefault();\n GridPoint gp = mapProjection.toGridPoint(latitude, longitude);\n //Update the real-time latitude and longitude\n mGPSon.setText(\"Latitude: \" + Math.round(gp.x) + \"\\nLongitude: \" + Math.round(gp.y));\n return myLocation;\n\n } else {\n\n //If GPS is off, notify the user to turn it on\n Toast.makeText(MainActivity.this,\"Turn on GPS.\",Toast.LENGTH_SHORT).show();\n return null;\n\n }\n\n }", "private boolean isGPSconnected() {\n \tLocationManager manager\n \t= (LocationManager) getSystemService(Context.LOCATION_SERVICE );\n \tboolean gpsStatus\n \t= manager.isProviderEnabled(LocationManager.GPS_PROVIDER);\n \treturn gpsStatus;\n }", "public String getGPS();", "boolean hasPingerLoc();", "private void getGPSLocation()\n {\n gps_ = new GPSLocator( LoginActivity.this );\n\n // check if GPS enabled\n if ( gps_.canGetLocation() )\n {\n latitude_ = gps_.getLatitude();\n longitude_ = gps_.getLongitude();\n\n // Raises a toast to show the location\n Toast.makeText(\n getApplicationContext(),\n \"Your Location is - \\nLat: \" + latitude_ + \"\\nLong: \"\n + longitude_, Toast.LENGTH_SHORT ).show();\n }\n else\n {\n // There was an error getting the gps information\n gps_.showSettingsAlert();\n }\n }", "private boolean checkGia(String giaPhong){\n String pattern =\"\\\\d+([.]\\\\d)?\";\n return giaPhong.matches(pattern);\n }", "boolean hasHasLongitude();", "private Boolean displayGpsStatus() {\n ContentResolver contentResolver = getBaseContext()\n .getContentResolver();\n boolean gpsStatus = Settings.Secure\n .isLocationProviderEnabled(contentResolver,\n LocationManager.GPS_PROVIDER);\n if (gpsStatus) {\n return true;\n\n } else {\n return false;\n }\n }", "public static boolean isGpsconnected(){\n return gpsconnected;\n }", "public void getCoordinates(){\n\t\t\n\t\t // check if GPS enabled\n GPSTracker gpsTracker = new GPSTracker(this);\n \n if (gpsTracker.canGetLocation())\n {\n latitude = gpsTracker.latitude;\n\n longitude = gpsTracker.longitude;\n }\n else\n {\n // can't get location\n // GPS or Network is not enabled\n // Ask user to enable GPS/network in settings\n gpsTracker.showSettingsAlert();\n }\n\t}", "private boolean m2832l() {\r\n if (Math.abs(((this.f1761e.latitude - this.f1762f.latitude) * (this.f1762f.longitude - this.f1763g.longitude)) - ((this.f1761e.longitude - this.f1762f.longitude) * (this.f1762f.latitude - this.f1763g.latitude))) < 1.0E-6d) {\r\n return false;\r\n }\r\n return true;\r\n }", "private static final double getCurrentLatitudeGpsValid() {\n if (mLocationGps == null) {\n return ZERO;\n } else {\n return mLocationGps.getLatitude();\n }\n }", "private void cekStatusGPSpeed() {\n\t\t\n\t\tlokasimanager = (LocationManager) Kecepatan.this.getSystemService(Context.LOCATION_SERVICE);\n\t\t\n\t\tcekGpsNet = new CekGPSNet(Kecepatan.this);\n\t\tisInternet = cekGpsNet.cekStatsInternet();\n\t\tisNetworkNyala = cekGpsNet.cekStatsNetwork();\n\t\tisGPSNyala = cekGpsNet.cekStatsGPS();\n\t\t\n\t\tstatusInternet = cekGpsNet.getKondisiNetwork(isInternet, isNetworkNyala);\n\t\tstatusGPS = cekGpsNet.getKondisiGPS(isGPSNyala);\n\t\t\n\t\tLog.w(\"STATUS GPS INTERNET\", \"GPS \" + statusGPS + \" INTERNET \" + statusInternet);\n\t\t\n\t\tif (statusInternet == CekGPSNet.TAG_NYALA) {\n\t\t\t\n\t\t\tlokasimanager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, MIN_TIME_BW_UPDATES, MIN_DISTANCE_CHANGE_FOR_UPDATES , locListNetwork);\n\t\t\tLog.w(\"Network\", \"Network\");\n\t\t\t\n\t\t\tif (lokasimanager != null) {\n\t\t\t\tlocation = lokasimanager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\n\t\t\t\t\n\t\t\t\tif (location != null) {\n\t\t\t\t\tlatitude = location.getLatitude();\n\t\t\t\t\tlongitude = location.getLongitude();\n\t\t\t\t\t\n\t\t\t\t\tLog.w(\"TAG NETWORK\", \" \" + latitude + \" \" + longitude);\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\tif (statusGPS == CekGPSNet.TAG_NYALA) {\n\t\t\t\n\t\t\tlokasimanager.requestLocationUpdates(LocationManager.GPS_PROVIDER, MIN_TIME_BW_UPDATES, MIN_DISTANCE_CHANGE_FOR_UPDATES , locListGPS);\n\t\t\tLog.w(\"GPS\", \"GPS\");\n\t\t\t\n\t\t\tif (lokasimanager != null) {\n\t\t\t\tlocation = lokasimanager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n\t\t\t\t\n\t\t\t\tif (location != null) {\n\t\t\t\t\tlatitude = location.getLatitude();\n\t\t\t\t\tlongitude = location.getLongitude();\n\t\t\t\t\t\n\t\t\t\t\tLog.w(\"TAG GPS\", \" \" + latitude + \" \" + longitude);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "public boolean setGPS(String longitude, String latitude);", "private boolean allGPSDataExists() {\n for(int i = 0; i < 6; i++) {\n if(databaseHandler.getSingleExperimentInfoValue(experimentNumber, DatabaseHandler.SENDER_LATITUDE).equals(\"-1\"))\n return false;\n }\n return true;\n }", "public boolean getValidGPSRequired()\n {\n return this.validGPS;\n }", "public boolean checkNumber() {\n\t\treturn true;\n\t}", "private void reqquestGps() {\n builder = new LocationSettingsRequest.Builder();//mang di request\n builder.addLocationRequest(locationRequest);\n SettingsClient settingsClient = LocationServices.getSettingsClient(context);//dang tao 1 requet vao may va lasy ra thong so\n\n Task<LocationSettingsResponse> task = settingsClient.checkLocationSettings(builder.build());//day la lenh cua thu vien\n\n task.addOnFailureListener(new OnFailureListener() {//lang nghe su kien bi fai kho k lay dc gps,boi nnhieu nhie nghuyen nhan 1 co the la chua bat,\n @Override\n public void onFailure(@NonNull Exception e) {//requye\n if (e instanceof ResolvableApiException) {//chua bat\n ResolvableApiException resolvableApiException = (ResolvableApiException) e;//bat man hinh hien thi bat gps\n ((MainActivity) context).requestOpenGps(resolvableApiException);\n }\n }\n });\n }", "private void checkLocationConnection() {\n LocationManager locationManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE);\n String message = \"\";\n\n // prepare output message to indicate whether location services are enabled\n try {\n message = locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER) ?\n \"Location Services are enabled!\" :\n \"Location Services are not enabled!\";\n } catch(Exception e) { e.printStackTrace(); }\n\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n }", "public static boolean isCoordinationNumber(final String id) {\n if (id.length() != 12) {\n return false;\n }\n try {\n final Integer day = Integer.parseInt(id.substring(6, 8));\n return (day >= 61);\n }\n catch (final Exception e) {\n return false;\n }\n }", "public static boolean isGpsOn(Context context) {\n\n LocationManager manager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE);\n boolean statusOfGPS = manager.isProviderEnabled(LocationManager.GPS_PROVIDER);\n return statusOfGPS;\n }", "@Override\n public void onGpsStatusChanged(int event) {\n GpsStatus gpsStatus = mLocationManager.getGpsStatus(null);\n if (gpsStatus != null) {\n mSatelliteInUse = 0;\n mSatelliteInView = 0;\n Iterable<GpsSatellite> satellites = gpsStatus.getSatellites();\n Iterator<GpsSatellite> sat = satellites.iterator();\n while (sat.hasNext()) {\n GpsSatellite satellite = sat.next();\n if (satellite.usedInFix())\n mSatelliteInUse++;\n mSatelliteInView++;\n }\n }\n switch (event) {\n case GpsStatus.GPS_EVENT_STARTED:\n mGpsMode = \"Searching\";\n // Toast.makeText(activity, \"GPS_SEARCHING\", Toast\n // .LENGTH_SHORT).show(); System.out.println(\"TAG - GPS searching: \");\n break;\n case GpsStatus.GPS_EVENT_STOPPED:\n // System.out.println(\"TAG - GPS Stopped\");\n mGpsMode = \"Stopped\";\n break;\n case GpsStatus.GPS_EVENT_FIRST_FIX:\n /*\n * GPS_EVENT_FIRST_FIX Event is called when GPS is locked\n */\n // Toast.makeText(activity, \"GPS_LOCKED\", Toast\n // .LENGTH_SHORT).show();\n /*\n * Removing the GPS status listener once GPS is locked\n */\n // mLocationManager.removeGpsStatusListener\n // (gpsStatusListener);\n mGpsMode = \"Fixed\";\n\n break;\n // case GpsStatus.GPS_EVENT_SATELLITE_STATUS:\n // mGpsMode = K.NO_FIX;\n // // System.out.println(\"TAG -\n // GPS_EVENT_SATELLITE_STATUS\");\n // break;\n }\n if (gpsStatus != null) {\n androidLocationUI.updateGpsStatusUI();\n androidLocationUI.updateSatelliteUI();\n }\n\n }", "public boolean getGPS()\n {\n return getLocation;\n }", "@Override\n public void onLocationChanged(Location location) {\n lat=location.getLatitude();\n Log.e(\"MyLat\",Double.toString(lat));\n lng=location.getLongitude();\n Log.e(\"Mylongitude\",Double.toString(lng));\n /* houni c'est bon khdhina el lat w longitude\n donc just taamel el requete li bch tarmiha fel base\n */\n Toast.makeText(this,Double.toString(lng),Toast.LENGTH_LONG).show();\n\n }", "@Override\n public void onLocationChanged(Location location) {\n\n if(!locationFound){\n while(mlongitude == 0.0 && mlatitude == 0.0) {\n\n mlatitude = location.getLatitude();\n mlongitude = location.getLongitude();\n }\n\n locationFound = true;\n }\n\n }", "private boolean getLocation() {\n LocationManager locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);\n\n // define listener responding to location updates\n LocationListener locationListener = new LocationListener() {\n public void onLocationChanged(Location location) {\n // new location is found by the network location provider\n }\n public void onStatusChanged(String provider, int status, Bundle extras) { }\n public void onProviderEnabled(String provider) { }\n public void onProviderDisabled(String provider) { }\n };\n\n // register listener with Location Manager to receive location updates\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n Log.d(TAG, \"Location permission not granted\");\n requestLocationPermission();\n return false;\n }\n\n locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener);\n String locationProvider = LocationManager.GPS_PROVIDER;\n Location lastKnownLocation = locationManager.getLastKnownLocation(locationProvider);\n\n // store values\n longitude = lastKnownLocation.getLongitude();\n latitude = lastKnownLocation.getLatitude();\n Log.d(TAG, \"Longitude: \" + longitude + \", Latitude: \" + latitude);\n\n return true;\n }", "private boolean checkPhoneNum() {\n\t\tphoneNum = et_phone.getText().toString().trim();\r\n\t\tif(isMobileNO(phoneNum)){\r\n\t\t\treturn true;\r\n\t\t}else{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "private static boolean validateLatitude(String latitude) {\n try {\n BigDecimal bd = new BigDecimal(latitude);\n\n if ((bd.compareTo(maxLatitude) <= 0) && (bd.compareTo(minLatitude) >= 0)) {\n return true;\n }\n } catch (Exception ignored) {\n }\n\n return false;\n }", "private void getlocation() {\n\t\t\t\ttry {\n\n\t\t\t\t\tgps = new GPSTracker(RegisterActivity.this);\n\t\t\t\t\tLog.d(\"LOgggg\", \"inCurrentlocation\");\n\n\t\t\t\t\t// check if GPS enabled\n\t\t\t\t\tif (gps.canGetLocation()) {\n\n\t\t\t\t\t\tlatitude = gps.getLatitude();\n\t\t\t\t\t\tlongitude = gps.getLongitude();\n\n\t\t\t\t\t\tLog.i(\"latitude\", \"\" + latitude);\n\t\t\t\t\t\tLog.i(\"longitude\", \"\" + longitude);\n\n\t\t\t\t\t\tnew getLoc().execute(\"\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tgps.showSettingsAlert();\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception 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}", "private void findPosition() throws Exception {\n \tLocationManager locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);\n\n \t// Define a listener that responds to location updates\n \tLocationListener locationListener = new LocationListener() {\n \t public void onLocationChanged(Location location) {\n \t // Called when a new location is found by the network location provider.\n \t \n \t }\n\n \t public void onStatusChanged(String provider, int status, Bundle extras) {}\n\n \t public void onProviderEnabled(String provider) {}\n\n \t public void onProviderDisabled(String provider) {}\n \t };\n\n \t// Register the listener with the Location Manager to receive location updates\n \ttry {\n \t\tlocationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener);\n \tLocation loc = locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\n \tlatitude = (int)(loc.getLatitude()*1E6);\n \tlongitude = (int)(loc.getLongitude()*1E6);\n\t\t} catch (Exception e) {\n\t\t\tlocationManager.requestLocationUpdates(LocationManager.PASSIVE_PROVIDER, 0, 0, locationListener);\n\t \tLocation loc = locationManager.getLastKnownLocation(LocationManager.PASSIVE_PROVIDER);\n\t \tlatitude = (int)(loc.getLatitude()*1E6);\n\t \tlongitude = (int)(loc.getLongitude()*1E6);\n\t\t}\n \t//locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener);\n \t//Location loc = locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\n \t\n \t\n \t\n\t\t\n\t}", "int getLatitude();", "private boolean isGpsOpend() {\n final LocationManager manager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n if (manager != null && !manager.isProviderEnabled(LocationManager.GPS_PROVIDER)) {\n return false;\n } else {\n return true;\n }\n }", "public void checkGpsHasTurnOn() {\n LocationManager locationManager = (LocationManager) getActivity().getApplicationContext().getSystemService(Context.LOCATION_SERVICE);\n if (!locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)) {\n // if not turn on gps, call wifiChildScanFragment to make a snackbar\n Fragment childFrag = getChildFragmentManager().findFragmentByTag(Constant.TAG_CHILD_SCAN_WIFI_FRAGMENT);\n if (childFrag instanceof WifiChildScanFragment) {\n\n ((WifiChildScanFragment) childFrag).showSnackBar();\n }\n } else {\n // if already turn on gps, set var\n mHasTurnOnGps = true;\n }\n }", "boolean EsHemisferioSur()\r\n {\r\n if (getLat() < 29.46)\r\n return true;\r\n else\r\n return false;\r\n }", "private void finish() {\n mLocationManager = (LocationManager) getSystemService(LOCATION_SERVICE);\r\n boolean ena = mLocationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);\r\n ConnectivityManager koneksi = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\r\n NetworkInfo info = koneksi.getActiveNetworkInfo();\r\n\r\n if (info == null) {\r\n Toast.makeText(activity_splash.this, \"Tidak Ada Koneksi Jaringan\", Toast.LENGTH_LONG).show();\r\n }else if (!ena){\r\n Toast.makeText(activity_splash.this,\"GPS Belum Aktif\", Toast.LENGTH_LONG).show();\r\n }\r\n }", "long getLatitude();", "@Override\r\n public void onGpsStatusChanged(int event) {\n\r\n }", "private String latitudeConversion() {\n int lat = record[1];\n if (lat >= 0) {\n lat = lat & 255;\n }\n lat = (lat << 8) + (record[0] & 255);\n float flat = Float.parseFloat((\"\" + lat + \".\" + (((record[3] & 255) << 8) + (record[2] & 255))));\n int degs = (int) flat / 100;\n float min = flat - degs * 100;\n String retVal = \"\" + (degs + min / 60);\n\n if (retVal.compareTo(\"200.0\") == 0) {\n return \"\";\n } else {\n return retVal;\n }\n }", "private boolean hasGPSDevice(Context context) {\n final LocationManager mgr = (LocationManager) context\n .getSystemService(Context.LOCATION_SERVICE);\n if (mgr == null)\n return false;\n final List<String> providers = mgr.getAllProviders();\n if (providers == null)\n return false;\n return providers.contains(LocationManager.GPS_PROVIDER);\n }", "public static boolean pincodeNumberCheck(String pincode)\r\n\t{\r\n\t\treturn pincode.matches(\"^\\\\+?[0-9]{6}$\");\r\n\t}", "private void registerForGPS() {\n Log.d(NAMAZ_LOG_TAG, \"registerForGPS:\");\n Criteria criteria = new Criteria();\n criteria.setAccuracy(Criteria.ACCURACY_COARSE);\n criteria.setPowerRequirement(Criteria.POWER_LOW);\n criteria.setAltitudeRequired(false);\n criteria.setBearingRequired(false);\n criteria.setSpeedRequired(false);\n criteria.setCostAllowed(true);\n LocationManager locationManager = ((LocationManager) getSystemService(Context.LOCATION_SERVICE));\n String provider = locationManager.getBestProvider(criteria, true);\n\n if(!isLocationEnabled()) {\n showDialog(\"Location Access\", getResources().getString(R.string.location_enable), \"Enable Location\", \"Cancel\", 1);\n } else {\n ActivityCompat.requestPermissions(QiblaDirectionActivity.this,\n new String[]{Manifest.permission. ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION);\n }\n\n /* if (provider != null) {\n locationManager.requestLocationUpdates(provider, MIN_LOCATION_TIME,\n MIN_LOCATION_DISTANCE, qiblaManager);\n }\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,\n MIN_LOCATION_TIME, MIN_LOCATION_DISTANCE, qiblaManager);\n locationManager.requestLocationUpdates(\n LocationManager.NETWORK_PROVIDER, MIN_LOCATION_TIME,\n MIN_LOCATION_DISTANCE, qiblaManager);*/\n /*Location location = locationManager\n .getLastKnownLocation(LocationManager.GPS_PROVIDER);\n if (location == null) {\n location = ((LocationManager) getSystemService(Context.LOCATION_SERVICE))\n .getLastKnownLocation(LocationManager.GPS_PROVIDER);\n }*/\n\n }", "@Test\n public void testIsValidPhonenumber() {\n System.out.println(\"isValidPhonenumber\");\n String phonenumber = \"gd566666666666666666666666666666666666666\";\n boolean expResult = false;\n boolean result = ValidVariables.isValidPhonenumber(phonenumber);\n assertEquals(expResult, result);\n }", "boolean hasPhoneNumber();", "private boolean is_phonenumber(String nr)\n\t{\n\t\t// if the string is not null, length is between 0 and 16, starts with \"00\" and all the characters in the sttring are numbers\n\t\t// then it's valid\n\t\tif(nr != null && nr.length() > 0 && nr.length() < 16 && nr.substring(0, 2).equals(\"00\") && valid_numbers(nr))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private static final double getCurrentLongitudeGpsValid() {\n if (mLocationGps == null) {\n return ZERO;\n } else {\n return mLocationGps.getLongitude();\n }\n }", "protected void gpsCheck() {\n GoogleApiClient googleApiClient = new GoogleApiClient.Builder(MapsActivity.this).addApi(LocationServices.API).build();\n googleApiClient.connect();\n\n LocationRequest locationRequest = LocationRequest.create();\n locationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n\n LocationSettingsRequest.Builder builder = new LocationSettingsRequest.Builder().addLocationRequest(locationRequest);\n builder.setAlwaysShow(true);\n\n PendingResult<LocationSettingsResult> result = LocationServices.SettingsApi.checkLocationSettings(googleApiClient, builder.build());\n result.setResultCallback(new ResultCallback<LocationSettingsResult>() {\n @Override\n public void onResult(@NonNull LocationSettingsResult result) {\n final Status status = result.getStatus();\n switch (status.getStatusCode()) {\n case LocationSettingsStatusCodes.SUCCESS:\n Log.i(TAG, \"All location settings are satisfied.\");\n break;\n case LocationSettingsStatusCodes.RESOLUTION_REQUIRED:\n Log.i(TAG, \"Location settings are not satisfied. Show the user a dialog to upgrade location settings \");\n try {\n // Show the dialog by calling startResolutionForResult(), and check the result\n // in onActivityResult().\n status.startResolutionForResult(MapsActivity.this, REQUEST_CHECK_SETTINGS);\n } catch (IntentSender.SendIntentException e) {\n Log.i(TAG, \"PendingIntent unable to execute request.\");\n }\n break;\n case LocationSettingsStatusCodes.SETTINGS_CHANGE_UNAVAILABLE:\n Log.i(TAG, \"Location settings are inadequate, and cannot be fixed here. Dialog not created.\");\n break;\n }\n }\n });\n }", "public boolean getLocationNow(AppCompatActivity activity) {\n boolean connected;\n ActivityCompat.requestPermissions(activity, new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, REQUEST_LOCATION);\n mLocationManager = (LocationManager) activity.getSystemService(Context.LOCATION_SERVICE);\n\n if (!mLocationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)) {\n buildAlertMessageNoGps(activity);\n connected = false;\n } else if (mLocationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)) {\n getLocation(activity);\n connected = true; }\n else {connected = false;}\n return connected;\n }", "public static boolean IsNumber(long par_Number) {\n return true;\n }", "boolean hasNum();", "boolean hasNum();", "boolean hasNum();", "public static boolean isLatLon() {\r\n String mapSetFolder;\r\n\r\n\r\n mapSetFolder = new String(getGrassMapsetFolder().substring(0, getGrassMapsetFolder().lastIndexOf(File.separator))\r\n + File.separator + \"PERMANENT/PROJ_UNITS\");\r\n\r\n try {\r\n final FileInputStream fstream = new FileInputStream(mapSetFolder);\r\n final DataInputStream in = new DataInputStream(fstream);\r\n final BufferedReader br = new BufferedReader(new InputStreamReader(in));\r\n String line;\r\n while ((line = br.readLine()) != null) {\r\n if (line.contains(\"degree\")) {\r\n in.close();\r\n return (true);\r\n }\r\n }\r\n in.close();\r\n }\r\n catch (final Exception e) {\r\n Sextante.addWarningToLog(\"GRASS Interface: could not determine coordinate system. Assuming X/Y(/Z) cartesian.\\n\");\r\n }\r\n return (false);\r\n }", "private boolean checkPincode(String pincode) {\n\t\tString patternStr = \"^[0-9]*$\";\n\t\tPattern pattern = Pattern.compile(patternStr);\n\t\tMatcher matcher = pattern.matcher(pincode);\n\t\tboolean matchFound = matcher.matches();\n\t\treturn matchFound;\n\t}", "public String getLocationNumber()\n\t{\n\t\tString locationNo = getContent().substring(OFF_ID27_LOCATION, OFF_ID27_LOCATION + LEN_ID27_LOCATION) ;\n\t\treturn (locationNo);\n\t}", "public static boolean isValid(long number) { \n\t\t\t\treturn (numberOfDigits(number) >= 13 && numberOfDigits(number) <= 16) && \n\t\t\t\t (matchPrefix(number, 4) || matchPrefix(number, 5) || matchPrefix(number, 37) || matchPrefix(number, 6)) && \n\t\t\t\t ((sumOfDoubleEvenPlace(number) + sumOfOddPlace(number)) % 10 == 0); \n\t\t\t}", "@Override\n\t public void onLocationChanged(Location location) \n\t {\n\t dialog.show();\n\t latitudeValue = location.getLatitude();\n\t longitudeValue =location.getLongitude();\n\t if (latitudeValue != 0 && longitudeValue != 0){\n\t \n\t latitude.setText(\"Latitude is :\" + latitudeValue);\n\t longitude.setText(\"Longitude is :\" +longitudeValue);\n\t dialog.dismiss();\n\t }\n\t }", "boolean hasNumber();", "public void getLoco(double lat, double lon){\n cords.setText(lat + \" \"+lon);\n\n // String dress = getCompleteAddressString(lat,lon);\n\n // latt = lat;\n // longg = lon;\n\n //Toast.makeText(getContext(), add, Toast.LENGTH_SHORT).show();\n\n //LocationAddress locationAddress = new LocationAddress();\n //locationAddress.getAddressFromLocation(38.898748, -77.037684\n // , getContext(), new GeocoderHandler());\n\n //String add = getAddressString(lat,lon);\n //Toast.makeText(getContext(), add, Toast.LENGTH_LONG);\n //info.setText(add);\n\n check.setVisibility(View.VISIBLE);\n\n\n\n\n\n\n\n }", "public boolean isGpsEnable() {\r\n\t\treturn lm.isProviderEnabled(LocationManager.GPS_PROVIDER);\r\n\t}", "private boolean isFireOut(double lat,double lon) {\n\t\tboolean result = false;\n\n\t\tString urlFires = \"http://localhost:8083/fires/intensity?lat=\"+lat+\"&lon=\"+lon;\n\t\tRestTemplate restTemplate = new RestTemplate();\n\t\tResponseEntity<Float> response = restTemplate.exchange(urlFires, HttpMethod.GET,null,Float.class);\n\t\tFloat intensity = response.getBody();\n\t\t\n\t\tif(Math.abs(intensity)<1e-1) {\n\t\t\tresult = true;\n\t\t}\n\t\t\nSystem.out.println(\"Fire at \"+lat+\":\"+lon +\" intensity: \"+intensity);\n\t\treturn result;\n\t\t\n\t}", "void getlatlong(){\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(new String[]{Manifest.permission.ACCESS_COARSE_LOCATION,Manifest.permission.ACCESS_FINE_LOCATION,Manifest.permission.INTERNET}\n ,10);\n }\n return;\n }\n // this code won't execute IF permissions are not allowed, because in the line above there is return statement.\n\n //noinspection MissingPermission\n locationManager.requestLocationUpdates(\"gps\", 0, 0, listener);\n\n }", "private boolean checkResolution(double tar_LonDPP) {\n double LonDPP = (this.lrlon - this.ullon) / 256;\n return LonDPP <= tar_LonDPP;\n }", "public static double latitudeFromString(String pLatitude)\r\n {\r\n if (!Waypoint.testLatitude(pLatitude)) return 0;\r\n double Latitude = Double.parseDouble(pLatitude.substring(1,3)); //Grade abschneiden\r\n Latitude += Double.parseDouble(pLatitude.substring(3,6))/600; //Minuten dezuzählen\r\n if(pLatitude.charAt(0)=='N') return Latitude;\r\n else if (pLatitude.charAt(0)=='S') return Latitude*(-1);\r\n return 0;\r\n }", "public void handleGPS()\n {\n\t\t\n\t\tRunnable r2 = new Runnable() {\n\n public void run() {\n \ttry {\n BlackBerryCriteria criteria = new BlackBerryCriteria(GPSInfo.GPS_MODE_AUTONOMOUS);\n\n try\n {\n BlackBerryLocationProvider myProvider =\n (BlackBerryLocationProvider)\n LocationProvider.getInstance(criteria);\n\n try\n {\n BlackBerryLocation myLocation = (BlackBerryLocation)myProvider.getLocation(300);\n\n int satCount = myLocation.getSatelliteCount();\n \n setLat(myLocation.getQualifiedCoordinates().getLatitude());\n setLongt(myLocation.getQualifiedCoordinates().getLongitude());\n \n //data.setVisibleNone();\n \t\tMapLocation test = new MapLocation(myLocation.getQualifiedCoordinates().getLatitude(), myLocation.getQualifiedCoordinates().getLongitude(), \"test\", null);\n \t\tint testId = data.add((Mappable) test, \"test\");\n \t\tdata.tag(testId, \"test\");\n \t\tdata.setVisibleNone();\n \t\tdata.setVisible( \"test\");\n// \t\tMapAction action = map.getAction();\n// \t\taction.setCentreAndZoom(new MapPoint(43.47462, -80.53820), 2);\n \t\tmap.getMapField().update(true);\n \n \n \n \n int signalQuality = myLocation.getAverageSatelliteSignalQuality();\n int dataSource = myLocation.getDataSource();\n int gpsMode = myLocation.getGPSMode();\n\n SatelliteInfo si;\n StringBuffer sb = new StringBuffer(\"[Id:SQ:E:A]\\n\");\n String separator = \":\";\n\n for (Enumeration e = myLocation.getSatelliteInfo();\n e!=null && e.hasMoreElements(); )\n {\n si = (SatelliteInfo)e.nextElement();\n sb.append(si.getId() + separator);\n sb.append(si.getSignalQuality() + separator);\n sb.append(si.getElevation() + separator);\n sb.append(si.getAzimuth());\n sb.append('\\n');\n System.out.println(sb);\n }\n }\n catch ( InterruptedException iex )\n {\n Logger.log(iex.toString());\n }\n catch ( LocationException lex )\n {\n \tLogger.log(lex.toString());\n }\n }\n catch ( LocationException lex )\n {\n \tLogger.log(lex.toString());\n }\n }\n catch ( UnsupportedOperationException uoex )\n {\n \tLogger.log(uoex.toString());\n }\n\n// return;\n }\n\t\t};\n\t\tcontroller.invokeLater(r2);\n }", "private void detectUserLocation(){\n \ttimestamp = System.currentTimeMillis();\n \tmLocationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n\t\tCriteria criteria = new Criteria();\n\t\tcriteria.setAccuracy(Criteria.ACCURACY_FINE);\n\t\tcriteria.setCostAllowed(false);\n\t\tcriteria.setAltitudeRequired(false);\n\t\tcriteria.setPowerRequirement(Criteria.POWER_MEDIUM);\n\t\tString providerName = mLocationManager.getBestProvider(criteria, true);\n\t\tLog.d(TAG,\"Provider selected based on given criteria: \"+providerName);\n\t\tif(providerName != null)\n\t\t\tmLocationManager.requestLocationUpdates(providerName, 10000, 10, this);\n\t\telse\n\t\t\tLog.w(TAG,\"No provider\");\n }", "@Override\n public void onLocationChanged(Location location) {\n latitude=String.valueOf(location.getLatitude());\n longitude= String.valueOf(location.getLongitude());\n\n System.out.println(\"asdfgh==\"+latitude);\n\n\n /* Geocoder geocoder;\n List<Address> addresses;\n geocoder = new Geocoder(SafetyActivity.this, Locale.getDefault());\n\n try {\n addresses = geocoder.getFromLocation(location.getLatitude(), location.getLongitude(), 1);\n String address = addresses.get(0).getAddressLine(0); // If any additional address line present than only, check with max available address lines by getMaxAddressLineIndex()\n String city = addresses.get(0).getLocality();\n String state = addresses.get(0).getAdminArea();\n String country = addresses.get(0).getCountryName();\n String postalCode = addresses.get(0).getPostalCode();\n String knownName = addresses.get(0).getFeatureName();\n\n System.out.println(\"addresses==\"+address);\n // Here 1 represent max location result to returned, by documents it recommended 1 to 5\n } catch (IOException e) {\n e.printStackTrace();\n }*/\n }", "public Double[] gps(String ipAddr) {\n String GPScmd = \"gpspipe -w -n10\";\n String GPSdata = \"\";\n Double[] coord = new Double[2];\n char x;\n /*************************************************\n * Code to 'write' request for GPS info from Pi. *\n * \"lan\": 345325643, \"lon\": 23456789, *\n *************************************************/\n if (prompt != null) {\n try {\n GPSdata = sendCommand(GPScmd);\n String lat = \"\", lon = \"\";\n int plusIndex = GPSdata.indexOf(\"lat]\\\":\");\n if (plusIndex != -1) {\n lat = GPSdata.substring(plusIndex + 6);\n int plusIndex2 = GPSdata.indexOf(\"lon]\\\":\");\n if (plusIndex2 != -1) {\n lon = GPSdata.substring(plusIndex2 + 6);\n }\n lat = lat.split(\",\")[0];\n lon = lon.split(\",\")[0];\n coord[0] = Double.parseDouble(lat);\n coord[1] = Double.parseDouble(lon);\n // Use before\n System.out.println(lat + \"----\" + lon);\n }\n } catch (Exception e){\n e.printStackTrace();\n }\n }\n return coord;\n }", "private boolean knowMyLocation(LatLng myloc) {\n\t\tboolean isindoor = true;\n\t\tif((myloc.latitude>42.395||myloc.latitude<42.393) && (myloc.longitude>-72.528||myloc.longitude<-72.529)){\n\t\t\tisindoor = false;\n\t\t}\n\t\treturn isindoor;\n\t}", "public String updateGpsStatus(int event, GpsStatus status) {\n StringBuilder sb2 = new StringBuilder(\"\");\n if (status == null) {\n sb2.append(\"0\");\n } else if (event == 4) {\n int maxSatellites = status.getMaxSatellites();\n Iterator<GpsSatellite> it = status.getSatellites().iterator();\n this.numSatelliteList.clear();\n int count = 0;\n int calibration = 0;\n while (it.hasNext() && count <= maxSatellites) {\n GpsSatellite s = (GpsSatellite) it.next();\n if (s.getSnr() != 0.0f) {\n Log.e(\"getSnr\", \" 信噪比\" + s.getSnr());\n this.numSatelliteList.add(s);\n count++;\n if (s.getSnr() > 35.0f) {\n calibration++;\n }\n }\n }\n sb2.append(this.numSatelliteList.size());\n }\n if (this.numSatelliteList.size() > 3) {\n if (isAdded()) {\n this.iv_gps.setBackground(getResources().getDrawable(R.drawable.gps_on));\n this.gps_count.setTextColor(getResources().getColor(android.R.color.white));\n }\n } else if (isAdded()) {\n this.iv_gps.setBackground(getResources().getDrawable(R.drawable.gps_off));\n this.gps_count.setTextColor(getResources().getColor(android.R.color.holo_red_dark));\n }\n this.gps_count.setText(this.numSatelliteList.size() + \"\");\n return sb2.toString();\n }", "@Test\n public void testGPSping() {\n assertEquals(-31.977484, csse.getLat(), PRECISION);\n assertEquals(115.859945, perth.getLon(), PRECISION);\n assertEquals(48.859741, paris.getLat(), PRECISION);\n assertEquals(1565063614,csse.getTime());\n }", "public boolean checkMissingLonLatTime() {\n\t\ttry {\n _locationsChecked = true;\n\t\t\tDouble[] longitudes = getSampleLongitudes();\n\t\t\tfor (int rowIdx = 0; rowIdx < numSamples; rowIdx++) {\n\t\t\t\tif ( longitudes[rowIdx] == null ) {\n\t\t\t\t\t_locationsOk = false;\n\t\t\t\t\tADCMessage msg = new ADCMessage();\n\t\t\t\t\tmsg.setSeverity(Severity.CRITICAL);\n\t\t\t\t\tmsg.setRowIndex(rowIdx);\n\t\t\t\t\tmsg.setColIndex(longitudeIndex);\n\t\t\t\t\tmsg.setColName(userColNames[longitudeIndex]);\n\t\t\t\t\tString comment = \"missing longitude\";\n\t\t\t\t\tmsg.setGeneralComment(comment);\n\t\t\t\t\tmsg.setDetailedComment(comment);\n\t\t\t\t\tstdMsgList.add(msg);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch ( Exception ex ) {\n\t\t\t_locationsOk = false;\n\t\t\tADCMessage msg = new ADCMessage();\n\t\t\tmsg.setSeverity(Severity.CRITICAL);\n\t\t\tString comment = \"no longitude column\";\n\t\t\tmsg.setGeneralComment(comment);\n\t\t\tmsg.setDetailedComment(comment);\n\t\t\tstdMsgList.add(msg);\n\t\t}\n\n\t\ttry {\n\t\t\tDouble[] latitudes = getSampleLatitudes();\n\t\t\tfor (int rowIdx = 0; rowIdx < numSamples; rowIdx++) {\n\t\t\t\tif ( latitudes[rowIdx] == null ) {\n\t\t\t\t\t_locationsOk = false;\n\t\t\t\t\tADCMessage msg = new ADCMessage();\n\t\t\t\t\tmsg.setSeverity(Severity.CRITICAL);\n\t\t\t\t\tmsg.setRowIndex(rowIdx);\n\t\t\t\t\tmsg.setColIndex(latitudeIndex);\n\t\t\t\t\tmsg.setColName(userColNames[latitudeIndex]);\n\t\t\t\t\tString comment = \"missing latitude\";\n\t\t\t\t\tmsg.setGeneralComment(comment);\n\t\t\t\t\tmsg.setDetailedComment(comment);\n\t\t\t\t\tstdMsgList.add(msg);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch ( Exception ex ) {\n\t\t\t_locationsOk = false;\n\t\t\tADCMessage msg = new ADCMessage();\n\t\t\tmsg.setSeverity(Severity.CRITICAL);\n\t\t\tString comment = \"no latitude column\";\n\t\t\tmsg.setGeneralComment(comment);\n\t\t\tmsg.setDetailedComment(comment);\n\t\t\tstdMsgList.add(msg);\n\t\t}\n\n//\t DashDataType<?> pressureColumn = findDataColumn(\"water_pressure\");\n//\t DashDataType<?> depthColumn = findDataColumn(\"sample_depth\");\n//\t if ( depthColumn != null ) {\n//\t\t\ttry {\n//\t\t\t\tDouble[] depths = getSampleDepths();\n//\t\t\t\tfor (int rowIdx = 0; rowIdx < numSamples; rowIdx++) {\n//\t\t\t\t\tif ( depths[rowIdx] == null ) {\n//\t\t\t\t\t\tisOk = pressureColumn != null;\n//\t\t\t\t\t\tADCMessage msg = new ADCMessage();\n//\t\t\t\t\t\tmsg.setSeverity(pressureColumn == null ? Severity.ERROR : Severity.WARNING);\n//\t\t\t\t\t\tmsg.setRowIndex(rowIdx);\n//\t\t\t\t\t\tmsg.setColIndex(sampleDepthIndex);\n//\t\t\t\t\t\tmsg.setColName(userColNames[sampleDepthIndex]);\n//\t\t\t\t\t\tString comment = \"missing sample depth\";\n//\t\t\t\t\t\tmsg.setGeneralComment(comment);\n//\t\t\t\t\t\tmsg.setDetailedComment(comment);\n//\t\t\t\t\t\tstdMsgList.add(msg);\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t} catch ( Exception ex ) {\n//\t\t\t ex.printStackTrace();\n//\t\t\t}\n//\t\t} else if ( pressureColumn == null ) {\n//\t\t\tisOk = false;\n//\t\t\tADCMessage msg = new ADCMessage();\n//\t\t\tmsg.setSeverity(Severity.CRITICAL);\n//\t\t\tString comment = \"no sample depth column\";\n//\t\t\tmsg.setGeneralComment(comment);\n//\t\t\tmsg.setDetailedComment(comment);\n//\t\t\tstdMsgList.add(msg);\n//\t\t}\n\n\t\tDouble[] times = null;\n\t\ttry {\n _timesChecked = true;\n\t\t\ttimes = getSampleTimes();\n\t\t\tfor (int rowIdx = 0; _timesOk && rowIdx < numSamples; rowIdx++) {\n\t\t\t\tif ( times[rowIdx] == null ) {\n\t\t\t\t\t_timesOk = false;\n // XXX Messages are now added during the data standarization phase\n\t\t\t\t\t// in the StdUserDataArray constructor.\n//\t\t\t\t\tADCMessage msg = new ADCMessage();\n//\t\t\t\t\tmsg.setSeverity(Severity.CRITICAL);\n//\t\t\t\t\tmsg.setRowIndex(rowIdx);\n//\t\t\t\t\tString comment = \"incomplete sample date/time specification\";\n//\t\t\t\t\tmsg.setGeneralComment(\"Bad date/time value\");\n//\t\t\t\t\tmsg.setDetailedComment(comment);\n//\t\t\t\t\tstdMsgList.add(msg);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch ( Exception ex ) {\n\t\t\t_timesOk = false;\n\t\t\tex.printStackTrace();\n\t\t\tADCMessage msg = new ADCMessage();\n\t\t\tmsg.setSeverity(Severity.CRITICAL);\n\t\t\tString comment = \"incomplete columns specifying sample date/time\";\n\t\t\tmsg.setGeneralComment(comment);\n\t\t\tmsg.setDetailedComment(ex.getMessage());\n\t\t\tstdMsgList.add(msg);\n\t\t}\n\n\t\treturn _locationsOk && _timesOk;\n\t}", "private boolean checkSoThang(String soThang){\n String pattern = \"\\\\d+\"; \n return soThang.matches(pattern);\n }", "public void checkLocationPermission() {\n try {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n if (checkPermission(Manifest.permission.ACCESS_FINE_LOCATION, getActivity(), getActivity())) {\n if (checkPermission(Manifest.permission.ACCESS_COARSE_LOCATION, getActivity(), getActivity())) {\n gpsTracker.getLocation();\n } else {\n requestPermission(android.Manifest.permission.ACCESS_COARSE_LOCATION, PERMISSION_REQUEST_CODE_LOCATION, getActivity().getApplicationContext(),\n getActivity());\n }\n } else {\n requestPermission(android.Manifest.permission.ACCESS_FINE_LOCATION, PERMISSION_REQUEST_CODE_LOCATION, getActivity().getApplicationContext(),\n getActivity());\n }\n } else {\n gpsTracker.getLocation();\n }\n } catch (Exception e) {\n // logException(e, \"GpsMapManualFragment_checkLocationPermission()\");\n }\n\n\n }", "public int pinCheck(long mobileNumber,int pinNumber) throws Exception {\n\t\tConnection conn = Connect.connect();\n\t\tString passwordSql=\"select upi_passwd from login where mobile_no=?\";\n\t\tPreparedStatement stmt=conn.prepareStatement(passwordSql);\n\t\tstmt.setLong(1,mobileNumber);\n\t\tResultSet rs1=stmt.executeQuery();\n\t\tint pin=0,flag=0;\n\t\twhile(rs1.next()) {\n\t\t\tpin=rs1.getInt(\"upi_passwd\");\n\t\t}conn.close();\n\t\tif(pin==pinNumber) {\n\t\t\tflag=1;\n\t\t\t}\n\t\telse {\n\t\t\tflag=0;\n\t\t}\n\t\treturn flag;\n\t}", "public GridPoint myGridPoint(){\n\n Location location = myLocation();\n if (location != null){\n\n double latitude = location.getLatitude();\n double longitude = location.getLongitude();\n MapProjection mapProjection = MapProjection.getDefault();\n GridPoint gp = mapProjection.toGridPoint(latitude,longitude);\n return gp;\n\n } else {\n\n //If GPS is off, notify the user to turn it on\n Toast.makeText(MainActivity.this,\"Turn on GPS.\",Toast.LENGTH_SHORT).show();\n return null;\n\n }\n\n }", "private void getGpsLocation() {\n Log.d(LOG_TAG, \"In getGpsLocation\");\n mLocationMgr = (LocationManager) mContext.getSystemService(mContext.LOCATION_SERVICE);\n try {\n Location mLocation = mLocationMgr.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n if (null != mLocation) {\n mLatitude = mLocation.getLatitude();\n mLongitude = mLocation.getLongitude();\n }\n } catch (SecurityException se) {\n Log.d(LOG_TAG, \"Security Exception\", se);\n }\n }", "public static int m21411n(Context context) {\n if (TextUtils.isEmpty(f16896g)) {\n f16896g = ((TelephonyManager) context.getSystemService(\"phone\")).getSimOperator();\n if (TextUtils.isEmpty(f16896g)) {\n f16896g = \"\";\n }\n }\n if (!\"46000\".equals(f16896g)) {\n if (!\"46002\".equals(f16896g)) {\n if (!\"46004\".equals(f16896g)) {\n if (!\"46007\".equals(f16896g)) {\n if (!\"46008\".equals(f16896g)) {\n if (!\"46001\".equals(f16896g)) {\n if (!\"46006\".equals(f16896g)) {\n if (!\"46009\".equals(f16896g)) {\n if (!\"46003\".equals(f16896g)) {\n if (!\"46005\".equals(f16896g)) {\n if (!\"46011\".equals(f16896g)) {\n return \"46020\".equals(f16896g) ? 4 : 0;\n }\n }\n }\n return 3;\n }\n }\n }\n return 2;\n }\n }\n }\n }\n }\n return 1;\n }", "private boolean checkForNumber(String field) {\n\n\t\tPattern p = Pattern.compile(\"[0-9].\");\n\t\tMatcher m = p.matcher(field);\n\n\t\treturn (m.find()) ? true : false;\n\t}", "private void getDeviceLocation(){\n\n Log.d(TAG, \"getDeviceLocation: getting device current location\");\n mFusedLocationProviderClient = LocationServices.getFusedLocationProviderClient(this);\n try{\n if(mLocationPermissionGaranted){\n\n final Task location = mFusedLocationProviderClient.getLastLocation();\n location.addOnCompleteListener(task -> {\n if(task.isSuccessful()){\n Log.d(TAG, \"onComplete: found location!\");\n Location currentLocation = (Location) task.getResult();\n System.out.println(currentLocation);\n if (currentLocation !=null) {\n if (numDispositivo==1) {\n disp_Lat1 = Double.toString(currentLocation.getLatitude());\n disp_Long1 = Double.toString(currentLocation.getLongitude());\n }\n if (numDispositivo==2) {\n disp_Lat2 = Double.toString(currentLocation.getLatitude());\n disp_Long2 = Double.toString(currentLocation.getLongitude());\n }\n }\n System.out.println(disp_Lat1+\"-\"+disp_Long1);\n System.out.println(disp_Lat2+\"-\"+disp_Long2);\n Guardar();\n\n }else{\n Log.d(TAG, \"onComplete: current location is null\");\n Toast.makeText(FormularioCurso.this, \"unable to get current location\", Toast.LENGTH_SHORT).show();\n }\n });\n }\n }catch (SecurityException e){\n Log.e(TAG, \"getDeviceLocation: SecurityException: \" + e.getMessage() );\n }\n }", "private void AlertNoGps() {\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"El sistema GPS esta desactivado, ¿Desea activarlo?\")\n .setCancelable(false)\n .setPositiveButton(\"Si\", new DialogInterface.OnClickListener() {\n public void onClick(@SuppressWarnings(\"unused\") final DialogInterface dialog, @SuppressWarnings(\"unused\") final int id) {\n startActivity(new Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS));\n }\n })\n .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n public void onClick(final DialogInterface dialog, @SuppressWarnings(\"unused\") final int id) {\n dialog.cancel();\n }\n });\n AlertDialog alert = builder.create();\n alert.show();\n }", "public boolean isGpsOnOrOff( final Context context ) {\n\t\tfinal LocationManager manager = ( LocationManager ) context.getSystemService(Context.LOCATION_SERVICE);\n\t\treturn manager.isProviderEnabled(LocationManager.GPS_PROVIDER);\n\t}", "private static final double getCurrentLatitudeNetworkValid() {\n if (mLocationNetwork == null) {\n return ZERO;\n } else {\n return mLocationNetwork.getLatitude();\n }\n }", "public boolean verifisTel(String text) {\n if (text.matches(\"^[0-9]+$\")&& text.length()==8) {\n return true;\n } else {\n return false;\n }\n }", "public void onLocationChanged(Location location) {\n\n //Display the current location\n double latitude = location.getLatitude();\n double longitude = location.getLongitude();\n MapProjection mapProjection = MapProjection.getDefault();\n GridPoint gp = mapProjection.toGridPoint(latitude,longitude);\n mGPSon.setText(\"Latitude: \"+Math.round(gp.x)+\"\\nLongitude: \"+Math.round(gp.y));\n\n }", "@Override\n public void onLocationChanged(Location location) {\nString x=\"Latitude is--> \"+location.getLatitude();\nString y=\"Longtitude is--> \"+location.getLongitude();\n Toast.makeText(this.context,\"LATITUDE=\"+x+\" LONGTITUDE=\"+y, Toast.LENGTH_LONG).show();\n txtview.setText(x+\"\\n\"+y);\n\n }", "public static String m21413p(Context context) {\n Location r = m21415r(context);\n return r != null ? String.valueOf(r.getLatitude()) : \"\";\n }", "public static Boolean isGpsEnabled(Context context) {\n final LocationManager manager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE);\n return manager.isProviderEnabled(LocationManager.GPS_PROVIDER);\n }", "public boolean isGpsEnabled(Context context) {\n final LocationManager manager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE);\n return manager.isProviderEnabled(LocationManager.GPS_PROVIDER);\n }" ]
[ "0.67899436", "0.644099", "0.6308162", "0.6272038", "0.6266275", "0.62628907", "0.62576723", "0.62521327", "0.62521327", "0.62418306", "0.61657274", "0.61142695", "0.61142695", "0.60918975", "0.6041844", "0.60351634", "0.5971363", "0.5965859", "0.5964219", "0.59526604", "0.59231776", "0.5870941", "0.5848006", "0.5838224", "0.58136547", "0.58122426", "0.5785567", "0.5751114", "0.5742372", "0.5736421", "0.56984866", "0.56571686", "0.56492376", "0.5641188", "0.56083477", "0.5608008", "0.5540444", "0.55325484", "0.55231005", "0.5510938", "0.5507058", "0.55064267", "0.5500953", "0.549954", "0.54961663", "0.5494477", "0.5486787", "0.54759896", "0.54643357", "0.54547316", "0.5449129", "0.54293513", "0.54283136", "0.5410173", "0.54009926", "0.5398708", "0.5397821", "0.5392381", "0.5388742", "0.5377259", "0.5373236", "0.53565913", "0.53565913", "0.53565913", "0.5333777", "0.53334486", "0.5331366", "0.5331222", "0.5329068", "0.53214973", "0.5314445", "0.53078216", "0.53044546", "0.5303027", "0.5302719", "0.5300082", "0.52992713", "0.5299176", "0.529912", "0.5297524", "0.52916116", "0.5287042", "0.5286742", "0.52797496", "0.52704066", "0.5265481", "0.5264745", "0.52520514", "0.5248743", "0.52434945", "0.5242638", "0.5237891", "0.52334213", "0.52222294", "0.5219284", "0.5216145", "0.52160335", "0.52120984", "0.5203781", "0.52032703", "0.5196483" ]
0.0
-1
To get task type table from json file and but it in array
private void getDeviceSpinner() { StringRequest stringRequest = new StringRequest("https://cardtest10.000webhostapp.com/Sync_Spinner_D.php", new Response.Listener<String>() { @Override public void onResponse(String response) { try{ JSONObject jsonResponse = new JSONObject(response); JSONArray jsonArraytask = jsonResponse.getJSONArray("device"); for(int i=0; i < jsonArraytask.length(); i++) { JSONObject jsonObjecttask = jsonArraytask.getJSONObject(i); String task = jsonObjecttask.optString("Device_Type"); arrayDeviceType.add(task); } }catch (JSONException e){ e.printStackTrace(); } // Applying the adapter to our spinner spDeviceModel.setAdapter(new ArrayAdapter <>(UserAreaActivity.this, android.R.layout.simple_spinner_dropdown_item, arrayDeviceType)); } }, new Response.ErrorListener() { @Override public void onErrorResponse(VolleyError error) { Toast.makeText(UserAreaActivity.this, error + "", Toast.LENGTH_SHORT).show(); } }); RequestQueue requestQueue = Volley.newRequestQueue(this); requestQueue.add(stringRequest); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ResponseEntity<List<Type>> findTaskTypes();", "@Override\n public String getAllTaskTaskType(String typeId) {\n try {\n Set<ITaskInstance> allTasks = dataAccessTosca.getTasksByTaskType(typeId);\n JSONArray fullResponse = new JSONArray();\n //if allTasks is null, then no tasks for this user was found\n if (allTasks != null) {\n // create a JSON-Object for every task and add it to fullresponse\n for (ITaskInstance task : allTasks) {\n JSONObject response = new JSONObject();\n //get the belonging work item\n List<IWorkItem> workItem = dataAccessTosca.getWorkItems(task.getId());\n //get the presentationDetails\n JSONObject presentation = new JSONObject();\n presentation.put(\"title\", task.getPresentationName());\n presentation.put(\"subject\", task.getPresentationSubject());\n presentation.put(\"description\", task.getPresentationDescription());\n //get inputParameters\n Set<IInputParameter> inputParameters = dataAccessTosca.getInputParametersByTask(task.getId());\n\n //get outputParameters\n Set<IOutputParameter> outputParameters = dataAccessTosca.getOutputParametersByTask(task.getId());\n //put information in response\n response.put(\"id\", task.getId());\n response.put(\"name\", task.getName());\n JSONArray taskTypes = new JSONArray();\n taskTypes.addAll(dataAccessTosca.getTaskTypeByTask(task.getId()));\n response.put(\"taskTypes\", taskTypes);\n response.put(\"priority\", task.getPriority());\n response.put(\"status\", task.getStatus().name().toLowerCase());\n if (workItem.get(0).getAssignee() != null) {\n response.put(\"claimedBy\", workItem.get(0).getAssignee().getUserId());\n }\n response.put(\"presentationDetails\",presentation);\n if (inputParameters != null) {\n JSONArray inputs = new JSONArray();\n for (IInputParameter input : inputParameters) {\n JSONObject i = new JSONObject();\n i.put(\"label\", input.getLabel());\n i.put(\"value\", input.getValue());\n inputs.add(i);\n }\n response.put(\"inputParameters\", inputs);\n }\n if (outputParameters != null) {\n JSONArray outputs = new JSONArray();\n for (IOutputParameter output : outputParameters) {\n JSONObject i = new JSONObject();\n i.put(\"label\", output.getLabel());\n i.put(\"value\", output.getValue());\n outputs.add(i);\n }\n response.put(\"outputParameters\",outputs);\n }\n fullResponse.add(response);\n }\n return fullResponse.toString();\n }\n } catch (DatabaseException e) {\n e.printStackTrace();\n }\n return null;\n }", "private static ArrayList<JSONObject> getJsonTagSet(Task task) {\n ArrayList<JSONObject> myArray = new ArrayList<>();\n Set<Tag> myTags = task.getTags();\n for (Tag t : myTags) {\n JSONObject myOb = tagToJson(t);\n myArray.add(myOb);\n }\n return myArray;\n }", "public String determineTaskTypeFromFileLine(String line) {\n int indexOfFirstSquareBracket = line.indexOf(\"[\");\n String taskType = String.valueOf(line.charAt(indexOfFirstSquareBracket + 5));\n return taskType;\n }", "List<Task> getTaskdetails();", "@Override\r\n\tpublic List<ExecuteTask> getByType(String taskType) {\n\t\tString sql = \"SELECT et_id id,et_member_id memberId,et_task_id taskId,et_comments comments FROM executetask \"\r\n\t\t\t\t+ \"WHERE et_task_id IN(SELECT task_id FROM task WHERE task_type = ?)\";\r\n\t\treturn getForList(sql,taskType);\r\n\t}", "public List<Task> loadData() throws FileNotFoundException,\n DukeInvalidTimeException, ArrayIndexOutOfBoundsException {\n List<Task> tasks = new ArrayList<>();\n Scanner scanner = new Scanner(path.toFile());\n // Reading tasks from file\n for (int i = 1; scanner.hasNextLine(); i++) {\n Task currTask = null;\n // Assertion: The data has been saved in expected format on disk already\n assert scanner.nextLine().substring(1, 4).equals(\"---\") : \"Data has not been saved in proper format\";\n String[] currStrings = scanner.nextLine().split(\"---\");\n String type = currStrings[0];\n boolean isDone = Integer.parseInt(currStrings[1]) == 1;\n String activity = currStrings[2];\n String description;\n String tag;\n // Loading tasks from file\n switch (type) {\n case \"T\":\n tag = currStrings[3];\n currTask = new Todo(activity, i, isDone, tag);\n break;\n case \"D\":\n case \"E\":\n tag = currStrings[4];\n description = activity + \" \" + currStrings[3];\n currTask = readTask(description, type, i, isDone, tag);\n break;\n default:\n break;\n }\n assert currTask != null;\n boolean isTodo = currTask.getType() == TaskType.TODO;\n boolean isDeadline = currTask.getType() == TaskType.DEADLINE;\n boolean isEvent = currTask.getType() == TaskType.EVENT;\n // Assertion: Tasks belong to the three main defined types\n assert isTodo || isDeadline || isEvent : \"Task(s) don't belong to the main types of tasks\";\n tasks.add(currTask);\n }\n return tasks;\n }", "public void decideTaskType(File myFile) throws FileNotFoundException {\n Scanner myReader = new Scanner(myFile);\n while (myReader.hasNextLine()) {\n String type = myReader.nextLine();\n if (type.contains(\"[T]\")) {\n loadTodo(type);\n } else if (type.contains(\"[D]\")) {\n loadDeadline(type);\n } else if (type.contains(\"[E]\")) {\n loadEvent(type);\n }\n }\n myReader.close();\n }", "public static Collection<Task> collectTasksFromJsonArray(JSONArray tasksArray) {\n Collection<Task> tasks = new ArrayList<Task>();\n for (Object object : tasksArray) {\n if (object instanceof JSONObject) {\n JSONObject taskJsonObject = (JSONObject) object;\n String name = taskJsonObject.getString(\"name\");\n String description = taskJsonObject.getString(\"description\");\n long durationMinutes = taskJsonObject.getLong(\"duration\");\n Duration duration = Duration.ofMinutes(durationMinutes);\n int priorityInt = taskJsonObject.getInt(\"taskPriority\");\n TaskPriority priority = new TaskPriority(priorityInt);\n Task newTask = new Task(name, description, duration, priority);\n tasks.add(newTask);\n }\n }\n return tasks;\n }", "public void loadTasks()\r\n\t{\n\t\ttable = loadTable(\"../data/tasks.csv\", \"header\");\r\n\t\t\r\n\t\t//gets amount of data rows in table\r\n\t\trow_count = table.getRowCount();\r\n\t\t//println(row_count);\r\n\t\t\r\n\t\t//put each row in table into Task class objects and initialise them\r\n\t\tfor(TableRow r : table.rows()){\r\n\t\t\ttasks.add(new Task(r));\r\n\t\t}\r\n\t\t\r\n\t}", "@GET(\"/task/.json\")\n Call<Map<String, Task>> getAllTasks();", "public List<TaskDefinition> getTasksDefinition() throws DaoRepositoryException;", "public ArrayList<Task> load() {\n assert tasks != null : \"tasks cannot be null\";\n try {\n File myFile = new File(\"duke.txt\");\n myFile.createNewFile();\n decideTaskType(myFile);\n } catch (IOException e) {\n System.out.println(\"An error occurred\");\n e.printStackTrace();\n }\n return tasks;\n }", "public Vector<String> getTaskTypes() {\r\n\t\tVector<String> v = new Vector<String>();\r\n\r\n\t\tfor (TaskType tt : taskTypes) {\r\n\t\t\tv.add(tt.name);\r\n\t\t}\r\n\r\n\t\treturn v;\r\n\t}", "private List<Task> getTasksFromFile() throws FileNotFoundException{\n List<Task> loadedTasks = new ArrayList<>();\n Ui a=new Ui();\n try {\n List<String> lines = getLine() ;\n for (String line : lines) {\n if (line.trim().isEmpty()) { //ignore empty lines\n continue;\n }\n loadedTasks.add(createTask(line)); //convert the line to a task and add to the list\n }\n System.out.println(\"File successfully loaded\");\n } catch (DukeException e1) {\n System.out.println(\"☹ OOPS!!! Problem encountered while loading data: \" +e1.getMessage());\n }\n return loadedTasks;\n }", "public ArrayList<Task> loadData() throws FileNotFoundException {\n ArrayList<Task> dukeList = new ArrayList<>();\n Scanner sc = new Scanner(file);\n Task t;\n while (sc.hasNextLine()) {\n String line = sc.nextLine();\n String[] splitBySpace = line.split(\" \");\n String[] splitBySlash;\n String command = splitBySpace[0];\n\n if (command.equals(\"D\")) {\n splitBySlash = line.split(\"/\");\n\n //Splits String the second time to get the description of deadline task\n String[] splitBySpace2 = splitBySlash[0].split(\" \");\n String getDesc = \"\";\n for (int i = 2; i < splitBySpace2.length; i++) {\n getDesc = getDesc + splitBySpace2[i] + \" \";\n }\n\n t = new Deadline(getDesc.trim(), splitBySlash[1]);\n if (splitBySpace[1].equals(\"1\")) {\n t.markAsDone();\n }\n dukeList.add(t);\n } else if (command.equals(\"E\")) {\n splitBySlash = line.split(\"/\");\n\n //Splits String the second time to get the description of event task\n String[] splitBySpace2 = splitBySlash[0].split(\" \");\n String getDesc = \"\";\n for (int i = 2; i < splitBySpace2.length; i++) {\n getDesc = getDesc + splitBySpace2[i] + \" \";\n }\n\n t = new Event(getDesc.trim(), splitBySlash[1]);\n if (splitBySpace[1].equals(\"1\")) {\n t.markAsDone();\n }\n dukeList.add(t);\n } else {\n String getDesc = \"\";\n for (int i = 2; i < splitBySpace.length; i++) {\n getDesc = getDesc + splitBySpace[i] + \" \";\n }\n\n t = new ToDo(getDesc.trim());\n if (splitBySpace[1].equals(\"1\")) {\n t.markAsDone();\n }\n dukeList.add(t);\n }\n }\n\n return dukeList;\n }", "private List<List<String>> getModelModel(String url, String jsonName, String key, String tipe) {\n List<List<String>> result = new ArrayList<>();\n\n try {\n OkHttpUtil okHttpUtil = new OkHttpUtil();\n okHttpUtil.init(true);\n Request request = new Request.Builder().url(url).get().build();\n Response response = okHttpUtil.getClient().newCall(request).execute();\n\n String res = \"{\\\"\" + jsonName + \"\\\":\" + response.body().string() + \"}\";\n\n JSONObject jsonObject = new JSONObject(res);\n JSONArray jSONArray = jsonObject.getJSONArray(jsonName);\n List<String> list = new ArrayList<>();\n JSONObject obj = (JSONObject) jSONArray.get(0);\n String temp = obj.getString(\"type\");\n List<String> types = new ArrayList<>();\n for (int i = 0; i < jSONArray.length(); i++) {\n obj = (JSONObject) jSONArray.get(i);\n if (obj.getString(\"type\").equalsIgnoreCase(temp)) {\n list.add(obj.getString(key));\n } else {\n types.add(temp);\n if (temp.equals(tipe)) {\n type_index = result.size();\n }\n result.add(list);\n list = new ArrayList<>();\n list.add(obj.getString(key));\n temp = obj.getString(\"type\");\n }\n }\n } catch (Exception e) {\n\n }\n\n return result;\n }", "public abstract List<Container> getContainers(TaskType t);", "public List<Task> load() throws DukeException {\n List<Task> tasks = new ArrayList<>();\n\n try {\n BufferedReader reader = new BufferedReader(new FileReader(filePath));\n\n String line;\n while ((line = reader.readLine()) != null) {\n String[] tokens = line.split(\"\\\\|\");\n\n Task task = StorageSerializer.deserialize(tokens);\n tasks.add(task);\n }\n\n reader.close();\n } catch (FileNotFoundException e) {\n throw new IoDukeException(\"Error opening task file for reading\");\n } catch (IOException e) {\n throw new IoDukeException(\"Error closing file reader\");\n } catch (ParseException e) {\n throw new IoDukeException(\"Error parsing date in task file\");\n }\n\n return tasks;\n }", "protected Table readTable(JSONObject json) throws JSONException, TypeException {\n System.err.println(\"readTable json = \" + json);\n\n\t// allocate a table\n\tTable table = new DefaultTable();\n\n\t// get no of rows\n\tint rowCount = json.getInt(\"rowCount\");\n\n\t// get no of columns\n\tint colCount = json.getInt(\"colCount\");\n\n\t// create table definition\n\tTableHeader header = new DefaultTableHeader();\n\n JSONArray headerPairs = json.getJSONArray(\"header\");\n \n\t// now read colCount column definitions\n\tfor (int col=0; col < colCount; col++) {\n JSONObject headerPair = headerPairs.getJSONObject(col);\n\n\t // read name\n\t String name = headerPair.getString(\"name\");\n\n\t // read type\n String typeStr = headerPair.getString(\"type\");\n ProbeAttributeType type = decodeType(typeStr);\n\n\t // add it to the header\n\t header.add(name, type);\n\t \n\t}\n\n\t// set column definitions\n\ttable.defineTable(header);\n\n JSONArray rows = json.getJSONArray(\"rows\");\n \n\t// now read all of the rows\n\tfor (int row=0; row < rowCount; row++) {\n JSONArray jsonRow = rows.getJSONArray(row);\n\n\t TableRow thisRow = new DefaultTableRow();\n\n\t // visit columns\n\t for (int col=0; col < colCount; col++) {\n\t\t// find the type in the header\n\t\tTableAttribute attribute = header.get(col);\n\t\tProbeAttributeType type = attribute.getType();\n\n\t\t// decode a value, \n\t\tObject value = decodeValue(type, jsonRow.get(col));\n\n\t\t// add value to the row\n\t\tthisRow.add(value);\n\t }\n\n\t // add the row to the table\n\t try {\n\t\ttable.addRow(thisRow);\n\t } catch (TableException te) {\n\t\t// if the data is bad it must be a transmission error\n\t\tthrow new JSONException(te.getMessage());\n\t }\n\t}\n\n\treturn table;\n\n }", "TrackerListTasktype loadTrackerListTasktype(final Integer id);", "String getTabela();", "public ArrayList<Task> loadData() throws IOException {\n DateTimeFormatter validFormat = DateTimeFormatter.ofPattern(\"MMM dd yyyy HH:mm\");\n ArrayList<Task> orderList = new ArrayList<>();\n\n try {\n File dataStorage = new File(filePath);\n Scanner s = new Scanner(dataStorage);\n while (s.hasNext()) {\n String curr = s.nextLine();\n String[] currTask = curr.split(\" \\\\| \");\n assert currTask.length >= 3;\n Boolean isDone = currTask[1].equals(\"1\");\n switch (currTask[0]) {\n case \"T\":\n orderList.add(new Todo(currTask[2], isDone));\n break;\n case \"D\":\n orderList.add(new Deadline(currTask[2],\n LocalDateTime.parse(currTask[3], validFormat), isDone));\n break;\n case \"E\":\n orderList.add(new Event(currTask[2],\n LocalDateTime.parse(currTask[3], validFormat), isDone));\n break;\n }\n }\n } catch (FileNotFoundException e) {\n if (new File(\"data\").mkdir()) {\n System.out.println(\"folder data does not exist yet.\");\n } else if (new File(filePath).createNewFile()) {\n System.out.println(\"File duke.txt does not exist yet.\");\n }\n }\n return orderList;\n\n }", "public List<Task> load(){\n try {\n List<Task> tasks = getTasksFromFile();\n return tasks;\n }catch (FileNotFoundException e) {\n System.out.println(\"☹ OOPS!!! There is no file in the path: \"+e.getMessage());\n List<Task> tasks = new ArrayList();\n return tasks;\n }\n }", "private List<Task> readFromFile() {\n if (file.exists()) {\n try {\n return objectmapper.readValue(file,TaskList.class);\n } catch (IOException e) {\n throw new IllegalStateException(e);\n }\n } else {\n return new ArrayList<>();\n }\n }", "private TaskType getType(String type) {\r\n\t\tfor (TaskType tt : taskTypes) {\r\n\t\t\tif (tt.name.equals(type))\r\n\t\t\t\treturn tt;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Test\n public void getTransactionsByType() throws Exception {\n String expectedFile = \"src/test/resources/expected-transactions.json\";\n List<Transaction> expectedTransactions = Arrays.asList(new ObjectMapper()\n .readValue(JsonUtils.readFileAsString(expectedFile), Transaction[].class));\n List<Transaction> actualTransactions = openBankTransactionsService.getTransactionsByType(TEST_TRANSACTION_TYPE);\n assertEquals(expectedTransactions, actualTransactions);\n }", "public Collection<Transformation> read() {\n open(); //Open the json file\n\n HashMap<UUID, Transformation> result = new HashMap<>();\n System.out.println(\"result size: \" + result.size());\n JsonHeaderInput headerInput = (JsonHeaderInput)getSection(JsonHeaderInput.class);\n headerInput.setJsonObject(jsonObject);\n headerInput.setInputProgram(inputProgram);\n headerInput.setLoadMessages(getLoadMessages());\n headerInput.read(result);\n header = headerInput.getHeader();\n System.out.println(\"result size: \" + result.size());\n\n JsonFailuresInput failures = (JsonFailuresInput) getSection(JsonFailuresInput.class);\n failures.setJsonObject(jsonObject);\n failures.setInputProgram(inputProgram);\n failures.setLoadMessages(getLoadMessages());\n failures.read(result);\n System.out.println(\"result size: \" + result.size());\n\n JsonTransformationCollectionInput asts = (JsonTransformationCollectionInput)\n getSection(JsonTransformationCollectionInput.class);\n asts.setJsonObject(jsonObject);\n asts.setInputProgram(inputProgram);\n asts.setLoadMessages(getLoadMessages());\n asts.setFailures(failures.getFailures());\n asts.read(result);\n System.out.println(\"result size: \" + result.size());\n\n for ( JsonSectionInput s : sections.values() ) {\n if ( s.equals(headerInput) || s.equals(failures) || s.equals(asts) ) continue;\n s.setInputProgram(inputProgram);\n s.setJsonObject(jsonObject);\n s.read(result);\n }\n\n return result.values();\n }", "public abstract String[] formatTask();", "public String[] readJson(String url) {\n InputStream is = null;\n String[] strArray ={\"\"} ;\n try {\n is = NetworkUtils.OpenHttpConnection(url, this);\n //leitura\n streamReader = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));\n jsonStrBuilder = new StringBuilder();\n Log.i(\"1° aqui\", \"ok\");\n String inputStr;\n //add ao StringBuilder\n while ((inputStr = streamReader.readLine()) != null) {\n jsonStrBuilder.append(inputStr);\n Log.i(\"@@@JSON :\", jsonStrBuilder.toString());\n }\n //transformado em JSONObject\n// JSONObject jObj = new JSONObject(jsonStrBuilder.toString());\n//\n// JSONArray jArray = jObj.getJSONArray(\"tasks\");\n// strArray = new String[jArray.length()];\n\n// for(int i = 0; i < jArray.length(); i++){\n// JSONObject jObject = jArray.getJSONObject(i);\n// strArray[i] = jObject.getString(\"title\");\n// }\n strArray[0] = jsonStrBuilder.toString();\n\n Log.i(\"@@@strArray :\", strArray.toString());\n }catch(IOException ie){\n Log.i(\"readJson\", ie.getLocalizedMessage());\n }\n\n return strArray;\n }", "public List<ProgressConfigurationType> getConfigType(String type);", "private void loadDia() throws JSONException {\n\n\n String json = \"{\\n\" +\n \" \\\"mes\\\": 10,\\n\" +\n \" \\\"ano\\\": 2017,\\n\" +\n \" \\\"dias\\\":[\\n\" +\n \" {\\n\" +\n \" \\\"dia\\\":1,\\n\" +\n \" \\\"titulos\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"asd\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$4050,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdsaf\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$50,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"2a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$450,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 2,\\n\" +\n \" \\\"sinal\\\": 2,\\n\" +\n \" \\\"grupo\\\": 2,\\n\" +\n \" \\\"nome\\\": \\\"1b\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$40,00\\\"\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"dia\\\":13,\\n\" +\n \" \\\"titulos\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 3,\\n\" +\n \" \\\"sinal\\\": 3,\\n\" +\n \" \\\"grupo\\\": 3,\\n\" +\n \" \\\"nome\\\": \\\"13a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$450,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 4,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"13b\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$40,00\\\"\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"dia\\\":16,\\n\" +\n \" \\\"titulos\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 5,\\n\" +\n \" \\\"sinal\\\": 5,\\n\" +\n \" \\\"grupo\\\": 2,\\n\" +\n \" \\\"nome\\\": \\\"16a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$52,00\\\"\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"dia\\\":18,\\n\" +\n \" \\\"titulos\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 6,\\n\" +\n \" \\\"sinal\\\": 4,\\n\" +\n \" \\\"grupo\\\": 3,\\n\" +\n \" \\\"nome\\\": \\\"18a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$52,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 7,\\n\" +\n \" \\\"sinal\\\": 5,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"18a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$2,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 8,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 2,\\n\" +\n \" \\\"nome\\\": \\\"18a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$2000,00\\\"\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \"}\";\n\n\n //Toast.makeText(getApplicationContext(), \"certo\",Toast.LENGTH_LONG).show();\n }", "public static List<Task> getTaskFromDb() {\n List<Task> taskList = new ArrayList<>();\n try {\n // taskList = Task.listAll(Task.class);\n taskList= Select.from(Task.class).orderBy(\"due_date Desc\").where(\"status=?\", new String[] {\"0\"}).list();\n } catch (Exception e) {\n e.printStackTrace();\n\n }\n return taskList;\n\n }", "private TabulatorItems[] getJsonArrayOfItems(Resource resource) {\n ObjectMapper mapper = new ObjectMapper();\n TabulatorItems[] items = null;\n try {\n items = mapper.readValue(new InputStreamReader(resource.getInputStream(), StandardCharsets.UTF_8), TabulatorItems[].class);\n } catch (IOException ex) {\n Logger.getLogger(CollectionApiUIImpl.class.getName()).log(Level.SEVERE, null, ex);\n }\n return items;\n }", "private List<NameIdType> loadInfo(UUID typeId) {\r\n final EntityManager entMgr = trans.getEntityManager();\r\n\r\n if ( ! maybeState.isPresent()) {\r\n final String sQuery = \"SELECT NEW littleware.asset.db.jpa.NameIdType( x.name, x.objectId, x.typeId ) \" +\r\n \"FROM Asset x WHERE x.fromId=:fromId AND x.typeId=:typeId\";\r\n final Query query = entMgr.createQuery(sQuery).\r\n setParameter(\"fromId\", UUIDFactory.makeCleanString(uFrom)).\r\n setParameter(\"typeId\", UUIDFactory.makeCleanString(typeId));\r\n return query.getResultList();\r\n } else {\r\n final String sQuery = \"SELECT NEW littleware.asset.db.jpa.NameIdType( x.name, x.objectId, x.typeId ) \" +\r\n \"FROM Asset x WHERE x.fromId=:fromId AND x.typeId=:typeId AND x.state=:state\";\r\n final Query query = entMgr.createQuery(sQuery).\r\n setParameter(\"fromId\", UUIDFactory.makeCleanString(uFrom)).\r\n setParameter(\"typeId\", UUIDFactory.makeCleanString(typeId)).\r\n setParameter(\"state\", maybeState.get().intValue());\r\n return query.getResultList();\r\n }\r\n }", "List<Type> getTypeList(String type);", "public static Task[][] read(boolean print) {\n\t\t\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(Config.getFilePath());\n\t\t\tBufferedReader br = new BufferedReader(fr);\n\t\t\tString line;\n\t\t\tArrayList<String> lines = new ArrayList<>();\n\t\t\tArrayList<String> completedLines = new ArrayList<>();\n\t\t\t\n\t\t\t// We need to keep track of whether we are reading the active or completed tasks\n\t\t\tboolean readingCompleted = false;\n\t\t\tboolean readingActive = false;\n\t\t\t\n\t\t\t// Iterate through every line\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t\n\t\t\t\t// Since there will be an indicator before and after the todos, this should toggle properly\n\t\t\t\tif (line.equals(COMPLETED_INDICATOR)) {\n\t\t\t\t\treadingCompleted = !readingCompleted;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (line.equals(ACTIVE_INDICATOR)) {\n\t\t\t\t\treadingActive = !readingActive;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (line.length() > 0) {\n\t\t\t\t\t// This will ignore comments (#) and config properties (:)\n\t\t\t\t\tif (!line.trim().substring(0, 1).equals(\"#\") && !line.trim().substring(0, 1).equals(\":\")) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Make sure we properly sort whether a task is completed or not\n\t\t\t\t\t\tif (readingCompleted)\n\t\t\t\t\t\t\tcompletedLines.add(line);\n\t\t\t\t\t\tif (readingActive)\n\t\t\t\t\t\t\tlines.add(line);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tTask[] arr = new Task[lines.size()];\n\t\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\t\tarr[i] = new Task(lines.get(i));\n\t\t\t}\n\n\t\t\t// Now sort the list by recency, so that way this order will be carried\n\t\t\t// into the various printing tasks (for more info, see the implementation of\n\t\t\t// compareTo in the Task class\n\t\t\tArrays.sort(arr);\n\t\t\t\t\t\t\n\t\t\tTask[] completedArr = new Task[completedLines.size()];\n\t\t\tfor (int i = 0; i < completedArr.length; i++) {\n\t\t\t\tcompletedArr[i] = new Task(completedLines.get(i));\n\t\t\t}\n\t\t\t\n\t\t\t// Also sort this one\n\t\t\tArrays.sort(completedArr);\n\t\t\t\n\t\t\tbr.close();\n\t\t\t\n\t\t\treturn new Task[][] {arr, completedArr};\n\t\t\t\n\t\t} catch (IOException ex) {\n\t\t\tif (print) {\n\t\t\t\tif (Config.isColorEnabled())\n\t\t\t\t\tSystem.out.println(Color.errorColor() + \"Error reading file! \\nFile \\\"\" + Color.reset() + Color.ANSI_WHITE + Config.getFilePath() + Color.reset() + Color.errorColor() + \"\\\" not found!\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"Error reading file! \\nFile \\\"\" + Config.getFilePath() + \"\\\" not found!\");\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public ArrayList<Task> load() throws FileNotFoundException {\n Scanner sc = new Scanner(file);\n String currLine;\n ArrayList<Task> tasks = new ArrayList<>();\n while (sc.hasNextLine()) {\n currLine = sc.nextLine();\n String taskDescription = currLine.substring(5);\n boolean isDone = currLine.charAt(2) == '1';\n String[] arr = taskDescription.split(Pattern.quote(\"|\"));\n String description = arr[0];\n if (currLine.charAt(0) == 'T') {\n Todo todo = new Todo(description);\n todo.setState(isDone);\n tasks.add(todo);\n } else if (currLine.charAt(0) == 'E') {\n Event event = new Event(description, (arr.length == 1 ? \" \" : arr[1]));\n event.setState(isDone);\n tasks.add(event);\n } else {\n Deadline deadline = new Deadline(description, (arr.length == 1 ? \" \" : arr[1]));\n deadline.setState(isDone);\n tasks.add(deadline);\n }\n }\n return tasks;\n }", "List<ExtDagTask> taskList(ExtDagTask extDagTask);", "List<PushTemplate> selectPushTemplate(String taskDefKey);", "ResponseEntity<List<Status>> findTaskStatuses();", "TrackerListTasktype getTrackerListTasktype(final Integer id);", "public String[] getTypes() {\n/* 388 */ return getStringArray(\"type\");\n/* */ }", "public List<TaskItem> zGetTasks(TaskStatus status) throws HarnessException {\n\n\t\tList<TaskItem> items = null;\n\n\t\t// The task page has the following under the zl__TKL__rows div:\n\t\t// <div id='_newTaskBannerId' .../> -- enter a new task\n\t\t// <div id='_upComingTaskListHdr' .../> -- Past due\n\t\t// <div id='zli__TKL__267' .../> -- Task item\n\t\t// <div id='zli__TKL__299' .../> -- Task item\n\t\t// <div id='_upComingTaskListHdr' .../> -- Upcoming\n\t\t// <div id='zli__TKL__271' .../> -- Task item\n\t\t// <div id='zli__TKL__278' .../> -- Task item\n\t\t// <div id='zli__TKL__275' .../> -- Task item\n\t\t// <div id='_upComingTaskListHdr' .../> -- No due date\n\t\t// <div id='zli__TKL__284' .../> -- Task item\n\t\t// <div id='zli__TKL__290' .../> -- Task item\n\n\t\t// How many items are in the table?\n\t\tString rowLocator = \"//div[@id='\" + Locators.zl__TKL__rows + \"']\";\n\t\tint count = this.sGetXpathCount(rowLocator);\n\t\tlogger.debug(myPageName() + \" zGetTasks: number of rows: \" + count);\n\n\t\t// Get each conversation's data from the table list\n\t\tfor (int i = 1; i <= count; i++) {\n\t\t\tString tasklocator = rowLocator + \"/div[\" + i + \"]\";\n\n\t\t\tString id = this.sGetAttribute(\"xpath=(\" + tasklocator + \")@id\");\n\t\t\tif (Locators._newTaskBannerId.equals(id)) {\n\t\t\t\t// Skip the \"Add New Task\" row\n\t\t\t\tcontinue;\n\t\t\t} else if (Locators._upComingTaskListHdr.equals(id)) {\n\t\t\t\t// Found a status separator\n\n\t\t\t\tString text = this.sGetText(tasklocator);\n\t\t\t\tif ((\"Past Due\".equals(text)) && (status == TaskStatus.PastDue)) {\n\n\t\t\t\t\titems = new ArrayList<TaskItem>();\n\t\t\t\t\tcontinue;\n\n\t\t\t\t} else if ((\"Upcoming\".equals(text))\n\t\t\t\t\t\t&& (status == TaskStatus.Upcoming)) {\n\n\t\t\t\t\titems = new ArrayList<TaskItem>();\n\t\t\t\t\tcontinue;\n\n\t\t\t\t} else if ((\"No Due Date\".equals(text))\n\t\t\t\t\t\t&& (status == TaskStatus.NoDueDate)) {\n\n\t\t\t\t\titems = new ArrayList<TaskItem>();\n\t\t\t\t\tcontinue;\n\n\t\t\t\t}\n\n\t\t\t\t// If a list already exists, then we've just completed it\n\t\t\t\tif (items != null)\n\t\t\t\t\treturn (items);\n\n\t\t\t} else if (id.contains(Locators.zli__TKL__)) {\n\t\t\t\t// Found a task\n\n\t\t\t\t// If the list is initialized, then we are in the correct list\n\t\t\t\t// section\n\t\t\t\tif (items == null)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tTaskItem item = new TaskItem();\n\n\t\t\t\t// TODO: extract the info from the GUI\n\n\t\t\t\titems.add(item);\n\t\t\t\tlogger.info(item.prettyPrint());\n\n\t\t\t} else {\n\t\t\t\tlogger.warn(\"Unknown task row ID: \" + id);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\n\t\t// If items is still null, then we didn't find any matching tasks\n\t\t// Just return an empty list\n\t\tif (items == null)\n\t\t\titems = new ArrayList<TaskItem>();\n\n\t\t// Return the list of items\n\t\treturn (items);\n\n\t}", "@Override\n\tpublic ArrayList<DetailedTask> selectAllTasks() throws SQLException, ClassNotFoundException\n\t{\n\t\tArrayList<DetailedTask> returnValue = new ArrayList<DetailedTask>();\n\t\t \n\t\t Gson gson = new Gson();\n\t\t Connection c = null;\n\t Statement stmt = null;\n\t \n\t \n\t Class.forName(\"org.postgresql.Driver\");\n\t c = DriverManager.getConnection(dataBaseLocation, dataBaseUser, dataBasePassword);\n\t c.setAutoCommit(false);\n\t \n\t logger.info(\"Opened database successfully (selectAllTasks)\");\n\n\t stmt = c.createStatement();\n\t ResultSet rs = stmt.executeQuery( \"SELECT * FROM task;\" );\n\n\t while(rs.next())\n\t {\n\t \t Type collectionType = new TypeToken<List<Item>>() {}.getType();\n\t \t List<Item> items = gson.fromJson(rs.getString(\"items\"), collectionType);\n\t \n\t \t returnValue.add(new DetailedTask(rs.getInt(\"id\"), rs.getString(\"description\"), \n\t \t\t rs.getDouble(\"latitude\"), rs.getDouble(\"longitude\"), rs.getString(\"status\"), \n\t \t\t items, rs.getInt(\"plz\"), rs.getString(\"ort\"), rs.getString(\"strasse\"), rs.getString(\"typ\"), \n\t \t\t rs.getString(\"information\"), gson.fromJson(rs.getString(\"hilfsmittel\"), String[].class), rs.getString(\"auftragsfrist\"), \n\t \t\t rs.getString(\"eingangsdatum\")));\n\t }\n\n\t rs.close();\n\t stmt.close();\n\t c.close();\n\t \n\t \n\t return returnValue;\n\t}", "private void addTask(String line, ArrayList<Task> tasks) {\n String[] info = line.split(\" \\\\| \");\n String type = info[0];\n int complete = Integer.parseInt(info[1]);\n String title = info[2];\n switch(type) {\n case \"T\":\n Todo newTodo = new Todo(title, complete);\n tasks.add(newTodo);\n break;\n case \"D\":\n String deadline = info[3];\n LocalDate deadlineInLocalDate = LocalDate.parse(deadline);\n Deadline newDeadline = new Deadline(title, complete, deadlineInLocalDate);\n tasks.add(newDeadline);\n break;\n case \"E\":\n String time = info[3];\n LocalDate timeInLocalDate = LocalDate.parse(time);\n Event newEvent = new Event(title, complete, timeInLocalDate);\n tasks.add(newEvent);\n break;\n case \"P\":\n String start = info[3];\n String end = info[4];\n LocalDate startInLocalDate = LocalDate.parse(start);\n LocalDate endLocalDate = LocalDate.parse(end);\n PeriodTask periodTask = new PeriodTask(title, complete, startInLocalDate, endLocalDate);\n tasks.add(periodTask);\n break;\n default:\n throw new AssertionError(type);\n }\n }", "@Override\n public String getAllTaskUser(String userId) {\n try {\n Set<ITaskInstance> allTasks = dataAccessTosca.getTasksByUser(userId);\n JSONArray fullResponse = new JSONArray();\n //if allTasks is null, then no tasks for this user was found\n if (allTasks != null) {\n // create a JSON-Object for every task and add it to fullresponse\n for (ITaskInstance task : allTasks) {\n JSONObject response = new JSONObject();\n //get the belonging work item\n List<IWorkItem> workItem = dataAccessTosca.getWorkItems(task.getId());\n //get the presentationDetails\n JSONObject presentation = new JSONObject();\n presentation.put(\"title\", task.getPresentationName());\n presentation.put(\"subject\", task.getPresentationSubject());\n presentation.put(\"description\", task.getPresentationDescription());\n //get inputParameters\n Set<IInputParameter> inputParameters = dataAccessTosca.getInputParametersByTask(task.getId());\n\n //get outputParameters\n Set<IOutputParameter> outputParameters = dataAccessTosca.getOutputParametersByTask(task.getId());\n //put information in response\n response.put(\"id\", task.getId());\n response.put(\"name\", task.getName());\n JSONArray taskTypes = new JSONArray();\n taskTypes.addAll(dataAccessTosca.getTaskTypeByTask(task.getId()));\n response.put(\"taskTypes\", taskTypes);\n //response.put(\"taskType\", \"Noch einfügen\");\n response.put(\"priority\", task.getPriority());\n response.put(\"status\", task.getStatus().name().toLowerCase());\n if (workItem.get(0).getAssignee() != null) {\n response.put(\"claimedBy\", workItem.get(0).getAssignee().getUserId());\n }\n response.put(\"presentationDetails\",presentation);\n if (inputParameters != null) {\n JSONArray inputs = new JSONArray();\n for (IInputParameter input : inputParameters) {\n JSONObject i = new JSONObject();\n i.put(\"label\", input.getLabel());\n i.put(\"value\", input.getValue());\n inputs.add(i);\n }\n response.put(\"inputParameters\", inputs);\n }\n if (outputParameters != null) {\n JSONArray outputs = new JSONArray();\n for (IOutputParameter output : outputParameters) {\n JSONObject i = new JSONObject();\n i.put(\"label\", output.getLabel());\n i.put(\"value\", output.getValue());\n outputs.add(i);\n }\n response.put(\"outputParameters\",outputs);\n }\n fullResponse.add(response);\n }\n return fullResponse.toString();\n }\n } catch (DatabaseException e) {\n e.printStackTrace();\n }\n return null;\n }", "java.util.List<com.google.cloud.aiplatform.v1.PipelineTaskDetail> \n getTaskDetailsList();", "public static <T> List<T> getTestList(String rs, Class<T> clazz) throws Exception {\n return JSON.parseArray(readSourceFile(rs), clazz);\n }", "public List<EstadoCita> obtenerDatosJSON(String rta){\n Log.e(\"Agenda JSON\",rta);\n // La lista de generos a retornar\n List<EstadoCita> lista = new ArrayList<EstadoCita>();\n try{\n /**\n * accedemos al json como array, ya que estamos 100% seguros de que lo que devuelve es un array\n * y no un objeto.\n */\n JSONArray json = new JSONArray(rta);\n for (int i=0; i<json.length(); i++){\n JSONObject row = json.getJSONObject(i);\n EstadoCita g = new EstadoCita();\n g.setId(row.getInt(\"id\"));\n g.setEstado(row.getString(\"estado\"));\n // g.setMedico((Medico) row.get(\"medico\"));\n // g.setHora((Hora) row.get(\"hora\"));\n lista.add(g);\n\n\n }\n } catch (JSONException e){\n e.printStackTrace();\n }\n return lista;\n }", "@DataProvider(name = \"tasksForUserStory\")\n\tpublic Object[][] createData1() {\n\t\treturn new Object[][] {\n\t\t\t\t{\"Task 1\"}, \n\t\t\t\t{\"Task 2\"},\n\t\t\t\t{\"Task 3\"},\n\t\t\t\t{\"Task 4\"} \n\t\t};\n\t}", "public void arrayToJson() {\n\n var result = ctx.select(DEPARTMENT.DEPARTMENT_ID, DEPARTMENT.NAME,\n field(\"COLUMN_VALUE\").as(\"EVALUATION\"))\n .from(DEPARTMENT, lateral(select(field(\"COLUMN_VALUE\"))\n .from(table(DEPARTMENT.TOPIC))))\n .forJSON().path()\n .fetch();\n\n System.out.println(\"Example (array)\" + result.formatJSON());\n }", "private static Task[] createTaskList() {\n\t\t\n\t Task evalTask = new EvaluationTask();\n\t Task tamperTask = new TamperTask();\n\t Task newDocTask = new NewDocumentTask();\n\t Task reportTask = new AssignmentReportTask();\n\n\t Task[] taskList = {evalTask, tamperTask, newDocTask, reportTask};\n\n\t return taskList;\n\t}", "public abstract DataSet getTablesByType(InputStream inputSteam,\r\n String name, String pattern, String type)\r\n throws Exception;", "@Access(AccessType.PUBLIC)\r\n \tpublic Set<String> getTasks();", "private void loadTodo(String type) {\n String description = parser.parseTodoDescription(type);\n Task toAdd = new Todo(description);\n if (type.contains(\"\\u2713\")) {\n toAdd.markAsDone();\n }\n tasks.add(toAdd);\n }", "List<Tour> getTourSchedule(String line);", "public static List<DataItem> importFromJSON(Context context){\n FileReader reader = null;\n File file = new File(Environment.getExternalStorageDirectory(), FILE_NAME);\n\n try {\n //Instantiate FileReader with file\n reader = new FileReader(file);\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 } catch (FileNotFoundException e) {\n e.printStackTrace();\n }finally {\n if (reader != null) {\n try {\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n return null;\n }", "List<Task> getAllTasks();", "public Iterable<Map<String,String>> get() {\n\t\tList<Map<String,String>> mapList = new ArrayList<Map<String,String>>();\n\t\tJsonParser parser = new JsonParser(); \n\t\tJsonObject json ;\n\t\tfor(String jsonString:jsonArr) {\n\t\t\tMap<String,String> sourceMap = new HashMap<String,String>();\n\t\t\tjson = (JsonObject) parser.parse(jsonString);\n\t\t\tsourceMap.put(\"SENSORID\", json.get(\"taxi_identifier\").toString());\n\t\t\tsourceMap.put(\"trip_time_in_secs\", json.get(\"trip_time_in_secs\").toString());\n\t\t\tsourceMap.put(\"trip_distance\", json.get(\"trip_distance\").toString());\n\t\t\tsourceMap.put(\"fare_amount\", json.get(\"fare_amount\").toString());\n\t\t\tsourceMap.put(\"tip_amount\", json.get(\"tip_amount\").toString());\n\t\t\tsourceMap.put(\"surcharge\", json.get(\"surcharge\").toString());\n\t\t\tmapList.add(sourceMap);\n\t\t}\n\t\t\n\t\t\n\t\treturn mapList;\n\t}", "private String[] getJSONStringList() throws SQLException {\n String sql = \"select concat(c.chart_type, ', ', c.intermediate_data) content \" +\n \"from pride_2.pride_chart_data c, pride_2.pride_experiment e \" +\n \"where c.experiment_id = e.experiment_id \" +\n \"and e.accession = ? \" +\n \"order by 1\";\n\n Connection conn = PooledConnectionFactory.getConnection();\n PreparedStatement stat = conn.prepareStatement(sql);\n stat.setString(1, accession);\n ResultSet rs = stat.executeQuery();\n\n List<String> jsonList = new ArrayList<String>();\n while (rs.next()) {\n jsonList.add(rs.getString(1));\n }\n\n rs.close();\n conn.close();\n\n return jsonList.toArray(new String[jsonList.size()]);\n }", "public JsonNode getTypesJson(String notation) throws IOException {\n ObjectNode resultTypes = mapper.createObjectNode();\n\n ClassLoader classLoader = getClass().getClassLoader();\n\n JsonNode typesList = mapper.readTree(\n new File(classLoader.getResource(notation + \"/typesList.json\").getFile()));\n JsonNode allTypes = mapper.readTree(\n new File(classLoader.getResource(notation + \"/elementsTypes_en.json\").getFile()));\n\n resultTypes.set(\"elements\", getElementsTypes(typesList, allTypes));\n resultTypes.set(\"blocks\", getBlocksTypes(typesList, allTypes));\n\n return resultTypes;\n }", "public static List<DiagramTask> getAllrecords()\r\n {\r\n List<DiagramTask> tasks = new ArrayList();\r\n \r\n try\r\n {\r\n tasks = TASK_DAO.retrieveTask();\r\n \r\n }\r\n catch (HibernateException e)\r\n {\r\n addMessage(\"Error!\", \"Please try again.\");\r\n Logger.getLogger(DiagramTaskBean.class.getName()).log(Level.SEVERE, null, e);\r\n }\r\n return tasks;\r\n }", "private List<SubTask> getSubTasks(TaskDTO taskDTO) {\n List<SubTask> subTasks = new ArrayList<>();\n if (taskDTO.getSubTasksDto() == null) return subTasks;\n for (SubTaskDTO s: taskDTO.getSubTasksDto()) {\n SubTask subTask = new SubTask();\n subTask.setId(s.getId());\n subTask.setSubTitle(s.getSubTitle());\n subTask.setSubDescription(s.getSubDescription());\n subTasks.add(subTask);\n }\n return subTasks;\n }", "private List<Table> getTables() {\n List<Table> tables = new ArrayList<>();\n\n DatastoreService datastore = DatastoreServiceFactory.getDatastoreService();\n Query query = new Query(\"Table\");\n PreparedQuery results = datastore.prepare(query);\n\n for (Entity entity : results.asIterable()) {\n String firstName = (String) entity.getProperty(\"firstName\");\n String lastName = (String) entity.getProperty(\"lastName\");\n String email = (String) entity.getProperty(\"email\");\n String phoneNumber = (String) entity.getProperty(\"phoneNumber\");\n String restName = (String) entity.getProperty(\"restName\");\n String restAdd = (String) entity.getProperty(\"restAdd\");\n String restDescrip = (String) entity.getProperty(\"restDescrip\");\n String dateTime = (String) entity.getProperty(\"dateTime\");\n String maxSize = (String) entity.getProperty(\"maxSize\");\n String otherNotes = (String) entity.getProperty(\"otherNotes\");\n List members = (List) entity.getProperty(\"members\");\n double lat = (double) entity.getProperty(\"lat\");\n double lng = (double) entity.getProperty(\"lng\");\n\n\n \n\n Table table = new Table(firstName, lastName, email, phoneNumber, restName, restAdd, restDescrip, dateTime, maxSize, otherNotes, members, lat, lng);\n tables.add(table);\n }\n return tables;\n }", "public String getType() {\n return \"Task\";\n }", "private final void runType() throws IOException {\n\t\tfloat[][] tc = null;\r\n\t\tfinal BufferedReader in = open(\"type\");\r\n\t\tString line;\r\n\t\tint i = 0;\r\n\t\tfinal List<Type> types = new ArrayList<Type>();\r\n\t\t//for (int i = 0; i < typesSize; i++)\r\n\t\twhile ((line = in.readLine()) != null) {\r\n\t\t\tfinal List<String> tokens = getTokens(line, \"TYP\");\r\n\t\t\tif (tokens == null) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tfinal String code = getString(tokens, 1);\r\n\t\t\tfinal String name = getString(tokens, 3);\r\n\t\t\tfinal Type type = new Type(code, name);\r\n\t\t\ttypes.add(type);\r\n\t\t\tfinal List<String> multipliers = split(getString(tokens, 2), '~');\r\n\t\t\tfinal int typesSize = multipliers.size();\r\n\t\t\tif (tc == null) {\r\n\t\t\t\ttc = new float[typesSize][];\r\n\t\t\t}\r\n\t\t\tfinal float[] typeRow = new float[typesSize];\r\n\t\t\ttc[i] = typeRow;\r\n\t\t\tfor (int j = 0; j < typesSize; j++) {\r\n\t\t\t\ttypeRow[j] = Float.parseFloat(multipliers.get(j));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t\t/*new float[typesSize][];\r\n\t\t\tfinal float[] typeRow = new float[typesSize];\r\n\t\t\ti++;\r\n\t\t\ttc[i] = typeRow;\r\n\t\t\t//final String line = in.readLine();\r\n\t\t\tfinal String cells = line.substring(8, line.lastIndexOf('|'));\r\n\t\t\tfinal StringTokenizer tokenizer = new StringTokenizer(cells, \"~\");\r\n\t\t\tfor (int j = 0; j < typesSize; j++) {\r\n\t\t\t\ttypeRow[j] = Float.parseFloat(tokenizer.nextToken());\r\n\t\t\t}*/\r\n\t\t}\r\n\t\tin.close();\r\n\t\tType.setTypes(types);\r\n\t\tSpecies.setTypeChart(tc);\r\n\t}", "public List<Task> getAllTasks() {\n List<Task> taskList = new ArrayList<Task>();\n String queryCommand = \"SELECT * FROM \" + TABLE_NAME;\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(queryCommand, null);\n if (cursor.moveToFirst()) {\n do {\n Task task = new Task();\n task.setId(cursor.getString(0));\n task.setLabel(cursor.getString(1));\n task.setTime(cursor.getString(2));\n taskList.add(task);\n } while (cursor.moveToNext());\n }\n return taskList;\n }", "org.oasis_open.docs.ns.bpel4people.ws_humantask.types._200803.TTaskAbstract[] getTaskAbstractArray();", "@Security.Authenticated(Secured.class)\n @CheckPermission(category = Category.TASK, needs = {Operation.GET})\n public Result getTables(long institutionId, long stepId) {\n Step step = stepRepository.get(stepId);\n Component component = step.getComponent();\n List<ComponentProperty> componentProperties = component.getComponentProperties()\n .stream()\n .filter(cp -> cp.getType().equals(\"table\"))\n .collect(Collectors.toList());\n\n ObjectMapper mapper = new ObjectMapper();\n SimpleModule module = new SimpleModule();\n module.addSerializer(ComponentProperty.class, new TableSerializer());\n mapper.registerModule(module);\n Json.setObjectMapper(mapper);\n\n return ok(Json.toJson(componentProperties));\n }", "private List<Table> getTableFromStringTableName(String tableName) throws HyracksDataException {\n\n // Get all the tables\n if (generateAllTables) {\n // Remove the DBGEN_VERSION table and all children tables, parent tables will generate them\n return Table.getBaseTables().stream()\n .filter(table -> !table.equals(Table.DBGEN_VERSION) && !table.isChild())\n .collect(Collectors.toList());\n }\n\n // Search for the table\n List<Table> matchedTables = Table.getBaseTables().stream()\n .filter(table -> tableName.equalsIgnoreCase(table.getName())).collect(Collectors.toList());\n\n // Ensure the table was found\n if (matchedTables.isEmpty()) {\n throw new RuntimeDataException(ErrorCode.TPCDS_INVALID_TABLE_NAME, getFunctionIdentifier().getName(),\n tableName);\n }\n\n return matchedTables;\n }", "public List<SysDictData> selectDictDataByType(String dictType);", "<T> T readJson(FsPath path, Class<T> clazz);", "public List<Task> listTasks(String extra);", "public static void loadTables(Context context){\n\n Ion.with(context, \"https://www.kimonolabs.com/api/67x3h6bc?apikey=f3c016707fe6e0c44c29c59a3f6cf9be\")\n .asJsonObject()\n .setCallback(new FutureCallback<JsonObject>() {\n @Override\n public void onCompleted(Exception e, JsonObject result) {\n\n ArrayList<Timetable> timetableList = new ArrayList<Timetable>();\n\n JsonArray collection = result.get(\"results\").getAsJsonObject().get(\"collection1\").getAsJsonArray();\n\n for(int i=0;i<collection.size();i++){\n\n JsonObject object = collection.get(i).getAsJsonObject().get(\"timetable\").getAsJsonObject();\n\n String name = object.get(\"text\").getAsString();\n String link = object.get(\"href\").getAsString();\n\n\n timetableList.add(new Timetable(name, link));\n }\n\n BusProvider.getInstance().post(new TimetablesLoadedEvent(timetableList));\n\n }\n });\n }", "private JSObject getTableColumnNamesTypes(SQLiteDatabase db, String tableName) throws JSONException {\n JSObject ret = new JSObject();\n ArrayList<String> names = new ArrayList<String>();\n ArrayList<String> types = new ArrayList<String>();\n String query = new StringBuilder(\"PRAGMA table_info(\").append(tableName).append(\");\").toString();\n JSArray resQuery = this.selectSQL(db, query, new ArrayList<String>());\n List<JSObject> lQuery = resQuery.toList();\n if (resQuery.length() > 0) {\n for (JSObject obj : lQuery) {\n names.add(obj.getString(\"name\"));\n types.add(obj.getString(\"type\"));\n }\n ret.put(\"names\", names);\n ret.put(\"types\", types);\n }\n return ret;\n }", "String [][] importData (String path);", "Object getTables();", "public abstract String [] listTables();", "private static Task createTask(String line) throws DukeException {\n String type=line.split(\"]\")[0];\n String isDone=line.split(\"]\")[1];\n String detail=line.split(\"]\")[2];\n if(type.contains(\"T\")){\n if(isDone.contains(\"✘\")){\n return new ToDo(detail.substring(1),false);\n }else if(isDone.contains(\"✓\")){\n return new ToDo(detail.substring(1),true);\n }\n\n }\n if(type.contains(\"D\")) {\n if (isDone.contains(\"✘\")) {\n int dividerPosition = detail.indexOf(\"do by:\");\n String itemName = detail.substring(0, dividerPosition);\n String itemName1 = detail.substring(dividerPosition,detail.length());\n String itemName2 = itemName1.replace(\"do by:\", \"\");\n return new Deadline(itemName, DeadlineCommand.convertDeadline(itemName2));\n } else if (isDone.contains(\"✓\")) {\n int dividerPosition = detail.indexOf(\"do by:\");\n String itemName = detail.substring(0, dividerPosition);\n String itemName1 = detail.substring(dividerPosition,detail.length());\n String itemName2 = itemName1.replace(\"do by:\", \"\");\n return new Deadline(itemName, DeadlineCommand.convertDeadline(itemName2));\n }\n }\n if(type.contains(\"E\")){\n if (isDone.contains(\"✘\")) {\n int dividerPosition = detail.indexOf(\"at:\");\n String itemName = detail.substring(0, dividerPosition);\n String itemName1 = detail.substring(dividerPosition,detail.length());\n String itemName2 = itemName1.replace(\"at:\", \"\");\n return new Event(itemName, EventCommand.convertEvent(itemName2));\n } else if (isDone.contains(\"✓\")) {\n int dividerPosition = detail.indexOf(\"at:\");\n String itemName = detail.substring(0, dividerPosition);\n String itemName1 = detail.substring(dividerPosition,detail.length());\n String itemName2 = itemName1.replace(\"at:\", \"\");\n return new Event(itemName, EventCommand.convertEvent(itemName2));\n }\n }\n\n else{\n throw new DukeException(\"☹ OOPS!!! Missing type element for CREATE TASK\");\n }\n return new ToDo();\n }", "private void convertJSONtoArrayList(JSONArray players) {\n try {\n for (int i = 0; i < players.length(); i++) {\n JSONObject employee = players.getJSONObject(i);\n taskList.add(new MainTask(\n employee.getInt(\"id\"),\n employee.optString(\"description\", \"no name\"),\n employee.getInt(\"roomNumber\"),\n employee.optString(\"buildingName\", \"no email\"),\n employee.optString(\"comment\"),\n employee.getBoolean(\"isComplete\")\n ));\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "public abstract List<TipoActividad> getTiposActividad() throws PersistenceException, ClassNotFoundException;", "@Override\n public String getTask(String id) {\n JSONObject response = new JSONObject();\n try {\n ITaskInstance task = dataAccessTosca.getTaskInstance(id);\n if (task != null) {\n //get the belonging work item\n List<IWorkItem> workItem = dataAccessTosca.getWorkItems(id);\n //get the presentationDetails\n JSONObject presentation = new JSONObject();\n presentation.put(\"title\", task.getPresentationName());\n presentation.put(\"subject\", task.getPresentationSubject());\n presentation.put(\"description\", task.getPresentationDescription());\n //get inputParameters\n Set<IInputParameter> inputParameters = dataAccessTosca.getInputParametersByTask(task.getId());\n\n //get outputParameters\n Set<IOutputParameter> outputParameters = dataAccessTosca.getOutputParametersByTask(task.getId());\n //put information in response\n response.put(\"id\", task.getId());\n response.put(\"name\", task.getName());\n JSONArray taskTypes = new JSONArray();\n taskTypes.addAll(dataAccessTosca.getTaskTypeByTask(task.getId()));\n response.put(\"taskTypes\", taskTypes);\n response.put(\"priority\", task.getPriority());\n response.put(\"status\", task.getStatus().name().toLowerCase());\n if (workItem.get(0).getAssignee() != null) {\n response.put(\"claimedBy\", workItem.get(0).getAssignee().getUserId());\n }\n response.put(\"presentationDetails\",presentation);\n if (inputParameters != null) {\n JSONArray inputs = new JSONArray();\n for (IInputParameter input : inputParameters) {\n JSONObject i = new JSONObject();\n i.put(\"label\", input.getLabel());\n i.put(\"value\", input.getValue());\n inputs.add(i);\n }\n response.put(\"inputParameters\", inputs);\n }\n if (outputParameters != null) {\n JSONArray outputs = new JSONArray();\n for (IOutputParameter output : outputParameters) {\n JSONObject i = new JSONObject();\n i.put(\"label\", output.getLabel());\n i.put(\"value\", output.getValue());\n outputs.add(i);\n }\n response.put(\"outputParameters\",outputs);\n }\n\n return response.toString();\n }\n } catch (DatabaseException e) {\n e.printStackTrace();\n }\n return null;\n }", "List<ReadOnlyTask> getTaskList();", "List<ReadOnlyTask> getTaskList();", "public static String[] parseJSON(String line) {\n\t\tString temp = line.replaceFirst(\"\\\\{\\\"time\\\":[0-9]+,\\\"states\\\":\\\\[\\\\[\", \"\");\n\t\tString[] states = temp.split(\"\\\\],\\\\[\");\n\t\tstates[states.length-1].replaceAll(\"\\\\]\\\\]\\\\}\", \"\");\n\t\treturn states;\n\t}", "public JSONArray ObtenerTipoProducto()\r\n {\r\n JSONArray Tproductos = new JSONArray();\r\n JSONObject Tproducto = new JSONObject();\r\n \r\n try\r\n {\r\n this.cn = getConnection();\r\n this.st = this.cn.createStatement();\r\n String sql;\r\n sql = \"SELECT * FROM tipo_producto\";\r\n this.rs = this.st.executeQuery(sql);\r\n \r\n while(this.rs.next())\r\n {\r\n TipoProducto tp = new TipoProducto(rs.getString(\"cod_tipo_producto\"), rs.getString(\"nombre_tipo_producto\"));\r\n Tproducto = tp.getJSONObject();\r\n System.out.printf(Tproducto.toString());\r\n Tproductos.add(Tproducto);\r\n }\r\n \r\n this.desconectar();\r\n }\r\n \r\n catch(Exception e)\r\n {\r\n e.printStackTrace();\r\n }\r\n \r\n return(Tproductos);\r\n }", "List<ConversionTypesEntity> loadFiles(FileTreeRequest fileTreeRequest);", "private String[][] initTable(int taskNumber, int taskProperties) {\n String[][] table = new String[taskNumber][taskProperties];\n table[0][0] = \"Title\";\n table[0][1] = \"Category\";\n table[0][2] = \"Description\";\n table[0][3] = \"StartDate\";\n table[0][4] = \"EndDate\";\n table[0][5] = \"Location\";\n table[0][6] = \"Priority\";\n table[0][7] = \"Reminder\";\n table[0][8] = \"TaskType\";\n table[0][9] = \"Status\";\n\n return table;\n }", "protected String typesJSONResponse(final Collection<ComputationTargetType> types) {\n final List<ComputationTargetType> sorted = new ArrayList<>(types);\n Collections.sort(sorted, SORT_ORDER);\n try {\n final JSONWriter response = new JSONStringer().object().key(\"types\").array();\n for (final ComputationTargetType type : sorted) {\n response.object().key(\"label\").value(type.getName()).key(\"value\").value(type.toString()).endObject();\n }\n return response.endArray().endObject().toString();\n } catch (final JSONException e) {\n return null;\n }\n }", "public List<String> getResourceTypes(){\n\t\treturn jtemp.queryForList(\"SELECT resource_type_id||' '||resource_type_name FROM resource_type\", String.class);\n\t}", "public static ArrayList<Task> parse(String toParse) {\n ArrayList<Task> result = new ArrayList<>();\n Scanner ps = new Scanner(toParse); // passes whole file into the scanner\n while (ps.hasNextLine()) {\n String nLine = ps.nextLine(); // parse one line at a time\n int ref = 3; // reference point\n char taskType = nLine.charAt(ref);\n switch (taskType) {\n case 'T':\n parseTodo(ref, nLine, result);\n break;\n case 'D':\n parseDeadline(ref, nLine, result);\n break;\n case 'E':\n parseEvent(ref, nLine, result);\n break;\n default:\n System.out.println(\"Unknown input\");\n break;\n }\n }\n return result;\n }", "public JSONArray getTree(String id, String energyType, String type) {\n\t\tJSONArray js = new JSONArray();\n\t\tStringBuffer sb = new StringBuffer();\n\t\tsb.append(\"[\");\n\t\tif (id.equals(\"0\")) {\n\t\t\tsb.append(\"{\");\n\t\t\tsb\n\t\t\t\t\t.append(\"\\\"id\\\":\\\"1\\\",\\\"text\\\":\\\"东站\\\",\\\"state\\\":\\\"closed\\\",\\\"attributes\\\":{\\\"type\\\":\"\n\t\t\t\t\t\t\t+ \"\\\"\"\n\t\t\t\t\t\t\t+ type\n\t\t\t\t\t\t\t+ \"\\\",\\\"eid\\\":\\\"1\\\"\"\n\t\t\t\t\t\t\t+ \",\\\"ename\\\":\\\"\" + \"\" + \"\\\"}\");\n\t\t\tsb.append(\"},{\");\n\t\t\tsb\n\t\t\t\t\t.append(\"\\\"id\\\":\\\"2\\\",\\\"text\\\":\\\"西站\\\",\\\"state\\\":\\\"closed\\\",\\\"attributes\\\":{\\\"type\\\":\"\n\t\t\t\t\t\t\t+ \"\\\"\"\n\t\t\t\t\t\t\t+ type\n\t\t\t\t\t\t\t+ \"\\\",\\\"eid\\\":\\\"2\\\"\"\n\t\t\t\t\t\t\t+ \",\\\"ename\\\":\\\"\" + \"\" + \"\\\"}}\");\n\t\t} else {\n\t\t\tList<PomsCalculateTerminalDevice> list = new ArrayList<PomsCalculateTerminalDevice>();\n\t\t\tlist = ctdMapper.findAllByEnergyType(energyType, type);\n\t\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\t\tboolean test = true;\n\t\t\t\tString state = \"\";\n\t\t\t\tsb.append(\"{\");\n\t\t\t\tsb.append(\"\\\"id\\\":\\\"\" + list.get(i).getCtdCodes()\n\t\t\t\t\t\t+ \"\\\",\\\"text\\\":\\\"\" + list.get(i).getCdtTerminalName()\n\t\t\t\t\t\t+ \"\\\",\\\"state\\\":\\\"\" + state\n\t\t\t\t\t\t+ \"\\\",\\\"attributes\\\":{\\\"type\\\":\" + \"\\\"\"\n\t\t\t\t\t\t+ list.get(i).getPclcEnergyType() + \"\\\",\\\"eid\\\":\\\"0\\\"\"\n\t\t\t\t\t\t+ \",\\\"ename\\\":\\\"\" + \"\" + \"\\\"}\");\n\t\t\t\tif (!test) {\n\t\t\t\t\tsb.append(\",\\\"iconCls\\\":\\\"tree-file\\\"\");\n\t\t\t\t}\n\t\t\t\tif (i == list.size() - 1) {\n\t\t\t\t\tsb.append(\"}\");\n\t\t\t\t} else {\n\t\t\t\t\tsb.append(\"},\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsb.append(\"]\");\n\t\tjs = JSONArray.fromObject(sb.toString());\n\t\treturn js;\n\t}", "@GetMapping(\"/bytaskid/{id}\")\r\n public List<TaskStatus> getByTaskId(@PathVariable(value = \"id\") Long id) {\r\n\r\n List<TaskStatus> tsk = dao.findByTaskID(id);\r\n return tsk;\r\n\r\n }", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllPlatformTypes\")\n List<JsonType> types();", "public List<Task> loadDependentTasks(Task task) {\n\t\treturn null;\r\n\t}", "public void fetchTaskDetailsFromDB() {\n TaskInfo taskInfo = TaskInfo.getOrBadRequest(userTaskUUID);\n taskParams = Json.fromJson(taskInfo.getDetails(), UniverseDefinitionTaskParams.class);\n }", "public static ArrayList<TicketType> getAllTicketTypesData() {\n\t\tList list = null;\n\t\tString filename = \".\\\\data\\\\ticketType.dat\";\n\t\tlist = (ArrayList)SerializeDB.readSerializedObject(filename); //Read data\n\t\t\n\t\treturn (ArrayList<TicketType>) list;\n\t}", "public List<PromotionalOffer> getPromotionalOffersList(){\n\n List<PromotionalOffer> promotionalOfferList = new ArrayList<PromotionalOffer>();\n\n //String promotionFileName = getFileName(\"promotionalOffer.json\");\n\n File file = new File(\"promotionalOffer.json\");\n try {\n BufferedReader bufferReader = new BufferedReader(new FileReader(file));\n Gson gson = new Gson();\n promotionalOfferList = gson.fromJson(bufferReader,new TypeToken<List<PromotionalOffer>>(){}.getType());\n\n System.out.println(promotionalOfferList);\n\n } catch(FileNotFoundException nfe) {\n logger.error(\"error, promotional offers file does not exist\");\n\n } catch (IOException ioe){\n logger.error(\"error while reading the promotional offers from the file\");\n }\n return promotionalOfferList;\n\n }", "public static List<Person> loadTrainingSet(){\n List<Person> list_of_persons = new LinkedList<Person>();\n String[] names = getAllNames();\n\n try (Connection con = DriverManager.getConnection(url, user, password)){\n for(int i=0; i<names.length; i++){\n List<Histogram> histograms = new ArrayList<>();\n String query = \"SELECT h_json FROM \"+DATABASE_NAME+\".\"+names[i]+\";\";\n \n Statement st = con.createStatement();\n ResultSet rs = st.executeQuery(query);\n\n while (rs.next()) {\n Map<Integer, Integer> map = new HashMap<>();\n JSONObject obje = new JSONObject(rs.getString(1));\n for(int y=0; y<255; y++){\n map.put(y, (int)obje.get(\"\"+y));\n }\n histograms.add(new Histogram(map));\n }\n\n list_of_persons.add(new Person(names[i], histograms));\n }\n con.close();\n } catch (SQLException ex) {\n ex.printStackTrace();\n } \n\n return list_of_persons;\n }", "private List<String> readRecord(JsonObject workItem) throws AutomicException {\n List<String> record = new ArrayList<String>(resultFields.size());\n for (String field : resultFields) {\n JsonElement jeObj = workItem.get(field);\n String value = null;\n if (jeObj != null && jeObj.isJsonPrimitive()) {\n value = jeObj.getAsString();\n } else if (jeObj != null && jeObj.isJsonObject()) {\n JsonObject jObj = (JsonObject) jeObj;\n if (jObj.has(\"_refObjectName\")) {\n value = jObj.get(\"_refObjectName\").getAsString();\n }\n }\n record.add(value);\n }\n return record;\n }" ]
[ "0.64591706", "0.6201143", "0.55656314", "0.55627257", "0.5513964", "0.53881073", "0.5380187", "0.5364548", "0.5338349", "0.52886397", "0.5247803", "0.5217357", "0.52074826", "0.52004707", "0.51504743", "0.5128035", "0.5114161", "0.51071465", "0.5073683", "0.506773", "0.5066511", "0.50551856", "0.50490636", "0.5023884", "0.50077206", "0.5007395", "0.5005098", "0.5003073", "0.49953154", "0.4973147", "0.49400136", "0.49226886", "0.49197388", "0.4909629", "0.48990858", "0.4896851", "0.48932755", "0.48790458", "0.48777372", "0.48743847", "0.48694468", "0.48609996", "0.4847194", "0.48391172", "0.4838794", "0.481607", "0.4814932", "0.48131692", "0.4811308", "0.48092696", "0.47778556", "0.47641277", "0.47562352", "0.47542435", "0.47537854", "0.47471297", "0.47412607", "0.4736983", "0.47331116", "0.47288623", "0.47256234", "0.4723448", "0.47143498", "0.47092742", "0.470901", "0.47089866", "0.4705182", "0.47020346", "0.46978813", "0.46964544", "0.46961707", "0.46891925", "0.46784064", "0.4675253", "0.4668864", "0.4668198", "0.46621367", "0.4659685", "0.4656353", "0.46472466", "0.46422115", "0.4636337", "0.46360588", "0.46332267", "0.46332267", "0.4628101", "0.46181047", "0.46030205", "0.46029064", "0.46027946", "0.46020743", "0.45995566", "0.45872617", "0.45871854", "0.45841017", "0.45838305", "0.4580344", "0.45786434", "0.45781004", "0.45763043", "0.4567062" ]
0.0
-1
To get device type table from json file and but it in array
private void getCustomerSpinner() { StringRequest stringRequest = new StringRequest("https://cardtest10.000webhostapp.com/Sunc_Spinner_C.php", new Response.Listener<String>() { @Override public void onResponse(String response) { try{ JSONObject jsonResponse = new JSONObject(response); JSONArray jsonArraytask = jsonResponse.getJSONArray("customer list"); for(int i=0; i < jsonArraytask.length(); i++) { JSONObject jsonObjecttask = jsonArraytask.getJSONObject(i); String task = jsonObjecttask.optString("Custom"); arrayCustomer.add(task); } }catch (JSONException e){ e.printStackTrace(); } // Applying the adapter to our spinner spCustomer.setAdapter(new ArrayAdapter<>(UserAreaActivity.this, android.R.layout.simple_spinner_dropdown_item, arrayCustomer)); } }, new Response.ErrorListener() { @Override public void onErrorResponse(VolleyError error) { Toast.makeText(UserAreaActivity.this, error + "", Toast.LENGTH_SHORT).show(); } }); RequestQueue requestQueue = Volley.newRequestQueue(this); requestQueue.add(stringRequest); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllDeviceCategories\")\n List<JsonType> types();", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllPlatformTypes\")\n List<JsonType> types();", "@SuppressWarnings(\"unchecked\")\n@RequestMapping(value = \"/getdevtype\", method = RequestMethod.GET)\npublic JSONObject getdevtype(@RequestParam(value=\"sid\", \t\trequired=false) String sid, \n\t\t\t\t \t \t @RequestParam(value=\"spid\", \t\trequired=false) String spid,\n\t\t\t\t \t \t @RequestParam(value=\"uid\", \t\trequired=false) String uid,\n\t\t\t\t \t \t @RequestParam(value=\"duration\", \trequired=false, defaultValue=\"5m\") String duration) throws IOException {\n\n\t\tJSONArray dev_array = null;\n\t\tJSONObject devlist \t = new JSONObject();\n\t\tdev_array = new JSONArray();\n\t\t\n\t\tDevice dv = getDeviceService().findOneByUid(uid);\n\t\t\n\t\tif (dv != null) {\n\n\t\t\tJSONArray dev_array1 = new JSONArray();\n\t\t\tJSONArray dev_array2 = new JSONArray();\n\t \t\n\t\t\tdev_array2.add (0, \"2G\");\n\t\t\tdev_array2.add (1, dv.getPeer2gcount());\n\t\t\tdev_array1.add (0, \"5G\");\n\t\t\tdev_array1.add (1, dv.getPeer5gcount());\n\t\n\t\t\tdev_array.add (0, dev_array2);\n\t\t\tdev_array.add (1, dev_array1);\n\t\t}\n\t\t\n\t\tdevlist.put(\"typeOfDevices\", dev_array);\t\n\t\t\n \t//LOG.info(\"typeOfDevices\" +devlist.toString());\t\t\t\n\t\t\t\t\n\t\treturn devlist;\n\t}", "@Override\n public Map<String, List<Sensor>> getDeviceSchemaList() {\n Path path = Paths.get(config.getFILE_PATH(), Constants.SCHEMA_PATH);\n if (!Files.exists(path) || !Files.isRegularFile(path)) {\n LOGGER.error(\"Failed to find schema file in \" + path.getFileName().toString());\n System.exit(0);\n }\n Map<String, List<Sensor>> result = new HashMap<>();\n try {\n List<String> schemaLines = Files.readAllLines(path);\n for (String schemaLine : schemaLines) {\n if (schemaLine.trim().length() != 0) {\n String line[] = schemaLine.split(\" \");\n String deviceName = line[0];\n if (!result.containsKey(deviceName)) {\n result.put(deviceName, new ArrayList<>());\n }\n Sensor sensor = new Sensor(line[1], SensorType.getType(Integer.parseInt(line[2])));\n result.get(deviceName).add(sensor);\n }\n }\n } catch (IOException exception) {\n LOGGER.error(\"Failed to init register\");\n }\n return result;\n }", "public Map<String, Set<String>> getBufferedDeviceNamesByType();", "@GET\n\t@Path(\"types\")\n public Response getDeviceTypes() {\n List<DeviceType> deviceTypes;\n try {\n deviceTypes = DeviceMgtAPIUtils.getDeviceManagementService().getAvailableDeviceTypes();\n return Response.status(Response.Status.OK).entity(deviceTypes).build();\n } catch (DeviceManagementException e) {\n String msg = \"Error occurred while fetching the list of device types.\";\n log.error(msg, e);\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(msg).build();\n }\n }", "public static ArrayList<Device> getDevices (JSONArray jsonArray){\n ArrayList<Device> devices = new ArrayList<Device>();\n\n for (int i = 0; i < jsonArray.length(); i++) {\n try {\n JSONObject o = jsonArray.getJSONObject(i);\n Device d = new Device(o.getString(Utility.DeviceName), o.getString(Utility.Technology), o.getBoolean(Utility.AlwaysOn));\n\n /* Servs */\n JSONArray servsJson = o.getJSONArray(Utility.Services);\n for (int j = 0; j < servsJson.length(); j++) {\n DeviceService ds = new DeviceService(servsJson.getJSONObject(j).getString(Utility.ServiceName), servsJson.getJSONObject(j).getString(Utility.ServiceType));\n ds.assignToDevice(d);\n d.addService(ds);\n\n JSONArray coms = servsJson.getJSONObject(j).getJSONArray(Utility.Commands);\n for (int z = 0; z < coms.length(); z++) {\n try {\n ds.addCommand(new Command(coms.getJSONObject(z).getString(Utility.CommandName),\n coms.getJSONObject(z).getString(Utility.CommandType)));\n }\n catch (JSONException e) {\n Log.w(\"Command\", \"Error adding command\");\n }\n }\n }\n\n\n\n devices.add(d);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n return devices;\n }", "public String[] getTypes() {\n/* 388 */ return getStringArray(\"type\");\n/* */ }", "protected Table readTable(JSONObject json) throws JSONException, TypeException {\n System.err.println(\"readTable json = \" + json);\n\n\t// allocate a table\n\tTable table = new DefaultTable();\n\n\t// get no of rows\n\tint rowCount = json.getInt(\"rowCount\");\n\n\t// get no of columns\n\tint colCount = json.getInt(\"colCount\");\n\n\t// create table definition\n\tTableHeader header = new DefaultTableHeader();\n\n JSONArray headerPairs = json.getJSONArray(\"header\");\n \n\t// now read colCount column definitions\n\tfor (int col=0; col < colCount; col++) {\n JSONObject headerPair = headerPairs.getJSONObject(col);\n\n\t // read name\n\t String name = headerPair.getString(\"name\");\n\n\t // read type\n String typeStr = headerPair.getString(\"type\");\n ProbeAttributeType type = decodeType(typeStr);\n\n\t // add it to the header\n\t header.add(name, type);\n\t \n\t}\n\n\t// set column definitions\n\ttable.defineTable(header);\n\n JSONArray rows = json.getJSONArray(\"rows\");\n \n\t// now read all of the rows\n\tfor (int row=0; row < rowCount; row++) {\n JSONArray jsonRow = rows.getJSONArray(row);\n\n\t TableRow thisRow = new DefaultTableRow();\n\n\t // visit columns\n\t for (int col=0; col < colCount; col++) {\n\t\t// find the type in the header\n\t\tTableAttribute attribute = header.get(col);\n\t\tProbeAttributeType type = attribute.getType();\n\n\t\t// decode a value, \n\t\tObject value = decodeValue(type, jsonRow.get(col));\n\n\t\t// add value to the row\n\t\tthisRow.add(value);\n\t }\n\n\t // add the row to the table\n\t try {\n\t\ttable.addRow(thisRow);\n\t } catch (TableException te) {\n\t\t// if the data is bad it must be a transmission error\n\t\tthrow new JSONException(te.getMessage());\n\t }\n\t}\n\n\treturn table;\n\n }", "private JSObject getTableColumnNamesTypes(SQLiteDatabase db, String tableName) throws JSONException {\n JSObject ret = new JSObject();\n ArrayList<String> names = new ArrayList<String>();\n ArrayList<String> types = new ArrayList<String>();\n String query = new StringBuilder(\"PRAGMA table_info(\").append(tableName).append(\");\").toString();\n JSArray resQuery = this.selectSQL(db, query, new ArrayList<String>());\n List<JSObject> lQuery = resQuery.toList();\n if (resQuery.length() > 0) {\n for (JSObject obj : lQuery) {\n names.add(obj.getString(\"name\"));\n types.add(obj.getString(\"type\"));\n }\n ret.put(\"names\", names);\n ret.put(\"types\", types);\n }\n return ret;\n }", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Device> \n getDevicesList();", "List<DeviceDetails> getDevices();", "List<Type> getTypeList(String type);", "@RequestMapping(value=\"/datatypes\",method=RequestMethod.GET)\n public DataFieldType[] getAllDataTypes(){\n return DataFieldType.values();\n }", "public List<SecTyp> getAllTypes();", "java.util.List<com.sanqing.sca.message.ProtocolDecode.Table> \n getTableList();", "private final void runType() throws IOException {\n\t\tfloat[][] tc = null;\r\n\t\tfinal BufferedReader in = open(\"type\");\r\n\t\tString line;\r\n\t\tint i = 0;\r\n\t\tfinal List<Type> types = new ArrayList<Type>();\r\n\t\t//for (int i = 0; i < typesSize; i++)\r\n\t\twhile ((line = in.readLine()) != null) {\r\n\t\t\tfinal List<String> tokens = getTokens(line, \"TYP\");\r\n\t\t\tif (tokens == null) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tfinal String code = getString(tokens, 1);\r\n\t\t\tfinal String name = getString(tokens, 3);\r\n\t\t\tfinal Type type = new Type(code, name);\r\n\t\t\ttypes.add(type);\r\n\t\t\tfinal List<String> multipliers = split(getString(tokens, 2), '~');\r\n\t\t\tfinal int typesSize = multipliers.size();\r\n\t\t\tif (tc == null) {\r\n\t\t\t\ttc = new float[typesSize][];\r\n\t\t\t}\r\n\t\t\tfinal float[] typeRow = new float[typesSize];\r\n\t\t\ttc[i] = typeRow;\r\n\t\t\tfor (int j = 0; j < typesSize; j++) {\r\n\t\t\t\ttypeRow[j] = Float.parseFloat(multipliers.get(j));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t\t/*new float[typesSize][];\r\n\t\t\tfinal float[] typeRow = new float[typesSize];\r\n\t\t\ti++;\r\n\t\t\ttc[i] = typeRow;\r\n\t\t\t//final String line = in.readLine();\r\n\t\t\tfinal String cells = line.substring(8, line.lastIndexOf('|'));\r\n\t\t\tfinal StringTokenizer tokenizer = new StringTokenizer(cells, \"~\");\r\n\t\t\tfor (int j = 0; j < typesSize; j++) {\r\n\t\t\t\ttypeRow[j] = Float.parseFloat(tokenizer.nextToken());\r\n\t\t\t}*/\r\n\t\t}\r\n\t\tin.close();\r\n\t\tType.setTypes(types);\r\n\t\tSpecies.setTypeChart(tc);\r\n\t}", "public abstract List<NADevice> getDevices(Context context);", "public List<String> getAvailableDataTypes() {\n Set<String> typeSet = new TreeSet<String>();\n\n ITimer timer = TimeUtil.getTimer();\n timer.start();\n\n try {\n for (Provider provider : DataDeliveryHandlers.getProviderHandler()\n .getAll()) {\n\n for (ProviderType type : provider.getProviderType()) {\n typeSet.add(type.getDataType().toString());\n }\n }\n } catch (RegistryHandlerException e) {\n statusHandler.handle(Priority.PROBLEM,\n \"Unable to retrieve the provider list.\", e);\n }\n\n List<String> typeList = new ArrayList<String>(typeSet);\n timer.stop();\n\n return typeList;\n }", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllActiveDevicesFast\")\n List<JsonDevice> all();", "public SmartDevice[] readDevices() {\n SQLiteDatabase db = getReadableDatabase();\n\n // Get data from database\n Cursor cursor = db.query(TABLE_NAME, null, null, null, null, null, null, null);\n if (cursor.getCount() <= 0) // If there is nothing found\n return null;\n\n\n // Go trough data and create class objects\n SmartDevice[] devices = new SmartDevice[cursor.getCount()];\n int i = 0;\n for (cursor.moveToFirst(); !cursor.isAfterLast(); cursor.moveToNext()) {\n devices[i++] = createDevice(cursor);\n }\n\n close();\n return devices;\n }", "public String[][] fill_table()\n {\n int j=0;\n String[][] data = new String[0][];\n for (Map.Entry<String,Descriptor> entry :parms.getDescriptors().entrySet()) {\n\n data[j][0]=entry.getValue().getId();\n data[j][1]= String.valueOf(entry.getValue().getType());\n data[j][2]= String.valueOf(entry.getValue().getCapacity());\n data[j][3]= String.valueOf(entry.getValue().getState());\n data[j][4]= String.valueOf(entry.getValue().getNbRequest());\n data[j][5]= String.valueOf(entry.getValue().getRequest());\n data[j][6]= String.valueOf(entry.getValue().getRange());\n data[j][7]= String.valueOf(entry.getValue().getService());\n Point p=entry.getValue().getPosition();\n data[j][8]= String.valueOf(p.getX());\n data[j][9]= String.valueOf(p.getY());\n j++;\n }\n return data;\n }", "private List<String> getExtendedDeviceInfo(IBuildInfo buildInfo) {\n List<String> extendedDeviceInfo = new ArrayList<>();\n File deviceInfoPath = buildInfo.getFile(DeviceInfoCollector.DEVICE_INFO_DIR);\n if (deviceInfoPath == null || !deviceInfoPath.exists()) {\n CLog.w(\"Device Info directory was not created (Make sure you are not running plan \" +\n \"\\\"*ts-dev\\\" or including option -d/--skip-device-info)\");\n return extendedDeviceInfo;\n }\n List<String> requiredDeviceInfo = null;\n try {\n requiredDeviceInfo = DynamicConfigFileReader.getValuesFromConfig(\n buildInfo, getSuiteName(), DYNAMIC_CONFIG_EXTENDED_DEVICE_INFO_KEY);\n } catch (XmlPullParserException | IOException e) {\n CLog.e(\"Failed to pull business logic Extended DeviceInfo from dynamic config. \"\n + \"Error: %s\", e);\n return extendedDeviceInfo;\n }\n File ediFile = null;\n String[] fileAndKey = null;\n try{\n for (String ediEntry: requiredDeviceInfo) {\n fileAndKey = ediEntry.split(\":\");\n if (fileAndKey.length <= 1) {\n CLog.e(\"Dynamic config Extended DeviceInfo key has problem.\");\n return new ArrayList<>();\n }\n ediFile = FileUtil\n .findFile(deviceInfoPath, fileAndKey[0] + \".deviceinfo.json\");\n if (ediFile == null) {\n CLog.e(\n \"Could not find Extended DeviceInfo JSON file: %s.\",\n deviceInfoPath + fileAndKey[0] + \".deviceinfo.json\");\n return new ArrayList<>();\n }\n String jsonString = FileUtil.readStringFromFile(ediFile);\n JSONObject jsonObj = new JSONObject(jsonString);\n String value = jsonObj.getString(fileAndKey[1]);\n extendedDeviceInfo\n .add(String.format(\"%s:%s:%s\", fileAndKey[0], fileAndKey[1], value));\n }\n }catch(JSONException | IOException | RuntimeException e){\n CLog.e(\n \"Failed to read or parse Extended DeviceInfo JSON file: %s. Error: %s\",\n deviceInfoPath + fileAndKey[0] + \".deviceinfo.json\", e);\n return new ArrayList<>();\n }\n return extendedDeviceInfo;\n }", "public void jsonParseMeth(JSONArray am3) {\n for (int i = 0; i <= am3.size() - 1; i++) {\n JSONObject obj1 = (JSONObject) am3.get(i);\n System.out.println(((JSONObject) am3.get(i)).toJSONString());\n System.out.println((String) obj1.get(\"ibx\"));\n System.out.println((String) obj1.get(\"switchName\"));\n System.out.println((String) obj1.get(\"cspName\"));\n System.out.println(obj1.get(\"vlanCount\"));\n System.out.println(obj1.get(\"usedBandwidth\"));\n System.out.println((String) obj1.get(\"portName\"));\n System.out.println((String) obj1.get(\"portPriority\"));\n System.out.println(obj1.get(\"percentageAvailableBandwidth\"));\n System.out.println(obj1.get(\"totalBandwidth\"));\n System.out.println(obj1.get(\"availableBandwidth\"));\n JSONArray physical = (JSONArray) obj1.get(\"physicalPortNames\");\n for (Object phy : physical) {\n System.out.println(phy.toString());\n }\n }\n\n }", "public Collection<String> listDevices();", "public ShowTablesByTypeResponse showTablesByType(ShowTablesByTypeRequest request) throws GPUdbException {\n ShowTablesByTypeResponse actualResponse_ = new ShowTablesByTypeResponse();\n submitRequest(\"/show/tables/bytype\", request, actualResponse_, false);\n return actualResponse_;\n }", "private List<List<String>> getModelModel(String url, String jsonName, String key, String tipe) {\n List<List<String>> result = new ArrayList<>();\n\n try {\n OkHttpUtil okHttpUtil = new OkHttpUtil();\n okHttpUtil.init(true);\n Request request = new Request.Builder().url(url).get().build();\n Response response = okHttpUtil.getClient().newCall(request).execute();\n\n String res = \"{\\\"\" + jsonName + \"\\\":\" + response.body().string() + \"}\";\n\n JSONObject jsonObject = new JSONObject(res);\n JSONArray jSONArray = jsonObject.getJSONArray(jsonName);\n List<String> list = new ArrayList<>();\n JSONObject obj = (JSONObject) jSONArray.get(0);\n String temp = obj.getString(\"type\");\n List<String> types = new ArrayList<>();\n for (int i = 0; i < jSONArray.length(); i++) {\n obj = (JSONObject) jSONArray.get(i);\n if (obj.getString(\"type\").equalsIgnoreCase(temp)) {\n list.add(obj.getString(key));\n } else {\n types.add(temp);\n if (temp.equals(tipe)) {\n type_index = result.size();\n }\n result.add(list);\n list = new ArrayList<>();\n list.add(obj.getString(key));\n temp = obj.getString(\"type\");\n }\n }\n } catch (Exception e) {\n\n }\n\n return result;\n }", "public Type[] types();", "public Object[][] getTableData(){\r\n if (ufeRunner == null || renders == null || htmlObjLang == null) {\r\n return null;\r\n }\r\n final ArrayList<Object[]> lista = new ArrayList<>();\r\n Object[] fila = new Object[2];\r\n fila[0] = \"CssHelper\";\r\n if (ufeRunner.cssHelper == null) {\r\n fila[1] = \"null\";\r\n }else{\r\n fila[1] = ufeRunner.cssHelper.getPath();\r\n }\r\n lista.add(fila);\r\n fila = new Object[2];\r\n fila[0] = \"\";\r\n fila[1] = \"\";\r\n lista.add(fila);\r\n for (ImportedInstance ufeImport : ufeRunner.imports) {\r\n fila = new Object[2];\r\n fila[0] = \"UfeImport\";\r\n fila[1] = ufeImport.path;\r\n lista.add(fila);\r\n }\r\n if (ufeRunner.imports.size() < 1) {\r\n fila = new Object[2];\r\n fila[0] = \"Sin ufe imports\";\r\n fila[1] = \"Sin ufe imports\";\r\n lista.add(fila);\r\n }\r\n fila = new Object[2];\r\n fila[0] = \"\";\r\n fila[1] = \"\";\r\n lista.add(fila);\r\n ufeRunner.scope.symbolTable.forEach((key, val)->{\r\n Object[] f = new Object[2];\r\n f[0] = key;\r\n if (val.isPresent()) {\r\n Object obj = val.get();\r\n if (obj instanceof Object[]) {\r\n StringBuilder sb = new StringBuilder();\r\n sb.append(\"{ \");\r\n for (Object o : (Object[])obj) {\r\n sb.append(o.toString()).append(\",\");\r\n }\r\n sb.setLength(sb.length() - 1);\r\n sb.append(\" }\");\r\n f[1] = sb.toString();\r\n }else{\r\n f[1] = obj.toString();\r\n }\r\n }else{\r\n f[1] = \"null\";\r\n }\r\n lista.add(f);\r\n });\r\n Object[][] result = new Object[lista.size()][2];\r\n for (int i = 0; i < lista.size(); i++) {\r\n fila = lista.get(i);\r\n for (int j = 0; j < 2; j++) {\r\n result[i][j] = fila[j];\r\n }\r\n }\r\n return result;\r\n }", "public List<Device> getListDevice() {\n\n\t\tList<Device> listDevice = new ArrayList<Device>();\n\n\t\tDevice device = new Device();\n\n\t\tdevice.setName(\"DeviceNorgren\");\n\t\tdevice.setManufacturer(\"Norgren\");\n\t\tdevice.setVersion(\"5.7.3\");\n\t\tdevice.setDescriptionSemantic(\"http://www.loa-cnr.it/ontologies/DUL.owl#isDescribedBy\");\n\n\t\tSensor sensorTemperature = new Sensor();\n\t\tsensorTemperature.setName(\"SensorSiemens\");\n\t\tsensorTemperature.setManufacturer(\"Siemens\");\n\t\tsensorTemperature.setVersion(\"1.2.2\");\n\t\tsensorTemperature.setDescriptionSemantic(\"http://www.loa-cnr.it/ontologies/DUL.owl#isDescribedBy\");\n\t\tsensorTemperature.setMonitor(\"Temperature\");\n\n\t\tSensor sensorPressure = new Sensor();\n\t\tsensorPressure.setName(\"SensorOmron\");\n\t\tsensorPressure.setManufacturer(\"Omron\");\n\t\tsensorPressure.setVersion(\"0.5.2\");\n\t\tsensorPressure.setDescriptionSemantic(\"http://www.loa-cnr.it/ontologies/DUL.owl#isDescribedBy\");\n\t\tsensorPressure.setMonitor(\"Pressure\");\n\n\t\tdevice.getListSensor().add(sensorTemperature);\n\t\tdevice.getListSensor().add(sensorPressure);\n\n\t\tActuator actuadorKey = new Actuator();\n\n\t\tactuadorKey.setName(\"SensorAutonics\");\n\t\tactuadorKey.setManufacturer(\"Autonics\");\n\t\tactuadorKey.setVersion(\"3.1\");\n\t\tactuadorKey.setDescriptionSemantic(\"http://www.loa-cnr.it/ontologies/DUL.owl#isDescribedBy\");\n\t\tactuadorKey.setAction(\"On-Off\");\n\n\t\tdevice.getListActuator().add(actuadorKey);\n\n\t\tlistDevice.add(device);\n\n\t\treturn listDevice;\n\n\t}", "public List<String> getResourceTypes(){\n\t\treturn jtemp.queryForList(\"SELECT resource_type_id||' '||resource_type_name FROM resource_type\", String.class);\n\t}", "@Override\n\tpublic List<String> getSensorType(String deviceType) {\n\t\treturn null;\n\t}", "public JSONArray getTree(String id, String energyType, String type) {\n\t\tJSONArray js = new JSONArray();\n\t\tStringBuffer sb = new StringBuffer();\n\t\tsb.append(\"[\");\n\t\tif (id.equals(\"0\")) {\n\t\t\tsb.append(\"{\");\n\t\t\tsb\n\t\t\t\t\t.append(\"\\\"id\\\":\\\"1\\\",\\\"text\\\":\\\"东站\\\",\\\"state\\\":\\\"closed\\\",\\\"attributes\\\":{\\\"type\\\":\"\n\t\t\t\t\t\t\t+ \"\\\"\"\n\t\t\t\t\t\t\t+ type\n\t\t\t\t\t\t\t+ \"\\\",\\\"eid\\\":\\\"1\\\"\"\n\t\t\t\t\t\t\t+ \",\\\"ename\\\":\\\"\" + \"\" + \"\\\"}\");\n\t\t\tsb.append(\"},{\");\n\t\t\tsb\n\t\t\t\t\t.append(\"\\\"id\\\":\\\"2\\\",\\\"text\\\":\\\"西站\\\",\\\"state\\\":\\\"closed\\\",\\\"attributes\\\":{\\\"type\\\":\"\n\t\t\t\t\t\t\t+ \"\\\"\"\n\t\t\t\t\t\t\t+ type\n\t\t\t\t\t\t\t+ \"\\\",\\\"eid\\\":\\\"2\\\"\"\n\t\t\t\t\t\t\t+ \",\\\"ename\\\":\\\"\" + \"\" + \"\\\"}}\");\n\t\t} else {\n\t\t\tList<PomsCalculateTerminalDevice> list = new ArrayList<PomsCalculateTerminalDevice>();\n\t\t\tlist = ctdMapper.findAllByEnergyType(energyType, type);\n\t\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\t\tboolean test = true;\n\t\t\t\tString state = \"\";\n\t\t\t\tsb.append(\"{\");\n\t\t\t\tsb.append(\"\\\"id\\\":\\\"\" + list.get(i).getCtdCodes()\n\t\t\t\t\t\t+ \"\\\",\\\"text\\\":\\\"\" + list.get(i).getCdtTerminalName()\n\t\t\t\t\t\t+ \"\\\",\\\"state\\\":\\\"\" + state\n\t\t\t\t\t\t+ \"\\\",\\\"attributes\\\":{\\\"type\\\":\" + \"\\\"\"\n\t\t\t\t\t\t+ list.get(i).getPclcEnergyType() + \"\\\",\\\"eid\\\":\\\"0\\\"\"\n\t\t\t\t\t\t+ \",\\\"ename\\\":\\\"\" + \"\" + \"\\\"}\");\n\t\t\t\tif (!test) {\n\t\t\t\t\tsb.append(\",\\\"iconCls\\\":\\\"tree-file\\\"\");\n\t\t\t\t}\n\t\t\t\tif (i == list.size() - 1) {\n\t\t\t\t\tsb.append(\"}\");\n\t\t\t\t} else {\n\t\t\t\t\tsb.append(\"},\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsb.append(\"]\");\n\t\tjs = JSONArray.fromObject(sb.toString());\n\t\treturn js;\n\t}", "public String[] getDataTypes(T2 ob) {\n\t\tString[] s = null;\t\t\r\n\t\tjava.lang.reflect.Field[] f1=ob.getClass().getDeclaredFields(); \r\n\t\ts=new String[f1.length];\r\n\t\tfor(int i=1;i<f1.length;i++)\r\n\t\t{\r\n\t\tSystem.out.println(f1[i].getType().toString());\t\r\n\t\ts[i]=f1[i].getType().toString();\t\t\r\n\t\t}\t\r\n\t\treturn s;\r\n\t}", "private RoomType[] getRoomTypeStrings()\r\n\t{\r\n\t\treturn bCtrl.getAllRoomTypes().stream().toArray(RoomType[]::new);\r\n\t}", "List<? extends HasListBox> getAllDataTypes();", "public ArrayList getDeviceInfo();", "protected MList readList(JSONObject json) throws JSONException, TypeException {\n System.err.println(\"readList json = \" + json);\n\n\t// Read the size\n\tint listSize = json.getInt(\"size\");\n\n\t// Read the type\n String typeStr = json.getString(\"type\");\n ProbeAttributeType type = decodeType(typeStr);\n\n\t// Allocate a list of the right type\n\tMList list = new DefaultMList(type);\n\n JSONArray array = json.getJSONArray(\"list\");\n\n\t// now add all the values to the list\n\tfor (int e=0; e < listSize; e++) {\n\t // decode a value, \n\t Object value = decodeValue(type, array.get(e));\n\n\t list.add(value);\n\t}\n\n\treturn list;\n }", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getDeviceSensorOutputs/{device}\")\n List<JsonSensorOutput> byDevice(@PathParam(\"device\") int device);", "@Test\n public void getDeviceTypesTest() throws ApiException {\n String name = null;\n Integer offset = null;\n Integer count = null;\n String tags = null;\n // DeviceTypesEnvelope response = api.getDeviceTypes(name, offset, count, tags);\n\n // TODO: test validations\n }", "public List<SysDictData> selectDictDataByType(String dictType);", "public JsonNode getTypesJson(String notation) throws IOException {\n ObjectNode resultTypes = mapper.createObjectNode();\n\n ClassLoader classLoader = getClass().getClassLoader();\n\n JsonNode typesList = mapper.readTree(\n new File(classLoader.getResource(notation + \"/typesList.json\").getFile()));\n JsonNode allTypes = mapper.readTree(\n new File(classLoader.getResource(notation + \"/elementsTypes_en.json\").getFile()));\n\n resultTypes.set(\"elements\", getElementsTypes(typesList, allTypes));\n resultTypes.set(\"blocks\", getBlocksTypes(typesList, allTypes));\n\n return resultTypes;\n }", "String [] getSupportedTypes();", "public void setTypesView(JSONObject obj){\n try {\n JSONArray arr = obj.getJSONArray(\"types\");\n String[] arrTypes=new String[arr.length()];\n for(int i=0;i<arr.length();i++){\n arrTypes[i]=arr.getJSONObject(i).getString(\"doctype\");\n }\n ArrayAdapter arrayAdapter=new ArrayAdapter(this,R.layout.select_dialog_item_material,arrTypes);\n autoType.setAdapter(arrayAdapter);\n }catch (JSONException ex){\n ex.printStackTrace();\n }\n }", "private static void types() {\n\t\ttry {\n\t\t\tScanner handicaps = new Scanner(new FileInputStream(\"handicaps.txt\"));\n\t\t\tSystem.out.println(\"\\nAvailable Boat Types\");\n\t\t\tSystem.out.println(\"--------------------\");\n\t\t\twhile(handicaps.hasNextLine()) {\n\t\t\t\tSystem.out.println(handicaps.nextLine().split(\":\")[0]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t\thandicaps.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.err.println(\"\\n\\nSEVERE ERROR: CRUCIAL FILE HANDICAPS.TXT NOT FOUND\\n\\n\");\n\t\t\tSystem.err.println(\"Attempting to re-create file....\");\n\t\t\tgenerateHandicaps();\n\t\t\tSystem.err.println(\"Success!\\nTry command again.\\n\");\n\t\t}\n\n\t}", "static private PowerlessArray<String>\n types(final Class<?> actual) {\n final Class<?> end =\n Struct.class.isAssignableFrom(actual) ? Struct.class : Object.class;\n final PowerlessArray.Builder<String> r = PowerlessArray.builder(4);\n for (Class<?> i=actual; end!=i; i=i.getSuperclass()) { ifaces(i, r); }\n return r.snapshot();\n }", "public List<String> getTableTypes()\r\n throws Exception\r\n {\r\n List<String> list = new ArrayList<String>();\r\n \r\n list.add(TYPE_TABLES);\r\n \r\n return list;\r\n }", "public static List<ListItem> retriveTypese() {\n\n List<ListItem> list = new ArrayList<ListItem>();\n for (E_逾期分类编码_SY status : E_逾期分类编码_SY.values()) {\n ListItem<String> element = new ListItem<String>(status.get编码(), status.get名称(), status.get名称());\n list.add(element);\n }\n\n return list;\n\n }", "public static JSONObject generateFakeDeviceInfo() throws JSONException\r\n\t{\r\n\t\tJSONObject obj = new JSONObject();\r\n\t\t\r\n\t\tobj.put(\"deviceName\", \"Citizenwater Dev 1\");\r\n\t\t\r\n\t\tJSONArray sensors = new JSONArray();\r\n\t\tString[] sensorTypeList = {\"pH\", \"Conductivity\", \"Dissolved Oxygen\", \"ORP\" };\r\n\t\tfor (int i = 0; i < sensorTypeList.length; i++)\r\n\t\t{\r\n\t\t\tJSONObject sensor = new JSONObject();\r\n\t\t\tsensor.put(\"sensorBrand\", \"atlas-scientific\");\r\n\t\t\tsensor.put(\"sensorDescription\", \"This is a sensor from Atlas-Scientific...\");\r\n\t\t\tsensor.put(\"sensorType\", sensorTypeList[i]);\r\n\t\t\tJSONObject calibrationObj = new JSONObject();\r\n\t\t\tcalibrationObj.put(\"TEST_CALIBRATION_TYPE_1\", \"N Reset sensor to factory settings.\");\r\n\t\t\tcalibrationObj.put(\"TEST_CALIBRATION_TYPE_2\", \"D 1.00 6.00 Perform single-point calibration. Enter a value between 1.00 and 6.00 [pH]\");\r\n\t\t\tcalibrationObj.put(\"TEST_CALIBRATION_TYPE_3\", \"I 5 200000 Perform double-point calibration. Enter a value between 5 and 200000 [microsiemens]\");\r\n\t\t\tcalibrationObj.put(\"TEST_CALIBRATION_TYPE_4\", \"Z bad input\");\r\n\t\t\tcalibrationObj.put(\"TEST_CALIBRATION_TYPE_5\", \"I 12.22 42 bad input\");\r\n\t\t\tcalibrationObj.put(\"TEST_CALIBRATION_TYPE_6\", \"I\");\r\n\t\t\tcalibrationObj.put(\"TEST_CALIBRATION_TYPE_7\", \"I 1 2\");\r\n\t\t\t// calibrationObj.put(\"TEST_CALIBRATION_TYPE_8\", \"D -13.0 52.0 \"); // Valid\r\n\t\t\tsensor.put(\"sensorCalParam\", calibrationObj);\r\n\t\t\tsensors.put(sensor);\r\n\t\t}\r\n\t\tobj.put(\"sensors\", sensors);\r\n\t\t\r\n\t\tJSONArray schedule = new JSONArray();\r\n\t\t\r\n\t\tString[] dayList = {\"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\", \"Sunday\" };\r\n\t\tfor (int i = 0; i < dayList.length; i++)\r\n\t\t{\r\n\t\t\tJSONObject day = new JSONObject();\r\n\t\t\tday.put(\"day\", dayList[i]);\r\n\t\t\tday.put(\"start_time\", \"4:00\");\r\n\t\t\tday.put(\"finish_time\", \"5:00\");\r\n\t\t\tday.put(\"interval\", \"5\");\r\n\t\t\tschedule.put(day);\r\n\t\t}\r\n\t\t\r\n\t\tobj.put(\"schedule\", schedule);\r\n\t\t\r\n\t\treturn obj;\r\n\t}", "@Test\n public void findDeviceByType() throws Exception {\n MockUpnpService upnpService = new MockUpnpService();\n LocalDevice device = SampleData.createLocalDevice();\n upnpService.getRegistry().addDevice(device);\n\n Registry registry = upnpService.getRegistry();\n\n try {\n DeviceType deviceType = new UDADeviceType(\"MY-DEVICE-TYPE\", 1); // DOC: FIND_DEV_TYPE\n Collection<Device> devices = registry.getDevices(deviceType); // DOC: FIND_DEV_TYPE\n assertEquals(devices.size(), 1);\n } finally {}\n\n try {\n ServiceType serviceType = new UDAServiceType(\"MY-SERVICE-TYPE-ONE\", 1); // DOC: FIND_SERV_TYPE\n Collection<Device> devices = registry.getDevices(serviceType); // DOC: FIND_SERV_TYPE\n assertEquals(devices.size(), 1);\n } finally {}\n }", "public abstract Map<String, Integer> getColumnTypes(String tableName);", "public abstract DataSet getTablesByType(InputStream inputSteam,\r\n String name, String pattern, String type)\r\n throws Exception;", "public List<Refinery> getTerminalData(String terminalName);", "public List<ModelType> findAllModelTypes() {\r\n\t\t// sparql\r\n\t\tString sparql = \"SELECT ?modelType WHERE {?modelType rdfs:subClassOf onto:ModelType.}\";\r\n\t\t// test\r\n\t\tString jsonString = findJsonResult(sparql);\r\n\t\tSystem.out.println(\"findAllModelTypes:\" + jsonString);\r\n\t\t// result\r\n\t\tJSONObject json;\r\n\t\ttry {\r\n\t\t\tjson = new JSONObject(jsonString);\r\n\t\t\tJSONArray jsonArray = json.getJSONObject(\"results\").getJSONArray(\"bindings\");\r\n\t\t\tList<ModelType> list = new ArrayList<ModelType>();\r\n\t\t\tfor (int i = 0; i < jsonArray.length(); i++) {\r\n\t\t\t\tJSONObject jsonObject = (JSONObject) jsonArray.get(i);\r\n\t\t\t\tModelType modelType = new ModelType();\r\n\t\t\t\tif (jsonObject.has(\"modelType\")) {\r\n\t\t\t\t\tmodelType.setModelTypeName(jsonObject.getJSONObject(\"modelType\").getString(\"value\").split(\"#\")[1]);\r\n\t\t\t\t}\r\n\t\t\t\tlist.add(modelType);\r\n\t\t\t}\r\n\t\t\treturn list;\r\n\t\t} catch (JSONException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public static byte[] genAllTypes(){\n byte[] types = { DataType.BAG, DataType.BIGCHARARRAY, DataType.BOOLEAN, DataType.BYTE, DataType.BYTEARRAY,\n DataType.CHARARRAY, DataType.DOUBLE, DataType.FLOAT, DataType.DATETIME,\n DataType.GENERIC_WRITABLECOMPARABLE,\n DataType.INTEGER, DataType.INTERNALMAP,\n DataType.LONG, DataType.MAP, DataType.TUPLE, DataType.BIGINTEGER, DataType.BIGDECIMAL};\n return types;\n }", "@Override\n\tpublic String[] toArray() {\n\t\tString strValue[] = new String[DSPPackager.PACKAGER_MBASE_88301I\n\t\t\t\t.getFieldDefinitionList().length];\n\t\tString strHostName = null;\n\t\ttry {\n\t\t\tstrHostName = InetAddress.getLocalHost().getHostAddress();\n\t\t} catch (UnknownHostException ex) {\n\t\t\tstrHostName = \"localhost\";\n\t\t}\n\t\tstrValue[0] = \"*LINX\"; // Header type\n\t\tstrValue[1] = strHostName; // Device Name\n\t\tstrValue[5] = \"213\"; // Header Length\n\t\tstrValue[7] = \"0200\"; // Version\n\t\tstrValue[8] = \"*DSP\"; // Version\n\t\tstrValue[9] = \"MBSD\"; // Data format\n\t\tstrValue[10] = \"*LINX\"; // Source ID\n\t\tstrValue[14] = \"01\"; // Source ID\n\t\tstrValue[17] = \"BBMBSLNMNTFNC\"; // Scenario Number\n\t\tstrValue[22] = \"1\";\n\t\tstrValue[23] = \"10\";\n\t\tstrValue[24] = aa.getTeller(); // User ID\n\t\tstrValue[25] = strHostName; // Terminal ID\n\t\tstrValue[26] = \"88301\"; // Supervisor ID\n\t\tstrValue[27] = \"N\";\n\t\tstrValue[31] = aa.getTeller(); // Message Header\n\t\tstrValue[32] = \"1\"; // Message Header\n\t\tstrValue[34] = \"*END\";\n\t\tstrValue[36] = \"BTS\";\n\t\tstrValue[37] = \"RBS\";\n\t\tstrValue[39] = strHostName; // Terminal ID\n\t\tstrValue[40] = \"27\"; // Journal Seq\n\t\tstrValue[41] = aa.getBranch(); // Branch Code\n\t\tstrValue[45] = \"88301\"; // Transaction Code\n\t\tstrValue[46] = \"C\"; // add\n\t\tstrValue[47] = \"R\"; // response\n\t\tstrValue[48] = \"1\"; // Work station\n\t\tstrValue[49] = \"N\";\n\t\tstrValue[50] = \"F\";\n\t\tstrValue[56] = \"\";\n\t\tstrValue[67] = aa.getApplicationNo(); // application Number\n\t\tstrValue[68] = aa.getCifNum();\n\t\tstrValue[69] = aa.getApplicationDate();\n\t\tstrValue[71] = aa.getBranch(); // lpad 5 '0'\n\t\tstrValue[72] = aa.getWorkingEx();\n\t\tstrValue[73] = aa.getSpecProvision(); // Y/N\n\t\tstrValue[74] = aa.getClasifielDate();\n\t\tstrValue[75] = aa.getCarCode();\n\t\tstrValue[76] = aa.getReviewDate();\n\t\tstrValue[77] = aa.getRetention();\n\t\tstrValue[78] = aa.getReviewReMark();\n\t\tstrValue[79] = aa.getRefinanceFrom();\n\t\tstrValue[80] = aa.getTucachPn();\n\t\tstrValue[81] = aa.getTinhHinhTc();\n\t\tstrValue[82] = aa.getKhaNangVayVon();\n\t\tstrValue[83] = aa.getDamBaoTienVay();\n\t\tstrValue[84] = aa.getLimitAmount();\n\t\tstrValue[85] = aa.getCurencyType();\n\t\tstrValue[86] = aa.getOfficeCode();\n\t\tstrValue[87] = aa.getClassification();\n\t\tstrValue[88] = aa.getMARemarck();\n\t\tstrValue[89] = aa.getMADate();\n\t\treturn strValue;\n\t}", "@Test\n public void getDeviceTypeTest() throws ApiException {\n String deviceTypeId = null;\n // DeviceTypeEnvelope response = api.getDeviceType(deviceTypeId);\n\n // TODO: test validations\n }", "@SuppressWarnings(\"unchecked\")\n\t@RequestMapping(value = \"/getdevcon\", method = RequestMethod.GET)\n public JSONObject getdevcon(@RequestParam(value=\"sid\", \t\trequired=false) String sid, \n \t\t\t\t\t\t\t@RequestParam(value=\"spid\", \trequired=false) String spid,\n \t\t\t\t\t\t\t@RequestParam(value=\"swid\", \trequired=false) String swid,\n \t\t\t\t\t\t\t@RequestParam(value=\"uid\", \t \trequired=false) String uid,\n \t\t\t\t\t\t\t@RequestParam(value=\"duration\", required=false, defaultValue=\"5m\") String duration) throws IOException {\n \t\n \tJSONArray dev_array = null; \t\n \tJSONObject devlist \t = new JSONObject();\n\t\tdev_array = new JSONArray();\n\t\t\n\t\tDevice dv = getDeviceService().findOneByUid(uid);\n\t\t\n\t\tif (dv != null) {\n\t\t\t\n\t\t\tJSONArray dev_array1 = new JSONArray();\n\t\t\tJSONArray dev_array2 = new JSONArray();\n\t\t\tJSONArray dev_array3 = new JSONArray();\n\t\t\tJSONArray dev_array4 = new JSONArray();\n\t \t\n\t\t\tdev_array1.add (0, \"Mac\");\n\t\t\tdev_array1.add (1, dv.getIos());\n\t\t\tdev_array2.add (0, \"Android\");\n\t\t\tdev_array2.add (1, dv.getAndroid());\n\t\t\tdev_array3.add (0, \"Win\");\n\t\t\tdev_array3.add (1, dv.getWindows());\n\t\t\tdev_array4.add (0, \"Others\");\n\t\t\tdev_array4.add (1, dv.getOthers());\t\t\n\t\t\t\n\t\t\tdev_array.add (0, dev_array1);\n\t\t\tdev_array.add (1, dev_array2);\n\t\t\tdev_array.add (2, dev_array3);\n\t\t\tdev_array.add (3, dev_array4);\t\t\t\n\t\t\t\n\t\t}\n \t\t\t\t\t\n\t\tdevlist.put(\"devicesConnected\", dev_array);\t\n\t\t\n \t//LOG.info(\"Connected Clients\" +devlist.toString());\n \t\n \treturn devlist;\n \t\n }", "private List<Table> getTableFromStringTableName(String tableName) throws HyracksDataException {\n\n // Get all the tables\n if (generateAllTables) {\n // Remove the DBGEN_VERSION table and all children tables, parent tables will generate them\n return Table.getBaseTables().stream()\n .filter(table -> !table.equals(Table.DBGEN_VERSION) && !table.isChild())\n .collect(Collectors.toList());\n }\n\n // Search for the table\n List<Table> matchedTables = Table.getBaseTables().stream()\n .filter(table -> tableName.equalsIgnoreCase(table.getName())).collect(Collectors.toList());\n\n // Ensure the table was found\n if (matchedTables.isEmpty()) {\n throw new RuntimeDataException(ErrorCode.TPCDS_INVALID_TABLE_NAME, getFunctionIdentifier().getName(),\n tableName);\n }\n\n return matchedTables;\n }", "private Map<String, Integer> getUserTableTypeMetaData(Connection conn, String name) throws SQLException{\n\t\t\n\t\tMap<String, Integer> colNameType = new HashMap<String, Integer>();\n\t\tPreparedStatement preparedStatement = conn.prepareStatement(TestCDTAnyDB.USER_TABLE_TYPE_QUERY);\n\t\tpreparedStatement.setString(1, name);\n\t\tResultSet rs = preparedStatement.executeQuery();\n\n\t while (rs.next()) {\n\t String colName = rs.getString(\"name\");\n\t String colType = rs.getString(\"type\");\n\t if (TYPE_MAPPING.get(colType) == null ) {\n\t \tLOG.error(\"SQL Server type \" + colType + \" hasn't been mapped in JDBC types \");\n\t \t//throw new Exception(\"wsef\");\n\t }\n\t colNameType.put(colName, TYPE_MAPPING.get(colType));\n\t }\n\t \n\t return colNameType;\t \n\t}", "public String getTableTypeString() {\n \t\treturn \"\";\n \t}", "public Object[] getByIp(List<OTDevice> deviceList,String ip, String type,HashMap<String, OTDevice> devicesData){\n \tObject[] returnObject = null;\n for(int index=0;index<deviceList.size();index++){\n OTDevice oTDevice = deviceList.get(index);\n List<OTIfm> ifms = null ;\n \n if(null != devicesData.get(oTDevice.getId())){\n OTDevice ifm = devicesData.get(oTDevice.getId());\n ifms = ifm.getIfmList();\n }else{\n ifms= OTIfmDAO.getInstance().getList(oTDevice.getId(), type);\n if(null != ifms){\n oTDevice.setIfmList(ifms);\n devicesData.put(oTDevice.getId(),oTDevice);\n }\n \n }\n if(null != ifms){\n for(int i =0;i<ifms.size();i++){\n OTIfm ifm = ifms.get(i);\n if(ip.equals(ifm.getIpAddress())){\n return new Object[]{oTDevice,ifm};\n }\n }\n }\n }\n return returnObject;\n }", "List<Device> selectByExample(DeviceExample example);", "public static String[] getSourceDatatype() {\n\treturn getStringDatatypes();\n}", "public synchronized Hashtable getDevices() {\n Hashtable hashtable;\n hashtable = new Hashtable();\n Enumeration keys = this.deviceList.keys();\n while (keys.hasMoreElements()) {\n Integer num = (Integer) keys.nextElement();\n hashtable.put(num, this.deviceList.get(num));\n }\n return hashtable;\n }", "public abstract String [] listTables();", "public native JsArrayString getTypes()/*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\treturn jso.types;\n }-*/;", "public static ArrayList<TicketType> getAllTicketTypesData() {\n\t\tList list = null;\n\t\tString filename = \".\\\\data\\\\ticketType.dat\";\n\t\tlist = (ArrayList)SerializeDB.readSerializedObject(filename); //Read data\n\t\t\n\t\treturn (ArrayList<TicketType>) list;\n\t}", "private DataTypes getDataType(String token){\n token = token.trim();\n if (token.endsWith(\"]\"))\n return DataTypes.List;\n else if (token.endsWith(\"}\"))\n return DataTypes.Map;\n else if (token.startsWith(\"\\\"\"))\n return DataTypes.String;\n else if (token.toLowerCase().equals(\"null\"))\n return DataTypes.Null;\n else {\n if (token.toLowerCase().equals(\"true\") || token.toLowerCase().equals(\"false\"))\n return DataTypes.Boolean;\n else {\n if (token.contains(\".\"))\n return DataTypes.Float;\n else\n return DataTypes.Integer;\n }\n }\n }", "public String getAlarmTypes() throws JsonProcessingException,\r\n\t\t\tHibernateException;", "public List<Map> querystbDeviceDetail(long deviceTypeId, long detailSpecId)\n\t{\n\t\tString infoSql = \"select a.devicetype_id, c.vendor_add, b.device_model, a.access_style_relay_id,a.spec_id,\"\n\t\t\t +\" a.specversion, a.hardwareversion, a.softwareversion, a.is_check, a.rela_dev_type_id,\"\n\t\t\t\t+ \" a.access_style_relay_id,a.ip_type ,is_normal from stb_tab_devicetype_info a, stb_gw_device_model b,stb_tab_vendor c \"\n\t\t\t\t+ \" where a.device_model_id=b.device_model_id and a.vendor_id=c.vendor_id and a.devicetype_id=\"\n\t\t\t\t+ deviceTypeId;\n\t\tPrepareSQL infoPsql = new PrepareSQL(infoSql.toString());\n\t\tList<Map> infoList = new ArrayList<Map>();\n\t\tinfoList = jt.queryForList(infoPsql.getSQL());\n\t\tif (infoList.size() > 0)\n\t\t{\n\t\t\tString access_style_relay_id = StringUtil.getStringValue(infoList.get(0).get(\n\t\t\t\t\t\"access_style_relay_id\"));\n\t\t\tif (!\"\".equals(access_style_relay_id))\n\t\t\t{\n\t\t\t\tString type_name = getTypeNameByTypeId(access_style_relay_id);\n\t\t\t\tinfoList.get(0).put(\"type_id\", access_style_relay_id);\n\t\t\t\tinfoList.get(0).put(\"type_name\", type_name);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tinfoList.get(0).put(\"type_id\", \"\");\n\t\t\t\tinfoList.get(0).put(\"type_name\", \"\");\n\t\t\t}\n\t\t}\n\t\tString specName = getSpecName(String.valueOf(detailSpecId));\n\t\tinfoList.get(0).put(\"specName\", specName);\n\t\tString portSql = \"select port_name,port_dir,port_type,port_desc from stb_tab_devicetype_info_port where devicetype_id=\"\n\t\t\t\t+ deviceTypeId;\n\t\tList<Map> portList = new ArrayList<Map>();\n\t\tPrepareSQL portPsql = new PrepareSQL(portSql.toString());\n\t\tportList = jt.queryForList(portPsql.getSQL());\n\t\tif (portList.size() > 0 && infoList.size() > 0)\n\t\t{\n\t\t\tString port = \"\";\n\t\t\tfor (int i = 0; i < portList.size(); i++)\n\t\t\t{\n\t\t\t\tport += StringUtil.getStringValue(portList.get(i).get(\"port_name\"))+ \",\";\n\t\t\t}\n\t\t\tport = port.substring(0, port.length() - 1);\n\t\t\tinfoList.get(0).put(\"port_name\", port);\n\t\t}\n\t\tString typeSql = \"select server_type from stb_tab_devicetype_info_servertype where devicetype_id=\"\n\t\t\t\t+ deviceTypeId;\n\t\tList<Map> typeList = new ArrayList<Map>();\n\t\tPrepareSQL typePsql = new PrepareSQL(typeSql.toString());\n\t\ttypeList = jt.queryForList(typePsql.getSQL());\n\t\tif (typeList.size() > 0 && infoList.size() > 0)\n\t\t{\n\t\t\tString type = \"\";\n\t\t\tfor (Map m:typeList)\n\t\t\t{\n\t\t\t\tString tempType = StringUtil.getStringValue(m.get(\"server_type\"));\n\t\t\t\tif (tempType.equals(\"0\")){\n\t\t\t\t\ttype += \"IMS SIP\" + \",\";\n\t\t\t\t}else if (tempType.equals(\"1\")){\n\t\t\t\t\ttype += \"软交换SIP\" + \",\";\n\t\t\t\t}else if (tempType.equals(\"2\")){\n\t\t\t\t\ttype += \"H248\" + \",\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ttype = type.substring(0, type.length() - 1);\n\t\t\tinfoList.get(0).put(\"server_type\", type);\n\t\t}\n\t\treturn infoList;\n\t}", "private void getAgentTypesFromFile(){\n \t\tagentTypes= agentTypesProvider.GetAgentTypes();\n \t}", "public List<DataType> listDataTypes() throws IOException,\n\t\t\tClassNotFoundException {\n\t\treturn list(DataType.class);\n\t}", "@Override\n protected AdqlValidator.ValidatorTable[] getExtraTables() {\n TopcatModel[] tcModels = getTopcatModels();\n List<AdqlValidator.ValidatorTable> vtList =\n new ArrayList<AdqlValidator.ValidatorTable>();\n for ( int it = 0; it < tcModels.length; it++ ) {\n TopcatModel tcModel = tcModels[ it ];\n String[] aliases = getUploadAliases( tcModel );\n for ( int ia = 0; ia < aliases.length; ia++ ) {\n String tname = \"TAP_UPLOAD.\" + aliases[ ia ];\n vtList.add( toValidatorTable( tcModel, tname ) );\n }\n }\n return vtList.toArray( new AdqlValidator.ValidatorTable[ 0 ] );\n }", "private TabulatorItems[] getJsonArrayOfItems(Resource resource) {\n ObjectMapper mapper = new ObjectMapper();\n TabulatorItems[] items = null;\n try {\n items = mapper.readValue(new InputStreamReader(resource.getInputStream(), StandardCharsets.UTF_8), TabulatorItems[].class);\n } catch (IOException ex) {\n Logger.getLogger(CollectionApiUIImpl.class.getName()).log(Level.SEVERE, null, ex);\n }\n return items;\n }", "String getTabela();", "public String[] getVideoDevicesList();", "public PayloadType[] getTextPayloadTypes();", "public String[] getSoundDevicesList();", "ResponseEntity<List<Type>> findTaskTypes();", "public static final String[] getSourceTypeList() {\n final SourceType[] types = SourceType.values();\n final String[] displayStrings = new String[types.length];\n for(int i = 0; i < types.length; i++) {\n displayStrings[i] = JMeterUtils.getResString(types[i].propertyName);\n }\n return displayStrings;\n }", "UserType[] getUserTypes();", "public List<Device> getAllDevices(DeviceType type) {\n LOG.info(\"Starting get all OpenCL device by platform \" + platform + \".\");\n int[] numDevicesArray = new int[1];\n long deviceType = type.toCLType();\n CL.clGetDeviceIDs(platform, deviceType, 0, null, numDevicesArray);\n int numDevices = numDevicesArray[0];\n LOG.info(\"Found \" + numDevices + \" OpenCL devices.\");\n cl_device_id[] allRawDevices = new cl_device_id[numDevices];\n CL.clGetDeviceIDs(platform, deviceType, numDevices, allRawDevices, null);\n return Arrays.stream(allRawDevices)\n .filter(Objects::nonNull)\n .map(rawDevice -> new Device(rawDevice, this))\n .collect(Collectors.toList());\n }", "List<Type> getAllTypeList();", "public DeviceOptionType getType();", "public ShowTypesResponse showTypes(ShowTypesRequest request) throws GPUdbException {\n ShowTypesResponse actualResponse_ = new ShowTypesResponse();\n submitRequest(\"/show/types\", request, actualResponse_, false);\n\n for (int i_ = 0; i_ < actualResponse_.getTypeIds().size(); i_++) {\n setTypeDescriptorIfMissing(actualResponse_.getTypeIds().get(i_), actualResponse_.getLabels().get(i_), actualResponse_.getTypeSchemas().get(i_), actualResponse_.getProperties().get(i_));\n }\n\n return actualResponse_;\n }", "public String[][] getType(String endPath) {\r\n\t\tString[][] type = null;\r\n\r\n\t\ttry {// provo a leggere il file xml\r\n\t\t\ttype = typeXml.typeXml(endPath);\r\n\t\t} catch (XmlException e) {\r\n\t\t\tlogger.error(err + endPath, e);\r\n\t\t\ttype = null;\r\n\t\t}\r\n\r\n\t\treturn type;\r\n\t}", "public Hashtable getDataTypeDefinitions() {\n return ComponentHelper.getComponentHelper(this).getDataTypeDefinitions();\n }", "public JSONArray ObtenerTipoProducto()\r\n {\r\n JSONArray Tproductos = new JSONArray();\r\n JSONObject Tproducto = new JSONObject();\r\n \r\n try\r\n {\r\n this.cn = getConnection();\r\n this.st = this.cn.createStatement();\r\n String sql;\r\n sql = \"SELECT * FROM tipo_producto\";\r\n this.rs = this.st.executeQuery(sql);\r\n \r\n while(this.rs.next())\r\n {\r\n TipoProducto tp = new TipoProducto(rs.getString(\"cod_tipo_producto\"), rs.getString(\"nombre_tipo_producto\"));\r\n Tproducto = tp.getJSONObject();\r\n System.out.printf(Tproducto.toString());\r\n Tproductos.add(Tproducto);\r\n }\r\n \r\n this.desconectar();\r\n }\r\n \r\n catch(Exception e)\r\n {\r\n e.printStackTrace();\r\n }\r\n \r\n return(Tproductos);\r\n }", "public String[] getFfTypes(){\n return ffc.getFfTypes();\n }", "public synchronized MonitoringDevice fromJSON(String json){\n\t\t\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\n\t\t//Convert object to JSON string and pretty print\n\t\tMonitoringDevice mDeviceTemp = null;\n\t\t\n\t\ttry {\n\t\t\n\t\t\tmDeviceTemp = mapper.readValue(json, MonitoringDevice.class);\n\t\t\t\n\t\t\tlogger.debug(\"Json object read:\" + mDeviceTemp.toJson());\n\t\t\t\n\t\t\tlogger.debug(\"Monitoring device id given:\" + mDeviceTemp.getId() );\n\t\t\tlogger.debug(\"Monitoring address given:\" + mDeviceTemp.getIp_address() );\n\t\t\t\n\t\t\tDeviceTypeContainer deviceTypeContainer = (DeviceTypeContainer) this.getReferenceContainer(\"DeviceType\");\t\t\t\n\t\t\tDeviceType deviceTypeTmp = (DeviceType) deviceTypeContainer.getObject(mDeviceTemp.getType().getId());\n\t\t\t\n\t\t\tif (deviceTypeTmp != null) {\n\t\t\t\tmDeviceTemp.setType(deviceTypeTmp);\n\t\t\t} else {\n\t\t\t\tdeviceTypeContainer.fromJSON(mDeviceTemp.getType().toJson());\n\t\t\t}\n\t\t\t\n\t\t\tSignalContainer signalContainer = (SignalContainer) this.getReferenceContainer(\"Signal\");\n\t\t\tfor (int i=0; i < mDeviceTemp.inputOutputPorts.size(); i++){\n\t\t\t\tInputOutputPort inputOutputPort = mDeviceTemp.inputOutputPorts.get(i);\n\t\t\t\tSignal signal = (Signal) signalContainer.getObject(inputOutputPort.getSignalType().getId());\n\t\t\t\t\n\t\t\t\tif (signal == null){\n\t\t\t\t\tsignalContainer.fromJSON(inputOutputPort.getSignalType().toJson());\n\t\t\t\t} else { \n\t\t\t\t\tinputOutputPort.setSignalType(signal);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tmDeviceTemp.updateIndexes();\n\n\t\t} catch (JsonParseException e) {\n\t\t\tlogger.error(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t} catch (JsonMappingException e) {\n\t\t\tlogger.error(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn mDeviceTemp;\n\t}", "private JSONObject getCPUFreqsJSON(List<Double[]> cpus) {\r\n Double[] cpu = null;\r\n int cpu_num = cpus.size();\r\n\r\n JSONObject freq_max = new JSONObject();\r\n for (int i = 0; i < cpu_num; i++) {\r\n String x = \" \" + Integer.toString(i) + \") \";\r\n cpu = cpus.get(i);\r\n double x1 = cpu[1];\r\n if (x1 != 0) {\r\n try {\r\n freq_max.put(Integer.toString(i), x1);\r\n } catch (JSONException e) {\r\n\r\n }\r\n }\r\n }\r\n return freq_max;\r\n }", "@Deprecated\r\n private void setDevices() throws ClassNotFoundException {\n\r\n installedDevices = new Device[deviceName.length];\r\n\r\n for (int i = 0; i < deviceName.length; i++) {\r\n\r\n //Class<?> eine = Class.forName(deviceName[0]);\r\n try {\r\n Constructor<?>[] ctors = Class.forName(deviceName[i]).getDeclaredConstructors();\r\n Constructor<?> ctor = null;\r\n for (Constructor<?> c : ctors) {\r\n if (c.getGenericParameterTypes().length == 0) {\r\n ctor = c;\r\n }\r\n }\r\n ctor.setAccessible(true);\r\n Device device = (Device) ctor.newInstance();\r\n\r\n installedDevices[i] = device;\r\n\r\n } catch (Exception e) {\r\n throw new ClassNotFoundException(\r\n \"Ist abgestuerzt, weil Klasse aus Config nicht existiert oder im falschen ordner sich befindet\"\r\n + e + \".\");\r\n }\r\n\r\n }\r\n\r\n }", "public interface IFileDataTypeReader {\n\t\n\t Map<String, String> getColumnAndDataType(String fileName, ExtendedDetails dbDetails) throws ZeasException;\n\t\n\t List<List<String>> getColumnValues() throws ZeasException;\n}", "private void loadDia() throws JSONException {\n\n\n String json = \"{\\n\" +\n \" \\\"mes\\\": 10,\\n\" +\n \" \\\"ano\\\": 2017,\\n\" +\n \" \\\"dias\\\":[\\n\" +\n \" {\\n\" +\n \" \\\"dia\\\":1,\\n\" +\n \" \\\"titulos\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"asd\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$4050,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdsaf\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$50,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"2a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$450,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 2,\\n\" +\n \" \\\"sinal\\\": 2,\\n\" +\n \" \\\"grupo\\\": 2,\\n\" +\n \" \\\"nome\\\": \\\"1b\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$40,00\\\"\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"dia\\\":13,\\n\" +\n \" \\\"titulos\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 3,\\n\" +\n \" \\\"sinal\\\": 3,\\n\" +\n \" \\\"grupo\\\": 3,\\n\" +\n \" \\\"nome\\\": \\\"13a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$450,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 4,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"13b\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$40,00\\\"\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"dia\\\":16,\\n\" +\n \" \\\"titulos\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 5,\\n\" +\n \" \\\"sinal\\\": 5,\\n\" +\n \" \\\"grupo\\\": 2,\\n\" +\n \" \\\"nome\\\": \\\"16a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$52,00\\\"\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"dia\\\":18,\\n\" +\n \" \\\"titulos\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 6,\\n\" +\n \" \\\"sinal\\\": 4,\\n\" +\n \" \\\"grupo\\\": 3,\\n\" +\n \" \\\"nome\\\": \\\"18a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$52,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 7,\\n\" +\n \" \\\"sinal\\\": 5,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"18a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$2,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 8,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 2,\\n\" +\n \" \\\"nome\\\": \\\"18a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$2000,00\\\"\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \"}\";\n\n\n //Toast.makeText(getApplicationContext(), \"certo\",Toast.LENGTH_LONG).show();\n }", "public List<String> getDataPointTypes() {\n Object[] dpTypes = (Object[])configMap.get(DATA_POINT_TYPES);\n List<String> types = Utility.downcast( dpTypes );\n return types;\n }", "public void getTypes(HttpServletResponse resp, List<MobilityType> types) {\n try {\n if (types == null) {\n types = new ArrayList<>();\n types.addAll(Arrays.asList(MobilityType.values()));\n }\n String json = new Genson().serialize(types);\n resp.setContentType(\"application/json\");\n resp.getOutputStream().write(json.getBytes());\n } catch (IOException exp) {\n exp.printStackTrace();\n }\n }", "ArrayList<String> getAllDatatypeIds();", "public VinDevices getDevice(String id_device)\n\t\t{\n\t\t\tList<?> dataAux;\n\t\t\tVinDevices Arecord = new VinDevices();\n\t\t\ttry{\n\t\t\t\tdataAux =\tthis.getListaBaseTable(\"id_device='\"+id_device+\"'\");\n\t\t\t\tArecord = (VinDevices)dataAux.get(0);\n\t\t\t}\n\t\t\tcatch(Exception e){}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tdataAux = null;\n\t\t\t}\n\t\t\treturn Arecord;\t\t\t\t\n\t\t\t\n\t\t}", "public Set<String> getNSDsSetFromConfig()\n {\n DMLogger.methodStarted();\n\n String jsonTxt = \"\";\n try\n {\n jsonTxt = ssh.runCommand( \"less /etc/ddn/directmon/system-config.json\" );\n }\n catch( Exception e )\n {\n String errorText = \" Error with 'ssh.runCommand( \\\"less /etc/ddn/directmon/system-config.json\\\" );' , e\";\n DMLogger.errorInMethod( errorText );\n throw new RuntimeException( errorText );\n }\n\n JSONObject json = ( JSONObject ) JSONSerializer.toJSON( jsonTxt );\n Set<String> s = json.keySet();\n\n List<String> solutionsWithNSD = new ArrayList<String>();\n\n List<String> solutionTypes = new ArrayList<String>();\n for( Object value : s )\n {\n\n if( !value.toString().contains( \":sfa\" ) )\n {\n Set<String> keySet = json.getJSONObject( value.toString() ).keySet();\n solutionsWithNSD.addAll( keySet );\n solutionTypes.add( value.toString() );\n }\n\n }\n\n List<Collection> nsdAndStorageList = new ArrayList<Collection>();\n for( Object value : s )\n {\n\n if( !value.toString().contains( \":sfa\" ) )\n {\n for( String nsdSolution : solutionsWithNSD )\n {\n nsdAndStorageList.add( json.getJSONObject( value.toString() ).getJSONObject( nsdSolution ).values() );\n }\n }\n }\n\n List<String> nsdList = new ArrayList<String>();\n for( Collection aNsdAndStorageList : nsdAndStorageList )\n {\n int currentNdsCount = aNsdAndStorageList.toArray()[0].toString().split( \"],\" ).length;\n\n for( int j = 0; j < currentNdsCount; j++ )\n {\n // [[\"qa-nsd1\"\n String tmp = aNsdAndStorageList.toArray()[0].toString().split( \"],\" )[j].split( \",\\\"nsd\\\",\" )[0];\n tmp = tmp.substring( tmp.indexOf( \"\\\"\" ) + 1, tmp.length() - 1 );\n nsdList.add( tmp );\n }\n }\n\n Set<String> result = new TreeSet<String>( nsdList );\n\n DMLogger.methodFinished( result );\n return result;\n }", "public static ArrayList<DeviceService> getServices (JSONArray jsonArray){\n ArrayList<DeviceService> services = new ArrayList<DeviceService>();\n\n for (int i = 0; i < jsonArray.length(); i++) {\n try {\n JSONObject o = jsonArray.getJSONObject(i);\n DeviceService serv = new DeviceService(o.getString(Utility.ServiceName), o.getString(Utility.ServiceType));\n\n try {\n JSONArray coms = o.getJSONArray(Utility.Commands);\n Log.w(\"Commands\", coms.toString());\n for (int j = 0; j < coms.length(); j++) {\n try {\n serv.addCommand(new Command(coms.getJSONObject(j).getString(Utility.CommandName),\n coms.getJSONObject(j).getString(Utility.CommandType)));\n }\n catch (JSONException e) {\n Log.w(\"Command\", \"Error adding command\");\n }\n }\n }\n catch (JSONException e) {\n Log.w(\"Service\", \"No Custom Commands Here\");\n }\n\n services.add(serv);\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n return services;\n }" ]
[ "0.60408574", "0.5785698", "0.572008", "0.5689644", "0.56785154", "0.56009185", "0.5543668", "0.5463088", "0.54205793", "0.53897345", "0.5384857", "0.53707767", "0.53422105", "0.5321383", "0.52378607", "0.5207036", "0.519227", "0.5172228", "0.5147492", "0.5139838", "0.5131315", "0.5129114", "0.51262486", "0.51147044", "0.5112287", "0.51066077", "0.5038945", "0.5026992", "0.5022937", "0.502089", "0.49974045", "0.49695116", "0.49662238", "0.49651262", "0.49405548", "0.4936627", "0.49251863", "0.49171472", "0.49012256", "0.48975903", "0.48895907", "0.4889511", "0.488582", "0.486961", "0.48695627", "0.48645794", "0.48560134", "0.48553887", "0.4846677", "0.48453447", "0.48320717", "0.48285002", "0.4824605", "0.48245773", "0.48131347", "0.47981888", "0.47843885", "0.47761455", "0.47671962", "0.476665", "0.47659826", "0.4738206", "0.47185445", "0.47179094", "0.47168842", "0.47163332", "0.47152793", "0.47143105", "0.46950233", "0.4694675", "0.46919385", "0.46904382", "0.4687653", "0.46839052", "0.46825987", "0.46651047", "0.46592867", "0.465631", "0.46550632", "0.46513", "0.46492708", "0.46486524", "0.4647838", "0.46444976", "0.46252394", "0.46229103", "0.4620389", "0.46164542", "0.4614078", "0.46112648", "0.46102673", "0.46100006", "0.46068376", "0.46020284", "0.45945522", "0.45941466", "0.4593401", "0.4587559", "0.4586949", "0.45835507", "0.45809767" ]
0.0
-1
To get customer table form json file and but it in array
public static void hideKeyboard(Activity activity) { View view = activity.findViewById(android.R.id.content); if (view != null) { InputMethodManager imm = (InputMethodManager) activity.getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(view.getWindowToken(), 0); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tprotected JSONArray getTablero() {\n\t\tJSONArray jsa = new JSONArray();\r\n\t\tfor (int i = 0; i < this.tableroDomino.size(); i++) {\r\n\t\t\tjsa.put(this.tableroDomino.get(i).toJSON());\r\n\t\t}\r\n\t\treturn jsa;\r\n\t}", "List<Map<String, Object>> getTableValuesWithHeaders();", "public JSONArray getOrders() throws Exception;", "private TabulatorItems[] getJsonArrayOfItems(Resource resource) {\n ObjectMapper mapper = new ObjectMapper();\n TabulatorItems[] items = null;\n try {\n items = mapper.readValue(new InputStreamReader(resource.getInputStream(), StandardCharsets.UTF_8), TabulatorItems[].class);\n } catch (IOException ex) {\n Logger.getLogger(CollectionApiUIImpl.class.getName()).log(Level.SEVERE, null, ex);\n }\n return items;\n }", "@Override\n\tpublic Customer[] readAll() {\n\n\t\tString selectQuery = String.format(\"SELECT * FROM %s ;\", TABLE_NAME);\n\t\tCustomer[] result = null;\n\n\t\ttry (Statement s = dbCon.createStatement()) {\n\t\t\tResultSet rS = s.executeQuery(selectQuery);\n\n\t\t\tArrayList<Customer> resultTmp = new ArrayList<Customer>();\n\n\t\t\twhile (rS.next()) {\n\t\t\t\tresultTmp.add(\tresultTmp.size(),\n\t\t\t\t\t\t\t\tnew Customer(rS.getInt(COLUMN_NAME_ID),\n\t\t\t\t\t\t\t\t\t\t\trS.getString(COLUMN_NAME_FIRST_NAME),\n\t\t\t\t\t\t\t\t\t\t\trS.getString(COLUMN_NAME_LAST_NAME),\n\t\t\t\t\t\t\t\t\t\t\trS.getString(COLUMN_NAME_EMAIL),\n\t\t\t\t\t\t\t\t\t\t\trS.getString(COLUMN_NAME_KNICKNAME),\n\t\t\t\t\t\t\t\t\t\t\trS.getDate(COLUMN_NAME_BIRTHDATE).toLocalDate(),\n\t\t\t\t\t\t\t\t\t\t\trS.getDouble(COLUMN_NAME_CREDITS))\n\t\t\t\t\t\t\t\t);\n\t\t\t}\n\t\t\trS.close();\n\n\t\t\tresult = new Customer[resultTmp.size()];\n\t\t\tresultTmp.toArray(result);\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"An SQL error occured during retrieving all data from of customer table : \" + e.getMessage());\n\t\t}\n\n\t\treturn result;\n\t}", "List<List<Object>> getTableValues();", "private void loadAllToTable() {\n \n try {\n ArrayList<CustomerDTO> allCustomers=cusCon.getAllCustomers();\n DefaultTableModel dtm=(DefaultTableModel) tblCustomers.getModel();\n dtm.setRowCount(0);\n \n if(allCustomers!=null){\n for(CustomerDTO customer:allCustomers){\n \n Object[] rowdata={\n customer.getcId(),\n customer.getcName(),\n customer.getContact(),\n customer.getCreditLimit(),\n customer.getCreditDays()\n };\n dtm.addRow(rowdata);\n \n }\n }\n } catch (Exception ex) {\n Logger.getLogger(AddCustomer.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "protected Table readTable(JSONObject json) throws JSONException, TypeException {\n System.err.println(\"readTable json = \" + json);\n\n\t// allocate a table\n\tTable table = new DefaultTable();\n\n\t// get no of rows\n\tint rowCount = json.getInt(\"rowCount\");\n\n\t// get no of columns\n\tint colCount = json.getInt(\"colCount\");\n\n\t// create table definition\n\tTableHeader header = new DefaultTableHeader();\n\n JSONArray headerPairs = json.getJSONArray(\"header\");\n \n\t// now read colCount column definitions\n\tfor (int col=0; col < colCount; col++) {\n JSONObject headerPair = headerPairs.getJSONObject(col);\n\n\t // read name\n\t String name = headerPair.getString(\"name\");\n\n\t // read type\n String typeStr = headerPair.getString(\"type\");\n ProbeAttributeType type = decodeType(typeStr);\n\n\t // add it to the header\n\t header.add(name, type);\n\t \n\t}\n\n\t// set column definitions\n\ttable.defineTable(header);\n\n JSONArray rows = json.getJSONArray(\"rows\");\n \n\t// now read all of the rows\n\tfor (int row=0; row < rowCount; row++) {\n JSONArray jsonRow = rows.getJSONArray(row);\n\n\t TableRow thisRow = new DefaultTableRow();\n\n\t // visit columns\n\t for (int col=0; col < colCount; col++) {\n\t\t// find the type in the header\n\t\tTableAttribute attribute = header.get(col);\n\t\tProbeAttributeType type = attribute.getType();\n\n\t\t// decode a value, \n\t\tObject value = decodeValue(type, jsonRow.get(col));\n\n\t\t// add value to the row\n\t\tthisRow.add(value);\n\t }\n\n\t // add the row to the table\n\t try {\n\t\ttable.addRow(thisRow);\n\t } catch (TableException te) {\n\t\t// if the data is bad it must be a transmission error\n\t\tthrow new JSONException(te.getMessage());\n\t }\n\t}\n\n\treturn table;\n\n }", "@SneakyThrows\n public List<Map<String, String>> getTable(String tableName, int page, int pageSize) {\n try (CloseableHttpClient client = HttpClientBuilder.create()\n .setDefaultRequestConfig(getRequestConfig())\n .build()) {\n String url = KodexaPlatform.getUrl() + \"/api/stores/\" + ref.replace(\":\", \"/\") + \"/rows\";\n log.info(\"Connecting to [\" + url + \"]\");\n\n URIBuilder builder = new URIBuilder(url);\n builder.setParameter(\"page\", String.valueOf(page)).setParameter(\"pageSize\", String.valueOf(pageSize)).setParameter(\"table\", tableName);\n\n HttpGet httpGet = new HttpGet(builder.build());\n httpGet.addHeader(\"x-access-token\", KodexaPlatform.getAccessToken());\n\n HttpResponse response = client.execute(httpGet);\n\n if (response.getStatusLine().getStatusCode() != 200) {\n throw new KodexaException(\"Unable to create a session, check your access token and URL [\" + response.getStatusLine().getStatusCode() + \"]\");\n }\n\n String responseJson = IOUtils.toString(response.getEntity().getContent(), StandardCharsets.UTF_8);\n Page<StoredRow> rowPage = jsonOm.readValue(responseJson, new TypeReference<Page<StoredRow>>() {\n });\n\n return rowPage.getContent().stream().map(StoredRow::getData).collect(Collectors.toList());\n\n\n } catch (IOException e) {\n throw new KodexaException(\"Unable to create a session on Kodexa\", e);\n }\n }", "public List<JsonObject> notasDeVentas(){\n String nv[][]= pedidoMaterialRepository.buscarNotaVenta();\n List<JsonObject> js = new ArrayList<JsonObject>();\n \n for (int i=0;i<nv.length;i++){\n \n JsonObject jo = new JsonObject();\n jo.put(\"notaDeVenta\", nv[i][0]);\n jo.put(\"descripcion\", nv[i][1]);\n jo.put(\"cliente\", nv[i][2]);\n js.add(jo);\n }\n \n return js;\n }", "public Object[][] getTableData(){\r\n if (ufeRunner == null || renders == null || htmlObjLang == null) {\r\n return null;\r\n }\r\n final ArrayList<Object[]> lista = new ArrayList<>();\r\n Object[] fila = new Object[2];\r\n fila[0] = \"CssHelper\";\r\n if (ufeRunner.cssHelper == null) {\r\n fila[1] = \"null\";\r\n }else{\r\n fila[1] = ufeRunner.cssHelper.getPath();\r\n }\r\n lista.add(fila);\r\n fila = new Object[2];\r\n fila[0] = \"\";\r\n fila[1] = \"\";\r\n lista.add(fila);\r\n for (ImportedInstance ufeImport : ufeRunner.imports) {\r\n fila = new Object[2];\r\n fila[0] = \"UfeImport\";\r\n fila[1] = ufeImport.path;\r\n lista.add(fila);\r\n }\r\n if (ufeRunner.imports.size() < 1) {\r\n fila = new Object[2];\r\n fila[0] = \"Sin ufe imports\";\r\n fila[1] = \"Sin ufe imports\";\r\n lista.add(fila);\r\n }\r\n fila = new Object[2];\r\n fila[0] = \"\";\r\n fila[1] = \"\";\r\n lista.add(fila);\r\n ufeRunner.scope.symbolTable.forEach((key, val)->{\r\n Object[] f = new Object[2];\r\n f[0] = key;\r\n if (val.isPresent()) {\r\n Object obj = val.get();\r\n if (obj instanceof Object[]) {\r\n StringBuilder sb = new StringBuilder();\r\n sb.append(\"{ \");\r\n for (Object o : (Object[])obj) {\r\n sb.append(o.toString()).append(\",\");\r\n }\r\n sb.setLength(sb.length() - 1);\r\n sb.append(\" }\");\r\n f[1] = sb.toString();\r\n }else{\r\n f[1] = obj.toString();\r\n }\r\n }else{\r\n f[1] = \"null\";\r\n }\r\n lista.add(f);\r\n });\r\n Object[][] result = new Object[lista.size()][2];\r\n for (int i = 0; i < lista.size(); i++) {\r\n fila = lista.get(i);\r\n for (int j = 0; j < 2; j++) {\r\n result[i][j] = fila[j];\r\n }\r\n }\r\n return result;\r\n }", "public List<Customer> read() {\n Connection conn = ConnectionFactory.getConnection();\n PreparedStatement ppst = null;\n ResultSet rest = null;\n List<Customer> customers = new ArrayList<>();\n try {\n ppst = conn.prepareStatement(\"SELECT * FROM customer\");\n rest = ppst.executeQuery();\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 }", "public Iterable<Map<String,String>> get() {\n\t\tList<Map<String,String>> mapList = new ArrayList<Map<String,String>>();\n\t\tJsonParser parser = new JsonParser(); \n\t\tJsonObject json ;\n\t\tfor(String jsonString:jsonArr) {\n\t\t\tMap<String,String> sourceMap = new HashMap<String,String>();\n\t\t\tjson = (JsonObject) parser.parse(jsonString);\n\t\t\tsourceMap.put(\"SENSORID\", json.get(\"taxi_identifier\").toString());\n\t\t\tsourceMap.put(\"trip_time_in_secs\", json.get(\"trip_time_in_secs\").toString());\n\t\t\tsourceMap.put(\"trip_distance\", json.get(\"trip_distance\").toString());\n\t\t\tsourceMap.put(\"fare_amount\", json.get(\"fare_amount\").toString());\n\t\t\tsourceMap.put(\"tip_amount\", json.get(\"tip_amount\").toString());\n\t\t\tsourceMap.put(\"surcharge\", json.get(\"surcharge\").toString());\n\t\t\tmapList.add(sourceMap);\n\t\t}\n\t\t\n\t\t\n\t\treturn mapList;\n\t}", "List<Customer> loadAllCustomer();", "public JSONArray getTrades() throws Exception;", "protected JSONArray getTacoFichas() {\n\t\tJSONArray jsa = new JSONArray();\r\n\t\tfor (int i = 0; i < this.fichasMesa.size(); i++) {\r\n\t\t\tjsa.put(this.fichasMesa.get(i).toJSON());\r\n\t\t}\r\n\t\treturn jsa;\r\n\t}", "@Override\n\tpublic JSONObject getAll(Map<String, Object> map) {\n\t\tList<Lic> list = licDao.getAll(map);\n\t\tMap<String,Object> jsonMap = new HashMap<String,Object>();\n\t\tObject[][] objs = new Object[list.size()][];\n\t\tfor(int i=0;i<list.size();i++){\n\t\t\tLic lic = list.get(i);\n\t\t\tobjs[i] = new Object[]{lic.getId(),lic.getFaz_id(),lic.getDaoz_id(),lic.getLiclxb_id(),lic.getZhi(),\n\t\t\t\t\tlic.getMeikxxb_id(),lic.getBeiz()};\n\t\t}\n\t\tjsonMap.put(\"data\", objs);\n\t\tJSONObject result = JSONObject.fromObject(jsonMap);\n\t\treturn result;\n\t}", "private String getListData() {\n String jsonStr = \"{ \\\"users\\\" :[\" +\n \"{\\\"name\\\":\\\"Ritesh Kumar\\\",\\\"designation\\\":\\\"Team Leader\\\",\\\"department\\\":\\\"Main office\\\",\\\"location\\\":\\\"Brampton\\\"}\" +\n \",{\\\"name\\\":\\\"Frank Lee\\\",\\\"designation\\\":\\\"Developer\\\",\\\"department\\\":\\\"Developer's office\\\",\\\"location\\\":\\\"Markham\\\"}\" +\n \",{\\\"name\\\":\\\"Arthur Young\\\",\\\"designation\\\":\\\"Charted Accountant\\\",\\\"department\\\":\\\"Account office\\\",\\\"location\\\":\\\"Toronto\\\"}] }\";\n return jsonStr;\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic JSONObject[] selectAllJSON(String clase){\n \tJSONObject[] json=null;\n \ttry{\n\t \tList<JSONable> lista= selectAll(clase);\n\t \tInteger size= lista.size();\n\t\t\tjson=new JSONObject[size];\n\t\t\tInteger index=0;\n\t\t\tfor(JSONable j: lista){\n\t\t\t\t//System.out.println(j.toString());\n\t\t\t\tjson[index]= j.toJSON();\n\t\t\t\tindex++;\n\t\t\t}\n \t}catch(Exception e){\n \t\te.printStackTrace();\n \t\treturn null;\n \t}\n\t\treturn json;\t\t\n }", "public List<EstadoCita> obtenerDatosJSON(String rta){\n Log.e(\"Agenda JSON\",rta);\n // La lista de generos a retornar\n List<EstadoCita> lista = new ArrayList<EstadoCita>();\n try{\n /**\n * accedemos al json como array, ya que estamos 100% seguros de que lo que devuelve es un array\n * y no un objeto.\n */\n JSONArray json = new JSONArray(rta);\n for (int i=0; i<json.length(); i++){\n JSONObject row = json.getJSONObject(i);\n EstadoCita g = new EstadoCita();\n g.setId(row.getInt(\"id\"));\n g.setEstado(row.getString(\"estado\"));\n // g.setMedico((Medico) row.get(\"medico\"));\n // g.setHora((Hora) row.get(\"hora\"));\n lista.add(g);\n\n\n }\n } catch (JSONException e){\n e.printStackTrace();\n }\n return lista;\n }", "public static JSONObject constructEmpyTable(JSONObject obj) {\n JSONObject data = new JSONObject();\n data.put(\"repo\", obj.get(\"repo_name\")); // name of the repository associated with this file\n data.put(\"classes\", new JSONObject());\n return data;\n }", "public static void loadValidDataJson(JsonObject json,ArrayList<ParseString> rowList) {\n\r\n JsonArray custarr = new JsonArray();\r\n\r\n for (int n = 0; n < rowList.size(); n++) {\r\n\r\n JsonObject cust = new JsonObject();\r\n cust.put(\"color\",rowList.get(n).color);\r\n cust.put(\"firstname\",rowList.get(n).firstname);\r\n cust.put(\"lastname\",rowList.get(n).lastname);\r\n cust.put(\"phonenumber\",rowList.get(n).phonenumber);\r\n cust.put(\"zipcode\",rowList.get(n).zipcode);\r\n custarr.add(cust);\r\n cust.remove(n);\r\n }\r\n json.put(\"entries\",custarr);\r\n }", "private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"[email protected]\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"[email protected]\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"[email protected]\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"[email protected]\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"[email protected]\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\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}", "public List<String> getRows();", "Object getTables();", "private void getPlanSkus() {\n\n List<PlanSkuVo> planList = new ArrayList<>();\n final Session session = sessionManager.getSession();\n\n\n PreparedStatement statement = session.prepare(\"SELECT * FROM PLANSKU\");\n BoundStatement boundStatement = statement.bind();\n ResultSet result = session.execute(boundStatement);\n\n if (result == null){\n log.info(\"No Planskus found\");\n// throw new NoDataAvailableException(\"There are no Plans available right now\");\n }\n else {\n log.info(\"Populating results for getPlanSkus\");\n result.forEach(row -> {\n PlanSkuVo planSkuVo = new PlanSkuVo(row.getString(\"product_id\"),\n row.getString(\"sku_id\"),\n row.getString(\"prod_desc\"),\n row.getString(\"prod_frenchname\"),\n row.getString(\"prod_name\"),\n row.getMap(\"sku_features\", String.class, String.class),\n row.getInt(\"sku_order\"));\n planList.add(planSkuVo);\n });\n\n ObjectMapper mapper = new ObjectMapper();\n String jsonInString =\"\";\n try {\n jsonInString = mapper.writeValueAsString(planList);\n } catch (JsonProcessingException e) {\n log.info(\"error in forming json \");\n }\n\n getSender().tell(jsonInString, ActorRef.noSender());\n }\n\n }", "private JSONArray foodsToJson() {\n JSONArray jsonArray = new JSONArray();\n\n for (Food f : units) {\n jsonArray.put(f.toJson());\n }\n\n return jsonArray;\n }", "public List<Getable> data() {\n assertVisible();\n String[] headings = headings();\n List<List<String>> rowsWithTdStrings = get().findElements(By.tagName(\"tr\")).stream()\n // Ignore rows without TD elements\n .filter(e -> !e.findElements(By.tagName(\"td\")).isEmpty())\n // Then turn each row of TDs into a list of their string-contents\n .map(row -> row.findElements(By.tagName(\"td\")).stream().map(e -> e.getText()).collect(toList()))\n .collect(toList());\n\n List<Getable> result = new ArrayList<>();\n for (List<String> rowWithTdStrings : rowsWithTdStrings) {\n GetableMap aResult = new GetableMap();\n assertEquals(\"Different number of headings and columns\",\n headings.length, rowWithTdStrings.size());\n for (int i = 0; i < headings.length; i++) {\n aResult.put(headings[i], rowWithTdStrings.get(i));\n }\n result.add(aResult);\n }\n return result;\n }", "List<Customer> getCustomerList();", "public JsonArray GetHomeHeatingFuelOrder(String username) {\r\n\t\tJsonArray HHFOrders = new JsonArray();\r\n\r\n\t\tString query = \"\";\r\n\t\tStatement stmt = null;\r\n\r\n\t\ttry {\r\n\t\t\tif (DBConnector.conn != null) {\r\n\t\t\t\t// query = \"SELECT * FROM home_heating_fuel_orders , \";\r\n\t\t\t\tquery = \"SELECT * FROM home_heating_fuel_orders, users,customer \" + \"WHERE users.userName = '\"\r\n\t\t\t\t\t\t+ username + \"' AND \"\r\n\t\t\t\t\t\t+ \"customer.userName = users.userName AND home_heating_fuel_orders.customerID =\"\r\n\t\t\t\t\t\t+ \" customer.customerID; \";\r\n\t\t\t\tstmt = DBConnector.conn.createStatement();\r\n\t\t\t\tResultSet rs = stmt.executeQuery(query);\r\n\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\tJsonObject HHFOrder = new JsonObject();\r\n\t\t\t\t\tHHFOrder.addProperty(\"orderID\", rs.getString(\"orderID\"));\r\n\t\t\t\t\tHHFOrder.addProperty(\"customerID\", rs.getString(\"customerID\"));\r\n\t\t\t\t\tHHFOrder.addProperty(\"saleTemplateName\", rs.getString(\"saleTemplateName\"));\r\n\t\t\t\t\tHHFOrder.addProperty(\"orderDate\", rs.getString(\"orderDate\"));\r\n\t\t\t\t\tHHFOrder.addProperty(\"orderStatus\", rs.getString(\"orderStatus\"));\r\n\t\t\t\t\tHHFOrder.addProperty(\"fuelAmount\", rs.getString(\"amountOfLitters\"));\r\n\t\t\t\t\tHHFOrder.addProperty(\"totalPrice\", rs.getString(\"totalPrice\"));\r\n\t\t\t\t\tHHFOrder.addProperty(\"paymentMethod\", rs.getString(\"paymentMethod\"));\r\n\t\t\t\t\tHHFOrder.addProperty(\"dateSupply\", rs.getString(\"dateSupply\"));\r\n\t\t\t\t\tHHFOrder.addProperty(\"city\", rs.getString(\"city\"));\r\n\t\t\t\t\tHHFOrder.addProperty(\"street\", rs.getString(\"street\"));\r\n\t\t\t\t\tHHFOrder.addProperty(\"urgentOrder\", rs.getString(\"urgentOrder\"));\r\n\t\t\t\t\tHHFOrder.addProperty(\"fuelCompany\", rs.getString(\"fuelCompany\"));\r\n\t\t\t\t\tHHFOrders.add(HHFOrder);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Conn is null\");\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn HHFOrders;\r\n\t}", "public HashMap<Integer,String> customers() {\n ResultSet res = database.getResult();\n HashMap<Integer,String> customers = new HashMap<>();\n try {\n res = database.getStat().executeQuery(\"select * from customers\");\n while(res.next()) {\n customers.put(res.getInt(\"id_customer\"),res.getString(\"nama_customer\"));\n }\n } catch(SQLException e) {\n e.printStackTrace();\n }\n return customers;\n }", "public JSONArray ObtenerTipoProducto()\r\n {\r\n JSONArray Tproductos = new JSONArray();\r\n JSONObject Tproducto = new JSONObject();\r\n \r\n try\r\n {\r\n this.cn = getConnection();\r\n this.st = this.cn.createStatement();\r\n String sql;\r\n sql = \"SELECT * FROM tipo_producto\";\r\n this.rs = this.st.executeQuery(sql);\r\n \r\n while(this.rs.next())\r\n {\r\n TipoProducto tp = new TipoProducto(rs.getString(\"cod_tipo_producto\"), rs.getString(\"nombre_tipo_producto\"));\r\n Tproducto = tp.getJSONObject();\r\n System.out.printf(Tproducto.toString());\r\n Tproductos.add(Tproducto);\r\n }\r\n \r\n this.desconectar();\r\n }\r\n \r\n catch(Exception e)\r\n {\r\n e.printStackTrace();\r\n }\r\n \r\n return(Tproductos);\r\n }", "List<Customer> getCustomers();", "private void getDatas(JSONArray j){\n for(int i=0;i<j.length();i++){\n try {\n //Getting json object\n JSONObject json = j.getJSONObject(i);\n\n //Adding the data to array list\n mNames.add(json.getString(\"name\"));\n mIds.add(json.getString(\"exhibition_id\"));\n\n String r = json.getString(\"rate\");\n if(r.equals(\"-1\"))\n mRates.add(\"目前還沒有評分\");\n else\n mRates.add(r);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }", "@GET\n\t @Produces(MediaType.APPLICATION_JSON)\n\t @Path(\"/getMemberTable\")\n\t public Response getMemberTable(@HeaderParam(\"Authorization\") String token){\n\t\t int statusCode=404;\n\t\t JSONArray tableData= new JSONArray();\n\t\t String result;\n\t\t //Checks the token's status\n\t\t JSONObject jsonObject= checkTokenIntegrity(token);\n\t\t DBConnection databaseInstance= new DBConnection();\n\t\t try {\n\t\t\tif(!jsonObject.getBoolean(\"isValid\") && ( !jsonObject.getString(\"Role\").equals(\"Client\") || !jsonObject.getString(\"Role\").equals(\"Admin\") ))\n\t\t\t\t\t return listBook.makeCORS(Response.status(401), \"\");\n\t\t\t HashMap<String,String> memberData = new HashMap<String,String>();\t\n\t\t\t memberData.put(\"ID_Member\", jsonObject.getInt(\"ID\")+\"\");\n\t\t\t memberData.put(\"Delivered\", 0+\"\");\n\t\t\t tableData=databaseInstance.tableQuery(memberData, new HashMap<>(), \"rentals\");\n\t\t\t \n\t\t\t if(tableData.length()>0){\n\t\t\t\t statusCode=200;\n\t\t\t\t jsonObject.put(\"Result\", \"OK\");\n\t\t\t\t jsonObject.put(\"TotalRecordCount\", 10);\n\t\t\t\t jsonObject.put(\"data\", tableData);\n\t\t\t }\n\t\t} catch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\t\n\t\t \n\t\t \n\t\t result = \"\"+jsonObject;\n\t\t System.out.println(result);\n\t\treturn listBook.makeCORS(Response.status(statusCode), result);\t\t\t \t\t \n\t }", "public static List<User> getUserFromJson(String filename){\n \tString s = readJsonFile(filename);\n \tList<User> users = JSONObject.parseArray(s, User.class);\n \treturn users;\n }", "private String[] getJSONStringList() throws SQLException {\n String sql = \"select concat(c.chart_type, ', ', c.intermediate_data) content \" +\n \"from pride_2.pride_chart_data c, pride_2.pride_experiment e \" +\n \"where c.experiment_id = e.experiment_id \" +\n \"and e.accession = ? \" +\n \"order by 1\";\n\n Connection conn = PooledConnectionFactory.getConnection();\n PreparedStatement stat = conn.prepareStatement(sql);\n stat.setString(1, accession);\n ResultSet rs = stat.executeQuery();\n\n List<String> jsonList = new ArrayList<String>();\n while (rs.next()) {\n jsonList.add(rs.getString(1));\n }\n\n rs.close();\n conn.close();\n\n return jsonList.toArray(new String[jsonList.size()]);\n }", "public List<CustomerModel> getCustomers();", "private List<Table> getTables() {\n List<Table> tables = new ArrayList<>();\n\n DatastoreService datastore = DatastoreServiceFactory.getDatastoreService();\n Query query = new Query(\"Table\");\n PreparedQuery results = datastore.prepare(query);\n\n for (Entity entity : results.asIterable()) {\n String firstName = (String) entity.getProperty(\"firstName\");\n String lastName = (String) entity.getProperty(\"lastName\");\n String email = (String) entity.getProperty(\"email\");\n String phoneNumber = (String) entity.getProperty(\"phoneNumber\");\n String restName = (String) entity.getProperty(\"restName\");\n String restAdd = (String) entity.getProperty(\"restAdd\");\n String restDescrip = (String) entity.getProperty(\"restDescrip\");\n String dateTime = (String) entity.getProperty(\"dateTime\");\n String maxSize = (String) entity.getProperty(\"maxSize\");\n String otherNotes = (String) entity.getProperty(\"otherNotes\");\n List members = (List) entity.getProperty(\"members\");\n double lat = (double) entity.getProperty(\"lat\");\n double lng = (double) entity.getProperty(\"lng\");\n\n\n \n\n Table table = new Table(firstName, lastName, email, phoneNumber, restName, restAdd, restDescrip, dateTime, maxSize, otherNotes, members, lat, lng);\n tables.add(table);\n }\n return tables;\n }", "List<Customer> getList();", "public String[][] fill_table()\n {\n int j=0;\n String[][] data = new String[0][];\n for (Map.Entry<String,Descriptor> entry :parms.getDescriptors().entrySet()) {\n\n data[j][0]=entry.getValue().getId();\n data[j][1]= String.valueOf(entry.getValue().getType());\n data[j][2]= String.valueOf(entry.getValue().getCapacity());\n data[j][3]= String.valueOf(entry.getValue().getState());\n data[j][4]= String.valueOf(entry.getValue().getNbRequest());\n data[j][5]= String.valueOf(entry.getValue().getRequest());\n data[j][6]= String.valueOf(entry.getValue().getRange());\n data[j][7]= String.valueOf(entry.getValue().getService());\n Point p=entry.getValue().getPosition();\n data[j][8]= String.valueOf(p.getX());\n data[j][9]= String.valueOf(p.getY());\n j++;\n }\n return data;\n }", "@Override\n public ArrayList<IndividualCustomer> getData() {\n return customerList;\n }", "public String[][] Service(String login) throws Exception {\r\n URL url = new URL(IP() + \"/service/comp\");\r\n String list = GETConnect(login, url, \"GET\");\r\n JSONObject jo = (JSONObject) new JSONParser().parse(list);\r\n JSONArray data = (JSONArray) jo.get(\"data\");\r\n String[][] dataTable = new String[data.size()][5];\r\n for (int i = 0; i < data.size(); i++) {\r\n JSONObject datas = (JSONObject) data.get(i);\r\n dataTable[i][0] = (long) datas.get(\"idService\") + \"\";\r\n dataTable[i][1] = (String) datas.get(\"nameService\");\r\n dataTable[i][2] = (long) datas.get(\"priceService\") + \"\";\r\n dataTable[i][3] = (String) datas.get(\"description\");\r\n dataTable[i][4] = (String) datas.get(\"photo\");\r\n };\r\n return dataTable;\r\n\r\n }", "@Override\n public List<Customer> call() throws Exception {\n string = string.replace(\"[\", \"\");\n string = string.replace(\"]\",\"\");\n string = string.replace(\" \", \"\");\n String str = \"http://10.0.2.2:8082/getCustomersByID?customerIDs=\" + string.replace(\"\\\"\", \"'\");\n URLConnection urlConn;\n BufferedReader bufferedReader;\n List<Customer> customerList = new ArrayList<>();\n\n\n try {\n URL url = new URL(str);\n urlConn = url.openConnection();\n bufferedReader = new BufferedReader(new InputStreamReader(urlConn.getInputStream()));\n\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n JSONObject jsonObject = new JSONObject(line);\n Customer customer = new Customer();\n customer.setCustomerID(jsonObject.getString(\"_id\"));\n customer.setLastName(jsonObject.getString(\"lastName\"));\n customer.setFirstName(jsonObject.getString(\"firstName\"));\n customer.setPhoneNumber(jsonObject.getString(\"phoneNumber\"));\n customer.setAddress(jsonObject.getString(\"address\"));\n customer.setBalance(jsonObject.getString(\"balance\"));\n customerList.add(customer);\n\n }\n\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return customerList;\n }", "public List<PromotionalOffer> getPromotionalOffersList(){\n\n List<PromotionalOffer> promotionalOfferList = new ArrayList<PromotionalOffer>();\n\n //String promotionFileName = getFileName(\"promotionalOffer.json\");\n\n File file = new File(\"promotionalOffer.json\");\n try {\n BufferedReader bufferReader = new BufferedReader(new FileReader(file));\n Gson gson = new Gson();\n promotionalOfferList = gson.fromJson(bufferReader,new TypeToken<List<PromotionalOffer>>(){}.getType());\n\n System.out.println(promotionalOfferList);\n\n } catch(FileNotFoundException nfe) {\n logger.error(\"error, promotional offers file does not exist\");\n\n } catch (IOException ioe){\n logger.error(\"error while reading the promotional offers from the file\");\n }\n return promotionalOfferList;\n\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 }", "private ArrayList<String[]> getTableRowData() \n {\n int numRow, numCol;\n ArrayList<String[]> data = new ArrayList<>();\n numRow = jtModel.getRowCount(); \n numCol = jtModel.getColumnCount();\n String[] row;\n for(int i = 0; i< numRow; i++)\n {\n row = new String[numCol];\n for(int j = 0; j< numCol; j++)\n {\n row[j] = jtModel.getValueAt(i, j).toString();\n } \n data.add(row);\n } \n return data;\n }", "public static ArrayList<CustomerTreatment> fromJson(JSONArray jsonObjects) {\n ArrayList<CustomerTreatment> users = new ArrayList<CustomerTreatment>();\n for (int i = 0; i < jsonObjects.length(); i++) {\n try {\n users.add(new CustomerTreatment(jsonObjects.getJSONArray(i)));\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n return users;\n }", "List<Map<String, Object>> getTableValuesWithHeaders(TableParameters tableParameters);", "@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 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 static List<JSONObject> getJSONObject(String SQL){\r\n\r\n //final String SQL = \"select * from articles\";\r\n Connection con = null;\r\n PreparedStatement pst = null;\r\n ResultSet rs = null;\r\n \r\n try{\r\n\r\n con = getConnection();\r\n pst = con.prepareStatement(SQL);\r\n rs = pst.executeQuery();\r\n\r\n }catch(SQLException ex){\r\n\r\n System.out.println(\"Error:\" + ex.getMessage());\r\n\r\n }\r\n\r\n List<JSONObject> resList = JsonService.getFormattedResultSet(rs);\r\n return resList;\r\n\r\n }", "@Parameters\n\tpublic static Collection<Object[]> data() {\n\t\treturn Arrays.asList(new Object[][]{\n\t\t\t{\"Cuenta de Juan\", 200,1,75, 125},\t\t\t\t// Zone 1\n\t\t\t{\"Cuenta de Maria\", 500, 2, 250, 250},\t\t\t// Zone 2\n\t\t\t{\"Cuenta de Ignacio\", 1850, 3, 50, 1800},\t\t// Zone 3\n\t\t\t}); \n\t}", "public JSONObject reader_File(JSONObject obj)\n {\n CSVReader reader = null;\n try\n {\n\n String path = obj.get(\"path\").toString(); //retrieve path of file from json obj\n JSONObject json = (JSONObject)obj.get(\"query\"); //retrieve json object that has query from json obj\n\n reader = new CSVReader(new FileReader(path), ',');\n\n String [] nextLine;\n\n //Read one line at a time\n JSONObject json3 = new JSONObject();\n\n //need to use JSONArray\n JSONArray jArr = new JSONArray(); //create an object of JSONArray\n while ((nextLine = reader.readNext()) != null)\n {\n\n JSONObject json2 = search(json, nextLine); //return json object that contains all the value of each lines if query matches\n\n if(!json2.isEmpty()){ //check whether json2 is empty\n jArr.add(json2); //insert json2 in in jsonArray\n\n }\n\n }\n json3.put(\"response\", jArr); //insert jArr in json3\n return json3;\n\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n finally {\n try {\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return null;\n }", "private void getAllUserElements(String jsonData){\n\t \n\t\t\n\t\t\n\t\t\t\n\t\n\t\t\n\t\t\ttry {\n\t\t\t\tJSONObject obj = new JSONObject(jsonData);\n\n\t\t\t\tJSONArray arr = obj.getJSONArray(\"list\");\n\t\t\t\t\n\t\t\t\tmyUsers = new TibbrUser[arr.length()];\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < arr.length(); i++)\n\t\t\t\t{\n\t\t\t\t String ID = arr.getJSONObject(i).getString(\"id\");\n\t\t\t\t String login = arr.getJSONObject(i).getJSONObject(\"jive\").getString(\"username\");\n\t\t\t\t myUsers[i] = new TibbrUser (login, ID); \n\t\t\t\t}\n\t\t\t} catch (JSONException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\n\t\t\n\t\t\n\t\n\t \t \n\t}", "@GetMapping(\"/allCustomers\")\n public List<Customer> getAllCusData() {\n return customerData.showList();\n }", "private List<AdhocCustomer> getSearchUniverseSearchAdhocCustomerDataSet() {\n // The initialization of the result list must be done here\n //\n //\n return AdhocCustomer.findAll().collect(Collectors.toList());\n }", "public CustomerPayment getCustomerPayment(String response) throws Exception {\n CustomerPayment customerPayments = new CustomerPayment();\n\n JSONObject jsonObject = new JSONObject(response.trim());\n\n JSONObject payment = jsonObject.getJSONObject(\"payment\"); //No I18N\n\n customerPayments.setPaymentId(payment.getString(\"payment_id\"));\n customerPayments.setCustomerId(payment.getString(\"customer_id\"));\n customerPayments.setCustomerName(payment.getString(\"customer_name\"));\n customerPayments.setPaymentMode(payment.getString(\"payment_mode\"));\n customerPayments.setDate(payment.getString(\"date\"));\n customerPayments.setAccountId(payment.getString(\"account_id\"));\n customerPayments.setAccountName(payment.getString(\"account_name\"));\n customerPayments.setExchangeRate(payment.getDouble(\"exchange_rate\")); //No I18N\n customerPayments.setAmount(payment.getDouble(\"amount\")); //No I18N\n customerPayments.setBankCharges(payment.getDouble(\"bank_charges\")); //No I18N\n customerPayments.setTaxAccountId(payment.getString(\"tax_account_id\"));\n customerPayments.setTaxAccountName(payment.getString(\"tax_account_name\"));\n customerPayments.setTaxAmountWithheld(payment.getDouble(\"tax_amount_withheld\")); //No I18N\n customerPayments.setDescription(payment.getString(\"description\"));\n customerPayments.setReferenceNumber(payment.getString(\"reference_number\"));\n //customerPayments.setIsSingleInvoicePayment(payment.getBoolean(\"is_single_invoice_payment\"));\n\n JSONArray invoices = payment.getJSONArray(\"invoices\"); //No I18N\n\n List<Invoice> invoicesList = new ArrayList<Invoice>();\n\n for (int i = 0; i < invoices.length(); i++) {\n Invoice invoice = new Invoice();\n\n invoice.setInvoiceNumber(invoices.getJSONObject(i).getString(\"invoice_number\"));\n invoice.setInvoicePaymentId(invoices.getJSONObject(i).getString(\"invoice_payment_id\"));\n invoice.setInvoiceId(invoices.getJSONObject(i).getString(\"invoice_id\"));\n invoice.setAmountApplied(invoices.getJSONObject(i).getDouble(\"amount_applied\")); //No I18N\n invoice.setTaxAmountWithheld(invoices.getJSONObject(i).getDouble(\"tax_amount_withheld\")); //No I18N\n invoice.setTotal(invoices.getJSONObject(i).getDouble(\"total\")); //No I18N\n invoice.setBalance(invoices.getJSONObject(i).getDouble(\"balance\")); //No I18N\n invoice.setDate(invoices.getJSONObject(i).getString(\"date\"));\n invoice.setDueDate(invoices.getJSONObject(i).getString(\"due_date\"));\n\n invoicesList.add(i, invoice);\n }\n\n customerPayments.setInvoices(invoicesList);\n\n return customerPayments;\n }", "public JSONArray getCordsOfCountry(String Country) throws UnirestException;", "public List<TblRetur>getAllDataRetur();", "public void arrayToJson() {\n\n var result = ctx.select(DEPARTMENT.DEPARTMENT_ID, DEPARTMENT.NAME,\n field(\"COLUMN_VALUE\").as(\"EVALUATION\"))\n .from(DEPARTMENT, lateral(select(field(\"COLUMN_VALUE\"))\n .from(table(DEPARTMENT.TOPIC))))\n .forJSON().path()\n .fetch();\n\n System.out.println(\"Example (array)\" + result.formatJSON());\n }", "public abstract String [] listTables();", "public void readCompleteTable()\n\t{\n\t\topen();\n\t\tList<Map<Object, String>> tbl = HtmlTable.rowsFrom(table);\n\t\t//System.out.println(tbl);\n\n\t}", "public List<Map<String, String>> getTable(String tableName) {\n return getTable(tableName, 1, 9999);\n\n }", "public CustomerPaymentList getCustomerPayments(String response) throws Exception {\n\n CustomerPaymentList customerPaymentList = new CustomerPaymentList();\n\n JSONObject jsonObject = new JSONObject(response.trim());\n\n JSONArray customerpayments = jsonObject.getJSONArray(\"customerpayments\"); //No I18N\n\n for (int i = 0; i < customerpayments.length(); i++) {\n CustomerPayment customerPayment = new CustomerPayment();\n\n customerPayment.setPaymentId(customerpayments.getJSONObject(i).getString(\"payment_id\"));\n customerPayment.setPaymentNumber(customerpayments.getJSONObject(i).getString(\"payment_number\"));\n customerPayment.setInvoiceNumbers(customerpayments.getJSONObject(i).getString(\"invoice_numbers\"));\n customerPayment.setDate(customerpayments.getJSONObject(i).getString(\"date\"));\n customerPayment.setPaymentMode(customerpayments.getJSONObject(i).getString(\"payment_mode\"));\n customerPayment.setAmount(customerpayments.getJSONObject(i).getDouble(\"amount\")); //No I18N\n customerPayment.setBcyAmount(customerpayments.getJSONObject(i).getDouble(\"bcy_amount\")); //No I18N\n customerPayment.setUnusedAmount(customerpayments.getJSONObject(i).getDouble(\"unused_amount\")); //No I18N\n customerPayment.setBcyUnusedAmount(customerpayments.getJSONObject(i).getDouble(\"bcy_unused_amount\")); //No I18N\n customerPayment.setAccountId(customerpayments.getJSONObject(i).getString(\"account_id\"));\n customerPayment.setAccountName(customerpayments.getJSONObject(i).getString(\"account_name\"));\n customerPayment.setDescription(customerpayments.getJSONObject(i).getString(\"description\"));\n customerPayment.setReferenceNumber(customerpayments.getJSONObject(i).getString(\"reference_number\"));\n customerPayment.setCustomerId(customerpayments.getJSONObject(i).getString(\"customer_id\"));\n customerPayment.setCustomerName(customerpayments.getJSONObject(i).getString(\"customer_name\"));\n\n customerPaymentList.add(customerPayment);\n }\n\n PageContext pageContext = new PageContext();\n\n JSONObject pagecontext = jsonObject.getJSONObject(\"page_context\"); //No I18N\n\n pageContext.setPage(pagecontext.getInt(\"page\")); //No I18N\n pageContext.setPerPage(pagecontext.getInt(\"per_page\")); //No I18N\n pageContext.setHasMorePage(pagecontext.getBoolean(\"has_more_page\")); //No I18N\n pageContext.setReportName(pagecontext.getString(\"report_name\"));\n pageContext.setAppliedFilter(pagecontext.getString(\"applied_filter\"));\n pageContext.setSortColumn(pagecontext.getString(\"sort_column\"));\n pageContext.setSortOrder(pagecontext.getString(\"sort_order\"));\n\n customerPaymentList.setPageContext(pageContext);\n\n return customerPaymentList;\n }", "@Override\npublic List<Object[]> getCustomerReport() {\n\treturn dao.getCustomerReport();\n}", "public String toJson() {\n\t\tList<ArrayList<TableCell>> rawTable = this.generateArray();\n\n\t\tJsonObject temp;\n\t\tJsonArray table = new JsonArray();\n\t\tfor (ArrayList<TableCell> row : rawTable) {\n\t\t\tJsonArray rowJson = new JsonArray();\n\t\t\tfor (TableCell cell : row) {\n\t\t\t\ttemp = new JsonObject();\n\t\t\t\ttemp.addProperty(\"percentOfCauses\", String.valueOf(cell.percentOfCauses));\n\t\t\t\ttemp.addProperty(\"percentOfProposedCauses\", String.valueOf(cell.percentOfProposedCauses));\n\t\t\t\ttemp.addProperty(\"percentOfCorrectionCauses\", String.valueOf(cell.percentOfCorrectionCauses));\n\t\t\t\trowJson.add(temp);\n\t\t\t}\n\t\t\ttable.add(rowJson);\n\t\t}\n\n\t\tJsonArray rowNames = new JsonArray();\n\t\tfor (String name : this.rowNames) {\n\t\t\trowNames.add(new JsonPrimitive(name));\n\t\t}\n\n\t\tJsonArray colNames = new JsonArray();\n\t\tfor (String name : this.colNames) {\n\t\t\tcolNames.add(new JsonPrimitive(name));\n\t\t}\n\n\t\tJsonObject out = new JsonObject();\n\t\tout.add(\"table\", table);\n\t\tout.add(\"rowNames\", rowNames);\n\t\tout.add(\"colNames\", colNames);\n\t\treturn out.toString();\n\t}", "public static List<Map<String,Object>> getData(){\n\t\tList<Map<String,Object>> coupons = new ArrayList<Map<String,Object>>();\n\t\t\n\t\tMap<String,Object> ChoclateCpn = new HashMap<String,Object>();\n\t\tMap<String,Object> MeatCpn = new HashMap<String,Object>();\n\t\tMap<String,Object> ChkCpn = new HashMap<String,Object>();\n\t\tMap<String,Object> FruitCpn = new HashMap<String,Object>();\n\t\tMap<String,Object> FishCpnSalmon = new HashMap<String,Object>();\n\t\tMap<String,Object> FishCpnCatish = new HashMap<String,Object>();\n\t\t\n\t\tChoclateCpn.put(\"sku\" , \"SKU001\");\n\t\tChoclateCpn.put(\"id\",\"100\");\n\t\tChoclateCpn.put(\"type\",\"GROC\");\n\t\tChoclateCpn.put(\"price\",12);\n\t\tChoclateCpn.put(\"amount\",2);\n\t\t\n\t\tMeatCpn.put(\"sku\" , \"SKU002\");\n\t\tMeatCpn.put(\"id\",\"101\");\n\t\tMeatCpn.put(\"type\",\"MT\");\n\t\tMeatCpn.put(\"price\",10);\n\t\tMeatCpn.put(\"amount\",2);\n\t\t\n\t\tChkCpn.put(\"sku\" , \"SKU003\");\n\t\tChkCpn.put(\"id\",\"103\");\n\t\tChkCpn.put(\"type\",\"MT\");\n\t\tChkCpn.put(\"price\",6);\n\t\tChkCpn.put(\"amount\",1);\n\t\t\n\t\tFruitCpn.put(\"sku\" , \"SKU004\");\n\t\tFruitCpn.put(\"id\",\"104\");\n\t\tFruitCpn.put(\"type\",\"FRUT\");\n\t\tFruitCpn.put(\"price\", 20);\n\t\tFruitCpn.put(\"amount\", 4);\n\t\t\n\t\tFishCpnSalmon.put(\"sku\" , \"SKU005\");\n\t\tFishCpnSalmon.put(\"id\",\"105\");\n\t\tFishCpnSalmon.put(\"type\",\"MT\");\n\t\tFishCpnSalmon.put(\"price\", 12);\n\t\tFishCpnSalmon.put(\"amount\", 2);\n\t\t\n\t\tFishCpnCatish.put(\"sku\" , \"SKU006\");\n\t\tFishCpnCatish.put(\"id\",\"106\");\n\t\tFishCpnCatish.put(\"type\",\"MT\");\n\t\tFishCpnCatish.put(\"price\", 5 );\n\t\tFishCpnCatish.put(\"amount\", 1.5 );\n\t\t\n\t\tcoupons.add( ChoclateCpn);\n\t\tcoupons.add( MeatCpn );\n\t\t\n\t\tcoupons.add( ChkCpn );\n\t\tcoupons.add( FruitCpn );\n\t\t\n\t\tcoupons.add( FishCpnSalmon );\n\t\tcoupons.add( FishCpnCatish );\n\t\t\n\t\treturn coupons;\n\t}", "List<Map<String, Object>> getAllItems(String tableName);", "public static void parseTheResponse(JSONArray jArray) {\n\t\t/*\n\t\t * we persist this response in the DataHolder\n\t\t * should we need the original response\n\t\t */\n\t\tDataHolder.getDataHolder().setApiResponse(jArray);\n\t\tCustomer customer = null;\n\t\tCustomerView view = null;\n\t\tJSONObject obj = null;\n\t\tList<Customer>customers = new ArrayList<Customer>();\n\t\tfor(int i = 0; i < jArray.length(); i++){\n\t\t\ttry {\n\t\t\t\tobj = jArray.getJSONObject(i);\n\t\t\t\t/*\n\t\t\t\t * create Customer objects and set\n\t\t\t\t * their properties from the JSONObject\n\t\t\t\t * data. Then add these object to a List\n\t\t\t\t */\n\t\t\t\tcustomer = new Customer();\n\t\t\t\tcustomer.setName(obj.getString(\"name\"));\n\t\t\t\tcustomer.setUserId(String.valueOf(obj.getInt(\"user_id\")));\n\t\t\t\tfloat lat = (float)obj.getDouble(\"latitude\");\n\t\t\t\tfloat lon = (float)obj.getDouble(\"longitude\");\n\t\t\t\tcustomer.setLatitude(lat);\n\t\t\t\tcustomer.setLongitude(lon);\n\t\t\t\tdouble distance = DistanceCalculator.distanceBetween(\n\t\t\t\t\t\tuserCoords[0], userCoords[1], lat, lon);\n\t\t\t\tcustomer.setDistanceFrom(distance);\n\t\t\t\tcustomers.add(customer);\n\t\t\t} catch (JSONException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\t\n\t\t}\n\t\t/*\n\t\t * use the view object to show the results\n\t\t */\n\t\tview = new CustomerView(SortByDistance.sortedList(customers));\n\t\tSystem.out.println(\"/// SORTED LIST BY DISTANCE ///\\n\");\n\t\tview.displayCustomers();\n\t\t\n\t\tSystem.out.println(\"\\n/// SORTED WITHIN 100KM ///\\n\");\n\t\t/*\n\t\t * use of the Criteria/Filter pattern to\n\t\t * sort the list of customers who are less than\n\t\t * 100Km from our office\n\t\t */\n\t\tCriteria criteria = new CriteriaDistance();\n\t\tList<Customer>sortedList = criteria.meetCriteria(customers);\n\t\tview = new CustomerView(SortByID.sortedList(sortedList));\n\t\tview.displayCustomers();\n\t\t/*\n\t\t * lets persist this new sorted list in the DataHolder\n\t\t */\n\t\tDataHolder.getDataHolder().setCustomers(SortByID.sortedList(sortedList));\n\t\t/*\n\t\t * Print the invitee List to a text doc.\n\t\t */\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor(Customer c : SortByID.sortedList(sortedList)){\n\t\t\tsb.append(c.toString() + \"\\n\");\n\t\t}\n\t\tFileWriterUtil.printToFile(sb.toString());\n\t}", "public void readTableData1() {\n\t\t// Find row size\n\t\tList<WebElement> rowCount = driver.findElements(By.xpath(\"//*[@id='industry-filter-results']/div[2]/table/tbody/tr/td/parent::*\"));\n\t\tfor(WebElement data:rowCount){\n\t\t\tSystem.out.println(data.getText());\n\t\t}\n\t}", "@DisplayName(\"GET /drivers.json and save result to pojo\")\n @Test\n public void testDrivers(){\n JsonPath jp = get(\"/drivers.json\").jsonPath() ;\n Driver d1 = jp.getObject(\"MRData.DriverTable.Drivers[0]\", Driver.class) ;\n System.out.println(\"d1 = \" + d1);\n\n // Get all drivers as List<Driver>\n List<Driver> allDriver = jp.getList(\"MRData.DriverTable.Drivers\" , Driver.class) ;\n System.out.println(\"allDriver = \" + allDriver);\n\n // Print the name of all American drivers in this list\n for (Driver driver : allDriver) {\n if(driver.getNationality().equals(\"American\")){\n System.out.println(\"driver.getGivenName() = \" + driver.getGivenName());\n }\n }\n\n\n\n\n }", "Map<String,QualitativeJSONTableModel> getQualitativeData(OAuth2Authentication oauth);", "@Override\n public void onResponse(JSONObject response) {\n Toast.makeText(getContext(), response.toString(), Toast.LENGTH_SHORT).show();\n System.out.println(\"*********************************************************\");\n System.out.println(response.toString());\n ArrayList<String> customerArr=new ArrayList<>();\n\n\n\n\n }", "@Override\n public void onResponse(JSONObject response) {\n Toast.makeText(getContext(), response.toString(), Toast.LENGTH_SHORT).show();\n System.out.println(\"*********************************************************\");\n System.out.println(response.toString());\n ArrayList<String> customerArr=new ArrayList<>();\n\n\n\n\n }", "public static List<Customer> getCustomers(){\n \treturn Customer.findAll();\n }", "List<CustomerOrder> getAllCustomerOrder();", "String getTabela();", "private TableModel getTabelaProduto() {\r\n\t\tString[] columnNames = { \"id_c\", \"nome\", \"telefone\", \"endereco\", \"cidade\", \"estado\", \"email\", \"genero\" };\r\n\r\n\t\tObject[][] dados = new Object[listacliente.size()][8];\r\n\t\tfor (int i = 0; i < listacliente.size(); i++) {\r\n\t\t\tint x = 0;\r\n\t\t\tdados[i][x++] = listacliente.get(i).getId();\r\n\t\t\tdados[i][x++] = listacliente.get(i).getNome();\r\n\t\t\tdados[i][x++] = listacliente.get(i).getTelefone();\r\n\t\t\tdados[i][x++] = listacliente.get(i).getEndereco();\r\n\t\t\tdados[i][x++] = listacliente.get(i).getCidade();\r\n\t\t\tdados[i][x++] = listacliente.get(i).getEstado().getNome();\r\n\t\t\tdados[i][x++] = listacliente.get(i).getEmail();\r\n\t\t\tdados[i][x++] = listacliente.get(i).getGenero().getNome();\r\n\t\t}\r\n\r\n\t\treturn new DefaultTableModel(dados, columnNames);\r\n\r\n\t}", "private Object[][] getTableData() {\n Object[][] lclArray = null;\n\n if (articles.size() == 0) {\n lclArray = new Object[1][NUM_COLS];\n lclArray[0][0] = \"\";\n lclArray[0][1] = \"\";\n lclArray[0][2] = \"\";\n return lclArray;\n } // no articles yet !!!!\n if (articles != null) {\n lclArray = new Object[articles.size()][NUM_COLS];\n }\n for (int i = 0; i < articles.size(); i++) {\n NewsArticle article = (NewsArticle) articles.elementAt(i);\n\n lclArray[i][0] = article.getSubject();\n lclArray[i][1] = String.valueOf(article.getScore(filterType));\n lclArray[i][2] = article.getUserRating();\n }\n return lclArray;\n }", "public List<Data> getAllDataFromService() {\n\t\t\n\t\tList<Data> data = new ArrayList<>();\n\t\tRestTemplate restTemplate = new RestTemplate();\n\t\t\n\t\t// get first page data\n\t\tResponse response = restTemplate.getForObject(\n\t\t\t\t\"https://jsonmock.hackerrank.com/api/article_users/search?page=1\",\n\t\t\t\tResponse.class);\n\t\tdata.addAll(response.getData());\n\t\t\n\t\t// get second page data\n\t\tResponse response2 = restTemplate.getForObject(\n\t\t\t\t\"https://jsonmock.hackerrank.com/api/article_users/search?page=2\",\n\t\t\t\tResponse.class);\n\t\tdata.addAll(response2.getData());\n\t\t\n\t\treturn data;\t\n\t}", "public static ArrayList<Table> listBan(int idKhuVuc){\n ArrayList<Table> listban = null;\n SVConnect connect = new SVConnect();\n String url = SVConnect.urlAPI + \"area/\" + idKhuVuc;\n try {\n String result = connect.sendGet(url);\n System.out.println(result);\n Gson gson = new Gson();\n listban = gson.fromJson(result, new TypeToken<ArrayList<Table>>(){}.getType());\n System.out.println(listban.toString());\n return listban;\n } catch (Exception ex) {\n Logger.getLogger(UserDAO.class.getName()).log(Level.SEVERE, null, ex);\n }\n return null; \n }", "List<PurchaseOrderHeader> getAllPurchaseOrderHeaders();", "public List<CustomerPurchase> getAll() throws SQLException;", "public void showCustomerInvoices()\n\t{\n\t\ttry {\n\t\t\tcon=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/MundheElectronics1\",\"root\",\"vishakha\");\n\t\t\tString sql=\"select * from CustomerData order by Customer_Name asc\";\n\t\t\tps=con.prepareStatement(sql);\n\t\t\trs=ps.executeQuery();\n\t\t\ttblCustomer.setModel(DbUtils.resultSetToTableModel(rs));\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}", "public Client[] getClients() {\r\n // Get all the contents from the table clients with columns as keys mapped\r\n // to an ArrayList of\r\n // ordered row values\r\n HashMap<String, ArrayList<String>> clientInfo = getAllTableContents(\"clients\");\r\n // Parse the clients into an ArrayList of Client objects\r\n ArrayList<Client> clients = parseClients(clientInfo);\r\n // Cast to an array of Client and return\r\n Client[] temp = new Client[clients.size()];\r\n return clients.toArray(temp);\r\n }", "public JsonArray getFastFuelOrdersBySaleName(String saleName) {\r\n\t\tJsonArray fastFuelOrders = new JsonArray();\r\n\t\tString query = \"\";\r\n\t\tStatement stmt = null;\r\n\t\ttry {\r\n\t\t\tif (DBConnector.conn != null) {\r\n\r\n\t\t\t\tquery = \"SELECT customerID, count(orderID) as sumOfPurchase ,sum(totalPrice) as amountOfPayment FROM fast_fuel_orders \"\r\n\t\t\t\t\t\t+ \"WHERE saleTemplateName='\" + saleName + \"' group by customerID;\";\r\n\t\t\t\tstmt = DBConnector.conn.createStatement();\r\n\t\t\t\tResultSet rs = stmt.executeQuery(query);\r\n\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\tJsonObject order = new JsonObject();\r\n\t\t\t\t\torder.addProperty(\"customerID\", rs.getString(\"customerID\"));\r\n\t\t\t\t\torder.addProperty(\"sumOfPurchase\", rs.getString(\"sumOfPurchase\"));\r\n\t\t\t\t\torder.addProperty(\"amountOfPayment\", rs.getString(\"amountOfPayment\"));\r\n\t\t\t\t\tfastFuelOrders.add(order);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Conn is null\");\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn fastFuelOrders;\r\n\r\n\t}", "public String returnServerTableAsJson(String key) {\n BufferedReader reader;\n String linia = \"\";\n String resposta = \"\";\n con = null;\n is = null;\n\n List<NameValuePair> params = new ArrayList<NameValuePair>();\n params.add(new BasicNameValuePair(\"tableForJson\", key));\n\n try {\n\n con = (HttpURLConnection) url.openConnection();\n con.setRequestMethod(\"POST\");\n con.setDoInput(true);\n con.setDoOutput(true);\n\n OutputStream os = con.getOutputStream();\n BufferedWriter writer = new BufferedWriter(\n new OutputStreamWriter(os, \"UTF-8\"));\n writer.write(getQuery(params));\n writer.flush();\n writer.close();\n os.close();\n\n con.connect();\n\n is = con.getInputStream();\n reader = new BufferedReader(new InputStreamReader(is));\n while ((linia = reader.readLine()) != null)\n response.append(linia);\n is.close();\n con.disconnect();\n resposta = response.toString();\n } catch (Exception e) {\n e.printStackTrace();\n resposta = \"\";\n }\n\n return resposta;\n }", "public void readValuesfromtableWithoutHeadings()\n\t {\n\t\t open();\n\t\t List<Map<Object, String>> tab1= withColumns(\"Last Name \" ,\"First Name\",\"Email\", \"Due\" , \"Web Site\" , \"My Test\") \n\t\t\t\t .readRowsFrom(table);\n\t\t System.out.println(tab1);\n\t }", "public JSONArray getResultsForPatientInformation() {\n\n JSONArray resultSet;\n\n Cursor cursor = null;\n\n SQLiteDatabase db1 = getReadableDatabase();\n\n try {\n resultSet = new JSONArray();\n String searchQuery = \"SELECT * FROM patient where flag = 0 \";\n\n cursor = db1.rawQuery(searchQuery, null);\n\n cursor.moveToFirst();\n while (!cursor.isAfterLast()) {\n\n int totalColumn = cursor.getColumnCount();\n JSONObject rowObject = new JSONObject();\n\n for (int i = 0; i < totalColumn; i++) {\n if (cursor.getColumnName(i) != null) {\n try {\n if (cursor.getString(i) != null) {\n\n rowObject.put(cursor.getColumnName(i), cursor.getString(i));\n } else {\n rowObject.put(cursor.getColumnName(i), \"\");\n }\n } catch (Exception e) {//. e.printStackTrace();\n }\n\n }\n }\n resultSet.put(rowObject);\n cursor.moveToNext();\n }\n\n // Log.e(\"resultSet\",\" \"+ resultSet.toString());\n return resultSet;\n\n\n } finally {\n if (cursor != null) {\n cursor.close();\n }\n /* if (db1 != null) {\n db1.close();\n }*/\n }\n }", "public ArrayList<Customer> getAllCustomers();", "public JSONObject createJSON() throws IOException {\n\n\t JSONObject json = null;\n\t if (recordList != null) {\n\t \tjson = new JSONObject();\n\t\t JSONArray rows = new JSONArray();\n\t\t int irow = 0;\n\t\t\tfor (CSVRecord record : recordList) {\n\t\t JSONObject row = new JSONObject();\n\t\t JSONArray cells = createJSONArray(record, irow);\n\t\t row.put(((irow == 0) ? \"header\" : \"row\"), cells);\n\t\t rows.add(row);\n\t\t irow++;\n\t\t }\n\t\t json.put( \"table\", rows );\n\t }\n\t return json;\n\t\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 }", "private static JSONArray objectToArray(JSONObject obj){\r\n return (JSONArray) obj.get(\"books\");\r\n }", "private AccountDetails[] getAccountDetails() {\n String accountData = Utils.readFile(accountFile);\n return gson.fromJson(accountData, AccountDetails[].class);\n }", "public JSONArray getObservationsDataDisplay() {\n\n JSONArray resultSet;\n //or you can use `conTEXT.getDatabasePath(\"my_db_test.db\")`\n Cursor cursor = null;\n\n SQLiteDatabase db1 = getReadableDatabase();\n //Cursor cursor = db1.rawQuery(selectQuery, null);\n\n //SQLiteDatabase myDataBase = SQLiteDatabase.openDatabase(DATABASE_NAME, null, SQLiteDatabase.OPEN_READONLY);'\n try {\n resultSet = new JSONArray();\n String searchQuery = \"SELECT * FROM observation where flag = 0 \";\n\n cursor = db1.rawQuery(searchQuery, null);\n\n cursor.moveToFirst();\n while (!cursor.isAfterLast()) {\n\n int totalColumn = cursor.getColumnCount();\n JSONObject rowObject = new JSONObject();\n\n for (int i = 0; i < totalColumn; i++) {\n if (cursor.getColumnName(i) != null) {\n try {\n if (cursor.getString(i) != null) {\n rowObject.put(cursor.getColumnName(i), cursor.getString(i));\n } else {\n rowObject.put(cursor.getColumnName(i), \"\");\n }\n } catch (Exception e) {\n //Log.d(\"TAG_NAME\", e.getMessage());\n }\n }\n }\n resultSet.put(rowObject);\n cursor.moveToNext();\n }\n return resultSet;\n\n } finally {\n if (cursor != null) {\n cursor.close();\n }\n /* if (db1 != null) {\n db1.close();\n }*/\n }\n }", "private void loadDia() throws JSONException {\n\n\n String json = \"{\\n\" +\n \" \\\"mes\\\": 10,\\n\" +\n \" \\\"ano\\\": 2017,\\n\" +\n \" \\\"dias\\\":[\\n\" +\n \" {\\n\" +\n \" \\\"dia\\\":1,\\n\" +\n \" \\\"titulos\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"asd\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$4050,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdsaf\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$50,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"2a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$450,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 2,\\n\" +\n \" \\\"sinal\\\": 2,\\n\" +\n \" \\\"grupo\\\": 2,\\n\" +\n \" \\\"nome\\\": \\\"1b\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$40,00\\\"\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"dia\\\":13,\\n\" +\n \" \\\"titulos\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 3,\\n\" +\n \" \\\"sinal\\\": 3,\\n\" +\n \" \\\"grupo\\\": 3,\\n\" +\n \" \\\"nome\\\": \\\"13a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$450,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 4,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"13b\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$40,00\\\"\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"dia\\\":16,\\n\" +\n \" \\\"titulos\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 5,\\n\" +\n \" \\\"sinal\\\": 5,\\n\" +\n \" \\\"grupo\\\": 2,\\n\" +\n \" \\\"nome\\\": \\\"16a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$52,00\\\"\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"dia\\\":18,\\n\" +\n \" \\\"titulos\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 6,\\n\" +\n \" \\\"sinal\\\": 4,\\n\" +\n \" \\\"grupo\\\": 3,\\n\" +\n \" \\\"nome\\\": \\\"18a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$52,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 7,\\n\" +\n \" \\\"sinal\\\": 5,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"18a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$2,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 8,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 2,\\n\" +\n \" \\\"nome\\\": \\\"18a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$2000,00\\\"\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \"}\";\n\n\n //Toast.makeText(getApplicationContext(), \"certo\",Toast.LENGTH_LONG).show();\n }", "@Override\n\tpublic List<CustomerData> getAllCustomer() {\n\t\treturn customerRepository.findAll();\n\t}", "@Override\n\tpublic List<MstCustomerDto> getAllCustomer() {\n\t\tList<MstCustomerDto> listMstCustomerDtos=new ArrayList<>();\n\t\tList<Object[]> obj=new ArrayList<>();\n\t\t\n\t\tobj = mstCustomerDao.getAll();\n\t\tlistMstCustomerDtos = mapperFacade.mapAsList(obj, MstCustomerDto.class);\n\t\t\n\t\treturn listMstCustomerDtos;\n\t}", "public ArrayList<Table> getTablePayment() {\n \tArrayList<Table> fetchedTables = new ArrayList<Table>();\n \tfetchedTables = getTable(tablePayment);\n \treturn fetchedTables;\n }" ]
[ "0.6144989", "0.60714805", "0.59451795", "0.58702964", "0.574724", "0.5672867", "0.56135076", "0.5578144", "0.55554783", "0.5545911", "0.5538955", "0.5531744", "0.5491236", "0.54850054", "0.546581", "0.54578334", "0.5457565", "0.54334116", "0.53943884", "0.53828144", "0.53687775", "0.5294907", "0.52936745", "0.527942", "0.5262185", "0.5251034", "0.5235772", "0.5234331", "0.52320516", "0.5226799", "0.5220203", "0.5220128", "0.521475", "0.5214293", "0.52072954", "0.52061146", "0.51825374", "0.51682055", "0.5167489", "0.51670504", "0.5164842", "0.5163171", "0.5162802", "0.5154343", "0.51462144", "0.51448756", "0.51407427", "0.51404864", "0.5135094", "0.51156944", "0.51139635", "0.5103928", "0.5103859", "0.510187", "0.5096587", "0.50838983", "0.50796473", "0.507781", "0.50743586", "0.5070223", "0.5061436", "0.505796", "0.5046449", "0.5046123", "0.5043903", "0.5037766", "0.50363815", "0.50331527", "0.50256485", "0.5020724", "0.5011343", "0.5010965", "0.5009454", "0.49953446", "0.49930468", "0.49930468", "0.49913615", "0.49899682", "0.4989847", "0.49887672", "0.4987006", "0.498556", "0.4980787", "0.49805883", "0.49755505", "0.49738848", "0.497074", "0.4970385", "0.4969925", "0.49677473", "0.49655452", "0.4960103", "0.4954784", "0.49502733", "0.49501213", "0.49407792", "0.4940049", "0.49382922", "0.49271327", "0.49252084", "0.49161124" ]
0.0
-1
dob should be YYYYMMDD format, regex
@Constructor(name = "users") public AppUser(String username, String password, String email, String firstName, String lastName, String dob) { this.id = 0; this.username = username; this.password = password; this.email = email; this.firstName = firstName; this.lastName = lastName; this.dob = dob; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isDOBValid(String DOB) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n dateFormat.setLenient(false);\n try {\n dateFormat.parse(DOB.trim());\n } catch (ParseException pe) {\n return false;\n }\n return true;\n }", "public Boolean validateDate(String date_of_birth) {\n DateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n try {\n format.parse(date_of_birth);\n } catch (ParseException exception) {\n System.out.println(\"Invalid Input!\");\n return true;\n }\n return false;\n }", "public Date formatDate( String dob )\n throws ParseException {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"MM/dd/yyyy\");\n dateFormat.setLenient(false);\n return dateFormat.parse(dob);\n }", "public static boolean isValidDOB(String userInput) {\n \n return Pattern.matches(Constants.DATE_VALIDATION, userInput);\n }", "private boolean checkDeadline(String d)\n\t{\n\t\t//yyyy/mm/dd\n\t\treturn Pattern.matches(\"[0-9][0-9][0-9][0-9]/[0-1][0-9]/[0-3][0-9]\", d);\n\t}", "public static boolean isValidBirthdate (String test) {\n try {\n LocalDate.parse(test);\n return isValidBirthdate(LocalDate.parse(test));\n } catch (DateTimeParseException e) {\n return false;\n }\n }", "public static boolean isValidDate(String test) {\n if (test.matches(VALIDATION_REGEX)) {\n try {\n DateTimeFormatter format = DateTimeFormatter.ofPattern(\"dd-MM-yyyy\");\n LocalDate date = LocalDate.parse(test, format);\n if (date.format(format).equals(test)) {\n return true;\n }\n return false;\n } catch (DateTimeParseException e) {\n return false;\n }\n }\n return false;\n }", "public static boolean validateDateDDMMYYYY(String inputParam,\n\t\t\tString regexExp) {\n\t\tPattern pattern = Pattern.compile(regexExp);\n\n\t\tMatcher matcher = pattern.matcher(inputParam);\n\n\t\tif (matcher.matches()) {\n\n\t\t\tmatcher.reset();\n\n\t\t\tif (matcher.find()) {\n\n\t\t\t\tString day = matcher.group(1);\n\t\t\t\tString month = matcher.group(2);\n\t\t\t\tint year = Integer.parseInt(matcher.group(3));\n\n\t\t\t\tif (\"31\".equals(day)\n\t\t\t\t\t\t&& (\"4\".equals(month) || \"6\".equals(month)\n\t\t\t\t\t\t\t\t|| \"9\".equals(month) || \"11\".equals(month)\n\t\t\t\t\t\t\t\t|| \"04\".equals(month) || \"06\".equals(month) || \"09\"\n\t\t\t\t\t\t\t\t.equals(month))) {\n\t\t\t\t\treturn false; // only 1,3,5,7,8,10,12 has 31 days\n\t\t\t\t} else if (\"2\".equals(month) || \"02\".equals(month)) {\n\t\t\t\t\t// leap year\n\t\t\t\t\tif (year % 4 == 0) {\n\t\t\t\t\t\tif (\"30\".equals(day) || \"31\".equals(day)) {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (\"29\".equals(day) || \"30\".equals(day)\n\t\t\t\t\t\t\t\t|| \"31\".equals(day)) {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isValidDate(String valD) { //Checks if date is in proper format\n String valDWithoutSpace = valD.replaceAll(\"\\\\s\", \"\");\n return valDWithoutSpace.length() == 8;\n}", "private boolean checkValidDate(String inputDate) {\n SimpleDateFormat date = new SimpleDateFormat(\"ddMMyy\");\n date.setLenient(false);\n try {\n date.parse(inputDate);\n return true;\n } catch (ParseException e) {\n return false;\n }\n }", "boolean checkNumberFormat (String birthDate){\r\n for (int i = 0; i < birthDate.length(); i++) {\r\n if ((birthDate.charAt(i) < 48 && birthDate.charAt(i) != 32 \r\n && birthDate.charAt(i) != 10) \r\n || birthDate.charAt(i) > 57){\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "public static boolean dateFormatCheck(String date)\r\n\t{\r\n\t\treturn date.matches(\"(0?[1-9]|[12][0-9]|3[01])-(0?[1-9]|1[012])-((19|20)\\\\d\\\\d)\");\t\r\n\t}", "boolean isValidDate(String datestr)\n {\n String validch = \"1234567890/\";\n String month, day, year;\n Integer I;\n int m, d, y;\n int slash1, slash2;\n\n datestr.trim();\n if (datestr.length() == 0)\n return false;\n\n if (!checkchars(datestr, validch, false)) {\n // Invalid date entry\n return false;\n }\n\n\n slash1 = datestr.indexOf(\"/\");\n slash2 = datestr.indexOf(\"/\",slash1+1);\n if (slash1 <= 0 || slash2 <= 0)\n {\n // Invalid Entry\n return false;\n }\n\n month = datestr.substring(0,slash1);\n day = datestr.substring(slash1+1,slash2);\n year = datestr.substring(slash2+1,datestr.length());\n if ((month.length()<1 || month.length()>2) ||\n (day.length()<1 || day.length()>2) || (year.length()!=4))\n {\n // Invalid Date\n return false;\n }\n\n I = new Integer(month);\n m = I.intValue();\n I = new Integer(day);\n d = I.intValue();\n I = new Integer(year);\n y = I.intValue();\n //basic error checking\n if (m<1 || m>12 || d<1 || d>31 || y<0 || y>9999)\n return false;\n\n // months with 30 days\n if (d==31 && (m==4 || m==6 || m==9 || m==11)){\n return false;\n }\n\n // february, leap year\n if (m==2 && d>28){\n if (d > 29)\n return false;\n if ((y%4 == 0) || ((y%400==0) && (y%100!=0)))\n return false;\n }\n\n return true;\n }", "public Date checkDate() {\n // Create new sdf with format is dd/MM/yyyy\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n sdf.setLenient(false); // Check special day\n Date date = null; // Create date\n boolean isOK = true; // Condition loop\n\n while (isOK) {\n try {\n String dateStr = checkEmpty(\"DOB\"); // Call method to check input of dob\n date = sdf.parse(dateStr); // Convert string to date\n return date;\n\n } catch (ParseException e) {\n // Print error if date is invalid\n System.out.println(\"Date is invalid !\");\n System.out.print(\"Enter again (dd/MM/yyyy): \");\n }\n }\n return date; // Return date\n }", "public static String calcAge(String dob)\r\n\t {\r\n\t\t LocalDate bday = LocalDate.of(Integer.parseInt(dob.substring(6,10)),Integer.parseInt(dob.substring(3,5)),Integer.parseInt(dob.substring(1,2)));\r\n\t\t LocalDate today = LocalDate.now(); \r\n\t\t Period age = Period.between(bday, today); \r\n\t\t int years = age.getYears(); \r\n\t\t int months = age.getMonths(); \r\n\t\t return years + \" Years and \" + months + \" Months\";\r\n\t }", "public static void setDOB(String dob){\n setUserProperty(Constants.ZeTarget_keyForUserPropertyDOB,dob);\n int year = Integer.valueOf(dob.substring(0,4));\n int month = Integer.valueOf(dob.substring(4,6));\n int day = Integer.valueOf(dob.substring(6,8));\n Calendar cal =Calendar.getInstance();\n int currentYear = cal.get(Calendar.YEAR);\n int currentMonth = cal.get(Calendar.MONTH);\n int currentDay = cal.get(Calendar.DAY_OF_MONTH);\n int age = currentYear - year;\n if(month<currentMonth||(month==currentMonth&&day<currentDay)){\n age--;\n }\n setAge(age + \"\");\n }", "private static boolean validDate(String date) {\n\t\t SimpleDateFormat formatter = new SimpleDateFormat(\"MM/dd/yy\");\n\t\tformatter.setLenient(false);\n\t\tDate tryDate = null; \n\t\t\ttry\n\t\t{\n\t\t\ttryDate = formatter.parse(date);\n\t\t}catch (ParseException e) {\n\t\t\treturn false;\n\t\t}\n\t\tformatDate(tryDate);\n\t\treturn true; \n\t\t\n\t}", "private boolean dateValidation(String userDate){\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n sdf.setLenient(false);\n\n try {\n\n //if not valid, it will throw ParseException\n Date date = sdf.parse(userDate);\n System.out.println(date);\n\n } catch (ParseException e) {\n\n e.printStackTrace();\n return false;\n }\n\n return true;\n }", "@Test public void Year_2__month__day()\t\t\t\t\t\t\t{tst_date_(\"03/31/2001\"\t\t\t\t, \"2001-03-31\");}", "@Test\n public void testconvertDateYearsLongueurPasValide() {\n FieldVerifier projet = new FieldVerifier();\n boolean longueurInvalideTest = projet.isValidDate(\"01/05/102\");\n assertEquals(false, longueurInvalideTest);\n }", "LocalDate getDateOfBirth();", "public static String formatDate(String date){\n String formatedDate = date;\n if (!date.matches(\"[0-9]{2}-[0-9]{2}-[0-9]{4}\")){\n if (date.matches(\"[0-9]{1,2}/[0-9]{1,2}/([0-9]{2}|[0-9]{4})\"))\n formatedDate = date.replace('/', '-');\n if (date.matches(\"[0-9]{1,2}.[0-9]{1,2}.([0-9]{2}|[0-9]{4})\")){\n if (formatedDate.matches(\"[0-9]{1}.[0-9]{1,2}.([0-9]{2}|[0-9]{4})\"))\n formatedDate = \"0\" + formatedDate;\n if (formatedDate.matches(\"[0-9]{2}.[0-9]{1}.([0-9]{2}|[0-9]{4})\"))\n formatedDate = formatedDate.substring(0, 3) + \"0\" + \n formatedDate.substring(3);\n if (formatedDate.matches(\"[0-9]{2}.[0-9]{2}.[0-9]{2}\")){\n String thisYear = String.valueOf(LocalDate.now().getYear());\n String century = thisYear.substring(0,2);\n /* If the last two digits of the date are larger than the two last digits of \n * the current date, then we can suppose that the year corresponds to the last \n * century.\n */ \n if (Integer.valueOf(formatedDate.substring(6)) > Integer.valueOf(thisYear.substring(2)))\n century = String.valueOf(Integer.valueOf(century) - 1);\n formatedDate = formatedDate.substring(0, 6) + century +\n formatedDate.substring(6); \n }\n }\n }\n return formatedDate;\n }", "private String validateDateString(String dateString) {\n String returnValue = null;\n DateFormat dateFormat1 = new SimpleDateFormat(\"yyyy-MM-dd\");\n DateFormat dateFormat2 = new SimpleDateFormat(\"yyyy-MM\");\n DateFormat dateFormat3 = new SimpleDateFormat(\"yyyy\");\n Date date = null;\n \n if (dateString == null || dateString.equals(\"\")) {\n return dateString;\n }\n else {\n try {\n date = dateFormat1.parse(dateString);\n returnValue = dateFormat1.format(date);\n }\n catch (ParseException e1) {\n try {\n date = dateFormat2.parse(dateString);\n returnValue = dateFormat2.format(date);\n }\n catch (ParseException e2) {\n try {\n date = dateFormat3.parse(dateString);\n returnValue = dateFormat3.format(date);\n }\n catch (ParseException e3) {\n logger.warn(\"Couldn't parse date string using any of the recognized formats: \" + dateString);\n } \n }\n }\n }\n \n return returnValue;\n }", "private int caBeDate(String str){\n if(!isNumber(str)){\n return 0;\n }if(str.length()<2){\n return 0;\n }if(str.length()==2){\n return 1;\n }if(str.length() == 3){\n return 2;\n }if(str.length() == 4){\n return 3;\n }if(str.length()>4){\n return 6;\n }\n return 0;\n }", "private boolean checkDate(String date) {\n return date.matches(regexDate);\n }", "@Test public void Month_name_0__day__year__bad_day()\t\t\t{tst_date_(\"Mar 32 2001\"\t\t\t, \"Invalid day: 32\");}", "public static String getddmmyyDate(String dt) {\n String dd = \"\", mm = \"\", yy = \"\";\n int i = 0;\n try {\n for (String retval : dt.split(\"-\")) {\n if (i == 0)\n yy = retval;\n else if (i == 1)\n mm = retval;\n else\n dd = retval;\n\n i++;\n }\n return (yy + \"-\" + mm + \"-\" + dd).toString();\n } catch (Exception e) {\n e.printStackTrace();\n return \"\";\n }\n }", "private String YYYYMMDD(String str) {\n\t\tString[] s = str.split(\"/\");\n\t\treturn s[0] + parseToTwoInteger(Integer.parseInt(s[1].trim())) + parseToTwoInteger(Integer.parseInt(s[2].trim()));\n\t}", "private static boolean isDate(String token) {\n return dateRegex.matcher(token).matches();\n }", "public static boolean checkDatePattern(String date) {\n return date.matches(\"^[0-9]{4}-[0-9]{2}-[0-9]{2}$\");\n }", "public static void main(String[] args) {\n\t\t SimpleDateFormat sdf = new SimpleDateFormat (\"dd-MM-yyyy\");\n\t\t\t\t sdf.setLenient(false);\n\t\t\t\t String input = \"13-02-2018\"; \n\t\t\t\t System.out.println(\"Given Date is:\"+ input); \n\t\t\t\t Date dt;\n\t\t\t\t try {\n\t\t\t\t dt = sdf.parse(input); \n\t\t\t\t System.out.println(dt); \n\t\t\t\t } catch (ParseException e) { \n\t\t\t\t System.out.println(\"Invalid date entered :\" + input); \n\t\t\t\t }\n\n\t}", "@Test public void Month_name_1__day__year__guess()\t\t\t\t{tst_date_(\"02 Mar 01\"\t\t\t\t, \"2001-03-02\");}", "public boolean isAdult( String dob ){\n StringTokenizer tokenizer = new StringTokenizer( dob, \"/\" );\n String bmonth = tokenizer.nextToken(); \n String bdate = tokenizer.nextToken();\n String byear = tokenizer.nextToken();\n \n int month = Integer.parseInt(bmonth);\n int date = Integer.parseInt(bdate);\n int year = Integer.parseInt(byear);\n\n // Test for age limit of 19 or older\n Calendar c = Calendar.getInstance();\n int curYear = c.get( Calendar.YEAR );\n \n // Get cut off date\n c.set( Calendar.YEAR, curYear - 19 );\n Date cutOffDate = c.getTime();\n \n // Get birth date\n c.set( year, month-1, date );\n Date birthDate = c.getTime();\n \n if ( birthDate.compareTo(cutOffDate) <= 0 ) return true;\n else return false;\n }", "public void setDOB(String strdateofbirth){\n\t\tdriver.findElement(dateofbirth).sendKeys(strdateofbirth);;\n\t}", "protected void guessDateFormat(String dateStr) {\n if (log4j.isDebugEnabled()) {log4j.debug(BaseMessages.getString(PKG, \"MVSFileParser.DEBUG.Guess.Date\"));} //$NON-NLS-1$\n String[] dateSplit = dateStr.split(\"/\"); //$NON-NLS-1$\n String yrFmt = null;\n int yrPos = -1;\n int dayPos = -1;\n // quick look for either yyyy/xx/xx or xx/xx/yyyy\n for (int i=0; i<dateSplit.length; i++) {\n int aDigit = Integer.parseInt(dateSplit[i]); \n if (dateSplit[i].length() == 4) {\n yrFmt = \"yyyy\"; //$NON-NLS-1$\n yrPos = i;\n } else if (aDigit>31) {\n // found 2-digit year\n yrFmt = \"yy\"; //$NON-NLS-1$\n yrPos = i;\n } else if (aDigit > 12) {\n // definitely found a # <=31,\n dayPos = i;\n }\n }\n if (yrFmt != null) {\n StringBuffer fmt = new StringBuffer();\n if (dayPos >=0) {\n // OK, we know everything.\n String[] tmp = new String[3];\n tmp[yrPos] = yrFmt;\n tmp[dayPos] = \"dd\"; //$NON-NLS-1$\n for (int i=0; i<tmp.length; i++) {\n fmt.append(i>0?\"/\":\"\"); //$NON-NLS-1$ //$NON-NLS-2$\n fmt.append(tmp[i] == null ? \"MM\":tmp[i]); //$NON-NLS-1$\n }\n if (log4j.isDebugEnabled()) {log4j.debug(BaseMessages.getString(PKG, \"MVSFileParser.DEBUG.Guess.Date.Obvious\"));} //$NON-NLS-1$\n } else {\n // OK, we have something like 2010/01/01 - I can't\n // tell month from day. So, we'll guess. If it doesn't work on a later\n // date, we'll flip it (the alternate).\n \n StringBuffer altFmt = new StringBuffer();\n if (yrPos == 0) {\n fmt.append(yrFmt).append(\"/MM/dd\"); //$NON-NLS-1$\n altFmt.append(yrFmt).append(\"/dd/MM\"); //$NON-NLS-1$\n } else {\n fmt.append(\"MM/dd/\").append(yrFmt); //$NON-NLS-1$\n altFmt.append(\"dd/MM/\").append(yrFmt); //$NON-NLS-1$\n }\n this.alternateFormatString = altFmt.toString();\n if (log4j.isDebugEnabled()) {log4j.debug(BaseMessages.getString(PKG, \"MVSFileParser.DEBUG.Guess.Date.Ambiguous\"));} //$NON-NLS-1$\n }\n this.dateFormatString = fmt.toString();\n this.dateFormat = new SimpleDateFormat(dateFormatString);\n if (log4j.isDebugEnabled()) {log4j.debug(BaseMessages.getString(PKG, \"MVSFileParser.DEBUG.Guess.Date.Decided\", this.dateFormatString));} //$NON-NLS-1$\n try {\n dateFormat.parse(dateStr);\n } catch (ParseException ex) {\n if (log4j.isDebugEnabled()) {log4j.debug(BaseMessages.getString(PKG, \"MVSFileParser.DEBUG.Guess.Date.Unparsable\", dateStr));} //$NON-NLS-1$\n }\n } else {\n // looks ilke something like 01/02/05 - where's the year?\n if (log4j.isDebugEnabled()) {log4j.debug(BaseMessages.getString(PKG, \"MVSFileParser.DEBUG.Guess.Date.Year.Ambiguous\"));} //$NON-NLS-1$\n return;\n }\n \n }", "abstract void birthDateValidity();", "public static String verifyHireDate(Scanner input, String tempDate){\n \n //String used for regex verification of input date\n String theRegex = \"[0-1][0-9][/][0-3][0-9][/][1-2][0-9][0-9][0-9]\";\n \n //While tempDate does not match theRegex\n while(!tempDate.matches(theRegex)){\n System.out.print(\"The employee's hire date you entered was invalid.\\nMake sure the date you enter matches IX/JX/KXXX including the slashes\"\n + \"\\nwhere I is a 0 or 1, J is 0-3, K is a 1 or 2, and X is a digit 0-9: \");\n tempDate = input.nextLine();\n }\n return tempDate; \n }", "@Override\n public boolean isInputDateValid(String dateStr) {\n DateFormat sdf = new SimpleDateFormat(this.date);\n sdf.setLenient(false);\n try {\n sdf.parse(dateStr);\n } catch (ParseException e) {\n return false;\n }\n return true;\n }", "public static boolean comprobarFecha(String s){\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n //dateFormat.setLenient(false);\n try {\n dateFormat.parse(s.trim());\n }catch (ParseException pe) {\n System.out.println(\"Fecha introducida de manera erronea\");\n return false;\n }\n return true;\n }", "@Test\n public void isValidFormat() {\n assertFalse(Deadline.isValidFormat(VALID_DAY_1));\n\n // Deadline with day and month dd/mm -> true\n assertTrue(Deadline.isValidFormat(VALID_1ST_JAN_WITHOUT_YEAR.toString()));\n\n // Deadline with all 3 fields dd/mm/yyyy -> true\n assertTrue(Deadline.isValidFormat(VALID_1ST_JAN_2018.toString()));\n }", "@Test public void Day_1__month__year()\t\t\t\t\t\t\t{tst_date_(\"03-31-02\"\t\t\t\t, \"2002-03-31\");}", "public int getAge(String dob) {\n try {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd\");\n Date date = sdf.parse(dob);\n Calendar cal = Calendar.getInstance();\n cal.setTime(date);\n return Calendar.getInstance().get(Calendar.YEAR) - cal.get(Calendar.YEAR);\n } catch (ParseException e) {\n return 0;\n }\n }", "public String verifyDateFormat(String object, String data) {\n\t\tlogger.debug(\"verifying the date format\");\n\t\ttry {\n\t\t\tString date_text = wait.until(explicitWaitForElement(By.xpath(OR.getProperty(object)))).getText();\n\t\t\tString date[] = date_text.split(\"/\");\n\t\t\tBoolean flag = false;\n\n\t\t\tint month = Integer.parseInt(date[0]);\n\t\t\tint day = Integer.parseInt(date[1]);\n\t\t\tint year = Integer.parseInt(date[2]);\n\n\t\t\tfor (int i = 0; i < date.length; i++) {\n\t\t\t\tif (month <= 12 && day <= 31 && year > 2000) {\n\t\t\t\t\tflag = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tif (flag) {\n\n\t\t\t\treturn Constants.KEYWORD_PASS + \"--date is in correct format\";\n\t\t\t}\n\n\t\t\telse {\n\t\t\t\treturn Constants.KEYWORD_FAIL + \"--date is not in correct format\";\n\t\t\t}\n\n\t\t} \ncatch(TimeoutException ex)\n\t\t\n\t\t{\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ ex.getCause();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\n\t\t\treturn Constants.KEYWORD_FAIL + e.getLocalizedMessage();\n\t\t}\n\t}", "public static String ssnToDateOfBirth(String ssn) {\n String dateOfBirth = ssn.substring(0, 6);\n String dateOfBirthFormatted = \"\";\n for (int i = 0; i < dateOfBirth.length(); i++) {\n dateOfBirthFormatted += dateOfBirth.charAt(i);\n if (i == 1 || i == 3) {\n dateOfBirthFormatted += \".\";\n }\n }\n return dateOfBirthFormatted;\n }", "public static void validateDate(String date) throws CustomExceptionHandler {\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd.MM.yyyy\");\n formatter.setLenient(false);\n Date parsedDate;\n\n //Throw Exception if string is blank\n if(date.isBlank()||date.isEmpty())\n throw new CustomExceptionHandler(\"Date NOT Specified\");\n\n\n\n //Throw exception if date is not formatted correctly\n try\n {\n parsedDate = formatter.parse(date);\n\n }\n catch (Exception e)\n {\n throw new CustomExceptionHandler(\"The date format is not correct\");\n }\n }", "@Test public void Year_0__month__day()\t\t\t\t\t\t\t{tst_date_(\"2001-03-31\"\t\t\t\t, \"2001-03-31\");}", "public T dob(LocalDate birthday) {\n dccObject.set(\"dob\", jsonNodeFactory.textNode(toIsoDate(birthday)));\n requiredNotSet.remove(RequiredFieldsBase.dob);\n return getThis();\n }", "public boolean isDate (int year, int doy)\n {\n return ((year >= FIRST_YEAR)\n && (1 <= doy && doy <= getLengthOfYear (year)));\n }", "@Override\n public boolean isValidExpression(String expr) {\n final Pattern pattern1 = Pattern.compile(DATE_REGEX_FULL);\n final Pattern pattern2 = Pattern.compile(DATE_REGEX_FULL_2);\n final Matcher matcher1 = pattern1.matcher(expr);\n final Matcher matcher2 = pattern2.matcher(expr);\n return matcher1.matches() ^ matcher2.matches();\n }", "public BirthDate(String date) throws InvalidDateException {\n this.date = stringToDate(date);\n checkDate();\n }", "public static String dateStr(String input ){\n String mm = input.substring(0,2);\n String dd = input.substring(3,5);\n String yyyy = input.substring(6,10);\n return dd + \" - \" + mm + \" - \" + yyyy;\n }", "@Test\n public void testClaimAdmDate() {\n new ClaimFieldTester()\n .verifyDateStringFieldTransformedCorrectly(\n FissClaim.Builder::setAdmDateCymd,\n RdaFissClaim::getAdmDate,\n RdaFissClaim.Fields.admDate);\n }", "public static void valDate() {\n Scanner input = new Scanner(System.in);\n try {\n LocalDate dateObj = LocalDate.parse(date);\n } catch (DateTimeParseException ex) {\n System.err.println(\"Invalid date, please insert a valid date with pattern yyyy-MM-dd\");\n date = input.next();\n valDate();\n }\n }", "public LocalDate getValidDateFormat(String msg) {\n String sDate = getCommand(msg);\n\n while (!isValidDate(sDate)){\n sDate = getCommand(ANSI_RED+\"Invalid date. Enter ISO format\"+ANSI_RESET);\n }\n return LocalDate.parse(sDate);\n }", "Date getBirthDate();", "public static boolean validateJavaDate(String strDate)\r\n {\r\n\tif (strDate.trim().equals(\"\"))\r\n\t{\r\n\t\tSystem.out.println(strDate+\" is Invalid Date format\");\r\n\t return false;\r\n\t \r\n\t}\r\n\t/* Date is not 'null' */\r\n\telse\r\n\t{\r\n\t /*\r\n\t * Set preferred date format,\r\n\t * For example MM-dd-yyyy, MM.dd.yyyy,dd.MM.yyyy etc.*/\r\n\t SimpleDateFormat sdfrmt = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t sdfrmt.setLenient(false);\r\n\t /* Create Date object\r\n\t * parse the string into date \r\n */\r\n\t try\r\n\t {\r\n\t Date javaDate = sdfrmt.parse(strDate); \r\n\t System.out.println(strDate+\" is valid date format\");\r\n\t }\r\n\t /* Date format is invalid */\r\n\t catch (ParseException e)\r\n\t {\r\n\t System.out.println(strDate+\" is Invalid Date format\");\r\n\t return false;\r\n\t }\r\n\t \r\n\t return true;\r\n\t}\r\n }", "public static boolean validateDateFormat(String date, String format) {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(format);\n try {\n LocalDate.parse(date, formatter);\n } catch (DateTimeParseException e) {\n return false;\n }\n return true;\n }", "public static String getBirthDate(final String personalIdentityNumber) {\n final Integer day = Integer.parseInt(personalIdentityNumber.substring(6, 8));\n return String.format(\"%s-%s-%02d\", personalIdentityNumber.substring(0, 4), personalIdentityNumber.substring(4, 6),\n day > 60 ? day - 60 : day);\n }", "public interface RegexRule {\n /**\n * yyyy-MM 格式校验\n */\n String START_END_TIME_RULE=\"(19|20)[0-9][0-9]-(0[1-9]|1[0-2])\";\n /**\n * yyyy-MM 格式校验\n */\n String START_END_TIME_RULE_Y_M = \"(19|20)[0-9][0-9]-(0[1-9]|1[0-2])\";\n /**\n * yyyy-MM-dd 时间格式校验\n */\n String START_END_TIME_RULE_Y_M_D = \"((\\\\d{2}(([02468][048])|([13579][26]))[\\\\-\\\\s]?((((0?[13578])|(1[02]))[\\\\-\\\\s]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469])|(11))[\\\\-\\\\s]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[\\\\-\\\\s]?((0?[1-9])|([1-2][0-9])))))|(\\\\d{2}(([02468][1235679])|([13579][01345789]))[\\\\-\\\\s]?((((0?[13578])|(1[02]))[\\\\-\\\\s]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469])|(11))[\\\\-\\\\s]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[\\\\-\\\\s]?((0?[1-9])|(1[0-9])|(2[0-8]))))))\";\n /**\n * yyyy-MM-dd hh:mm:ss\n */\n String START_END_TIME_RULE_Y_M_D_H_M_S = \"^\\\\d{4}[-]([0][1-9]|(1[0-2]))[-]([1-9]|([012]\\\\d)|(3[01]))([ \\\\t\\\\n\\\\x0B\\\\f\\\\r])(([0-1]{1}[0-9]{1})|([2]{1}[0-4]{1}))([:])(([0-5]{1}[0-9]{1}|[6]{1}[0]{1}))([:])((([0-5]{1}[0-9]{1}|[6]{1}[0]{1})))$\";\n /**\n * 名称格式校验\n */\n String NAME_RULE = \"[^\\\\\\\\<>%'\\\"]{0,10}\";\n /**\n * 不含有特殊字符格式校验\n */\n String SPECIAL_WORD_RULE = \"[^\\\\\\\\<>%'\\\"]{1,50}\";\n /**\n * 不含有特殊字符格式校验\n */\n String SPECIAL_WORD_RULE_TWENTY = \"[^\\\\\\\\<>%'\\\"]{1,19}\";\n /**\n * 标题校验\n */\n String TITLE_RULE = \"[^\\\\\\\\<>%'\\\"]{1,60}\";\n /**\n * 用户昵称格式\n */\n String USERNAME_RULE = \"[^\\\\\\\\<>%'\\\"]{1,15}$\";\n /**\n * 时间的格式\n */\n String TIME_FORMAT_Y_M_D = \"yyyy-MM-dd\";\n /**\n * 时间的格式yyyy-MM-dd HH:MM:SS 12时制\n */\n String TIME_FARMAT_Y_M_D_H_M_S = \"yyyy-MM-dd hh:mm:ss\";\n /**\n * 24时制\n */\n String TIME_FARMAT_YYYY_MM_DD_HH_MM_SS_24 = \"yyyy-MM-dd HH:mm:ss\";\n\n /**\n * 1-50汉字格式校验\n */\n String CHINA_WORD = \"[^\\\\\\\\<>%'\\\"]{1,50}\";\n /**\n * 1-5汉字的格式检验\n */\n String CHINESE_RULE = \"^[\\\\u4e00-\\\\u9fa5 ]{1,5}$\";\n\n int FIVE_THOUSAND = 500;\n\n}", "public static LocalDate validDate(String message){\n boolean success = false;\n String line;\n LocalDate date = null;\n do {\n line = readLine(message).trim();\n line = formatDate(line);\n date = checkDate(line, \"dd-MM-yyyy\");\n if (date != null)\n success = true;\n else\n System.out.println(\"Debe introducir una fecha válida (dd-MM-aaaa)... \");\n } while(!success);\n return date;\n }", "public static String dateStr(String str)\n {\n String month = str.split(\"/\")[0];\n String day = str.split(\"/\")[1];\n String year = str.split(\"/\")[2];\n return day + \"-\" + month + \"-\" + year;\n }", "@Test public void Mdy_at_y_slash()\t\t\t\t\t\t\t\t{tst_date_(\"1/2/70\"\t\t\t\t\t, \"1970-01-02\");}", "public Date createDate(int birthDate) {\r\n try {\r\n int year = birthDate / 10000;\r\n int month = (birthDate % 10000) / 100;\r\n int date = birthDate % 100;\r\n String formatDate = year + \"/\" + month + \"/\" + date; // Creates a formatted date.\r\n\r\n SimpleDateFormat formatted = new SimpleDateFormat(\"yyyy/MM/dd\");\r\n return formatted.parse(formatDate);\r\n } catch (java.text.ParseException ex) {\r\n return null;\r\n }\r\n }", "private boolean checkNgay(String ngaySD){\n String pattern=\"\\\\d{4}-\\\\d{1,2}-\\\\d{1,2}\";\n return ngaySD.matches(pattern);\n }", "public static boolean isValidDate(String inDate) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"mm/DD/yyyy\");\n dateFormat.setLenient(false);\n try {\n dateFormat.parse(inDate.trim());\n }\n catch (ParseException pe) {\n\n return false;\n }\n\n return true;\n }", "public void m3() {\n\t\t\r\n\t\tLocalDate dob = LocalDate.parse(\"1991::09::17\",DateTimeFormatter.BASIC_ISO_DATE);\r\n\tSystem.out.println(dob);\r\n\t}", "public void setDob(Date dob) {\n this.dob = dob;\n }", "public static Date parseDateYYYYMMDD(String val) {\n\n\t\tDate d = null;\n\n\t\tif (val != null && !val.equals(\"0\")) {\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\ttry {\n\t\t\t\td = format.parse(val);\n\t\t\t} catch (ParseException e) {\n\t\t\t}\n\t\t}\n\n\t\treturn d;\n\n\t}", "public boolean checkBirthDay(java.util.Date birthdate) {\r\n\r\n Calendar calendar = GregorianCalendar.getInstance();\r\n calendar.setTime(new java.util.Date());\r\n int currentYear = calendar.get(Calendar.YEAR);\r\n\r\n calendar.setTime(birthdate);\r\n int birthYear = calendar.get(Calendar.YEAR);\r\n if ((currentYear - birthYear) < 18) {\r\n return false;\r\n }\r\n return true;\r\n\r\n }", "public static String parseDate(String input) {\n String year = input.substring(0, 4);\n String month = input.substring(5, 7);\n String day = input.substring(8, 10);\n return year + \"-\" + month + \"-\" + day;\n }", "public static boolean isDate(InputField f, String format) {\r\n\t\tString d = f.getValue().replace(\"-\", \"\").replace(\"/\", \"\");\r\n\t\ttry {\r\n\t\t\tnew SimpleDateFormat(format).parse(d);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tcatch(Exception e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public static boolean isValidDate(String input) {\n try {\n LocalDate.parse(input);\n return true;\n } catch (DateTimeParseException e) {\n return false;\n }\n }", "public void fillDateOfBirth(String value) {\n // Only sets main dob for testing results -- Not sufficient to test dob UI itself\n dateOfBirth.sendKeys(value);\n }", "public static boolean validarFecha(String fecha) {\n return validar(\"[0-9]{4}[-/][0-9]{2}[-/][0-9]{2}|[0-9]{2}[-/][0-9]{2}[-/][0-9]{4}\", fecha);\n }", "public static String generateDOB() {\n GregorianCalendar gc = new GregorianCalendar();\n int yyyy = randBetween(1950, 2000);\n gc.set(gc.YEAR, yyyy);\n int dd = randBetween(1, gc.getActualMaximum(gc.DAY_OF_YEAR));\n gc.set(gc.DAY_OF_YEAR, dd);\n\t\tString dob= gc.get(gc.DAY_OF_MONTH)+\"-\"+(gc.get(gc.MONTH) + 1)+\"-\"+gc.get(gc.YEAR);\n System.out.println(gc.get(gc.DAY_OF_MONTH)+\"-\"+(gc.get(gc.MONTH) + 1)+\"-\"+gc.get(gc.YEAR));\n\t\treturn(dob);\n}", "@Test public void Month_name_1__year__day()\t\t\t\t\t{tst_date_(\"2001 Mar 02\"\t\t\t, \"2001-03-02\");}", "public void TypeBirthdayDate4(String TypeBirthdayDate4) {\r\n\t\tbirthdaydate4.clear();\r\n\t\tbirthdaydate4.sendKeys(TypeBirthdayDate4);\r\n\t\t\tLog(\"Entered Birthday (MM/DD) 4: \" + TypeBirthdayDate4);\r\n\t}", "public String toStringDateOfBirth() {\n\t\tDateTimeFormatter format = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n\t\treturn dateofbirth.format(format);\n\t}", "private boolean isValidDate(String date) {\n\t Date d = null;\n\t try {\n\t\t\td = format.parse(date);\t\t\t\n\t\t\treturn d != null;\n\t\t} catch (java.text.ParseException e) {\n\t\t\treturn false;\n\t\t}\n\t}", "private boolean isValidDate(String date){\n Date inputDate = new Date(date);\n boolean isValid = false;\n\n if (inputDate.isValid()) {\n isValid = true;\n }else{\n generalTextArea.appendText(date + \" is not a valid date!\\n\");\n }\n return isValid;\n }", "private void checkDate(String strDate, LocalDate localDate) {\n if (Integer.parseInt(strDate.substring(0, 4)) != localDate.getYear()\n || Integer.parseInt(strDate.substring(5, 7)) != localDate.getMonthValue()\n || Integer.parseInt(strDate.substring(8,10)) != localDate.getDayOfMonth()) {\n throw new IllegalArgumentException(\"Illegal date: date dose not exist.\");\n }\n }", "private static String convertToDDMMYYYY(Date date) {\n\t\tString returnStr = \"\";\n\t\ttry {\n\t\tDateFormat format1 = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\treturnStr = format1.format(date);\n\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn returnStr;\n\t}", "public static String getFormattedMonthDay(String dateStr){\n\n Pattern fixDate = Pattern.compile(\"(\\\\d{4})(\\\\d{1,2})(\\\\d{1,2})\");\n Matcher correctDate = fixDate.matcher(dateStr);\n correctDate.find();\n\n String Nowiscorrect = String.format(\"%s/%s/%s\",\n correctDate.group(1),\n correctDate.group(2),\n correctDate.group(3));\n\n String MonthAndDay = currentDate.getdateWithMonthLetters(Nowiscorrect);\n\n\n Pattern rtl_CHARACTERS = Pattern.compile(\"^[۱-۹]+\");\n Matcher findTheYear = rtl_CHARACTERS.matcher(MonthAndDay);\n boolean isDone = findTheYear.find();\n\n return isDone ? findTheYear.replaceAll(\"\") : \"\";\n\n }", "public static Date converteStringInvertidaSemBarraAAMMDDParaDate(String data) {\r\n\t\tDate retorno = null;\r\n\r\n\t\tString dataInvertida = data.substring(4, 6) + \"/\" + data.substring(2, 4) + \"/20\" + data.substring(0, 2);\r\n\r\n\t\tSimpleDateFormat dataTxt = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\r\n\t\ttry {\r\n\t\t\tretorno = dataTxt.parse(dataInvertida);\r\n\t\t} catch (ParseException e) {\r\n\t\t\tthrow new IllegalArgumentException(data + \" não tem o formato dd/MM/yyyy.\");\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "@Test(expected = IllegalArgumentException.class)\r\n public void testIncorrectYear() {\r\n SimpleDate d1 = new SimpleDate(\"3/1/1700\");\r\n }", "protected final boolean ok_date (int year, int month, int day)\n {\n return ((year >= FIRST_YEAR) &&\n (1 <= month && month <= getLastMonthOfYear(year)) &&\n (1 <= day && day <= getLengthOfMonth (year, month)));\n }", "@Test\n public void testClaimRecdDtCymd() {\n new ClaimFieldTester()\n .verifyDateStringFieldTransformedCorrectly(\n FissClaim.Builder::setRecdDtCymd,\n RdaFissClaim::getReceivedDate,\n RdaFissClaim.Fields.receivedDate);\n }", "@Test public void Month_name_1__day__year()\t\t\t\t\t{tst_date_(\"2 Mar 2001\"\t\t\t\t, \"2001-03-02\");}", "public String getOnlyYear(String date, String pattern) {\r\n\t\tString year;\r\n\t\tDateTimeFormatter formatter = DateTimeFormat.forPattern(pattern);\r\n\t\tLocalDate localDate = formatter.parseLocalDate(date);\r\n\t\tyear = localDate.yearOfCentury().getAsText();\r\n\t\tif(year.length()==1) year = \"0\"+year;\r\n\t\treturn year;\r\n\t}", "protected boolean isValidDateTimeFormat(String str) {\n SimpleDateFormat inputFormat = new SimpleDateFormat(\"dd/MM/yyy hhmm\");\n try {\n inputFormat.parse(str);\n return true;\n } catch (ParseException e) {\n return false;\n }\n }", "public void parseDate(String d)\n {\n\tdate.set(d);\n String [] dateList = d.split(\"-\");\n \n year.set(Integer.valueOf(dateList[0]));\n month.set(Integer.valueOf(dateList[1]));\n day.set(Integer.valueOf(dateList[2]));\n }", "public static boolean isValidDate(String date) throws DateTimeException, NumberFormatException {\n\n if (date.length() != 10) {\n return false;\n }\n\n String[] dateComponents = date.split(\"/\");\n\n if (dateComponents.length != 3) {\n return false;\n }\n\n int day = Integer.parseInt(dateComponents[0]);\n int month = Integer.parseInt(dateComponents[1]);\n int year = Integer.parseInt(dateComponents[2]);\n\n LocalDate localdate;\n localdate = LocalDate.of(year, month, day);\n return true;\n }", "public boolean checkData(String data){\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd\");\n\t dateFormat.setLenient(false);\n\t try {\n\t\t\tdateFormat.parse(data.trim());\n\t\t} catch (java.text.ParseException e) {\n\t\t\treturn false;\n\t\t}\n\t return true;\n\t}", "public static void isValidCreditCardExpirationDate(String userInput) {\n\t\tDateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"MM/yy\");\n\t\ttry {\n\t\t\t// Try to parse a YearMonth from the input, then check to make sure it is not in\n\t\t\t// the past.\n\t\t\tif (YearMonth.parse(userInput, formatter).isBefore(YearMonth.now())) {\n\t\t\t\tthrow new IllegalArgumentException(\"Expiration date must be in the future! Please try again:\");\n\t\t\t}\n\t\t} catch (DateTimeException dte) {\n\t\t\tthrow new IllegalArgumentException(\"Expiration date format must be mm/yy. Please try again:\");\n\t\t}\n\n\t}", "private static boolean validateAge(String age) {\n return true;\n\n }", "private Date stringToDate(String datum)\r\n\t{\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd.MM.yyyy\");\r\n\t\ttry\r\n\t\t{\r\n\t\t\tDate d = df.parse(datum);\r\n\t\t\treturn d;\r\n\t\t}\r\n\t\tcatch (ParseException e)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "@Test\n @Disabled\n public void testValidateFecha() {\n assertTrue(RegExprMain.validateFecha(\"10/06/2022\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2011\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2015\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2016\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2021\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/1999\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2007\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2000\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2002\"));\n assertFalse(RegExprMain.validateFecha(\"38/06/2009\"));\n assertFalse(RegExprMain.validateFecha(\"10/20/2010\"));\n \n \n\n }", "private static void checkDate(String date) {\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n if (!date.matches(RegexPattern.DATE_PATTERN)) {\n throw new DaoException(ExceptionMessage.getMessage(ExceptionMessage.DATE_PATTERN_ERROR));\n }\n try {\n Date formatDate = simpleDateFormat.parse(date);\n if (formatDate.getTime() + TIME_IN_DAY < new Date().getTime()) {\n throw new DaoException(\"Date must be in Future\");\n }\n } catch (ParseException ex) {\n throw new DaoException(ex.getMessage());\n }\n }", "public void validate_the_Date_of_Birth_of_Security_in_Customer_Tab(String DateofBirth)throws Exception {\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_Security.replaceAll(\"M_Header\", \"Security\").replaceAll(\"M_Category\", \"Date of Birth\").replaceAll(\"M_InnerText\", DateofBirth), \"Date of Birth - \"+DateofBirth, false);\n\t}", "public void checkLeapYear(int year) {\r\n\t int count=1;\r\n\t int temp=year;\r\n\t\twhile(temp>10){\r\n\t\t\tint r= temp%10;\r\n\t\t\tcount++;\r\n\t\t\ttemp=temp/10;\r\n\t\t}\r\n\t\tif(count>=3){\r\n\t\t\tif(year%4==0){\r\n\t\t\t\tSystem.out.println(\"given year is leap year:\");\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"given year is not leap year:\");\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tSystem.out.println(\"please enter atleast 4 digit no to find leap year\");\r\n\t\t}\r\n}", "@Test\n public void testBirthDate() {\n registerUser(username, password, password, email, email, forename, surname, \"01/01/1990\");\n assertNotNull(userService.getUser(username));\n }" ]
[ "0.7101434", "0.70373446", "0.6969034", "0.67654216", "0.6486768", "0.63740325", "0.6355469", "0.6316476", "0.6310688", "0.62962604", "0.6267624", "0.6261589", "0.62177783", "0.6207839", "0.6191772", "0.61431104", "0.6075877", "0.6048912", "0.59950215", "0.59690255", "0.5952498", "0.5948213", "0.59412277", "0.5873395", "0.5865064", "0.58507705", "0.58313787", "0.58308357", "0.58302295", "0.5811051", "0.5756406", "0.5748177", "0.57474", "0.5739793", "0.57154536", "0.5714161", "0.57101774", "0.5708824", "0.5696109", "0.5693283", "0.5673658", "0.5658528", "0.5646724", "0.56260896", "0.5597282", "0.5592974", "0.5575329", "0.5570666", "0.55655736", "0.5563128", "0.55628335", "0.5548356", "0.55206645", "0.55153257", "0.5506461", "0.5505186", "0.55022955", "0.55013317", "0.54795873", "0.5474267", "0.5469545", "0.54686886", "0.54684436", "0.54666823", "0.5459744", "0.5436909", "0.54305947", "0.54260087", "0.54248494", "0.5423524", "0.5410838", "0.5408341", "0.53974664", "0.5391791", "0.5387588", "0.5374286", "0.53726727", "0.5369704", "0.5367083", "0.5348585", "0.5345019", "0.53339493", "0.53312695", "0.53281087", "0.5325548", "0.532069", "0.53161925", "0.5315726", "0.53122205", "0.5310839", "0.5309283", "0.53084034", "0.52998036", "0.5298124", "0.5295702", "0.52904004", "0.52903074", "0.5284937", "0.5280543", "0.5273043", "0.5270761" ]
0.0
-1
This method determines, if the user is already explicitly logged in.
private boolean isUserExplicitlyLoggedIn() { // User is explicitly logged in, if his securityStatus is more than or equal to security status login. String securityStatusPropertyName = getStorePropertyManager().getSecurityStatusPropertyName(); int securityStatus = ((Integer) getProfile().getPropertyValue(securityStatusPropertyName)).intValue(); return securityStatus >= getStorePropertyManager().getSecurityStatusLogin(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean isUserLoggedIn() {\n\t\treturn sessionService.getCurrentUserId() != null;\n\t}", "public boolean checkIfLoggedIn() \n {\n if(this.getLoggedUser() != null)\n {\n return true;\n }\n return false;\n }", "public boolean isLoggedIn() {\n SharedPreferences sharedPreferences = mCtx.getSharedPreferences(SHARED_PREF_NAME, Context.MODE_PRIVATE);\n return sharedPreferences.getString(KEY_USER, null) != null;\n }", "private boolean isLoggedIn() {\n // Gets SharedPreferences\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\n // Gets boolean, which displays if the user has ever logged in.\n // This changes to true, when the user has logged in\n return sharedPreferences.getBoolean(getResources().getString(R.string.pref_logged_in_key), getResources().getBoolean(R.bool.pref_already_logged_in_default));\n }", "public boolean isLoggedIn(){\n SharedPreferences sharedPreferences = mCtx.getSharedPreferences(SHARED_PREF_NAME, Context.MODE_PRIVATE);\n if (sharedPreferences.getString(KEY_USERNAME, null) != null){\n return true;\n }\n return false;\n }", "public boolean isLoggedIn() {\n return mAuth.getCurrentUser() != null;\n }", "private boolean loggedIn() {\n boolean exist = false;\n UsuarioBean u = (UsuarioBean) FacesUtil.getBean(\"usuarioBean\");\n if (u.getLoggedIn() != null) {\n exist = u.getLoggedIn().booleanValue();\n }\n return exist;\n }", "private void checkUser() {\n\t\tloginUser = mySessionInfo.getCurrentUser();\n\t}", "private boolean isLoggedInUser(){\n return true;\n }", "private boolean AlreadyLogin() {\n\t\tString usn = uPreferences.getString(\"username\", null);\n\t\tString pwd = uPreferences.getString(\"password\", null);\n\t\tif((usn == null) || ((pwd == null))){\n\t\t\treturn false;\n\t\t}\n\t\telse \n\t\t\treturn true;\n\t}", "public static boolean shouldLogin() {\n if (AppPreference.getInstance().getUserLoggedIn() == null ) {\n //|| deltaActive > Constant.SESSION_EXIPRED_TIME) {\n return true;\n }\n\n return false;\n }", "public boolean isLoggedIn() {\r\n SharedPreferences sharedPreferences = ctx.getSharedPreferences(SHARED_PREF_NAME, Context.MODE_PRIVATE);\r\n return sharedPreferences.getString(KEY_EMAIL, null) != null;\r\n }", "public boolean isLoggedIn()\n {\n AccessToken accessToken = AccessToken.getCurrentAccessToken();\n return (accessToken != null);\n }", "public boolean isUserLoggedIn();", "public boolean isLoggedIn() {\n AccessToken accessToken = AccessToken.getCurrentAccessToken();\n if (accessToken == null) {\n return false;\n }\n return !accessToken.isExpired();\n }", "public boolean isLoggedIn(){\n return mSharedPreferences.contains(SharedPrefContract.PREF_IS_LOGGED_IN) && mSharedPreferences.getBoolean(SharedPrefContract.PREF_IS_LOGGED_IN, true);\n }", "public boolean isLoggedIn() {\n SharedPreferences sharedPreferences = mCtx.getSharedPreferences(AppConfig.SHARED_PREF_NAME, Context.MODE_PRIVATE);\n return sharedPreferences.getString(AppConfig.EMAIL, null) != null;\n }", "@Override\n\tpublic boolean isLoggedIn() {\n\t\treturn false;\n\t}", "public boolean checkLogin() {\n return sharedPref.getBoolean(LOGGEDIN_KEY, false);\n }", "private boolean isLoggedIn() {\n return mSharedPreferences.getBoolean(PREF_KEY_LOGIN, false);\n }", "public boolean isLoggedIn(@NotNull Http.Context ctx) {\n Session session = this.getSession(ctx.request());\n return session != null && !(session.getUsername() == null || session.getUsername().isEmpty());\n }", "public boolean isAuthenticated() {\r\n\t\treturn user != null;\r\n\t}", "public boolean isUserSignedIn(){\n mFirebaseAuth = FirebaseAuth.getInstance();\n mFirebaseUser = mFirebaseAuth.getCurrentUser();\n if (mFirebaseUser == null) { return false;}\n else return true;\n }", "protected boolean isLoggedIn() {\n FirebaseUser currentUser = mAuth.getCurrentUser();\n return currentUser != null && prefs.isVerified();\n }", "public boolean isLoggedIn() {\n return pref.getBoolean(IS_LOGIN, false);\n }", "public boolean isLoggedIn() {\n return pref.getBoolean(IS_LOGIN, false);\n }", "synchronized public boolean getLoggedin()\n\t{\n\t\treturn userInfo.isSessionValid();\n\t}", "public boolean isLoggedIn()\n {\n return pref.getBoolean(KEY_IS_LOGGEDIN, false);\n }", "public boolean isLoggedIn() {\n return sharedPreferences.getBoolean(IS_LOGIN, false);\n }", "public static boolean isLoggedIn() {\n\t\treturn arcade.hasPlayer();\n\t}", "public boolean isLoggedIn() {\n return preferences.getBoolean(\n KeyWordsAndConstants.IS_LOGGED_IN,\n false\n );\n }", "public boolean isUserLoggedIn(Context context){\n\t\tDatabaseHandler db = new DatabaseHandler(context);\n\t\tint count = db.getRowCount();\n\t\tif(count > 0){\n\t\t\t// user logged in\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isExistingUser() {\r\n return isExistingUser;\r\n }", "public static Boolean isLoggedIn(User user){\n if(user.getFirstName() != null){\n return true;\n }\n return false;\n }", "public boolean isLoggedIn() {\n\t\treturn this.loggedIn;\n\t}", "boolean hasLoggedIn();", "public boolean isLoggedIn()\n {\n return this.isLoggedIn;\n }", "public static boolean isLoggedIn() {\n return Application.getGame().isLoggedIn();\n }", "public boolean isUser()\n\t{\n\t\treturn (id != -1);\n\t}", "public boolean hasLogin() {\n return login_ != null;\n }", "Boolean isLogIn();", "public static boolean isLoggedIn() {\n\t\treturn loggedIn;\n\t}", "@Override\n public boolean isLoggedin(HttpServletRequest request) {\n boolean result = false;\n HttpSession session = request.getSession();\n String userName = (String) session.getAttribute(\"userName\");\n String token = (String) session.getAttribute(\"token\");\n if (userName != null && token != null) {\n CrUser user = userRepo.findByUserName(userName);\n if (user != null && isTokenValid(user, token)) {\n result = true;\n }\n }\n return result;\n }", "public boolean isLoggedIn() {\n return loggedIn;\n }", "private static boolean doCheckLogin(SharedPreferences sharedPreferences) {\n boolean loginRecorded = sharedPreferences.getBoolean(LOGIN_SAVED_KEY, false); // check if a login has been recorded by another session\n\n loggedIn = loginRecorded && FirebaseAuth.getInstance().getCurrentUser() != null; // if current user is null, force a re-login\n return loggedIn;\n }", "public Boolean isLoggedIn() {\n\t\treturn loggedIn;\n\t}", "public boolean isLoggedin(){\n return STATE.equals(IN);\n }", "public static boolean isLoggedIn(HttpServletRequest request) {\n return getUserSession(request) != null;\n }", "private void checkIfUserIsAuthenticated() {\n splashViewModel.checkIfUserIsAuthenticated();\n splashViewModel.getIsUserAuthenticated().observe(this, user -> {\n if (!user.isAuthenticated()) {\n startAuthActivity();\n finish();\n } else {\n getUserFromDatabase(user.getUid());\n }\n });\n }", "@Override\n protected boolean tryAlreadyLoginOrRememberMe(LoginHandlingResource resource) {\n if (super.tryAlreadyLoginOrRememberMe(resource)) { // if hybrid with session\n return true;\n }\n return requestManager.getHeader(\"x-authorization\").flatMap(token -> {\n return findByAuthToken(token).map(member -> {\n syncCheckLoginSessionIfNeeds(createUserBean(member)); // sometimes synchronize with database\n saveLoginInfoToSession(member); // if hybrid with session\n return true;\n });\n }).orElse(false);\n }", "public boolean isUserAuthenticated() {\n SharedPreferences settings = mContext.getSharedPreferences(\"UserData\", Context.MODE_PRIVATE);\n if(settings!=null){\n String user=settings.getString(\"userid\",null);\n String area=settings.getString(\"areaid\",null);\n if (user != null && !user.equals(\"\")) {\n mUserId=user;\n mAreaId=area;\n return true;\n }\n else{\n return false;\n }\n }\n else{\n return false;\n }\n }", "public void checkAlreadyLogin(CheckLoggedInInterface listner) {\n currentUser = firebaseAuth.getCurrentUser();\n if(currentUser != null) listner.isLoggedIn(true);\n else listner.isLoggedIn(false);\n }", "private boolean isSessionAuthenticated(Session userSession) {\n\t\treturn accountIdsByUserSession.containsKey(userSession);\n\t}", "public boolean hasUser() {\n return user_ != null;\n }", "public boolean hasUser() {\n return user_ != null;\n }", "private void checkIfLoggedIn() {\n LocalStorage localStorage = new LocalStorage(getApplicationContext());\n\n if(localStorage.checkIfAuthorityPresent()){\n Intent intent = new Intent(getApplicationContext(),AuthorityPrimaryActivity.class);\n startActivity(intent);\n } else if(localStorage.checkIfUserPresent()){\n Intent intent = new Intent(getApplicationContext(), UserPrimaryActivity.class);\n startActivity(intent);\n }\n }", "public Boolean isLoggedIn() {\n return this.loggedIn;\n }", "public boolean isLoggedIn() {\n SQLiteDatabase db = this.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 SportPartnerDBContract.LoginDB.COLUMN_EMAIL_NAME\n };\n\n Cursor cursor = db.query(\n SportPartnerDBContract.LoginDB.TABLE_NAME,\n projection,\n null,\n null,\n null,\n null,\n null\n );\n\n boolean logedin = cursor.getCount() == 1;\n cursor.close();\n return logedin;\n }", "public Boolean isLoggedIn()\n {\n return isLoggedIn;\n }", "public boolean isLoggedIn(){\n return mIsLoggedIn;\n }", "public boolean hasUser() {\n return user_ != null;\n }", "public boolean isSetLogin() {\n return this.login != null;\n }", "public boolean isSetLogin() {\n return this.login != null;\n }", "private boolean isTwitterLoggedInAlready() {\n // return twitter login status from Shared Preferences\n return mSharedPreferences.getBoolean(PREF_KEY_TWITTER_LOGIN, false);\n }", "@Step(\"Verify that right user is signed in\")\n public boolean isSignedIn() {\n if (!(Driver.driver.getCurrentUrl().equals(url))) open();\n WebElement email = Driver.driver.findElement(By.id(\"email\"));\n return email.getAttribute(\"value\").equals(SignUpPage.getEmail());\n }", "@GET\n @Path(\"LoggedIn\")\n public boolean isLoggedIn() {\n return SecurityUtils.getSubject().isRemembered() || SecurityUtils.getSubject().isAuthenticated();\n }", "public boolean isLogged() {\n return sessionManager.getKEY_IS_LOGGEDIN();\n }", "@Override\n\tpublic boolean isLoginAlreadyUsed(final String login) {\n\t\treturn null != this.getUserId(login);\n\t}", "public boolean isCurrentUser(int id) {\n\t\treturn (currentUser.getId() == id);\n\t}", "private boolean login()\n {\n System.out.print(\"Enter your username: \");\n String userName = keyboard.nextLine().toLowerCase();\n currentUser = fs.getUser(userName);\n System.out.println();\n\n return currentUser != null;\n }", "private void userIsAuthenticated() {\n this.setResult(RC_USER_LOGGED_IN, null);\n this.finish();\n }", "public boolean hasUser() {\n return instance.hasUser();\n }", "private void checkSessionState() {\n // get logged in mUser\n mUser = getStoredUser();\n // check if valid\n mIsLoggedIn = (mUser != null && mUser.getId() != null);\n }", "public static boolean isLogged() {\n\t\treturn \"1\".equals(MemberSessionFacade.getAttribute(ConfigKeys.LOGGED));\n//\t\treturn \"1\".equals(ControllerUtils.getCookie(ConfigKeys.LOGGED));\n\t}", "public boolean shouldLogIn() {\n // Check if the page requires a login\n HttpSession session = (HttpSession) _currentSession.get();\n if (session == null) {\n return true;\n }\n HashMap inputParameters = (HashMap) session.getAttribute(\"_inputs\");\n String command = (String) inputParameters.get(\"command\");\n if (_unrestrictedPages.contains(\"*\") ||\n _unrestrictedPages.contains(command) ||\n (command != null && command.startsWith(\"_\"))) {\n return false;\n }\n \n // Check if the user is logged in\n return !getBoolProperty(getSessionId());\n }", "@Before(unless = { \"signin\", \"doLogin\" })\n\tprivate static void checkAuthentification() {\n\t\t// get ID from secure social plugin\n\t\tString uid = session.get(PLAYUSER_ID);\n\t\tif (uid == null) {\n\t\t\tsignin(null);\n\t\t}\n\n\t\t// get the user from the store. TODO Can also get it from the cache...\n\t\tUser user = null;\n\t\tif (Cache.get(uid) == null) {\n\t\t\ttry {\n\t\t\t\tuser = UserClient.getUserFromID(uid);\n\t\t\t\tCache.set(uid, user);\n\t\t\t} catch (ApplicationException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tflash.error(\"Problem while getting user from store...\");\n\t\t\t}\n\t\t} else {\n\t\t\tuser = (User) Cache.get(uid);\n\t\t}\n\n\t\tif (user == null) {\n\t\t\tflash.error(\"Problem while getting user from store...\");\n\t\t\tAuthentifier.logout();\n\t\t}\n\n\t\tif (user.avatarURL == null) {\n\t\t\tuser.avatarURL = Gravatar.get(user.email, 100);\n\t\t}\n\n\t\t// push the user object in the request arguments for later display...\n\t\trenderArgs.put(PLAYUSER, user);\n\t}", "public static Boolean isUserLoggedIn(HttpSession session) {\r\n\t\tObject logged = session.getAttribute(Misc.LOGGED_ATTRIBUTE);\r\n\t\treturn logged != null && (Boolean) logged;\r\n\t}", "public boolean hasLogin() {\n return loginBuilder_ != null || login_ != null;\n }", "public boolean isSetUser() {\n return this.user != null;\n }", "public boolean isSetUser() {\n return this.user != null;\n }", "public boolean checklogin() {\n\t\treturn (pref.getBoolean(\"isLog\", false));\n\t}", "public boolean checkLoggedIn() {\n FirebaseUser user = firebaseAuth.getCurrentUser();\n\n if(user != null) {\n return user.isEmailVerified();\n }\n\n return false;\n }", "@Override\n\tpublic boolean isLogin() {\n\t\treturn false;\n\t}", "boolean isSignedIn();", "private boolean checkLogin() {\n firebaseAuth = FirebaseAuth.getInstance();\n currentUser = firebaseAuth.getCurrentUser();\n if(currentUser == null) {\n //show login activity\n Intent intent = new Intent(this, LoginActivity.class);\n startActivity(intent);\n return false;\n } else {\n verifyUserPII(currentUser);\n return true;\n }\n }", "public boolean isLoggedInt() {\n return loggedIn;\n }", "@Override\n public boolean isAuthenticated() {\n return !person.isGuest();\n }", "private boolean setLoggedInUser(String userId) {\n if (currentContext != null) {\n //Set the user Id when user is successfully logged_in\n if (mFireBaseAnalytics != null)\n mFireBaseAnalytics.setUserId(userId);\n SharedPreferences sharedPrefs = currentContext.getSharedPreferences(LOGIN_SHARED_PREF_NAME, 0);\n return sharedPrefs.edit().putString(USER_ID_SHARED_PREF_NAME, userId).commit() &&\n setLoggedInTime();\n }\n return false;\n }", "public abstract boolean isLoggedIn();", "boolean hasLogin();", "boolean hasLogin();", "private boolean validLogin() {\n\t\tObject principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\r\n\t\tif(principal.equals(IConstant.LOGIN_STATUS.ANONYMOUS_USER)) {\r\n\t\t\treturn false;\r\n\t\t} else {\r\n\t\t\tUserDetails userDetails = (UserDetails) principal;\r\n\t\t\treturn userDetails.isAccountNonExpired() &&\r\n\t\t\t\t\tuserDetails.isAccountNonLocked() &&\r\n\t\t\t\t\tuserDetails.isCredentialsNonExpired() &&\r\n\t\t\t\t\tuserDetails.isEnabled();\r\n\t\t}\r\n\t}", "private boolean isLoginUnique(int currentUserId){\n\t\tUser user = Main.getMMUser().getUserForLogin(userLoginField.getText());\n\t\tif (user == null) return true;\n\t\telse {\n\t\t\tif (user.getId() == currentUserId) return true;\n\t\t}\t\n\t\tlackUserLoginLabel.setText(\"taki login istnieje w bazie\");\n\t\tlackUserLoginLabel.setVisible(true);\n\t\treturn false;\n\t}", "public boolean hasRegisteredUser() {\n return registeredUser_ != null;\n }", "@Override\n public boolean check() {\n return GlobalParams.isLogin();\n }", "public boolean isSetLastLoggedIn() {\n return this.lastLoggedIn != null;\n }", "@Override\n\tpublic boolean isUser(User user) {\n\t\treturn false;\n\t}", "private boolean isAuthenticated(final ContainerRequestContext requestContext) {\n // Return true if the user is authenticated or false otherwise\n return requestContext.getSecurityContext().getUserPrincipal() != null;\n }", "private boolean isUserExists() {\n\t\treturn KliqDataStore.isUserExists(this.mobileNumber, null);\r\n\t}", "private boolean _requiresLogin() {\n AccessToken accessToken = AccessToken.getCurrentAccessToken();\n if (accessToken == null) {\n return true;\n } else {\n return accessToken.isExpired();\n }\n }" ]
[ "0.8094628", "0.77023107", "0.77013254", "0.7637871", "0.7633376", "0.76103944", "0.74847007", "0.74445516", "0.7430621", "0.73701626", "0.7363476", "0.73403966", "0.7319253", "0.73189205", "0.73081744", "0.7295373", "0.72737485", "0.72148305", "0.7202661", "0.7199002", "0.71822596", "0.71799564", "0.7179525", "0.71726596", "0.71654767", "0.71654767", "0.71644634", "0.7146822", "0.71412605", "0.7122382", "0.71138155", "0.70891094", "0.70819086", "0.706816", "0.7045178", "0.7003844", "0.699373", "0.6986095", "0.69828176", "0.6971871", "0.6966505", "0.69549274", "0.6946903", "0.69391215", "0.69368875", "0.69270945", "0.6892095", "0.68919367", "0.6888613", "0.68408304", "0.68149596", "0.68124515", "0.6776386", "0.67761767", "0.67761767", "0.6771794", "0.6736287", "0.6729726", "0.6726848", "0.6711898", "0.67118126", "0.66957796", "0.66957796", "0.6681144", "0.6673509", "0.6665773", "0.6665414", "0.6651207", "0.6644887", "0.6638608", "0.663649", "0.66322666", "0.6621365", "0.66213435", "0.6605134", "0.6602271", "0.6587118", "0.65865535", "0.65802324", "0.65802324", "0.65796036", "0.65765697", "0.6552108", "0.65435636", "0.6541025", "0.65387934", "0.6534269", "0.6532808", "0.65066904", "0.65022576", "0.65022576", "0.64978886", "0.648555", "0.64830565", "0.64715815", "0.6461964", "0.6394812", "0.63856936", "0.6382919", "0.6381751" ]
0.8089316
1
This method determines, if the user is anonym.
private boolean isUserAnonymous() { // User is anonymous, if his profile is transient. return getProfile().isTransient(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isAutonym() {\n return flags != null && flags.contains(NameFlag.AUTONYM);\n }", "private static boolean isAntonym(String text) {\n return text != null && text.equals(\"ant\");\n }", "public boolean isUser()\n\t{\n\t\treturn (id != -1);\n\t}", "@Override\n\tpublic boolean isUser(User user) {\n\t\treturn false;\n\t}", "@Override\n public boolean isUser() {\n return false;\n }", "private boolean correctUser() {\n // TODO mirar si l'usuari es unic a la base de dades\n return true;\n }", "public void isAllowed(String user) {\n \r\n }", "public static boolean databaseExportAnonymizerEnabled() {\n\t\tif ((xml == null) || (databaseExportAnonymize == null)) return false;\n\t\treturn databaseExportAnonymize.equals(\"yes\");\n\t}", "private boolean cekUser(String user){\n return user.equals(Preferences.getRegisteredUser(getBaseContext()));\n }", "public boolean isUser(String userName) throws Exception;", "boolean hasUserName();", "public boolean isAnonymousUser() {\n return ElasticSocialFunctions.isAnonymousUser();\n }", "boolean hasUserId();", "boolean hasUserId();", "boolean hasUserId();", "private boolean isNotCurrentUser(User user) {\n if (user.getEmail().equals(mEncodedEmail)) {\n /* Toast appropriate error message if the user is trying to add themselves */\n Toast.makeText(mActivity,\n mActivity.getResources().getString(R.string.toast_you_cant_add_yourself),\n Toast.LENGTH_LONG).show();\n return false;\n }\n return true;\n }", "private boolean userUnderJurisdiction(String userID) {\r\n\t\tif ((userID.equals(\"Angela\") || userID.equals(\"Rosendo\")))\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "boolean isUser(String username);", "public boolean isEveryone();", "private boolean isAdmin() {\n\t\tString name = (String) session.getAttribute(\"name\");\n\t\tif (name.equals(ADMIN)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUsername();", "boolean hasUsername();", "boolean hasUsername();", "boolean hasUsername();", "boolean hasUsername();", "boolean hasUsername();", "public boolean userType()\n {\n return false;\n }", "public boolean isCurrentUserAdmin(){\n if (getAdminUserFromId(currentUserId)!=null){\n return true;\n }\n else{\n return false;\n }\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 static boolean dicomImportAnonymizerEnabled() {\n\t\tif ((xml == null) || (dicomImportAnonymize == null)) return false;\n\t\treturn dicomImportAnonymize.equals(\"yes\");\n\t}", "public boolean isUserAuthenticated() {\n SharedPreferences settings = mContext.getSharedPreferences(\"UserData\", Context.MODE_PRIVATE);\n if(settings!=null){\n String user=settings.getString(\"userid\",null);\n String area=settings.getString(\"areaid\",null);\n if (user != null && !user.equals(\"\")) {\n mUserId=user;\n mAreaId=area;\n return true;\n }\n else{\n return false;\n }\n }\n else{\n return false;\n }\n }", "public boolean checkAdmin()\r\n\t{\r\n\t\tboolean admin=false;\r\n\t\tint length=user_records.size();\r\n\t\tfor(int i=0;i<length;i++)\r\n\t\t{\r\n\t\t\tif(((User)user_records.get(i)).get_username().equals(\"administrator\"))\r\n\t\t\t{\r\n\t\t\t\tadmin=true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn admin;\r\n\t}", "public static Boolean isLoggedIn(User user){\n if(user.getFirstName() != null){\n return true;\n }\n return false;\n }", "boolean hasObjUser();", "private boolean isInstructor(User user)\r\n {\r\n if (LOG.isDebugEnabled())\r\n {\r\n LOG.debug(\"isInstructor(User \" + user + \")\");\r\n }\r\n if (user != null)\r\n return SecurityService.unlock(user, \"site.upd\", getContextSiteId());\r\n else\r\n return false;\r\n }", "public boolean isManager(String handle) {\n User user = userService.findUser(handle);\n boolean result = userService.isUserInRole(user, managerRole);\n return result;\n }", "private boolean isFriend() {\r\n\r\n return isContactableUser() && !StringUtils.isBlank(friendFeed.getContact().getContactId());\r\n }", "public static boolean isAlphapetic(String userInput) {\n return Pattern.matches(Constants.NAME_VALIDATION, userInput);\n }", "public static String getDatabaseExportAnonymize() {\n\t\tif ((xml == null) || (databaseExportAnonymize == null)) return \"no\";\n\t\treturn databaseExportAnonymize.equals(\"yes\") ? \"yes\" : \"no\";\n\t}", "boolean isAdmin();", "public boolean isUser(String user) throws Exception {\n\t\treturn getDataBase().containsKey(user);\n\t}", "public boolean isSetUser() {\n return this.user != null;\n }", "public boolean isSetUser() {\n return this.user != null;\n }", "boolean hasPants();", "public boolean hasAccount(String user);", "public static boolean isUser(String user) {\n return (UserInfo.find().where().eq(\"email\", user).findUnique() != null);\n }", "public boolean isDangerousToPeople() {\n\t\treturn this.eats.equals(\"people\");\n\t}", "@Override\n public boolean isDM(Optional<BaseCharacter> inUser)\n {\n if(!inUser.isPresent())\n return false;\n\n return inUser.get().hasAccess(Group.DM);\n }", "public static boolean isCurrentUserAnonymous() {\n WorkflowUserManager workflowUserManager = (WorkflowUserManager) appContext.getBean(\"workflowUserManager\");\n boolean result = workflowUserManager.isCurrentUserAnonymous();\n return result;\n }", "boolean hasCustomerUserAccess();", "boolean hasUserManaged();", "public boolean isUserAnswer() {\n return this.userAnswer;\n }", "public boolean isAdmin();", "private boolean hasUserImportantView() {\n int userID = this.sharedPreferences.getInt(Constants.SP_USER_ID_KEY, 0);\n return this.sharedPreferences.getBoolean(serverName + \"_\" + userID, false);\n }", "public boolean isOwnerKnown() {\n\t\tif (owner == null && possibleOwners.size() == 1)\n\t\t\towner = possibleOwners.get(0);\n\t\t\t\n\t\treturn (owner == null);\n\t}", "boolean hasUserDN();", "public boolean isSetUserName() {\n return this.userName != null;\n }", "public boolean isSetUserName() {\n return this.userName != null;\n }", "static boolean EsAdmin(String username){\n StringTokenizer stk = new StringTokenizer(username,\"_\");\n while (stk.hasMoreTokens()){\n String token = stk.nextToken();\n if (token.equals(\"admin\")){\n return true;\n }\n }\n return false;\n }", "@XmlTransient\n\tpublic boolean isCanActivateUser() {\n\t\treturn (isSecurityAdministrator() && isSelfRegistrationEnabled());\n\t}", "public boolean isSetUserName() {\r\n return this.userName != null;\r\n }", "public boolean isSetUserName() {\r\n return this.userName != null;\r\n }", "public boolean isSetUserName() {\r\n return this.userName != null;\r\n }", "public boolean isSetUserName() {\r\n return this.userName != null;\r\n }", "public boolean isSetUserName() {\r\n return this.userName != null;\r\n }", "public boolean isRegisteredUserName(String userName);", "@Override\n public boolean hasAccess(User user) {\n return user.hasRole(RoleValue.APP_ADMIN) || this.equals(user.company);\n }", "boolean hasAttackerRoleName();", "public boolean isAdmin() {\r\n admin = userBean.isAdmin(email);\r\n return admin;\r\n }", "public boolean isCheckedOutByUser() {\r\n \r\n if (vocabularyFolder == null) {\r\n return false;\r\n } else {\r\n return StringUtils.isNotBlank(vocabularyFolder.getWorkingUser()) && !vocabularyFolder.isWorkingCopy()\r\n && StringUtils.equals(getUserName(), vocabularyFolder.getWorkingUser());\r\n }\r\n }", "private boolean isUserExists() {\n\t\treturn KliqDataStore.isUserExists(this.mobileNumber, null);\r\n\t}", "public boolean checkForUser(Player p) {\n\t\tif(p.getName(p).equals(\"user\")) {\n\t\t\treturn true;\t\t\t\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean hasUser() {\n return user_ != null;\n }", "public boolean hasUser() {\n return user_ != null;\n }", "public boolean isLoggedIn(){\n SharedPreferences sharedPreferences = mCtx.getSharedPreferences(SHARED_PREF_NAME, Context.MODE_PRIVATE);\n if (sharedPreferences.getString(KEY_USERNAME, null) != null){\n return true;\n }\n return false;\n }", "public boolean isGuest() {\n\t\treturn (getUser().getName().equals(\"guest\"));\n\t}" ]
[ "0.7020109", "0.6562604", "0.6356671", "0.6211596", "0.60577863", "0.6042811", "0.58444047", "0.584206", "0.5841918", "0.58340776", "0.58304983", "0.57551676", "0.5732776", "0.5732776", "0.5732776", "0.5732203", "0.5726665", "0.57086265", "0.57057524", "0.5702311", "0.56550086", "0.56550086", "0.56550086", "0.56550086", "0.56550086", "0.56550086", "0.56550086", "0.56464875", "0.56464875", "0.56464875", "0.56464875", "0.56464875", "0.56464875", "0.5645267", "0.5637661", "0.55876166", "0.55876166", "0.55876166", "0.55876166", "0.55876166", "0.55876166", "0.55876166", "0.55876166", "0.55876166", "0.55876166", "0.55876166", "0.55876166", "0.55876166", "0.55876166", "0.55876166", "0.55876166", "0.55876166", "0.55876166", "0.5557009", "0.55409664", "0.55198914", "0.5506278", "0.5491147", "0.54637635", "0.54377127", "0.54368", "0.54287815", "0.54251254", "0.54120624", "0.5411486", "0.5404641", "0.5404641", "0.54034877", "0.5398825", "0.5395193", "0.5392637", "0.53804547", "0.53711694", "0.5371053", "0.53659487", "0.5359893", "0.5345481", "0.53439987", "0.53433806", "0.5332933", "0.5329408", "0.5329408", "0.5325992", "0.53201896", "0.53184223", "0.53184223", "0.53184223", "0.53184223", "0.53184223", "0.5317945", "0.531034", "0.5309728", "0.5308547", "0.530692", "0.5305298", "0.53047985", "0.53033465", "0.53033465", "0.5279223", "0.52755517" ]
0.56728756
20
Get the verification base URL, to be used in sending a verification email to the user.
public String getVerificationUrl() { String verUrl = getUserWebappUrl(); return verUrl + (verUrl.endsWith("/") ? "" : "/") + "verify?code="; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getBaseURL() {\n\t\t\n\t\treturn (ZmailURI.getBaseURI().toString());\n\t\t\n\t}", "public String getBaseLinkUrl() {\n return (String) get(\"base_link_url\");\n }", "public String getBaseUrl() {\n return (String) get(\"base_url\");\n }", "String getServerBaseURL();", "public static String getBaseURL()\r\n {\r\n String savedUrl = P.getChoreoServicesUrl();\r\n return savedUrl.length() > 0 ? savedUrl : Config.DEFAULT_SERVER_URL;\r\n }", "String fallbackBaseUrl() {\n return settings.get(FALLBACK_BASE_URL);\n }", "public String getSecureBaseUrl() {\n return (String) get(\"secure_base_url\");\n }", "private static String getBaseUrl() {\n StringBuilder url = new StringBuilder();\n url.append(getProtocol());\n url.append(getHost());\n url.append(getPort());\n url.append(getVersion());\n url.append(getService());\n Log.d(TAG, \"url_base: \" + url.toString());\n return url.toString();\n }", "public String getSecureBaseLinkUrl() {\n return (String) get(\"secure_base_link_url\");\n }", "public String getBaseURL() {\n return baseURL;\n }", "public String getBaseURL() {\n return baseURL;\n }", "public String getBaseUrl() {\n StringBuffer buf = new StringBuffer();\n buf.append(getScheme());\n buf.append(\"://\");\n buf.append(getServerName());\n if ((isSecure() && getServerPort() != 443) ||\n getServerPort() != 80) {\n buf.append(\":\");\n buf.append(getServerPort());\n }\n return buf.toString();\n }", "String getBaseUri();", "public String getBaseUrl() {\n return builder.getBaseUrl();\n }", "public String getBaseStaticUrl() {\n return (String) get(\"base_static_url\");\n }", "protected String getBaseUrl() {\n return requestBaseUrl;\n }", "public static String getBaseUrl() {\n return baseUrl;\n }", "public String getApplicationURL()\n\t{\n\t\tString url=pro.getProperty(\"baseURL\");\n\t\treturn url;\n\t}", "public String getBaseURL() {\n\n\t\treturn baseURL;\n\n\t}", "public static String getBaseUrl() {\r\n if (baseUrl == null) {\r\n baseUrl = Constants.HTTP_PROTOCOL + \"://\" + getBaseHost() + \":\" + getBasePort();\r\n }\r\n return baseUrl;\r\n }", "public abstract String getBaseURL();", "protected String getBaseUrl(HttpServletRequest request) {\n\t\tString retVal = \"\";\n\t\tif (request != null && request.getRequestURL() != null) {\n\t\t\tStringBuffer url = request.getRequestURL();\n\t\t\tString uri = request.getRequestURI();\n\t\t\t\n\t\t\tretVal = url.substring(0, url.length() - uri.length());\n\t\t}\n\t\t\n\t\treturn retVal;\n\t}", "@Override\n\tprotected String getHttpBaseUrl() {\n\t\treturn this.properties.getHttpUrlBase();\n\t}", "public String getBaseUri() {\n\t\treturn baseUri;\n\t}", "public static String getPrefBaseUrl(Context context){\n String key = context.getString(R.string.pref_base_url_key);\n return PreferenceManager.getDefaultSharedPreferences(context).getString(key,null);\n }", "public URL getBaseHref() {\n return baseHref;\n }", "public String getBaseUrl()\n\t{\n\t\treturn baseUrl;\n\t}", "public String getBaseUrl()\n {\n return baseUrl;\n }", "public String getBaseUrl()\r\n {\r\n return this.url;\r\n }", "public String getBaseUrl() {\r\n return baseUrl;\r\n }", "public static String getdevBaseUrl(){\n\n return DEV_BASE_URL;\n }", "public String getBaseUrl() {\n return baseUrl;\n }", "public String getBaseUrl() {\n return baseUrl;\n }", "public String appBaseUrl() {\n int amtToTrim = request.getServletPath().length() + request.getPathInfo().length();\n String appBase = requestURL.substring(0, requestURL.length()-amtToTrim);\n return appBase;\n }", "java.lang.String getPaymentUrl();", "public java.lang.String getBaseUrl() {\n return bugQuery.getBaseUrl();\n }", "public static String getBaseUrl(HttpServletRequest request) {\n\t\tif ((request.getServerPort() == 80) || (request.getServerPort() == 443))\n\t\t{\n\t\t\treturn request.getScheme() + \"://\" + request.getServerName();\t\n\t\t}\n\t\telse\n\t\t{\n\n\t\t\treturn request.getScheme() + \"://\" + request.getServerName() + \":\" + request.getServerPort();\n\t\t}\n\t}", "public String getSecureBaseStaticUrl() {\n return (String) get(\"secure_base_static_url\");\n }", "public String getBaseURI(){\r\n\t\t \r\n\t\t String uri = properties.getProperty(\"baseuri\");\r\n\t\t if(uri != null) return uri;\r\n\t\t else throw new RuntimeException(\"baseuri not specified in the configuration.properties file.\");\r\n\t }", "public String getBaseUrl() {\n return preferences.getString(PREFERENCES_BACKEND_BASE_URL, \"http://naamataulu-backend.herokuapp.com/api/v1/\");\n }", "public static String UrlToHit(){\n\t\treturn BaseURL;\n\t}", "String getRootServerBaseUrl();", "public static URL getEmailServer()\n {\n return emailServer;\n }", "private String getBaseUri() {\n\t\treturn null;\n\t}", "public static String getServerBaseUrl() {\n if (isProductionMode()) {\n return getConfiguration().productionModeServerBaseUrl();\n }\n return getConfiguration().developmentModeServerBaseUrl();\n }", "@Override\n\tpublic URL getBaseURL() {\n\t\tURL url = null;\n\t\tString buri = getBaseURI();\n\t\tif (buri != null) {\n\t\t\ttry {\n\t\t\t\turl = new URL(buri);\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\ttry {\n\t\t\t\t\tString docuri = document.getDocumentURI();\n\t\t\t\t\tif (docuri != null) {\n\t\t\t\t\t\tURL context = new URL(docuri);\n\t\t\t\t\t\turl = new URL(context, buri);\n\t\t\t\t\t}\n\t\t\t\t} catch (MalformedURLException e1) {\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn url;\n\t}", "public String baseUrl() {\n return baseUrl;\n }", "private String baseUrl() {\n return \"http://\" + xosServerAddress + \":\" +\n Integer.toString(xosServerPort) + XOSLIB + baseUri;\n }", "public String getServerBase() {\n HttpServletRequest request = FxJsfUtils.getRequest().getRequest();\n return \"http\" + (request.isSecure() ? \"s://\" : \"://\") + FxRequestUtils.getExternalServerName(request);\n }", "java.lang.String getSignatureProviderUrl();", "public String getCorrectURL() {\n\t\treturn defineCorrectURL(); \t\r\n\t}", "FullUriTemplateString baseUri();", "public String getUnproxiedFieldDataServerUrl() {\n\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ctx);\n\t\tString hostName = prefs.getString(\"serverHostName\", \"\");\n\t\tString context = \"bdrs-core\";//prefs.getString(\"contextName\", \"\");\n\t\tString path = prefs.getString(\"path\", \"\");\n\t\t\n\t\tStringBuilder url = new StringBuilder();\n\t\turl.append(\"http://\").append(hostName).append(\"/\").append(context);\n\t\t\n\t\tif (path.length() > 0) {\n\t\t\turl.append(\"/\").append(path);\n\t\t}\n\t\t\n\t\treturn url.toString();\n\t}", "public String getContextUrl() {\n String currentURL = driver.getCurrentUrl();\n return currentURL.substring(0, currentURL.lastIndexOf(\"/login\"));\n }", "private String getUrlBaseForLocalServer() {\n\t HttpServletRequest request = ((ServletRequestAttributes) \n\t\t\t RequestContextHolder.getRequestAttributes()).getRequest();\n\t String base = \"http://\" + request.getServerName() + ( \n\t (request.getServerPort() != 80) \n\t \t\t ? \":\" + request.getServerPort() \n\t\t\t\t : \"\");\n\t return base;\n\t}", "public static String getURL() {\n\t return getURL(BackOfficeGlobals.ENV.NIS_USE_HTTPS, BackOfficeGlobals.ENV.NIS_HOST, BackOfficeGlobals.ENV.NIS_PORT);\n\t}", "public static URL getUrlForReg()\r\n {\r\n String strUrl = getBaseURL() + \"account_services/api/1.0/account\";\r\n return str2url( strUrl );\r\n }", "public static URL getUrlForForgotPassword()\r\n {\r\n String strUrl = getBaseURL() + \"account_services/api/1.0/account/forgot_password\";\r\n return str2url( strUrl );\r\n }", "public String getServerURI() {\n return settings.getString(\"server_url\", DEFAULT_SERVER_URL);\n }", "public static String getModuleBaseUrl(HttpServletRequest request) {\n\t String requestedUri = request.getRequestURI();\n\t int contextEnd = request.getContextPath().length();\n\t int folderEnd = requestedUri.lastIndexOf('/') + 1;\n\t return requestedUri.substring(contextEnd, folderEnd);\n\t }", "String getServerUrl();", "@Test\n\tpublic void testGetBaseUrlDomain() {\n\t\tString result = helper.getBaseUrl(\"http://www.bobbylough.com\");\n\t\tassertEquals(\"http://www.bobbylough.com\", result);\n\t}", "public String getLogonURL()\n {\n return getUnsecuredRootLocation() + configfile.logon_url;\n }", "public void determineBaseUrl() {\n if (Environment.isLatest()) {\n baseUrl = \"api-latest.wdpro.starwave.com\";\n } else if (Environment.isStage()) {\n baseUrl = \"api-stage.wdpro.starwave.com\";\n } else if (Environment.isENV4()) {\n baseUrl = \"api-latest.wdpro.starwave.com\";\n } else if (Environment.isENV2()) {\n // baseUrl = \"api-qa.wdpro.disney.go.com:8088\";\n baseUrl = \"api-env2.wdpro.starwave.com\";\n } else if (Environment.isSoftLaunch()) {\n baseUrl = \"api.wdpro.disney.go.com\";\n } else if (Environment.isShadow()) {\n baseUrl = \"api-shadow.wdpro.starwave.com\";\n } else if (Environment.isProduction()) {\n baseUrl = \"api.wdpro.disney.go.com\";\n } else {\n baseUrl = \"api.wdpro.disney.go.com\";\n }\n }", "@Override\n public String getMailConfigArtifactoryUrl() {\n // mail configurations is always the best match\n MutableCentralConfigDescriptor mutableCentralConfigDescriptor = centralConfigService.getMutableDescriptor();\n MailServerDescriptor mailServer = mutableCentralConfigDescriptor.getMailServer();\n if (mailServer != null && StringUtils.isNotBlank(mailServer.getArtifactoryUrl())) {\n return PathUtils.addTrailingSlash(mailServer.getArtifactoryUrl()) + HttpUtils.WEBAPP_URL_PATH_PREFIX + \"/\";\n }\n\n // request is the second best match\n HttpServletRequest request = RequestThreadLocal.getRequest();\n if (request != null) {\n String url;\n url = HttpUtils.getServletContextUrl(request);\n if (StringUtils.isNotBlank(url)) {\n return PathUtils.addTrailingSlash(url) + HttpUtils.WEBAPP_URL_PATH_PREFIX + \"/\";\n }\n }\n\n // baseUrl is the last option\n MutableCentralConfigDescriptor descriptor = centralConfigService.getMutableDescriptor();\n String urlBase = descriptor.getUrlBase();\n if (StringUtils.isNotBlank(urlBase)) {\n return PathUtils.addTrailingSlash(urlBase) + HttpUtils.WEBAPP_URL_PATH_PREFIX + \"/\";\n }\n return \"\";\n }", "public static String getTestsiteurl() {\n\t\treturn testsiteurl;\n\t}", "public String getCurrentUrlConfig() {\n String primary = AbstractConfigHandler.getPrimaryDataServer();\n if (primary == null) {\n logger.debug(\"No primary dataserver found\");\n urlUnset();\n return null;\n } else {\n String url = addressHandler.getHttpAddress(primary);\n if (url == null) {\n logger.debug(\"No url set for dataserver: \" + primary);\n urlUnset();\n return null;\n } else {\n return verifyHttpProcess(url);\n }\n }\n }", "public String url() {\n return server.baseUri().toString();\n }", "private String getURL() {\n String url = profileLocation.getText().toString();\n if (url == null || url.length() == 0) {\n return url;\n }\n // if it's not the last (which should be \"Raw\") choice, we'll use the prefix\n if (!url.contains(\"://\")) { // if there is no (http|jr):// prefix, we'll assume it's a http://bit.ly/ URL\n url = \"http://bit.ly/\" + url;\n }\n return url;\n }", "public static String buildUsernameForgotURL() {\n return NISUtils.getURL() + \"/nis/nwapi/v2/customer/username/forgot\";\n\t}", "public static String getRelativeUrl() {\n return url;\n }", "@Override\n\tpublic String getTelFeeUrl() {\n\t\tTelFee_Url = Util.getMaiYuanConfig(\"TelFee_Url\");\n\t\treturn TelFee_Url;\n\t}", "public static String getAuthenticationURL() {\n\n\t\treturn baseURL + \"/authentication-point/authenticate\";\n\t}", "private String getURL() {\n\t\t// TODO : Generate URL\n\t\treturn null;\n\t}", "public String getServerUrl() {\n return props.getProperty(\"url\");\n }", "String getRequestURL();", "public String getURL(){\r\n\t\t \r\n\t\t\r\n\t\treturn rb.getProperty(\"url\");\r\n\t}", "public URL getAccountUrl() {\n try {\n return new URL(storageAsyncRawClient.azureBlobStorage.url());\n } catch (MalformedURLException e) {\n throw new RuntimeException(String.format(\"Invalid URL on %s: %s\" + getClass().getSimpleName(), storageAsyncRawClient.azureBlobStorage.url()), e);\n }\n }", "@Override\n public StringBuffer getRequestURL() {\n //StringBuffer requestURL = super.getRequestURL();\n //System.out.println(\"URL: \" + requestURL.toString());\n return this.requestURL;\n }", "public String getServerUrl() {\r\n return this.fedoraBaseUrl;\r\n }", "public static String getURLRedirect(){\n\t\treturn \"https://54.247.74.173:8443\";\r\n\t}", "public String getSiteUrl();", "public static String getBaseURI() {\n\t\treturn getIP() + \":\" + getPort();\r\n//\t\tURIBuilder builder = new URIBuilder();\r\n//\t\tbuilder.setScheme(\"http\");\r\n//\t\tbuilder.setHost(getIP());\r\n//\t\tbuilder.setPort(Integer.valueOf(getPort()));\r\n//\t\tbuilder.setPath(\"/\"+getVersion());\r\n//\t\treturn builder.toString();\r\n//\t\treturn \"http://\" + getIP() + \":\" + getPort()\r\n//\t\t\t\t+ \"/\"+getVersion();\r\n\t}", "public String getBaseMediaUrl() {\n return (String) get(\"base_media_url\");\n }", "public String callbackUrl() {\n return callbackUrl;\n }", "String getRequestedUrl();", "private GenericUrl generateFitbitVitalConnectUrl(Vital vitalToSync, OAuth oAuth) {\n final String user_id = oAuth.getUser_id();\n String additionalPart = vitalToSync.getType().getFitbitURL();\n return new GenericUrl(fitBitBaseURL + \"/\" + user_id + additionalPart);\n }", "public String getCurrUrl() {\n return driver.getCurrentUrl();\n }", "public String getURL()\n {\n return getURL(\"http\");\n }", "public static String buildPrevalidateURL() {\n\t\treturn NISUtils.getURL() + \"/nis/nwapi/v2/customer/credentials/prevalidate\";\n\t}", "private String getSpringLoginUrl() {\n if (this.springLoginUrl == null) {\n this.springLoginUrl = GWT.getHostPageBaseURL() + DEFAULT_SPRING_LOGIN_URL;\n }\n return springLoginUrl;\n }", "public CharSequence getCallbackUrl()\n\t{\n\t\treturn getCallbackUrl(true);\n\t}", "public static URL getUrlForLogin()\r\n {\r\n String strUrl = getBaseURL() + \"account_services/api/1.0/account/login\";\r\n return str2url( strUrl );\r\n }", "protected String getServerUrl() {\r\n\t\treturn server;\r\n\t}", "private String makeServerUrl(){\n\t\tURL url = null;\n\t\t\n\t\t//Make sure we have a valid url\n\t\tString complete = this.preferences.getString(\"server\", \"\");\n\t\ttry {\n\t\t\turl = new URL( complete );\n\t\t} catch( Exception e ) {\n\t\t\tonCreateDialog(DIALOG_INVALID_URL).show();\n\t\t\treturn null;\n\t\t}\n\t\treturn url.toExternalForm();\n\t}", "@Override\n public String getBaseUri() {\n return null;\n }", "public String getWebhookUrl() {\n return webhookUrl;\n }", "protected final String getServerUrl() {\n return this.serverUrl;\n }", "public String getServerUrl() {\n\t return Config.SERVER_URL;\n }", "static String getBase(HttpServletRequest request) {\n String fullPath = request.getRequestURI();\n int baseEnd = getDividingIndex(fullPath);\n return fullPath.substring(0, baseEnd + 1);\n }" ]
[ "0.682627", "0.66308326", "0.6584515", "0.64825654", "0.64775854", "0.64584315", "0.6431874", "0.64307076", "0.6396477", "0.63625276", "0.63625276", "0.63483644", "0.6337484", "0.6331728", "0.6262535", "0.6244175", "0.6230792", "0.6213575", "0.62003064", "0.6197269", "0.6177583", "0.617545", "0.6169856", "0.61677295", "0.6159198", "0.6115753", "0.6106942", "0.6094743", "0.60837346", "0.6075533", "0.60131574", "0.6012195", "0.6012195", "0.6000444", "0.5970111", "0.59434724", "0.5937773", "0.59207416", "0.59173787", "0.5911956", "0.59059405", "0.59032047", "0.58940476", "0.584328", "0.5834347", "0.5832401", "0.5781603", "0.5757162", "0.5750765", "0.5732337", "0.5728602", "0.571159", "0.5705151", "0.5695088", "0.5681394", "0.56642276", "0.56439555", "0.56400603", "0.56057566", "0.55884343", "0.55841446", "0.55745333", "0.5564981", "0.5555592", "0.55487174", "0.55377555", "0.55241984", "0.55217254", "0.5512342", "0.550041", "0.54882056", "0.547743", "0.5466455", "0.54658705", "0.5462333", "0.5452939", "0.54475766", "0.5446844", "0.54427475", "0.5430457", "0.54193544", "0.540923", "0.5408939", "0.54087615", "0.540278", "0.53848994", "0.5381601", "0.537564", "0.53747827", "0.53666943", "0.5365046", "0.5362024", "0.53504413", "0.53483087", "0.53481424", "0.53459007", "0.5339115", "0.5335039", "0.53310305", "0.5312696" ]
0.8022928
0
Get the verification email subject line.
public String getVerificationEmailSubject() { return getValue( "eurekaclinical.userservice.email.verify.subject"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSubject() {\n\t\treturn txtSubject.getText();\n\t}", "public String getSubject() {\n UnstructuredField field = obtainField(FieldName.SUBJECT);\n if (field == null)\n return null;\n\n return field.getValue();\n }", "public String getSmtpSubject() {\n return smtpSubject;\n }", "public String getSubject()\n {\n final I18nHelper i18n = ComponentAccessor.getJiraAuthenticationContext().getI18nHelper();\n final Map<String, Object> contextParams = JiraMailQueueUtils.getContextParamsBody(templateParameters);\n contextParams.put(\"i18n\", i18n);\n try\n {\n return renderEmailSubject(contextParams);\n }\n catch (VelocityException e)\n {\n log.error(\"Could not determine e-mail subject\", e);\n throw new RuntimeException(e);\n }\n }", "public java.lang.String getSubject() {\n java.lang.Object ref = subject_;\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 subject_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getSubject() {\n java.lang.Object ref = subject_;\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 subject_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getSubject()\r\n {\r\n return (m_subject);\r\n }", "java.lang.String getSubject();", "java.lang.String getSubject();", "java.lang.String getSubject();", "public String getSubject() {\r\n\t\treturn subject;\r\n\t}", "public String getSubject() {\r\n\t\treturn subject;\r\n\t}", "public java.lang.String getSubject() {\n java.lang.Object ref = subject_;\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 subject_ = s;\n return s;\n }\n }", "public java.lang.String getSubject() {\n java.lang.Object ref = subject_;\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 subject_ = s;\n return s;\n }\n }", "public String getSubject() {\n\t\treturn subject;\n\t}", "public String getSubject() {\n\t\treturn subject;\n\t}", "public String getSubject() {\n return this.subject;\n }", "public String getSubject() {\n return this.subject;\n }", "public String getActivationEmailSubject() {\n return getValue(\n \"eurekaclinical.userservice.email.activation.subject\");\n }", "public String getSubject() {\n return subject;\n }", "public String getSubject() {\n return subject;\n }", "public String getSubject() {\n return subject;\n }", "public String getPasswordResetEmailSubject() {\n return getValue(\"eurekaclinical.userservice.email.reset.subject\");\n }", "public String getSubject()\r\n {\r\n return subject;\r\n }", "public String getmSubject() {\n return mSubject;\n }", "String getSubject();", "String getSubject();", "public SubjectInfo getSubject() {\n return this.subject;\n }", "public com.google.protobuf.ByteString\n getSubjectBytes() {\n java.lang.Object ref = subject_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n subject_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getSubjectBytes() {\n java.lang.Object ref = subject_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n subject_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getSubjectBytes() {\n java.lang.Object ref = subject_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n subject_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getSubjectBytes() {\n java.lang.Object ref = subject_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n subject_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getMessageSubject() {\n return messageSubject;\n }", "public String getSnsubject() {\n return snsubject;\n }", "public Subject getSubject() {\n\t\treturn subject;\n\t}", "public javax.security.auth.Subject getSubject()\n {\n return __m_Subject;\n }", "public Name getSubject() {\r\n return subject;\r\n }", "public String getPasswordChangeEmailSubject() {\n return getValue(\n \"eurekaclinical.userservice.email.password.subject\");\n }", "public String getSubject() {\n/* 286 */ return getCOSObject().getString(COSName.SUBJ);\n/* */ }", "com.google.protobuf.ByteString\n getSubjectBytes();", "com.google.protobuf.ByteString\n getSubjectBytes();", "public SubjectInfo getSubjectInfo() {\r\n\t\treturn subjectInfo;\r\n\t}", "public List<String> getSubject() {\n\t return this.subject;\n\t}", "X500Principal getSubject();", "public static String getSubject(final Bundle bundle) {\n return bundle.getString(Constants.BUNDLE_STRING_SUBJECT, null);\n }", "public nl.webservices.www.soap.InsolvencyLegalSubject getLegal_subject() {\n return legal_subject;\n }", "com.google.protobuf.ByteString getSubjectBytes();", "public String getFirstSubject() {\n String subject = \"\";\n try {\n JSONArray array = sr.getJSONArray(\"subject\");\n JSONObject entry = array.getJSONObject(0);\n subject += entry.getString(\"name\"); \n return subject; \n } catch (Exception f) {\n return \"NA\"; \n } \n }", "org.hl7.fhir.ResourceReference getSubject();", "public Reference subject() {\n return getObject(Reference.class, FhirPropertyNames.PROPERTY_SUBJECT);\n }", "public final long getExternalSubjectId() {\n\t\treturn Long.parseLong(getExternalSubjectIdAsString());\n\t}", "public String subject() {\n return this.innerProperties() == null ? null : this.innerProperties().subject();\n }", "private String getSubject(Message mimeMessage) throws MessagingException {\r\n\r\n String subject = \"\";\r\n\r\n try {\r\n\r\n // decode the subject\r\n subject = MimeUtility.decodeText(mimeMessage.getSubject());\r\n\r\n if (subject == null) {\r\n subject = \"\";\r\n }\r\n }\r\n catch (Exception exce) { }\r\n\r\n return subject;\r\n }", "public Object _getSSLSubjectName() throws Open4GLException\n {\n return (m_QuarixProgressOOConnectorImpl._getSSLSubjectName());\n }", "public String getEmail() {\r\n // Bouml preserved body begin 00040D82\r\n\t System.out.println(email);\r\n\t return email;\r\n // Bouml preserved body end 00040D82\r\n }", "public String getBookSubject(){\n return bookSubject.getText();\r\n }", "public String toString() {\n return subjectName;\n }", "public String getSubject()\n {\n return chatSubject;\n }", "java.lang.String getSubjectKeyID();", "java.lang.String getSubjectKeyID();", "Subject getSubject(){\n\t\treturn subject;\n\t}", "public Long getSubjectId() {\n\t\treturn subjectId;\n\t}", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "public Subject getSubject(){\n\t\treturn sub;\n\t}", "public Subject getSubject();", "public String getTrialSubjectId(){\n\t\treturn trialSubjectId;\n\t}", "@Override\n\t\tpublic Resource getSubject() {\n\t\t\treturn subject;\n\t\t}", "public int getSubjectStart()\n\t{\n\t\treturn mySubjectStart;\n\t}", "public String getSrcEmail() {\r\n return (String) getAttributeInternal(SRCEMAIL);\r\n }", "public java.lang.String getSubjectKeyID() {\n java.lang.Object ref = subjectKeyID_;\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 subjectKeyID_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getSubjectKeyID() {\n java.lang.Object ref = subjectKeyID_;\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 subjectKeyID_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getValue() {\n\t\treturn subjectName;\n\t}", "public String getPublicSubject() {\n return this.publicSubject;\n }", "public int getIdSubject() {\n\t\treturn idSubject;\n\t}", "public JTextField getSubject() {\n\t\treturn subject;\n\t}", "public java.lang.String getSubjectKeyID() {\n java.lang.Object ref = subjectKeyID_;\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 subjectKeyID_ = s;\n return s;\n }\n }", "public java.lang.String getSubjectKeyID() {\n java.lang.Object ref = subjectKeyID_;\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 subjectKeyID_ = s;\n return s;\n }\n }", "public String getSubjectToDsIrb() {\n return subjectToDsIrb;\n }", "public String getEmail(final SessionContext ctx)\n\t{\n\t\treturn (String)getProperty( ctx, EMAIL);\n\t}", "public String getEmail(final SessionContext ctx)\n\t{\n\t\treturn (String)getProperty( ctx, EMAIL);\n\t}", "public byte[] getSubjectKeyIdentifier() {\n return x509SubjectKeyIdentifier;\n }", "protected String createSubject(XMLLogHelper logHelper) throws CruiseControlException {\n StringBuffer subjectLine = new StringBuffer();\n if (subjectPrefix != null) {\n subjectLine.append(subjectPrefix).append(\" \");\n }\n subjectLine.append(logHelper.getProjectName());\n if (logHelper.isBuildSuccessful()) {\n String label = logHelper.getLabel();\n if (label.trim().length() > 0) {\n subjectLine.append(\" \").append(logHelper.getLabel());\n }\n \n //Anytime the build is \"fixed\" the subjest line\n // should read \"fixed\". It might confuse recipients...but\n // it shouldn't\n if (logHelper.isBuildFix()) {\n subjectLine.append(\" Build Fixed\");\n } else {\n subjectLine.append(\" Build Successful\");\n }\n } else {\n subjectLine.append(\" Build Failed\");\n }\n return subjectLine.toString();\n }", "public String selectSubject() {\r\n\t\tswitch (choice) {\r\n\t\tcase 1:\r\n\t\t\treturn \"Factura emisa\";\r\n\t\tcase 2:\r\n\t\t\treturn \"Factura emisa si platita\";\r\n\t\tcase 3:\r\n\t\t\treturn \"Servicii oprite\";\r\n\t\tcase 4:\r\n\t\t\treturn \"Factura platita\";\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public String getCertificateEmail(X509Certificate certificate) throws CertException;", "String getFirstAlertMailBody( );", "public String getEmailInString() {\n\t\tString shortenedBody = StringHelper.shortenString(body, 75, .5);\n\t\tString indentedBody = \"\\t\" + shortenedBody.replace(StringHelper.newline, StringHelper.newline + \"\\t\");\n\t\tString bodyLine = \"(Shortened) Body (html >>> \" + html + \"):\" + StringHelper.newline + indentedBody;\n\n\t\tStringBuilder bodyPartBuilder = new StringBuilder(\"bodyParts:\");\n\t\tfor (MimeBodyPart mimeBodyPart : bodyParts) {\n\t\t\tbodyPartBuilder.append(StringHelper.newline).append(\"\\t\");\n\t\t\ttry {\n\t\t\t\tbodyPartBuilder.append(mimeBodyPart.getFileName());\n\t\t\t} catch (Throwable ex) {\n\t\t\t\t//We don't care if this error is thrown. We don't want this to break anything.\n\t\t\t\tbodyPartBuilder.append(\"N/A\");\n\t\t\t}\n\t\t}\n\t\treturn StringHelper.splitBy(StringHelper.newline,\n\t\t\t\t\t\t\"from: \" + from,\n\t\t\t\t\t\t\"replyTo: \" + StringHelper.splitBy(\", \", replyTo),\n\t\t\t\t\t\t\"to: \" + StringHelper.splitBy(\", \", to),\n\t\t\t\t\t\t\"cc: \" + StringHelper.splitBy(\", \", cc),\n\t\t\t\t\t\t\"bcc: \" + StringHelper.splitBy(\", \", bcc),\n\t\t\t\t\t\t\"subject: \" + subject,\n\t\t\t\t\t\tbodyLine,\n\t\t\t\t\t\tbodyPartBuilder.toString());\n\t}", "@ZAttr(id=1070)\n public String getDomainMandatoryMailSignatureText() {\n return getAttr(Provisioning.A_zimbraDomainMandatoryMailSignatureText, null);\n }", "public String getXpeApproverEmail() {\n return (String) getAttributeInternal(XPEAPPROVEREMAIL);\n }", "public String getCheckServerIdentityProperty() {\n\n return unmaskProperty(EmailConnectionConstants.PROPERTY_CHECK_SERVER_IDENTITY);\n }", "public java.lang.String getSenderHeaderEmailAddress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SENDERHEADEREMAILADDRESS$22, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "private String getSubject(SemanticGraph dependencies, IndexedWord verbToken) {\n\t\tPair<GrammaticalRelation, IndexedWord> subj = DependenciesUtils.getFirstChildByRelation(dependencies, verbToken,\n\t\t\t\t\"nsubj\");\n\n\t\tif (subj == null) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tIndexedWord subjToken = subj.second;\n\t\tif (isPersonalPronoun(subjToken)) {\n\t\t\treturn null;\n\t\t}\n\n\t\tString subject = getObject(dependencies, subjToken);\n\t\tif (TextProcessor.checkGeneralPos(subjToken.tag(), \"PRP\")) {\n\t\t\tif (subjToken.lemma().equals(\"it\")) {\n\t\t\t\tsubject = \"app\";\n\t\t\t}\n\t\t}\n\t\treturn subject;\n\t}", "Object getSubject();", "public java.lang.String getEmail() {\n java.lang.Object ref = email_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n email_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getEmail() {\n java.lang.Object ref = email_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n email_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "java.lang.String getDelegateSuggestedSignerEmail();" ]
[ "0.7085212", "0.682611", "0.6814222", "0.6808599", "0.676907", "0.676907", "0.67473936", "0.6729765", "0.6729765", "0.6729765", "0.6684793", "0.6684793", "0.66715837", "0.66715837", "0.6665387", "0.6665387", "0.66493154", "0.66493154", "0.66241044", "0.66026163", "0.6538891", "0.6538891", "0.6520418", "0.6518385", "0.6496768", "0.6437709", "0.6437709", "0.64295846", "0.63331383", "0.63331383", "0.6258673", "0.6258673", "0.6212972", "0.6209474", "0.61644965", "0.61324114", "0.6084982", "0.6052301", "0.60493815", "0.6025473", "0.6025473", "0.6019916", "0.59860903", "0.5961447", "0.5912969", "0.5905678", "0.589993", "0.58848935", "0.58836263", "0.58620477", "0.58601266", "0.58527476", "0.58218366", "0.58163506", "0.57980967", "0.57793134", "0.57737786", "0.57704544", "0.5768034", "0.5768034", "0.5744313", "0.57284695", "0.5677011", "0.5677011", "0.5677011", "0.5677011", "0.5677011", "0.5677011", "0.5665602", "0.5663125", "0.5656199", "0.5642854", "0.5633804", "0.56223106", "0.56128174", "0.56128174", "0.56075907", "0.55699384", "0.5563082", "0.55623925", "0.5523773", "0.5523773", "0.5519592", "0.55109864", "0.55109864", "0.55079085", "0.54782504", "0.5473599", "0.54191804", "0.5417286", "0.539337", "0.53571945", "0.5353757", "0.5352261", "0.5345799", "0.5343851", "0.5338573", "0.53376627", "0.53376627", "0.533292" ]
0.80025804
0
Get the activation email subject line.
public String getActivationEmailSubject() { return getValue( "eurekaclinical.userservice.email.activation.subject"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSubject() {\n\t\treturn txtSubject.getText();\n\t}", "public String getVerificationEmailSubject() {\n return getValue(\n \"eurekaclinical.userservice.email.verify.subject\");\n }", "public String getSmtpSubject() {\n return smtpSubject;\n }", "public String getSubject()\r\n {\r\n return (m_subject);\r\n }", "public String getSubject()\n {\n final I18nHelper i18n = ComponentAccessor.getJiraAuthenticationContext().getI18nHelper();\n final Map<String, Object> contextParams = JiraMailQueueUtils.getContextParamsBody(templateParameters);\n contextParams.put(\"i18n\", i18n);\n try\n {\n return renderEmailSubject(contextParams);\n }\n catch (VelocityException e)\n {\n log.error(\"Could not determine e-mail subject\", e);\n throw new RuntimeException(e);\n }\n }", "public String getPasswordResetEmailSubject() {\n return getValue(\"eurekaclinical.userservice.email.reset.subject\");\n }", "public String getSubject() {\n UnstructuredField field = obtainField(FieldName.SUBJECT);\n if (field == null)\n return null;\n\n return field.getValue();\n }", "public String getSubject() {\r\n\t\treturn subject;\r\n\t}", "public String getSubject() {\r\n\t\treturn subject;\r\n\t}", "public String getSubject() {\n\t\treturn subject;\n\t}", "public String getSubject() {\n\t\treturn subject;\n\t}", "public String getSubject() {\n return this.subject;\n }", "public String getSubject() {\n return this.subject;\n }", "public String getmSubject() {\n return mSubject;\n }", "public String getSubject() {\n return subject;\n }", "java.lang.String getSubject();", "java.lang.String getSubject();", "java.lang.String getSubject();", "public String getSubject() {\n return subject;\n }", "public String getSubject() {\n return subject;\n }", "public String getSubject()\r\n {\r\n return subject;\r\n }", "public SubjectInfo getSubject() {\n return this.subject;\n }", "String getSubject();", "String getSubject();", "public java.lang.String getSubject() {\n java.lang.Object ref = subject_;\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 subject_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getSubject() {\n java.lang.Object ref = subject_;\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 subject_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getMessageSubject() {\n return messageSubject;\n }", "public String getPasswordChangeEmailSubject() {\n return getValue(\n \"eurekaclinical.userservice.email.password.subject\");\n }", "public Subject getSubject() {\n\t\treturn subject;\n\t}", "public String getEmail() {\r\n // Bouml preserved body begin 00040D82\r\n\t System.out.println(email);\r\n\t return email;\r\n // Bouml preserved body end 00040D82\r\n }", "public javax.security.auth.Subject getSubject()\n {\n return __m_Subject;\n }", "public java.lang.String getSubject() {\n java.lang.Object ref = subject_;\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 subject_ = s;\n return s;\n }\n }", "public java.lang.String getSubject() {\n java.lang.Object ref = subject_;\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 subject_ = s;\n return s;\n }\n }", "public com.google.protobuf.ByteString\n getSubjectBytes() {\n java.lang.Object ref = subject_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n subject_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getSubjectBytes() {\n java.lang.Object ref = subject_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n subject_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public int getSubjectStart()\n\t{\n\t\treturn mySubjectStart;\n\t}", "public com.google.protobuf.ByteString\n getSubjectBytes() {\n java.lang.Object ref = subject_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n subject_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getSubjectBytes() {\n java.lang.Object ref = subject_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n subject_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getTrialSubjectId(){\n\t\treturn trialSubjectId;\n\t}", "public Name getSubject() {\r\n return subject;\r\n }", "public java.lang.String getSenderHeaderEmailAddress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SENDERHEADEREMAILADDRESS$22, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public String getSubject()\n {\n return chatSubject;\n }", "public String getEmail()\n\t{\n\t\treturn getEmail( getSession().getSessionContext() );\n\t}", "public String getEmail()\n\t{\n\t\treturn getEmail( getSession().getSessionContext() );\n\t}", "public SubjectInfo getSubjectInfo() {\r\n\t\treturn subjectInfo;\r\n\t}", "public String toString() {\n return subjectName;\n }", "public String getSrcEmail() {\r\n return (String) getAttributeInternal(SRCEMAIL);\r\n }", "String getFirstAlertMailBody( );", "public List<String> getSubject() {\n\t return this.subject;\n\t}", "java.lang.String getSubjectKeyID();", "java.lang.String getSubjectKeyID();", "public final long getExternalSubjectId() {\n\t\treturn Long.parseLong(getExternalSubjectIdAsString());\n\t}", "public int getIdSubject() {\n\t\treturn idSubject;\n\t}", "public String getFirstSubject() {\n String subject = \"\";\n try {\n JSONArray array = sr.getJSONArray(\"subject\");\n JSONObject entry = array.getJSONObject(0);\n subject += entry.getString(\"name\"); \n return subject; \n } catch (Exception f) {\n return \"NA\"; \n } \n }", "public String getSnsubject() {\n return snsubject;\n }", "public String getEmailAddress() {\n return (String)getAttributeInternal(EMAILADDRESS);\n }", "public String getEmailAddress() {\n return (String)getAttributeInternal(EMAILADDRESS);\n }", "public Reference subject() {\n return getObject(Reference.class, FhirPropertyNames.PROPERTY_SUBJECT);\n }", "Subject getSubject(){\n\t\treturn subject;\n\t}", "public nl.webservices.www.soap.InsolvencyLegalSubject getLegal_subject() {\n return legal_subject;\n }", "public Subject getSubject(){\n\t\treturn sub;\n\t}", "X500Principal getSubject();", "public java.lang.CharSequence getEmailAddress() {\n return email_address;\n }", "public Object _getSSLSubjectName() throws Open4GLException\n {\n return (m_QuarixProgressOOConnectorImpl._getSSLSubjectName());\n }", "public String getBookSubject(){\n return bookSubject.getText();\r\n }", "public String subject() {\n return this.innerProperties() == null ? null : this.innerProperties().subject();\n }", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "public static String getSubject(final Bundle bundle) {\n return bundle.getString(Constants.BUNDLE_STRING_SUBJECT, null);\n }", "com.google.protobuf.ByteString\n getSubjectBytes();", "com.google.protobuf.ByteString\n getSubjectBytes();", "public byte[] getSubjectKeyIdentifier() {\n return x509SubjectKeyIdentifier;\n }", "public Subject getSubject();", "@Override\n\t\tpublic Resource getSubject() {\n\t\t\treturn subject;\n\t\t}", "public java.lang.CharSequence getEmailAddress() {\n return email_address;\n }", "public WebElement getEmailTxt() {\n\t\treturn emailTxt;\n\t}", "public Long getSubjectId() {\n\t\treturn subjectId;\n\t}", "public JTextField getSubject() {\n\t\treturn subject;\n\t}", "public org.apache.xmlbeans.XmlString xgetSenderHeaderEmailAddress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SENDERHEADEREMAILADDRESS$22, 0);\n return target;\n }\n }", "public String selectSubject() {\r\n\t\tswitch (choice) {\r\n\t\tcase 1:\r\n\t\t\treturn \"Factura emisa\";\r\n\t\tcase 2:\r\n\t\t\treturn \"Factura emisa si platita\";\r\n\t\tcase 3:\r\n\t\t\treturn \"Servicii oprite\";\r\n\t\tcase 4:\r\n\t\t\treturn \"Factura platita\";\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public String getSubject() {\n/* 286 */ return getCOSObject().getString(COSName.SUBJ);\n/* */ }", "public String getEmailStatus() {\n return emailStatus;\n }", "public String getEmail(final SessionContext ctx)\n\t{\n\t\treturn (String)getProperty( ctx, EMAIL);\n\t}", "public String getEmail(final SessionContext ctx)\n\t{\n\t\treturn (String)getProperty( ctx, EMAIL);\n\t}", "public String getFromEMail() {\n return fromEMail;\n }", "public java.lang.String getEmail () {\n\t\treturn email;\n\t}", "public String getValue() {\n\t\treturn subjectName;\n\t}", "public String getPublicSubject() {\n return this.publicSubject;\n }", "public static String getRecipientEmail() {\n return recipientEmail;\n }", "public abstract I_SessionName getSubjectName();", "public String getEmailState() {\r\n\t\treturn emailState;\r\n\t}", "private String getSubject(Message mimeMessage) throws MessagingException {\r\n\r\n String subject = \"\";\r\n\r\n try {\r\n\r\n // decode the subject\r\n subject = MimeUtility.decodeText(mimeMessage.getSubject());\r\n\r\n if (subject == null) {\r\n subject = \"\";\r\n }\r\n }\r\n catch (Exception exce) { }\r\n\r\n return subject;\r\n }", "public java.lang.String getShipAgencyEmail() {\n\t\treturn _tempNoTiceShipMessage.getShipAgencyEmail();\n\t}", "public List<Subject> getSubject() {\n\t\treturn sub_dao.getSubject();\r\n\t}", "public java.lang.String getSubjectKeyID() {\n java.lang.Object ref = subjectKeyID_;\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 subjectKeyID_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getSubjectKeyID() {\n java.lang.Object ref = subjectKeyID_;\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 subjectKeyID_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }" ]
[ "0.673796", "0.65561014", "0.65082777", "0.63088065", "0.6279037", "0.621627", "0.61826825", "0.61731315", "0.61731315", "0.61561906", "0.61561906", "0.60978234", "0.60978234", "0.6077835", "0.6068123", "0.6028315", "0.6028315", "0.6028315", "0.5988448", "0.5988448", "0.59803426", "0.59286207", "0.5908864", "0.5908864", "0.58636343", "0.58636343", "0.5857051", "0.58557755", "0.5830784", "0.5800537", "0.5776532", "0.5749726", "0.5749726", "0.5693398", "0.5693398", "0.56524205", "0.56411433", "0.56411433", "0.56363565", "0.5624555", "0.5611558", "0.56057566", "0.55895793", "0.55895793", "0.55856293", "0.5576637", "0.5569327", "0.5555696", "0.55486953", "0.55404913", "0.55404913", "0.55307376", "0.5506056", "0.5492714", "0.54881734", "0.5487506", "0.5487506", "0.54705197", "0.5452678", "0.5451684", "0.5411927", "0.5398092", "0.5395343", "0.539321", "0.53921664", "0.53901446", "0.5376187", "0.5376187", "0.5376187", "0.5376187", "0.5376187", "0.5376187", "0.5374038", "0.53672624", "0.53672624", "0.535946", "0.5354025", "0.5350706", "0.53503156", "0.5347799", "0.533852", "0.5324586", "0.5319296", "0.5303464", "0.52905625", "0.52873796", "0.52870005", "0.52870005", "0.5266536", "0.5255006", "0.524853", "0.52281404", "0.5227502", "0.5224105", "0.52239686", "0.52019656", "0.51919466", "0.51828253", "0.51802737", "0.51802737" ]
0.78589547
0
Get the password change email subject line.
public String getPasswordChangeEmailSubject() { return getValue( "eurekaclinical.userservice.email.password.subject"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPasswordResetEmailSubject() {\n return getValue(\"eurekaclinical.userservice.email.reset.subject\");\n }", "public String getSubject() {\n\t\treturn txtSubject.getText();\n\t}", "public String getVerificationEmailSubject() {\n return getValue(\n \"eurekaclinical.userservice.email.verify.subject\");\n }", "public String getSmtpSubject() {\n return smtpSubject;\n }", "String getPasswordExpiredMailBody( );", "java.lang.String getSubject();", "java.lang.String getSubject();", "java.lang.String getSubject();", "public String getSubject()\r\n {\r\n return (m_subject);\r\n }", "public String getSubject() {\n return this.subject;\n }", "public String getSubject() {\n return this.subject;\n }", "public String getMessageSubject() {\n return messageSubject;\n }", "public String changeEmailTitle() {\n return \"Changing email\";\n }", "public String getSubject() {\n return subject;\n }", "public String getSubject() {\n return subject;\n }", "public String getSubject() {\n return subject;\n }", "public String getSubject() {\r\n\t\treturn subject;\r\n\t}", "public String getSubject() {\r\n\t\treturn subject;\r\n\t}", "public String getSubject()\r\n {\r\n return subject;\r\n }", "public String getEmail() {\r\n // Bouml preserved body begin 00040D82\r\n\t System.out.println(email);\r\n\t return email;\r\n // Bouml preserved body end 00040D82\r\n }", "public String getSubject() {\n\t\treturn subject;\n\t}", "public String getSubject() {\n\t\treturn subject;\n\t}", "public String getSubject()\n {\n final I18nHelper i18n = ComponentAccessor.getJiraAuthenticationContext().getI18nHelper();\n final Map<String, Object> contextParams = JiraMailQueueUtils.getContextParamsBody(templateParameters);\n contextParams.put(\"i18n\", i18n);\n try\n {\n return renderEmailSubject(contextParams);\n }\n catch (VelocityException e)\n {\n log.error(\"Could not determine e-mail subject\", e);\n throw new RuntimeException(e);\n }\n }", "String getSubject();", "String getSubject();", "public String getmSubject() {\n return mSubject;\n }", "public String getActivationEmailSubject() {\n return getValue(\n \"eurekaclinical.userservice.email.activation.subject\");\n }", "public java.lang.String getSubject() {\n java.lang.Object ref = subject_;\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 subject_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getSubject() {\n java.lang.Object ref = subject_;\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 subject_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getSubject() {\n java.lang.Object ref = subject_;\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 subject_ = s;\n return s;\n }\n }", "public java.lang.String getSubject() {\n java.lang.Object ref = subject_;\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 subject_ = s;\n return s;\n }\n }", "public JTextField getSubject() {\n\t\treturn subject;\n\t}", "public String getSubject()\n {\n return chatSubject;\n }", "public String getSmtpPassword() {\n\t\treturn _smtpPassword;\n\t}", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "public SubjectInfo getSubject() {\n return this.subject;\n }", "public String getPasswordExpirationMsg() {\r\n return passwordExpirationMsg;\r\n }", "private String getSavedEmail(){\n return new PrefManager(this).getEmail();\n }", "public String getForgottenPasswordQuestion2() {\n\t\treturn forgottenPasswordQuestion2;\n\t}", "public String getEmailAlt() {\n\t\t\treturn emailAlt;\n\t\t}", "public javax.security.auth.Subject getSubject()\n {\n return __m_Subject;\n }", "public String getSubject() {\n UnstructuredField field = obtainField(FieldName.SUBJECT);\n if (field == null)\n return null;\n\n return field.getValue();\n }", "public String getEmail()\n\t{\n\t\treturn getEmail( getSession().getSessionContext() );\n\t}", "public String getEmail()\n\t{\n\t\treturn getEmail( getSession().getSessionContext() );\n\t}", "public ChangePassword.Req getChangePasswordReq() {\n return instance.getChangePasswordReq();\n }", "public synchronized String getMail()\r\n {\r\n return mail;\r\n }", "public List<String> getSubject() {\n\t return this.subject;\n\t}", "public String getForgottenPasswordQuestion1() {\n\t\treturn forgottenPasswordQuestion1;\n\t}", "public String printNewEmailPrompt() {\n return \"Please enter new email: \";\n }", "public Name getSubject() {\r\n return subject;\r\n }", "public String getEmail(final SessionContext ctx)\n\t{\n\t\treturn (String)getProperty( ctx, EMAIL);\n\t}", "public String getEmail(final SessionContext ctx)\n\t{\n\t\treturn (String)getProperty( ctx, EMAIL);\n\t}", "public String getResetPassword() { return password; }", "public String getSmtpPassword() {\n return smtpPassword;\n }", "public Subject getSubject() {\n\t\treturn subject;\n\t}", "public com.google.protobuf.ByteString\n getSubjectBytes() {\n java.lang.Object ref = subject_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n subject_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getSubjectBytes() {\n java.lang.Object ref = subject_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n subject_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public java.lang.String getEmail() {\n\t\t\tjava.lang.Object ref = email_;\n\t\t\tif (ref instanceof java.lang.String) {\n\t\t\t\treturn (java.lang.String) ref;\n\t\t\t} else {\n\t\t\t\tcom.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\temail_ = s;\n\t\t\t\treturn s;\n\t\t\t}\n\t\t}", "public String getBookSubject(){\n return bookSubject.getText();\r\n }", "private String getSendMailResetPasswordContent(UserForm userForm) {\n return \"\";\n }", "public java.lang.String getEmail() {\n java.lang.Object ref = email_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n email_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getSrcEmail() {\r\n return (String) getAttributeInternal(SRCEMAIL);\r\n }", "public com.google.protobuf.ByteString\n getSubjectBytes() {\n java.lang.Object ref = subject_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n subject_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getSubjectBytes() {\n java.lang.Object ref = subject_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n subject_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getMailAuthProperty() {\n\n return unmaskProperty(EmailConnectionConstants.PROPERTY_AUTH);\n }", "public String getForgottenPasswordQuestion3() {\n\t\treturn forgottenPasswordQuestion3;\n\t}", "public java.lang.String getEmail() {\n\t\t\t\tjava.lang.Object ref = email_;\n\t\t\t\tif (!(ref instanceof java.lang.String)) {\n\t\t\t\t\tcom.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n\t\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\t\temail_ = s;\n\t\t\t\t\treturn s;\n\t\t\t\t} else {\n\t\t\t\t\treturn (java.lang.String) ref;\n\t\t\t\t}\n\t\t\t}", "public static String getEmail() {\n\t\treturn SecurityContextHolder.getContext().getAuthentication().getName();\n\t}", "public java.lang.String getMail() {\n return mail;\n }", "public java.lang.String getEmail() {\n java.lang.Object ref = email_;\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 email_ = s;\n }\n return s;\n }\n }", "public java.lang.String getEmail() {\n java.lang.Object ref = email_;\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 email_ = s;\n }\n return s;\n }\n }", "public java.lang.String getEmail() {\n java.lang.Object ref = email_;\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 email_ = s;\n }\n return s;\n }\n }", "public java.lang.String getEmail() {\n java.lang.Object ref = email_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n email_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getEmail() {\n java.lang.Object ref = email_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n email_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getEmail() {\n java.lang.Object ref = email_;\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 email_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getEmail()\r\n/* 31: */ {\r\n/* 32:46 */ return this.email;\r\n/* 33: */ }", "public String getPmsPassword() {\n return pmsPassword;\n }", "@ZAttr(id=586)\n public String getPasswordChangeListener() {\n return getAttr(Provisioning.A_zimbraPasswordChangeListener, null);\n }", "@java.lang.Override\n public java.lang.String getEmail() {\n java.lang.Object ref = email_;\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 email_ = s;\n return s;\n }\n }", "public java.lang.String getEmail () {\n\t\treturn email;\n\t}", "String getFirstAlertMailBody( );", "public String getPassword() {\n return txtPassword().getText();\n }", "String getOtherAlertMailBody( );", "public String getForgottenPasswordQuestion4() {\n\t\treturn forgottenPasswordQuestion4;\n\t}", "Subject getSubject(){\n\t\treturn subject;\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getEmail() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(EMAIL_PROP.get());\n }", "public String subject() {\n return this.innerProperties() == null ? null : this.innerProperties().subject();\n }", "public WebElement getEmailTxt() {\n\t\treturn emailTxt;\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getEmail() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(EMAIL_PROP.get());\n }", "public JTextField getTxtEmail() {\n return this.txtEmail;\n }", "public String getFromEMail() {\n return fromEMail;\n }", "public String changePwordTitle() {\n return \"Changing password\";\n }", "public ChangePassword.Req getChangePasswordReq() {\n if (reqCase_ == 11) {\n return (ChangePassword.Req) req_;\n }\n return ChangePassword.Req.getDefaultInstance();\n }", "public String getEmailBodyString() {\r\n return this.emailBodyString;\r\n }", "public String getConfirmEmailFieldName() {\n return getStringProperty(CONFIRM_EMAIL_FIELD_NAME_KEY);\n }" ]
[ "0.75260895", "0.6732363", "0.6421067", "0.64088833", "0.6366892", "0.6322248", "0.6322248", "0.6322248", "0.6289807", "0.62487483", "0.62487483", "0.62344295", "0.62232685", "0.6208791", "0.62012756", "0.62012756", "0.6200532", "0.6200532", "0.61994237", "0.6169253", "0.6149164", "0.6149164", "0.61457855", "0.6134111", "0.6134111", "0.61235785", "0.6115337", "0.59827363", "0.59827363", "0.5922877", "0.5922877", "0.5900298", "0.5889565", "0.58430594", "0.58228236", "0.58228236", "0.58228236", "0.58228236", "0.58228236", "0.58228236", "0.58055586", "0.5804009", "0.5797613", "0.5797061", "0.5787874", "0.5777562", "0.5773389", "0.57601684", "0.57601684", "0.57523733", "0.5739925", "0.5734353", "0.5734265", "0.57168144", "0.56879", "0.5687582", "0.5687582", "0.56826735", "0.5681258", "0.56763345", "0.5649657", "0.5649657", "0.56082016", "0.560367", "0.5592612", "0.55910516", "0.5589586", "0.5586268", "0.5586268", "0.5580847", "0.5574065", "0.5561801", "0.555921", "0.5544205", "0.5542084", "0.5542084", "0.5542084", "0.55386007", "0.55386007", "0.5535872", "0.5528025", "0.552556", "0.55248654", "0.5519272", "0.5511437", "0.55113107", "0.55022687", "0.54967546", "0.54953784", "0.54945344", "0.5492667", "0.54913396", "0.548739", "0.54819596", "0.548128", "0.54772675", "0.54605603", "0.5449717", "0.54440695", "0.5439962" ]
0.83276343
0
Gets the subject line for a password reset email.
public String getPasswordResetEmailSubject() { return getValue("eurekaclinical.userservice.email.reset.subject"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPasswordChangeEmailSubject() {\n return getValue(\n \"eurekaclinical.userservice.email.password.subject\");\n }", "public String getSmtpSubject() {\n return smtpSubject;\n }", "public String getSubject() {\n\t\treturn txtSubject.getText();\n\t}", "public String getVerificationEmailSubject() {\n return getValue(\n \"eurekaclinical.userservice.email.verify.subject\");\n }", "public String getSubject()\n {\n final I18nHelper i18n = ComponentAccessor.getJiraAuthenticationContext().getI18nHelper();\n final Map<String, Object> contextParams = JiraMailQueueUtils.getContextParamsBody(templateParameters);\n contextParams.put(\"i18n\", i18n);\n try\n {\n return renderEmailSubject(contextParams);\n }\n catch (VelocityException e)\n {\n log.error(\"Could not determine e-mail subject\", e);\n throw new RuntimeException(e);\n }\n }", "public String getMessageSubject() {\n return messageSubject;\n }", "public String getmSubject() {\n return mSubject;\n }", "String getPasswordExpiredMailBody( );", "public String getSubject() {\n return this.subject;\n }", "public String getSubject() {\n return this.subject;\n }", "public String getSubject()\r\n {\r\n return (m_subject);\r\n }", "public String getSubject() {\r\n\t\treturn subject;\r\n\t}", "public String getSubject() {\r\n\t\treturn subject;\r\n\t}", "public String getSubject() {\n return subject;\n }", "java.lang.String getSubject();", "java.lang.String getSubject();", "java.lang.String getSubject();", "public String getSubject() {\n\t\treturn subject;\n\t}", "public String getSubject() {\n\t\treturn subject;\n\t}", "public String getSubject()\r\n {\r\n return subject;\r\n }", "public String getSubject() {\n return subject;\n }", "public String getSubject() {\n return subject;\n }", "public java.lang.String getSubject() {\n java.lang.Object ref = subject_;\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 subject_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getSubject() {\n java.lang.Object ref = subject_;\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 subject_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getEmail(final SessionContext ctx)\n\t{\n\t\treturn (String)getProperty( ctx, EMAIL);\n\t}", "public String getEmail(final SessionContext ctx)\n\t{\n\t\treturn (String)getProperty( ctx, EMAIL);\n\t}", "public java.lang.String getSubject() {\n java.lang.Object ref = subject_;\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 subject_ = s;\n return s;\n }\n }", "public java.lang.String getSubject() {\n java.lang.Object ref = subject_;\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 subject_ = s;\n return s;\n }\n }", "public javax.security.auth.Subject getSubject()\n {\n return __m_Subject;\n }", "String getSubject();", "String getSubject();", "public String getSubject() {\n UnstructuredField field = obtainField(FieldName.SUBJECT);\n if (field == null)\n return null;\n\n return field.getValue();\n }", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "public String getEmail() {\r\n // Bouml preserved body begin 00040D82\r\n\t System.out.println(email);\r\n\t return email;\r\n // Bouml preserved body end 00040D82\r\n }", "public String getActivationEmailSubject() {\n return getValue(\n \"eurekaclinical.userservice.email.activation.subject\");\n }", "public SubjectInfo getSubject() {\n return this.subject;\n }", "public String getEmail()\n\t{\n\t\treturn getEmail( getSession().getSessionContext() );\n\t}", "public String getEmail()\n\t{\n\t\treturn getEmail( getSession().getSessionContext() );\n\t}", "public com.google.protobuf.ByteString\n getSubjectBytes() {\n java.lang.Object ref = subject_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n subject_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getSubjectBytes() {\n java.lang.Object ref = subject_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n subject_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Subject getSubject() {\n\t\treturn subject;\n\t}", "public String getEmailBodyString() {\r\n return this.emailBodyString;\r\n }", "public String getEmailInString() {\n\t\tString shortenedBody = StringHelper.shortenString(body, 75, .5);\n\t\tString indentedBody = \"\\t\" + shortenedBody.replace(StringHelper.newline, StringHelper.newline + \"\\t\");\n\t\tString bodyLine = \"(Shortened) Body (html >>> \" + html + \"):\" + StringHelper.newline + indentedBody;\n\n\t\tStringBuilder bodyPartBuilder = new StringBuilder(\"bodyParts:\");\n\t\tfor (MimeBodyPart mimeBodyPart : bodyParts) {\n\t\t\tbodyPartBuilder.append(StringHelper.newline).append(\"\\t\");\n\t\t\ttry {\n\t\t\t\tbodyPartBuilder.append(mimeBodyPart.getFileName());\n\t\t\t} catch (Throwable ex) {\n\t\t\t\t//We don't care if this error is thrown. We don't want this to break anything.\n\t\t\t\tbodyPartBuilder.append(\"N/A\");\n\t\t\t}\n\t\t}\n\t\treturn StringHelper.splitBy(StringHelper.newline,\n\t\t\t\t\t\t\"from: \" + from,\n\t\t\t\t\t\t\"replyTo: \" + StringHelper.splitBy(\", \", replyTo),\n\t\t\t\t\t\t\"to: \" + StringHelper.splitBy(\", \", to),\n\t\t\t\t\t\t\"cc: \" + StringHelper.splitBy(\", \", cc),\n\t\t\t\t\t\t\"bcc: \" + StringHelper.splitBy(\", \", bcc),\n\t\t\t\t\t\t\"subject: \" + subject,\n\t\t\t\t\t\tbodyLine,\n\t\t\t\t\t\tbodyPartBuilder.toString());\n\t}", "public com.google.protobuf.ByteString\n getSubjectBytes() {\n java.lang.Object ref = subject_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n subject_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getSubjectBytes() {\n java.lang.Object ref = subject_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n subject_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getEmailAlt() {\n\t\t\treturn emailAlt;\n\t\t}", "public List<String> getSubject() {\n\t return this.subject;\n\t}", "public synchronized String getMail()\r\n {\r\n return mail;\r\n }", "public java.lang.String getEmail() {\n java.lang.Object ref = email_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n email_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public JTextField getSubject() {\n\t\treturn subject;\n\t}", "public java.lang.String getEmail() {\n\t\t\t\tjava.lang.Object ref = email_;\n\t\t\t\tif (!(ref instanceof java.lang.String)) {\n\t\t\t\t\tcom.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n\t\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\t\temail_ = s;\n\t\t\t\t\treturn s;\n\t\t\t\t} else {\n\t\t\t\t\treturn (java.lang.String) ref;\n\t\t\t\t}\n\t\t\t}", "public String getSrcEmail() {\r\n return (String) getAttributeInternal(SRCEMAIL);\r\n }", "public java.lang.String getEmail() {\n\t\t\tjava.lang.Object ref = email_;\n\t\t\tif (ref instanceof java.lang.String) {\n\t\t\t\treturn (java.lang.String) ref;\n\t\t\t} else {\n\t\t\t\tcom.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\temail_ = s;\n\t\t\t\treturn s;\n\t\t\t}\n\t\t}", "public java.lang.String getEmail() {\n java.lang.Object ref = email_;\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 email_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public WebElement getEmailTxt() {\n\t\treturn emailTxt;\n\t}", "public String getSubject()\n {\n return chatSubject;\n }", "public java.lang.String getEmail() {\n java.lang.Object ref = email_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n email_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getEmail() {\n java.lang.Object ref = email_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n email_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getEmail() {\n java.lang.Object ref = email_;\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 email_ = s;\n }\n return s;\n }\n }", "public java.lang.String getEmail() {\n java.lang.Object ref = email_;\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 email_ = s;\n }\n return s;\n }\n }", "public java.lang.String getEmail() {\n java.lang.Object ref = email_;\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 email_ = s;\n }\n return s;\n }\n }", "public java.lang.String getMail() {\n return mail;\n }", "public String getSmtpPassword() {\n\t\treturn _smtpPassword;\n\t}", "public String getSmtpMessage() {\n return smtpMessage;\n }", "private String getPlainFrom(MimeMessage m)\r\n\t{\r\n\t\tString fromEmail = null;\r\n\t\ttry\r\n\t\t{\r\n\t fromEmail = m.getFrom()[0].toString().toLowerCase();\r\n\t int idx;\r\n\t if ((idx = fromEmail.indexOf('<')) != -1)\r\n\t \tfromEmail = fromEmail.substring(++idx, fromEmail.indexOf('>', idx));\r\n\t\t}\r\n\t\tcatch (MessagingException e) {}\r\n return fromEmail;\r\n\t}", "public Name getSubject() {\r\n return subject;\r\n }", "public java.lang.String getEmail () {\n\t\treturn email;\n\t}", "public static String getEmail() {\n\t\treturn SecurityContextHolder.getContext().getAuthentication().getName();\n\t}", "public String getResetPassword() { return password; }", "String getFirstAlertMailBody( );", "public java.lang.String getReceiverEmail() {\r\n return receiverEmail;\r\n }", "public java.lang.String getEMail () {\r\n\t\treturn eMail;\r\n\t}", "public String getForgottenPasswordQuestion2() {\n\t\treturn forgottenPasswordQuestion2;\n\t}", "public Long getSubjectId() {\n\t\treturn subjectId;\n\t}", "public String getForgottenPasswordQuestion1() {\n\t\treturn forgottenPasswordQuestion1;\n\t}", "private String getSendMailResetPasswordContent(UserForm userForm) {\n return \"\";\n }", "public int getIdSubject() {\n\t\treturn idSubject;\n\t}", "public java.lang.String getEmail() {\r\n return email;\r\n }", "private String getSubject(Message mimeMessage) throws MessagingException {\r\n\r\n String subject = \"\";\r\n\r\n try {\r\n\r\n // decode the subject\r\n subject = MimeUtility.decodeText(mimeMessage.getSubject());\r\n\r\n if (subject == null) {\r\n subject = \"\";\r\n }\r\n }\r\n catch (Exception exce) { }\r\n\r\n return subject;\r\n }", "public String getSnsubject() {\n return snsubject;\n }", "public final String getEmail() {\n\t\treturn email;\n\t}", "public java.lang.String getEmail() {\n return email;\n }", "public java.lang.String getEmail() {\n return email;\n }", "public java.lang.String getEmail() {\n return email;\n }", "public java.lang.String getEmail() {\n return email;\n }", "@java.lang.Override\n public java.lang.String getEmail() {\n java.lang.Object ref = email_;\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 email_ = s;\n return s;\n }\n }", "String getExpirationtMailBody( );", "@Override\n\t\tpublic Resource getSubject() {\n\t\t\treturn subject;\n\t\t}", "public String getMail() {\r\n\t\treturn mail;\r\n\t}", "public gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Email getEmail() {\r\n return email;\r\n }", "public final String getEmail() {\n return email;\n }", "public String getPostSubject() {\n return postSubject;\n }", "public String getSmtpPassword() {\n return smtpPassword;\n }", "public java.lang.String getEmail() {\n\t\treturn email;\n\t}", "public String getForgottenPasswordQuestion4() {\n\t\treturn forgottenPasswordQuestion4;\n\t}" ]
[ "0.7112001", "0.6850674", "0.66201127", "0.65138155", "0.64097613", "0.63402456", "0.632815", "0.63104063", "0.6258991", "0.6258991", "0.6257288", "0.6234522", "0.6234522", "0.6223107", "0.6193687", "0.6193687", "0.6193687", "0.6193116", "0.6193116", "0.6163469", "0.615147", "0.615147", "0.60327035", "0.60327035", "0.6010782", "0.6010782", "0.59590214", "0.59590214", "0.5929811", "0.5920332", "0.5920332", "0.591732", "0.5903999", "0.5903999", "0.5903999", "0.5903999", "0.5903999", "0.5903999", "0.5893377", "0.58933747", "0.5882487", "0.5767516", "0.5767516", "0.57550526", "0.57550526", "0.57549864", "0.57150877", "0.570145", "0.56999123", "0.56999123", "0.56374776", "0.56369853", "0.5635439", "0.5633746", "0.5623705", "0.56233567", "0.56202805", "0.56161743", "0.56079733", "0.56079346", "0.5607798", "0.5607764", "0.5607764", "0.5589305", "0.5589305", "0.5589305", "0.55776256", "0.5575325", "0.55609846", "0.55566454", "0.5556166", "0.5548927", "0.55408084", "0.55360585", "0.55142736", "0.55122244", "0.5496597", "0.5493792", "0.5487299", "0.5483183", "0.5480927", "0.54644525", "0.5461451", "0.54608035", "0.5455004", "0.54546404", "0.54464144", "0.54464144", "0.54464144", "0.54464144", "0.5439316", "0.5437668", "0.5431337", "0.54220563", "0.5415861", "0.5404888", "0.5400406", "0.5395162", "0.53938216", "0.53869313" ]
0.80093324
0
Get email address in the From header.
public String getFromEmailAddress() { return getValue("eurekaclinical.userservice.email.from"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getFromEmailAddress() {\n return this.fromEmailAddress;\n }", "public java.lang.String getSenderHeaderEmailAddress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SENDERHEADEREMAILADDRESS$22, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public String getFrom() {\n boolean rtsMailTestBool = false;//(rtsMailTest != null && !rtsMailTest.equals(\"\"));\n return (rtsMailTestBool)?FROM_NRI_TECHNICAL_SUPPORT_ADDRESS_TEST:FROM_NRI_TECHNICAL_SUPPORT_ADDRESS;\n }", "public String getSmtpEmailFrom() {\n return smtpEmailFrom;\n }", "public org.apache.xmlbeans.XmlString xgetSenderHeaderEmailAddress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SENDERHEADEREMAILADDRESS$22, 0);\n return target;\n }\n }", "private String getPlainFrom(MimeMessage m)\r\n\t{\r\n\t\tString fromEmail = null;\r\n\t\ttry\r\n\t\t{\r\n\t fromEmail = m.getFrom()[0].toString().toLowerCase();\r\n\t int idx;\r\n\t if ((idx = fromEmail.indexOf('<')) != -1)\r\n\t \tfromEmail = fromEmail.substring(++idx, fromEmail.indexOf('>', idx));\r\n\t\t}\r\n\t\tcatch (MessagingException e) {}\r\n return fromEmail;\r\n\t}", "public FromHeader getFrom() {\n return (FromHeader) fromHeader;\n }", "public String getFromEMail() {\n return fromEMail;\n }", "public MailboxList getFrom() {\n return getMailboxList(FieldName.FROM);\n }", "public String getFrom() {\r\n\t\treturn from;\r\n\t}", "public String getDefaultEmailFrom() {\n return defaultEmailFrom;\n }", "@JsonIgnore\r\n public String getEmailAddress() {\r\n return OptionalNullable.getFrom(emailAddress);\r\n }", "public String getFrom() {\n\t\treturn from;\n\t}", "public String getFrom() {\n\n\t\treturn from;\n\n\t}", "public String getFrom()\r\n {\r\n return from;\r\n }", "public String getFromAddress()\n {\n return _fromAddress;\n }", "public java.lang.String getFromAddress() {\n\t\treturn fromAddress;\n\t}", "public String getFrom() {\n return from;\n }", "public String getFrom() {\n return from;\n }", "public String getFrom() {\n return from;\n }", "public String getFrom(){\r\n\t\treturn from;\r\n\t}", "@AutoEscape\n\tpublic String getFromEmailAddress();", "public MailMessage setFrom(String from) {\n this.from = from;\n return this;\n }", "public String getSenderAddress() {\n return getStringProperty(SENDER_ADDRESS_KEY);\n }", "public java.lang.String getEmailAddress();", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "public Mailbox getSender() {\n return getMailbox(FieldName.SENDER);\n }", "public void setFromEMail(String fromEMail) {\n this.fromEMail = fromEMail;\n }", "java.lang.String getUserEmail();", "String getUserMail();", "public String getSenderAddress() {\n return senderAddress;\n }", "public String getFromSenderName() {\n return fromSenderName;\n }", "@JsonProperty(\"from\")\n public String getFrom() {\n return from;\n }", "public java.lang.String getIpfrom() {\n return ipfrom;\n }", "public java.lang.String getSenderAddress() {\r\n return senderAddress;\r\n }", "public java.lang.String getSenderAddress() {\n return senderAddress;\n }", "protected String getUsername(MailAddress m) {\n return m.getLocalPart() + \"@localhost\";\n }", "public java.lang.CharSequence getEmailAddress() {\n return email_address;\n }", "private String extractEMailAddress() {\n return SwingUtil.extract(emailJTextField, Boolean.TRUE);\n }", "public static StringBuilder getFromEmailId() {\n\t\tStringBuilder strQuery = new StringBuilder();\n\t\tstrQuery.append(\" SELECT SYS_REPORT_EMAIL_CONFIG_ID, SYS_REPORT_ID, EMAIL_ID, CONFIG_NAME FROM \");\n\t\tstrQuery.append(PhotoOmniDBConstants.OM_REPORT_EMAIL_CONFIG).append(\" OM_REPORT_EMAIL_CONFIG \"); ;\n\t\tstrQuery.append(\" WHERE UPPER(TRIM(OM_REPORT_EMAIL_CONFIG.CONFIG_NAME)) = ? AND EMAIL_TYPE = 'FROM' \");\n\t\treturn strQuery;\n\t}", "public java.lang.CharSequence getEmailAddress() {\n return email_address;\n }", "public java.lang.String getSenderAddress() {\n return senderAddress;\n }", "public InternetAddress getNotificationEmailAddress();", "public String getFromTag() {\n return fromHeader == null? null: fromHeader.getTag();\n }", "String getFrom();", "String getFrom();", "String getFrom();", "String getFrom();", "public java.lang.String getEmail() {\n return localEmail;\n }", "public String getMessageAddress();", "public String getFrom() {\n Object ref = from_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n from_ = s;\n return s;\n }\n }", "public String getFrom() {\n Object ref = from_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n from_ = s;\n return s;\n }\n }", "String getEmailLocation();", "public String getFromUser(){\r\n\t\treturn fromUser;\r\n\t}", "@JsonGetter(\"from\")\r\n public String getFrom() {\r\n return from;\r\n }", "public String getEmailAddress();", "@AutoEscape\n\tpublic String getEmail_address();", "public Report.LocationOuterClass.Location.FromType getFrom() {\n Report.LocationOuterClass.Location.FromType result = Report.LocationOuterClass.Location.FromType.valueOf(from_);\n return result == null ? Report.LocationOuterClass.Location.FromType.UNRECOGNIZED : result;\n }", "public Report.LocationOuterClass.Location.FromType getFrom() {\n Report.LocationOuterClass.Location.FromType result = Report.LocationOuterClass.Location.FromType.valueOf(from_);\n return result == null ? Report.LocationOuterClass.Location.FromType.UNRECOGNIZED : result;\n }", "public java.lang.String getEmailAddress()\r\n\t{\r\n\t\tString result = \"\";\r\n\t\tint length = emailAddress.length();\r\n\t\t\r\n\t\tif (!locked)\r\n\t\t\tresult = emailAddress;\r\n\t\telse\r\n\t\t{\r\n\t\t\tfor(int i = 1; i < length; i++)\r\n\t\t\t{\r\n\t\t\t\t//char asterisk = emailAddress.charAt(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\r\n\t\t}\r\n\t\treturn result;\r\n\t\t\t\r\n\t}", "String getEmail();", "String getEmail();", "String getEmail();", "String getEmail();", "String getEmail();", "public String getUserEmailAdress() throws Exception\r\n {\n return null;\r\n }", "public void setFromEmailAddress(String fromEmailAddress) {\n this.fromEmailAddress = fromEmailAddress;\n }", "public String getEmailAddressOfCustomer(final SessionContext ctx)\n\t{\n\t\treturn (String)getProperty( ctx, EMAILADDRESSOFCUSTOMER);\n\t}", "public String getFrom() {\n Object ref = from_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n from_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getFrom() {\n Object ref = from_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n from_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "private static SendGridRequest fillFrom(SendGridRequest request) {\n SendGridRequest.EmailAddress emailAddress = new SendGridRequest.EmailAddress();\n emailAddress.setEmail(DynamicPropertyFactory.getInstance().getStringProperty(FROM_EMAIL_ADDRESS, StringUtils.EMPTY).getValue());\n request.setFrom(emailAddress);\n return request;\n }", "private String getUserEmailAddress() {\n\t\tUser user = UserDirectoryService.getCurrentUser();\n\t\tString emailAddress = user.getEmail();\n\n\t\treturn emailAddress;\n\t}", "public V getFrom()\n\t{\n\t\treturn from;\n\t}", "public String getContactEmail() {\r\n return tfContactEmail.getText().trim();\r\n }", "public static String getPrimaryEmail(Context context) {\n try {\n AccountManager accountManager = AccountManager.get(context);\n if (accountManager == null)\n return \"\";\n Account[] accounts = accountManager.getAccounts();\n Pattern emailPattern = Patterns.EMAIL_ADDRESS;\n for (Account account : accounts) {\n // make sure account.name is an email address before adding to the list\n if (emailPattern.matcher(account.name).matches()) {\n return account.name;\n }\n }\n return \"\";\n } catch (SecurityException e) {\n // exception will occur if app doesn't have GET_ACCOUNTS permission\n return \"\";\n }\n }", "MessageAddress getMessageAddress();", "public java.lang.String getSenderFirstName() {\r\n return senderFirstName;\r\n }", "public java.lang.String getEmail() {\n java.lang.Object ref = email_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n email_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getEmail() {\n java.lang.Object ref = email_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n email_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getMailBillAddress() {\n return (String) getAttributeInternal(MAILBILLADDRESS);\n }", "public java.lang.String getEmail() {\n java.lang.Object ref = email_;\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 email_ = s;\n }\n return s;\n }\n }", "public java.lang.String getEmail() {\n java.lang.Object ref = email_;\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 email_ = s;\n }\n return s;\n }\n }", "public java.lang.String getEmail() {\n java.lang.Object ref = email_;\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 email_ = s;\n }\n return s;\n }\n }", "public void setFromEmailAddress(String fromEmailAddress);", "public String getEmailAddress(){\r\n\t\treturn emailAddress;\r\n\t}", "public String getEmail() {\r\n // Bouml preserved body begin 00040D82\r\n\t System.out.println(email);\r\n\t return email;\r\n // Bouml preserved body end 00040D82\r\n }", "public void setFrom(Mailbox from) {\n setMailboxList(FieldName.FROM, from);\n }", "public String getEmailAddress() {\r\n\t\treturn emailAddress;\r\n\t}", "public String getEmailAddress() {\n return EmailAddress.commaSeperateList(this.emailAddressList);\n }", "public String getEmailAddress() {\n return (String)getAttributeInternal(EMAILADDRESS);\n }", "public String getEmailAddress() {\n return (String)getAttributeInternal(EMAILADDRESS);\n }", "public java.lang.String getEmail() {\n java.lang.Object ref = email_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n email_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getEmailAddress() {\r\n return email;\r\n }", "public static String getRecipientEmail() {\n return recipientEmail;\n }", "public int getFrom() {\n return from_;\n }" ]
[ "0.7335076", "0.7313966", "0.7084244", "0.7020923", "0.69425875", "0.69276255", "0.691072", "0.68755084", "0.6847214", "0.68041945", "0.67653054", "0.6763927", "0.675984", "0.6758908", "0.6751299", "0.6735161", "0.6734198", "0.6702536", "0.66928786", "0.66875386", "0.65772474", "0.64474964", "0.6352124", "0.63308936", "0.62773967", "0.62721986", "0.62721986", "0.62721986", "0.62721986", "0.62721986", "0.62721986", "0.6072255", "0.6048833", "0.6033449", "0.60206646", "0.6016291", "0.60095644", "0.59806216", "0.59720653", "0.5955047", "0.59426606", "0.5939484", "0.5928395", "0.5922649", "0.59165585", "0.59152186", "0.5913237", "0.5878927", "0.5875092", "0.5850076", "0.5850076", "0.5850076", "0.5850076", "0.5849623", "0.58478713", "0.5843274", "0.5842328", "0.5836358", "0.5829214", "0.58138466", "0.58047444", "0.5789242", "0.5789161", "0.5785472", "0.57853764", "0.57834536", "0.57834536", "0.57834536", "0.57834536", "0.57834536", "0.5779854", "0.57798314", "0.5775394", "0.57734877", "0.57734877", "0.5769554", "0.5761389", "0.57455224", "0.57314765", "0.57194114", "0.56940985", "0.5692517", "0.56906587", "0.56906587", "0.5684419", "0.56830764", "0.56830764", "0.56830764", "0.56773144", "0.5674666", "0.5674462", "0.5672361", "0.5667044", "0.56567156", "0.56460184", "0.56460184", "0.56404525", "0.5636085", "0.5631916", "0.5630988" ]
0.8081247
0
Get the number of hours to keep a user registration without verification, before deleting it from the database.
public int getRegistrationTimeout() { return getIntValue("eurekaclinical.userservice.registration.timeout", 72); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getOccupiedHours(){\n \t\treturn getOccupiedMinutes()/60;\n \t}", "public int getUpHours() {\n return (int)((_uptime % 86400000) / 3600000);\n }", "int getExpiryTimeSecs();", "public static double hoursSpent()\r\n {\r\n double howlong = 24.0;\r\n return howlong;\r\n }", "int getSignOffTime();", "public static double hoursSpent()\n\t{\n\t\treturn 7.0;\n\t}", "int getSignOnTime();", "public long explicitAutoAssocSlotLifetime() {\n return expireAccounts ? 0 : THREE_MONTHS_IN_SECONDS;\n }", "long getExpiration();", "int getExpireTimeout();", "private int getHours() {\n //-----------------------------------------------------------\n //Preconditions: none.\n //Postconditions: returns the value for the data field hours.\n //-----------------------------------------------------------\n\n return this.hours;\n\n }", "public int getTimeToLive() {\n\t\treturn deathsTillForget;\n\t}", "public long getTimeLeft() {\n return getExpiration() - System.currentTimeMillis() / 1000L <= 0 ? 0 : getExpiration() - System.currentTimeMillis() / 1000L;\n }", "public int getOccupiedMinutes(){\n \t\treturn (int) (getOccupiedSeconds()/60);\n \t}", "public int getUpMinutes() {\n return (int)((_uptime % 3600000) / 60000);\n }", "public int getExpiry();", "long getEvictions();", "long getInvalidLoginLockoutTime();", "public long getOccupiedSeconds(){\n \t\treturn occupiedSeconds;\n \t}", "public long getTokenValidityInSecondsForRememberMe() {\n return tokenValidityInSecondsForRememberMe;\n }", "public Integer delayExistingRevokeInHours() {\n return this.delayExistingRevokeInHours;\n }", "public long getExpiredSessions();", "public int getSessionExpireRate();", "public int getHours(){\n return (int) totalSeconds/3600;\n }", "Integer getHundSec();", "public int getExpiryTime() {\n return expiryTime;\n }", "public int getUpkeep() {\n return upkeep;\n }", "public long getUserCount() throws UserManagementException;", "Duration getTokenExpiredIn();", "public int getMissCountExpired() {\n return missCountExpired;\n }", "public int getSessionMaxAliveTime();", "private int getHour() {\n\t\tString time = getPersistedString(this.defaultValue);\n\t\tif (time == null || !time.matches(VALIDATION_EXPRESSION)) {\n\t\t\treturn -1;\n\t\t}\n\n\t\treturn Integer.valueOf(time.split(\":|/\")[0]);\n\t}", "public int getExpireMinutes()\n\t{\n\t\treturn m_expire;\n\t}", "@DefaultValue(\"300\")\n int getDeleteGracePeriodSeconds();", "public int getExpiryTimeSecs() {\n return expiryTimeSecs_;\n }", "public double getUserTimeSec() {\n\treturn getUserTime() / Math.pow(10, 9);\n}", "public Double tokenRefreshExtensionHours() {\n return this.tokenRefreshExtensionHours;\n }", "io.dstore.values.IntegerValue getKeepPropertiesHistoryInHours();", "public static int GetMills() {\r\n return (int) System.currentTimeMillis() - StartUpTimeMS;\r\n }", "public io.dstore.values.IntegerValue getKeepPropertiesHistoryInHours() {\n if (keepPropertiesHistoryInHoursBuilder_ == null) {\n return keepPropertiesHistoryInHours_ == null ? io.dstore.values.IntegerValue.getDefaultInstance() : keepPropertiesHistoryInHours_;\n } else {\n return keepPropertiesHistoryInHoursBuilder_.getMessage();\n }\n }", "public int getUpDays() {\n return (int)(_uptime / 86400000);\n }", "@Override\n public long timeUserWaitedMs() {\n return 0 ;\n }", "public Integer getFreeTimes() {\r\n return freeTimes;\r\n }", "public int getExpiryTimeSecs() {\n return expiryTimeSecs_;\n }", "public int getMaximumAge() {\n\t\treturn 2 * 60 * 60; \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 io.dstore.values.IntegerValue getKeepPropertiesHistoryInHours() {\n return keepPropertiesHistoryInHours_ == null ? io.dstore.values.IntegerValue.getDefaultInstance() : keepPropertiesHistoryInHours_;\n }", "public long getCurrentUserTime() {\n return getUserTime() - startUserTimeNano;\n }", "public static int deleteSessionId(){\n\t\tint totalDeleted = 0;\n\t\t//This should total 12 hours in milliseconds\n\t\tlong twelveHours = 1000 * 60 * 60 * 12; \n\t\t//Current time (long format)\n\t\tDate date = new Date();\n\t\tlong currentTimeMilliseconds = date.getTime();\n\t\t//Current time - 12 hours\n\t\tlong timeToDeleteBy = currentTimeMilliseconds - twelveHours;\n\t\t\n\t\tDatastoreService datastore = DatastoreServiceFactory.getDatastoreService();\n\t\t\n\t\t//Prepare the Query. No filters as we want ALL sessionIds\n\t\tQuery q = new Query(\"sessionId\");\n\t\t\n\t\t// Use PreparedQuery interface to retrieve results\n\t\tPreparedQuery pq = datastore.prepare(q);\n\t\t//Loops through all results. In our case, we are going to just use the first one\n\t\tfor (Entity result : pq.asIterable()) {\n\t\t\tlog.warning(\"Entity returned, found sessionId\");\n\t\t\t\n\t\t\tlong expiryTime = 0L;\n\t\t\ttry { //Try catch here in case the casting goes incorrectly\n\t\t\t\texpiryTime = (long) result.getProperty(\"dateCreated\");\n\t\t\t} catch (Exception e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif(expiryTime == 0){\n\t\t\t\tcontinue; //Breaks the current loop\n\t\t\t}\n\t\t\t//Check against the date and see if it is more than 12 hours old\n\t\t\tif(expiryTime < timeToDeleteBy){\n\t\t\t\t//More than 12 hours old, delete \n\t\t\t\tKey key = result.getKey();\n\t\t\t\tdatastore.delete(key);\n\t\t\t\t//Increment the counter so we know one was deleted\n\t\t\t\ttotalDeleted++;\n\t\t\t}\t\t\n\t\t}\n\t\treturn totalDeleted;\n\t}", "public int getIntervalHours();", "public int getHoursOfCurrentTime() {\n SimpleDateFormat formatter = new SimpleDateFormat(\"HH\", Locale.getDefault());\n Date curTime = new Date(System.currentTimeMillis());\n return Integer.parseInt(formatter.format(curTime));\n }", "public static long getKeepalives() {\n return keepalives;\n }", "public Long get_cachetotrevalidationmiss() throws Exception {\n\t\treturn this.cachetotrevalidationmiss;\n\t}", "public int getRegularHourlyWage() {\n return regularHourlyWage;\n }", "public int getHours() {\n return this.hours;\n }", "public int getUpSeconds() {\n return (int)((_uptime % 60000) / 1000);\n }", "@Override\n\tpublic int getDaysSinceLastLogin() {\n\t\tDate now = sabre.getTimeNow();\n\t\tlong timeDiff = now.getTime() - lastLogin.getTime();\n\t\tlong diffDays = TimeUnit.DAYS.convert(timeDiff, TimeUnit.MILLISECONDS);\n\t\treturn (int)diffDays;\n\t}", "public long timeOfCreation() {\n\t\treturn timeOfCreation ;\n\t}", "public long remainingTime() throws IgniteTxTimeoutCheckedException;", "int getMaxInactiveInterval();", "public int getHours() {\r\n return FormatUtils.uint8ToInt(mHours);\r\n }", "int getDeleteUserMonsterUuidsCount();", "public int getMaxInactiveInterval();", "@Override\n\tpublic long getTokenExpiryTime() {\n\t\treturn 0;\n\t}", "public BigDecimal getCheckAfterHours() {\n return checkAfterHours;\n }", "public double totalHours(){\n return (this._startingHour - this._endingHour);\n }", "public long getTimeTaken();", "public Long getExpireTime() {\n\t\treturn expireTime;\n\t}", "Long getUserCreated();", "Integer loadUserCount();", "@Override\n public final double getExpiration() {\n return safetyHelper.getExpiration();\n }", "public Integer getGameUseTime() {\n return gameUseTime;\n }", "public long getTimeDisrepair()\n\t{\n\t\treturn timeDisrepair;\n\t}", "public int getInitLifetime() throws GSSException {\n/* 277 */ Date date = getEndTime();\n/* 278 */ if (date == null) {\n/* 279 */ return 0;\n/* */ }\n/* */ \n/* 282 */ long l = date.getTime() - System.currentTimeMillis();\n/* 283 */ return (int)(l / 1000L);\n/* */ }", "public long getExpiration() {\n return expiration;\n }", "int getNumberOfRegsUser(long idUser);", "int getInvalidLoginCount();", "public int totalTime()\n {\n return departureTime - arrivalTime;\n }", "public long getElapsedTimeHour() {\n return running ? ((((System.currentTimeMillis() - startTime) / 1000) / 60 ) / 60) : 0;\n }", "public int daysRemainingInFreeTrial() {\n\n if (trialExpiration == null) {\n throw new IllegalStateException();\n }\n //use the date at midnight to normalize the time component of the dates\n return Days.daysBetween(new DateTime().toDateMidnight(), new DateTime(trialExpiration).toDateMidnight()).getDays();\n }", "public abstract int getUpkeep();", "public int getTimeOfSession();", "public Date getSignUpTime() {\n return signUpTime;\n }", "public int getUserCount() {\n\t\t\treturn 7;\n\t\t}", "public long getUptime() {\n\t\treturn System.currentTimeMillis()-uptime;\n\t}", "public float timeBeforeDestruction(){\n\t\tif(destroyTime < Float.MAX_VALUE){\n\t\t\treturn destroyTime - Main.time;\n\t\t}else{\n\t\t\treturn Float.MAX_VALUE;\n\t\t}\n\t}", "int getUserCount();", "int getUserCount();", "public double getHours() {\r\n return hours;\r\n }", "public double getHours() {\r\n return hours;\r\n }", "public static void removeUserAge(Context context) {\n\n context.getSharedPreferences(FILE_NAME, 0)\n .edit()\n .remove(USER_AGE_KEY)\n .apply();\n }", "long getExpiryTime() {\n return expiryTime;\n }", "long getInhabitedTime();", "public static int getHourOfTime(long time){\n \t//time-=59999;\n \tint retHour=0;\n \tlong edittime=time;\n \twhile (edittime>=60*60*1000){\n \t\tedittime=edittime-60*60*1000;\n \t\tretHour++;\n \t}\n \tretHour = retHour % 12;\n \tif (retHour==0){ retHour=12; }\n \treturn retHour;\n }", "public int getFinishHour() {\n return finishHour;\n }", "public long getElapsedHours() {\n\t\tlong elapsed;\n\t\tif (running) {\n\t\t\telapsed = (System.nanoTime() - startTime);\n\t\t} else {\n\t\t\telapsed = (stopTime - startTime);\n\t\t}\n\t\treturn elapsed / nsPerHh;\n\t}", "public int getLastUserId();", "public int getSessionAverageAliveTime();", "public int getMinHours() {\r\n return minHours;\r\n }", "private static void removeExpiredLoginUser() {\n\t\tList<String> expiredLoginName=clearExpiredPassport();\r\n\t\t/*暂时不修改数据库状态。*/\r\n\t\t//this.contactUserHessianService.editContactUserToOffline(expiredLoginName);\r\n\t}" ]
[ "0.652856", "0.65205985", "0.6264112", "0.6191055", "0.60203147", "0.59926766", "0.5967123", "0.5926148", "0.5907421", "0.5845059", "0.583185", "0.58100253", "0.58000183", "0.5789214", "0.5763316", "0.57315487", "0.57237875", "0.5708381", "0.5704571", "0.5694263", "0.5685188", "0.5683076", "0.5665797", "0.5650563", "0.5624371", "0.5617868", "0.5609496", "0.560885", "0.56014735", "0.55923545", "0.5581279", "0.55627286", "0.55560744", "0.55458784", "0.55409336", "0.55388844", "0.552076", "0.55186844", "0.5518063", "0.5516814", "0.5513216", "0.5504942", "0.5501654", "0.5481174", "0.54757196", "0.54716414", "0.54711777", "0.54675674", "0.54613286", "0.5458963", "0.5457166", "0.5429386", "0.54282737", "0.5415847", "0.54126537", "0.54052067", "0.5403217", "0.53981984", "0.5395782", "0.539357", "0.53916657", "0.53841907", "0.53799206", "0.5350998", "0.5339127", "0.5338107", "0.5334967", "0.5332488", "0.5332335", "0.5325281", "0.5319931", "0.53185576", "0.5318549", "0.5313456", "0.5299028", "0.5292314", "0.5287052", "0.5286379", "0.5285098", "0.528169", "0.52805793", "0.5267734", "0.5267545", "0.52656764", "0.525686", "0.5238909", "0.5235276", "0.5235276", "0.52328205", "0.52328205", "0.5228537", "0.52279764", "0.52271754", "0.52221805", "0.52185607", "0.52124256", "0.52100223", "0.52049476", "0.52041936", "0.52008945" ]
0.62346435
3
vamos a generar un usuario
@Override public void run(String... strings) throws Exception { Usuario u= new Usuario(1521L, "Viridiana Hernandez","[email protected]"); //la guardamos // repoUsu.save(u); //GENERAMOS LA DIRECCION QUE VAMOS A GUARDAR Direccion d = new Direccion(new Usuario(1521L),"Calle 13", 55120, "Ecatepec"); //repoDir.save(d); //AQUI HAREMOS EL JOIN Direccion d2= repoDir.findOne(2L); System.out.println("Correo:"+d2.getU().getEmail()+ " municipio "+d2.getMunicipio()); //repoMensa.save (new Mensajito("Primero","Mi primera vez con hibernate")) /* Mensajito m= repoMensa.findOne(1); System.out.println(m.getTitulo()); // repoMensa.save(new Mensajito("17 de octubre","No temblo")); System.out.println("vamos a uscar todos"); for (Mensajito mensa:repoMensa.findAll()){ System.out.println(mensa); } //para buscar por id FINDONE System.out.println("vamos a buscar por id"); System.out.println(repoMensa.findOne(1)); // Actualizar repoMensa.save(new Mensajito(1,"nuevo titulo","nuevo cuerpo")); System.out.println(repoMensa.findOne(1)); */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Utilizator createUser(String username, String password, String nume,\n\t\t\tString prenume, String tip, String aux);", "GenerateUserAccount () {\r\n }", "private String createUser(String name) {\n\t\treturn null;\n\t}", "public void createUtilisateur(UtilisateurBean u) {\n\t}", "public void creatUser(String name, String phone, String email, String password);", "@Override\r\n\tpublic boolean createUser(Utilisateur u) {\n\t\treturn false;\r\n\t}", "private void newUser(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\ttry {\n\t\t\tPrintWriter out = res.getWriter();\n\t\t\tString name = req.getParameter(Constants.NAME_USER);\n\t\t\tUserDB.introduceUser(name);\n\t\t\tlong id = UserDB.getUserId(name);\n\t\t\tUsuario u = new Usuario(name, Long.toString(id));\n\t\t\tout.print(gson.toJson(u));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tres.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n\t\t}\n\t}", "public void crearUsuarioWS(String name, String login, String pass){\n //JAXBElement<ArrayOfAdministrationResource> arrayAdminRole = obtenerRolesPorNombre(ConstantesWS.ROL_NAME_CLIENTE).;\n \n ObjectFactory fact = new ObjectFactory(); \n //fact.createArrayOfAdministrationRole(obtenerRolesPorNombre(ConstantesWS.ROL_NAME_CLIENTE).);\n \n //fact.createArrayOfint()\n \n //obtenerConexion().getRolesByIds()\n \n //busqueda y seteo del rol de cliente\n ArrayOfint aux =fact.createArrayOfint(); \n aux.getInt().add(Integer.valueOf(181)); //perfil del cliente \n ArrayOfAdministrationRole arrayRole = obtenerConexion().getRolesByIds(aux);\n \n JAXBElement<ArrayOfAdministrationRole> jaxbElementRol;\n jaxbElementRol = fact.createArrayOfAdministrationRole(arrayRole);\n \n //creacion del nuevo usuario con rol cliente\n AdministrationUser user = new AdministrationUser();\n user.setEnabled(Boolean.TRUE);\n user.setMustChangePassword(Boolean.FALSE);\n user.setLastName(fact.createString(name)); \n user.setPassword(fact.createString(pass));\n user.setUserName(fact.createString(login)); \n user.setRoles(jaxbElementRol); \n \n \n //agrego el nuevo usuario\n obtenerConexion().addUser(ConstantesWS.APLICACION_PROVEEDORES, user);\n \n }", "public void createUser(User user) {\n\n\t}", "@Override\r\n public void registrarUsuario(User u) {\r\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n }", "@Override\n\tpublic Usuario createUsuario(Usuario usr) {\n\t\treturn null;\n\t}", "private void register_user() {\n\n\t\tHttpRegister post = new HttpRegister();\n\t\tpost.execute(Config.URL + \"/api/newuser\");\n\n\t}", "public String createUserAction()throws Exception{\n\t\tString response=\"\";\n\t\tresponse=getService().getUserMgmtService().createNewUser(\n\t\t\t\tgetAuthBean().getUserName(),\n\t\t\t\tgetAuthBean().getFirstName(),\n\t\t\t\tgetAuthBean().getLastName(),\n\t\t\t\tgetAuthBean().getEmailId(),\n\t\t\t\tgetAuthBean().getRole()\n\t\t);\n\t\tgetAuthBean().setResponse(response);\n\t\tinputStream = new StringBufferInputStream(response);\n\t\tinputStream.close();\n\t\treturn SUCCESS;\n\t}", "public void createUser(User user);", "public void crearUsuario(String cedula,String name ,String lastname ,String phone , String city ,String email,String password) throws BLException;", "public void createUser() {\r\n\t\tif(validateUser()) {\r\n\t\t\t\r\n\t\t\tcdb=new Connectiondb();\r\n\t\t\tcon=cdb.createConnection();\r\n\t\t\ttry {\r\n\t\t\t\tps=con.prepareStatement(\"INSERT INTO t_user (nom,prenom,userName,pass,tel,type,status) values(?,?,?,?,?,?,?)\");\r\n\t\t\t\tps.setString(1, this.getNom());\r\n\t\t\t\tps.setString(2, this.getPrenom());\r\n\t\t\t\tps.setString(3, this.getUserName());\r\n\t\t\t\tps.setString(4, this.getPassword());\r\n\t\t\t\tps.setInt(5, Integer.parseInt(this.getTel().trim()));\r\n\t\t\t\tps.setString(6, this.getType());\r\n\t\t\t\tps.setBoolean(7, true);\r\n\t\t\t\tps.executeUpdate();\r\n\t\t\t\tnew Message().error(\"Fin d'ajout d'utilisateur\");\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\tnew Message().error(\"Echec d'ajout d'utilisateur\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}finally {\r\n\t\t\t\tcdb.closePrepareStatement(ps);\r\n\t\t\t\tcdb.closeConnection(con);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\n\tpublic void create(UserServer obj) {\n\t\tcreateClient(obj);// INSERE USUARIO NA ENTIDADE CLIENT\n\t\ttry {\n\t\t\tfinal ResultSet result = stat.getGeneratedKeys();\n\t\t\twhile (result.next()) {\n\t\t\t\tobj.setId(result.getInt(\"idclient\"));\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\tcreatePhone(obj);// INSERE PHONE INFORMADO PELO CLIENT CADASTRADO\n\t\tcreateEmail(obj);// INSERE EMAIL INFORMADO PELO CLIENT CADASTRADO\n\t\tencerrarConexao();\n\t}", "@Override\n\tpublic IUser creatUser() {\n\t\treturn new SqlServerUser();\n\t}", "public String create() {\r\n\t\tuserService.create(userAdd);\r\n\t\tusers.setWrappedData(userService.list());\r\n\t\treturn \"create\";\r\n\t}", "public void registrarAdministrador() throws IOException {\n\n //asignamos al usuario la imagen de perfil default\n usuarioView.setUsuarioFotoRuta(getPathDefaultUsuario());\n usuarioView.setUsuarioFotoNombre(getNameDefaultUsuario());\n\n //Se genera un login y un pass aleatorio que se le envia al proveedor\n MD5 md = new MD5();\n GenerarPassword pass = new GenerarPassword();\n SendEmail email = new SendEmail();\n\n password = pass.generarPass(6);//Generamos pass aleatorio\n\n //Encriptamos las contraseñas\n usuarioView.setUsuarioPassword(md.getMD5(password));//Se encripta la contreseña\n usuarioView.setUsuarioRememberToken(md.getMD5(password));\n\n //el metodo recibe los atributos, agrega al atributo ciudad del objeto usuario un objeto correspondiente, \n //de la misma forma comprueba el rol y lo asocia, por ultimo persiste el usuario en la base de datos\n usuarioView.setSmsCiudad(ciudadDao.consultarCiudad(usuarioView.getSmsCiudad()));//Asociamos una ciudad a un usuario\n usuarioView.setSmsRol(rolDao.consultarRol(usuarioView.getSmsRol()));//Asociamos un rol a un usuario\n usuarioView.setUsuarioEstadoUsuario(1);//Asignamos un estado de cuenta\n usuarioView.setSmsNacionalidad(nacionalidadDao.consultarNacionalidad(usuarioView.getSmsNacionalidad()));\n\n //registramos el usuario y recargamos la lista de clientes\n usuarioDao.registrarUsuario(usuarioView);\n usuariosListView = adminDao.consultarUsuariosAdministradores();\n\n //Enviar correo\n email.sendEmailAdministradorBienvenida(usuarioView, password);\n\n //limpiamos objetos\n usuarioView = new SmsUsuario();\n password = \"\";\n }", "Boolean registerNewUser(User user);", "public List<String> register( RegistrationUser user )\n\t{\n\t\ttry\n\t\t{\n\t\t\t// Base64 codiertes Passwort decodieren\n\t\t\tbyte[] passwordBytes = CodecUtility.base64ToByte( user.getPassword() );\n\t\t\tuser.setPassword( StringUtils.toString( passwordBytes, ApiConstants.DEFAULT_CHARSET ) );\n\n\t\t\t// Passwortkomplexität prüfen\n\t\t\tvalidateCredentialComplexity( user.getPassword() );\n\n\t\t\t// 2-Faktor Secret für Nutzer erzeugen und Base32 codieren\n\t\t\tbyte[] totpSecretBytes = genTotpSecret();\n\t\t\tString totpSecretBase32 = CodecUtility.byteToBase32( totpSecretBytes );\n\n\t\t\t// Salt für Nutzer erzeugen und Base64 codieren\n\t\t\tbyte[] saltBytes = genSalt();\n\t\t\tString saltBase64 = CodecUtility.byteToBase64( saltBytes );\n\n\t\t\t// Salted Passwort-Hash für Nutzer erzeugen und Base64 codieren\n\t\t\tbyte[] digestBytes = genSaltedHash( user.getPassword(), saltBytes );\n\t\t\tString digestBase64 = CodecUtility.byteToBase64( digestBytes );\n\n\t\t\t// Salt für 2-Faktor Reset-Token erzeugen und Base64 codieren\n\t\t\tbyte[] totpResetTokenSaltBytes = genSalt();\n\t\t\tString totpResetTokenSaltBase64 = CodecUtility.byteToBase64( totpResetTokenSaltBytes );\n\n\t\t\t// 2-Faktor Reset-Token für Nutzer erzeugen\n\t\t\tString totpResetTokenBase32 = genTotpResetToken();\n\n\t\t\t// Salted 2-Faktor Reset-Token-Hash erzeugen und Base64 codieren\n\t\t\tbyte[] totpResetTokenDigestBytes = genSaltedHash( totpResetTokenBase32, totpResetTokenSaltBytes );\n\t\t\tString totpResetTokenDigestBase64 = CodecUtility.byteToBase64( totpResetTokenDigestBytes );\n\n\t\t\t// Benutzer Entität erzeugen\n\t\t\tEntityUser eUser = new EntityUser();\n\t\t\teUser.setUsername( user.getUsername() );\n\t\t\teUser.setTotpSecret( totpSecretBase32 );\n\t\t\teUser.setDigest( digestBase64 );\n\t\t\teUser.setSalt( saltBase64 );\n\t\t\teUser.setTotpResetToken( totpResetTokenDigestBase64 );\n\t\t\teUser.setTotpResetTokenSalt( totpResetTokenSaltBase64 );\n\n\t\t\t// Benutzer in der Datenbank speichern\n\t\t\tEntityUser eUserPersisted = m_userDAOBean.create( eUser );\n\n\t\t\t// TODO Prüfen ob Salt, SaltedHash oder TOTPSecret bereits von anderem Benutzer verwendet\n\n\t\t\t// Registrierungs QR-Code für Benutzer erzeugen\n\t\t\tString qrCodeUrl = getQRCodeURL( eUserPersisted.getUsername(), eUserPersisted.getTotpSecret() );\n\n\t\t\t// URL für QR-Code und TOTP Reset Token zurückgeben\n\t\t\tList<String> result = new ArrayList<String>();\n\t\t\tresult.add( qrCodeUrl );\n\t\t\tresult.add( totpResetTokenBase32 );\n\t\t\treturn result;\n\t\t}\n\t\tcatch (RuntimeException rex)\n\t\t{\n\t\t\tthrow rex;\n\t\t}\n\t\tcatch (Exception ex)\n\t\t{\n\t\t\tthrow new GenericUserRegistrationException();\n\t\t}\n\t}", "int createUser(User data) throws Exception;", "@Override\n\tpublic void crearUsuario(UsuarioEntity Usuario) {\n\t\treposUsuarios.save(Usuario);\n\t}", "@RequestMapping(value = \"/crearusuario\", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)\n public CommonsResponse createuser(@RequestParam String llave_seguridad, @RequestBody NewUserInputDTO request, HttpServletRequest requestTransaction)\n {\n CommonsResponse response = new CommonsResponse();\n Map<String, String> mapConfiguration = null;\n try\n {\n logger.debug(\"Se valida la licencia si puede consumir los procesos.\");\n mapConfiguration = GatewayBaseBean.validateLicenceToWS(llave_seguridad, webUtils.getClientIp(requestTransaction));\n\n userServices.createUser(mapConfiguration, request);\n }\n catch (ParamsException ex)\n {\n response.toParamsWarn(messageSource, KEY_ERRORS_GENERIC + ex.getCode());\n logger.error(\"Parametros de Licencia Errados WS [crearusuarioisoft], key[\"+llave_seguridad+\"].\", ex);\n return response;\n }\n catch (LicenseException ex)\n {\n response.toLicenceWarn(messageSource, KEY_ERRORS_GENERIC + ex.getCode(), llave_seguridad);\n logger.error(\"Parametros de Licencia Errados WS [consultarusuariossistema], key[\"+llave_seguridad+\"].\", ex);\n return response;\n }\n catch (ServiceException ex)\n {\n response.toParamsWarn(messageSource, KEY_ERRORS_GENERIC + ex.getCode());\n logger.warn(\"Error de Servicio WS [crearusuarioisoft].\", ex);\n return response;\n }\n catch (Exception ex)\n {\n logger.error(\"Error Generico en WS [crearusuarioisoft].\", ex);\n GatewayBaseBean.matchToResponses(response);\n return response;\n }\n logger.info(\"Se retorna respuesta efectiva del WS [crearusuario].\");\n return response.toOk();\n }", "@Override\n\tpublic Usuario create(Usuario obj) {\n\t\treturn null;\n\t}", "private void createUser(final String email, final String password) {\n\n }", "@Override\r\n\tpublic Object createUser() throws DataAccessException, SQLException {\n\t\treturn null;\r\n\t}", "private void setCreateUser(entity.User value) {\n __getInternalInterface().setFieldValue(CREATEUSER_PROP.get(), value);\n }", "public void cadastrarUsuario(final Usuario usuario){\n mAuth = ConfiguracaoFirebase.getFirebaseAuth();\n mAuth.createUserWithEmailAndPassword(\n usuario.getEmail(),usuario.getSenha()\n ).addOnCompleteListener(\n this, new OnCompleteListener<AuthResult>() {\n //Verifica exceções e se o usuário se cadastrou\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()){\n Toast.makeText(getApplicationContext(),\"Usuário cadastrado com sucesso!\",Toast.LENGTH_SHORT).show();\n finish();\n //Convertendo email em base 64 para ser usado como uidPessoa\n try {\n String identificadorUsuario = Base64Custom.codificarBase64(FirebaseAuth.getInstance().getCurrentUser().getEmail());\n usuario.setUidPessoa(identificadorUsuario);\n usuario.setNome(FirebaseAuth.getInstance().getCurrentUser().getDisplayName());\n usuario.setEmail(FirebaseAuth.getInstance().getCurrentUser().getEmail());\n usuario.setPontos(1);\n usuario.salvar();\n cadastrarUsuario(usuario);\n logarUsuario(usuario);\n abrirTelaPrincipal();\n }catch (Exception e){\n e.printStackTrace();\n }\n }else {String excecao = \"\";\n try{\n throw task.getException();\n\n }catch (FirebaseAuthWeakPasswordException e){\n excecao = \"Digite uma senha forte!\";\n }catch (FirebaseAuthInvalidCredentialsException e){\n excecao = \"Por favor, digite um e-mail válido\";\n }catch (FirebaseAuthUserCollisionException e){\n excecao = \"esta conta já está cadastrada\";\n }catch (Exception e){\n excecao = \"Erro ao cadastrar usuário\" + e.getMessage();\n e.printStackTrace();\n }\n Toast.makeText(getApplicationContext(),excecao,Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "public RespuestaDTO registrarUsuario(Connection conexion, UsuarioDTO usuario) throws SQLException {\n PreparedStatement ps = null;\n ResultSet rs = null;\n int nRows = 0;\n StringBuilder cadSQL = null; //para crear el ddl \n RespuestaDTO registro = null;\n \n try {\n registro = new RespuestaDTO();\n System.out.println(\"usuario----\" + usuario.toStringJson());\n cadSQL = new StringBuilder();\n cadSQL.append(\" INSERT INTO usuario(usua_correo, usua_usuario,tius_id, usua_clave)\");\n cadSQL.append(\" VALUES (?, ?, ?, SHA2(?,256)) \");\n \n ps = conexion.prepareStatement(cadSQL.toString(), Statement.RETURN_GENERATED_KEYS);\n \n AsignaAtributoStatement.setString(1, usuario.getCorreo(), ps);// se envian los datos a los ?, el orden importa mucho\n AsignaAtributoStatement.setString(2, usuario.getUsuario(), ps);\n AsignaAtributoStatement.setString(3, usuario.getIdTipoUsuario(), ps);\n AsignaAtributoStatement.setString(4, usuario.getClave(), ps);\n \n nRows = ps.executeUpdate(); // ejecuta el proceso\n if (nRows > 0) { //nRows es el numero de filas que hubo de movimiento, es decir si hizo el registro, con este if se sabe\n rs = ps.getGeneratedKeys(); // esto se usa para capturar el id recien ingresado en caso de necesitarlo despues\n if (rs.next()) {\n registro.setRegistro(true);\n registro.setIdResgistrado(rs.getString(1)); // guardo el id en en este atributo del objeto\n\n }\n // cerramos los rs y ps\n ps.close();\n ps = null;\n rs.close();\n rs = null;\n }\n } catch (SQLException se) {\n LoggerMessage.getInstancia().loggerMessageException(se);\n return null;\n }\n return registro;\n }", "private void registerUser(){\n mAuth.createUserWithEmailAndPassword(correo, password).addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()){\n //mapa de valores\n Map<String, Object> map = new HashMap<>();\n map.put(\"name\",name);\n map.put(\"email\",correo);\n map.put(\"password\",password);\n map.put(\"birthday\",cumple);\n map.put(\"genre\",genre);\n map.put(\"size\",size);\n //obtenemos el id asignado por la firebase\n String id= mAuth.getCurrentUser().getUid();\n //pasamos el mapa de valores\n mDatabase.child(\"Users\").child(id).setValue(map).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task2) {\n //validams que la tarea sea exitosa\n if(task2.isSuccessful()){\n startActivity(new Intent(DatosIniciales.this, MainActivity.class));\n //evitamos que vuelva a la pantalla con finsh cuando ya se ha registrado\n finish();\n }else{\n Toast.makeText(DatosIniciales.this, \"Algo fallo ups!!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }else{\n Toast.makeText(DatosIniciales.this, \"No pudimos completar su registro\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "public void createUser() throws ServletException, IOException {\n\t\tString fullname = request.getParameter(\"fullname\");\n\t\tString password = request.getParameter(\"password\");\n\t\tString email = request.getParameter(\"email\");\n\t\tUsers getUserByEmail = productDao.findUsersByEmail(email);\n\t\t\n\t\tif(getUserByEmail != null) {\n\t\t\tString errorMessage = \"we already have this email in database\";\n\t\t\trequest.setAttribute(\"message\", errorMessage);\n\t\t\t\n\t\t\tString messagePage = \"message.jsp\";\n\t\t\tRequestDispatcher requestDispatcher = request.getRequestDispatcher(messagePage);\n\t\t\trequestDispatcher.forward(request, response);\n\t\t}\n\t\t// create a new instance of users class;\n\t\telse {\n\t\t\tUsers user = new Users();\n\t\t\tuser.setPassword(password);\n\t\t\tuser.setFullName(fullname);\n\t\t\tuser.setEmail(email);\n\t\t\tproductDao.Create(user);\n\t\t\tlistAll(\"the user was created\");\n\t\t}\n\n\t\t\n\t}", "public void setUsuarioCreacion(\n\t\t\tec.com.smx.frameworkv2.security.dto.UserDto usuarioCreacion1) {\n\t\tthis.usuarioCreacion = usuarioCreacion1;\n\t}", "public int createUser(Users user) {\n\t\t int result = getTemplate().update(INSERT_users_RECORD,user.getUsername(),user.getPassword(),user.getFirstname(),user.getLastname(),user.getMobilenumber());\n\t\t\treturn result;\n\t\t\n\t\n\t}", "public void crearUsuario(UsuarioDTO usuarioNuevo) throws Exception;", "public long create_user(User user)\r\n\t{ \r\n\t long id = 0; //id de la tabla user (único) \r\n\r\n\t try \r\n\t { \r\n\t iniciaOperacion(); \r\n\t id = (Long)sesion.save(user); //metodo para guardar cliente (del objeto hibernate.sesion) \r\n\t tx.commit(); \r\n\t }catch(HibernateException he) \r\n\t { \r\n\t manejaExcepcion(he);\r\n\t throw he; \r\n\t }finally \r\n\t { \r\n\t sesion.close(); \r\n\t } \r\n\t return id; \r\n\t}", "User createUser();", "public User createUser() {\n printer.println(\"Welcome! Enter you name and surname:\");\n printer.println(\"Name:\");\n String name = input.nextString();\n printer.println(\"Surname:\");\n String surname = input.nextString();\n return new User(name, surname);\n }", "public static void createMysqlUser(Eleve e) {\n Session session = HibernateUtils.getSessionFactory().openSession();\r\n String SQLRequest = \"CREATE USER '\" + e.getAbreviation() + \"'@'%' IDENTIFIED BY '\" + e.getPwd() + \"'; \";\r\n System.out.println(SQLRequest);\r\n session.beginTransaction();\r\n session.createSQLQuery(SQLRequest).executeUpdate();\r\n session.getTransaction().commit();\r\n session.close();\r\n\r\n }", "protected void accionUsuario() {\n\t\t\r\n\t}", "boolean registrarUsuario(Usuario usuario) throws Exception;", "public void setupUser() {\n }", "void registerUser(User newUser);", "@Override\n\tpublic void create(User user) {\n\t\t\n\t}", "@RequestMapping(\"/createnewuser\")\r\n\tpublic ModelAndView userCreated(@ModelAttribute(\"rg\") Register reg) {\r\n\t\t\r\n\t\tBigInteger num = reg.getMb_no();\r\n\t\tSystem.out.println(\"mbno=\"+num.toString());\r\n\t\t//Doing the entry of New User in Spring_Users table\r\n\t\t\r\n\t\tString username = reg.getEmail_id();\r\n\t\tString password = reg.getPassword();\r\n\t\tSpringUsers su = new SpringUsers();\r\n\t\tsu.setUsername(username);\r\n\t\tsu.setPassword(password);\r\n\t\tsu.setEnabled(1);\r\n\t\tSystem.out.println(\"username=\"+username);\r\n\t\tSystem.out.println(\"password=\"+password);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tString r = reg.getUser_type();\r\n\t\t\r\n\t\t//if(r.equals(\"ROLE_INDIVIDUAL\"))\r\n\t\t\t//return new ModelAndView(\"individualhomepage\");\r\n\t\t//if(r.equals(\"ROLE_BROKER\"))\r\n\t//\t\treturn new ModelAndView(\"brokerhomepage\");\r\n\t\t//if(r.equals(\"ROLE_BUILDER\"))\r\n\t\t//\treturn new ModelAndView(\"builderhomepage\");\r\n\t\t\r\n\t//\tint i = susvc.entryOfNewUser(su);\r\n\t\t\r\n\t\tint j = regsvc.registerNewUser(reg);\r\n\t\t \r\n\t\treturn new ModelAndView(\"usercreated\");\r\n\r\n\t}", "Human_User createHuman_User();", "@Override\r\n\tpublic Utilisateur addUser() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic String createUser(User users) {\n\t\tuserRepository.save(users);\n\t\treturn \"Save Successful\";\n\t}", "public void registrar() {\n try {\r\n do {\r\n //totalUsuarios = this.registraUnUsuario(totalUsuarios);\r\n this.registraUnUsuario();\r\n } while (!this.salir());\r\n } catch (IOException e) {\r\n flujoSalida.println(\"Error de entrada/salida, finalizará la aplicación.\");\r\n }\r\n flujoSalida.println(\"Total usuarios registrados: \"+totalUsuarios);\r\n }", "private void registerUser() {\n\n // Get register name\n EditText mRegisterNameField = (EditText) findViewById(R.id.register_name_field);\n String nickname = mRegisterNameField.getText().toString();\n\n // Get register email\n EditText mRegisterEmailField = (EditText) findViewById(R.id.register_email_field);\n String email = mRegisterEmailField.getText().toString();\n\n // Get register password\n EditText mRegisterPasswordField = (EditText) findViewById(R.id.register_password_field);\n String password = mRegisterPasswordField.getText().toString();\n\n AccountCredentials credentials = new AccountCredentials(email, password);\n credentials.setNickname(nickname);\n\n if (DataHolder.getInstance().isAnonymous()) {\n credentials.setOldUsername(DataHolder.getInstance().getUser().getUsername());\n }\n\n sendRegistrationRequest(credentials);\n }", "public void createUser() {\n try {\n conn = dao.getConnection();\n\n ps = conn.prepareStatement(\"INSERT INTO Users(username, password) VALUES(?, ?)\");\n ps.setString(1, this.username);\n ps.setString(2, this.password);\n\n ps.execute();\n\n ps.close();\n conn.close();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public void insertUser() {}", "@Override\n public ApiResponse createUser(SignupDto signupDto){\n var userRole = this.roleDAO.findByName(RoleEnum.USER);\n Set<Role> userRoles = new HashSet<Role>(Collections.singletonList(userRole.get()));\n\n Person newPerson = new Person();\n newPerson.setEmail(signupDto.getUsername());\n newPerson.setFirstName(signupDto.getFirstName());\n newPerson.setLastName(signupDto.getLastName());\n newPerson.setRoles(userRoles);\n\n // Encriptamos la contraseña que nos mando el usuario\n var encryptedPassword = this.passwordEncoder.encode(signupDto.getPassword());\n newPerson.setPassword(encryptedPassword);\n\n this.personDAO.save(newPerson);\n\n return new ApiResponse(true, \"Usuario creado\");\n\n }", "public String createUserX(String[] userInfo){\r\n\t\tString message=\"\";\r\n\t\tboolean ctrl=false;\r\n\r\n\t\tif(user[(user.length -1)]!=null){\r\n\t\t\tmessage = \" *Lo sentimos. Se ha alcanzado nuestro MAXIMO numero de USUARIOS*\";\r\n\t\t\tctrl=true; //As the entire users' arraylist is full, it is unnecessary to run the for\r\n\t\t}\r\n\t\tfor(int i=0; i<user.length && !ctrl; i++){\r\n\t\t\tif(user[i]==null){\r\n\t\t\t\tuser[i]= new User(userInfo[0], userInfo[1], userInfo[2]);\r\n\t\t\t\tctrl=true;\r\n\t\t\t\tmessage = \" *Se ha creado el usuario*\";\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn message;\r\n\t}", "public ResultadoDTO crearUsuario(UsuarioDTO UsuarioDTO)throws EntityExistsException, IllegalArgumentException;", "public static RegisterResult register(RegisterRequest r) {\n\n User new_user = new User(UUID.randomUUID().toString(), r.userName, r.password, r.email,\n r.firstName, r.lastName, r.gender);\n\n RegisterResult result = new RegisterResult();\n\n User test_user = UserDao.getUser(r.userName);\n if (test_user != null && !test_user.userName.equals(\"\"))\n {\n result.message = \"Error: Username already taken by another user\";\n result.success = false;\n return result;\n }\n\n result.authToken = UUID.randomUUID().toString();\n AuthTokenDao.updateToken(r.userName, result.authToken);\n\n Person p = new Person(new_user.personID, r.userName, r.firstName, r.lastName, r.gender);\n PersonDao.addPerson(p);\n\n result.userName = r.userName;\n result.personID = new_user.personID;\n UserDao.addUser(new_user);\n\n // Generate 4 generations of ancestry\n GenerateData.generateGenerations(r.userName, 4);\n\n result.success = true;\n\n return result;\n }", "private void metodoSalvarUsuarioFirebase(final Usuarios variavelClasseUsuarios) {\n\n refAutenticacaofb = ConfiguracaoFirebase.metodoAutenticacaoFirebase();\n refAutenticacaofb.createUserWithEmailAndPassword(variavelClasseUsuarios.getEmail(),\n variavelClasseUsuarios.getSenha()).addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n\n if(task.isSuccessful()){\n\n idUsuario = task.getResult().getUser().getUid();\n variavelClasseUsuarios.setId(idUsuario);\n variavelClasseUsuarios.salvarUsuario();\n\n if(pegarTipoUsuarioSwitch() == \"Cliente\"){\n\n startActivity(new Intent(CadastroUsuario.this, Home.class));\n finish();\n Toast.makeText(CadastroUsuario.this, \"Usuário salvo com sucesso\", Toast.LENGTH_LONG).show();\n }else{\n\n startActivity(new Intent(CadastroUsuario.this, PainelEmpresa.class));\n finish();\n Toast.makeText(CadastroUsuario.this, \"Empresa inserida com sucesso!\", Toast.LENGTH_LONG).show();\n }\n\n\n }\n\n\n\n }\n });\n\n }", "UserCreateResponse createUser(UserCreateRequest request);", "public Person createAdminUser(Register entity) {\t\t\n\t\tPerson person = new Person();\n\t\tif(!searchPersonNew(entity)) {\t\t\t\n\t\t\tperson = factory.createPerson(entity);\t\t\t\t\t\t\n\t\t\tcreate(person);\t\t\t\n\t\t}\t\t\n\t\treturn person;\n\t}", "private void registerUser()\n {\n /*AuthService.createAccount takes a Consumer<Boolean> where the result will be true if the user successfully logged in, or false otherwise*/\n authService.createAccount(entryService.extractText(namedFields), result -> {\n if (result.isEmpty()) {\n startActivity(new Intent(this, DashboardActivity.class));\n } else {\n makeToast(result);\n formContainer.setAlpha(1f);\n progressContainer.setVisibility(View.GONE);\n progressContainer.setOnClickListener(null);\n }\n });\n }", "@FXML\n\tpublic void createUser(ActionEvent event) {\n\t\tString empty = \"\";\n\t\tString name = txtUserNames.getText();\n\t\tString lastName = txtUserSurnames.getText();\n\t\tString id = txtUserId.getText();\n\t\tString username = txtUserUsername.getText();\n\t\tString password = PfUserPassword.getText();\n\n\t\tif (!name.equals(empty) && !lastName.equals(empty) && !id.equals(empty) && !username.equals(empty)\n\t\t\t\t&& !password.equals(empty)) {\n\t\t\tcreateSystemUser(name, lastName, id, username, password);\n\t\t\ttxtUserNames.setText(\"\");\n\t\t\ttxtUserSurnames.setText(\"\");\n\t\t\ttxtUserId.setText(\"\");\n\t\t\ttxtUserUsername.setText(\"\");\n\t\t\tPfUserPassword.setText(\"\");\n\t\t\t// labelUserMessage.setText(\"The user has been created\");\n\t\t} else if (name.equals(empty) && lastName.equals(empty) && id.equals(empty) && username.equals(empty)\n\t\t\t\t&& password.equals(empty)) {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\tdialog.setContentText(\"Todos los campos de texto deben ser llenados\");\n\t\t\tdialog.show();\n\t\t}\n\t}", "public void newUser(User user);", "@GET\r\n\t@Path(\"/createUser/{idRedSocial}/{token}/{idComuna}\")\r\n\t@Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})\r\n\tpublic CarData getNewUser(\r\n\t\t\t@PathParam(\"idRedSocial\") Long idRedSocial,\r\n\t\t @PathParam(\"token\") String token,\r\n\t\t @PathParam(\"idComuna\") Long idComuna) {\r\n\t\t\r\n\t\tCarData carData;\r\n\t\tjava.sql.Connection conn;\r\n\t\t\r\n\t\tcarData = null;\r\n\t\tconn = null;\r\n\t\t\r\n \ttry {\r\n \t\tlog.info(\"createUser input: \" + String.valueOf(idRedSocial) + \"/\" + token);\r\n \t\tconn = getConnection(true);\r\n\t\t\t\r\n\t\t\t// chequeos\r\n\t\t\t\r\n\t\t\t// quiza usuario existe....\r\n\t\t\t\r\n\t\t\tUsuario u = null;\r\n\t\t\t\r\n\t\t\tUsuarios us = new Usuarios(conn, idRedSocial, token, true);\r\n\t\t\t\r\n\t\t\tif (us.getUsuarios().isEmpty()) {\r\n\t\t\t\t\r\n\t\t\t\tconn.setAutoCommit(false);\r\n\t\t\t\t\r\n\t\t\t\tconn.setTransactionIsolation(Connection.TRANSACTION_READ_UNCOMMITTED);\r\n\t\t\t\t\r\n\t\t\t\tu = new Usuario();\r\n\t\t\t\t\r\n\t\t\t\tu.setIdComuna(idComuna);\r\n\t\t\t\t\r\n\t\t\t\tu.insert(conn);\r\n\t\t\t\t\r\n\t\t\t\tAutenticacion a = new Autenticacion();\r\n\t\t\t\t\r\n\t\t\t\ta.setIdRedSocial(idRedSocial);\r\n\t\t\t\ta.setToken(token);\r\n\t\t\t\ta.setIdUsuario(u.getId());\r\n\t\t\t\t\r\n\t\t\t\ta.insert(conn);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\tcarData = new CarData(conn, idRedSocial, token, true);\r\n\t\t\t\t\r\n\t\t\t\tInfoSincro is = new InfoSincro();\r\n\t\t\t\t\r\n\t\t\t\tis.setSentido((byte) InfoSincro.tipoSincro.SERVER_TO_PHONE.getCode());\r\n\t\t\t\tis.setUsuarioIdUsuario(u.getId());\r\n\t\t\t\tis.setFecha(InfoSincro.getTimeFromServer(conn));\r\n\t\t\t\t\r\n\t\t\t\tis.insert(conn);\r\n\t\t\t\t\r\n\t\t\t\tconn.commit();\r\n\r\n\t\t\t}\t\t\t\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tconn.close();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\tlog.error(org.apache.commons.lang.exception.ExceptionUtils.getStackTrace(e));\r\n\t\t\t}\r\n\r\n\t\t\tconn = null;\r\n\t\t\t\r\n\t\t\tlog.info(\"createUser output: \" + carData.toString());\r\n\r\n \t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tlog.error(org.apache.commons.lang.exception.ExceptionUtils.getStackTrace(e));\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tlog.error(org.apache.commons.lang.exception.ExceptionUtils.getStackTrace(e));\r\n\t\t} catch (InvalidFileFormatException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tlog.error(org.apache.commons.lang.exception.ExceptionUtils.getStackTrace(e));\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tlog.error(org.apache.commons.lang.exception.ExceptionUtils.getStackTrace(e));\r\n\t\t} catch (NamingException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tlog.error(org.apache.commons.lang.exception.ExceptionUtils.getStackTrace(e));\r\n\t\t} finally {\r\n\t\t\tif (conn != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tconn.rollback();\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\tlog.error(org.apache.commons.lang.exception.ExceptionUtils.getStackTrace(e));\r\n\t\t\t\t}\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tconn.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\tlog.error(org.apache.commons.lang.exception.ExceptionUtils.getStackTrace(e));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n \t\r\n \treturn carData;\r\n\t}", "public String getCreateUser()\r\n\t{\r\n\t\treturn createUser;\r\n\t}", "private void createUser(String Address, String Phone_number,String needy) {\n // TODO\n // In real apps this userId should be fetched\n // by implementing firebase auth\n if (TextUtils.isEmpty(userId)) {\n userId = mFirebaseDatabase.push().getKey();\n }\n\n com.glitch.annapurna.needy user = new needy(Address,Phone_number,needy);\n\n mFirebaseDatabase.child(userId).setValue(user);\n\n addUserChangeListener();\n }", "@Override\r\n\tpublic void agregarUsuario(Usuario u) { \r\n\t\t//Con esto se obtiene el usuario \r\n\t\t\r\n Usuario uBD = usuarioDao.obtenerPorNombreUsuario(u.getNombreusuario());\r\n\t\t\r\n\t\tif (uBD != null) //si este usuario ya existe en la base de datos\r\n\t\t\tthrow new BlogException(\"Ya existe un usuario con ese nombre de usuario\");\r\n\t\t\r\n\t\t usuarioDao.agregar(u); //sino se agrega, es el metodo generico \r\n\r\n\t}", "public void altaUsuario();", "public Long createUser(UserTo userTo) {\n\t\tuserTo = new UserTo();\n\t\tuserTo.setOrg_id(1L);\n\t\tuserTo.setUsername(\"Menlo\");\n\t\tuserTo.setEmail(\"[email protected]\");\n\t\tuserTo.setPassword(\"Menlo\");\n\t\tuserTo.setFirstname(\"Menlo_FName\");\n\t\tuserTo.setLastname(\"Menlo_LName\");\n\n\t\ttry {\n\t\t\tWebResource webResource = getJerseyClient(userOptixURL + \"CreateUser\");\n\t\t\tuserTo = webResource.type(MediaType.APPLICATION_JSON).post(UserTo.class, userTo);\n\t\t\tif(userTo != null && userTo.getOrg_id() != null) {\n\t\t\t\treturn userTo.getUser_id() ;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error in getting the response from REST call CreateUser : \"+e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "public void createUser(int usertype) {\n\t\tthePerson = PersonFactory.getPerson(usertype);\n\t}", "public UserAuthToken createUser(CreateUserRequest request);", "U getCreateby();", "CreateUserResult createUser(CreateUserRequest createUserRequest);", "public void userSignup(String email_addr, String user_pw){\n\n String uuid_str = UUID.randomUUID().toString().replaceAll(\"-\", \"\");\n uuid_str = uuid_str.substring(0, 5);\n int uuid = Integer.parseInt(uuid_str);\n UserProfile new_user = new UserProfile(uuid, email_addr, user_pw);\n userDataAccessService.storeUserInfo(new_user.getUser_id(), new_user.getEmail_addr(), new_user.getUser_pw());\n\n }", "String registerUser(User user);", "public String guardarUsuario() {\n\t\terror=\"\";\n\t\tUsuario nuevoUsuario = new Usuario();\n\t\tnuevoUsuario.setPassword(password);\n\t\tnuevoUsuario.setEmail(email);\n\t\tTokenGenerator miToken = new TokenGenerator();\n\t\tnuevoUsuario.setToken(miToken.generateToken());\n\t\t\n\t\tif(usuarioService.validaUsuarioEmail(nuevoUsuario)==true && usuarioService.validaUsuarioPassword(nuevoUsuario)==true && usuarioService.contraseñasComunes(nuevoUsuario)==true) {\n\t\t\terror=null;\n\t\t\tusuarioService.guardarUsuario(nuevoUsuario);//se guarda usuairo\n\t\t\tUsuario usuarioDb = usuarioService.buscarUsuarioPorEmailyContraseña(nuevoUsuario.getEmail(), nuevoUsuario.getPassword());\n\t\t\tif (usuarioDb != null) {\n\t\t\t\tString accion = \"Usuario \"+ usuarioDb.getEmail() + \" registrado.\";\n\t\t\t\tauditoriaService.registrarAuditoria(usuarioDb,accion);\n\t\t\t}\n\t\t\terror=\"Se envio un correo a su cuenta.\";\n\t\t\treturn \"index\";\n\t\t}\n\t\tUsuario usuarioDb = usuarioService.buscarUsuarioPorEmailyContraseña(nuevoUsuario.getEmail(), nuevoUsuario.getPassword());\n\t\tif(usuarioDb==null) {\n\t\t\tString accion = \"Error al registrar usuario \"+email;\n\t\t\tauditoriaService.registrarAuditoria(usuarioDb,accion);\n\t\t}\n\t\terror=\"Email o Contraseña no validos\";\n\t\treturn \"registro\";\n\t}", "public final synchronized String makeUser (User user) throws Exception {\r\n Marshaller marshaller = jaxbContext.createMarshaller(); \r\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n dbf.setNamespaceAware(true);\r\n DocumentBuilder documentBuilder = dbf.newDocumentBuilder();\r\n Document doc = documentBuilder.newDocument();\r\n marshaller.marshal(user, doc);\r\n DOMSource domSource = new DOMSource(doc);\r\n StringWriter writer = new StringWriter();\r\n StreamResult result = new StreamResult(writer);\r\n TransformerFactory tf = TransformerFactory.newInstance();\r\n Transformer transformer = tf.newTransformer();\r\n transformer.transform(domSource, result);\r\n String xmlString = writer.toString();\r\n // Now remove the processing instruction. This approach seems like a total hack.\r\n xmlString = xmlString.substring(xmlString.indexOf('>') + 1);\r\n return xmlString;\r\n }", "@Override\n\tpublic String createUser(UserType user) throws InvalidEntityException {\n\t\treturn null;\n\t}", "private User createUser(org.picketlink.idm.model.User picketLinkUser) {\n User user = new User(picketLinkUser.getLoginName());\n user.setFullName(picketLinkUser.getFirstName() + \" \" + picketLinkUser.getLastName());\n user.setShortName(picketLinkUser.getLastName());\n return user;\n }", "public void createSystemUser(String nam, String surnam, String id, String username, String password) {\n\t\ttry {\n\t\t\trestaurant.addUser(nam, surnam, id, username, password);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public String getCreateUser () {\r\n\t\treturn createUser;\r\n\t}", "@Override\n\t/*Método que va a ser utilizado en el momento en el que se vaya a registrar un usuario*/\n\tpublic String registrarusuario(String nombreusuario, String clave, String nombre, String apellidos, String email, float saldo, Boolean premium) {\n\t\tDBConnection con = new DBConnection();\n\t\tString mensaje=\"\"; //mensaje que se va a devolver al final de la funcion\n\t\tString sqlcomprobacionusuario=\"SELECT * from usuarios\"; //Se cojen todos los datos de los usuarios\n\t\tBoolean valido=true; //para ver si el usuario es válido\n\t\ttry {\n\t\t\tStatement st = con.getConnection().createStatement(); \n\t\t\tResultSet rscomprobacionusuario = st.executeQuery(sqlcomprobacionusuario);\n\t\t\twhile(rscomprobacionusuario.next()) {\n\t\t\t\tString nombre_usu= rscomprobacionusuario.getString(\"nombreusuario\");\n\t\t\t\tString correo= rscomprobacionusuario.getString(\"email\");\n\t\t\t\tif(nombre_usu.equals(nombreusuario) || correo.equals(email)) {\n\t\t\t\t\tvalido=false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t/*En caso de que el usuario sea válido se procederá a insertarlo en la BD como un nuevo usuario de la aplicación*/\n\t\t\tif(valido) {\n\t\t\t\tString sql =\"Insert into usuarios(nombreusuario,clave,nombre,apellidos,email,saldo,premium) VALUES('\" +nombreusuario+\"','\" +clave+\"','\" +nombre+\"','\"+apellidos+\"','\"+email+\"',\"+saldo+\",'\"+premium+\"')\";\n\t\t\t\tst.executeQuery(sql);\n\t\t\t\tst.close();\n\t\t\t\tmensaje=\"ok\"; //se establece el mensaje que se va a devolver como ok\n\t\t\t}else{\n\t\t\t\tmensaje=\"not ok\"; //mensaje pasa a ser not ok ya que el usuario no era valido\n\t\t\t\t}\n\t\t\t\n\t\t\treturn mensaje;\n\t\t\t}\n\t\t\tcatch(Exception e) {\n\t\t\t\treturn e.getMessage();\n\t\t\t}finally {\n\t\t\t\tcon.desconectar();\n\t\t\t}\n\t }", "public ResponseEntity<User> createUser(User user) {\n List<User> users=getAllUsers();\n boolean usernameIsUsed=false;\n\n\n for(User myUser : users){\n\n\n String username= myUser.getUsername();\n\n if(username.equals(user.getUsername())){\n usernameIsUsed=true;\n return ResponseEntity.badRequest().build();\n }\n\n\n }\n if(!usernameIsUsed){\n myUserDetailsService.addUser(user);\n return ResponseEntity.ok(user);\n }\n\n return null;\n }", "void createUser() throws SQLException {\n String name = regName.getText();\n String birthdate = regAge.getText();\n String username = regUserName.getText();\n String password = regPassword.getText();\n String query = \" insert into users (name, birthdate, username, password)\"\n + \" values (?, ?, ?, ?)\";\n\n DB.registerUser(name, birthdate, username, password, query);\n }", "@Test\n\tpublic void testCreateUser() {\n\t\tassertTrue(auctionSystem.createUser(\"toto\", \"Glen\", \"Fiddich\", RoleEnum.SELLER));\n\t\tassertTrue(auctionSystem.createUser(\"tata\", \"Johnnie\", \"Campbell\", RoleEnum.BUYER));\n\t\tassertTrue(auctionSystem.createUser(\"tutu\", \"Ballentine\", \"Darmore\", RoleEnum.SELLER_BUYER));\n\t}", "@Override\n\tpublic int create(Users user) {\n\t\tSystem.out.println(\"service:creating new user...\");\n\t\treturn userDAO.create(user);\n\t}", "public void onCreationEvent(UserCreateEvent event){\n user = new UserBean(event.getUser());\n }", "void addUser() throws NoSuchAlgorithmException\r\n\t{\r\n\t\tSystem.out.print(\"Create a user ID: \");\r\n\t\tString userIDinput = scan.next();\r\n\t\tSystem.out.print(\"Create a password: \");\r\n\t\tmakePassword(userIDinput, scan.next());\r\n\t}", "private void controladorUser(Controlador controlador){\n this.contUserCrearProyecto = controlador.getUserCrearProyecto();\n inicioUser.setControlCrearProyecto(contUserCrearProyecto);\n \n this.contUserCrearColectivo = controlador.getUserCrearColectivo();\n inicioUser.setControlCrearColectivo(contUserCrearColectivo);\n\n this.contInformes = controlador.getInformes();\n inicioUser.setControlSolicitarInformes(contInformes); \n \n this.contFiltrar = controlador.getFiltrar();\n inicioUser.setControlFiltrar(contFiltrar);\n\n this.contLimpiar = controlador.getLimpiarFiltro();\n inicioUser.setControlLimpiarFiltro(contLimpiar);\n }", "public void insereUsuario( Usuario usuario ) {\n\t\ttry {\n\t\t\t// le dados antigos\n\t\t\tArrayList<Usuario> usuarios = new ArrayList<Usuario>();\n\t\t\tusuarios = leUsuarios();\n\t\t\t\n\t\t\tFileOutputStream arq = new FileOutputStream(\"database/usuarios.dat\");\n\t\t\tObjectOutputStream out = new ObjectOutputStream(arq);\n\t\t\t\n\t\t\t// reescreve dados antigos\n\t\t\tboolean existe = false;\n\t\t\tfor ( int i = 0; i < usuarios.size() ; i++ ) {\n\t\t\t\tUsuario aux = usuarios.get(i);\n\t\t\t\t// Não cadastra usuário se login ou crm não for único\n\t\t\t\tif ( aux.getLogin().equals(usuario.getLogin()) || aux.getCrm().equals(usuario.getCrm()) ) {\n\t\t\t\t\texiste = true;\n\t\t\t\t}\n\t\t\t\tout.writeObject(aux);\n\t\t\t\tout.flush();\n\t\t\t}\n\t\t\t\n\t\t\t// insere novo usuário abaixo dos antigos usuários\n\t\t\tif ( !existe ) {\n\t\t\t\tUsuario aux = new Usuario(usuario.getNome(), usuario.getCrm(), \n\t\t\t\t\t\t\t\t\t\t\tusuario.getLogin(), usuario.getSenha());\n\t\t\t\tout.writeObject(aux);\n\t\t\t\tout.flush();\n\t\t\t\tSystem.out.println(\"Usuário cadastrado com sucesso\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Login ou CRM já cadastrada.\");\n\t\t\t}\n\t\t\t\t\n\t\t\tout.close();\t\n\t\t}\n\t\tcatch( IOException exc ) {\n\t\t\t\n\t\t\tSystem.out.println(\"Erro ao gravar arquivo.\");\n\t\t}\n\t}", "public boolean registrar(usuario usr) {\n\n PreparedStatement ps = null;\n Conectar ct = new Conectar();\n Connection con = ct.conexion();\n //INSEERTAR DENTRO DE LA TABLA TRABAJO LOS DATOS DE REGISTRO\n String sql = \"INSERT INTO trabajo (usuario, password, Email, id_tipo, Nombre) VALUES(?,?,?,?,?)\";\n\n try {\n ps = con.prepareStatement(sql);\n\n ps.setString(1, usr.getUsuario());\n\n ps.setString(2, usr.getPassword());\n\n ps.setString(3, usr.getEmail());\n\n ps.setInt(4, usr.getId_tipo());\n\n ps.setString(5, usr.getNombre());\n\n ps.execute();\n return true;\n\n } catch (SQLException ex) {\n Logger.getLogger(sqlUsuario.class.getName()).log(Level.SEVERE, null, ex);\n return false;\n }\n }", "@Override\r\n\tpublic boolean insertUsuario(Usuario user) {\n\t\treturn false;\r\n\t}", "public ec.com.smx.frameworkv2.security.dto.UserDto getUsuarioCreacion() {\n\t\treturn this.usuarioCreacion;\n\t}", "public long agregarUsuario(Usuario usuario) throws SQLException {\n PreparedStatement preSt = connection.prepareStatement(CREAR_USUARIO, Statement.RETURN_GENERATED_KEYS);\n\n preSt.setString(1, usuario.getNombre());\n preSt.setString(2, usuario.getProfesion());\n preSt.setString(3, usuario.getPassword());\n\n preSt.executeUpdate();\n\n ResultSet result = preSt.getGeneratedKeys();\n if (result.first()) {\n return result.getLong(1);\n }\n\n return -1;\n }", "public void popoulaRepositorioUsuarios(){\n Usuario usuario1 = new Usuario();\n usuario1.setUsername(\"EliSilva\");\n usuario1.setEmail(\"[email protected]\");\n usuario1.setSenha(\"123\");\n usuario1.setNome(\"Elineide Silva\");\n usuario1.setCPF(\"12345678\");\n\n\n\n Usuario usuario2 = new Usuario();\n usuario2.setUsername(\"gustavo\");\n usuario2.setEmail(\"[email protected]\");\n usuario2.setSenha(\"12345\");\n usuario2.setNome(\"Gustavo\");\n usuario2.setCPF(\"666\");\n\n Usuario usuario3 = new Usuario();\n usuario1.setUsername(\"peixe\");\n usuario1.setEmail(\"[email protected]\");\n usuario1.setSenha(\"1111\");\n usuario1.setNome(\"quem dera ser um peixe\");\n usuario1.setCPF(\"1111\");\n\n Usuario usuario4 = new Usuario();\n usuario1.setUsername(\"segundo\");\n usuario1.setEmail(\"[email protected]\");\n usuario1.setSenha(\"123\");\n usuario1.setNome(\"Elineide Silva\");\n usuario1.setCPF(\"12345678\");\n\n inserir(usuario1);\n inserir(usuario2);\n inserir(usuario3);\n inserir(usuario4);\n }", "private void NuevoUsuario(String IDFacebook, Usuarios nuevo)\n {\n final String szIDFacebook = IDFacebook;\n\n // Guardamos los datos del nombre del usuario\n Helpers.setNombre(getActivity(), nuevo.NOMBRE);\n\n // Datos de la solicitud\n cliente.post(getActivity(), Helpers.URLApi(\"nuevousuario\"), Usuarios.ToStringEntity(nuevo), \"application/json\", new AsyncHttpResponseHandler() {\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {\n super.onSuccess(statusCode, headers, responseBody);\n\n try\n {\n // Obtenemos el objeto JSON\n JSONObject objeto = Helpers.ResponseBodyToJSON(responseBody);\n\n // Si está OK\n if (objeto.isNull(\"Error\"))\n {\n // Guardamos el token del usuario\n Helpers.setTokenAcceso(getActivity(), objeto.getJSONObject(\"usuario\").getString(\"token\"));\n\n // Guardamos el nombre del usuario\n Helpers.setNombre(getActivity(), objeto.getJSONObject(\"usuario\").getString(\"nombre\"));\n\n // Subimos la foto del usuario\n GetPictureFacebook(szIDFacebook, objeto.getJSONObject(\"usuario\").getString(\"imagen\"));\n }\n else\n {\n // Mostramos la ventana de error\n Helpers.MostrarError(getActivity(), objeto.getString(\"Error\"));\n }\n } catch (JSONException ex) {\n // Mostramos la ventana de error\n Helpers.MostrarError(getActivity(), getString(R.string.notcreateuser));\n }\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable error) {\n // Mostramos la ventana de error\n Helpers.MostrarError(getActivity(), getString(R.string.notcreateuser));\n }\n });\n }", "public long addUser(String userId, String uName, String uDOB, String uGen, String uContact, String uPassword, String privs, int donar ) throws SQLException {\n open();\n ContentValues values = new ContentValues();\n values.put(Database.userId, userId);\n values.put(Database.uName, uName);\n values.put(Database.uDOB, uDOB);\n values.put(Database.uGender, uGen);\n values.put(Database.uContact, uContact);\n values.put(Database.uPassword, uPassword);\n values.put(Database.uPriviledge, privs);\n values.put(Database.uDonar, donar);\n long insertId = database.insert(Database.userTable, null,values);\n close();\n return insertId;\n }", "private void btnAgregarUsuarioActionPerformed(java.awt.event.ActionEvent evt) {\n String v_nombre=\" \";\n\n if(txtNombreAU.getText().length()==0){\n Utilidades.mensajeInformacion(\"Digite un nombre, por favor\", \"Informacion\");\n return;\n }\n v_nombre=txtNombreAU.getText(); \n //Valido la contrasenia\n if(txtContraseniaAU.getText().length()==0){\n Utilidades.mensajeInformacion(\"Es obligatorio ingresar una contraseña\", \"Informacion\");\n return;\n }\n if(!validarContraseniaUsuario(txtContraseniaAU.getText())){\n return;\n }\n String v_contrasenia=txtContraseniaAU.getText();\n //Valido nombre completo\n if(txtNombreCompletoAU.getText().length()==0){\n Utilidades.mensajeInformacion(\"Es obligatorio ingresar el nombre completo\", \"Informacion\");\n return;\n }\n String v_nombreCompleto=txtNombreCompletoAU.getText();\n \n //Valido que se escogio un valor para el cargo\n int v_cargo=0;\n //10 = Administrador, 20=Funcionario\n if(rbtnAdministradorAU.isSelected()){\n v_cargo=10;\n }else if(rbtnFuncionarioAU.isSelected()){\n v_cargo=20;\n }else{\n Utilidades.mensajeInformacion(\"Escoga un cargo\", \"Informacion\");\n return;\n }\n \n //Creo y agreggo un usuario dependiendo del cargo escogido (Administrador o funcionario)\n try{\n boolean agregado=false;\n if(v_cargo==10){\n Administrador nuevoUsuario=new Administrador(v_nombre, v_contrasenia, v_nombreCompleto, null);\n agregado = administrador.agregarUsuario(nuevoUsuario);\n\n } \n if(v_cargo==20){\n Funcionario nuevoUsuario=new Funcionario(v_nombre, v_contrasenia, v_nombreCompleto, null);\n agregado = administrador.agregarUsuario(nuevoUsuario);\n }\n\n\n if(agregado){\n Utilidades.mensajeExito(\"Se agrego el Usuario\", \"Agregacion Exitosa\");\n limpiarCamposAgregarUsuario();\n }else{\n Utilidades.mensajeError(\"El Usuario a agregar ya existe\", \"Error\");\n }\n\n }catch (IOException ex) {\n Logger.getLogger(Funcionario.class.getName()).log(Level.SEVERE, null, ex);\n Utilidades.mensajeAdvertencia(\"Se ha interrumpido la conexion con el servidor\", \"Error\");\n }\n \n }", "public void register(String form /* should be a Form from GUI */){\n String email = \"email\";\n String nome_completo = \"full_name\";\n Date data_nascimento = new Date(1996-10-21);\n String password = getMd5(\"password\");\n String nif = \"nif\";\n String morada = \"morada\";\n String telemovel = \"telemovel\";\n User user = new User(email);\n if (!user.exists()){\n user.setNome_completo(nome_completo);\n user.setData_nascimento(data_nascimento);\n user.setPassword(password);\n user.setNif(nif);\n user.setMorada(morada);\n user.setTelemovel(telemovel);\n user.setAdmin(FALSE);\n //System registers person\n //db.register(user)\n }\n }", "@Test\n public void testGetNewUser() throws Exception {\n UserMultiID umk = createRU(\"remote-user-\" + getRandomString());\n String idp = \"test-idp-\" + getRandomString();\n // create a new user.\n XMLMap map = getDBSClient().getUser(umk, idp);\n assert getDBSClient().hasUser(umk, idp);\n Identifier uid = BasicIdentifier.newID(map.get(userKeys.identifier()).toString());\n User user2 = getUserStore().get(uid);\n checkUserAgainstMap(map, user2);\n }", "public void addUserUI() throws IOException {\n System.out.println(\"Add user: id;surname;first name;username;password\");\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String line = reader.readLine();\n String[] a = line.split(\";\");\n User user = new User(a[1], a[2], a[3], a[4], \" \");\n user.setId(Long.parseLong(a[0]));\n try\n {\n User newUser = service.addUser(user);\n if(newUser != null)\n System.out.println(\"ID already exists for \" + user.toString());\n else\n System.out.println(\"User added successfully!\");\n }\n catch (ValidationException ex)\n {\n System.out.println(ex.getMessage());\n }\n catch (IllegalArgumentException ex)\n {\n System.out.println(ex.getMessage());\n }\n }" ]
[ "0.70780087", "0.7002394", "0.6890822", "0.688999", "0.6851866", "0.6835928", "0.6741145", "0.6706778", "0.6679745", "0.66711664", "0.66394836", "0.6512266", "0.64822996", "0.6464001", "0.6463955", "0.64431304", "0.6441072", "0.6414111", "0.6386283", "0.63781065", "0.63726133", "0.6365708", "0.6364437", "0.6364007", "0.63349885", "0.6313503", "0.6297282", "0.62963057", "0.6283629", "0.628013", "0.6276558", "0.62509817", "0.62462276", "0.6242793", "0.62371206", "0.6233041", "0.62316775", "0.622797", "0.6223207", "0.62096024", "0.62065476", "0.6200451", "0.61831605", "0.61620957", "0.6155246", "0.61529136", "0.61523306", "0.6151949", "0.61501455", "0.6145651", "0.6139089", "0.6136768", "0.6134641", "0.6129936", "0.6127683", "0.6126625", "0.61240846", "0.61209816", "0.6099965", "0.6095871", "0.6094811", "0.6089262", "0.60886437", "0.6086432", "0.60824686", "0.60824513", "0.60808986", "0.60808605", "0.60783935", "0.6065928", "0.60659266", "0.6063618", "0.6060721", "0.6056535", "0.60557914", "0.60496426", "0.60488224", "0.604589", "0.6031708", "0.60253364", "0.60190463", "0.6015663", "0.6014303", "0.601327", "0.6011914", "0.6011474", "0.6007253", "0.6006339", "0.59957653", "0.59833807", "0.59828764", "0.59799784", "0.59754485", "0.5962715", "0.59605086", "0.5959901", "0.59590906", "0.595901", "0.59498936", "0.5949279", "0.5946798" ]
0.0
-1
/ Create a table
public static void createTable(String name, String[] familys) throws Exception { Connection cn = ConnectionFactory.createConnection(conf); try { TableName tableName = TableName.valueOf(name); Admin admin = cn.getAdmin(); if (admin.tableExists(tableName)) { System.out.println("table already exists!"); } else { HTableDescriptor tableDesc = new HTableDescriptor(tableName); for (int i = 0; i < familys.length; i++) { tableDesc.addFamily(new HColumnDescriptor(familys[i])); } admin.createTable(tableDesc); System.out.println("create table " + tableName + " ok."); } } catch (IOException e) { e.printStackTrace(); } finally { if (cn != null) cn.close(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TABLE createTABLE();", "Table createTable();", "tbls createtbls();", "public void doCreateTable();", "public TableCreation(Table table) {\n this.table = table;\n }", "public void creatTable(String tableName,LinkedList<String> columnsName,LinkedList<String> columnsType );", "public void createTable() throws LRException\n\t{\n\t\tgetBackground();\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\t// Create a new (empty) record\n\t\tcreate(new Hashtable(),myData);\n\t\tif (myData.record==null) throw new LRException(DataRMessages.nullRecord(getName()));\n\t\ttry\n\t\t{\n\t\t\tbackground.newTransaction();\n\t\t\tmyData.record.createNewTable(background.getClient(),true);\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "private void createTable() {\n\t\t// Tao dataModel & table \n\t\tdataModel = new DefaultTableModel(headers, 0);\n\t\ttable.setModel(dataModel);\n\t\t\n\t\tnapDuLieuChoBang();\n\t}", "public String createTable() {\n\n String statement = \"CREATE TABLE \" + tableName + \"( \";\n\n //go through INTEGER, FLOAT, TEXT columns\n Iterator iterator = Iterables.filter(columns.entrySet(), entry -> entry.getValue().getType() instanceof String).iterator();\n\n while (iterator.hasNext()) {\n Map.Entry<Element, FieldData> fieldDataEntry = (Map.Entry<Element, FieldData>) iterator.next();\n statement += fieldDataEntry.getValue().createColumn() + \",\";\n }\n\n return (new StringBuilder(statement).replace(statement.length() - 1, statement.length(), \"\").toString() + \")\").toUpperCase();\n }", "public String createTable(){\r\n return \"CREATE TABLE Doctor \" +\r\n \"(idDoctor decimal primary key, \" +\r\n \"firstNameDoctor char(14), \" +\r\n \"lastNameDoctor char(14), \" +\r\n \"costPerVisit integer,\" +\r\n \"qualification varchar(32))\";\r\n }", "public void testCreateTable() {\n LOG.info(\"Entering testCreateTable.\");\n\n // Specify the table descriptor.\n HTableDescriptor htd = new HTableDescriptor(tableName);\n\n // Set the column family name to info.\n HColumnDescriptor hcd = new HColumnDescriptor(\"info\");\n\n // Set data encoding methods,HBase provides DIFF,FAST_DIFF,PREFIX\n // and PREFIX_TREE\n hcd.setDataBlockEncoding(DataBlockEncoding.FAST_DIFF);\n\n // Set compression methods, HBase provides two default compression\n // methods:GZ and SNAPPY\n // GZ has the highest compression rate,but low compression and\n // decompression effeciency,fit for cold data\n // SNAPPY has low compression rate, but high compression and\n // decompression effeciency,fit for hot data.\n // it is advised to use SANPPY\n hcd.setCompressionType(Compression.Algorithm.SNAPPY);\n\n htd.addFamily(hcd);\n\n Admin admin = null;\n try {\n // Instantiate an Admin object.\n admin = conn.getAdmin();\n if (!admin.tableExists(tableName)) {\n LOG.info(\"Creating table...\");\n admin.createTable(htd);\n LOG.info(admin.getClusterStatus());\n LOG.info(admin.listNamespaceDescriptors());\n LOG.info(\"Table created successfully.\");\n } else {\n LOG.warn(\"table already exists\");\n }\n } catch (IOException e) {\n LOG.error(\"Create table failed.\");\n } finally {\n if (admin != null) {\n try {\n // Close the Admin object.\n admin.close();\n } catch (IOException e) {\n LOG.error(\"Failed to close admin \", e);\n }\n }\n }\n LOG.info(\"Exiting testCreateTable.\");\n }", "public void createTable() {\n\t\tString QUERY = \"CREATE TABLE person (id INT PRIMARY KEY, name VARCHAR(32) NOT NULL, phoneNumber VARCHAR(18) NOT NULL)\";\n\t\ttry (Connection con = DriverManager.getConnection(URL, USER, PASSWORD);\n\t\t\t\tStatement stmt = con.createStatement();) {\n\t\t\tstmt.executeUpdate(QUERY);\n\t\t} catch (SQLException e) {\n\t\t\tSystem.err.println(\"SQL Exception\");\n\t\t}\n\n\t}", "private void CreatTable() {\n String sql = \"CREATE TABLE IF NOT EXISTS \" + TABLE_NAME\n + \" (name varchar(30) primary key,password varchar(30));\";\n try{\n db.execSQL(sql);\n }catch(SQLException ex){}\n }", "@Override\n\tpublic String createTable() {\n\t\t\t\treturn \"CREATE TABLE history_table_view(id number(8) primary key not null ,sqltext text, pointid varchar2(1024), type varchar2(100))\";\n\t}", "public void createTable() {\r\n\t\tclient.createTable();\r\n\t}", "public static void createTable() {\n\n // Create statement\n Statement statement = null;\n try {\n statement = Database.getDatabase().getConnection().createStatement();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n // Attempt to create table\n try {\n statement.execute(\n \"CREATE TABLE \" + Constants.SANITATION_TABLE + \"(\" +\n \"requestID INT PRIMARY KEY GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1),\" +\n \"nodeID VARCHAR(100) References \" + Constants.LOCATION_TABLE + \" (nodeID), \" +\n \"priority VARCHAR(10), \" +\n \"status VARCHAR(100), \" +\n \"description VARCHAR(100), \" +\n \"requesterID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"requestTime TIMESTAMP, \" +\n \"servicerID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"claimedTime TIMESTAMP, \" +\n \"completedTime TIMESTAMP, \" +\n \"CONSTRAINT priority_enum CHECK (priority in ('LOW', 'MEDIUM', 'HIGH')), \" +\n \"CONSTRAINT status_enum CHECK (status in ('INCOMPLETE', 'COMPLETE')))\"\n );\n } catch (SQLException | NullPointerException e) {\n e.printStackTrace();\n }\n }", "private void createTable(Table table) {\n\t\t// Set up the table\n\t\ttable.setLayoutData(new GridData(GridData.FILL_BOTH));\n\n\t\t// Add the column (Task)\n\t\tTableColumn lTaskColumn = new TableColumn(table, SWT.NONE);\n\t\tlTaskColumn.setText(\"Task\");\n\n\t\t// Add the column (Operation)\n\t\tTableColumn lOperationColumn = new TableColumn(table, SWT.NONE);\n\t\tlOperationColumn.setText(\"Operation\");\n\n\t\t// Add the column (Duration)\n\t\tTableColumn lDurationColumn = new TableColumn(table, SWT.NONE);\n\t\tlDurationColumn.setText(\"Duration\");\n\n\t\t// Add the column (Timeout)\n\t\tTableColumn lTimeoutColumn = new TableColumn(table, SWT.NONE);\n\t\tlTimeoutColumn.setText(\"Timed Out\");\n\n\t\t// Add the column (TEF Result)\n\t\tTableColumn lResultColumn = new TableColumn(table, SWT.NONE);\n\t\tlResultColumn.setText(\"Build/TEF Result\");\n\n\t\t// Add the column (TEF RunWsProgram)\n\t\tTableColumn lTEFRunWsProgColumn = new TableColumn(table, SWT.NONE);\n\t\tlTEFRunWsProgColumn.setText(\"TEF RunWsProgram Result\");\n\n\t\t// Pack the columns\n\t\tfor (int i = 0, n = table.getColumnCount(); i < n; i++) {\n\t\t\tTableColumn lCol = table.getColumn(i);\n\t\t\tlCol.setResizable(true);\n\t\t\tlCol.setWidth(lCol.getText().length());\n\t\t\tlCol.pack();\n\t\t}\n\n\t\t// Turn on the header and the lines\n\t\ttable.setHeaderVisible(true);\n\t\ttable.setLinesVisible(true);\n\n\t}", "public void createNewTable() {\n // SQL statement for creating a new table\n String sql = \"CREATE TABLE IF NOT EXISTS card (\\n\"\n + \" id INTEGER PRIMARY KEY AUTOINCREMENT,\\n\"\n + \" number TEXT,\\n\"\n + \" pin TEXT,\\n\"\n + \" balance INTEGER DEFAULT 0\\n\"\n + \");\";\n\n try (Connection conn = DriverManager.getConnection(url);\n Statement stmt = conn.createStatement()) {\n // create a new table\n stmt.execute(sql);\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "private void createTable() throws Exception{\n Statement stm = this.con.createStatement();\n\n String query = \"CREATE TABLE IF NOT EXISTS \" + tableName +\n \"(name VARCHAR( 15 ) CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL ,\" +\n \" city VARCHAR( 15 ) CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL ,\" +\n \" phone VARCHAR( 15 ) NOT NULL, \" +\n \"PRIMARY KEY (phone) )\";\n stm.execute(query);\n }", "public void createTable(String tableName) {\n //SQL Statement\n String query = \"call aTable\";\n\n try {\n //connection\n stmt = con.createStatement();\n //execute query\n stmt.executeUpdate(query);\n System.out.println(\"\\n--Table \" + tableName + \" created--\");\n } catch (SQLException ex) {\n System.out.println(\"\\n--Query did not execute--\");\n ex.printStackTrace();\n }\n }", "TableInstance createTableInstance();", "public void createTable(String tableName) {\n db.execSQL(\"create table if not exists '\" + tableName.replaceAll(\"\\\\s\", \"_\") + \"' (\"\n + KEY_ROWID + \" integer primary key autoincrement, \"\n + KEY_QUESTION + \" string not null, \"\n + KEY_ANSWER + \" string not null);\");\n }", "private void createTransactionsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE transactions \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY, \"\n\t\t\t\t\t+ \"owner INT, amount DOUBLE, source BIGINT, sourceType VARCHAR(20), target BIGINT, targetType VARCHAR(20), comment VARCHAR(255), time BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table transactions\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of transactions table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "@Override\r\n public void createTable() {\n String sql = \"create table \" + TABLE_NAME + \"(\";\r\n sql += ID + \" INTEGER primary key,\";\r\n sql += NAME + \" VARCHAR(50),\";\r\n sql += LON + \" FLOAT(10,6),\";\r\n sql += LAT + \" FLOAT(10,6)\";\r\n sql += \")\";\r\n database.execSQL(sql);\r\n }", "FromTable createFromTable();", "private void createTables() throws SQLException\r\n {\r\n createTableMenuItems();\r\n createTableOrdersWaiting();\r\n }", "protected void constructTable(Logger l, Statement s, int run)\n throws SQLException{\n createTable(s, run);\n insertResults(l,s,run);\n }", "protected void constructTable(Logger l, Statement s, int run)\n throws SQLException{\n createTable(s, run);\n insertResults(l,s,run);\n }", "private void createTable() {\n try (Statement st = this.conn.createStatement()) {\n st.execute(\"CREATE TABLE IF NOT EXISTS users (user_id SERIAL PRIMARY KEY, name VARCHAR(100) NOT NULL, \"\n + \"login VARCHAR(100) UNIQUE NOT NULL, email VARCHAR(100) NOT NULL, createDate TIMESTAMP NOT NULL);\");\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public void create(Connection db) throws SQLException {\n if (tableName == null) {\n throw new SQLException(\"Table Name not specified\");\n }\n\n Statement st = db.createStatement();\n\n if (dbType == DatabaseUtils.POSTGRESQL) {\n if (hasSequence()) {\n st.executeUpdate(\"CREATE SEQUENCE \" + sequenceName);\n }\n }\n\n StringBuffer sql = new StringBuffer();\n sql.append(\"CREATE TABLE \" + tableName + \" (\");\n\n String primaryKey = \"\";\n Iterator fields = columns.iterator();\n while (fields.hasNext()) {\n DatabaseColumn thisColumn = (DatabaseColumn) fields.next();\n if (thisColumn.isPrimaryKey()) {\n primaryKey = thisColumn.getName();\n sql.append(thisColumn.getCreateSQL(dbType, sequenceName));\n } else {\n sql.append(thisColumn.getCreateSQL(dbType));\n }\n if (fields.hasNext()) {\n sql.append(\",\");\n }\n }\n if (dbType == DatabaseUtils.ORACLE) {\n sql.append(\", PRIMARY KEY (\" + primaryKey + \")\");\n }\n sql.append(\");\");\n st.executeUpdate(sql.toString());\n st.close();\n }", "public void createNewTable() {\n String dropOld = \"DROP TABLE IF EXISTS card;\";\n\n // SQL statement for creating a new table\n String sql = \"CREATE TABLE IF NOT EXISTS card (\\n\"\n + \"id INTEGER PRIMARY KEY AUTOINCREMENT, \\n\"\n + \"number TEXT, \\n\"\n + \"pin TEXT,\\n\"\n + \"balance INTEGER DEFAULT 0\"\n + \");\";\n\n try (Connection connection = connect();\n Statement stmt = connection.createStatement()) {\n\n //drop old table\n stmt.execute(dropOld);\n\n //create a new table\n stmt.execute(sql);\n } catch (SQLException e) {\n System.out.println(\"Exception3: \" + e.getMessage());\n }\n }", "public void createDepartamentoTable() throws SQLException {\n\t\tString sql = \"create table departamento (piso int, depto varchar(100), expensas double,\ttitular varchar(100))\";\n\t\tConnection c = DBManager.getInstance().connect();\n\t\tStatement s = c.createStatement();\n\t\ts.executeUpdate(sql);\n\t\tc.commit();\n\t\t\t\n\t}", "public void createNewTable() throws WoodsException{\n\t\t\tuserTable = new Table(tableName);\n\t\t\tDatabase.get().storeTable(tableName, userTable);\n\t\t}", "void create(DataTableDef def) throws IOException;", "private void createTable() {\n table = new Table();\n table.bottom();\n table.setFillParent(true);\n }", "private void createTable() {\n\t\tfreqTable = new TableView<>();\n\n\t\tTableColumn<WordFrequency, Integer> column1 = new TableColumn<WordFrequency, Integer>(\"No.\");\n\t\tcolumn1.setCellValueFactory(new PropertyValueFactory<WordFrequency, Integer>(\"serialNumber\"));\n\n\t\tTableColumn<WordFrequency, String> column2 = new TableColumn<WordFrequency, String>(\"Word\");\n\t\tcolumn2.setCellValueFactory(new PropertyValueFactory<WordFrequency, String>(\"word\"));\n\n\t\tTableColumn<WordFrequency, Integer> column3 = new TableColumn<WordFrequency, Integer>(\"Count\");\n\t\tcolumn3.setCellValueFactory(new PropertyValueFactory<WordFrequency, Integer>(\"count\"));\n\n\t\tList<TableColumn<WordFrequency, ?>> list = new ArrayList<TableColumn<WordFrequency, ?>>();\n\t\tlist.add(column1);\n\t\tlist.add(column2);\n\t\tlist.add(column3);\n\n\t\tfreqTable.getColumns().addAll(list);\n\t}", "TableFull createTableFull();", "private void createStressTestControlTable() {\n Column runId = new Column(\"RUN_ID\");\n runId.setMappedType(\"INTEGER\");\n runId.setPrimaryKey(true);\n runId.setRequired(true);\n Column clientCommitSleepMs = new Column(\"CLIENT_COMMIT_SLEEP_MS\");\n clientCommitSleepMs.setMappedType(\"BIGINT\");\n Column clientCommitRows = new Column(\"CLIENT_COMMIT_ROWS\");\n clientCommitRows.setMappedType(\"BIGINT\");\n Column serverCommitSleepMs = new Column(\"SERVER_COMMIT_SLEEP_MS\");\n serverCommitSleepMs.setMappedType(\"BIGINT\");\n Column serverCommitRows = new Column(\"SERVER_COMMIT_ROWS\");\n serverCommitRows.setMappedType(\"BIGINT\");\n Column payloadColumns = new Column(\"PAYLOAD_COLUMNS\");\n payloadColumns.setMappedType(\"INTEGER\");\n Column initialSeedSize = new Column(\"INITIAL_SEED_SIZE\");\n initialSeedSize.setMappedType(\"BIGINT\");\n Column duration = new Column(\"DURATION_MINUTES\");\n duration.setMappedType(\"BIGINT\");\n\n Table table = new Table(STRESS_TEST_CONTROL, runId, clientCommitSleepMs, clientCommitRows, serverCommitSleepMs, serverCommitRows,\n payloadColumns, initialSeedSize, duration);\n engine.getDatabasePlatform().createTables(true, true, table);\n }", "boolean createTable();", "public void create_table(String table_name, List<String> attributes) {\n //throw error if table already exists\n if (get_table_names().contains(table_name) && !table_name.equals(\"relationship\")) {\n throw new RuntimeException(\"Table with this name already exists.\");\n }\n //throw error if no name is given\n if (table_name.isEmpty()) {\n throw new RuntimeException(\"Table name can not be empty.\");\n }\n //throw error if no attributes are given\n if (attributes.isEmpty()) {\n throw new RuntimeException(\"Table needs at least one attribute.\");\n }\n\n StringBuilder stringBuilder = new StringBuilder(\"create table if not exists \");\n stringBuilder.append(table_name);\n //autoincrement handles the correct incrementation of the primary key\n stringBuilder.append(\" (id integer primary key autoincrement, \");\n for (String attribute : attributes) {\n stringBuilder.append(attribute);\n stringBuilder.append(\" varchar, \"); //values are varchar since the user inputs text\n }\n stringBuilder.delete(stringBuilder.length() - 2, stringBuilder.length());\n stringBuilder.append(\")\");\n\n String sql = stringBuilder.toString();\n\n execute_statement(sql, false);\n }", "private void createStocksTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE stocks \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY, \" + \"owner INT, \"\n\t\t\t\t\t+ \"shareAmount INT, \" + \"purchasePrice DOUBLE, \" + \"symb VARCHAR(10), \"\n\t\t\t\t\t+ \"timePurchased BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table stocks\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of stocks table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "public void createNewTable(String dbName, String tableName) {\r\n\t\t// SQL statement for creating a new table\r\n\t\tString sql = \"CREATE TABLE IF NOT EXISTS \" + tableName + \" (\\n\"\r\n\t\t\t\t+ \"id integer PRIMARY KEY,\\n\"\r\n\t\t\t\t+ \"first_name VARCHAR(20) NOT NULL,\\n\"\r\n\t\t\t\t+ \"last_name VARCHAR(20) NOT NULL,\\n\"\r\n\t\t\t\t+ \"manager_id integer NOT NULL,\\n\"\r\n\t\t\t\t+ \"join_date DATE NOT NULL,\\n\"\r\n\t\t\t\t+ \"billable_hours double NOT NULL);\";\r\n\t\t\r\n\t\ttry {\r\n\t\t\tConnection conn = this.connect(dbName);\t\t\t// open connection\r\n\t\t\t\r\n\t\t\tStatement stmt = conn.createStatement();\r\n\t\t\t\r\n\t\t\t// create a new table using prepared sql statement\r\n\t\t\tstmt.execute(sql);\r\n\t\t\tSystem.out.println(\"Executed create table statement\");\r\n\t\t\t\r\n\t\t\tconn.close();\t\t\t\t\t\t\t\t\t// close connection\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t}", "@Override\n public void createUsersTable() {\n\n\n Session session = sessionFactory.openSession();\n Transaction transaction = session.beginTransaction();\n session.createSQLQuery(\"CREATE TABLE IF NOT EXISTS Users \" +\n \"(Id BIGINT PRIMARY KEY AUTO_INCREMENT, FirstName TINYTEXT , \" +\n \"LastName TINYTEXT , Age TINYINT)\").executeUpdate();\n transaction.commit();\n session.close();\n\n\n }", "Table8 create(Table8 table8);", "public synchronized void criarTabela(){\n \n String sql = \"CREATE TABLE IF NOT EXISTS CPF(\\n\"\n + \"id integer PRIMARY KEY AUTOINCREMENT,\\n\"//Autoincrement\n// + \"codDocumento integer,\\n\"\n + \"numCPF integer\\n\"\n + \");\";\n \n try (Connection c = ConexaoJDBC.getInstance();\n Statement stmt = c.createStatement()) {\n // create a new table\n stmt.execute(sql);\n stmt.close();\n c.close();\n } catch (SQLException e) {\n System.err.println(e.getClass().getName() + \": \" + e.getMessage()); \n// System.out.println(e.getMessage());\n }\n System.out.println(\"Table created successfully\");\n }", "private MyTable generateTable()\n\t{\n\t\t//this creates the column headers for the table\n\t\tString[] titles = new String[] {\"Name\"};\n\t\t//fields will store all of the entries in the database for the GUI\n\t\tArrayList<String[]> fields = new ArrayList<String[]>();\n\t\tfor (food foodStuff: items) //for each element in items do the following\n\t\t{\n\t\t\t//creates a single row of the table\n\t\t\tString[] currentRow = new String[1]; //creates an array for this row\n\t\t\tcurrentRow[1] = foodStuff.getName(); //sets this row's name\n\t\t\tfields.add(currentRow); //adds this row to the fields ArrayList\n\t\t}\n\t\t//builds a table with titles and a downgraded fields array\n\t\tMyTable builtTable = new MyTable(fields.toArray(new String[0][1]), titles);\n\t\treturn builtTable; // return\n\t}", "public void createTapTable(TableConfig tableConfig) throws ConfigurationException;", "@Override\r\n public Db_db createTable (Db_table table)\r\n {\r\n Db_db db = null;\r\n String query = \"CREATE TABLE IF NOT EXISTS \"+ table.getName() + \" (\"; \r\n String primaryKeyName = null;\r\n Set<Map.Entry<String, Db_tableColumn>> tableEntries;\r\n List<String> listOfUniqueKey = Lists.newArrayList();\r\n \r\n if(curConnection_ != null)\r\n {\r\n try\r\n {\r\n tableEntries = table.getEntrySet();\r\n for(Map.Entry<String, Db_tableColumn> entry: tableEntries)\r\n {\r\n Db_tableColumn entryContent = entry.getValue();\r\n \r\n if(entryContent.isPrimary() && primaryKeyName == null)\r\n {\r\n primaryKeyName = entryContent.getName();\r\n }\r\n else if(entryContent.isPrimary() && primaryKeyName != null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(itsAttributeMapper_ == null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(entryContent.isUnique())\r\n {\r\n listOfUniqueKey.add(entryContent.getName());\r\n }\r\n \r\n String mappedAttribute = this.itsAttributeMapper_.MapAttribute(entryContent.getAttributeName());\r\n if(entryContent.getAttribute().isEnum())\r\n {\r\n mappedAttribute += entryContent.getAttribute().buildEnumValueListString();\r\n }\r\n query += entryContent.getName() + \" \" + mappedAttribute \r\n + (entryContent.isAutoIncreasmnet()?\" AUTO_INCREMENT \":\" \")\r\n + (entryContent.isUnique()?\" UNIQUE, \": \", \");\r\n }\r\n \r\n query += \"PRIMARY KEY (\" + primaryKeyName + \"));\";\r\n try (Statement sm = curConnection_.createStatement()) {\r\n sm.executeUpdate(query);\r\n db = this.curDb_;\r\n }\r\n \r\n }catch(NumberFormatException e){System.out.print(e);}\r\n catch(SQLException e){System.out.print(query);this.CurConnectionFailed();}\r\n }\r\n return db;\r\n }", "public static void createEmployees() {\n Connection con = getConnection();\n\n String createString;\n createString = \"create table Employees (\" +\n \"Employee_ID INTEGER, \" +\n \"Name VARCHAR(30))\";\n try {\n stmt = con.createStatement();\n stmt.executeUpdate(createString);\n stmt.close();\n con.close();\n\n } catch (SQLException ex) {\n System.err.println(\"SQLException: \" + ex.getMessage());\n }\n JOptionPane.showMessageDialog(null, \"Employees Table Created\");\n }", "BTable createBTable();", "public void CreateTable(String nameTable) throws SQLException {\n\n String FEATURE_DB_SQL = \"CREATE TABLE IF NOT EXISTS \" + nameTable + \"(id INT NOT NULL AUTO_INCREMENT, \"\n + FEATURE_DB_TEXTFEATURE + \" VARCHAR(255), \" + FEATURE_DB_ELO + \" INT, \" + FEATURE_DB_MMR + \" INT,\"\n + FEATURE_DB_AUTHOR + \" VARCHAR(255),\"\n +\" PRIMARY KEY ( id ))\";\n\n statement = conn.createStatement();\n statement.executeUpdate(FEATURE_DB_SQL);\n }", "protected abstract void initialiseTable();", "String createNewTable(String name,\n String[] colNames, String[] colTypes) {\n\n try {\n if (tables.get(name) != null) {\n return \"ERROR: Table already exists\";\n\n }\n Table t = new Table(name, colNames, colTypes);\n tables.put(name, t);\n\n return \"\";\n } catch (NullPointerException e) {\n return \"ERROR: Malformed Table\";\n } catch (IllegalArgumentException e) {\n return \"ERROR: Malformed Table\";\n }\n\n\n }", "void initTable();", "public void createTable(){\r\n String tableStudent = \"CREATE TABLE tableStudent (\"+\r\n \"studentId INT primary key,\"+\"studentName TEXT,\"+\r\n \"className TEXT)\";\r\n db.execSQL(tableStudent);\r\n }", "public CreateTable(String table, String[] attributes) {\n\t\ttry {\n\t\t\tthis.table = table;\n\t\t\tfor(int i = 0; i < attributes.length; i++) {\n\t\t\t\tthis.attributes.add(attributes[i]);\n\t\t\t}\n\t\t\tthis.createTable();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void createTables(){\n Map<String, String> name_type_map = new HashMap<>();\n List<String> primaryKey = new ArrayList<>();\n try {\n name_type_map.put(KEY_SINK_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_DETAIL, MyDatabase.TYPE_VARCHAR);\n primaryKey.add(KEY_SINK_ADDRESS);\n myDatabase.createTable(TABLE_SINK, name_type_map, primaryKey, null);\n }catch (MySQLException e){ //数据表已存在\n e.print();\n }\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_DETAIL, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_ADDRESS,MyDatabase.TYPE_VARCHAR);\n primaryKey.clear();\n primaryKey.add(KEY_NODE_PARENT);\n primaryKey.add(KEY_NODE_ADDRESS);\n myDatabase.createTable(TABLE_NODE, name_type_map, primaryKey, null);\n }catch (MySQLException e){\n e.print();\n }\n\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_DATA_TIME, MyDatabase.TYPE_TIMESTAMP);\n name_type_map.put(KEY_DATA_VAL, MyDatabase.TYPE_FLOAT);\n primaryKey.clear();\n primaryKey.add(KEY_DATA_TIME);\n primaryKey.add(KEY_NODE_ADDRESS);\n primaryKey.add(KEY_NODE_PARENT);\n myDatabase.createTable(TABLE_DATA, name_type_map, primaryKey, null);\n }catch (MySQLException e) {\n e.print();\n }\n }", "public static void createTable(SQLiteDatabase db) {\n String sql = \"CREATE TABLE \" + TABLE_NAME + \"(\"\n + _ID + \" INTEGER PRIMARY KEY, \"\n + COL_DATE + \" DATETIME, \"\n + COL_RESULT + \" TEXT, \"\n + COL_UNIT + \" TEXT, \"\n + COL_ROW + \" TEXT\"\n + \");\";\n\n db.execSQL(sql);\n }", "public PdfPTable createTable() {\n\t\tPdfPTable t = new PdfPTable(2);\n\t\tt.setWidthPercentage(100);\n\t\tt.setHorizontalAlignment(Element.ALIGN_LEFT);\n\t\tt.getDefaultCell().setBorder(Rectangle.NO_BORDER);\n\t\t// set up the table headers for albums\n\t\tif (state.equals(\"a\")) {\n\t\t\tFont bold = new Font(Font.FontFamily.HELVETICA, 13, Font.BOLD);\n\t\t\t\n\t\t\tPdfPCell nameCell = new PdfPCell();\n\t\t\tnameCell.setBorder(Rectangle.NO_BORDER);\n\t\t\tPhrase name = new Phrase(\"Name\", bold);\n\t\t\tnameCell.addElement(name);\n\t\t\t\n\t\t\tPdfPCell artistCell = new PdfPCell();\n\t\t\tartistCell.setBorder(Rectangle.NO_BORDER);\n\t\t\tPhrase artist = new Phrase(\"Artist\", bold);\n\t\t\tartistCell.addElement(artist);\n\t\t\t\n\t\t\tt.addCell(nameCell);\n\t\t\tt.addCell(artistCell);\n\t\t}\n\t\t// set up the table headers for publications\n\t\telse if (state.equals(\"p\")) {\n\t\t\tFont bold = new Font(Font.FontFamily.HELVETICA, 13, Font.BOLD);\n\t\t\t\n\t\t\tPdfPCell nameCell = new PdfPCell();\n\t\t\tnameCell.setBorder(Rectangle.NO_BORDER);\n\t\t\tPhrase name = new Phrase(\"Name\", bold);\n\t\t\tnameCell.addElement(name);\n\t\t\t\n\t\t\tPdfPCell devisorCell = new PdfPCell();\n\t\t\tdevisorCell.setBorder(Rectangle.NO_BORDER);\n\t\t\tPhrase devisor = new Phrase(\"Devisor\", bold);\n\t\t\tdevisorCell.addElement(devisor);\n\t\t\t\n\t\t\tt.addCell(nameCell);\n\t\t\tt.addCell(devisorCell);\n\t\t}\n\t\ttry {\n\t\t\tResultSet results = db.searchTableByName(table, \"\", true);\n\t\t\twhile(results.next()) {\n\t\t\t\t// add album info to table\n\t\t\t\tif (state.equals(\"a\")) {\n\t\t\t\t\tt.addCell(results.getString(\"name\"));\n\t\t\t\t\tt.addCell(results.getString(\"artist\"));\n\t\t\t\t}\n\t\t\t\t// add publication info to table\n\t\t\t\telse if (state.equals(\"p\")) {\n\t\t\t\t\tt.addCell(results.getString(\"name\"));\n\t\t\t\t\tt.addCell(results.getString(\"devisor\"));\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn t;\n\t}", "private void createStressTestStatusTable() {\n Column runId = new Column(\"RUN_ID\");\n runId.setMappedType(\"INTEGER\");\n runId.setPrimaryKey(true);\n runId.setRequired(true);\n Column nodeId = new Column(\"NODE_ID\");\n nodeId.setMappedType(\"VARCHAR\");\n nodeId.setPrimaryKey(true);\n nodeId.setRequired(true);\n nodeId.setSize(\"50\");\n Column status = new Column(\"STATUS\");\n status.setMappedType(\"VARCHAR\");\n status.setSize(\"10\");\n status.setRequired(true);\n status.setDefaultValue(\"NEW\");\n Column startTime = new Column(\"START_TIME\");\n startTime.setMappedType(\"TIMESTAMP\");\n Column endTime = new Column(\"END_TIME\");\n endTime.setMappedType(\"TIMESTAMP\");\n\n Table table = new Table(STRESS_TEST_STATUS, runId, nodeId, status, startTime, endTime);\n\n engine.getDatabasePlatform().createTables(true, true, table);\n }", "@Override\n\tpublic void createTable(Object connectionHandle, DataTable table) throws DataSourceException\n\t{\n\t\tList<DataField> fields = new LinkedList<DataField>();\n\t\tList<String> indexes = new LinkedList<String>();\n\t\t\n\t\tList<String> keys = table.getFields();\n\t\tIterator<String> it = keys.iterator();\n\t\twhile(it.hasNext()){\n\t\t\tString fld = it.next();\n\t\t\tDataField df = table.getDataField(fld);\n\t\t\t\n\t\t\tfields.add(df);\n\t\t\t\n\t\t//\tif(df.isPrimary()){\n\t\t//\t\tindexes.add(fld);\n\t\t//\t}\n\t\t}\n\t\t\n\t\tIterator<DataField> primaryIt = table.getPrimaryKeys().iterator();\n\t\twhile(primaryIt.hasNext()){\n\t\t\tDataField pf = primaryIt.next();\n\t\t\t\n\t\t\tindexes.add(pf.getName());\n\t\t}\n\t\t\n\t\t\n\t\t// Make SQL String\n\t\tStringBuffer sqlString = new StringBuffer();\n\t\tsqlString.append(\"CREATE TABLE \");\n\t\tsqlString.append(table.getName());\n\t\tsqlString.append(\" ( \\n\");\n\t\t\n\t\tboolean first = true;\n\t\tIterator<DataField> itDf = fields.iterator();\n\t\twhile(itDf.hasNext()){\n\t\t\tDataField fld = itDf.next();\n\t\t\t\n\t\t\tif(first){\n\t\t\t\tfirst = false;\n\t\t\t}else{\n\t\t\t\tsqlString.append(\",\\n\");\n\t\t\t}\n\t\t\t\n\t\t\tsqlString.append(fld.getName());\n\t\t\tsqlString.append(\" \");\n\t\t\tsqlString.append(getSQLType(fld.getType()));\n\t\t\t\n\t\t\t// not null\n\t\t\tif(fld.isNotnull()){\n\t\t\t\tsqlString.append(\" NOT NULL\");\n\t\t\t}\n\t\t\t\n\t\t\t// unique\n\t\t\tif(fld.isUnique()){\n\t\t\t\tsqlString.append(\" UNIQUE\");\n\t\t\t}\n\t\t\t\n\t\t\t// default\n\t\t\tif(fld.getDefaultValue() != null){\n\t\t\t\tsqlString.append(\" \");\n\t\t\t\tsqlString.append(fld.getDefaultString());\n\t\t\t}\n\t\t\t\n\t\t\t// check\n\t\t\tif(fld.getCheck() != null){\n\t\t\t\tsqlString.append(\" \");\n\t\t\t\ttry {\n\t\t\t\t\tsqlString.append(fld.getCheck().extract(null, null, null, null, null));\n\t\t\t\t} catch (ExecutionException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tthrow new DataSourceException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// check\n\t\tIterator<CheckDefinition> checkIt = table.getCheck().iterator();\n\t\twhile(checkIt.hasNext()){\n\t\t\tCheckDefinition def = checkIt.next();\n\t\t\t\n\t\t\tsqlString.append(\",\\n\");\n\t\t\ttry {\n\t\t\t\tsqlString.append(def.extract(null, null, null, null, null));\n\t\t\t} catch (ExecutionException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tthrow new DataSourceException(e);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// foreign key\n\t\tIterator<ForeignKey> foreignIt = table.getForeignKey().iterator();\n\t\twhile(foreignIt.hasNext()){\n\t\t\tForeignKey fkey = foreignIt.next();\n\t\t\t\n\t\t\tsqlString.append(\",\\n\");\n\t\t\ttry {\n\t\t\t\tsqlString.append(fkey.extract(null, null, null, null, null));\n\t\t\t} catch (ExecutionException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tthrow new DataSourceException(e);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// primary key\n\t\tif(indexes.size() > 0){\n\t\t\tsqlString.append(\",\\n\");\n\t\t\tsqlString.append(\"PRIMARY KEY(\");\n\t\t\t\n\t\t\tfirst = true;\n\t\t\tit = indexes.iterator();\n\t\t\twhile(it.hasNext()){\n\t\t\t\tString idxFld = it.next();\n\t\t\t\t\n\t\t\t\tif(first){\n\t\t\t\t\tfirst = false;\n\t\t\t\t}else{\n\t\t\t\t\tsqlString.append(\", \");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tsqlString.append(idxFld);\n\t\t\t}\n\n\t\t\tsqlString.append(\")\");\n\t\t}\n\t\t\n\t\t// unique\n\t\tIterator<Unique> itU = table.getUnique().iterator();\n\t\twhile(itU.hasNext()){\n\t\t\tUnique unique = itU.next();\n\t\t\t\n\t\t\tsqlString.append(\",\\n\");\n\t\t\tsqlString.append(\"UNIQUE(\");\n\t\t\t\n\t\t\tfirst = true;\n\t\t\tIterator<String> itUnique = unique.getKey().iterator();\n\t\t\twhile(itUnique.hasNext()){\n\t\t\t\tString col = itUnique.next();\n\t\t\t\t\n\t\t\t\tif(first){\n\t\t\t\t\tfirst = false;\n\t\t\t\t}else{\n\t\t\t\t\tsqlString.append(\",\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tsqlString.append(col);\n\t\t\t}\n\t\t\t\n\t\t\tsqlString.append(\")\");\n\t\t}\n\t\t\n\t\tsqlString.append(\"\\n)\\n\");\n\t\t\n\t\tif(this.logger != null && this.outSql){\n\t\t\tthis.logger.reportInfo(sqlString.toString());\n\t\t}\n\t\t\n\t\t// \n\t\tAlinousDebug.debugOut(core, sqlString.toString());\n\t\t\n\t\texecuteUpdateSQL(connectionHandle, sqlString.toString(), false);\n\n\t}", "public CreateTable(Object result) {\r\n this.result = result;\r\n columnNames = new String[1];\r\n columnNames[0] = \"Result\";\r\n tableData = new Object[1][1];\r\n tableData[0][0] = this.result;\r\n }", "@Override\n public void createTable() {\n String[] TABLE_COLUMNS_ATLAS = {\n TableColumn.ChecklistTable.CID + \" INTEGER PRIMARY KEY AUTOINCREMENT\",\n TableColumn.ChecklistTable.PID + \" INTEGER NOT NULL\",\n TableColumn.ChecklistTable.REAL + \" INTEGER DEFAULT 0\",\n TableColumn.ChecklistTable.UNIT_ID + \" INTEGER\",\n TableColumn.ChecklistTable.WAREHOUSE_ID + \" INTEGER\",\n TableColumn.ChecklistTable.QUEUE_ID + \" INTEGER\",\n TableColumn.ChecklistTable.CATEGORIES_ID + \" INTEGER\",\n TableColumn.ChecklistTable.DATE + \" DATE\",\n TableColumn.ChecklistTable.RECORDTIME + \" DATE\",\n TableColumn.ChecklistTable.CONFIRM + \" INTEGER DEFAULT 0\"\n };\n\n //TODO: create table\n database.execSQL(makeSQLCreateTable(TABLE_NAME, TABLE_COLUMNS_ATLAS));\n\n addColumn(TableColumn.ChecklistTable.CONFIRM, \" INTEGER DEFAULT 0\");\n\n //TODO: show table\n XCursor cursor = selectTable();\n printData(TABLE_NAME, cursor);\n cursor.close();\n }", "public void createTables()\n {\n String[] sqlStrings = createTablesStatementStrings();\n String sqlString;\n Statement statement;\n\n System.out.println(\"Creating table(s):\" +\n Arrays.toString(tableNames));\n for (int i=0; i<sqlStrings.length; i++)\n try\n {\n statement = connect.createStatement();\n\n sqlString = sqlStrings[i];\n\n System.out.println(\"SQL: \" + sqlString);\n\n statement.executeUpdate(sqlString);\n }\n catch (SQLException ex)\n {\n System.out.println(\"Error creating table: \" + ex);\n Logger.getLogger(DatabaseManagementDAO.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private String createTableSQL()\n\t{\n\t\tStringBuffer str = new StringBuffer();\n\n\t\t// Keep track of the list of fields\n\t\tList<String> listFields = new ArrayList<String>();\n\n\t\t// Table command\n\t\tstr.append(\"CREATE TABLE \" + getFullPath() + \"( \");\n\t\tstr.append(createStandardGZFields());\n\n\t\t// Loop through all InputFields\n\t\tfor (InputFieldSet fieldSet : function.getInputFieldSets())\n\t\t{\n\t\t\tfor (InputField inputField : fieldSet.getInputFields())\n\t\t\t{\n\t\t\t\t// Phase 2 does not support repeating fields being journalled\n\t\t\t\tif (!Field.isRepeating(inputField))\n\t\t\t\t{\n\t\t\t\t\t// Field\n\t\t\t\t\tString fieldName = SQLToolbox.cvtToSQLFieldName(inputField.getId());\n\n\t\t\t\t\t// add if not yet existing\n\t\t\t\t\tif (listFields.indexOf(fieldName) == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\tstr.append(\", \");\n\t\t\t\t\t\tString fieldDataType = inputField.getDataType();\n\t\t\t\t\t\tString fieldType = SQLToolbox.cvtToSQLFieldType(fieldDataType, inputField.getSize(), inputField\n\t\t\t\t\t\t\t\t\t\t.getDecimals());\n\t\t\t\t\t\tString fieldDefault = SQLToolbox.cvtToSQLDefault(fieldDataType);\n\t\t\t\t\t\tstr.append(fieldName + \" \" + fieldType + \" \" + \" not null default \" + fieldDefault);\n\t\t\t\t\t\tlistFields.add(fieldName);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// End\n\t\tstr.append(\" ) \");\n\t\t// RCDFMT \" + getJournalRcdName());\n\n\t\treturn str.toString();\n\t}", "@Override\r\n\tpublic void createTable(Connection con) throws SQLException {\r\n\t\tString sql = \"CREATE TABLE \" + tableName\r\n\t\t\t\t+ \"(pc_id integer, class_id varchar(20), level integer,\"\r\n\t\t\t\t+ \" PRIMARY KEY (pc_id,class_id,level) )\";\r\n\r\n\t\tif (DbUtils.doesTableExist(con, tableName)) {\r\n\r\n\t\t} else {\r\n\t\t\ttry (PreparedStatement ps = con.prepareStatement(sql);) {\r\n\t\t\t\tps.execute();\r\n\t\t\t}\r\n \r\n\t\t}\r\n\r\n\r\n\r\n\t\tString[] newInts = new String[] { \r\n\t\t\t\t\"hp_Increment\",};\r\n\t\tDAOUtils.createInts(con, tableName, newInts);\r\n\r\n\t}", "public static void createOrders() {\n Connection con = getConnection();\n\n String createString;\n createString = \"create table Orders (\" +\n \"Prod_ID INTEGER, \" +\n \"ProductName VARCHAR(20), \" +\n \"Employee_ID INTEGER )\";\n\n try {\n stmt = con.createStatement();\n stmt.executeUpdate(createString);\n\n stmt.close();\n con.close();\n\n } catch (SQLException ex) {\n System.err.println(\"SQLException: \" + ex.getMessage());\n }\n JOptionPane.showMessageDialog(null, \"Orders Table Created\");\n }", "public boolean createTable(String input) throws IOException{\n\t\tString orgQuery = input;\n\t\torgQuery = orgQuery.trim();\n\t\tString query = input.toLowerCase().trim();\n\t\tboolean queryFailed = false;\n\t\t//Schema Instance \n\t\tSchema currentSchema = Schema.getSchemaInstance();\n\t\tString currentSchemaName = currentSchema.getCurrentSchema();\n\n\t\t//TableSchemaManager Instance\n\t\tTableSchemaManager currentTableSchemaManager = TableSchemaManager.getTableSchemaManagerInstance();\n\n\t\t//Extracting Table name\n\t\ttableName = orgQuery.substring(query.indexOf(\"table \")+6,query.indexOf(\"(\")).trim();\n\n\t\t//Updating SCHEMA.TABLE.TBL\n\t\tif(updateInformationSchemaTable()){\n\t\t\tqueryFailed = true;\n\t\t\treturn queryFailed;\n\t\t}\n\n\t\t//Extracting Table contents\n\t\tString tableContentsWithQuotes = orgQuery.substring(orgQuery.indexOf(\"(\")+1,orgQuery.length());\n\t\tString tableContents = tableContentsWithQuotes.replace(\"))\", \")\");\n\t\ttableContents = tableContents.trim();\n\n\t\tTableSchemaManager.ordinalMap = new TreeMap<Integer,List<String>>();\n\t\tTableSchemaManager.tableMap = new TreeMap<String,TreeMap<Integer,List<String>>>();\n\t\t\n\t\t//Creating n instances of Table helper\n\t\tString[] createTableContents = tableContents.split(\"\\\\,\"); \n\t\tnoOfColumns = createTableContents.length;\n\t\tCreateTableHelper[] th = new CreateTableHelper[noOfColumns];\n\n\t\t\n\t\t//Handles single row of Create Table \n\t\tfor(int item = 0; item < noOfColumns ; item++){\n\t\t\tth[item] = new CreateTableHelper(); \n\t\t\t//To remove any leading or trailing spaces\n\t\t\tcreateTableContents[item] = createTableContents[item].trim();\n\t\t\tString columnName = createTableContents[item].substring(0, createTableContents[item].indexOf(\" \"));\n\t\t\tth[item].setColumnName(columnName);\n\n\t\t\t//Setting Primary Key\n\t\t\tString primaryKeyExp = \"(.*)[pP][rR][iI][mM][aA][rR][yY](.*)\";\n\t\t\tif (createTableContents[item].matches(primaryKeyExp))\n\t\t\t\tth[item].setPrimaryKey(true);\n\t\t\telse\n\t\t\t\tth[item].setPrimaryKey(false);\n\n\t\t\t//Setting Null Value\t\n\t\t\tString notNullExp = \"(.*)[nN][uU][lL][lL](.*)\";\n\t\t\tif (createTableContents[item].matches(notNullExp))\n\t\t\t\tth[item].setNull(true);\n\t\t\telse\n\t\t\t\tth[item].setNull(false);\n\n\t\t\t//Extracting data types \n\t\t\t//BYTE\n\t\t\tString byteExp = \"(.*)[bB][yY][tT][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(byteExp)){\n\t\t\t\tth[item].setDataType(\"BYTE\");\n\t\t\t}\n\t\t\t//SHORT\n\t\t\tString shortExp = \"(.*)[sS][hH][oO][rR][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(shortExp)){\n\t\t\t\tth[item].setDataType(\"SHORT\");\n\t\t\t}\n\t\t\t//INT\n\t\t\tString intExp = \"(.*)[iI][nN][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(intExp)){\n\t\t\t\tth[item].setDataType(\"INT\");\n\t\t\t}\n\t\t\t//LONG\n\t\t\tString longExp = \"(.*)[lL][oO][nN][gG](.*)\";\n\t\t\tif (createTableContents[item].matches(longExp)){\n\t\t\t\tth[item].setDataType(\"LONG\");\n\t\t\t}\n\t\t\t//CHAR\n\t\t\tString charExp = \"(.*)[cC][hH][aA][rR](.*)\";\n\t\t\tif (createTableContents[item].matches(charExp)){\n\t\t\t\tString size = createTableContents[item].substring(createTableContents[item].indexOf(\"(\")+1, createTableContents[item].indexOf(\")\"));\n\t\t\t\tth[item].setDataType(\"CHAR(\" + size + \")\");\n\t\t\t}\n\t\t\t//VARCHAR\n\t\t\tString varcharExp = \"(.*)[vV][aA][rR][cC][hH][aA][rR](.*)\";\n\t\t\tif (createTableContents[item].matches(varcharExp)){\n\t\t\t\tString size = createTableContents[item].substring(createTableContents[item].indexOf(\"(\")+1, createTableContents[item].indexOf(\")\"));\n\t\t\t\tth[item].setDataType(\"VARCHAR(\" + size + \")\");\n\t\t\t}\n\t\t\t//FLOAT\n\t\t\tString floatExp = \"(.*)[fF][lL][oO][aA][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(floatExp)){\n\t\t\t\tth[item].setDataType(\"FLOAT\");\t\t\t\t\n\t\t\t}\n\t\t\t//DOUBLE\n\t\t\tString doubleExp = \"(.*)[dD][oO][uU][bB][lL][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(doubleExp)){\n\t\t\t\tth[item].setDataType(\"DOUBLE\");\n\t\t\t}\n\t\t\t//DATETIME\n\t\t\tString dateTimeExp = \"(.*)[dD][aA][tT][eE][tT][iI][mM][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(dateTimeExp)){\n\t\t\t\tth[item].setDataType(\"DATETIME\");\n\t\t\t}\n\t\t\t//DATE\n\t\t\tString dateExp = \"(.*)[dD][aA][tT][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(dateExp)){\n\t\t\t\tth[item].setDataType(\"DATE\");\n\t\t\t}\n\n\t\t\tcurrentTableSchemaManager.newTableSchema(\n\t\t\t\t\ttableName,\n\t\t\t\t\titem,\n\t\t\t\t\tth[item].getColumnName(),\n\t\t\t\t\tth[item].getDataType(),\n\t\t\t\t\tth[item].isNull(),\n\t\t\t\t\tth[item].isPrimaryKey()\n\t\t\t\t\t);\n\n\t\t\t//Updating SCHEMA.COLUMNS.TBL\n\t\t\tupdateInformationSchemaColumn(\n\t\t\t\t\tth[item].getColumnName(),\n\t\t\t\t\titem,\n\t\t\t\t\tth[item].getDataType(),\n\t\t\t\t\tth[item].isNull(),\n\t\t\t\t\tth[item].isPrimaryKey()\n\t\t\t\t\t);\n\t\t\t//Create tables to insert index\n\t\t\tString newTableIndexName = currentSchemaName + \".\" + tableName + \".\" +th[item].getColumnName()+ \".tbl.ndx\";\n\t\t\tRandomAccessFile newTableIndexFile = new RandomAccessFile(newTableIndexName, \"rw\");\n\t\t\tnewTableIndexFile.close();\n\n\t\t}\n\n\t\tTableSchemaManager.tableMap.put(tableName, TableSchemaManager.ordinalMap);\n\t\tcurrentTableSchemaManager.updateTableSchema(currentSchemaName,tableName);\n\t\t\n\t\t//Create tables to insert data \n\t\tString newTableDataName = currentSchemaName + \".\" + tableName + \".tbl\";\n\t\tRandomAccessFile newTableDataFile = new RandomAccessFile(newTableDataName, \"rw\");\n\t\tnewTableDataFile.close();\n\t\treturn queryFailed;\n\t}", "private void statsTable() {\n try (Connection connection = hikari.getConnection()) {\n try (PreparedStatement statement = connection.prepareStatement(\"CREATE TABLE IF NOT EXISTS `\" + TABLE_STATS + \"` \" +\n \"(id INT NOT NULL AUTO_INCREMENT UNIQUE, \" +\n \"uuid varchar(255) PRIMARY KEY, \" +\n \"name varchar(255), \" +\n \"kitSelected varchar(255), \" +\n \"points INT, \" +\n \"kills INT, \" +\n \"deaths INT, \" +\n \"killstreaks INT, \" +\n \"currentKillStreak INT, \" +\n \"inGame BOOLEAN)\")) {\n statement.execute();\n statement.close();\n connection.close();\n }\n } catch (SQLException e) {\n LogHandler.getHandler().logException(\"TableCreator:statsTable\", e);\n }\n }", "public interface TableCreator {\n\t\tpublic void createTable(SQLiteDatabase db, String tableName);\n\t}", "DataTable createDataTable();", "public void createTableComplaintsData()\n\t\t{\n\t\t\ttry {\n\t\t\t\tDatabaseMetaData d=con.getMetaData();\n\t\t\t\tResultSet rs=d.getTables(null,null,\"ComplaintsData\",null);\n\t\t\t\tif(rs.next())\n\t\t\t\t{\n\t//\t\t\t\tJOptionPane.showMessageDialog(null,\"ComplaintsData table exist\");\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tString Create_Table=\"create table ComplaintsData(Customer_Name varchar(100),Address varchar(100),Contact varchar(30),Product varchar(100),Serial_No varchar(50),Module_No varchar(50),Complaint_No varchar(50),Category varchar(30))\";\n\t\t\t\t\tPreparedStatement ps=con.prepareStatement(Create_Table);\n\t\t\t\t\tps.executeUpdate();\n\t//\t\t\t\tJOptionPane.showMessageDialog(null,\"ComplaintsData created successfully!\");\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}", "public void createDataTable() {\r\n Log.d(TAG, \"creating table\");\r\n String queryStr = \"\";\r\n String[] colNames = {Constants.COLUMN_NAME_ACC_X, Constants.COLUMN_NAME_ACC_Y, Constants.COLUMN_NAME_ACC_Z};\r\n queryStr += \"create table if not exists \" + Constants.TABLE_NAME;\r\n queryStr += \" ( id INTEGER PRIMARY KEY AUTOINCREMENT, \";\r\n for (int i = 1; i <= 50; i++) {\r\n for (int j = 0; j < 3; j++)\r\n queryStr += colNames[j] + \"_\" + i + \" real, \";\r\n }\r\n queryStr += Constants.COLUMN_NAME_ACTIVITY + \" text );\";\r\n execute(queryStr);\r\n Log.d(TAG, \"created table\");\r\n try {\r\n ContentValues values = new ContentValues();\r\n values.put(\"id\", 0);\r\n insertRowInTable(Constants.TABLE_NAME, values);\r\n Log.d(TAG,\"created hist table\");\r\n }catch (Exception e){\r\n Log.d(TAG,Constants.TABLE_NAME + \" table already exists\");\r\n }\r\n }", "private void createDataTable() {\n jdbcTemplate.update(\"CREATE TABLE \" + IDaoEditors.TABLE + \" (ID INT IDENTITY PRIMARY KEY, NAME VARCHAR(150) NOT NULL UNIQUE)\");\n jdbcTemplate.update(\"CREATE TABLE \" + IDaoBooks.TABLE + \" (ID INT IDENTITY PRIMARY KEY, TITLE VARCHAR(150) NOT NULL UNIQUE, YEAR INT, ISBN10 VARCHAR(20), ISBN13 VARCHAR(13), NOTE INT, PAGES_NUMBER INT, RESUME VARCHAR(2000), THE_EDITOR_FK INT, THE_KIND_FK INT, THE_LANGUAGE_FK INT, THE_LENDING_FK INT, THE_SAGA_FK INT, THE_TYPE_FK INT)\");\n jdbcTemplate.update(\"CREATE TABLE \" + IDaoBooks.BOOKS_AUTHOR_TABLE + \" (THE_BOOK_FK INT NOT NULL, THE_AUTHOR_FK INT NOT NULL)\");\n\n jdbcTemplate.update(\"CREATE INDEX BOOK_EDITOR_IDX ON \" + IDaoEditors.TABLE + \"(ID)\");\n jdbcTemplate.update(\"CREATE INDEX BOOKS_IDX ON \" + IDaoBooks.TABLE + \"(ID)\");\n }", "public void initTable();", "ExpRunTable createRunTable(String name, UserSchema schema, ContainerFilter cf);", "int createTable(HbaseObj t);", "public void createTable() {\r\n CreateTableRequest request = new CreateTableRequest()\r\n .withAttributeDefinitions(new AttributeDefinition(\r\n \"Username\", ScalarAttributeType.S))\r\n .withKeySchema(new KeySchemaElement(\"Username\", KeyType.HASH))\r\n .withProvisionedThroughput(new ProvisionedThroughput(\r\n new Long(5), new Long(5)))\r\n .withTableName(\"IST440Users\");\r\n\r\n creds = new BasicAWSCredentials(\"no\", \"nope\");\r\n client = AmazonDynamoDBClientBuilder.standard().\r\n withRegion(\"us-east-1\")\r\n .withCredentials(new AWSStaticCredentialsProvider(creds))\r\n .build();\r\n\r\n db = new DynamoDB(client);\r\n table = db.getTable(\"IST440Users\");\r\n \r\n \r\n tableDescription = table.describe();\r\n System.out.printf(\"%s: %s \\t ReadCapacityUnits: %d \\t WriteCapacityUnits: %d\\n\",\r\n tableDescription.getTableStatus(),\r\n tableDescription.getTableName(),\r\n tableDescription.getProvisionedThroughput().getReadCapacityUnits(),\r\n tableDescription.getProvisionedThroughput().getWriteCapacityUnits()); \r\n }", "private void createTables() {\n\n\t\tAutoDao.createTable(db, true);\n\t\tAutoKepDao.createTable(db, true);\n\t\tMunkaDao.createTable(db, true);\n\t\tMunkaEszkozDao.createTable(db, true);\n\t\tMunkaKepDao.createTable(db, true);\n\t\tMunkaTipusDao.createTable(db, true);\n\t\tPartnerDao.createTable(db, true);\n\t\tPartnerKepDao.createTable(db, true);\n\t\tProfilKepDao.createTable(db, true);\n\t\tSoforDao.createTable(db, true);\n\t\tTelephelyDao.createTable(db, true);\n\t\tPushMessageDao.createTable(db, true);\n\n\t}", "TD createTD();", "void createTable(DynamoTableConfig table) {\n\n\t\tif (table == null) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\n\t\tString tableName = table.getTableName();\n\t\tPair<List<KeySchemaElement>, List<AttributeDefinition>> keySchema = this.getKeySchema(table);\n\t\tProvisionedThroughput provisionedThroughput = this.getProvisionedThroughput(table);\n\n\t\tCreateTableRequest request = new CreateTableRequest().withTableName(tableName).withKeySchema(keySchema.getFirst())\n\t\t\t\t.withAttributeDefinitions(keySchema.getSecond()).withProvisionedThroughput(provisionedThroughput);\n\n\t\tthis.dynamoClient.createTable(request);\n\t}", "public void createTable(Class<?> clz) {\n\t\tcreateTable(getWritableDatabase(), clz);\n\t}", "private void createTableOrdersWaiting() throws SQLException\r\n {\r\n String sqlQuery = \r\n \"CREATE TABLE orders \" +\r\n \"(id auto_increment INT NOT NULL PRIMARY KEY, \" +\r\n \"custname VARCHAR(25) NOT NULL, \" +\r\n \"tablenumber INT NOT NULL, \" +\r\n \"foodname VARCHAR(100) NOT NULL, \" + \r\n \"beveragename VARCHAR(100) NOT NULL, \" + \r\n \"served BOOLEAN NOT NULL, \" + \r\n \"billed BOOLEAN NOT NULL, \" + \r\n \"time DATETIME DEFAULT CURRENT_TIMESTAMP)\";\r\n myStmt.executeUpdate(sqlQuery);\r\n }", "public static LearningTable createLearningTable() {\n\t\tLearningTable table = new LearningTable(null, null, null);\n\t\t\n\t\ttable.getAttributes().addAll(createAttributes());\n\t\ttable.getExamples().addAll(createExamples(table.getAttributes()));\n\t\t\n\t\treturn table;\n\t}", "public HtmlTable createTable() {\n\t\tHtmlTable table = null;\n\t\tif (recordList != null) {\n\t\t\ttable = new HtmlTable();\n\t\t\tint irow = 0;\n\t\t\tfor (CSVRecord record : recordList) {\n\t\t\t\tHtmlTr tr = createTr(record, irow);\n\t\t\t\ttable.appendChild(tr);\n\t\t\t\tirow++;\n\t\t\t}\n\t\t}\n\t\treturn table;\n\t}", "public String getCreateTableString() {\n \t\treturn \"create table\";\n \t}", "protected void createTableRecordings() {\n\t\tString query = \n\t\t\t\t\"CREATE TABLE IF NOT EXISTS Recordings (\" \t\t\t\t\t\t\t+\n\t\t\t\t\"artist_name\tVARCHAR(128),\" \t\t\t\t\t\t\t\t\t\t+\n\t\t\t\t\"track_name\t\tVARCHAR(128),\" \t\t\t\t\t\t\t\t\t\t+\n\t\t\t\t\"CONSTRAINT unique_track PRIMARY KEY (artist_name, track_name)\" \t+\n\t\t\t\t\");\"\n\t\t\t\t;\n\t\tcreateTable(query);\n\t}", "private static void createTables(String tableNames, Statement stat) {\n\t\t\n\t\t//creates a table with the name of the file\n\t\ttry {\n\t\t\tstat.executeQuery(comd.createTable(\"stevenwbroussard.\" + tableNames));\n\t\t}\n\t\tcatch(SQLException s) {\n\t\t\tSystem.out.println(\"CREATE Statement Failed.\");\n\t\t\ts.printStackTrace();\n\t\t\tSystem.exit(-1);\n\t\t}\n\t}", "@Override\n public void createTable() throws Exception {\n }", "public void createNewTable(){\n Connection conn = null;\n Statement stmt = null;\n try{\n //STEP 2: Register JDBC driver\n System.out.println(\"Registered JDBC driver...\");\n Class.forName(\"com.mysql.jdbc.Driver\");\n\n //STEP 3: Open a connection\n System.out.println(\"Connecting to database...\");\n conn = DriverManager.getConnection(DB_URL);//acceses the database specified by the url through entering in the username and password\n System.out.println(\"Creating statement...\");\n stmt = conn.createStatement(); //access the database server and manipulate data in database\n String sql = \"CREATE TABLE EXPERIENCE_\"+gameNumber+\n \" (Id INT PRIMARY KEY AUTO_INCREMENT,\"+\n \"player VARCHAR(255), \" +\n \" bigsquare INTEGER, \" + \n \" smallsquare INTEGER)\";\n System.out.println(\"SUCCCESSS!\"+gameNumber+ \" yayyyY!\");\n stmt.executeUpdate(sql);\n System.out.println(\"sweeeeeeeeeet....\");\n stmt.close();\n conn.close(); \n }catch(SQLException se){\n //Handle errors for JDBC\n se.printStackTrace();\n }catch(Exception e){\n //Handle errors for Class.forName\n e.printStackTrace();\n }finally{\n //finally block used to close resources\n try{\n if(stmt!=null)\n stmt.close();\n }catch(SQLException se2){\n }// nothing we can do\n try{\n if(conn!=null)\n conn.close();\n }catch(SQLException se){\n se.printStackTrace();\n }//end finally try\n }//end try\n \n \n }", "private void createCDAccountsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE cdAccounts \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY ( START WITH 3000000001, INCREMENT BY 1 ), \" + \"owner INT, \"\n\t\t\t\t\t+ \"term INT, \" + \"balance DOUBLE, \" + \"intRate DOUBLE, \"\n\t\t\t\t\t+ \"timeCreated BIGINT, \" + \"lastPaidInterest DOUBLE, \"\n\t\t\t\t\t+ \"dateOfLastPaidInterest BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table cdAccounts\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of cdAccounts table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "@Override\n public void createTable(final Connection _con, final String _table,\n final String _parentTable) throws SQLException {\n\n final Statement stmt = _con.createStatement();\n\n try {\n\n // create table itself\n final StringBuilder cmd = new StringBuilder();\n cmd.append(\"create table \").append(_table).append(\" (\")\n .append(\" ID bigint not null\");\n\n // autoincrement\n if (_parentTable == null) {\n cmd.append(\" generated always as identity (start with 1, increment by 1)\");\n }\n\n cmd.append(\",\")\n .append(\" constraint \").append(_table).append(\"_UK_ID unique(ID)\");\n\n // foreign key to parent sql table\n if (_parentTable != null) {\n cmd.append(\",\")\n .append(\"constraint \").append(_table).append(\"_FK_ID \")\n .append(\" foreign key(ID) \")\n .append(\" references \").append(_parentTable).append(\"(ID)\");\n }\n\n cmd.append(\")\");\n stmt.executeUpdate(cmd.toString());\n\n } finally {\n stmt.close();\n }\n }", "@Override\n public void createTable(String table_name, String[] columns) {\n\n // silently return if table already exists or connection is closed\n if (!is_open || doesTableExist(table_name)) {\n return;\n }\n\n // build the statement using string properties\n StringBuilder create_string = new StringBuilder();\n\n // join together column names separated by commas\n create_string.append(String.join(\", \", columns));\n\n // try to execute the create statement\n try {\n statement.execute(\"CREATE TABLE \" + table_name + \"(\\n\" + create_string + \"\\n)\");\n connection.commit();\n } catch (SQLException e) {\n System.out.println(\"Could not create table \" + table_name);\n e.printStackTrace();\n }\n\n //System.out.println(\"Created table \" + table_name);\n\n }", "protected void createTablePersons() {\n\t\tString query = \n\t\t\t\t\"CREATE TABLE IF NOT EXISTS Persons (\" \t+\n\t\t\t\t\"lfm_username\tVARCHAR(128),\" \t\t\t+\n\t\t\t\t\"age \t\t\tINTEGER,\" \t\t\t\t+\n\t\t\t\t\"country\t\tVARCHAR(128),\"\t \t\t+\n\t\t\t\t\"language\t\tVARCHAR(64),\"\t \t\t+\n\t\t\t\t\"gender\t\t\tVARCHAR(8),\"\t\t\t+\n\t\t\t\t\"register_date\tINTEGER,\"\t\t\t+\n\t\t\t\t\"real_name\t\tVARCHAR(32),\"\t\t\t+\n\t\t\t\t\"playcount\t\tINTEGER,\"\t\t\t+\n\t\t\t\t\"playlists\t\tINTEGER,\"\t\t\t+\n\t\t\t\t\"PRIMARY KEY \t(lfm_username)\"\t\t\t+\n\t\t\t\t\");\"\n\t\t\t\t;\n\t\tcreateTable(query);\n\t}", "public static String getSQLForUserTableCreation() {\n return \"CREATE TABLE \" + USER_TABLE + \"(\" +\n USER_ID + \" varchar(8) PRIMARY KEY, \" +\n USER_LAST_NAME + \" varchar(32), \" +\n USER_FIRST_NAME + \" varchar(32), \" +\n USER_EMAIL + \" varchar(256), \" +\n USER_PASSWORD + \" varchar(64), \" +\n USER_IS_TEACHER + \" bool, \" +\n USER_GROUP + \" varchar(32))\";\n\n }", "public static void CreateTable(Supermarket supermarket) throws SQLException {\r\n\t\tPreparedStatement statement = null;\r\n\t\tString market_name = supermarket.getSuper_name();\r\n\t\ttry {\r\n\t\t\tString query = \"CREATE TABLE CS_\"+market_name+\"(\"\r\n\t\t\t\t\t+ \"PRODUCT_NAME VARCHAR(30) NOT NULL,\"\r\n\t\t\t\t\t+ \"PRODUCT_COMPANY VARCHAR(30) NOT NULL,\"\r\n\t\t\t\t\t+ \"PRODUCT_EXIST BOOLEAN DEFAULT FALSE,\"\r\n\t\t\t\t\t+ \"PRODUCT_PRICE DOUBLE DEFAULT 0,\"\r\n\t\t\t\t\t+ \"PRODUCT_CATEGORY VARCHAR(30) NOT NULL\"\r\n\t\t\t\t\t+ \");\";\r\n\t\t\tstatement = JdbcCommon.connection.prepareStatement(query);\r\n\t\t\tstatement.executeUpdate();\r\n\t\t} catch (SQLException e) {e.printStackTrace();}\r\n\t\tstatement.close();\r\n\t}", "public void createTable(DBTableDescriptor desc)\n throws IOException {\n createTable(desc, null);\n }", "private void processCreateTable(int type) throws HsqlException {\n\n String token = tokenizer.getName();\n HsqlName schemaname =\n session.getSchemaHsqlNameForWrite(tokenizer.getLongNameFirst());\n\n database.schemaManager.checkUserTableNotExists(session, token,\n schemaname.name);\n\n boolean isnamequoted = tokenizer.wasQuotedIdentifier();\n int[] pkCols = null;\n int colIndex = 0;\n boolean constraint = false;\n Table t = newTable(type, token, isnamequoted, schemaname);\n\n tokenizer.getThis(Token.T_OPENBRACKET);\n\n while (true) {\n token = tokenizer.getString();\n\n switch (Token.get(token)) {\n\n case Token.CONSTRAINT :\n case Token.PRIMARY :\n case Token.FOREIGN :\n case Token.UNIQUE :\n case Token.CHECK :\n\n // fredt@users : check for quoted reserved words used as column names\n constraint = !tokenizer.wasQuotedIdentifier()\n && !tokenizer.wasLongName();\n }\n\n tokenizer.back();\n\n if (constraint) {\n break;\n }\n\n Column newcolumn = processCreateColumn();\n\n t.addColumn(newcolumn);\n\n if (newcolumn.isPrimaryKey()) {\n Trace.check(pkCols == null, Trace.SECOND_PRIMARY_KEY,\n newcolumn.columnName.name);\n\n pkCols = new int[]{ colIndex };\n }\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_COMMA)) {\n colIndex++;\n\n continue;\n }\n\n if (token.equals(Token.T_CLOSEBRACKET)) {\n break;\n }\n\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n HsqlArrayList tempConstraints = processCreateConstraints(t,\n constraint, pkCols);\n\n if (tokenizer.isGetThis(Token.T_ON)) {\n if (!t.isTemp) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, Token.T_ON);\n }\n\n tokenizer.getThis(Token.T_COMMIT);\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_DELETE)) {}\n else if (token.equals(Token.T_PRESERVE)) {\n t.onCommitPreserve = true;\n } else {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_ROWS);\n }\n\n try {\n session.commit();\n\n Constraint primaryConst = (Constraint) tempConstraints.get(0);\n\n t.createPrimaryKey(null, primaryConst.core.mainColArray, true);\n\n if (primaryConst.core.mainColArray != null) {\n if (primaryConst.constName == null) {\n primaryConst.constName = t.makeSysPKName();\n }\n\n Constraint newconstraint =\n new Constraint(primaryConst.constName, t,\n t.getPrimaryIndex(),\n Constraint.PRIMARY_KEY);\n\n t.addConstraint(newconstraint);\n database.schemaManager.registerConstraintName(\n primaryConst.constName.name, t.getName());\n }\n\n for (int i = 1; i < tempConstraints.size(); i++) {\n Constraint tempConst = (Constraint) tempConstraints.get(i);\n\n if (tempConst.constType == Constraint.UNIQUE) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createUniqueConstraint(\n tempConst.core.mainColArray, tempConst.constName);\n\n t = tableWorks.getTable();\n }\n\n if (tempConst.constType == Constraint.FOREIGN_KEY) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createForeignKey(tempConst.core.mainColArray,\n tempConst.core.refColArray,\n tempConst.constName,\n tempConst.core.refTable,\n tempConst.core.deleteAction,\n tempConst.core.updateAction);\n\n t = tableWorks.getTable();\n }\n\n if (tempConst.constType == Constraint.CHECK) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createCheckConstraint(tempConst,\n tempConst.constName);\n\n t = tableWorks.getTable();\n }\n }\n\n database.schemaManager.linkTable(t);\n } catch (HsqlException e) {\n\n// fredt@users 20020225 - comment\n// if a HsqlException is thrown while creating table, any foreign key that has\n// been created leaves it modification to the expTable in place\n// need to undo those modifications. This should not happen in practice.\n database.schemaManager.removeExportedKeys(t);\n database.schemaManager.removeIndexNames(t.tableName);\n database.schemaManager.removeConstraintNames(t.tableName);\n\n throw e;\n }\n }", "private void createTable(HTableDescriptor tableDesc, boolean ignoreTableExists) {\n\n\t\tHBaseAdmin admin = HBaseConfigurationManager.getHbaseAdmin();\n\n\t\ttry {\n\n\t\t\tadmin.createTable(tableDesc);\n\t\t\tJOptionPane.showMessageDialog(this, \"Table Created and Enabled Successfully\");\n\t\t}\n\t\tcatch (TableExistsException e) {\n\t\t\tif (!ignoreTableExists) {\n\t\t\t\tint sel = JOptionPane.showConfirmDialog(this, \"Table Already Exist, Add Data ???\", \"Warning!\", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);\n\n\t\t\t\tif (sel == JOptionPane.NO_OPTION) {\n\t\t\t\t\tthis.dispose();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tcatch (IOException ex) {\n\t\t\tJOptionPane.showMessageDialog(this, \"Table Creation Failed\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\tLogger.getLogger(HBaseManagerTableDesign.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\n\t}", "public static void createNewTable(String fileName) {\n connect(fileName);\n String sqlUrl = \"CREATE TABLE IF NOT EXISTS urls (\\n\"\n + \" id integer PRIMARY KEY AUTOINCREMENT,\\n\"\n + \" url text NOT NULL\\n\"\n + \");\";\n\n String sqlDesc = \"CREATE TABLE IF NOT EXISTS descriptions (\\n\"\n + \" id integer,\\n\"\n + \" shifts text NOT NULL\\n\"\n + \");\";\n\n try (Statement stmt = conn.createStatement()) {\n // create a new table\n stmt.execute(sqlUrl);\n stmt.execute(sqlDesc);\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "public void createAccountTable() throws SQLException {\r\n\t\tConnection connection = dbAdministration.getConnection();\r\n\t\t// Prüfung, ob Tabelle bereits besteht\r\n\t\tResultSet resultSet = connection.getMetaData().getTables(\"%\", \"%\", \"%\", new String[] { \"TABLE\" });\r\n\t\tboolean shouldCreateTable = true;\r\n\t\twhile (resultSet.next() && shouldCreateTable) {\r\n\t\t\tif (resultSet.getString(\"TABLE_NAME\").equalsIgnoreCase(\"ACCOUNT\")) {\r\n\t\t\t\tshouldCreateTable = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tresultSet.close();\r\n\r\n\t\tif (shouldCreateTable) {\r\n\t\t\tStatement statement = connection.createStatement();\r\n\t\t\tString sql = \"CREATE table account (id int not null primary key, owner varchar(\"\r\n\t\t\t\t\t+ DatabaseAdministration.ownerLength + \") not null, number varchar(4) not null)\";\r\n\t\t\t// Tabelle wird erstellt\r\n\t\t\tstatement.execute(sql);\r\n\t\t\tstatement.close();\r\n\t\t\tlogger.info(\"SQL-Statement ausgeführt: \" + sql);\r\n\t\t\tlogger.info(\"Tabelle \\\"Account\\\" wurde erstellt.\");\r\n\t\t\tbankAccountExists = false;\r\n\t\t\t// Das Bank-Konto wird angelegt\r\n\t\t\taddAccount(\"0000\", \"BANK\", BigDecimal.ZERO);\r\n\t\t\tbankAccountExists = true;\r\n\t\t}\r\n\t\tconnection.close();\r\n\t}" ]
[ "0.8760193", "0.85601187", "0.7993443", "0.79824233", "0.77957034", "0.7785464", "0.7748759", "0.770244", "0.765167", "0.7613674", "0.7584731", "0.752439", "0.74418765", "0.74066573", "0.74018896", "0.7400455", "0.73901016", "0.73888415", "0.73812175", "0.73571867", "0.7343749", "0.7317896", "0.7302256", "0.7283342", "0.72683483", "0.72267246", "0.72075313", "0.7195078", "0.7192369", "0.7185007", "0.71843773", "0.71830803", "0.7166163", "0.7163676", "0.7150658", "0.7141208", "0.7130363", "0.71301144", "0.7125509", "0.7121089", "0.7109795", "0.7108904", "0.7106345", "0.70886964", "0.7058488", "0.704347", "0.7033177", "0.70307446", "0.7024379", "0.7015311", "0.7012759", "0.70095193", "0.7007829", "0.7003506", "0.6998765", "0.6997444", "0.6986766", "0.6986345", "0.6975114", "0.6962421", "0.6959525", "0.6956812", "0.69516563", "0.6947759", "0.69379985", "0.6929894", "0.69212526", "0.69175935", "0.6917341", "0.69152707", "0.68928623", "0.6891717", "0.6880925", "0.6880384", "0.6874086", "0.6873246", "0.68449396", "0.683888", "0.68287385", "0.6817705", "0.6815863", "0.68127245", "0.68126184", "0.6806682", "0.6787476", "0.67869806", "0.6781323", "0.677781", "0.6776329", "0.6755171", "0.6751458", "0.674786", "0.67310035", "0.6728931", "0.67257464", "0.6724741", "0.6720229", "0.6717066", "0.67035514", "0.67030513", "0.66917175" ]
0.0
-1
Put (or insert) a row
public static void addRecord(TableName tableName, String rowKey, String family, String qualifier, String value) throws IOException { Connection cn = ConnectionFactory.createConnection(conf); try { Table table = cn.getTable(tableName); Put put = new Put(Bytes.toBytes(rowKey)); put.addColumn(Bytes.toBytes(family), Bytes.toBytes(qualifier), Bytes .toBytes(value)); table.put(put); System.out.println("insert recorded " + rowKey + " to table " + tableName + " ok."); } catch (IOException e) { e.printStackTrace(); } finally { if (cn != null) cn.close(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int addRow(RowData row_data) throws IOException;", "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 }", "public void putRowToTable(String userId, String restaurantId, String order, Double price) throws IOException;", "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 newRow();", "public void insertRow() throws SQLException\n {\n m_rs.insertRow();\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 addRow(String rowName);", "Row createRow();", "public void commitRow(byte[] row, long startId, long commitId,\n boolean isDelete, Integer lockId) throws IOException;", "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 newRow(List<C> row) throws Exception;", "public void moveToInsertRow() throws SQLException\n {\n m_rs.moveToInsertRow();\n }", "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 boolean put() {\n return db.insert (TABLE, createColumns(), createValues());\n }", "@Override\n public SqlDatabaseTable insertIntoTable(SqlDatabaseTable table, List<String> row) {\n executeSql(getInsertSql(table, Collections.singletonList(row)));\n return table;\n }", "public void addRow(ResultSetRow row) throws SQLException {\n/* 231 */ notSupported();\n/* */ }", "public void insert() throws SQLException;", "@Test(expected = NullPointerException.class)\n public void testNullPut() throws IOException {\n putRowInDB(table, null);\n }", "public void commitRow(byte[] row, long startId, long commitId,\n boolean isDelete) throws IOException;", "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 }", "private void addRowToPreparedStatement(Table table, Row row,\n\t\t\tPreparedStatement pstmt) throws SQLException, IOException {\n\t\tint index = 0;\n\t\t//\n\t\t// Set a parameter for each cell. For some types we have to\n\t\t// do an explicit NULL check here.\n\t\t//\n\t\tfor (Column column : table.getColumns()) {\n\t\t\tindex++;\n\t\t\tDataType type = column.getType();\n\t\t\tString columnName = column.getName();\n\t\t\tswitch (type) {\n\t\t\t\tcase BINARY :\n\t\t\t\t\tif (row.getInt(columnName) == null) {\n\t\t\t\t\t\tpstmt.setNull(index, Types.INTEGER);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpstmt.setInt(index, row.getInt(columnName));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase BOOLEAN :\n\t\t\t\t\tpstmt.setBoolean(index, row.getBoolean(columnName));\n\t\t\t\t\tbreak;\n\t\t\t\tcase BYTE :\n\t\t\t\t\tpstmt.setByte(index, row.getByte(columnName));\n\t\t\t\t\tbreak;\n\t\t\t\tcase DOUBLE :\n\t\t\t\t\tif (row.getDouble(columnName) == null) {\n\t\t\t\t\t\tpstmt.setNull(index, Types.DOUBLE);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpstmt.setDouble(index, row.getDouble(columnName));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase FLOAT :\n\t\t\t\t\tpstmt.setFloat(index, row.getFloat(columnName));\n\t\t\t\t\tbreak;\n\t\t\t\tcase INT :\n\n\t\t\t\t\tif (row.getShort(columnName) == null) {\n\t\t\t\t\t\tpstmt.setNull(index, Types.INTEGER);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpstmt.setShort(index, row.getShort(columnName));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase LONG :\n\t\t\t\t\tif (row.getInt(columnName) == null) {\n\t\t\t\t\t\tpstmt.setNull(index, Types.BIGINT);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpstmt.setLong(index, row.getInt(columnName));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase MONEY :\n\t\t\t\t\tpstmt.setBigDecimal(index, row.getBigDecimal(columnName));\n\t\t\t\t\tbreak;\n\t\t\t\tcase NUMERIC :\n\t\t\t\t\tpstmt.setFloat(index, row.getFloat(columnName));\n\t\t\t\t\tbreak;\n\t\t\t\tcase OLE :\n\t\t\t\t\tpstmt.setBytes(index, row.getBytes(columnName));\n\t\t\t\t\tbreak;\n\t\t\t\tcase SHORT_DATE_TIME :\n\t\t\t\t\tif (row.getDate(columnName) == null) {\n\t\t\t\t\t\tpstmt.setNull(index, Types.DATE);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpstmt.setDate(index,\n\t\t\t\t\t\t\t\tnew java.sql.Date(row.getDate(columnName)\n\t\t\t\t\t\t\t\t\t\t.getTime()));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault :\n\t\t\t\t\tpstmt.setString(index, row.getString(columnName));\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\n\t\t//\n\t\t// Add the statement to the batch\n\t\t//\n\t\tpstmt.addBatch();\n\t}", "void addRowsLock();", "public void addRow(ResultRow row) {\r\n rows.add(row);\r\n }", "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 }", "Object insert(String key, Object param);", "void put(int row, int column, @NonNull TObj item) {\n SparseArrayCompat<TObj> array = mData.get(row);\n if (array == null) {\n array = new SparseArrayCompat<>();\n array.put(column, item);\n mData.put(row, array);\n } else {\n array.put(column, item);\n }\n }", "public void setRow(int newRow) {\n this.row = newRow;\n }", "public void AddRow(String Table, String Value)\r\n {\n }", "protected abstract E newRow();", "private static void insertRow(HTable htable, byte[] rowKey, byte[] family, Map<byte[], byte[]> qualifierValueMap)\n throws IOException {\n Put put = new Put(rowKey);\n for (Map.Entry<byte[], byte[]> entry : qualifierValueMap.entrySet()) {\n int key = Bytes.toInt(entry.getKey());\n int value = Bytes.toInt(entry.getValue());\n//System.out.println(\"In Map, the key = \"+key+\", the value = \"+value);\n put.add(family, entry.getKey(), entry.getValue());\n }\n for (Map.Entry<byte[], List<KeyValue>> entry : (Set<Map.Entry<byte[], List<KeyValue>>>) put.getFamilyMap().entrySet()) {\n byte[] keyBytes = entry.getKey();\n String familyString = Bytes.toString(keyBytes);\n//System.out.println(\"Family: \"+familyString+\"\\n\");\n List<KeyValue> list = entry.getValue();\n for (KeyValue kv : list) {\n byte[] kkk = kv.getQualifier();\n byte[] vvv = kv.getValue();\n int index = Bytes.toInt(kkk);\n int fid = Bytes.toInt(vvv);\n//System.out.println(\" (\"+index+\"th FID) = \"+fid);\n }\n }\n htable.put(put);\n }", "public void addRow(Row row) {\r\n\t\trows.add(row);\r\n\t}", "public void commitRow(Vector<Object> rowData)\n\t\t\tthrows SQLException\n\t{\n\t\tObject id = rowData.get(0);\n\t\t\n\t\tString statement = null;\n\t\tlong querytime = 0;\n\t\t\n\t\tif( id == null \n\t\t\t\t|| !TableHelper.idExists(id.toString(), getDBTableName())\n\t\t\t)\n\t\t{\n\t\t\t// insert\n\t\t\tstatement = prepareInsertStatement(rowData);\n\t\t} else {\n\t\t\t// update\n\t\t\tstatement = prepareUpdateStatement(rowData);\n\t\t}\n\n\t\tDBConnector.getInstance().executeUpdate(statement);\n\t\tquerytime = DBConnector.getInstance().getQueryTime();\n\t\t\n\t\tupdateReferencesFor((String)id,rowData);\n\t\tquerytime += DBConnector.getInstance().getQueryTime();\n\t\t\t\n\t\tApplicationLogger.logDebug(\n\t\t\t\tthis.getClass().getSimpleName()\n\t\t\t\t\t+ \".commitRow time: \"+querytime+ \" ms\"\n\t\t\t);\n\t}", "public void addRow(String tableName, String key, String columnFam, String columnName, String val)\r\n\t\t\tthrows IOException {\n\t\tHTableInterface table = con.getTable(tableName);\r\n\t\tPut row = new Put(Bytes.toBytes(key));\r\n\t\trow.add(Bytes.toBytes(columnFam.replaceAll(\"[^A-Za-z0-9 ]\", \"\")),\r\n\t\t\t\tBytes.toBytes(columnName.replaceAll(\"[^A-Za-z0-9 ]\", \"\")), Bytes.toBytes(val));\r\n\t\ttable.put(row);\r\n\r\n\t\t// store full predicate URI\r\n\t\tString pred;\r\n\t\tif (columnFam.compareTo(\"literal\") != 0) {\r\n\t\t\tpred = columnFam;\r\n\t\t} else {\r\n\t\t\tpred = columnName;\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"PRED ENTRY: \" + pred + \" \" + pred.replaceAll(\"[^A-Za-z0-9 ]\", \"\"));\r\n\t\ttable = con.getTable(\"predicates\");\r\n\t\trow = new Put(Bytes.toBytes(pred.replaceAll(\"[^A-Za-z0-9 ]\", \"\")));\r\n\t\trow.add(Bytes.toBytes(\"URI\"), Bytes.toBytes(\"\"), Bytes.toBytes(pred));\r\n\t\ttable.put(row);\r\n\t}", "void insert(OrderPreferential record) throws SQLException;", "public int addRow(List row) {\n\t\tdata.add(row);\n\t\tfireTableRowsInserted(data.size()-1, data.size()-1);\n\t\treturn(data.size() -1);\n\t}", "public void updateRow() throws SQLException\n {\n m_rs.updateRow();\n }", "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 }", "<T> int update(T obj, String keyColumn);", "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 }", "void insert(VRpDyCellBh record);", "protected abstract E modifyRow(E rowObject);", "public long insert();", "@Override\n\tpublic int insert(Cell record) {\n\t\treturn 0;\n\t}", "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 }", "Integer insert(JzAct record);", "void insert(VRpMnCellHoBhIbc 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 }", "int insert(RecordLike record);", "void addEntry(byte command, int row_index) {\r\n addCommand(command);\r\n addParameter(row_index);\r\n }", "public Key insert(Transaction tx,Tuple t) throws RelationException;", "int insert(TCpySpouse record);", "public void addCertainRow(String username, String pin, String information, String role, String hold)\n {\n String insertStr;\n try{\n\n insertStr=\"INSERT IGNORE INTO user (username, pin, information, role, hold) VALUES(\"\n +quotate(username)+\",\"\n +quotate(pin)+\",\"\n +quotate(information)+\",\"\n +quotate(role)+\",\"\n +quotate(hold)\n +\")\";\n\n stmt.executeUpdate(insertStr);\n\n } catch(Exception e){\n System.out.println(\"Error occurred in inserting data\");\n }\n return;\n }", "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 static void putCell(HTable table, String rowKey, String columnFamily, String identifier, String data)\n\t\t\tthrows Exception {\n\t\tPut p1 = new Put(Bytes.toBytes(rowKey));\n\t\tp1.addColumn(Bytes.toBytes(columnFamily), Bytes.toBytes(identifier), Bytes.toBytes(data));\n\t\ttable.put(p1);\n\t\tSystem.out.println(\"put '\" + rowKey + \"', '\" + columnFamily + \":\" + identifier + \"', '\" + data + \"'\");\n\t}", "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 }", "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 int insert(Contract record) {\n\t\treturn contractMapper.insert(record);\n\t}", "public void insert(Transaction trans, DBObject obj, Rowid rowid, int tsize,\n boolean logging) {\n short tid = rowid.getIndex();\n\n // Write UNDO info, which is just the tid, needed to 'remove' the tuple\n if (logging) {\n attachUndo(UNDO_INSERT, 2).getData().putShort(tid);\n }\n\n // write the object into the slot\n short loc = dir.loc(tid);\n pageBuffer.put(loc + RowHeader.getOverhead(), obj);\n\n // set deleted false (NOTE: this must happen BEFORE the REDO log below)\n setDeleted(tid, false);\n\n // Write REDO info, which is the inserted row and its new index id\n if (logging) {\n ByteBuffer bb = attachRedo(REDO_INSERT, tsize + 2).getData();\n bb.putShort(tid);\n pageBuffer.get(loc, bb.array(), 2, tsize);\n }\n }", "int insert(Storage record);", "int insert(Storage record);", "public void writeInsertFieldsIntoRow(AbstractRecord record, AbstractSession session) {\n if (this.isReadOnly()) {\n return;\n }\n record.put(this.getField(), null);\n }", "int insert(R_order record);", "int insert(Cargo 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 }", "public void moveToCurrentRow() throws SQLException {\n\n try {\n debugCodeCall(\"moveToCurrentRow\");\n checkClosed();\n insertRow = null;\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "RowValue createRowValue();", "int insert(Commet record);", "void inserSingletRow(String row) {\n String[] values = row.trim().split(\"\\\\s+\");\n insertSingleRow(values);\n }", "int insert(Usertype record);", "@Override\n public void executeQuery() {\n try {\n Put put = new Put(this.userId.getBytes());\n put.add(\"cf\".getBytes(), Bytes.toBytes(this.poi.getTimestamp()), this.poi.getBytes());\n this.table.put(put);\n \n } catch (IOException ex) {\n Logger.getLogger(InsertPOIVisitClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "Row<K, C> execute();", "public boolean addRow(TableRow row) {\n\n if (row.getContent().size() != columns.size())\n throw new IllegalArgumentException(\"El nombre de columnes de la nova fila no coincideix amb les de la taula\");\n\n for (String column : getColumnNames())\n if (!row.getContent().containsKey(column))\n throw new IllegalArgumentException(\"La nova fila no conté la columna: \" + column);\n\n return dataStructure.add(row);\n }", "RowValues createRowValues();", "int insert(Body record);", "int insert(Position record);", "int insert(Ltsprojectpo record);", "public int put(int key, String value) {\n int retval = 0;\n\n String sql = \"INSERT INTO data_map(data_key, data_val) VALUES(?, ?)\";\n\n try (Connection con = this.connect();\n PreparedStatement pstmt = con.prepareStatement(sql)) {\n pstmt.setInt(1, key);\n pstmt.setString(2, value);\n retval = pstmt.executeUpdate();\n }\n catch (SQLException e) {\n retval = -1;\n }\n\n return retval;\n }", "public void addRow(Row r) {\n\t\tcontainingRows.add(r);\n\t}", "int insert(Prueba record);", "public static void AddBooking(Booking booking){\n \n \n try (Connection connection = DbConnector.connectToDb();\n Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM booking\")){\n \n resultSet.moveToInsertRow();\n resultSet.updateInt(\"BookingNumber\", booking.getBookingNumber());\n resultSet.updateString(\"FlightNumber\", booking.getFlightNumber());\n resultSet.updateDouble(\"Price\", booking.getPrice());\n resultSet.updateString(\"CabinClass\", booking.getCabinClass());\n resultSet.updateInt(\"Quantity\", booking.getQuantity());\n resultSet.updateInt(\"Insurance\", booking.getInsurance());\n resultSet.insertRow();\n \n \n }\n catch(SQLException sqle){\n System.out.println(sqle.toString());\n } \n \n \n \n \n }", "public int insert(IEntity entity) throws SQLException;", "void insert(BnesBrowsingHis record) throws SQLException;", "public void addRow(Spedizione spedizione){\n spedizioni.add(spedizione);\n fireTableChanged(new TableModelEvent(this));\n }", "void setElement(int row, String field, Object value);", "public void addRow() {\n tableModel.insertRow(this.getRowCount(), new String[]{});\n this.setModel(tableModel);\n\n }", "public static void addRecords(String tableName, String rowKey, String family,\n\t\t\tMap<String, String> vMap) throws IOException {\n\n\t\tHTable table = connectTable(tableName);\n\t\ttable.setAutoFlush(false);\n\t\tPut p = new Put(Bytes.toBytes(rowKey));\n\t\tfor (String k : vMap.keySet()) {\n\t\t\t// LOG.debug(k+\" -> \"+vMap.get(k));\n\t\t\tp.add(Bytes.toBytes(family), Bytes.toBytes(k),\n\t\t\t\t\tBytes.toBytes(vMap.get(k)));\n\t\t}\n\t\ttable.put(p);\n\t\ttable.flushCommits();\n\t\t\n\t\treleaseTable(table);\n\t\tLOG.info(\"insert record k:\" + rowKey + \" to table[\" + tableName\n\t\t\t\t+ \"] ok.\");\n\t}", "int insert(ParkCurrent record);", "public void incrementRow() {\n setRowAndColumn(row + 1, column);\n }", "public abstract boolean insert(Key key);", "int insert(PrhFree record);", "int insert(Engine record);", "public void setRow(int value) {\n this.row = value;\n }", "int insert(Assist_table record);", "public synchronized void putMultiple(List<kelondroRow.Entry> rows) throws IOException {\n Iterator<kelondroRow.Entry> i = rows.iterator();\r\n kelondroRow.Entry row;\r\n int pos;\r\n byte[] key;\r\n TreeMap<Integer, kelondroRow.Entry> old_rows_ordered = new TreeMap<Integer, kelondroRow.Entry>();\r\n ArrayList<kelondroRow.Entry> new_rows_sequential = new ArrayList<kelondroRow.Entry>();\r\n assert this.size() == index.size() : \"content.size() = \" + this.size() + \", index.size() = \" + index.size();\r\n while (i.hasNext()) {\r\n row = i.next();\r\n key = row.getColBytes(0);\r\n pos = index.geti(key);\r\n if (pos < 0) {\r\n new_rows_sequential.add(row);\r\n } else {\r\n old_rows_ordered.put(new Integer(pos), row);\r\n }\r\n }\r\n // overwrite existing entries in index\r\n super.setMultiple(old_rows_ordered);\r\n \r\n // write new entries to index\r\n addUniqueMultiple(new_rows_sequential);\r\n assert this.size() == index.size() : \"content.size() = \" + this.size() + \", index.size() = \" + index.size();\r\n }", "public boolean addHighScoreRow(String id, long score, long datetime, String character, String scene){\n db = helper.getWritableDatabase();\n ContentValues newHighScore = new ContentValues(); // Store values with column names as keys\n newHighScore.put(SQLHelper.KEY_ID, id);\n newHighScore.put(SQLHelper.KEY_SCORE, score);\n newHighScore.put(SQLHelper.KEY_DATETIME, datetime);\n newHighScore.put(SQLHelper.KEY_CHARACTER, character);\n newHighScore.put(SQLHelper.KEY_SCENE, scene);\n\n try{\n db.insertOrThrow(SQLHelper.DB_TABLE_SCORES, null, newHighScore); // Try adding row to table\n } catch(Exception e) {\n Log.e(\"Error in row insert \", e.toString());\n e.printStackTrace();\n db.close();\n return false;\n }\n db.close();\n return true;\n }", "int insert(Clazz record);", "public void dbAddRow(EdaContext xContext)\n\tthrows IcofException{\n\n\t\t// Get the next id for this new row.\n\t\tsetNextIdStatement(xContext);\n\t\tlong id = getNextBigIntId(xContext);\n\t\tcloseStatement(xContext);\n\n\t\t// Create the SQL query in the PreparedStatement.\n\t\tsetAddRowStatement(xContext);\n\t\ttry {\n\t\t\tgetStatement().setLong(1, id);\n\t\t\tgetStatement().setLong(2, getFromChangeReq().getId());\n\t\t\tgetStatement().setLong(3, getToChangeReq().getId());\n\t\t\tgetStatement().setString(4, getRelationshipb());\n\t\t}\n\t\tcatch(SQLException trap) {\n\t\t\tIcofException ie = new IcofException(this.getClass() .getName(),\n\t\t\t \"dbAddRow()\",\n\t\t\t IcofException.SEVERE,\n\t\t\t \"Unable to prepare SQL statement.\",\n\t\t\t IcofException.printStackTraceAsString(trap) + \n\t\t\t \"\\n\" + getQuery());\n\t\t\txContext.getSessionLog().log(ie);\n\t\t\tthrow ie;\n\t\t}\n\n\t\t// Run the query.\n\t\tif (! insertRow(xContext)) {\n\t\t\tIcofException ie = new IcofException(this.getClass() .getName(),\n\t\t\t \"dbAddRow()\",\n\t\t\t IcofException.SEVERE,\n\t\t\t \"Unable to insert new row.\\n\",\n\t\t\t \"QUERY: \" + getQuery());\n\t\t\txContext.getSessionLog().log(ie);\n\t\t\tthrow ie;\n\t\t}\n\n\t\t// Close the PreparedStatement.\n\t\tcloseStatement(xContext);\n\n\t\t// Load the data for the new row.\n\t\tsetId(id);\n\t\tdbLookupById(xContext); \n\n\t}", "@Writer\n int insert(LuckyBag record);", "public void setRow(int row)\n\t{\n\t\tthis.row = row;\n\t}" ]
[ "0.65718156", "0.64670986", "0.6465298", "0.6425223", "0.6382653", "0.63141805", "0.6233362", "0.6181598", "0.61676246", "0.61609954", "0.6151328", "0.61348027", "0.612553", "0.6102507", "0.60792017", "0.60394263", "0.6016431", "0.60035324", "0.59992", "0.5994551", "0.5982947", "0.5966174", "0.5941748", "0.5917723", "0.5903368", "0.5882698", "0.58751386", "0.5866972", "0.58667225", "0.585516", "0.58284795", "0.58281493", "0.581102", "0.5773586", "0.5767313", "0.5759857", "0.5759635", "0.57546484", "0.5749212", "0.5731112", "0.57234395", "0.5707681", "0.57073236", "0.5700507", "0.56803244", "0.56658876", "0.56529814", "0.56468195", "0.56458443", "0.5636756", "0.56361175", "0.5620198", "0.56188583", "0.5605251", "0.5602496", "0.55983996", "0.5592669", "0.5587747", "0.55860174", "0.55818206", "0.55818206", "0.55766684", "0.5570204", "0.5570008", "0.55648315", "0.55647767", "0.55631477", "0.5561236", "0.55609584", "0.55607504", "0.55559045", "0.5555413", "0.5554746", "0.5553594", "0.55229056", "0.5518525", "0.55181336", "0.55154544", "0.55123943", "0.55036855", "0.55014336", "0.5501228", "0.5492699", "0.54889804", "0.5466259", "0.5463538", "0.5462674", "0.54551333", "0.54527783", "0.54525936", "0.5452555", "0.5449218", "0.54411143", "0.5439058", "0.543384", "0.5425167", "0.54207796", "0.5414285", "0.54126734", "0.5409489" ]
0.6003215
18
Scan (or list) a table
public static void getAllRecord(TableName tableName) throws IOException { Connection cn = ConnectionFactory.createConnection(conf); try { Table table = cn.getTable(tableName); Scan s = new Scan(); ResultScanner ss = table.getScanner(s); for (Result r : ss) { for (KeyValue kv : r.raw()) { System.out.print(new String(kv.getRow()) + " "); System.out.print(new String(kv.getFamily()) + ":"); System.out.print(new String(kv.getQualifier()) + " "); System.out.print(kv.getTimestamp() + " "); System.out.println(new String(kv.getValue())); } } } catch (IOException e) { e.printStackTrace(); } finally { if (cn != null) cn.close(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static ResultScanner scanAll(HTable table) throws Exception {\n\t\tScan s = new Scan();\n\t\tResultScanner rs = table.getScanner(s);\n\t\treturn rs;\n\t}", "@Override\n public Status scan(String table, String startkey, int recordcount, Set<String> fields,\n Vector<HashMap<String, ByteIterator>> result) {\n ScanM request = ScanM.newBuilder().setTable(table).build();\n Result response;\n try {\n response = blockingStub.scan(request);\n } catch (StatusRuntimeException e) {\n return Status.ERROR;\n }\n return Status.OK;\n }", "public ResultSet selecionar(String tabela);", "@Override\n public int scan(final String table,\n final String startkey,\n final int recordcount,\n final Set<String> fields,\n final Vector<HashMap<String, ByteIterator>> result) {\n return Ok;\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 Table<Integer, Integer, String> getData();", "List<TABLE41> selectByExample(TABLE41Example example);", "public List<T> enumerate() throws SQLException;", "Table getTable();", "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 TapTable findOneTable(String tableName);", "java.util.List<com.sanqing.sca.message.ProtocolDecode.Table> \n getTableList();", "@Test\n// @Ignore(\"KnownBug: ACCUMULO-3646\")\n public void testInjectOnScan_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\n // attach InjectIterator\n IteratorSetting itset = new IteratorSetting(15, InjectIterator.class);\n conn.tableOperations().attachIterator(tableName, itset, EnumSet.of(IteratorUtil.IteratorScope.scan));\n itset = new IteratorSetting(16, DebugIterator.class);\n conn.tableOperations().attachIterator(tableName, itset, EnumSet.of(IteratorUtil.IteratorScope.scan));\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 // fails on BatchScanner when iterator generates entries past its range\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 }", "public abstract String [] listTables();", "@Override\n\tpublic void scan(Transaction tx) {\n\n\t}", "@Test\n public void testInjectOnScan_Empty_Reg() 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\n // attach InjectIterator\n IteratorSetting itset = new IteratorSetting(15, InjectIterator.class);\n conn.tableOperations().attachIterator(tableName, itset, EnumSet.of(IteratorUtil.IteratorScope.scan));\n itset = new IteratorSetting(16, DebugIterator.class);\n conn.tableOperations().attachIterator(tableName, itset, EnumSet.of(IteratorUtil.IteratorScope.scan));\n\n // read back both tablets in parallel\n Scanner scan = conn.createScanner(tableName, Authorizations.EMPTY);\n// Key startKey = new Key(new Text(\"d\"), cf, cq);\n\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)); // passes on normal scanner\n actual.put(k, v);\n }\n Assert.assertEquals(expect, actual);\n\n // delete test data\n conn.tableOperations().delete(tableName);\n }", "public Collection<TapTable> findAllTables();", "public static ResultScanner scanRange(HTable table, String startrow, String endrow) throws Exception {\n\t\tScan s = new Scan(Bytes.toBytes(startrow), Bytes.toBytes(endrow));\n\t\tResultScanner rs = table.getScanner(s);\n\t\treturn rs;\n\t}", "List<List<Object>> getTableValues(TableParameters tableParameters);", "void visit(final Table table);", "public void readCompleteTable()\n\t{\n\t\topen();\n\t\tList<Map<Object, String>> tbl = HtmlTable.rowsFrom(table);\n\t\t//System.out.println(tbl);\n\n\t}", "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}", "ScanResult<String> scan(String cursor, String pattern, long count);", "List<Assist_table> selectByExample(Assist_tableExample example);", "Table getTables(int index);", "Iterator<TabularData> dataIterator();", "@Override\n\tpublic void getFields(List<String> table) {\n\t\t\n\t}", "public void testScanDataByIndex() {\n LOG.info(\"Entering testScanDataByIndex.\");\n\n Table table = null;\n ResultScanner scanner = null;\n try {\n table = conn.getTable(tableName);\n\n // Create a filter for indexed column.\n Filter filter = new SingleColumnValueFilter(Bytes.toBytes(\"info\"), Bytes.toBytes(\"name\"),\n CompareOp.EQUAL, \"Li Gang\".getBytes());\n Scan scan = new Scan();\n scan.setFilter(filter);\n scanner = table.getScanner(scan);\n LOG.info(\"Scan indexed data.\");\n\n for (Result result : scanner) {\n for (Cell cell : result.rawCells()) {\n LOG.info(Bytes.toString(CellUtil.cloneRow(cell)) + \":\"\n + Bytes.toString(CellUtil.cloneFamily(cell)) + \",\"\n + Bytes.toString(CellUtil.cloneQualifier(cell)) + \",\"\n + Bytes.toString(CellUtil.cloneValue(cell)));\n }\n }\n LOG.info(\"Scan data by index successfully.\");\n } catch (IOException e) {\n LOG.error(\"Scan data by index failed \", e);\n } finally {\n if (scanner != null) {\n // Close the scanner object.\n scanner.close();\n }\n try {\n if (table != null) {\n table.close();\n }\n } catch (IOException e) {\n LOG.error(\"Close table failed \", e);\n }\n }\n\n LOG.info(\"Exiting testScanDataByIndex.\");\n }", "public static void main(String[] args) throws Exception {\n\n\t\tHTable table = new HTable(conf, \"apitable\");\n\n\t\t// ResultScanner rs = HBaseDAO.scanRange(table, \"2013-07-10*\", \"2013-07-11*\");\n\t\t// ResultScanner rs = HBaseDAO.scanRange(table, \"100001\", \"100003\");\n\t\tResultScanner rs = HBaseDAO.scanAll(table);\n\n\t\tfor (Result r : rs) {\n\t\t\tSystem.out.println(\"Scan: \" + r);\n\t\t}\n\t\ttable.close();\n\n\t\t// HBaseDAO.createTable(\"apitable\", \"testcf\");\n\t\t// HBaseDAO.putRow(\"apitable\", \"100001\", \"testcf\", \"name\", \"liyang\");\n\t\t// HBaseDAO.putRow(\"apitable\", \"100003\", \"testcf\", \"name\", \"leon\");\n\t\t// HBaseDAO.deleteRow(\"apitable\", \"100002\");\n\t\t// HBaseDAO.getRow(\"apitable\", \"100003\");\n\t\t// HBaseDAO.deleteTable(\"apitable\");\n\n\t}", "List<Table2> selectByExample(Table2Example example);", "@Test\n public void testInsertScan() throws Exception {\n Connector conn = tester.getConnector();\n\n // create table, add table split, write data\n final String tableName = getUniqueNames(1)[0];\n Map<Key, Value> input = new HashMap<>();\n input.put(new Key(\"aTablet1\", \"\", \"cq\"), new Value(\"7\".getBytes(StandardCharsets.UTF_8)));\n input.put(new Key(\"kTablet2\", \"\", \"cq\"), new Value(\"7\".getBytes(StandardCharsets.UTF_8)));\n input.put(new Key(\"zTablet2\", \"\", \"cq\"), new Value(\"7\".getBytes(StandardCharsets.UTF_8)));\n SortedSet<Text> splitset = new TreeSet<>();\n splitset.add(new Text(\"f\"));\n TestUtil.createTestTable(conn, tableName, splitset, input);\n\n IteratorSetting itset = new IteratorSetting(16, DebugIterator.class);\n conn.tableOperations().attachIterator(tableName, itset, EnumSet.of(IteratorUtil.IteratorScope.scan));\n\n // expected data back\n Map<Key, Value> expect = new HashMap<>(input);\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 actual.put(k, v);\n }\n Assert.assertEquals(expect, actual);\n\n // delete test data\n conn.tableOperations().delete(tableName);\n }", "protected void scan() throws TableFunctionMalformedException {\r\n\t\t\t\r\n\t\tint kw;\r\n\t\t\r\n\t\tgetName();\r\n\t\tskipWhite();\r\n\t\tkw = lookup(value);\r\n\t\tif (kw == -1)\r\n\t\t\ttoken = 'x';\r\n\t\telse\r\n\t\t\ttoken = kwcode[kw];\r\n\t\t// Debug.println(\"\\n!!!Value = \" + value);\r\n\t}", "@Test\n// @Ignore(\"KnownBug: ACCUMULO-3646\")\n public void testInjectOnScan() throws Exception {\n Connector conn = tester.getConnector();\n\n // create table, add table split, write data\n final String tableName = getUniqueNames(1)[0];\n Map<Key, Value> input = new HashMap<>();\n input.put(new Key(\"aTablet1\", \"\", \"cq\"), new Value(\"7\".getBytes(StandardCharsets.UTF_8)));\n input.put(new Key(\"kTablet2\", \"\", \"cq\"), new Value(\"7\".getBytes(StandardCharsets.UTF_8)));\n input.put(new Key(\"zTablet2\", \"\", \"cq\"), new Value(\"7\".getBytes(StandardCharsets.UTF_8)));\n SortedSet<Text> splitset = new TreeSet<>();\n splitset.add(new Text(\"f\"));\n TestUtil.createTestTable(conn, tableName, splitset, input);\n\n // expected data back\n Map<Key, Value> expect = new HashMap<>(input);\n expect.putAll(HardListIterator.allEntriesToInject);\n\n // attach InjectIterator\n IteratorSetting itset = new IteratorSetting(15, InjectIterator.class);\n conn.tableOperations().attachIterator(tableName, itset, EnumSet.of(IteratorUtil.IteratorScope.scan));\n itset = new IteratorSetting(16, DebugIterator.class);\n conn.tableOperations().attachIterator(tableName, itset, EnumSet.of(IteratorUtil.IteratorScope.scan));\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)); // Fails\n actual.put(k, v);\n }\n //TestUtil.assertEqualEntriesRowColFColQ(expect, actual);\n Assert.assertEquals(expect, actual);\n\n // delete test data\n conn.tableOperations().delete(tableName);\n }", "private void select(String tableName) {\n String query = \"SELECT * FROM \" + tableName;\n\n this.executeSelect(query);\n }", "public void readValuesfromtableWithoutHeadings()\n\t {\n\t\t open();\n\t\t List<Map<Object, String>> tab1= withColumns(\"Last Name \" ,\"First Name\",\"Email\", \"Due\" , \"Web Site\" , \"My Test\") \n\t\t\t\t .readRowsFrom(table);\n\t\t System.out.println(tab1);\n\t }", "private void calcTableList() throws SQLException {\n tableList = new TableList(session);\n SQLTokenizer[] tzs = tableListTokens.parse(SQLTokenizer.COMMA);\n for(int i = 0; tzs != null && i < tzs.length; i++) {\n if(tzs[i].countTokens() == 0) throw new SQLException(\"Syntax error\");\n String correlation = null;\n String table = tzs[i].getToken(0);\n int n = 1;\n if(tzs[i].getType(1) == Keyword.AS) {\n n++;\n }\n correlation = tzs[i].getToken(n);\n tableList.addTable(table, correlation);\n }\n }", "Object getTables();", "int cacheRowsWhenScan();", "Tablero consultarTablero();", "public RowStreamer(Iterable<KijiRowData> scanner, KijiTable table, int numRows,\n List<KijiColumnName> columns, KijiSchemaTable schemaTable) {\n mScanner = scanner;\n mTable = table;\n mNumRows = numRows;\n mColsRequested = columns;\n mSchemaTable = schemaTable;\n }", "@Test void testInterpretTable() {\n sql(\"select * from \\\"hr\\\".\\\"emps\\\" order by \\\"empid\\\"\")\n .returnsRows(\"[100, 10, Bill, 10000.0, 1000]\",\n \"[110, 10, Theodore, 11500.0, 250]\",\n \"[150, 10, Sebastian, 7000.0, null]\",\n \"[200, 20, Eric, 8000.0, 500]\");\n }", "public org.apache.spark.sql.SchemaRDD table (java.lang.String tableName) { throw new RuntimeException(); }", "List<List<Object>> getTableValues();", "@SneakyThrows\n public List<Map<String, String>> getTable(String tableName, int page, int pageSize) {\n try (CloseableHttpClient client = HttpClientBuilder.create()\n .setDefaultRequestConfig(getRequestConfig())\n .build()) {\n String url = KodexaPlatform.getUrl() + \"/api/stores/\" + ref.replace(\":\", \"/\") + \"/rows\";\n log.info(\"Connecting to [\" + url + \"]\");\n\n URIBuilder builder = new URIBuilder(url);\n builder.setParameter(\"page\", String.valueOf(page)).setParameter(\"pageSize\", String.valueOf(pageSize)).setParameter(\"table\", tableName);\n\n HttpGet httpGet = new HttpGet(builder.build());\n httpGet.addHeader(\"x-access-token\", KodexaPlatform.getAccessToken());\n\n HttpResponse response = client.execute(httpGet);\n\n if (response.getStatusLine().getStatusCode() != 200) {\n throw new KodexaException(\"Unable to create a session, check your access token and URL [\" + response.getStatusLine().getStatusCode() + \"]\");\n }\n\n String responseJson = IOUtils.toString(response.getEntity().getContent(), StandardCharsets.UTF_8);\n Page<StoredRow> rowPage = jsonOm.readValue(responseJson, new TypeReference<Page<StoredRow>>() {\n });\n\n return rowPage.getContent().stream().map(StoredRow::getData).collect(Collectors.toList());\n\n\n } catch (IOException e) {\n throw new KodexaException(\"Unable to create a session on Kodexa\", e);\n }\n }", "public List<Map<String, String>> getTable(String tableName) {\n return getTable(tableName, 1, 9999);\n\n }", "private void changeToScanTable() {\n\t\tswitch (fileType) {\n\t\tcase INVENTORY:\n\t\t\ttableView.setItems(presentationInventoryData);\n\t\t\tbreak;\n\t\tcase INITIAL:\n\t\t\ttableView.setItems(presentationInitialData);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\ttableView.getColumns().clear();\n\t\t\tbreak;\n\t\t} // End switch statement\n\t}", "void initTable();", "private TableInformation readTable(String tablePath, Component parent)\n {\n // Read the table's data from the database\n TableInformation tableInfo = dbTable.loadTableData(tablePath,\n false,\n false,\n false,\n false,\n parent);\n\n // Check that the data was successfully loaded from the database and\n // that the table isn't empty\n if (!tableInfo.isErrorFlag() && tableInfo.getData().length != 0)\n {\n // Get the table's type definition\n TypeDefinition typeDefn = tableTypeHandler.getTypeDefinition(tableInfo.getType());\n\n // Get the data and place it in an array for reference below. Add\n // columns to contain the table type and path\n String[][] data = CcddUtilities.appendArrayColumns(tableInfo.getData(), 2);\n int typeColumn = data[0].length - TYPE_COLUMN_DELTA;\n int pathColumn = data[0].length - PATH_COLUMN_DELTA;\n\n // Get the index of the column containing the data type for this\n // table if it has one\n int dataTypeColumn = typeDefn.getColumnIndexByInputType(InputDataType.PRIM_AND_STRUCT);\n\n // Step through each row\n for (int row = 0; row < data.length && !tableInfo.isErrorFlag(); row++)\n {\n // Use the index column to store the table path and type for\n // reference during script execution\n data[row][typeColumn] = tableInfo.getType();\n data[row][pathColumn] = tablePath;\n\n // Store the data from the table in the combined storage array\n combinedData = CcddUtilities.concatenateArrays(combinedData,\n new String[][] {data[row]});\n\n // Check if this is a table reference (a data type column was\n // found and it does not contain a primitive data type)\n if (dataTypeColumn != -1\n && !dataTypeHandler.isPrimitive(data[row][dataTypeColumn]))\n {\n // Get the column containing the variable name for this\n // table\n int varNameColumn = typeDefn.getColumnIndexByInputType(InputDataType.VARIABLE);\n\n // Check that a variable name column was found\n if (varNameColumn != -1)\n {\n // Get the column containing the array size for this\n // table\n int arraySizeColumn = typeDefn.getColumnIndexByInputType(InputDataType.ARRAY_INDEX);\n\n // Check if the data type or variable name isn't blank,\n // and if an array size column doesn't exist or that\n // the row doesn't reference an array definition. This\n // is necessary to prevent appending the prototype\n // information for this data type structure\n if ((!data[row][dataTypeColumn].isEmpty()\n || !data[row][varNameColumn].isEmpty())\n && (arraySizeColumn == -1\n || data[row][arraySizeColumn].isEmpty()\n || ArrayVariable.isArrayMember(data[row][varNameColumn])))\n {\n // Get the variable in the format\n // dataType.variableName, prepend a comma to\n // separate the new variable from the preceding\n // variable path, then break down the child table\n readTable(tablePath\n + \",\"\n + data[row][dataTypeColumn]\n + \".\"\n + data[row][varNameColumn],\n parent);\n }\n }\n // Table has no variable name column\n else\n {\n tableInfo.setErrorFlag();\n break;\n }\n }\n }\n }\n\n return tableInfo;\n }", "private List<Table> getTableFromStringTableName(String tableName) throws HyracksDataException {\n\n // Get all the tables\n if (generateAllTables) {\n // Remove the DBGEN_VERSION table and all children tables, parent tables will generate them\n return Table.getBaseTables().stream()\n .filter(table -> !table.equals(Table.DBGEN_VERSION) && !table.isChild())\n .collect(Collectors.toList());\n }\n\n // Search for the table\n List<Table> matchedTables = Table.getBaseTables().stream()\n .filter(table -> tableName.equalsIgnoreCase(table.getName())).collect(Collectors.toList());\n\n // Ensure the table was found\n if (matchedTables.isEmpty()) {\n throw new RuntimeDataException(ErrorCode.TPCDS_INVALID_TABLE_NAME, getFunctionIdentifier().getName(),\n tableName);\n }\n\n return matchedTables;\n }", "private static boolean chooseTable(Scanner scan) throws SQLException {\r\n\t\t\r\n\t\tboolean running = true;\r\n\t\t\r\n\t\tSystem.out.println(\"Choose a table to work with:\\n1. \"\r\n\t\t\t\t+ \"Students\\n2. Subject\\n3. Teachers\\n4. Close the program\\n\");\r\n\t\t\r\n\t\tint userChoice = scan.nextInt();\r\n\t\tscan.nextLine();\r\n\t\tif(userChoice == 4)\r\n\t\t{\r\n\t\t\trunning = false;\r\n\t\t}\r\n\t\telse if(userChoice > 4)\r\n\t\t{ \r\n\t\t\tSystem.out.println(\"Invalid table choice. Try Again.\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\ttManager = new JdbcTableManager(userChoice, scan);\r\n\t\t\ttManager.crudandSearchMenuForTable();\r\n\t\t}\r\n\t\t\t\r\n\t\t\r\n\t\treturn running;\r\n\t\t\r\n\t}", "private static void fillTableFromFile(HashTable table) {\n Scanner in;\n try {\n in = new Scanner(new FileInputStream(\"File.txt\"));\n } catch (FileNotFoundException e) {\n System.out.println(\"File 'File.txt' not found\");\n return;\n }\n while (in.hasNext()) {\n table.add(in.next());\n }\n }", "public Cursor getAllData(String table){\n return db.rawQuery(\"SELECT * FROM \" + table, null);\n }", "private static void selectRecordsFromDbUserTable() throws SQLException {\n\n\t\tConnection dbConnection = null;\n\t\tStatement statement = null;\n\n\t\tString selectTableSQL = \"SELECT * from spelers\";\n\n\t\ttry {\n\t\t\tdbConnection = getDBConnection();\n\t\t\tstatement = dbConnection.createStatement();\n\n\t\t\tSystem.out.println(selectTableSQL);\n\n\t\t\t// execute select SQL stetement\n\t\t\tResultSet rs = statement.executeQuery(selectTableSQL);\n\n\t\t\twhile (rs.next()) {\n \n String naam = rs.getString(\"naam\");\n\t\t\t\tint punten = rs.getInt(\"punten\");\n \n System.out.println(\"naam : \" + naam);\n\t\t\t\tSystem.out.println(\"punten : \" + punten);\n\t\t\t\t\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\n\t\t\tSystem.out.println(e.getMessage());\n\n\t\t} finally {\n\n\t\t\tif (statement != null) {\n\t\t\t\tstatement.close();\n\t\t\t}\n\n\t\t\tif (dbConnection != null) {\n\t\t\t\tdbConnection.close();\n\t\t\t}\n\n\t\t}\n\n\t}", "public static ResultScanner scanFilter(HTable table, String startrow, Filter filter) throws Exception {\n\t\tScan s = new Scan(Bytes.toBytes(startrow), filter);\n\t\tResultScanner rs = table.getScanner(s);\n\t\treturn rs;\n\t}", "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 }", "TableId table();", "@Override\n public Iterator<Iterable<T>> iterator() {\n return new TableIterator();\n }", "private HashMap<String, ArrayList<String>> getAllTableContents(String table) {\r\n return getAllTableContentsWhere(table, null, null);\r\n }", "public abstract void startSingleScan();", "@Override\n public ResultSet readTable (String tableName, String[] columns, int nThread) throws SQLException {\n tableName = tableName == null ? this.options.getSourceTable() : tableName;\n\n // If columns parameter is null, get it from options\n String allColumns = this.options.getSourceColumns() == null ? \"*\" : this.options.getSourceColumns();\n\n long offset = nThread * chunkSize;\n String sqlCmd;\n\n // Read table with source-query option specified\n if (options.getSourceQuery() != null && !options.getSourceQuery().isEmpty()) {\n sqlCmd = \"SELECT * FROM (\" + options.getSourceQuery() + \") AS REPLICADB_TABLE \";\n } else {\n\n sqlCmd = \"SELECT \" + allColumns + \" FROM \" + escapeTableName(tableName);\n\n // Source Where\n if (options.getSourceWhere() != null && !options.getSourceWhere().isEmpty()) {\n sqlCmd = sqlCmd + \" WHERE \" + options.getSourceWhere();\n }\n }\n\n if (chunkSize != 0L) {\n sqlCmd = sqlCmd + \" LIMIT ? OFFSET ?\";\n return super.execute(sqlCmd, chunkSize, offset);\n } else {\n return super.execute(sqlCmd);\n }\n }", "public abstract ResultSet readTable(String tableName, String [] columns)\n throws SQLException;", "Flowable<T> query(IDynamoDBMapper mapper);", "WebElement getTableRecordAtIndex(int idx);", "public synchronized ResultScanner getScanner(String startRow,\n String stopRow, Filter filter, int caching, boolean cacheBlocks)\n throws IOException {\n Scan scan = new Scan(Bytes.toBytes(startRow), Bytes.toBytes(stopRow));\n scan.setCacheBlocks(cacheBlocks);\n scan.setCaching(caching);\n if (filter != null) {\n scan.setFilter(filter);\n }\n return table.getScanner(scan);\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 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 void initTable();", "public abstract DataSet getTablesByType(InputStream inputSteam,\r\n String name, String pattern, String type)\r\n throws Exception;", "public void printTable(){\n \tfor (int i = 0; i < Table.size(); i++) {\n \t\tList<T> data = Table.get(i);\n \t\ttry {\n \t\t\tSystem.out.println(\"Bucket: \" + i);\n \t\t\tSystem.out.println(data.getFirst());\n \t\t\tSystem.out.println(\"+ \" + (data.getLength() - 1) + \" more at this bucket\\n\\n\");\n \t\t} catch (NoSuchElementException e) {\n \t\t\tSystem.out.println(\"This bucket is empty.\\n\\n\");\n \t\t}\n \t}\n }", "public List<String> getRows();", "@Override\n public ResultSet readTable (String tableName, String[] columns, int nThread) throws SQLException {\n tableName = tableName == null ? this.options.getSourceTable() : tableName;\n\n // If columns parameter is null, get it from options\n String allColumns = this.options.getSourceColumns() == null ? \"*\" : this.options.getSourceColumns();\n\n long offset = nThread * chunkSize;\n String sqlCmd;\n\n // Read table with source-query option specified\n if (options.getSourceQuery() != null && !options.getSourceQuery().isEmpty()) {\n sqlCmd = \"SELECT * FROM (\" +\n options.getSourceQuery() + \") as T1 \";\n } else {\n\n sqlCmd = \"SELECT \" +\n allColumns +\n \" FROM \" +\n escapeTableName(tableName);\n\n // Source Where\n if (options.getSourceWhere() != null && !options.getSourceWhere().isEmpty()) {\n sqlCmd = sqlCmd + \" WHERE \" + options.getSourceWhere();\n }\n\n }\n\n sqlCmd = sqlCmd + \" LIMIT ? OFFSET ? \";\n\n if (this.options.getJobs() == nThread + 1) {\n return super.execute(sqlCmd, \"-1\", offset);\n } else {\n return super.execute(sqlCmd, chunkSize, offset );\n }\n\n }", "public static void displayTable(Connection con, String tableName) throws SQLException \r\n\t{\r\n\t\tStatement st = null;\r\n\t\tResultSet rs = null;\r\n\r\n\t\tst = con.createStatement(); \r\n\r\n\t\trs = st.executeQuery(\"SELECT userID, firstName, lastName, countryCode FROM \" + tableName);\r\n\r\n\t\twhile(rs.next()) {\r\n\t\t\t// can retrieve by position\r\n\t\t\tint userId = rs.getInt(1);\r\n\t\t\t// or by column name \r\n\t\t\tString firstName = rs.getString(\"firstname\");\r\n\t\t\tString lastName = rs.getString(3);\r\n\t\t\tString countryCode = rs.getString(\"countryCode\");\r\n\r\n\t\t\tSystem.out.println(userId + \". \" + lastName + \", \" +\r\n\t\t\t\t\tfirstName + \" (\" + countryCode + \")\");\r\n\t\t}\r\n\r\n\t}", "public void extractAllRows()\n\n\t{\n\t\topen();\n\n\t\tList<WebElement> rows= inTable(table).getRowElements();\n\t\tfor(WebElement e :rows)\n\t\t{\n\t\t\tSystem.out.println(e.getText());\n\t\t}\n\t}", "public void readTable() {\r\n\r\n try ( BufferedReader b = new BufferedReader(new FileReader(\"Hashdata.txt\"))) {\r\n\r\n String line;\r\n ArrayList<String> arr = new ArrayList<>();\r\n while ((line = b.readLine()) != null) {\r\n\r\n arr.add(line);\r\n }\r\n\r\n for (String str : arr) {\r\n this.load(str);\r\n }\r\n this.print();\r\n\r\n } catch (IOException e) {\r\n System.out.println(\"Unable to read file\");\r\n }\r\n\r\n this.userInterface();\r\n\r\n }", "public static List<Record> getRecords(String tableName, String rowKey)\n\t\t\tthrows IOException {\n\t\tHTable table = connectTable(tableName);\n\t\tScan s = new Scan(rowKey.getBytes());\n\n\t\tResultScanner ss = table.getScanner(s);\n\t\tRecord rec;\n\t\tList<Record> list = new ArrayList<Record>();\n\t\tfor (Result r : ss) {\n\t\t\tfor (KeyValue kv : r.raw()) {\n\t\t\t\trec = new Record();\n\t\t\t\trec.setTable(tableName);\n\t\t\t\trec.setRowKey(new String(kv.getRow()));\n\t\t\t\trec.setFamily(new String(kv.getFamily()));\n\t\t\t\trec.setQualifier(new String(kv.getQualifier()));\n\t\t\t\trec.setTimestamp(kv.getTimestamp());\n\t\t\t\trec.setValue(new String(kv.getValue()));\n\t\t\t\tlist.add(rec);\n\t\t\t}\n\t\t}\n\t\treleaseTable(table);\n\t\treturn list;\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}", "int getCountAllRowsForTable(String tableName) throws DaoException;", "public UpdateScan open() {\r\n\t\treturn new TableScan(ti, tx);\r\n\t}", "@Override\n public ArrayList<TableNumber> getAllTableNumbers() {\n String query = \"SELECT * FROM \" + DBConst.TABLE_NUMBER_TABLE;\n tableNumbers = new ArrayList<TableNumber>();\n try{\n Statement getTableNumbers = db.getConnection().createStatement();\n ResultSet data = getTableNumbers.executeQuery(query);\n\n while(data.next()){\n tableNumbers.add(\n new TableNumber(\n data.getInt(DBConst.TABLE_NUMBER_COLUMN_ID), //id\n data.getInt(DBConst.TABLE_NUMBER_COLUMN_NUMBER))); //table number\n }\n }catch (SQLException e){\n e.printStackTrace();\n }\n return tableNumbers;\n }", "List<Map<String, Object>> getAllItems(String tableName);", "java.util.List<io.dstore.engine.procedures.StGetPageVisitsAd.Response.Row> \n getRowList();", "public String getSourceTable();", "Table createTable();", "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 }", "@Override\n public com.gensym.util.Sequence getTableRows() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.TABLE_ROWS_);\n return (com.gensym.util.Sequence)retnValue;\n }", "java.util.List<io.dstore.engine.procedures.MiCheckPerformanceAd.Response.Row> \n getRowList();", "public void startTable(ColumnInfo[] colInfo) throws IOException;", "@Override\n\tpublic Long totalRegistrosTabela(String table) throws Exception {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic Iterator<TableEntry<K, V>> iterator() {\r\n\t\treturn new IteratorImpl();\r\n\t}", "public static List<Result> getDataByRegex(String tableName, String regexKey) {\n RegexStringComparator rc = new RegexStringComparator(regexKey);\n RowFilter rowFilter = new RowFilter(CompareFilter.CompareOp.EQUAL, rc);\n\n Scan scan = new Scan();\n scan.setFilter(rowFilter);\n return getResultsFromScan(tableName, scan);\n }", "@Override\r\n\tpublic void preTableAccess(Map<String, String> params) {\r\n\t\tlong timeout = 250;\r\n\r\n\t\t/* clear all previously accumulated tags. */\r\n\t\t//TODO: There may be a subtle minor bug here.\r\n\t\tclear();\r\n\t\ttry {\r\n\r\n\t\t\tThread.sleep(timeout); // let the tags gather for a moment.\r\n\t\t} catch (InterruptedException 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/* Force the radio to scan now. */\r\n\t\tradio.scan(null, this);\r\n\t}", "public interface CellReader {\r\n public void nextRow(int tableColumns, int rowColumns);\r\n public void read(int index, int width, String columnName, String columnValue);\r\n}", "public ArrayList<byte[]> queryData(String tablename, String schema){\n ArrayList<byte[]> res = new ArrayList<byte[]>();\n\n ResultSet resultSet = session.execute(\"SELECT * FROM \" + tablename);\n for (Row row : resultSet) {\n ByteBuffer data = row.getBytes(schema);\n res.add(data.array());\n }\n return res;\n }", "public List<String> getTableNames() throws IOException {\n List<String> tableList = new ArrayList<String>();\n TableName[] tableNames = hBaseAdmin.listTableNames();\n for (TableName tableName : tableNames) {\n //if (pattern.matcher(tableName.toString()).find()) {\n tableList.add(tableName.toString());\n //}\n }\n return tableList;\n }", "private int getRowCount(String table) {\n return getIntFromQuery(\"SELECT COUNT(*) from \" + table, null);\n }", "@Test\n public void testScan() {\n // Choose, among the available ones, a random key as starting point for the scan transaction.\n int startScanKeyNumber = new Random().nextInt(((RiakKVClientTest.recordsToInsert) - (RiakKVClientTest.recordsToScan)));\n // Prepare a HashMap vector to store the scan transaction results.\n Vector<HashMap<String, ByteIterator>> scannedValues = new Vector<>();\n // Check whether the scan transaction is correctly performed or not.\n Assert.assertEquals(\"Scan transaction FAILED.\", OK, RiakKVClientTest.riakClient.scan(RiakKVClientTest.bucket, ((RiakKVClientTest.keyPrefix) + (Integer.toString(startScanKeyNumber))), RiakKVClientTest.recordsToScan, null, scannedValues));\n // After the scan transaction completes, compare the obtained results with the expected ones.\n for (int i = 0; i < (RiakKVClientTest.recordsToScan); i++) {\n Assert.assertEquals(\"Scan test FAILED: the current scanned key is NOT MATCHING the expected one.\", RiakKVClientTest.createExpectedHashMap((startScanKeyNumber + i)).toString(), scannedValues.get(i).toString());\n }\n }", "public List<Timetable> getListSearch(String from, String to) throws Exception;", "public void exechbase(List<String> hilbertresults, double lon1,double lon2,double lat1,double lat2) throws IOException {\n\t\tScan scan = new Scan();\r\n Table table = con.getTable(TableName.valueOf(tname));\r\n FilterList allFilters = new FilterList(FilterList.Operator.MUST_PASS_ALL);\r\n\t\t//String[] hilbertresultsindex = hilbertresults.split(\",\");\r\n\t\t\r\n\t\tfor(int i =0;i<(hilbertresults.size());i++) {\r\n allFilters.addFilter(new SingleColumnValueFilter(Bytes.toBytes(\"data\"), Bytes.toBytes(\"hilbertindex\"), CompareOperator.EQUAL,Bytes.toBytes(hilbertresults.get(i))));\r\n }\r\n allFilters.addFilter(new SingleColumnValueFilter(Bytes.toBytes(\"data\"), Bytes.toBytes(\"lon\"), CompareOperator.GREATER_OR_EQUAL,Bytes.toBytes(lon1)));\r\n allFilters.addFilter(new SingleColumnValueFilter(Bytes.toBytes(\"data\"), Bytes.toBytes(\"lon\"), CompareOperator.LESS_OR_EQUAL,Bytes.toBytes(lon2)));\r\n allFilters.addFilter(new SingleColumnValueFilter(Bytes.toBytes(\"data\"), Bytes.toBytes(\"lat\"), CompareOperator.LESS_OR_EQUAL,Bytes.toBytes(lat1)));\r\n allFilters.addFilter(new SingleColumnValueFilter(Bytes.toBytes(\"data\"), Bytes.toBytes(\"lat\"), CompareOperator.GREATER_OR_EQUAL,Bytes.toBytes(lon2)));\r\n //allFilters.addFilter(new SingleColumnValueFilter(Bytes.toBytes(\"data\"), Bytes.toBytes(\"groupid\"), CompareOperator.LESS_OR_EQUAL,Bytes.toBytes(30000)));\r\n\r\n\t\tscan.setFilter(allFilters);\r\n //scan.addFamily(Bytes.toBytes(\"data\"));\r\n \r\n ResultScanner scanner = table.getScanner(scan);\r\n int c=0;\r\n long t1 = System.currentTimeMillis();\r\n for (Result result = scanner.next(); result != null; result = scanner.next()) {\r\n //System.out.println(\"Found row : \" + result);\r\n c++;\r\n }\r\n System.out.println(\"Number of rows : \" + c);\r\n System.out.println(\"Calculation Time: \" + (System.currentTimeMillis() - t1));\r\n scanner.close();\r\n table.close();\r\n con.close();\r\n\t\t\r\n\t}", "TableToken getTableToken();", "public String[] search(String tableName, String[] keyValue) {\r\n List<String> retVal = new ArrayList<String>();\r\n Connection con = null;\r\n Statement stmt = null;\r\n try {\r\n con = ConnectionManager.getInstance().getConnection(databaseName);\r\n stmt = con.createStatement();\r\n TableObject table = _create(tableName);\r\n if (table != null) {\r\n StringBuffer whereClause = new StringBuffer();\r\n for (int i = 0; i < keyValue.length; i++) {\r\n String[] kV = keyValue[i].split(\"=\");\r\n if (whereClause.length() < 1) {\r\n whereClause.append(\" AND \");\r\n }\r\n int multi = kV[1].indexOf(\",\");\r\n boolean isChar = false;\r\n TableField field = table.fields.get(kV[0]);\r\n isChar = field.fieldType.startsWith(\"VARCHAR\");\r\n if(multi < 0){\r\n if(isChar){\r\n whereClause.append( kV[0] + \" LIKE '%\" + kV[1] + \"%' \");\r\n }else{\r\n field.setValue(kV[1]);\r\n whereClause.append(kV[0] + \" = \" + convertValue(field));\r\n }\r\n }else{\r\n whereClause.append(kV[0] + \" in (\" + kV[0] + \") \");\r\n }\r\n }\r\n String searchQry = \"SELECT \" + table.key + \" FROM \" + tableName + \" WHERE \" + whereClause.toString();\r\n ResultSet rs = stmt.executeQuery(searchQry);\r\n while (rs.next()) {\r\n String keyVal = rs.getString(1);\r\n retVal.add(retrieve(tableName, keyVal));\r\n }\r\n }\r\n\r\n } catch (Exception e) {\r\n Logger.getLogger(Converter.class.getName()).log(Level.SEVERE, null, e);\r\n } finally {\r\n if (stmt != null) {\r\n try {\r\n stmt.close();\r\n } catch (Exception e) {\r\n Logger.getLogger(Converter.class.getName()).log(Level.SEVERE, null, e);\r\n }\r\n }\r\n if (con != null) {\r\n try {\r\n //con.close();\r\n } catch (Exception e) {\r\n Logger.getLogger(Converter.class.getName()).log(Level.SEVERE, null, e);\r\n }\r\n }\r\n }\r\n return (String[])retVal.toArray();\r\n }" ]
[ "0.66420984", "0.6205232", "0.6103092", "0.5856668", "0.57686526", "0.57122684", "0.5710639", "0.56739134", "0.56700915", "0.5651575", "0.5650807", "0.56421155", "0.5632268", "0.5625414", "0.5611578", "0.56075126", "0.5593862", "0.5581945", "0.5575635", "0.5567483", "0.5533896", "0.55294734", "0.55055094", "0.54894066", "0.5477898", "0.5473757", "0.54592156", "0.5450706", "0.5441099", "0.5431541", "0.54222155", "0.53990996", "0.5389905", "0.53890085", "0.5379037", "0.5371495", "0.535959", "0.534766", "0.53341264", "0.53284067", "0.5299251", "0.52925444", "0.52768606", "0.52717626", "0.52708894", "0.5268472", "0.5249789", "0.524959", "0.52411705", "0.5234672", "0.5232533", "0.52279985", "0.5219091", "0.5209466", "0.5205284", "0.52049637", "0.5186285", "0.5173527", "0.51546013", "0.51487553", "0.5141978", "0.51376146", "0.51247776", "0.5095751", "0.5083912", "0.50803834", "0.508016", "0.50635946", "0.5035305", "0.5025122", "0.50077987", "0.50056046", "0.50047326", "0.5002697", "0.49961504", "0.4991857", "0.49840182", "0.49830648", "0.49824366", "0.49672604", "0.49662676", "0.49612477", "0.4958409", "0.4953319", "0.49519965", "0.4944202", "0.49439648", "0.4928154", "0.4927168", "0.4926033", "0.49249703", "0.4921437", "0.4919949", "0.49198508", "0.49186292", "0.49166098", "0.49107713", "0.49042395", "0.48924324", "0.48918706" ]
0.58280486
4
/Customer customer = new Customer(); customer.setName("toto");
@Override public Map<String, Object> getResource() { List<Customer> customerList = customerRepository.findAllByName("toto"); Map<String,Object> model = new HashMap<String,Object>(); model.put("id", UUID.randomUUID().toString()); model.put("content", "Hello World"); return model; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Customer(String name) {\n this.name=name;\n }", "public Customer(String name) {\n this.name = name;\n }", "public static void CreateCustomer() \r\n\t{\n\t\t\r\n\t}", "Customer createCustomer();", "Customer createCustomer();", "Customer createCustomer();", "Customer createCustomer();", "public String getCustomerName(){\n return customerName;\n }", "public Customer(String name)\n {\n this.name = name;\n this.happy = 5;\n }", "Customer(){}", "public Customer() {\n name = \"N.A.\";\n surname = \"N.A.\";\n address = \"N.A.\";\n email = \"N.A.\";\n }", "public String getCustomerName() \n {\n return customerName;\n }", "public void setCustomer(String Cus){\n\n this.customer = Cus;\n }", "public void setCustomerName(String customerName) \n {\n this.customerName = customerName;\n }", "public static void main(String[] args) {\n Customer1 cust=new Customer1(1,\"subash\",\"subash@gmail\");\r\n System.out.println(cust.id+\" \"+cust.name+\" \"+cust.email);\r\n\t}", "static void addCustomer(customer customer) {\n\n }", "public Customer(){\n\t \n }", "Customer() {\n }", "public String getName()\n {\n return customer;\n }", "public static void main(String[] args) {\n\t\t\tCustomer obCustomer =new Customer(\"C123\",\"Rajib\",\"Silver\");\r\n\t\t\r\n\tSystem.out.println(\"Customer ID :\"+obCustomer.getCustNo());\r\n\tSystem.out.println(\"Customer Name :\"+obCustomer.getCustName());\r\n\tSystem.out.println(\"Category :\"+obCustomer.getCategory());\r\n\r\n\t\t}", "public Customer getCustomerByName(String customerName);", "public Customer(){}", "public Customer(){\n\n }", "Customer() \n\t{\n\t}", "public Customer() {\n\n }", "public Customer()\n {\n\n }", "@Test\n public void testCreateCustomer() {\n System.out.println(\"createCustomer\");\n String name = \"Gert Hansen\";\n String address = \"Grønnegade 12\";\n String phone = \"98352010\";\n CustomerCtr instance = new CustomerCtr();\n int customerID = instance.createCustomer(name, address, phone);\n Customer result = instance.getCustomer(customerID);\n assertEquals(\"Gert Hansen\", result.getName());\n assertEquals(\"Grønnegade 12\", result.getAddress());\n assertEquals(\"98352010\", result.getPhone());\n // TODO review the generated test code and remove the default call to fail.\n// fail(\"The test case is a prototype.\");\n }", "Customer getCustomer();", "public void setName(String name)\r\n/* */ {\r\n/* 137 */ this.name = name;\r\n/* */ }", "public void setName(String name){this.name=name;}", "public Customer() {\r\n\t\tthis.name = \"\";\r\n\t\tthis.parcelID = \"\";\r\n\t\tthis.seqNo = 0;\r\n\t}", "public Customer() {\r\n }", "public Customer() { }", "public String getCustomerName()\n {\n return customerName;\n }", "public Customer() {\n }", "public Customer() {\n }", "public void setCustomer(String customer) {\n this.customer = customer;\n }", "public void setName(String name){this.name = name;}", "public void addCustomer(){\n Customer customer = new Customer();\n customer.setId(data.numberOfCustomer());\n customer.setFirstName(GetChoiceFromUser.getStringFromUser(\"Enter First Name: \"));\n customer.setLastName(GetChoiceFromUser.getStringFromUser(\"Enter Last Name: \"));\n data.addCustomer(customer,data.getBranch(data.getBranchEmployee(ID).getBranchID()));\n System.out.println(\"Customer has added Successfully!\");\n }", "public static void main(String [] args){\r\n\r\n\t\tAccount a = new Customer(1508, \"JaneSmith\", \"Employee\");\r\n\t\ta.getDescription();\r\n\t}", "public Customer(String name, double amount)\n {\n customer = name;\n sale = amount;\n }", "Customers createCustomers();", "public String getCustomer_Name() {\n return customer_Name;\n }", "public PhoneBill(String customerName) {\n this.customerName = customerName;\n }", "static Customer getCustomerWithId(int id){ return new Customer();}", "public void setName(String name)\n/* */ {\n/* 53 */ this.name = name;\n/* */ }", "public String d() {\n return \"MyCustomerInteractor\";\n }", "public Customer getCustomer()\n {\n return customer;\n }", "public Customer getCustomer()\n {\n return customer;\n }", "public static void main(String[] args) {\n VipCustomer A = new VipCustomer();\n System.out.println(A.getName());\n\n VipCustomer B = new VipCustomer(\"Hannah\", 500.0);\n System.out.println(B.getName());\n\n VipCustomer C = new VipCustomer(\"tim\", 200.0, \"[email protected]\");\n System.out.println(C.getName());\n }", "public void setCustomer_Name(String customer_Name) {\n this.customer_Name = customer_Name;\n }", "public void setName(String name)\n/* */ {\n/* 84 */ this._name = name;\n/* */ }", "public Customer()\n{\n this.firstName = \"noFName\";\n this.lastName = \"noLName\";\n this.address = \"noAddress\";\n this.phoneNumber = 0;\n this.emailAddress = \"noEmail\";\n \n}", "public Customer() {\n\t}", "public Customer() {\n\t}", "public Customer (String customerName, String address,\n String telephoneNumber){\n this.customerName = customerName;\n this.address = address;\n this.telephoneNumber = telephoneNumber;\n }", "@Override\n\tpublic String getName(){\n\t\treturn customer.getName();\n\t}", "public void CampoObligatorioClass(String strCustomerName) {\n\n this.clickNewCustomer();\n this.setCustomerName(strCustomerName);\n this.clickGender();\n }", "public Customer () {\n\t\tsuper();\n\t}", "public interface Customer {\n int id = -1;\n String name = \"\";\n}", "public Developer(String name) {\n this.name = name;\n }", "void createAndManageCustomer() {\r\n\t\tSystem.out.println(\"\\nCreating and managing a customer:\");\r\n\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\tCustomer2 c = new Customer2(\"Sami\", \"Cemil\");\r\n\t\ttx.begin();\r\n\t\tem.persist(c);\r\n\t\ttx.commit();\r\n\t\tSystem.out.println(c);\r\n\t\t\r\n\t\ttx = em.getTransaction();\r\n\t\ttx.begin();\r\n\t\tc.setLastName(\"Kamil\");\r\n\t\ttx.commit();\r\n\t\tSystem.out.println(c);\r\n\t\tem.close();\r\n\t}", "io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer();", "public static void main(String[] args) {\n\t\tCustomer cust1=new Customer();\r\n\t\tcust1.display();\r\n\t\tCustomer cust2=new Customer();\r\n\t\tcust2.display();\r\n\t\tcust2.getdetails();\r\n\t\tcust2.setCreditLimit(1200000);\r\n\t\tcust2.display();\r\n\t\t\r\n\t}", "public void create(Customer c){\n Connection conn = ConnectionFactory.getConnection();\n PreparedStatement ppst = null;\n try {\n ppst = conn.prepareCall(\"INSERT INTO customer (name, id, phone) VALUES (?, ?, ?)\");\n ppst.setString(1, c.getName());\n ppst.setString(2, c.getId());\n ppst.setString(3, c.getPhone());\n ppst.executeUpdate();\n System.out.println(\"Customer created.\");\n } catch (SQLException e) {\n throw new RuntimeException(\"Creation error: \", e);\n } finally {\n ConnectionFactory.closeConnection(conn, ppst);\n }\n }", "public String getCustomer() {\n return customer;\n }", "public Customer(String name, double initialAmount) { //constructor for our customer class\r\n this.name = name;\r\n addId++;\r\n this.custId=addId;\r\n this.transactions = new ArrayList<>();\r\n balance=initialAmount;\r\n transactions.add(initialAmount);\r\n }", "public void setCustomerName(String name) {\r\n this.name.setText(name);\r\n }", "public void setName(String name)\r\n/* 29: */ {\r\n/* 30:23 */ this.name = name;\r\n/* 31: */ }", "public void setName(String name){\n this.name = name;\n }", "public String getCustomerName()\n\t{\n\t\treturn name;\n\t}", "public static void main(String[] args) {\n\t\tCustomer customer1 = new Customer();\n\t\tcustomer1.setCustomerName(\"Chaitanya\");\n\t\tcustomer1.setResidentialAddress(new Address(\"Kannaiah Naidu Colony\", \"Chittoor\"));\n\t\tSystem.out.println(\"Customer1 :\");\n\t\tSystem.out.println(\"Customer : \"+customer1.getCustomerName());\n\t\tSystem.out.println(\"Residential Address : \"+customer1.getResidentialAddress());\n\t\t\n\t\tSystem.out.println(\"\\nCustomer2 :\");\n\t\tCustomer customer2 = new Customer(\n\t\t\t\t \"John\", \n\t\t\t\t new Address(\"Ist Main HSR Layout\", \"Bangalore\"),\n\t\t\t\t new Address(\"Ist Main Electronics city\", \"Bangalore\"));\n\t\tSystem.out.println(customer2.getCustomerDetails());\n\t}", "public void setName(String name)\n {\n _name = name;\n }", "public String getName(){return name;}", "public String getName(){return name;}", "public String getName(){return name;}", "public String getName(){return name;}", "public Customer getCustomer() {\r\n return customer;\r\n }", "public Customer displayCustomer(int cid);", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public String getName ()\n {\n return name;\n }", "public void customerQuery(){\n }", "private Customer addCustomer(String title, String firstName, String lastName, String phone, String email, String addressLine1, String addressLine2, String city, String state, String postCode, String country) {\r\n out.print(title);\r\n out.print(firstName);\r\n out.print(lastName);\r\n out.print(phone);\r\n out.print(email);\r\n out.print(addressLine1);\r\n out.print(addressLine2);\r\n out.print(city);\r\n out.print(state);\r\n out.print(postCode);\r\n out.print(country);\r\n\r\n Customer customer = new Customer();\r\n customer.setCustomerTitle(title);\r\n customer.setCustomerFirstName(firstName);\r\n customer.setCustomerLastName(lastName);\r\n customer.setCustomerPhone(phone);\r\n customer.setCustomerEmail(email);\r\n customer.setCustomerAddressLine1(addressLine1);\r\n customer.setCustomerAddressLine2(addressLine2);\r\n customer.setCustomerCity(city);\r\n customer.setCustomerState(state);\r\n customer.setCustomerPostCode(postCode);\r\n customer.setCustomerCountry(country);\r\n\r\n em.persist(customer);\r\n return customer;\r\n }", "@Test\n public void testSetName ()\n {\n System.out.println (\"setName\");\n String name = \"\";\n QueryDatas instance = new QueryDatas (\"nom\", \"value\");\n instance.setName (name);\n }", "@Test\n public void testCustomerFactoryGetCustomer() {\n CustomerController customerController = customerFactory.getCustomerController();\n customerController.addCustomer(CUSTOMER_NAME, CUSTOMER_CONTACT, false);\n assertEquals(CUSTOMER_NAME, customerController.getCustomer(1).getName());\n }", "@Override\n public String toString() {\n return \"Customer{\" +\n \"name='\" + name + '\\'' +\n \", surname='\" + surname + '\\'' +\n \", address='\" + address + '\\'' +\n \", email='\" + email + '\\'' +\n \", tel=\" + tel +\n '}';\n }", "public String getName()\n {\n return name;\n}", "public void update(Customer myCust){\n }", "@Override\n\tpublic void create(Customer t) {\n\n\t}", "public Customer getCustomer()\n {\n return this.customer;\n }", "@Given(\"a customer\")\n\tpublic void givenACustomer() {\n\t}", "public Customer getCustomer() {\n return customer;\n }", "public static void main(String[] args) {\n Account naimisAccount = new Account();\n// naimisAccount.name=\"Naim\";\n// naimisAccount.name=\"\";\n naimisAccount.setName(\"Naim Sulejmani\");\n\n System.out.println(naimisAccount.getName());\n\n int numri = 190;\n numri=20;\n }", "public String getCustomerName() {\n return customerName;\n }", "public String getCustomerName() {\n return customerName;\n }", "public CustomerNew () {\n\t\tsuper();\n\t}", "public String getCustomersName()\r\n {\r\n return customersName;\r\n }", "public Customer() {\n\t\tsuper();\n\t}" ]
[ "0.7013115", "0.68085015", "0.66856724", "0.6523806", "0.6523806", "0.6523806", "0.6523806", "0.6491621", "0.64771116", "0.64462763", "0.6424188", "0.63965565", "0.6377385", "0.63751596", "0.63014984", "0.6295195", "0.6257879", "0.6247681", "0.62381554", "0.6232889", "0.62209255", "0.6167631", "0.6164156", "0.6159093", "0.6146103", "0.6137964", "0.61327785", "0.6112835", "0.610319", "0.6100555", "0.6093919", "0.6093864", "0.6083654", "0.608151", "0.60784733", "0.60784733", "0.60769486", "0.60697955", "0.6058735", "0.6055997", "0.60315526", "0.60275793", "0.6027233", "0.601087", "0.59796965", "0.5979143", "0.5974727", "0.5974378", "0.5966418", "0.5963684", "0.59465337", "0.59435815", "0.5935973", "0.5905051", "0.5905051", "0.5899387", "0.58160293", "0.58147925", "0.58108574", "0.5784429", "0.5780325", "0.5763759", "0.57623833", "0.57612085", "0.5760236", "0.5756675", "0.5750923", "0.57481146", "0.5747714", "0.5741001", "0.57322794", "0.57234573", "0.5720102", "0.57183856", "0.57183856", "0.57183856", "0.57183856", "0.5718194", "0.57150114", "0.57043487", "0.57043487", "0.57043487", "0.57043487", "0.5701257", "0.5698964", "0.56989133", "0.56978375", "0.56971264", "0.56965065", "0.56941915", "0.5692648", "0.5692484", "0.5688142", "0.5684686", "0.5678993", "0.5678658", "0.56653386", "0.56653386", "0.5657365", "0.56573", "0.5656203" ]
0.0
-1
Height Of Binary Tree Send Feedback Given a binary tree, find and return the height of given tree. Input format : Nodes in the level order form (separated by space). If any node does not have left or right child, take 1 in its place Output format : Height Constraints : 1 <= N <= 10^5 Sample Input : 10 9 4 1 1 5 8 1 6 1 1 3 1 1 1 Sample Output : 5
public static int height(BinaryTreeNode<Integer> root) { if(root == null){ return 0; } int sum = 0; if(root.leftChild != null){ sum = Math.max(sum, height(root.leftChild)); } if(root.rightChild != null){ sum = Math.max(sum, height(root.rightChild)); } return sum+1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int height(Node tree){\n\t\tif(tree == null){\n\t\t\treturn 0;\n\t\t}\n\t\telse{\n\t\t\tint lheight = height(tree.getLeft());\n\t\t\tint rheight = height(tree.getRight());\n\t\t\t\n\t\t\t//take the branch which is longer\n\t\t\tif(lheight>rheight){\n\t\t\t\treturn (lheight+1);\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn(rheight+1);\n\t\t\t}\n\t\t}\n\t}", "public int getHeight (BinaryTreeNode<T> treeNode) {\n if (treeNode == null) {\n return 0;\n }\n return 1 + Math.max(getHeight(treeNode.left), getHeight(treeNode.right));\n }", "private static int heightOfTree(Tree tree) {\n\n if(tree == null){\n return 0;\n }\n int leftHeight = 0;\n if(tree.left!=null){\n leftHeight = heightOfTree(tree.left);\n }\n int rightHeight = 0;\n if(tree.right!=null){\n rightHeight = heightOfTree(tree.right);\n }\n return (Math.max(leftHeight, rightHeight))+1;\n\n }", "private int heightBST(Node tree) {\n if (tree == null) {\n return 0;\n }\n return tree.height;\n }", "private int calcNodeHeight(Node t) {\n\t\t\tif(t == null) return 0; //Base case of an empty tree. Has a height of zero. T is the root!\n\n\t\t\treturn (Math.max(calcNodeHeight(t.left), calcNodeHeight(t.right)) + 1); //The height of a binary tree is the height of the root's largest subtree + 1 for the root\n\t\t}", "int height(TreeNode root) \n { \n if (root == null) \n return 0; \n else\n { \n /* compute height of each subtree */\n int lheight = height(root.left); \n int rheight = height(root.right); \n \n /* use the larger one */\n if (lheight > rheight) \n return(lheight+1); \n else return(rheight+1); \n } \n }", "private static int height(TreeNode n){\n\t\tif(n==null)\n\t\t\treturn 0;\n\t\treturn 1+Math.max(height(n.left), height(n.right));\n\t}", "private int height(TreeNode<E> node) {\n\t\tif(isEmpty()) //if tree is empty\n\t\t\treturn 0; //height is 0 for empty tree\n\t\tif(node.right == null && node.left == null) //current node has no children\n\t\t\treturn 1; //return 1\n\t\tif(node.left == null) //current node has only a right child\n\t\t\treturn 1 + height(node.right); //return 1 + height of right subtree\n\t\tif(node.right == null) //current node has only a left child\n\t\t\treturn 1 + height(node.left); //return 1 + height of left subtree\n\t\t//The below cases are for when the current node has two children\n\t\tif(height(node.left) > height(node.right)) //if left height is greater than right height\n\t\t\treturn 1 + height(node.left); //return 1 + height of left subtree\n\t\telse //if right height is greater than left height\n\t\t\treturn 1 + height(node.right); //return 1 + height of right subtree\n\t}", "private int height(Node<T> node){\n if(node == null){\n return 0;\n }else{\n int leftHight = height(node.left) + 1;\n int rightHight = height(node.right) + 1;\n if(leftHight > rightHight){\n return leftHight;\n }else{\n return rightHight;\n }\n }\n }", "private int height(Node<T> node){\n if(node == null)\n return 0;\n // get height of left and right side\n int left = height(node.left);\n int right = height(node.right);\n\n // height will be Max of height of left and right + 1 (Own level)\n return 1 + Math.max(left, right );\n\n }", "private int height( BinaryNode<AnyType> t )\r\n\t{\r\n\t\tif( t == null )\r\n\t\t\treturn -1;\r\n\t\telse\r\n\t\t\treturn 1 + Math.max( height( t.left ), height( t.right ) ); \r\n\t}", "private int height(BinaryNode<AnyType> t) {\r\n\t\tif (t == null)\r\n\t\t\treturn -1;\r\n\t\telse\r\n\t\t\treturn 1 + Math.max(height(t.left), height(t.right));\r\n\t}", "public int height(){\n int level=0;\n \n //if is empty, we finish\n if(this.isEmpty()){\n return level;\n \n \n }else{\n //count this level and check the level under its childs recursively\n int levelSubTree1,levelSubTree2;\n \n levelSubTree1=1 + this.right.height();\n levelSubTree2=1 + this.left.height();\n \n //get the higher height\n if(levelSubTree1> levelSubTree2){\n level=levelSubTree1;\n }else{\n level=levelSubTree2;\n }\n }\n return level;\n }", "@Test\n public void getHeight() {\n Node node = new Node(150);\n node.setLeft(new Node(120));\n node.setRight(new Node(40));\n Node root = new Node(110);\n root.setLeft(new Node(80));\n root.setRight(node);\n assertEquals(2, BinarySearchTree.getHeight(root));\n }", "public int height(Node<T> n) \n\t { \n\t if (n == null) \n\t return 0; \n\t else \n\t { \n\t int lheight = height(n.left); \n\t int rheight = height(n.right); \n\t if (lheight > rheight) \n\t return (lheight + 1); \n\t else \n\t return (rheight + 1); \n\t } \n\t }", "public int findHeight(Node temp) {\n\t\t\n\t\t\n\t\t//check whether tree is empty\n\t\tif(root==null) {\n\t\t\t\n\t\t\tSystem.out.println(\"Tree is Empty\");\n\t\t\treturn 0;\n\t\t}\n\t\telse {\n\t\t\t\n\t\t\tint leftHeight=0; int rightHeight=0;\n\t\t//Calculate height of left subtree\n\t\t\tif(temp.left !=null) \n\t\t\t\t\n\t\t\t\tleftHeight = findHeight(temp.left);\n\t\t\tif(temp.right !=null) \n\t\t\t\t\n\t\t\t\trightHeight = findHeight(temp.right);\n\t\t\t\t\n\t\t\tint max = (leftHeight > rightHeight)? leftHeight: rightHeight;\n\t\t\t\n\t\t\treturn (max+1);\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t}", "public int height()\r\n {\r\n if(this.isLeaf())\r\n {\r\n return 0;\r\n }\r\n else if (this.getLeft()!=null&&this.getRight()==null)\r\n {\r\n return this.getLeft().height()+1;\r\n }\r\n else if(this.getLeft()==null&&this.getRight()!=null)\r\n {\r\n return this.getRight().height()+1;\r\n }\r\n else\r\n {\r\n return Math.max(this.getLeft().height(),this.getRight().height())+1;\r\n }\r\n }", "int get_height(Node node) {\n\t\tif (node == null) \n\t\t\treturn 0;\n\t\telse if (node.leftChild == null && node.rightChild == null)\n\t\t\treturn 0;\t\t\n\t\telse return 1 + max(get_height(node.leftChild), get_height(node.rightChild));\n\t}", "int computeHeight() {\n Node<Integer>[] nodes = new Node[parent.length];\n for (int i = 0; i < parent.length; i++) {\n nodes[i] = new Node<Integer>();\n }\n int rootIndex = 0;\n for (int childIndex = 0; childIndex < parent.length; childIndex++) {\n if (parent[childIndex] == -1) {\n rootIndex = childIndex;\n } else {\n nodes[parent[childIndex]].addChild(nodes[childIndex]);\n }\n }\n return getDepth(nodes[rootIndex]);\n }", "public int height(Node node) \n {\n \t if (node == null) return 0;\n \t return 1 + max(height(node.left), height(node.right));\n }", "private int getHeightofNode(TreeNode node){\n if (node == null) return 0;\n if (getColor(node) == RED) {\n return Math.max(getHeightofNode(node.left), getHeightofNode(node.right));\n } else {\n return Math.max(getHeightofNode(node.left), getHeightofNode(node.right))+1;\n }\n }", "public int heightNodes(Node N) {\n if(N == null) return 0;\n if((N.getRight() == null) && (N.getLeft() == null)) return 0;\n int left = heightNodes(N.getLeft());\n int right = heightNodes(N.getRight());\n\n if(left > right) return 1 + left;\n else return 1 + right;\n\n }", "int height(Node root) { return (root != null) ? Math.max(height(root.left), height(root.right)) + 1 : 0;}", "private int height(BSTNode<K, V> node) {\r\n if (node == null) {\r\n return 0;\r\n } else {\r\n if (height(node.left) >= height(node.right)) {\r\n return 1 + height(node.left);\r\n } else {\r\n return 1 + height(node.right);\r\n }\r\n }\r\n }", "int height(Node root)\n {\n if (root == null)\n return 0;\n else\n {\n /* compute height of each subtree */\n int lheight = height(root.left);\n int rheight = height(root.right);\n\n /* use the larger one */\n if (lheight > rheight)\n return(lheight+1);\n else return(rheight+1);\n }\n }", "private static int height(TreeNode node) {\n\t\t\n\t\tif(node == null)\n\t\t\treturn 0;\n\n\t\treturn (Math.max(height(node.left) , height(node.right)) + 1);\n\t}", "private int getHeight(Node n) {\n\t\tif (n==null)\n\t\t\treturn 0;\n\t\tint heightLeft = getHeight(n.left);\n\t\tif (heightLeft==-1)\n\t\t\treturn -1;\n\t\t\n\t\tint heightRight = getHeight(n.right);\n\t\tif (heightRight==-1) \n\t\t\treturn -1;\n\t\t\n\t\tif(Math.abs(heightRight-heightLeft) > 1)\n\t\t\treturn -1;\n\t\telse\n\t\t\treturn 1+Math.max(getHeight(n.left), getHeight(n.right));\n\t}", "int height(Node N) { \n if (N == null) \n return 0; \n return N.height; \n }", "public int checkHeight(Node root){\n\t\tif(root == null)\n\t\t\treturn 0;\n\t\tif(root.left == null && root.right == null)\n\t\t\treturn 1;\n\t\tint leftH = checkHeight(root.left);\n\t\tif(leftH == Integer.MIN_VALUE) //left subtree not balanced\n\t\t\treturn Integer.MIN_VALUE;\n\t\tint rightH = checkHeight(root.right); \n\t\tif(rightH == Integer.MIN_VALUE) //right subtree not balanced\n\t\t\treturn Integer.MIN_VALUE;\n\n\t\tint diff = Math.abs(rightH - leftH);\n\t\t//this tree is not balanced, if heights differs more than 1\n\t\tif(diff > 1) \n\t\t\treturn Integer.MIN_VALUE;\n\t\telse {\n\t\t//return the height if balanced, which is maxHeight subtree + 1\n\t\t\tSystem.out.println(Math.max(rightH, leftH) + 1);\n\t\t\treturn Math.max(rightH, leftH) + 1;\n\t\t}\n\t}", "public int getHeight(){\n\t\tint h=maxDepth(root);\n\t\treturn h;\n\t}", "public static int nodeHeight(PhyloTreeNode node) {\n if(node == null) {\n return -1;\n }\n else{\n return 1 + Math.max(nodeHeight(node.getLeftChild()), nodeHeight(node.getRightChild()));\n }\n }", "private int height(BSTNode root) {\r\n \r\n // if the root is null, return 0\r\n if (null == root) {\r\n \r\n return 0;\r\n }\r\n \r\n // find the height of the left subtree\r\n int heightLeftSub = height(root.left);\r\n \r\n // find the height of the right subtree\r\n int heightRightSub = height(root.right);\r\n \r\n // return the greatest subtree value plus 1 for the height\r\n return Math.max(heightLeftSub, heightRightSub) + 1; \r\n }", "int height(Node node) {\r\n\t\tif (node == null) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\tint left = height(node.left);\r\n\t\tint right = height(node.right);\r\n\t\tint max = Integer.max(left, right);\r\n\t\treturn max + 1;\r\n\t}", "public int findHieghtOfTree(Node r) {\r\n\t\tif(r==null) \r\n\t\t\treturn 0;\r\n\t\tif(r.left==null && r.right==null)\r\n\t\t\treturn 0;\r\n\t\telse {\r\n\t\t\t\r\n\t\t\tint left=1,right=1;\r\n\t\t\tif(r.left!=null)\r\n\t\t\t\tleft=left+findHieghtOfTree(r.left);\r\n\t\t\tif(r.right!=null)\r\n\t\t\t\tright=right+findHieghtOfTree(r.right);\r\n\t\t\tif(left>right) \r\n\t\t\t\treturn left; \r\n\t\t\telse \r\n\t\t\t\treturn right;\r\n\t\t}\r\n\t\t\r\n\t}", "int height(Node root) {\n\t\tif (root == null)\n\t\t\treturn 0;\n\t\telse {\n\t\t\t/* compute height of each subtree */\n\t\t\tint lheight = height(root.left);\n\n\t\t\tint rheight = height(root.right);\n\n\t\t\t/* use the larger one */\n\t\t\tif (lheight > rheight) {\n\t\t\t\t//System.out.println(\"lheight : \" + lheight + \" rheight : \" + rheight + \" root data : \" + root.data);\n\t\t\t\treturn (lheight + 1);\n\t\t\t} else {\n\t\t\t\t//System.out.println(\"lheight : \" + lheight + \" rheight : \" + rheight + \" root data : \" + root.data);\n\t\t\t\treturn (rheight + 1);\n\t\t\t}\n\t\t}\n\t}", "int height(Node N) \n { \n if (N == null) \n return 0; \n return N.height; \n }", "private int height(AvlNode<E> node){\n if(node == null){\n return 0;\n } else {\n return max(height(node.left), height(node.right)) + 1;\n }\n }", "int height(BTNode node) {\n if (node == null) {\n return -1;\n }\n return 1 + Math.max(height(node.left), height(node.right));\n }", "public int height(){\r\n \r\n // call the recursive method with the root\r\n return height(root);\r\n }", "public int treeHeight() {\n return height(root);\n }", "int height(Node root) {\n\t\tif (root == null)\n\t\t\treturn 0;\n\t\telse {\n\t\t\t //compute height of each subtree \n\t\t\tint lheight = height(root.left);\n\t\t\tint rheight = height(root.right);\n\n\t\t\t// use the larger one \n\t\t\tif (lheight > rheight)\n\t\t\t\treturn (lheight + 1);\n\t\t\telse\n\t\t\t\treturn (rheight + 1);\n\t\t}\n\t}", "@Override\n\tpublic int height() {\n\t\tif (this.valCount == 0) { // if empty leaf\n\t\t\treturn 0;\n\t\t}\n\t\tint max = 1; \n\t\tfor (int i = 0; i < childCount; ++i) { // finds longest route among children\n\t\t\tmax = Math.max(max, children[i].height() + 1);\n\t\t}\n\t\treturn max;\n\t}", "int height(Node node){\r\n\t\tif( node == null ) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\treturn Math.max( height(node.left), height(node.right) ) + 1 ;\r\n\t}", "@Test\r\n public void testHeightFullTree(){\r\n \t\r\n \tBinarySearchTree<Integer> treeInt = new BinarySearchTree<Integer>();\r\n \t\r\n \ttreeInt.add(31);\r\n \ttreeInt.add(5);\r\n \ttreeInt.add(44);\r\n \t\r\n \tassertEquals(treeInt.height(), 1);\r\n \t\r\n \ttree.add(\"deer\");\r\n \ttree.add(\"bar\"); //adding as child to left\r\n \ttree.add(\"jar\"); //add as child to right \r\n \tassertEquals(tree.height(), 1); //height is now 1\r\n }", "public int findHeight(BTNode root)\n {\n if(root==null)\n return -1;\n return Math.max(findHeight(root.left), findHeight(root.right))+1;\n }", "private int height(AvlTreeNode<?, ?> n) {\n if (n == null) return -1;\n return n.height;\n }", "public static int height(treenode root)\n {\n return root==null ? -1 : Math.max(height(root.left) , height(root.right)) +1;\n }", "int height(Node N) {\n if (N == null) {\n return 0;\n }\n return N.height;\n }", "public int depth(){\n if(root!=null){ // มี node ใน tree\n return height(root);\n }\n else {return -1;}\n }", "int checkHeight(TreeNode root){\n\tif(root == null) return -1;\n\n\tint leftHeight = checkHeight(root.left);\n\tif(leftHeight == Integer.MIN_VALUE) return Integer.MIN_VALUE; // pass error up\n\n\tint rightHeight = checkHeight(root.right);\n\tif(rightHeight == Integer.MIN_VALUE) return Integer.MIN_VALUE; // pass error up\n\n\tint heightDiff = leftHeight - rightHeight;\n\tif(Math.abs(heightDiff) > 1){\n\t\treturn Integer.MIN_VALUE; // FOUND ERROR -> pass it back\n\t} else {\n\t\treturn Math.max(leftHeight, rightHeight) + 1;\n\t}\n}", "public static int height(Node root){\r\n int ht = -1;\r\n for(Node child : root.children){\r\n ht = Math.max(ht, height(child));\r\n }\r\n return ht + 1;\r\n }", "@Override\n\tpublic int height() {\n\t\tif(root == null) {\n\t\t\treturn -1;\n\t\t} else {\n\t\t\tNode tempRoot = root;\n\t\t\treturn heightHelper(tempRoot);\n\t\t}\n\t}", "default int calcHeight() throws NotATreeException {\n\n int[] roots = getSources();\n\n if (roots.length == 0) {\n throw new NotATreeException();\n }\n\n class WrappedCalcLongestPath {\n private int calcLongestPath(int node, TIntList path) throws CycleDetectedException {\n\n if (!containsNode(node)) {\n throw new IllegalArgumentException(\"node \"+ node + \" was not found\");\n }\n\n if (isSink(node)) {\n return path.size()-1;\n }\n\n TIntList lengths = new TIntArrayList();\n for (int edge : getOutEdges(node)) {\n\n int nextNode = getHeadNode(edge);\n\n TIntList newPath = new TIntArrayList(path);\n newPath.add(nextNode);\n\n if (path.contains(nextNode)) {\n throw new CycleDetectedException(newPath);\n }\n\n lengths.add(calcLongestPath(nextNode, newPath));\n }\n\n return lengths.max();\n }\n }\n\n // it is ok if there are multiple roots (see example of enzyme-classification-cv where it misses the root that\n // connect children EC 1.-.-.-, EC 2.-.-.-, ..., EC 6.-.-.-)\n /*if (roots.length > 1) {\n throw new NotATreeMultipleRootsException(roots);\n }*/\n\n return new WrappedCalcLongestPath().calcLongestPath(roots[0], new TIntArrayList(new int[] {roots[0]}));\n }", "@Test\r\n public void testHeightCompleteTree(){\r\n \ttree.add(\"deer\");\r\n \ttree.add(\"bar\"); //adding as child to left\r\n \ttree.add(\"jar\"); //add as child to right \r\n \ttree.add(\"apple\"); //adding to right side of right node\r\n \tassertEquals(tree.height(), 2); \r\n }", "public int height(Node node){\n return node==null? 0 : Math.max(height(node.getLeft()),height(node.getRight())) + 1;\n }", "int height(TreeNode root) {\n return root == null ? -1 : 1 + height(root.left);\n }", "private int height_sub(BSTNode<T> node) {\r\n\t\tint heightLeft = 0;\r\n\t\tint heightRight = 0;\r\n\t\tif(node.left!= null) {\r\n\t\t\theightLeft = height_sub(node.left);\r\n\t\t}\r\n\t\tif(node.right!= null) {\r\n\t\t\theightRight = height_sub(node.right);\r\n\t\t}\r\n\t\treturn 1+ Math.max(heightLeft, heightRight);\r\n\t}", "public static int getHeight(Node2 root) {\n\t\t// Write your code here\n\t\tif (root.right != null || root.left != null) {\n\t\t\treturn 1 + Math.max(getHeight(root), getHeight(root));\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}", "public int height(Node n)\r\n\t{\r\n\t\tif(n==null)\r\n\t\t{\r\n\t\t\treturn -1;//empy node height is -1\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn n.height;\r\n\t\t}\r\n\t}", "public int height(Node N) {\n if (N == null)\n return 0;\n\n return N.height;\n }", "public int getHeight() {\r\n\t\treturn getHeight(rootNode);\r\n\t}", "public int height (BTNode<T> node){\n\t\tif(node != null) return node.getHeight();\n\t\treturn -1;\n\t}", "public int computeHeight(Node root){\n\t if(root == null)\n\t return 0;\n\t /* Calculate recursively */\n\t return Math.max(computeHeight(root.leftChild), computeHeight(root.rightChild)) + 1;\n\t }", "public int getHeight() {\n return huffTree.getHeight(huffTree.root, 0); \n }", "int height(Node n)\n\t{\n\t\tif(n==null)\n\t\t\treturn 0;\n\t\telse\n\t\t\treturn n.height;\n\t}", "public int height() {\n\t\tif (root == null) {\n\t\t\treturn 0;\n\t\t} else {\n\t\t\tBSTNode<K,V> temp = root;\n\t\t\treturn getHeight(temp);\n\t\t}\n\t}", "public int getHeight(){\n\tif (root == null) {\n\t return 0;\n\t}\n\treturn root.height();\n }", "public int height(Node root) {\n if(root!=null) {\n if(root.left == null && root.right ==null) {\n return 0;\n }\n return maxDepth(height(root.left), height(root.right)) + 1;\n } else {\n return 0;\n }\n }", "public int height() \n\t{\n\t\treturn height(root); //call recursive height method, starting at root\n\t}", "public int height() {\r\n\t\t\tif (this.leaf) \t\r\n\t\t\t\treturn 0;\r\n\t\t\telse {\r\n\t\t\t\treturn 1 + Math.max( this.lowChild.height(), this.highChild.height());\r\n\t\t\t}\r\n\t\t}", "public static void main(String[] args){\n\n// BinaryTree binaryTree = new BinaryTree(1);\n// binaryTree.insert(\"L\", 2);\n// binaryTree.insert(\"LL\", 4);\n// binaryTree.insert(\"LR\", 5);\n// binaryTree.insert(\"R\", 3);\n// binaryTree.getHeight(binaryTree.root);\n// System.out.println(binaryTree.maxDiameter);\n\n Scanner in = new Scanner(System.in);\n int T = in.nextInt();\n int X = in.nextInt();\n BinaryTree binaryTree = new BinaryTree(X);\n for(int j=0;j<T-1;j++){\n String where = in.next();\n int k = in.nextInt();\n binaryTree.insert(where, k);\n }\n binaryTree.getHeight(binaryTree.root);\n// binaryTree.traverse(binaryTree.root);\n System.out.println(binaryTree.maxDiameter);\n }", "public int getHeight() {\n return nodeHeight(overallRoot);\n }", "public static int checkHeight(TreeNode root) {\r\n\t\tif (root == null)\r\n\t\t\treturn 0; // Height of 0\r\n\r\n\t\t// Check if left is balance\r\n\t\tint leftHeight = checkHeight(root.left);\r\n\t\tif (leftHeight == -1) {\r\n\t\t\treturn -1; // Not balanced\r\n\t\t}\r\n\r\n\t\t// Check if right is balance\r\n\t\tint rightHeight = checkHeight(root.right);\r\n\t\tif (rightHeight == -1) {\r\n\t\t\treturn -1; // Not balanced\r\n\t\t}\r\n\r\n\t\t// Check if current node is balanced\r\n\t\tint heightDiff = leftHeight - rightHeight;\r\n\t\tif (Math.abs(heightDiff) > 1) {\r\n\t\t\treturn -1;\r\n\t\t} else {\r\n\t\t\t// return height\r\n\t\t\treturn Math.max(leftHeight, rightHeight) + 1;\r\n\t\t}\r\n\t}", "public int treeHigh(TreeNode node) \n { \n if (node == null) \n return 0; \n else \n { \n /* compute the depth of each subtree */\n int lDepth = treeHigh(node.left); \n int rDepth = treeHigh(node.right); \n \n /* use the larger one */\n if (lDepth > rDepth) \n return (lDepth + 1); \n else \n return (rDepth + 1); \n } \n }", "private static int getHeight(Node current) {\n if(current == null) {\n return 0;\n }\n //Return the greater of the height of either the left subtree or the right, then add 1 for every node that it finds\n else {\n return Math.max(getHeight(current.getLeftChild()), getHeight(current.getRightChild())) + 1;\n }\n }", "@Override\r\n\tpublic int height() {\r\n\t\tif (this.root == null) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn height_sub(this.root);\r\n\t}", "public static int height(Node root){\n if(root == null){\n return 0;\n }\n int leftHeight = height(root.left);\n int rightHeight = height(root.right);\n\n return Math.max(1+ leftHeight, 1+rightHeight);\n }", "int findHeight(AVLNode Node){\r\n\t\tint height = 0;\r\n\t\tif(Node != null){\r\n\t\t\tint leftH = findHeight(Node.left);\r\n\t\t\tint rightH = findHeight(Node.right);\t\t\t\r\n\t\t\tif(leftH > rightH){\r\n\t\t\t\theight = leftH + 1;\r\n\t\t\t}else{\r\n\t\t\t\theight = rightH + 1;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Node.height = height;\r\n\t\treturn height;\r\n\t}", "public int height(Node root){\n\t\tif(root==nil)return 0;\n\t\treturn Math.max(height(root.left),height(root.right))+1;\n\t}", "public int height(){\n return height(root);\n }", "public static void main(String[] args) \n { \n BinaryTree tree = new BinaryTree(); \n \n tree.root = new Node(1); \n tree.root.left = new Node(2); \n tree.root.right = new Node(3); \n tree.root.left.left = new Node(4); \n tree.root.left.right = new Node(5); \n \n System.out.println(\"Height of tree is : \" + \n tree.maxDepth(tree.root));\n System.out.println(\"Height of tree is by recur : \" + \n tree.heigth(tree.root));\n System.out.println(\"Diameter of tree is : \" + \n tree.getdiameter(tree.root));\n }", "public void update_height() {\r\n int tmp_height = 0;\r\n int tmp_left = -1;\r\n int tmp_right = -1;\r\n\r\n // set height of null children to -1\r\n if (leftChild != null) {\r\n tmp_left = leftChild.height;\r\n }\r\n if (rightChild != null) {\r\n tmp_right = rightChild.height;\r\n }\r\n\r\n // find highest child\r\n if (tmp_left > tmp_right) {\r\n tmp_height = tmp_left;\r\n }\r\n else {\r\n tmp_height = tmp_right;\r\n }\r\n\r\n // update this node's height\r\n height = tmp_height + 1;\r\n }", "private static double weightedNodeHeightHelper(PhyloTreeNode node) {\n if(node == null) {\n return 0;\n }\n else{\n return Math.max(node.getDistanceToChild() + weightedNodeHeightHelper(node.getLeftChild()),\n node.getDistanceToChild() + weightedNodeHeightHelper(node.getRightChild()));\n }\n }", "public List<Integer> findMinHeightTrees(int n, int[][] edges) {\n\n // edge list\n // Create adjacency list\n // find nodes with edge degree\n // fill a queue with edge degree one\n // do the bfs and keep marking their heights in the path\n // as we go along and find a node with lesser possible heights, update heights\n // of that node and keep updating in consequent nodes\n\n // edge case - disconnected tree\n\n List<List<Integer>> adjList = new ArrayList<>();\n\n createAdjList(n, edges, adjList);\n\n // Revise - How to print a list?\n System.out.println(Arrays.toString(adjList.toArray()));\n\n int[] edgeDegree = new int[n];\n int[] heights = new int[n];\n for (int[] edge:\n edges) {\n edgeDegree[edge[0]]++;\n edgeDegree[edge[1]]++;\n }\n\n System.out.println(\"edgeDegree\");\n System.out.println(Arrays.toString(edgeDegree));\n\n Queue<Integer> bfsQ = new LinkedList<>();\n boolean[] visited = new boolean[n];\n for (int i = 0; i < edgeDegree.length; i++) {\n if (edgeDegree[i] == 1) {\n bfsQ.add(i);\n heights[i] = 1;\n break;\n }\n }\n\n int maxHeight = Integer.MIN_VALUE;\n while (!bfsQ.isEmpty()) {\n Integer vertex = bfsQ.poll();\n visited[vertex] = true;\n System.out.println(\"Out from queue\");\n int heightParentVertex = heights[vertex];\n maxHeight = Math.max(maxHeight, heightParentVertex);\n List<Integer> adjNodes = adjList.get(vertex);\n for (Integer adjNode:\n adjNodes) {\n if (!visited[adjNode]) {\n heights[adjNode] = heightParentVertex+1;\n bfsQ.add(adjNode);\n }\n }\n }\n\n List<Integer> ans = new ArrayList<>();\n System.out.println(\"maxHeight\");\n System.out.println(maxHeight);\n\n // if even\n for (int i = 0; i < n; i++) {\n if ( heights[i] == ((maxHeight / 2) + 1)) {\n ans.add(i);\n } else if (maxHeight % 2 == 0 && heights[i] == maxHeight / 2) {\n ans.add(i);\n }\n }\n\n return ans;\n }", "private int calcHeight(ChartOptions options) {\n Node n = this; // current node in the level\n int realHeight = 0;\n boolean samelevel = true; // next node in same level?\n while (n != null && samelevel) {\n int tmpHeight = 0;\n if (n.typ.matches(NodeType.TERM, NodeType.NONTERM, NodeType.EXCEPTION)) {\n tmpHeight = n.size.getHeight();\n } else if (n.typ == NodeType.ITER) {\n tmpHeight = n.sub.calcHeight(options);\n } else if (n.typ == NodeType.OPT) {\n tmpHeight = n.sub.calcHeight(options);\n } else if (n.typ == NodeType.PREDICATE) {\n tmpHeight = n.size.getHeight();\n } else if (n.typ == NodeType.RERUN) {\n tmpHeight = n.sub.calcHeight(options);\n } else if (n.typ == NodeType.ALT) {\n tmpHeight = n.sub.calcHeight(options);\n } else if (n.typ == NodeType.EPS) {\n tmpHeight = options.fontHeight() * 3 / 2;\n if (realHeight < tmpHeight) {\n tmpHeight = options.fontHeight()\n + options.componentGapHeight();\n } else {\n tmpHeight = 0;\n }\n }\n realHeight = Math.max(realHeight, tmpHeight);\n if (n.up) {\n samelevel = false;\n }\n n = n.next;\n }\n return realHeight;\n }", "public int height() {\n if (root == null) {\n return -1;\n }\n else return height(root);\n }", "private static int checkHeightDiff(BinaryTreeNode root, int depth, int diff) throws Exception {\n\t\tif (root == null) {\n\t\t\treturn depth;\n\t\t}\n\t\t\n\t\tint left = checkHeightDiff(root.left, depth + 1, diff);\n\t\tint right = checkHeightDiff(root.right, depth + 1, diff);\n\t\t\n\t\tif (Math.abs(left - right) > diff) {\n\t\t\tthrow new Exception();\n\t\t}\n\n\t\treturn left > right ? left : right;\n\t}", "public int height() {\n if (root == null) {\n return -1;\n } else {\n return getHeight(root, 0);\n }\n }", "public int getHeight(){ \n\t if (left == null && right == null){\n\t\treturn 1;\n\t }else if (left == null){\n\t\treturn 1 + right.getHeight();\n\t }else if (right == null){\n\t\treturn 1 + left.getHeight();\n\t }else{\n\t\tif (right.getHeight() >= left.getHeight()){\n\t\t return 1 + right.getHeight();\n\t\t}else{\n\t\t return 1 + left.getHeight();\n\t\t}\n\t }\n\t}", "public int height() { return height(root); }", "public int height()\r\n {\r\n return head.height; //Should return log base 2 of n or the height of our head node. \r\n }", "int height(AVLNode N) {\n if (N == null)\n return 0;\n\n return N.getHeight();\n }", "@Test\r\n public void testHeightAddNodesRight(){\r\n \ttree.add(\"g\");\r\n \ttree.add(\"f\");\r\n \ttree.add(\"e\");\r\n \tassertEquals(tree.height(),2);\r\n \t\r\n \t//testing height of 3\r\n \ttree.add(\"d\"); //height now 3, d is right\r\n \tassertEquals(tree.height(), 3);\r\n \t\r\n \ttree.add(\"c\");\r\n \ttree.add(\"b\"); \r\n \ttree.add(\"a\"); \r\n \tassertEquals(tree.height(),6); //last\r\n }", "public static int getHeight(BinarySearchTree BST) {\n return getHeight(BST.getRoot());\n }", "int getBalance(Node N) \n { \n if (N == null) \n return 0; \n return height(N.left) - height(N.right); \n }", "private int height(Node node) {\n return node == null ? 0 : node.height;\n }", "public int height() {\n return heightNodes(root);\n }", "private int getHeight(BSTNode<T> current, int i) {\n int right = i;\n int left = i;\n if (current.getRight() != null) {\n right = getHeight(current.getRight(), i + 1);\n }\n if (current.getLeft() != null) {\n left = getHeight(current.getLeft(), i + 1);\n }\n if (right > left) {\n return right;\n } else {\n return left;\n }\n }", "int getBalance(Node N) \n { \n if (N == null) \n return 0; \n\n return height(N.left) - height(N.right); \n }", "public int calcHeight(){\n\t\t\t\treturn calcNodeHeight(this.root);\n\t\t}" ]
[ "0.78686976", "0.7537266", "0.75293905", "0.74037886", "0.73086315", "0.72430515", "0.72389066", "0.7235098", "0.722498", "0.7204507", "0.7116577", "0.7102735", "0.7094494", "0.7072089", "0.70382524", "0.69971406", "0.6977206", "0.69496965", "0.690603", "0.68616956", "0.68564266", "0.6855539", "0.68508315", "0.68327373", "0.68303514", "0.68249583", "0.679875", "0.6797851", "0.6795887", "0.67917496", "0.67800766", "0.6779705", "0.67615664", "0.67564625", "0.6742359", "0.67127585", "0.6698017", "0.6691882", "0.668746", "0.66702724", "0.6669832", "0.66610354", "0.6648002", "0.6626397", "0.6624626", "0.6587579", "0.65864855", "0.65683484", "0.6556858", "0.65488875", "0.6534207", "0.65299284", "0.6517236", "0.6486152", "0.64830965", "0.64577913", "0.64456767", "0.6437206", "0.643666", "0.6426151", "0.64077073", "0.6396988", "0.6390179", "0.63853383", "0.63816166", "0.6373304", "0.63720167", "0.63699853", "0.63469", "0.63458335", "0.6319341", "0.63084453", "0.62999594", "0.6286038", "0.6267041", "0.62661976", "0.6256495", "0.624884", "0.6243987", "0.62326187", "0.6224114", "0.6221723", "0.6220261", "0.6214085", "0.61999446", "0.619112", "0.6181849", "0.6153624", "0.61388844", "0.6124115", "0.6084414", "0.6080253", "0.6061628", "0.6051848", "0.60478514", "0.60201627", "0.601032", "0.6008537", "0.6007485", "0.6002186" ]
0.69401455
18
puts the altitude to what the current altitude is
public void setAltitude(float altitude) { currentAltitude.setText(String.valueOf(altitude)); if(altitude>250){ currentAltitude.setBackground(Color.GREEN); } else if(altitude>25){ currentAltitude.setBackground(Color.YELLOW); } else{ currentAltitude.setBackground(Color.RED); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void updateAltitude() {\n Altitude droneAltitude = this.drone.getAttribute(AttributeType.ALTITUDE);\n\n\n\n alt.setText(String.format(\"%3.1f\", droneAltitude.getAltitude()) + \"m\");\n // altitudeTextView.setText(String.format(\"%3.1f\", droneAltitude.getAltitude()) + \"m\");\n }", "@Override\n\tpublic void setAltitude(float altitude) {\n\t\t\n\t}", "public void setAltitude(double altitude) {\n this.altitude = altitude;\n }", "@Override\r\n\t\t\tprotected String makeEyeAltitudeDescription(double metersAltitude){\r\n\t\t\t\t//System.out.println(\"metersAltitude: \"+ metersAltitude);\r\n\t\t\t\tsetCurrentAltitude(metersAltitude);\r\n\t\t\t\treturn super.makeEyeAltitudeDescription(metersAltitude);\r\n\t\t\t}", "private String altitudeConversion() {\n int reading = ((record[9] & 255) << 8) + (record[8] & 255);\n if (reading == 60000) {\n return \" \";\n } else {\n return reading + \"\";\n }\n }", "@Override\r\n\tpublic double getAltitude(){\r\n\t\treturn altitude;\r\n\t}", "public double getAltitude() {\n return altitude;\n }", "public double getAltitude() {\n return altitude;\n }", "protected void setCurrentAltitude(double currentAltitude) {\r\n\t\tthis.currentAltitude = currentAltitude;\r\n\t}", "public void setAltitudeRef(String altitudeRef)\n {\n myAltitudeRef = altitudeRef;\n }", "public int getAltitude() {\n return altitude;\n }", "public long getAltitude() {\n return altitude_;\n }", "long getAltitude();", "public void setAltitudeRadians(double altitude) {\n this.altitude = altitude * 180d / Math.PI;\n }", "public int getAltitude() {\n return altitude_;\n }", "public long getAltitude() {\n return altitude_;\n }", "public double getAltitude();", "int getAltitude();", "protected double getCurrentAltitude() {\r\n\t\treturn currentAltitude;\r\n\t}", "public double getAltitude() {\n return selv;\n }", "public int getAltitude() {\n return altitude_;\n }", "public void setAltitudeMode(int altitudeMode)\n {\n this.symbol.setAltitudeMode(altitudeMode);\n }", "public void setUseAltitude(boolean useAltitude)\n {\n myUseAltitude = useAltitude;\n }", "public void setAltitudeColumn(String altitudeColumn)\n {\n myAltitudeColumn = altitudeColumn;\n }", "public String getAltitudeRef()\n {\n return myAltitudeRef;\n }", "public float altitude_amsl_GET()\n { return (float)(Float.intBitsToFloat((int) get_bytes(data, 12, 4))); }", "public Builder setAltitude(long value) {\n bitField0_ |= 0x00000040;\n altitude_ = value;\n onChanged();\n return this;\n }", "public float getAltitudeAngle()\n {\n return altitude_slider.getValue() / ANGLE_SCALE_FACTOR;\n }", "public LatLngAlt(double latitude, double longitude, double altitude) {\n this.latitude = latitude;\n this.longitude = longitude;\n this.altitude = altitude;\n }", "private void setAltitudeValues(){\n minAlt = trackingList.get(0).getAltitude();\n maxAlt = trackingList.get(0).getAltitude();\n averageAlt = trackingList.get(0).getAltitude();\n\n double sumAlt =0.0;\n\n for (TrackingEntry entry:trackingList) {\n\n sumAlt += entry.getAltitude();\n\n //sets min Speed\n if (minAlt > entry.getAltitude()){\n minAlt = entry.getAltitude();\n }\n //sets max Speed\n if (maxAlt < entry.getAltitude()) {\n maxAlt = entry.getAltitude();\n }\n\n }\n averageAlt = sumAlt/trackingList.size();\n }", "public Builder setAltitude(int value) {\n \n altitude_ = value;\n onChanged();\n return this;\n }", "public void setAltitudeColUnits(String altitudeColUnits)\n {\n myAltitudeColUnits = altitudeColUnits;\n }", "public int getAltitudeMode()\n {\n return altitudeMode;\n }", "public float altitude_terrain_GET()\n { return (float)(Float.intBitsToFloat((int) get_bytes(data, 24, 4))); }", "public Double getAltitude()\n\t{\n\t\treturn null;\n\t}", "public void up() {\n\t\tSystem.out.println(\"\\tAir conditioner is up to \" + ++tem +\" degrees\");\n\t}", "@MavlinkFieldInfo(\n position = 4,\n unitSize = 4,\n signed = true,\n description = \"Altitude (MSL). Note that virtually all GPS modules provide both WGS84 and MSL.\"\n )\n public final int alt() {\n return this.alt;\n }", "public float altitude_local_GET()\n { return (float)(Float.intBitsToFloat((int) get_bytes(data, 16, 4))); }", "@Override\n public double getAltitude()\n {\n return myPosition.getLocation().subtract(getClosestModelPosition()).getLength();\n }", "public PositionWithAltitude(Position p, double alt) {\r\n\t\tsuper(p.getLatitude(), p.getLongitude(), p.getElevation());\r\n\t\taltitude = alt;\r\n\t}", "public void setLocation(double latitude, double longtitude, double altitude) {\r\n\t\tthis.p = new Point3D(longtitude, latitude, altitude);\r\n\t}", "@MavlinkFieldInfo(\n position = 4,\n unitSize = 4,\n signed = true,\n description = \"Altitude (MSL). Note that virtually all GPS modules provide both WGS84 and MSL.\"\n )\n public final Builder alt(int alt) {\n this.alt = alt;\n return this;\n }", "void setMaxActiveAltitude(double maxActiveAltitude);", "public void output() {\n System.out.printf(\"Dien tich: %.2f \\n\", getArea());\n System.out.printf(\"Chu vi: %.2f \\n\", getPeripheral());\n }", "public double getAltitude() {\n\t\tBlockPos groundPos = world.getHeight(getPosition());\n\t\treturn posY - groundPos.getY();\n\t}", "@Override\r\n\tpublic void askAltitudeAsync() throws Exception\r\n\t\t{\n\r\n\t\tbyte[] tabByte = TrameEncoder.coder(ASK_MSG_ALTITUDE);\r\n\t\toutputStream.write(tabByte);\r\n\t\t}", "public double getResultLocationAltitude() {\n return resultLocationAltitude;\n }", "void setMinActiveAltitude(double minActiveAltitude);", "public final flipsParser.altitude_return altitude() throws RecognitionException {\n flipsParser.altitude_return retval = new flipsParser.altitude_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n flipsParser.fixedAltitude_return fixedAltitude180 = null;\n\n flipsParser.relativeAltitude_return relativeAltitude181 = null;\n\n\n RewriteRuleSubtreeStream stream_fixedAltitude=new RewriteRuleSubtreeStream(adaptor,\"rule fixedAltitude\");\n RewriteRuleSubtreeStream stream_relativeAltitude=new RewriteRuleSubtreeStream(adaptor,\"rule relativeAltitude\");\n try {\n // flips.g:342:2: ( fixedAltitude -> ^( DISTANCE FIXED Z fixedAltitude ) | relativeAltitude -> ^( DISTANCE RELATIVE Z relativeAltitude ) )\n int alt69=2;\n alt69 = dfa69.predict(input);\n switch (alt69) {\n case 1 :\n // flips.g:342:4: fixedAltitude\n {\n pushFollow(FOLLOW_fixedAltitude_in_altitude1718);\n fixedAltitude180=fixedAltitude();\n\n state._fsp--;\n\n stream_fixedAltitude.add(fixedAltitude180.getTree());\n\n\n // AST REWRITE\n // elements: fixedAltitude\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 343:2: -> ^( DISTANCE FIXED Z fixedAltitude )\n {\n // flips.g:343:5: ^( DISTANCE FIXED Z fixedAltitude )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(DISTANCE, \"DISTANCE\"), root_1);\n\n adaptor.addChild(root_1, (CommonTree)adaptor.create(FIXED, \"FIXED\"));\n adaptor.addChild(root_1, (CommonTree)adaptor.create(Z, \"Z\"));\n adaptor.addChild(root_1, stream_fixedAltitude.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 2 :\n // flips.g:344:4: relativeAltitude\n {\n pushFollow(FOLLOW_relativeAltitude_in_altitude1736);\n relativeAltitude181=relativeAltitude();\n\n state._fsp--;\n\n stream_relativeAltitude.add(relativeAltitude181.getTree());\n\n\n // AST REWRITE\n // elements: relativeAltitude\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 345:2: -> ^( DISTANCE RELATIVE Z relativeAltitude )\n {\n // flips.g:345:5: ^( DISTANCE RELATIVE Z relativeAltitude )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(DISTANCE, \"DISTANCE\"), root_1);\n\n adaptor.addChild(root_1, (CommonTree)adaptor.create(RELATIVE, \"RELATIVE\"));\n adaptor.addChild(root_1, (CommonTree)adaptor.create(Z, \"Z\"));\n adaptor.addChild(root_1, stream_relativeAltitude.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n retval.tree = (CommonTree)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 = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "private void onLocation(double latitude, double longitude, double altitude) {\n onLocation(latitude, longitude, altitude, null);\n }", "public float getSavedAltitude() {\n double tiltX = getSavedTiltX();\n double tiltY = getSavedTiltY();\n\n double[] out = new double[2];\n PLevel.Type.evalAzimuthXAndAltitude(out, tiltX, tiltY);\n return (float) out[1];\n }", "public double getAltitudeRadians() {\n return altitude * Math.PI / 180d;\n }", "public String getAltitudeColumn()\n {\n return myAltitudeColumn;\n }", "@Test\n public void altitudeForYWorks(){\n PanoramaParameters p = new PanoramaParameters(new GeoPoint(PI, PI/2), 3600, PI, PI/3, 30000, 2500, 800);\n assertEquals(0, p.altitudeForY(399.5), 1e-7);\n assertEquals(p.verticalFieldOfView()/2, p.altitudeForY(0), 1e-7);\n assertEquals(0.1485520336, p.altitudeForY(45), 1e-7);\n }", "public double getAltitude(Coordinates coord, long time) throws AstrometryException;", "public void setAltura(int newAlt){\n this._altura=newAlt;\n }", "public double generateAltitude(Double startRange, Double endRange);", "public void setResultLocationAltitude(double resultLocationAltitude) {\n this.resultLocationAltitude = resultLocationAltitude;\n }", "public float getAltitude() {\n double tiltX = getTiltX();\n double tiltY = getTiltY();\n\n double[] out = new double[2];\n PLevel.Type.evalAzimuthXAndAltitude(out, tiltX, tiltY);\n return (float) out[1];\n }", "@Override\r\n\tpublic double getAlt() {\n\t\treturn this.alt;\r\n\t}", "public float altitude_monotonic_GET()\n { return (float)(Float.intBitsToFloat((int) get_bytes(data, 8, 4))); }", "public boolean isUseAltitude()\n {\n return myUseAltitude;\n }", "private int getAvgFlightAltitude() {\n\t\treturn this.avgFlightAltitude;\n\t}", "public Builder clearAltitude() {\n bitField0_ = (bitField0_ & ~0x00000040);\n altitude_ = 0L;\n onChanged();\n return this;\n }", "@Override\n\tpublic String getDescription() {\n\t\treturn \"This extension allows setting of different winds at different altitudes.\";\n\t}", "public void setAltura(double altura) {\r\n\t\tthis.altura = altura;\r\n\t}", "@Override\n public void affiche(){\n System.out.println(\"Loup : \\n points de vie : \"+this.ptVie+\"\\n pourcentage d'attaque : \"+this.pourcentageAtt+\n \"\\n dégâts d'attaque : \"+this.degAtt+\"\\n pourcentage de parade :\"+this.pourcentagePar+\n \"\\n position : \"+this.pos.toString());\n\n }", "public Builder clearAltitude() {\n \n altitude_ = 0;\n onChanged();\n return this;\n }", "public static void getTelescopeAltAz(String x, String y) {\n\t\tdouble xDouble = Double.parseDouble(x);\r\n\t\tdouble yDouble = Double.parseDouble(y);\r\n\r\n\t\t// convert to degrees based on the steps\r\n\t\tdouble xCoordinate = (xDouble / MOUSE_TICKS_PER_REV) * 360.0;\r\n\t\tdouble yCoordinate = (yDouble / MOUSE_TICKS_PER_REV) * 360.0;\r\n\r\n\t\tac.setDegreeDecimal(yCoordinate);\r\n\t\t// ac.convertToDegMinSec();\r\n\t\t// GuiUpdater.window.scopeAlt.setText(\"\" + ac.getDeg() + \"\\u00b0\" +\r\n\t\t// ac.getMin() + \"'\" + ac.getSec() + \"\\\"\");\r\n\t\tac.setDegreeDecimal(xCoordinate);\r\n\t\t// ac.convertToDegMinSec();\r\n\t\t// GuiUpdater.window.scopeAz.setText(\"\" + ac.getDeg() + \"\\u00b0\" +\r\n\t\t// ac.getMin() + \"'\" + ac.getSec() + \"\\\"\");\r\n\r\n\t\tscopeAlt = yCoordinate;\r\n\t\tscopeAz = xCoordinate;\r\n\r\n\t\tLog.i(TAG, \" +++ GOT TELESCOPE ALT AZ +++ \" + scopeAlt + \" \" + scopeAz);\r\n\t}", "public HoverBot(int maxSpeed, int altitude) {\r\n\t\tsuper(maxSpeed); \r\n\t\tthis.altitude = altitude;\r\n\t}", "public Double getMaxAltitude() {\n return maxAltitude;\n }", "public void setAltitudeAngle( float degrees )\n {\n if ( degrees > MAX_ALT_ANGLE )\n degrees = MAX_ALT_ANGLE;\n else if ( degrees < -MAX_ALT_ANGLE )\n degrees = -MAX_ALT_ANGLE;\n\n altitude_slider.setValue( (int)(ANGLE_SCALE_FACTOR * degrees) );\n }", "public void setAltura(double altura) {\n\t\tthis.altura = altura;\n\t}", "public String getAltitudeColUnits()\n {\n return myAltitudeColUnits;\n }", "private void onLocation(double latitude, double longitude, double altitude,\n @Nullable Boolean gpsFixedOnTakeOff) {\n if (Double.compare(latitude, UNKNOWN_COORDINATE) != 0\n && Double.compare(longitude, UNKNOWN_COORDINATE) != 0) {\n mPilotingItf.updateLocation(latitude, longitude, altitude);\n if (gpsFixedOnTakeOff != null) {\n mPilotingItf.updateGpsFixedOnTakeOff(gpsFixedOnTakeOff);\n }\n } else {\n mPilotingItf.resetLocation();\n }\n }", "public static void alturaArbol() {\n int angulo = 35;\n\n double anguloConvert = Math.toRadians(angulo);\n int x = 20;\n int y;\n y = (int) Math.round(x * Math.tan(anguloConvert));\n System.out.println(\"Altura del arbol: \" + y);\n }", "public List<Double> getAltitudes() {\n return mAltitudes;\n }", "double getMaxActiveAltitude();", "double getTransitAltitude(Coordinates coord, long time) throws AstrometryException;", "public FoursquarePathBuilder setAlt(double alt) {\n String alts = String.format(\"%f1\", alt);\n addParameter(\"alt\", alts);\n return this;\n }", "public void azzera() { setEnergia(0.0); }", "private void updateAmplificationValue() {\n ((TextView) findViewById(R.id.zoomUpDownText)).setText(String.valueOf(curves[0].getCurrentAmplification()));\n }", "@Override\n public void apply(MAltitude alt) {\n updateFlightStats();\n }", "double getMinActiveAltitude();", "public void setAirPressure(double airpress){airpressval.setText(Double.toString(airpress));}", "public Double getMinAltitude() {\n return minAltitude;\n }", "public FoursquarePathBuilder setAltAcc(double altAcc) {\n String altAccs = String.format(\"%f2\", altAcc);\n addParameter(\"altAcc\", altAccs);\n return this;\n }", "public static int flightLevel(double alt) {\n //Note: foot conversion is hard-coded to avoid reference to Units class.\n return (int)Math.round(alt/0.3048/500.0)*5; \n }", "public void setOrientation(LatLonAlt lla) {\r\n\tOrientation = Location.azimuth_elevation_dist(lla)[0];\r\n}", "@Override\r\n\tpublic void Print() {\r\n\t\tSystem.out.print(this.tav+\" \");\r\n\t\t\r\n\t}", "private void createUpperStateEnergiesString() {\r\n\t\tDecimalFormat df1 = new DecimalFormat(\"0.00000000\");\r\n\t\tint firstJVal = upperEnergyValuesWithJ.entrySet().iterator().next().getKey();\r\n\t\tenergyVals = System.lineSeparator() + \"Upper State Energies\" + \" (First value has J=\" +\r\n\t\tfirstJVal + \")\" + System.lineSeparator();\r\n\t\t\r\n\t\tfor (Map.Entry<Integer, Double> linePrediction : upperEnergyValuesWithJ.entrySet()) {\r\n\t\t\t//rightPadding(String.valueOf(linePrediction.getKey()), 6)\r\n\t\t\tenergyVals += df1.format(linePrediction.getValue()) + \"\\n\";\r\n\t\t}\r\n\t}", "public double getAltura() {\n\t\treturn altura;\n\t}", "@Override\r\n\tdouble alan() {\n\t\tSystem.out.println(\"Ucgenin Alani : \");\r\n\t\treturn kenar1 * kenar2 /2;\r\n\t}", "private double azimuth(double alpha2){\n details.setText(details.getText()+\"compass \" + String.valueOf(compass));\n\n return Distance.round(compass + alpha2,6);\n }", "public void printLocationInfo()\n {\n System.out.println(currentRoom.getLongDescription());\n System.out.println();\n }", "@Override\n\tpublic void getCoordinates() {\n\t\tSystem.out.println(\"Your Coordinates: 18.1124° N, 79.0193° E \");\n\t}", "boolean hasAltitude();", "@Override\n public String updateLog() {\n return mylon;\n }", "public void show(){\n sensorTextView.setText(String.format(Locale.US,\"Earth\\nx: %f\\n\" +\"y: %f\\nz: %f\", earthMag[0], earthMag[1], earthMag[2]));\n }", "public void setAirHumidity(double airhum){humidityval.setText(Double.toString(airhum));}" ]
[ "0.7639913", "0.76076853", "0.7600675", "0.7234484", "0.7194461", "0.7119397", "0.69888544", "0.69888544", "0.69486713", "0.6943693", "0.6883898", "0.6845076", "0.6836", "0.6830708", "0.6768723", "0.6762687", "0.6714521", "0.67060995", "0.6703152", "0.6697464", "0.667091", "0.6541686", "0.65001297", "0.64707536", "0.64028805", "0.6287939", "0.6283097", "0.6273028", "0.6256704", "0.6246541", "0.6223537", "0.6213885", "0.6195523", "0.6181607", "0.61374134", "0.61308444", "0.6126846", "0.61027527", "0.60599154", "0.5977357", "0.59483767", "0.5940667", "0.58878094", "0.58732355", "0.58532244", "0.58370286", "0.5829445", "0.58178437", "0.5810552", "0.579299", "0.5773363", "0.57386386", "0.57011706", "0.5696922", "0.5644202", "0.56399155", "0.559806", "0.5597708", "0.5597517", "0.5593469", "0.5570937", "0.55689794", "0.55247605", "0.5516631", "0.5511033", "0.5504979", "0.5487267", "0.5475883", "0.5474103", "0.54631966", "0.5461065", "0.54565656", "0.54531825", "0.545082", "0.5441975", "0.5419024", "0.5397654", "0.53747785", "0.5325825", "0.5322597", "0.53047967", "0.53046685", "0.52970904", "0.5294956", "0.5291018", "0.5274392", "0.52578306", "0.52529377", "0.52164197", "0.52139604", "0.518218", "0.51689756", "0.51522815", "0.5151441", "0.51335824", "0.51213986", "0.5120462", "0.5108145", "0.5103496", "0.50981885" ]
0.735763
3
remove dups /HashSet hashSet = new HashSet(); hashSet.addAll(contestItems); contestItems.removeAll(contestItems); contestItems.clear(); contestItems.addAll(hashSet); truncate
public static void syncItems() { ArrayList<Contest> keep = null; if (contestItems.size() > CONTEST_LIST_SIZE) { keep = new ArrayList<>(contestItems.subList(0, CONTEST_LIST_SIZE)); keep = removeDups(keep); // sort and redraw Collections.sort(keep, new ContestComparator()); adapter.clear(); adapter.addAll(keep); //adapter = new ContestItemsAdapter(mCtx, keep); } adapter.notifyDataSetChanged(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void restoreList() {\n\n if (copyList.isEmpty())\n return;\n\n\n getList().clear();\n\n for (Map<String, ?> item : copyList) {\n getList().add(item);\n }\n\n copyList.clear();\n //Log.d(\"test\", \"After restore: Champlist size \" + getSize() + \" copylist size \" + copyList.size());\n\n }", "@Test\r\n\t\tpublic void testDeleteAll() {\n\t\t\ttestingSet = new IntegerSet(); \r\n\t\t\ttestingSet.insertAll(list1); \r\n\t\t\ttestingSet.deleteAll();\r\n\t\t\t// after data is deleted set should be empty \r\n\t\t\tassertTrue(testingSet.isEmpty());\r\n\t\t}", "@Test\n public void testClear_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 1, 1, 1, 1, 1);\n instance.addAll(c);\n instance.clear();\n\n assertTrue(instance.isEmpty());\n\n }", "public void clear() {\n duplicates.clear();\n }", "public void removeAllItems ();", "@Test\n public void testMerge() {\n \t//create data set\n final LastWriteWinSet<String> lastWriteWinSet1 = new LastWriteWinSet<>();\n lastWriteWinSet1.add(time3, \"php\");\n lastWriteWinSet1.add(time1, \"java\");\n lastWriteWinSet1.add(time1, \"scala\");\n lastWriteWinSet1.delete(time2, \"scala\");\n\n final LastWriteWinSet<String> lastWriteWinSet2 = new LastWriteWinSet<>();\n lastWriteWinSet2.add(time1, \"php\");\n lastWriteWinSet2.add(time1, \"python\");\n lastWriteWinSet2.add(time1, \"scala\");\n lastWriteWinSet2.delete(time2, \"php\");\n\n // run test\n final LastWriteWinSet<String> resultSet = lastWriteWinSet1.merge(lastWriteWinSet2);\n\n assertTrue(resultSet.getData().size() == 3);\n assertTrue(resultSet.getData().contains(\"php\"));\n assertTrue(resultSet.getData().contains(\"python\"));\n assertTrue(resultSet.getData().contains(\"java\"));\n \n \n final GrowOnlySet<LastWriteWinSet.ItemTD<String>> resultAddSet = resultSet.getAddSet();\n final Set<LastWriteWinSet.ItemTD<String>> addedData = resultAddSet.getData();\n assertTrue(addedData.size() == 5);\n assertTrue(addedData.contains(new LastWriteWinSet.ItemTD<>(1, \"php\")));\n assertTrue(addedData.contains(new LastWriteWinSet.ItemTD<>(3, \"php\")));\n assertTrue(addedData.contains(new LastWriteWinSet.ItemTD<>(1, \"java\")));\n assertTrue(addedData.contains(new LastWriteWinSet.ItemTD<>(1, \"python\")));\n assertTrue(addedData.contains(new LastWriteWinSet.ItemTD<>(1, \"scala\")));\n\n final GrowOnlySet<LastWriteWinSet.ItemTD<String>> resultDeleteSet = resultSet.getDeleteSet();\n final Set<LastWriteWinSet.ItemTD<String>> deletedData = resultDeleteSet.getData();\n assertTrue(deletedData.size() == 2);\n assertTrue(deletedData.contains(new LastWriteWinSet.ItemTD<>(2, \"scala\")));\n assertTrue(deletedData.contains(new LastWriteWinSet.ItemTD<>(2, \"php\")));\n }", "public void compact() {\n Entry<K,V> e;\n Entry<K,V> possibleDup;\n for (final Iterator<Entry<K,V>> itr = entries.iterator(); itr.hasNext(); ) {\n e = itr.next();\n possibleDup = getEntry(e.getKey()); // Returns the newest entry\n if (possibleDup != null && e != possibleDup) {\n itr.remove();\n }\n }\n\n size = entries.size(); // We now know the size\n\n // Compact the underlying array\n entries.trimToSize();\n }", "@Override\n public void clear() {\n original.clear();\n filtered.clear();\n notifyDataSetChanged();\n }", "public void supprimerCollection(){\r\n collection.clear();\r\n }", "private static void cleanLeaseSetCache(RouterContext ctx, Map<HashPair, LeaseSet> tc) {\n long now = ctx.clock().now();\n for (Iterator<LeaseSet> iter = tc.values().iterator(); iter.hasNext(); ) {\n LeaseSet l = iter.next();\n if (l.getEarliestLeaseDate() < now)\n iter.remove();\n }\n }", "public void clear()\n {\n dessertList.clear();\n }", "void removeAllEntries();", "private static void fixPopulation() {\r\n \t//get a copy of the population hash map\r\n \tHashMap<String, ArrayList<Critter>> copy = new HashMap<String, ArrayList<Critter>>(population);\r\n \tIterator<String> populationIterator = copy.keySet().iterator();\r\n \twhile (populationIterator.hasNext()) { \r\n String pos = populationIterator.next();\r\n ArrayList<Critter> critterList = copy.get(pos);\r\n //clear the key if there is no more critters in that space\r\n if(critterList.size() == 0 || critterList == null) {\r\n \tpopulation.remove(pos);\r\n }\r\n \t}\r\n }", "public static void main(String[] args) {\n\t\tCollection c=new ArrayList();\n\t\t\n\t\tc.add(23);\n\t\tc.add(34);\n\t\t\n\t\tCollection c1=new ArrayList();\n\t\t\n\tc1.add(45);\n\tc1.add(67);\n\t\n\tc.addAll(c1);\n\tSystem.out.println(c);\n\t\n\t\n\tCollection c2=new ArrayList();\n\tc2.add(12);\n\tc2.add(23);\n\tc2.add(25);\n\t\n\tCollection c3=new ArrayList();\n\tc3.add(34);\n\tc3.add(45);\n\tc3.add(25);\n\tc3.add(25);\n\t\n\tc2.addAll(c3);\n\t\n\tSystem.out.println(c2);\n\tSystem.out.println(\"-------------------\");\n\t\n\t\n\tc2.removeAll(c3);\n\tSystem.out.println(c2);\n\t\n\tSystem.out.println(\"-------------------\");\n\tCollection c4=new ArrayList();\n\tc4.add(25);\n\tc4.add(23);\n\tc4.add(86);\n\tc4.add(98);\n\t\n\t\n\t\n\tCollection c5=new ArrayList();\n\tc5.add(25);\n\tc5.add(23);\n\tc5.add(12);\n\tc5.add(13);\n\t\n\tc4.retainAll(c5);\n\tSystem.out.println(c4);\n\t\n\tSystem.out.println(\"-------------------\");\n\t\n\tCollection c6=new ArrayList();\n\tc6.add(12);\n\tc6.add(23);\n\t\n\tObject a[]= c6.toArray();\n\tfor(int i=0;i < a.length ; i++)\n\t{\n\t\tSystem.out.println(a[i]);\n\t}\n\t\n\t\n\t\n\t\n\t\n\t\n\n\t\n\t\n\tc4.clear();\n\tSystem.out.println(c4);\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t}", "private void clearTasks(){\n ArrayList<Item> iteratorList = new ArrayList<Item>(items);\n Iterator<Item> it = iteratorList.iterator();\n while(it.hasNext()){\n Item i = it.next();\n if (!i.isCategory()){\n Task t = (Task) i;\n if(t.finished){\n \tDirectIO.RemoveItem(t);\n adapter.remove(i);\n }\n }\n }\n }", "public void removeAllItems() {\n contents.clear();\n }", "public static void main(String[] args)\n {\n\n HastTable<String> wordset = new HastTable<>();\n wordset.add(\"green\");\n wordset.add(\"green\");\n wordset.add(\"green\");\n wordset.add(\"green\");\n wordset.add(\"green\");\n wordset.add(\"green\");\n wordset.add(\"green\");\n// wordset.add(\"pink\");\n// wordset.add(\"yellow\");\n// wordset.add(\"purple\");\n// wordset.add(\"red\");\n// wordset.add(\"black\");\n\n System.out.println(\"Before reshash(): \" + wordset.toString());\n\n wordset.add(\"purple\");\n wordset.add(\"orange\");\n\n System.out.println(\" After reshash(): \" + wordset.toString());\n System.out.println(\"remove(red): \" + wordset.remove(\"red\"));\n System.out.println(\"size(): \" + wordset.size());\n\n for (String word: wordset)\n {\n System.out.println(word);\n //wordset.remove(\"pink\");\n }\n\n\n HastTable<Integer> intSet = new HastTable<>();\n intSet.add(13);\n intSet.add(1);\n intSet.add(14);\n intSet.add(18);\n // intSet.add(13);\n intSet.add(59);\n intSet.add(44);\n System.out.println(\"Before reshash(): \" + intSet.toString());\n\n intSet.add(12);\n intSet.add(85);\n // intSet.add(55);\n // intSet.add(78);\n // intSet.add(71);\n // intSet.add(16);\n\n// intSet.add(9);\n// intSet.add(34);\n System.out.println(\"After reshash(): \" + intSet.toString());\n\n\n }", "@Test\n public void testClear() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 1, 1, 1, 1, 1);\n instance.addAll(c);\n instance.clear();\n\n assertTrue(instance.isEmpty());\n\n }", "@Test\n public void testClear_WithItems() {\n Map<String, String> toAdd = fillMap(1, 10);\n\n map.putAll(toAdd);\n\n configureAnswer();\n\n testObject.clear();\n\n for (Entry<String, String> entry : toAdd.entrySet()) {\n verify(helper).fireRemove(entry);\n }\n verifyNoMoreInteractions(helper);\n }", "public void clear() {\n\t\tallItems.clear();\n\t\tminimums.clear();\n\t}", "protected void removeDuplicates() {\n log.trace(\"Removing duplicated\");\n long startTime = System.currentTimeMillis();\n int initial = size();\n E last = null;\n int index = 0;\n while (index < size()) {\n E current = get(index);\n if (last != null && last.equals(current)) {\n if (log.isTraceEnabled()) {\n log.trace(\"Removing duplicate '\" + current + \"'\");\n }\n remove(index);\n } else {\n index++;\n }\n last = current;\n }\n log.debug(String.format(\"Removed %d duplicates from a total of %d values in %dms\",\n initial - size(), initial, System.currentTimeMillis() - startTime));\n }", "@Test\n void testDeleteAllEntries() {\n ToDoList todoList = new ToDoList();\n ToDo todo1 = new ToDo(\"Todo1\");\n todo1.setInhalt(\"Dies ist ein Test\");\n todoList.add(todo1);\n todo1.setStatus(Status.BEENDET);\n todoList.add(new ToDo((\"Todo2\")));\n ToDo todo3 = new ToDo(\"Todo3\");\n todo3.setInhalt(\"3+3=6\");\n todo3.setStatus(Status.IN_ARBEIT);\n todoList.add(todo3);\n\n //Entferne alle Elemente mittels Iterator\n Iterator it = todoList.iterator();\n while (it.hasNext()){\n it.next();\n it.remove();\n }\n\n assertEquals(0, todoList.size());\n }", "public void clearItems() {\n grabbedItems.clear();\n }", "public void clearItems(){\n items.clear();\n }", "private void cleanSweep(){\n // Corrects the reminder dates for those reminders which will be repeating.\n refreshAllRepeatReminderDates();\n\n // Starts removing expired reminders.\n Calendar timeRightNow = Calendar.getInstance();\n boolean cleanList;\n for (int outerCounter=0; outerCounter<reminderItems.size();outerCounter++) {\n cleanList=true;\n for (int counter = 0; counter < reminderItems.size(); counter++) {\n int year = reminderItems.get(counter).getReminderYear();\n int month = reminderItems.get(counter).getReminderMonth();\n int day = reminderItems.get(counter).getReminderDay();\n int hour = reminderItems.get(counter).getReminderHour();\n int minute = reminderItems.get(counter).getReminderMinute();\n int second = 0;\n\n Calendar timeOfDeletion = Calendar.getInstance();\n timeOfDeletion.set(year, month, day, hour, minute, second);\n\n if (timeOfDeletion.before(timeRightNow)) {\n deleteReminderItem(counter);\n cleanList=false;\n break;\n }\n }\n if(cleanList){\n break;\n }\n }\n\n // Refreshes the reminder date descriptions (correcting \"Today\" and \"Tomorrow\" depending on the date).\n refreshAllDateDescriptions();\n }", "public synchronized void truncate()\n {\n clear(true);\n }", "public void removeAllEntries() {\n }", "public void clearRandomItems();", "@Test\n public void testRemoveAll_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n boolean expectedResult = true;\n boolean result = instance.removeAll(c);\n\n assertEquals(expectedResult, result);\n\n }", "public void clear() {\n\t\tentries.clear();\n\t}", "@Test\r\n public void removeAndSize() throws Exception {\r\n TreeSet<Integer> s = new TreeSet<>();\r\n s.addAll(sInt);\r\n assertTrue(s.remove(2));\r\n assertEquals(4, s.size());\r\n assertFalse(s.remove(2));\r\n assertEquals(4, s.size());\r\n }", "@Test\n public void testRemoveAll_Size_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 0;\n assertEquals(expectedResult, instance.size());\n\n }", "protected abstract Set<String> _removeFromSet(String key, Collection<String> str);", "@Test\n public void testRemove_int_Order_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(2);\n\n List<Integer> expResult = Arrays.asList(1, 1, 1, 1, 1, 1);\n\n assertTrue(isEqual(expResult, instance));\n\n }", "public void removeExpiredAuctions(){\r\n ArrayList <String> expiredAuction = new ArrayList <String>(super.size());\r\n for(String expiredKey: keySet()){\r\n if(getAuction(expiredKey).getTimeRemaining() == 0){\r\n expiredAuction.add(expiredKey);\r\n }\r\n } \r\n for(String expiredKey: expiredAuction){\r\n super.remove(expiredKey);\r\n }\r\n }", "@Test\r\n\tpublic void testRemoveAll() {\r\n\t\tDoubleList sample = new DoubleList(new Munitions(2, 3, \"iron\"));\r\n\t\tsample.add(new Munitions(new Munitions(3, 4, \"iron\")));\r\n\t\tAssert.assertTrue(list.removeAll(sample));\r\n\t\tAssert.assertFalse(list.removeAll(sample));\r\n\t\tAssert.assertEquals(13, list.size());\r\n\t}", "public static void main(String[] args) {\n Set<Integer> S1 = new TreeSet<>();\r\n // add objects\r\n S1.add(65); S1.add(36); S1.add(24); S1.add(36);\r\n \r\n // show the content and assert they are sorted and no duplications\r\n System.out.println(\"set = \" + S1); \r\n //remove elements\r\n S1.remove(36); S1.remove(24);\r\n System.out.println(S1); //assert set = 65\r\n S1.add(15); S1.add(24); S1.add(80); // add 15, 24, 80\r\n System.out.println(\"set = \" +S1); //assert set = 15, 24, 65, 80\r\n \r\n System.out.println(\"Does S1 contain 10?\"\r\n + S1.contains(10)); // assert false\r\n System.out.println(\"S1 has \" + S1.size() +\" objects\"); // assert 4\r\n\r\n // create another Set object implemented using HashSet\r\n Set<Integer> S2 = new HashSet<>();\r\n // add all objects in S1 to S2\r\n S2.addAll(S1);\r\n System.out.println(\"hashset = \" +S2); //assert they may not be ordered\r\n\r\n // create another Set object implemented using LinkedHashSet\r\n Set<Integer> S3 = new LinkedHashSet<>();\r\n S3.add(150); // add 150\r\n S3.addAll(S1);// add all objects in S1 to S2\r\n System.out.println(\"LinkedHashSet = \" +S3);//assert s3=[150,15,24,65,80]\r\n \r\n S3.removeAll(S3); // remove all items\r\n System.out.println(\"LinkedHashSet = \" +S3);//assert s3=[]\r\n }", "public synchronized void cleanUpLogCache(int clearance){\n \tif(logs.size() + clearance >= logSize && logs.size() >= TEXT_HEIGHT)\n \t\t((VisibleArrayList<?>)logs).removeRange(1, logs.size() - (logs.size()-TEXT_HEIGHT));\n }", "public void removeAll() \r\n\t{\t\r\n\t\tbookArray = new String[MAXSIZE];\r\n\t\tnumItems = 0;\r\n\t}", "@Test\n public void testRemoveAll_Not_Empty_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(1);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 1;\n assertEquals(expectedResult, instance.size());\n\n }", "public void clear(){\n this.items.clear();\n }", "public void empty() {\n _items.clear();\n }", "private void resize() {\n if (ifFull() || ifTooEmpty()) {\n int capacity = items.length;\n if (ifFull()) {\n capacity *= 2;\n } else if (ifTooEmpty()) {\n capacity /= 2;\n }\n Item[] newArray = (Item[]) new Object[capacity];\n int lastIndex = moveBack(nextLast, 1);\n int firstIndex = moveForward(nextFirst, 1);\n System.arraycopy(items, 0, newArray, 0, lastIndex + 1);\n int numOfReminder = size - (lastIndex + 1);\n int newFirstIndex = newArray.length - numOfReminder;\n System.arraycopy(items, firstIndex, newArray, newFirstIndex, numOfReminder);\n items = newArray;\n nextFirst = moveBack(newFirstIndex, 1);\n nextLast = moveForward(lastIndex, 1);\n return;\n }\n return;\n }", "public void makeEmpty(){\n for(int element = set.length - 1; element >= 0; element--){\n remove(set[element]);\n }\n }", "private void recalcSpecs() {\n if (!(this.mCurrentSpecs == null || this.mAllTiles == null)) {\n this.mTiles.clear();\n this.mOtherTiles.clear();\n ArrayList arrayList = new ArrayList(this.mAllTiles);\n for (int i = 0; i < this.mCurrentSpecs.size(); i++) {\n TileQueryHelper.TileInfo andRemoveOther = getAndRemoveOther(this.mCurrentSpecs.get(i), arrayList);\n if (andRemoveOther != null) {\n this.mTiles.add(andRemoveOther);\n }\n }\n this.mTileDividerIndex = this.mTiles.size();\n this.mOtherTiles.addAll(arrayList);\n this.mEditIndex = this.mTiles.size();\n notifyDataSetChanged();\n }\n }", "public static void main(String[] args) {\n ArrayList<Integer> nums = new ArrayList<>();\n nums.addAll( Arrays.asList(100, 2000, 50, 50, 100, 200, 300, 50));\n nums=new ArrayList<>(new TreeSet<>(nums));\n System.out.println(nums);\n\n String str1 = \"babababC\";\n str1 = new TreeSet<>( Arrays.asList(str1.split(\"\")) ).toString();\n System.out.println(str1);\n\n\n System.out.println(\"=========================================================================================\");\n\n /**\n * - 2. Write a program that can REMOVE THE DUPLICATES from an ArrayList. DO NOT change the ORDER\n * -> LinkedHashSet -> Remove Duplicates and Keeps the Insertion Order\n */\n ArrayList<Integer> list = new ArrayList<>(Arrays.asList(6,6,6,6,5,5,5,4,4,4,4));\n list=new ArrayList<>(new LinkedHashSet<>(list));\n System.out.println(list);\n\n\n /**\n * - 1. Write a program that can remove the duplicated characters from String and store them into variable\n */\n String str = \"ABABABCDEF\";\n String[] arr = str.split(\"\");\n str = new LinkedHashSet<>(Arrays.asList(arr)).toString().replace(\", \", \"\");\n System.out.println(str);\n\n\n System.out.println(\"=========================================================================================\");\n\n /**\n * -> Does not accept duplicates, and sort the objects\n * -> HashSet accepts null\n * -> HashSet is faster than TreeSet\n */\n HashSet<Integer> numbers = new HashSet<>(Arrays.asList(10,9,10, 9, 8, 7, 8, 7, 6, 5, 6, 1));\n System.out.println(numbers ); // -> [1, 5, 6, 7, 8, 9, 10]\n\n\n System.out.println(\"=========================================================================================\");\n\n /**\n * - ITERATOR: -> is the only way to remove duplicates from collection\n * - removeIf -> removes numbers because it is uses the iterator interface internally. Iterator implicitly\n *\n * - hasNext() method only can go forward cant go backward. it stars from next index\n * - when we use it our loop hasNext() iterates from the next index\n * - iterator(); - hasNext(); - next(); - remove();\n */\n ArrayList<Integer> list2 = new ArrayList<>(Arrays.asList(1,1,2,2,3,3,4,4,5,5));\n list2.removeIf( p -> p < 4 );\n System.out.println(list2);\n\n\n ArrayList<Integer> list3 = new ArrayList<>(Arrays.asList(1,1,2,2,3,3,4,4,5,5));\n Iterator<Integer> it =list3.iterator(); // - this method will return iterator\n while( it.hasNext() ){ // - iterator explicitly. While loop only accept boolean\n if( it.next() < 4 ){\n it.remove();\n }\n }\n System.out.println(list3);\n\n\n ArrayList<Integer> list4 = new ArrayList<>(Arrays.asList(1,1,2,3,3,4,4,5,5));\n // - hasNext(); will iterate all the indexes. We do not need extra iterator in the loop\n for(Iterator<Integer> I = list4.iterator(); I.hasNext(); ){\n if( I.next() < 4) {\n I.remove();\n }\n }\n System.out.println(list4);\n\n\n\n LinkedHashSet<String> names = new LinkedHashSet<>();\n names.addAll(Arrays.asList( \"Mehmet\",\"Mohammed\",\"Yucel\",\"Sha\",\"Ozgur\", \"Ahmet\",\"Osmanj\",\"Ozgur\",\"Ozgur\",\"Irina\"));\n System.out.println(names);\n Iterator<String> it3 = names.iterator();\n while( it3.hasNext() ){\n String s = it3.next();\n if(s.contains(\"m\") || s.contains(\"M\")){ // - s.toLowerCase.contains(\"m\")\n it3.remove();\n }\n }\n System.out.println(names);\n\n /*\n ===============================================================\n for(Iterator<String> it3 = names.iterator(); it3.hasNext() ; ){\n String s = it3.next();\n if(s.toLowerCase().contains(\"m\")){\n it3.remove();\n }\n }\n ================================================================\n names.removeIf( s -> s.contains(\"m\") || s.contains(\"M\") );\n ================================================================\n names.removeAll( Arrays.asList( \"Mehmet\", \"Ozgur\", \"Mohammed\" ));\n ================================================================\n names.retainAll( Arrays.asList( \"Yucel\", \"Sha\", \"Ahmet\" ) );\n ================================================================\n boolean result = list.containsAll( Arrays.asList(5, 6, 9, 8, 11 ));\n */\n\n\n\n\n\n\n\n System.out.println(\"=========================================================================================\");\n\n\n\n\n\n }", "public void truncate() {\n if (this.size > this.limit) {\n removeFirst();\n }\n }", "@Test\r\n public void clear() throws Exception {\r\n TreeSet<String> check = new TreeSet<>();\r\n check.addAll(sStr);\r\n check.clear();\r\n assertTrue(check.isEmpty());\r\n }", "@Override\r\n\tpublic void clear() {\n\t\tset.clear();\r\n\t}", "public void clear(){\r\n \t\tcollapsingList.clear();\r\n \t}", "public void clearResultEntries() {\n sp_searchEntries.removeAll();\n }", "public void clear() {\n this.entries = new Empty<>();\n }", "public void clearItems(){\n conversationsList.clear();\n notifyDataSetChanged();\n }", "@Override\n\tpublic void clear() {\n\t\t\n\t\tsuperset.removeRange(lower, upper, fromInclusive, toInclusive);\n\t\t\n\t\t//Alternative direct implementation:\n\t\t//while (pollFirst() != null) {\n\t\t//}\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tArrayList<Integer> oneThruTen = new ArrayList<>();\n\t\tArrayList<Integer> sixThruFifteen = new ArrayList<>();\n\t\tArrayList<Integer> combinedNumbers = new ArrayList<>();\n\n\t\tfor (int i = 1; i < 11; i++) {\n\t\t\toneThruTen.add(i);\n\t\t\tsixThruFifteen.add(i + 5);\n\t\t}\n\n\t\tCollections.shuffle((List<?>) oneThruTen);\n\t\tCollections.shuffle((List<?>) sixThruFifteen);\n\n\t\tSystem.out.println(\"Collection 1:\");\n\t\tfor (Integer integer : oneThruTen) {\n\t\t\tSystem.out.println(integer);\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\tSystem.out.println(\"Collection 2:\");\n\t\tfor (Integer integer : sixThruFifteen) {\n\t\t\tSystem.out.println(integer);\n\t\t}\n\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Collection 1 Size: \" + oneThruTen.size());\n\t\tSystem.out.println(\"Collection 2 Size: \" + sixThruFifteen.size());\n\n\t\tcombinedNumbers.addAll(oneThruTen);\n\t\tcombinedNumbers.addAll(sixThruFifteen);\n\n\t\t// Converting to Set and then reverting to ArrayList to remove duplicate\n\t\tSet<Integer> tempset = new HashSet<>();\n\t\ttempset.addAll(combinedNumbers);\n\t\tcombinedNumbers.clear();\n\t\tcombinedNumbers.addAll(tempset);\n\t\t//sort in ascending order\n\t\tcombinedNumbers.sort(null);\n\t\t//remove middle value\n\t\tcombinedNumbers.remove((combinedNumbers.size() / 2)); // only works if ArrayList size is odd. Would need to check for\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //if size is even or odd if size was unknown\n\t\tSystem.out.println(\"Third Collection in reverse order:\");\n\t\tfor (int i = (combinedNumbers.size() - 1); i > -1; i--) {\n\n\t\t\tSystem.out.println(combinedNumbers.get(i));\n\t\t}\n\t\n\t\tSystem.out.println(\"Third Collection size: \" + combinedNumbers.size());\n\n\t\t// HashMap was chosen because order did not matter and HashMap has the\n\t\t// best performance of the Set types in Collection framework\n\t\tHashMap<String, String> hmap = new HashMap<>();\n\t\thmap.putIfAbsent(\"Paul\", \"Pierce\");\n\t\thmap.putIfAbsent(\"Kevin\", \"Garnett\");\n\t\thmap.putIfAbsent(\"Ray\", \"Allen\");\n\t\thmap.putIfAbsent(\"Kendrick\", \"Perkins\");\n\t\thmap.putIfAbsent(\"Rajon\", \"Rondo\");\n\t\t\n\t\t//Adding duplicate and printing out key,value pair\n\t\tif (hmap.containsKey(\"Paul\")) {\n\t\t\tSystem.out.print(\"Duplicate Entry: \" + \"Paul \");\n\t\t}\n\t\tSystem.out.println(hmap.putIfAbsent(\"Paul\", \"Pierce\")); \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\tSystem.out.println(\"Key/Value Pairs \" + hmap);\n\t\tSystem.out.println(\"Key/Value Collection size: \" + hmap.size());\n\n\t}", "@Test\n public void testRemoveAndClearOnNonEmpty() {\n \n this.iPQ.insert(1);\n this.iPQ.insert(2);\n this.iPQ.insert(3);\n this.iPQ.insert(4);\n this.iPQ.insert(5);\n \n assertEquals(5, this.iPQ.size());\n assertEquals(this.iArray[0], this.iPQ.peek());\n assertEquals(this.iArray[0], this.iPQ.remove());\n assertEquals(4, this.iPQ.size());\n assertEquals(this.iArray[1], this.iPQ.remove());\n assertTrue(this.iPQ.size() == 3);\n this.iPQ.clear();\n assertEquals(0, this.iPQ.size());\n \n this.sPQ.insert(\"a\");\n this.sPQ.insert(\"b\");\n this.sPQ.insert(\"c\");\n this.sPQ.insert(\"d\");\n this.sPQ.insert(\"e\");\n \n assertEquals(sArray.length, this.sPQ.size());\n assertEquals(sArray[0], this.sPQ.peek());\n assertEquals(sArray[0], this.sPQ.remove());\n assertEquals(sArray.length - 1, this.sPQ.size());\n assertEquals(sArray[1], this.sPQ.remove());\n assertEquals(sArray.length - 2, this.sPQ.size());\n \n }", "private void cleanup() {\n\t\tTreeSet<CacheEntry> entries = new TreeSet<CacheEntry>(map.values());\n\t\tint i = region.getItemsToEvict();\n\t\tIterator<CacheEntry> it = entries.iterator();\n\t\twhile (it.hasNext() && i > 0) {\n\t\t\tremoveEntry(it.next());\n\t\t\ti--;\n\t\t}\n\t}", "private synchronized void trimToSize(UISettings uiSettings) {\n final int limit = uiSettings.RECENT_FILES_LIMIT + 1;\n while (myEntriesList.size() > limit) {\n HistoryEntry removed = myEntriesList.remove(0);\n removed.destroy();\n }\n }", "public void pruneItemSet(ItemSet itemSet) {\n Map<ItemSet,Integer> listentry = scb.get(itemSet.getNumberOfItems());\n listentry.put(itemSet, 0);\n }", "public void trimToSize() {\r\n for (int i=size(); i-->0;)\r\n if (get(i)==null)\r\n remove(i);\r\n }", "@Test\n public void testRemoveDuplicates() {\n System.out.println(\"removeDuplicates\");\n ArrayList<String> array = new ArrayList<>(Arrays.asList(\n \"A.example.COM,1.1.1.1,NO,11,Faulty fans\",\n \"b.example.com,1.1.1.2,no,13,Behind the other routers so no one sees it\",\n \"C.EXAMPLE.COM,1.1.1.3,no,12.1,\",\n \"d.example.com,1.1.1.4,yes,14,\",\n \"c.example.com,1.1.1.5,no,12,Case a bit loose\",\n \"e.example.com,1.1.1.6,no,12.3,\",\n \"f.example.com,1.1.1.7,No,12.200,\",\n \"g.example.com,1.1.1.6,no,15.0,Guarded by sharks with lasers on their heads\"\n ));\n ArrayList<String> expResult = new ArrayList<>(Arrays.asList(\n \"A.example.COM,1.1.1.1,NO,11,Faulty fans\",\n \"b.example.com,1.1.1.2,no,13,Behind the other routers so no one sees it\",\n \"d.example.com,1.1.1.4,yes,14,\",\n \"f.example.com,1.1.1.7,No,12.200,\"\n ));\n ArrayList<String> result = BTRouterPatch.removeDuplicates(array);\n assertEquals(expResult, result);\n }", "public void clearChangeSet()\r\n\t{\n\t\toriginal = new Hashtable(10);\r\n\t\t//System.out.println(\"111111 in clearChangeSet()\");\r\n\t\tins_mov = new Hashtable(10);\r\n\t\tdel_mod = new Hashtable(10);\r\n\r\n\t\tfor (int i = 0; i < seq.size(); i++) {\r\n\t\t\tReplicated elt = (Replicated) seq.elementAt(i);\r\n\t\t\toriginal.put(elt.getObjectID(), elt);\r\n\t\t}\r\n\t}", "public void clear() {collection.clear();}", "public void clearAppointments(){\n appointments.clear();\n }", "protected /*override*/ void ClearItems()\r\n { \r\n CheckSealed();\r\n super.ClearItems(); \r\n }", "@Test\n public void testRemoveAll_Size() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 0;\n assertEquals(expectedResult, instance.size());\n\n }", "private static void test1() {\n HashSet<Contact> contacts = new HashSet<>();\n\n Contact contact1 = new Contact(123, \"Vasiliy\", \"+380681234136\");\n\n contacts.add(contact1);\n\n\n //------------------------------------------\n\n\n Contact contact2 = new Contact(123, \"Vasiliy\", \"+380689876543\");\n\n contacts.remove(contact2);\n contacts.add(contact2);\n\n printCollection(contacts);\n }", "private Map<String, ExtTicketVO> removeGhostRecords(Map<String, ExtTicketVO> tickets) {\n\t\tMap<String, ExtTicketVO> tix = new HashMap<>(tickets.size());\n\n\t\tfor (Map.Entry<String, ExtTicketVO> entry : tickets.entrySet()) {\n\t\t\tif (StringUtil.isEmpty(entry.getValue().getTicketIdText())) {\n\t\t\t\tlog.warn(String.format(\"database does not contain ticket %s\", entry.getKey()));\n\t\t\t} else {\n\t\t\t\ttix.put(entry.getKey(), entry.getValue());\n\t\t\t}\n\t\t}\n\n\t\tlog.info(String.format(\"trimmed ticket list from %d to %d\", tickets.size(), tix.size()));\n\t\treturn tix;\n\t}", "public void clear() {\r\n\t\titems.clear();\r\n\t}", "@Test\r\n public void removeAll() throws Exception {\r\n\r\n TreeSet<Integer> check = new TreeSet<>();\r\n check.addAll(sInt);\r\n ArrayList<Integer> l = new ArrayList<>();\r\n l.add(4);\r\n l.add(2);\r\n check.removeAll(l);\r\n assertFalse(check.containsAll(l));\r\n assertFalse(check.contains(2));\r\n assertFalse(check.contains(4));\r\n assertTrue(check.contains(1));\r\n assertTrue(check.contains(3));\r\n assertTrue(check.contains(5));\r\n }", "public HashMap<String, ArrayList< List<String> >> cleanHM(HashMap<String, ArrayList< List<String> >> hm){\n for(String ID : hm.keySet() ){\n ArrayList<List<String>> curIDSentences = hm.get(ID);\n List<String> tempL= new ArrayList<String>();\n curIDSentences.removeAll(Collections.singleton(tempL));\n }\n return hm;\n }", "private ISet<S> shrink(ISet<S> expanded) {\n\t\t\tif (expanded == null) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tISet<S> shrunk = expanded;\n\t\t\tfor (S b : expanded) {\n\t\t\t\tif (!reasoner.entails(base.minus(shrunk.minus(b)), sentence)) {\n\t\t\t\t\tshrunk = shrunk.minus(b);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn shrunk;\n\t\t}", "void clear()\n\t{\n\t\tgetItems().clear();\n\t}", "@Test\n public void removeAllExercisesTest() {\n actual.removeAllExercises();\n String[] expectedExercises = new String[]{};\n\n actual.removeAllExercises();\n\n Assert.assertEquals(Arrays.asList(expectedExercises), actual.getExercises());\n }", "public void RandomizeTheDeck() {\r\n ArrayList<ArrayList<Card>> alalCopy = new ArrayList<>();\r\n int i, iRand;\r\n Random rand = new Random();\r\n \r\n // remove deck to the copy\r\n for( i=0; i<104; i++) {\r\n alalCopy.add( alalSets.get(i) );\r\n }\r\n alalSets.clear();\r\n \r\n // randomly copy them back as copy size gets smaller\r\n for( i=104; i>0; i-- ) {\r\n iRand = (int)rand.nextInt(i);\r\n alalSets.add( alalCopy.remove(iRand) );\r\n }\r\n }", "public void removeDuplicates(){ //takes 1st thing, compares to rest, if id match, check date, swap if needed then delete second item\n Map<Long, Long> sensorIdToDateTime = new HashMap<>();\n for (int i = 0; i < sensorList.size(); i++) {\n long sensorId = sensorList.get(i).getSensor_ID();\n long dateTime = sensorList.get(i).getDate_Time();\n if (sensorIdToDateTime.containsKey(sensorId)) {\n if (dateTime > sensorIdToDateTime.get(sensorId)) {\n sensorIdToDateTime.put(sensorId, dateTime);\n }\n }\n else {\n sensorIdToDateTime.put(sensorId, dateTime);\n }\n }\n for (Iterator<SensorResponse> iterator = filteredList.iterator(); iterator.hasNext();) {\n SensorResponse x = iterator.next();\n long sensorId = x.getSensor_ID();\n long dateTime = x.getDate_Time();\n if (sensorIdToDateTime.containsKey(sensorId) && dateTime != sensorIdToDateTime.get(sensorId)) {\n iterator.remove();\n }\n }\n\n notifyDataSetChanged();\n }", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void clearConcertList(){\n concertList.clear();\n }", "void removeAll();", "void removeAll();", "private void splice()\n {\n String dateCompare =\"\";\n int changeCount = 1;\n int numberOfHashes = sizeForHashTable();\n setUpHashMap(numberOfHashes);\n\n for (int i=0; i<= this.data.size();i++)\n {\n if (i == 0)\n {\n dateCompare = this.data.get(i).getFCTTIME().getPretty();\n loadHashTable(changeCount,this.data.get(i));\n }else if ( dateCompare != this.data.get(i).getFCTTIME().getPretty())\n {\n changeCount += 1;\n dateCompare = this.data.get(i).getFCTTIME().getPretty();\n loadHashTable(changeCount,this.data.get(i));\n }else\n {\n loadHashTable(changeCount,this.data.get(i));\n }\n }\n }", "void unsetUnordered();", "@Test\n public void testRemoveAll_Not_Empty() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(1);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 1;\n assertEquals(expectedResult, instance.size());\n\n }", "public void removeAllItems()\r\n {\r\n head = tail = null;\r\n nItems = 0;\r\n }", "@Test\n public void testCompactFast_Sgement_Removed_Item_Order() throws Exception {\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(3, 1);\n\n // 1 persisted segment counts\n List c = Arrays.asList(1, 1, 2, 3, 4, 5);\n List expected = c.subList(2, c.size());\n instance.addAll(c);\n\n // remove 2 items form memory before compacting fast\n instance.remove(0);\n instance.remove(0);\n\n instance.compactFast();\n\n assertEquals(expected, instance.subList(0, instance.size()));\n\n }", "@Test\n public void testRemove_int_Order() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(2);\n\n List<Integer> expResult = Arrays.asList(1, 1, 1, 1, 1, 1);\n\n assertTrue(isEqual(expResult, instance));\n\n }", "@Test\n\tpublic void testRemoveAll() {\n\t\tSet<Integer> setA = new HashSet<>(Arrays.asList(1, 2, 3, 4, 5));\n\t\tSet<Integer> setB = new HashSet<>(Arrays.asList(9, 8, 7, 6, 5, 4, 3));\n\t\tsetA.removeAll(setB);\n\t\tSet<Integer> union = new HashSet<>(Arrays.asList(1, 2));\n\t\tassertEquals(setA, union);\n\t}", "boolean restrictCategory(){\n\n\n if((!top.isEmpty()||!bottom.isEmpty())&&!suit.isEmpty()){\n Toast.makeText(this, \"상의/하의와 한벌옷은 동시에 설정할 수 없습니다.\", Toast.LENGTH_SHORT).show();\n return false;\n }\n\n\n detail_categories = new ArrayList<>(Arrays.asList(top_detail,bottom_detail,suit_detail,\n outer_detail,shoes_detail,bag_detail,accessory_detail));\n\n for (int kindNum=0; kindNum<7; kindNum++){\n String category = categories.get(kindNum); //해당 종류(ex.상의)에 설정된 카테고리명 받아옴\n String kind = Utils.getKey(Utils.Kind.kindNumMap,kindNum); //종류명 받아옴\n\n if(!category.isEmpty()){ //카테고리가 설정 되어있다면\n String detail_category = detail_categories.get(kindNum); //디테일 카테고리 받아옴\n Iterator<ClothesVO> cloListIter = clothesList.iterator();\n int remain_items=0;\n\n if(detail_category.isEmpty()){ //카테고리만 설정되어 있다면\n while (cloListIter.hasNext()) {\n ClothesVO clothes = cloListIter.next();\n String cloKind = clothes.getKind();\n if(cloKind.equals(kind)){\n if(!clothes.getCategory().equals(category))\n cloListIter.remove(); //해당 종류에 해당 카테고리가 아닌 옷들을 제거\n else\n remain_items+=1; //제거되지 않은 옷\n }\n\n if(kindNum == Utils.Kind.TOP || kindNum == Utils.Kind.BOTTOM){\n if(\"한벌옷\".equals(cloKind))\n cloListIter.remove();\n }else if(kindNum == Utils.Kind.SUIT){\n if(\"상의\".equals(cloKind) || \"하의\".equals(cloKind))\n cloListIter.remove(); //제거\n }\n }\n }else{ //디테일 카테고리도 설정되어 있다면\n while (cloListIter.hasNext()) {\n ClothesVO clothes = cloListIter.next();\n String cloKind = clothes.getKind();\n if(cloKind.equals(kind)){\n if(!clothes.getDetailCategory().equals(detail_category))\n cloListIter.remove();//해당 종류에 해당 세부 카테고리가 아닌 옷들을 제거\n else\n remain_items+=1; //제거되지 않은 옷\n }\n\n if(kindNum == Utils.Kind.TOP || kindNum == Utils.Kind.BOTTOM){\n if(\"한벌옷\".equals(cloKind))\n cloListIter.remove();\n }else if(kindNum == Utils.Kind.SUIT){\n if(\"상의\".equals(cloKind) || \"하의\".equals(cloKind))\n cloListIter.remove(); //제거\n }\n }\n }\n\n if(remain_items==0){\n if(!detail_category.isEmpty()){\n category = detail_category;\n }\n\n// if(recommendedDCate!=null ){\n// List<String>recommendedDCateArray = Arrays.asList(recommendedDCate);\n// if(!recommendedDCateArray.contains(category)){\n// Toast.makeText(this, \"해당 날씨에 맞지 않는 <\"+category+\"> 카테고리가 설정에 포함되어 있습니다.\", Toast.LENGTH_LONG).show();\n// return false;\n// }\n// }\n\n Toast.makeText(this, \"설정한 <\"+category+\"> 카테고리의 옷이 없거나 해당 날씨에 맞지 않습니다. \\n더 많은 옷을 추가해보세요.\", Toast.LENGTH_LONG).show();\n return false;\n }\n }\n }\n\n return true;\n }", "public void takeItemsFromChest() {\r\n currentRoom = player.getCurrentRoom();\r\n for (int i = 0; i < currentRoom.getChest().size(); i++) {\r\n player.addToInventory(currentRoom.getChest().get(i));\r\n currentRoom.getChest().remove(i);\r\n }\r\n\r\n }" ]
[ "0.5844915", "0.5834041", "0.5824481", "0.57925105", "0.57907796", "0.57733923", "0.57263505", "0.57108635", "0.567015", "0.56635576", "0.5645954", "0.5644675", "0.56443614", "0.5624734", "0.56219673", "0.5611099", "0.5598572", "0.5597579", "0.5588817", "0.5578976", "0.5574885", "0.5571953", "0.5560847", "0.5558949", "0.5558461", "0.55397755", "0.55155617", "0.5511614", "0.5508217", "0.5497575", "0.54952353", "0.5484546", "0.5478682", "0.54702187", "0.5449251", "0.5446626", "0.54425764", "0.5436566", "0.5434362", "0.5427934", "0.54204905", "0.5417808", "0.53823024", "0.53774554", "0.53548867", "0.53515285", "0.5349768", "0.5347903", "0.5346369", "0.5346249", "0.5339181", "0.5338431", "0.53357345", "0.5330185", "0.53281677", "0.5326472", "0.53242695", "0.5322453", "0.53205216", "0.53177947", "0.530441", "0.5300679", "0.53004247", "0.52999264", "0.52925086", "0.5280856", "0.52744776", "0.527047", "0.52703464", "0.52621067", "0.5253394", "0.52466875", "0.5240042", "0.5239841", "0.5239592", "0.52269363", "0.52206004", "0.52206004", "0.52206004", "0.52206004", "0.52206004", "0.52206004", "0.52206004", "0.52206004", "0.52206004", "0.52206004", "0.52206004", "0.52206004", "0.5220203", "0.5213594", "0.5213594", "0.5209892", "0.5205956", "0.51956207", "0.5188146", "0.51839477", "0.51776916", "0.5164154", "0.5160053", "0.5152131" ]
0.6503934
0
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { mView = inflater.inflate(R.layout.fragment_contest, container, false); mCtx = getContext(); contestItems = removeDups(contestItems); adapter = new ContestItemsAdapter(mCtx, contestItems); syncItems(); ListView list = (ListView)mView.findViewById(R.id.contest_list); list.setAdapter(adapter); return mView; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }" ]
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.6625158", "0.66195583", "0.66164845", "0.6608733", "0.6596594", "0.65928894", "0.6585293", "0.65842897", "0.65730995", "0.6571248", "0.6569152", "0.65689117", "0.656853", "0.6566686", "0.65652984", "0.6553419", "0.65525705", "0.65432084", "0.6542382", "0.65411425", "0.6538022", "0.65366334", "0.65355957", "0.6535043", "0.65329415", "0.65311074", "0.65310687", "0.6528645", "0.65277404", "0.6525902", "0.6524516", "0.6524048", "0.65232015", "0.65224624", "0.65185034", "0.65130377", "0.6512968", "0.65122765", "0.65116245", "0.65106046", "0.65103024", "0.6509013", "0.65088093", "0.6508651", "0.6508225", "0.6504662", "0.650149", "0.65011525", "0.6500686", "0.64974767", "0.64935696", "0.6492234", "0.6490034", "0.6487609", "0.6487216", "0.64872116", "0.6486594", "0.64861935", "0.6486018", "0.6484269", "0.648366", "0.6481476", "0.6481086", "0.6480985", "0.6480396", "0.64797544", "0.647696", "0.64758915", "0.6475649", "0.6474114", "0.6474004", "0.6470706", "0.6470275", "0.64702207", "0.6470039", "0.6467449", "0.646602", "0.6462256", "0.64617974", "0.6461681", "0.6461214" ]
0.0
-1
TODO: Rename method, update argument and hook method into UI event
public void onButtonPressed(Uri uri) { /*if (mListener != null) { mListener.onFragmentInteraction(uri); }*/ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t}", "public abstract void update(UIReader event);", "@Override\r\n\t\t\tpublic void handle(ActionEvent arg0) {\n\t\t\t}", "@Override\n\tpublic void handle(ActionEvent event) {\n\t\t\n\t}", "@Override\n\tpublic void handle(ActionEvent event) {\n\n\t}", "@Override\n\tpublic void handleUpdateUI(String text, int code) {\n\t\t\n\t}", "@Override\n\tpublic void update(Event e) {\n\t}", "public abstract void onInvoked(CommandSender sender, String[] args);", "@Override\r\n public void updateUI() {\r\n }", "@Override\r\n\tpublic void handle(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\n\tpublic void processEvent(Event e) {\n\n\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "@Override\n\tpublic void processCommand(JMVCommandEvent arg0) {\n\t}", "@Override\n\tpublic void inputChanged( Viewer arg0, Object arg1, Object arg2 ) {\n\t}", "@Override\n\tpublic void handleEvent(Event arg0) {\n\t\t\n\t}", "@Override\r\n\tpublic void onCustomUpdate() {\n\t\t\r\n\t}", "public void updateUI(){}", "private synchronized void updateScreen(String arg){\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n setChanged();\n notifyObservers(arg);\n }\n });\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}", "@Override\r\n public void actionPerformed( ActionEvent e )\r\n {\n }", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void updateObjectListener(ActionEvent e) {\n\t\t\r\n\t}", "Event () {\n // Nothing to do here.\n }", "void onArgumentsChanged();", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "void eventChanged();", "@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override public void handle(ActionEvent e)\n\t {\n\t }", "@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\r\n\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override //se repita\r\n public void actionPerformed(ActionEvent ae) {\r\n \r\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t}", "public abstract CommandResponse onCommand(CommandSender sender, String label, String[] args);", "@Override\n public void actionPerformed(ActionEvent actionEvent) {\n }", "@Override\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t}", "@Override\r\n public void actionPerformed(ActionEvent e) {\n \r\n }", "public abstract void onCommand(MessageEvent context) throws Exception;", "@Override\r\n\tpublic void onEvent(Event arg0) {\n\r\n\t}", "private void addParameterEventHandler(){\n\t\t\n\t\tgetParameterNameListBox().addDoubleClickHandler(new DoubleClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onDoubleClick(DoubleClickEvent event) {\n\t\t\t\tparameterAceEditor.clearAnnotations();\n\t\t\t\tparameterAceEditor.removeAllMarkers();\n\t\t\t\tparameterAceEditor.redisplay();\n\t\t\t\tSystem.out.println(\"In addParameterEventHandler on DoubleClick isPageDirty = \" + getIsPageDirty() + \" selectedIndex = \" + getParameterNameListBox().getSelectedIndex());\n\t\t\t\tsetIsDoubleClick(true);\n\t\t\t\tsetIsNavBarClick(false);\n\t\t\t\tif (getIsPageDirty()) {\n\t\t\t\t\tshowUnsavedChangesWarning();\n\t\t\t\t} else {\n\t\t\t\t\tint selectedIndex = getParameterNameListBox().getSelectedIndex();\n\t\t\t\t\tif (selectedIndex != -1) {\n\t\t\t\t\t\tfinal String selectedParamID = getParameterNameListBox().getValue(selectedIndex);\n\t\t\t\t\t\tcurrentSelectedParamerterObjId = selectedParamID;\n\t\t\t\t\t\tif(getParameterMap().get(selectedParamID) != null){\n\t\t\t\t\t\t\tgetParameterNameTxtArea().setText(getParameterMap().get(selectedParamID).getParameterName());\n\t\t\t\t\t\t\tgetParameterAceEditor().setText(getParameterMap().get(selectedParamID).getParameterLogic());\n\t\t\t\t\t\t\tSystem.out.println(\"In Parameter DoubleClickHandler, doing setText()\");\n\t\t\t\t\t\t\t//disable parameterName and Logic fields for Default Parameter\n\t\t\t\t\t\t\tboolean isReadOnly = getParameterMap().get(selectedParamID).isReadOnly();\n\t\t\t\t\t\t\tgetParameterButtonBar().getDeleteButton().setTitle(\"Delete\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(MatContext.get().getMeasureLockService()\n\t\t\t\t\t\t\t\t\t.checkForEditPermission()){\n\t\t\t\t\t\t\t\tsetParameterWidgetReadOnly(!isReadOnly);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// load most recent used cql artifacts\n\t\t\t\t\t\t\tMatContext.get().getMeasureService().getUsedCQLArtifacts(MatContext.get().getCurrentMeasureId(), new AsyncCallback<GetUsedCQLArtifactsResult>() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\t\t\t\tWindow.alert(MatContext.get().getMessageDelegate().getGenericErrorMessage());\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onSuccess(GetUsedCQLArtifactsResult result) {\n\t\t\t\t\t\t\t\t\tif(result.getUsedCQLParameters().contains(getParameterMap().get(selectedParamID).getParameterName())) {\n\t\t\t\t\t\t\t\t\t\tgetParameterButtonBar().getDeleteButton().setEnabled(false);\n\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t\t\n\t\t\t\t\tsuccessMessageAlert.clearAlert();\n\t\t\t\t\terrorMessageAlert.clearAlert();\n\t\t\t\t\twarningMessageAlert.clearAlert();\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t}", "@Override\n public void handle(Event event) {\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n public void actionPerformed(AnActionEvent e) {\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\r\n\tpublic void handleEvent(Event event) {\n\r\n\t}", "public void ImageView(ActionEvent event) {\n\t}", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "public void runInUi(ElexisEvent ev){}", "@Override\n public void delta() {\n \n }", "@Override\n\tpublic void onClick(ClickEvent arg0) {\n\t\t\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n }", "@Override\n\tprotected void OnClick() {\n\t\t\n\t}", "@Override\n public void actionPerformed(ActionEvent ev) {\n }", "@Override\n public void actionPerformed(ActionEvent e)\n {\n \n }", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\n public void update(Observable o, Object arg)\n {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tupdate();\n\t\t\t}", "@Override\r\n public void processEvent(IAEvent e) {\n\r\n }" ]
[ "0.6619185", "0.65246344", "0.6473144", "0.6473144", "0.64351684", "0.6325494", "0.62368196", "0.6189416", "0.6158721", "0.61455715", "0.6123594", "0.6107332", "0.6101038", "0.6092755", "0.6049496", "0.6049496", "0.60442764", "0.604003", "0.604003", "0.6007846", "0.59999037", "0.59848183", "0.59776366", "0.59587413", "0.5940049", "0.5925668", "0.5925668", "0.59208333", "0.5915737", "0.5915737", "0.5915737", "0.5915737", "0.5915737", "0.5915554", "0.5909643", "0.5895144", "0.58947057", "0.589277", "0.58885247", "0.58885247", "0.58885247", "0.58671176", "0.58671176", "0.58671176", "0.58636886", "0.5862447", "0.5862447", "0.58613557", "0.5855828", "0.5846504", "0.5846504", "0.5846504", "0.5846504", "0.5837475", "0.58366984", "0.5820788", "0.58068436", "0.58022934", "0.5772422", "0.57714665", "0.5770862", "0.5765655", "0.5763872", "0.57544947", "0.57542855", "0.57542855", "0.57450074", "0.57441026", "0.57441026", "0.57441026", "0.5741053", "0.574037", "0.5739314", "0.57367086", "0.57367086", "0.57367086", "0.57322264", "0.57322264", "0.57322264", "0.57322264", "0.57322264", "0.57322264", "0.57322264", "0.57235956", "0.57232994", "0.5721006", "0.571978", "0.571978", "0.57187414", "0.57177836", "0.57133436", "0.57110935", "0.57110935", "0.57110935", "0.57110935", "0.57110935", "0.57110935", "0.5707859", "0.5707546", "0.5704973", "0.57016516" ]
0.0
-1
This interface must be implemented by activities that contain this fragment to allow an interaction in this fragment to be communicated to the activity and potentially other fragments contained in that activity. See the Android Training lesson Communicating with Other Fragments for more information.
public interface OnFragmentInteractionListener { // TODO: Update argument type and name void onFragmentInteraction(Uri uri); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface OnFragmentInteractionListener {\n void onFragmentMessage(String TAG, Object data);\n}", "public interface FragmentInteraction {\n void switchToBoardView();\n void switchToPinsView();\n void switchToPins(PDKBoard pdkBoard);\n void switchToDescription(PDKPin pin);\n}", "public interface IFragmentView {\n public Activity getActivity();\n public void onItemClick(int position);\n}", "public interface OnFragmentInteractionListener {\n void onMainFragmentInteraction(String string);\n }", "@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n if (context instanceof RequestFragmentInterface) {\n mInterface = (RequestFragmentInterface) context;\n } else {\n throw new RuntimeException(context.toString()\n + \" must implement OnFragmentInteractionListener\");\n }\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onCallBellPressed(MessageReason reason);\n }", "void onFragmentInteraction();", "void onFragmentInteraction();", "void onFragmentInteraction();", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n\n\n void onFragmentInteraction(String mId, String mProductName, String mItemRate, int minteger, int update);\n }", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onComidaSelected(int comidaId);\n }", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Qualification q);\n }", "public interface OnFragmentInteractionListener {\n void onReceiverAcceptRequest(int nextState, String requestId);\n }", "public interface FragMainLife\n{\n\tpublic void onResumeFragMainLife();\n}", "public interface OnFragmentListener {\n\n void onAction(Intent intent);\n}", "public interface IBaseFragmentActivity {\n void onFragmentExit(BaseFragment fragment);\n\n void onFragmentStartLoading(BaseFragment fragment);\n\n void onFragmentFinishLoad(BaseFragment fragment);\n}", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(String string);\n }", "void onFragmentInteraction(Object ref);", "public interface OnParametersFragmentInteractionListener {\n public void startTask();\n }", "public interface OnFragmentInteractionListener {\n // Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Parcelable selectedItem);\n }", "public interface FragmentInterface {\r\n void fragmentBecameVisible();\r\n}", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(String key);\n }", "public interface OnFragmentInteractionListener {\n void newList();\n\n void searchList();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void pasarALista();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n\n /**\n * This interface's single method. The hosting Activity must implement this interface and\n * provide an implementation of this method so that this Fragment can communicate with the\n * Activity.\n *\n * @param spotId\n */\n// void onFragmentInteraction(Uri uri);\n void onFragmentInteraction(int spotId);\n// void onFragmentInteraction(LatLng spotPosition);\n\n }", "public interface MainGameActivityCallBacks {\n public void onMsgFromFragmentToMainGame(String sender, String strValue);\n}", "public interface IFragment {\n void onFragmentRefresh();\n\n void onMenuClick();\n}", "public interface FragmentInterface {\n\n void onCreate();\n\n void initLayout();\n\n void updateLayout();\n\n void sendInitialRequest();\n}", "public interface OnFragmentInteractionListener {\n void onFragmentInteraction(String accessToken, String network);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(View v);\n }", "public interface OnFragmentInteractionListener {\n void swapFragments(SetupActivity.SetupActivityFragmentType type);\n\n void addServer(String name, String ipAddress, String port);\n }", "public interface OnFragmentInteractionListener {\n\t\tvoid restUp(IGameState gameState);\n\t\tvoid restartGame();\n\t}", "public interface OnFragmentInteractionListener\n {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface PersonalFragmentView extends BaseMvpView {\n\n}", "public interface OnFragmentInteractionListener {\n void onFinishCreatingRequest();\n }", "void onFragmentInteraction(View v);", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(ArrayList<Recepie> recepieList);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(String id);\n }", "void onFragmentInteractionMain();", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void showRestaurantDetail(Map<String, Object> objectMap);\n\n public void showAddRestaurantFragment(String location);\n }", "public interface FragmentNavigator {\n\n void SwitchFragment(Fragment fragment);\n}", "public interface FragmentModellnt {\n void FragmentM(OnFinishListener onFinishListener,String dataId);\n}", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n //void onFragmentInteraction(Uri uri);\n }", "void onFragmentInteraction(String id);", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(ArrayList naleznosci, String KLUCZ);\n }", "public interface OnFragmentInteractionListener {\r\n // TODO: Update argument type and name\r\n void onEditFragmentInteraction(Student student);\r\n }", "public interface OnFragmentInteractionListener {\n void onStartFragmentStarted();\n\n void onStartFragmentStartTracking();\n\n void onStartFragmentStopTracking();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n Long onFragmentInteraction();\n }", "public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Uri uri);\n void onFragmentInteraction(String id);\n}", "public interface IBaseFragment extends IBaseView {\n /**\n * 出栈到目标fragment\n * @param targetFragmentClass 目标fragment\n * @param includeTargetFragment 是否包涵目标fragment\n * true 目标fragment也出栈\n * false 出栈到目标fragment,目标fragment不出栈\n */\n void popToFragment(Class<?> targetFragmentClass, boolean includeTargetFragment);\n\n /**\n * 跳转到新的fragment\n * @param supportFragment 新的fragment继承SupportFragment\n */\n void startNewFragment(@NonNull SupportFragment supportFragment);\n\n /**\n * 跳转到新的fragment并出栈当前fragment\n * @param supportFragment\n */\n void startNewFragmentWithPop(@NonNull SupportFragment supportFragment);\n\n /**\n * 跳转到新的fragment并返回结果\n * @param supportFragment\n * @param requestCode\n */\n void startNewFragmentForResult(@NonNull SupportFragment supportFragment,int requestCode);\n\n /**\n * 设置fragment返回的result\n * @param requestCode\n * @param bundle\n */\n void setOnFragmentResult(int requestCode, Bundle bundle);\n\n /**\n * 跳转到新的Activity\n * @param clz\n */\n void startNewActivity(@NonNull Class<?> clz);\n\n /**\n * 携带数据跳转到新的Activity\n * @param clz\n * @param bundle\n */\n void startNewActivity(@NonNull Class<?> clz,Bundle bundle);\n\n /**\n * 携带数据跳转到新的Activity并返回结果\n * @param clz\n * @param bundle\n * @param requestCode\n */\n void startNewActivityForResult(@NonNull Class<?> clz,Bundle bundle,int requestCode);\n\n /**\n * 当前Fragment是否可见\n * @return true 可见,false 不可见\n */\n boolean isVisiable();\n\n /**\n * 获取当前fragment绑定的activity\n * @return\n */\n Activity getBindActivity();\n\n}", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onSocialLoginInteraction();\n }", "public interface OnFragmentInteractionListener {\n /**\n * On fragment interaction.\n *\n * @param uri the uri\n */\n// TODO: Update argument type and name\n public void onFragmentInteraction(Uri uri);\n }", "public interface OnFragmentListener {\n void onClick(Fragment fragment);\n}", "public interface OnFragmentInteractionListener {\n void playGame(Uri location);\n }", "public interface LoginFragmentListener {\n public void OnRegisterClicked();\n public void OnLoginClicked(String User, String Pass);\n}", "public interface MoveFragment {\n\n\n public void moveFragment(Fragment selectedFragment);\n\n}", "public interface ChangeFragmentListener {\n void changeFragment();\n}", "public interface OnProductItemFragmentInteraction{\r\n public void itemSelected(Producto product);\r\n }", "public interface FragmentInterface {\n public void fragmentResult(Fragment fragment, String title);\n}", "@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n //this registers this fragment to recieve any EventBus\n EventBus.getDefault().register(this);\n }", "void onFragmentInteraction(int position);", "public interface AddFarmFragmentView extends BaseView {\n\n\n}", "void OpenFragmentInteraction();", "public interface OnFragmentInteractionListener {\n\t\t// TODO: Update argument type and name\n\t\tpublic void onFragmentInteraction(Uri uri);\n\t}", "public interface FragmentDataObserver {\n void getDataFromActivity(String data);\n\n}", "public interface OnFragInteractionListener {\n\n // replace top fragment with this fragment\n interface OnMainFragInteractionListener {\n void onWifiFragReplace();\n void onHistoryFragReplace();\n void onHistoryWithOsmMapFragReplace();\n void onMainFragReplace();\n }\n\n // interface for WifiPresenterFragment\n interface OnWifiScanFragInteractionListener {\n void onGetDataAfterScanWifi(ArrayList<WifiLocationModel> list);\n void onAllowToSaveWifiHotspotToDb(String ssid, String pass, String encryption, String bssid);\n }\n\n // interface for HistoryPresenterFragment\n interface OnHistoryFragInteractionListener {\n // get wifi info\n void onGetWifiHistoryCursor(Cursor cursor);\n // get mobile network generation\n void onGetMobileHistoryCursor(Cursor cursor);\n // get wifi state and date\n void onGetWifiStateAndDateCursor(Cursor cursor);\n }\n\n interface OnMapFragInteractionListerer {\n void onGetWifiLocationCursor(Cursor cursor);\n }\n}", "public interface PesonageFragmentView extends MvpView {\n\n}", "public interface OnUsersFragmentInteractionListener {\n void onListFragmentInteraction(User item);\n }", "public interface MainScreeInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteractionMain();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onClickNextTurn();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction();\n\n void changeBottomNavSelection(int menuItem);\n }", "public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Uri uri);\n}", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }", "public interface OnFragmentInteractionListener {\n void onSignoutClicked();\n\n void onExtraScopeRequested();\n }", "interface OnMainFragInteractionListener {\n void onWifiFragReplace();\n void onHistoryFragReplace();\n void onHistoryWithOsmMapFragReplace();\n void onMainFragReplace();\n }", "public interface OnListFragmentInteractionListener {\n void onListFragmentInteraction(Note note);\n}" ]
[ "0.7324436", "0.7207491", "0.71337754", "0.7124179", "0.71227044", "0.70147455", "0.6976635", "0.6976635", "0.6976635", "0.69738007", "0.6967322", "0.69654423", "0.6960806", "0.69540006", "0.6943718", "0.6933451", "0.69287443", "0.6926101", "0.692234", "0.6910855", "0.6902918", "0.68964857", "0.6893978", "0.68813074", "0.68811053", "0.6874986", "0.686401", "0.6860292", "0.68598825", "0.6856936", "0.68540967", "0.6843697", "0.6839221", "0.68294585", "0.68174195", "0.6816103", "0.6808509", "0.6786238", "0.67694134", "0.6768847", "0.6768847", "0.6768847", "0.6768847", "0.6768847", "0.6768847", "0.6768847", "0.6768847", "0.6768847", "0.6766064", "0.6760941", "0.67561656", "0.6752685", "0.6697832", "0.6680396", "0.66731244", "0.6670543", "0.6669405", "0.666108", "0.66607827", "0.6655241", "0.6651397", "0.66439337", "0.6643591", "0.6643591", "0.6643591", "0.6643591", "0.6643591", "0.6643591", "0.6643591", "0.6643591", "0.6643591", "0.6643591", "0.6643591", "0.66379166", "0.663537", "0.6630641", "0.6625269", "0.6624003", "0.66175336", "0.6609315", "0.66086006", "0.6607863", "0.6605729", "0.6597798", "0.65954506", "0.65874064", "0.6571864", "0.65683347", "0.6559594", "0.6558649", "0.6554332", "0.655001", "0.65480477", "0.6542947", "0.6538417", "0.6533733", "0.6533733", "0.6533733", "0.6519384", "0.6516993", "0.6516588" ]
0.0
-1
TODO: Update argument type and name
void onFragmentInteraction(Uri uri);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public String getFirstArg() {\n return name;\r\n }", "@Override\n public int getNumberArguments() {\n return 1;\n }", "java.lang.String getArg();", "@Override\n public int getArgLength() {\n return 4;\n }", "Argument createArgument();", "@Override\r\n\tpublic String getFirstArg() {\n\t\treturn null;\r\n\t}", "@Override\n protected PacketArgs.ArgumentType[] getArgumentTypes() {\n return new PacketArgs.ArgumentType[] { PacketArgs.ArgumentType.String };\n }", "@Override\n\tpublic void traverseArg(UniArg node) {\n\t}", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FArgument src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "Object[] getArguments();", "Object[] getArguments();", "String getArguments();", "@Override\n\tpublic void handleArgument(ArrayList<String> argument) {\n\t\t\n\t}", "@Override\n public final int parseArguments(Parameters params) {\n return 1;\n }", "ArgList createArgList();", "public Object[] getArguments() { return args;}", "@Override\n public String getInputArg(String argName) {\n Log.w(TAG, \"Test input args is not supported.\");\n return null;\n }", "@Override\n protected String getName() {return _parms.name;}", "private static AbstractType<?>[] argumentsType(@Nullable StringType algorithmArgumentType)\n {\n return algorithmArgumentType == null\n ? DEFAULT_ARGUMENTS\n : new AbstractType<?>[]{ algorithmArgumentType };\n }", "uicargs createuicargs();", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getArgumentList();", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getArgumentList();", "public static void main(String[] args) {\n\t\t\tmeth(args);\r\n\t\t\targument_test:meth(args);\r\n\t}", "@Override\r\n\tpublic int getSecondArg() {\n\t\treturn 0;\r\n\t}", "public getType_args(getType_args other) {\n }", "Object[] args();", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FEnumerator src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "protected void validateArguments( Object[] args ) throws ActionExecutionException {\n\n Annotation[][] annotations = method.getParameterAnnotations();\n for (int i = 0; i < annotations.length; i++) {\n\n Annotation[] paramAnnotations = annotations[i];\n\n for (Annotation paramAnnotation : paramAnnotations) {\n if (paramAnnotation instanceof Parameter) {\n Parameter paramDescriptionAnnotation = (Parameter) paramAnnotation;\n ValidationType validationType = paramDescriptionAnnotation.validation();\n\n String[] validationArgs;\n\n // if we are checking for valid constants, then the\n // args array should contain\n // the name of the array holding the valid constants\n if (validationType == ValidationType.STRING_CONSTANT\n || validationType == ValidationType.NUMBER_CONSTANT) {\n try {\n String arrayName = paramDescriptionAnnotation.args()[0];\n\n // get the field and set access level if\n // necessary\n Field arrayField = method.getDeclaringClass().getDeclaredField(arrayName);\n if (!arrayField.isAccessible()) {\n arrayField.setAccessible(true);\n }\n Object arrayValidConstants = arrayField.get(null);\n\n // convert the object array to string array\n String[] arrayValidConstatnsStr = new String[Array.getLength(arrayValidConstants)];\n for (int j = 0; j < Array.getLength(arrayValidConstants); j++) {\n arrayValidConstatnsStr[j] = Array.get(arrayValidConstants, j).toString();\n }\n\n validationArgs = arrayValidConstatnsStr;\n\n } catch (IndexOutOfBoundsException iobe) {\n // this is a fatal error\n throw new ActionExecutionException(\"You need to specify the name of the array with valid constants in the 'args' field of the Parameter annotation\");\n } catch (Exception e) {\n // this is a fatal error\n throw new ActionExecutionException(\"Could not get array with valid constants - action annotations are incorrect\");\n }\n } else {\n validationArgs = paramDescriptionAnnotation.args();\n }\n\n List<BaseType> typeValidators = createBaseTypes(paramDescriptionAnnotation.validation(),\n paramDescriptionAnnotation.name(),\n args[i], validationArgs);\n //perform validation\n for (BaseType baseType : typeValidators) {\n if (baseType != null) {\n try {\n baseType.validate();\n } catch (TypeException e) {\n throw new InvalidInputArgumentsException(\"Validation failed while validating argument \"\n + paramDescriptionAnnotation.name()\n + e.getMessage());\n }\n } else {\n log.warn(\"Could not perform validation on argument \"\n + paramDescriptionAnnotation.name());\n }\n }\n }\n }\n }\n }", "@Test\n void getArgString() {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "int getArgIndex();", "@Override\n\tpublic void addArg(FormulaElement arg){\n\t}", "public Type[] getArgumentTypes() {\n/* 236 */ return Type.getArgumentTypes(this.desc);\n/* */ }", "@Override\n public Object[] getArguments() {\n return null;\n }", "public login_1_argument() {\n }", "Optional<String[]> arguments();", "private Main(String... arguments) {\n this.operations = new ArrayDeque<>(List.of(arguments));\n }", "@Override\n\tprotected GATKArgumentCollection getArgumentCollection() {\n\t\treturn argCollection;\n\t}", "protected void sequence_Argument(ISerializationContext context, Argument semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, TdlPackage.Literals.ARGUMENT__NAME) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, TdlPackage.Literals.ARGUMENT__NAME));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getArgumentAccess().getNameSTRINGTerminalRuleCall_0_0(), semanticObject.getName());\n\t\tfeeder.finish();\n\t}", "void setArguments(String arguments);", "@Override\n\tpublic List<String> getArgumentDesc() {\n\t\treturn desc;\n\t}", "OpFunctionArgAgregate createOpFunctionArgAgregate();", "protected abstract Feature<T,?> convertArgument(Class<?> parameterType, Feature<T,?> originalArgument);", "void visitArgument(Argument argument);", "public Thaw_args(Thaw_args other) {\r\n }", "@Override\r\n\tpublic List<String> getArguments()\r\n\t{\n\t\treturn null;\r\n\t}", "private static String getArgumentString(Object arg) {\n if (arg instanceof String) {\n return \"\\\\\\\"\"+arg+\"\\\\\\\"\";\n }\n else return arg.toString();\n }", "public interface Param {\n\n int[] args();\n String exec(ExecutePack pack);\n String label();\n}", "@Override\n public void verifyArgs(ArrayList<String> args) throws ArgumentFormatException {\n super.checkNumArgs(args);\n _args = true;\n }", "public abstract ValidationResults validArguments(String[] arguments);", "public ArgumentException() {\n super(\"Wrong arguments passed to function\");\n }", "public String getArgumentString() {\n\t\treturn null;\n\t}", "@Override\n public String kind() {\n return \"@param\";\n }", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FEnumerationType src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "public void addArgumentTypeSerialization(String functionName, String argumentName, TensorType type) {\n wrappedSerializationContext.addArgumentTypeSerialization(functionName, argumentName, type);\n }", "void setArgument(int idx,int v) \t\t{ setArgument(idx,Integer.valueOf(v)); }", "@Override\n\tprotected byte[] getArgByte() {\n\t\treturn paramsJson.getBytes();\n\t}", "void onArgumentsChanged();", "com.google.protobuf.ByteString\n\t\tgetArgBytes();", "MyArg(int value){\n this.value = value;\n }", "@Override public int getNumArguments()\t\t\t{ return arg_list.size(); }", "public ArgList(Object arg1) {\n super(1);\n addElement(arg1);\n }", "public Clear_args(Clear_args other) {\r\n }", "private ParameterInformation processArgumentReference(Argument argument,\n List<NameDescriptionType> argTypeSet,\n SequenceEntryType seqEntry,\n int seqIndex)\n {\n ParameterInformation argumentInfo = null;\n\n // Initialize the argument's attributes\n String argName = argument.getName();\n String dataType = null;\n String arraySize = null;\n String bitLength = null;\n BigInteger argBitSize = null;\n String enumeration = null;\n String description = null;\n UnitSet unitSet = null;\n String units = null;\n String minimum = null;\n String maximum = null;\n\n // Step through each command argument type\n for (NameDescriptionType argType : argTypeSet)\n {\n // Check if this is the same command argument referenced in the argument list (by\n // matching the command and argument names between the two)\n if (argument.getArgumentTypeRef().equals(argType.getName()))\n {\n boolean isInteger = false;\n boolean isUnsigned = false;\n boolean isFloat = false;\n boolean isString = false;\n\n // Check if this is an array parameter\n if (seqEntry instanceof ArrayParameterRefEntryType)\n {\n arraySize = \"\";\n\n // Store the reference to the array parameter type\n ArrayDataTypeType arrayType = (ArrayDataTypeType) argType;\n argType = null;\n\n // Step through each dimension for the array variable\n for (Dimension dim : ((ArrayParameterRefEntryType) seqEntry).getDimensionList().getDimension())\n {\n // Check if the fixed value exists\n if (dim.getEndingIndex().getFixedValue() != null)\n {\n // Build the array size string\n arraySize += String.valueOf(Integer.valueOf(dim.getEndingIndex().getFixedValue()) + 1)\n + \",\";\n }\n }\n\n arraySize = CcddUtilities.removeTrailer(arraySize, \",\");\n\n // The array parameter type references a non-array parameter type that\n // describes the individual array members. Step through each data type in the\n // parameter type set in order to locate this data type entry\n for (NameDescriptionType type : argTypeSet)\n {\n // Check if the array parameter's array type reference matches the data\n // type name\n if (arrayType.getArrayTypeRef().equals(type.getName()))\n {\n // Store the reference to the array parameter's data type and stop\n // searching\n argType = type;\n break;\n }\n }\n }\n\n // Check if a data type entry for the parameter exists in the parameter type set\n // (note that if the parameter is an array the steps above locate the data type\n // entry for the individual array members)\n if (argType != null)\n {\n long dataTypeBitSize = 0;\n\n // Check if the argument is an integer data type\n if (argType instanceof IntegerArgumentType)\n {\n IntegerArgumentType icmd = (IntegerArgumentType) argType;\n\n // Get the number of bits occupied by the argument\n argBitSize = icmd.getSizeInBits();\n\n // Get the argument units reference\n unitSet = icmd.getUnitSet();\n\n // Check if integer encoding is set to 'unsigned'\n if (icmd.getIntegerDataEncoding().getEncoding().equalsIgnoreCase(\"unsigned\"))\n {\n isUnsigned = true;\n }\n\n // Determine the smallest integer size that contains the number of bits\n // occupied by the argument\n dataTypeBitSize = 8;\n\n while (argBitSize.longValue() > dataTypeBitSize)\n {\n dataTypeBitSize *= 2;\n }\n\n // Get the argument alarm\n IntegerArgumentType.ValidRangeSet alarmType = icmd.getValidRangeSet();\n\n // Check if the argument has an alarm\n if (alarmType != null)\n {\n // Get the alarm range\n List<IntegerRangeType> alarmRange = alarmType.getValidRange();\n\n // Check if the alarm range exists\n if (alarmRange != null)\n {\n // Store the minimum alarm value\n minimum = alarmRange.get(0).getMinInclusive();\n\n // Store the maximum alarm value\n maximum = alarmRange.get(0).getMaxInclusive();\n }\n }\n\n isInteger = true;\n }\n // Check if the argument is a floating point data type\n else if (argType instanceof FloatArgumentType)\n {\n // Get the float argument attributes\n FloatArgumentType fcmd = (FloatArgumentType) argType;\n dataTypeBitSize = fcmd.getSizeInBits().longValue();\n unitSet = fcmd.getUnitSet();\n\n // Get the argument alarm\n FloatArgumentType.ValidRangeSet alarmType = fcmd.getValidRangeSet();\n\n // Check if the argument has an alarm\n if (alarmType != null)\n {\n // Get the alarm range\n List<FloatRangeType> alarmRange = alarmType.getValidRange();\n\n // Check if the alarm range exists\n if (alarmRange != null)\n {\n // Get the minimum value\n Double min = alarmRange.get(0).getMinInclusive();\n\n // Check if a minimum value exists\n if (min != null)\n {\n // Get the minimum alarm value\n minimum = String.valueOf(min);\n }\n\n // Get the maximum value\n Double max = alarmRange.get(0).getMaxInclusive();\n\n // Check if a maximum value exists\n if (max != null)\n {\n // Get the maximum alarm value\n maximum = String.valueOf(max);\n }\n }\n }\n\n isFloat = true;\n }\n // Check if the argument is a string data type\n else if (argType instanceof StringDataType)\n {\n // Get the string argument attributes\n StringDataType scmd = (StringDataType) argType;\n dataTypeBitSize = Integer.valueOf(scmd.getStringDataEncoding()\n .getSizeInBits()\n .getFixed()\n .getFixedValue());\n unitSet = scmd.getUnitSet();\n isString = true;\n }\n // Check if the argument is an enumerated data type\n else if (argType instanceof EnumeratedDataType)\n {\n EnumeratedDataType ecmd = (EnumeratedDataType) argType;\n EnumerationList enumList = ecmd.getEnumerationList();\n\n // Check if any enumeration parameters are defined\n if (enumList != null)\n {\n // Step through each enumeration parameter\n for (ValueEnumerationType enumType : enumList.getEnumeration())\n {\n // Check if this is the first parameter\n if (enumeration == null)\n {\n // Initialize the enumeration string\n enumeration = \"\";\n }\n // Not the first parameter\n else\n {\n // Add the separator for the enumerations\n enumeration += \", \";\n }\n\n // Begin building this enumeration\n enumeration += enumType.getValue() + \" | \" + enumType.getLabel();\n }\n\n argBitSize = ecmd.getIntegerDataEncoding().getSizeInBits();\n unitSet = ecmd.getUnitSet();\n\n // Check if integer encoding is set to 'unsigned'\n if (ecmd.getIntegerDataEncoding().getEncoding().equalsIgnoreCase(\"unsigned\"))\n {\n isUnsigned = true;\n }\n\n // Determine the smallest integer size that contains the number of bits\n // occupied by the argument\n dataTypeBitSize = 8;\n\n while (argBitSize.longValue() > dataTypeBitSize)\n {\n dataTypeBitSize *= 2;\n }\n\n isInteger = true;\n }\n }\n\n // Get the name of the data type from the data type table that matches the base\n // type and size of the parameter\n dataType = getMatchingDataType(dataTypeBitSize / 8,\n isInteger,\n isUnsigned,\n isFloat,\n isString,\n dataTypeHandler);\n\n // Check if the description exists\n if (argType.getLongDescription() != null)\n {\n // Store the description\n description = argType.getLongDescription();\n }\n\n // Check if the argument bit size exists\n if (argBitSize != null && argBitSize.longValue() != dataTypeBitSize)\n {\n // Store the bit length\n bitLength = argBitSize.toString();\n }\n\n // Check if the units exists\n if (unitSet != null)\n {\n List<UnitType> unitType = unitSet.getUnit();\n\n // Check if the units is set\n if (!unitType.isEmpty())\n {\n // Store the units\n units = unitType.get(0).getContent();\n }\n }\n\n argumentInfo = new ParameterInformation(argName,\n dataType,\n arraySize,\n bitLength,\n enumeration,\n units,\n minimum,\n maximum,\n description,\n 0,\n seqIndex);\n }\n\n break;\n }\n }\n\n return argumentInfo;\n }", "public abstract interface QueryArgs {\n\n /** Return the catalog associated with this object */\n public Catalog getCatalog();\n\n /** Set the value for the ith parameter */\n public void setParamValue(int i, Object value);\n\n /** Set the value for the parameter with the given label */\n public void setParamValue(String label, Object value);\n\n /** Set the min and max values for the parameter with the given label */\n public void setParamValueRange(String label, Object minValue, Object maxValue);\n\n /** Set the int value for the parameter with the given label */\n public void setParamValue(String label, int value);\n\n /** Set the double value for the parameter with the given label */\n public void setParamValue(String label, double value);\n\n /** Set the double value for the parameter with the given label */\n public void setParamValueRange(String label, double minValue, double maxValue);\n\n /** Set the array of parameter values directly. */\n public void setParamValues(Object[] values);\n\n /** Get the value of the ith parameter */\n public Object getParamValue(int i);\n\n /** Get the value of the named parameter\n *\n * @param label the parameter name or id\n * @return the value of the parameter, or null if not specified\n */\n public Object getParamValue(String label);\n\n /**\n * Get the value of the named parameter as an integer.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public int getParamValueAsInt(String label, int defaultValue);\n\n /**\n * Get the value of the named parameter as a double.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public double getParamValueAsDouble(String label, double defaultValue);\n\n /**\n * Get the value of the named parameter as a String.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public String getParamValueAsString(String label, String defaultValue);\n\n\n /**\n * Return the object id being searched for, or null if none was defined.\n */\n public String getId();\n\n /**\n * Set the object id to search for.\n */\n public void setId(String id);\n\n\n /**\n * Return an object describing the query region (center position and\n * radius range), or null if none was defined.\n */\n public CoordinateRadius getRegion();\n\n /**\n * Set the query region (center position and radius range) for\n * the search.\n */\n public void setRegion(CoordinateRadius region);\n\n\n /**\n * Return an array of SearchCondition objects indicating the\n * values or range of values to search for.\n */\n public SearchCondition[] getConditions();\n\n /** Returns the max number of rows to be returned from a table query */\n public int getMaxRows();\n\n /** Set the max number of rows to be returned from a table query */\n public void setMaxRows(int maxRows);\n\n\n /** Returns the query type (an optional string, which may be interpreted by some catalogs) */\n public String getQueryType();\n\n /** Set the query type (an optional string, which may be interpreted by some catalogs) */\n public void setQueryType(String queryType);\n\n /**\n * Returns a copy of this object\n */\n public QueryArgs copy();\n\n /**\n * Optional: If not null, use this object for displaying the progress of the background query\n */\n public StatusLogger getStatusLogger();\n}", "@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }", "@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }", "@Override\n\tprotected Collection<ArgumentTypeDescriptor> getArgumentTypeDescriptors() {\n\t\treturn Arrays.asList(new VCFWriterArgumentTypeDescriptor(engine, System.out, bisulfiteArgumentSources), new SAMReaderArgumentTypeDescriptor(engine),\n\t\t\t\tnew SAMFileWriterArgumentTypeDescriptor(engine, System.out), new OutputStreamArgumentTypeDescriptor(engine, System.out));\n\t}", "@Override\n public int getArgent() {\n return _argent;\n }", "private static @NonNull String resolveInputName(@NonNull Argument<?> argument) {\n String inputName = argument.getAnnotationMetadata().stringValue(Bindable.NAME).orElse(null);\n if (StringUtils.isEmpty(inputName)) {\n inputName = argument.getName();\n }\n return inputName;\n }", "private Object[] getArguments (String className, Object field)\n\t{\n\t\treturn ((field == null) ? new Object[]{className} : \n\t\t\tnew Object[]{className, field});\n\t}", "PermissionSerializer (GetArg arg) throws IOException, ClassNotFoundException {\n\tthis( \n\t create(\n\t\targ.get(\"targetType\", null, Class.class),\n\t\targ.get(\"type\", null, String.class),\n\t\targ.get(\"targetName\", null, String.class),\n\t\targ.get(\"targetActions\", null, String.class) \n\t )\n\t);\n }", "public String argTypes() {\n return \"I\";//NOI18N\n }", "public Type getArgumentDirection() {\n return direction;\n }", "public static void main(String arg[]) {\n\n }", "godot.wire.Wire.Value getArgs(int index);", "@Override\n protected String[] getArguments() {\n String[] args = new String[1];\n args[0] = _game_file_name;\n return args;\n }", "private Argument(Builder builder) {\n super(builder);\n }", "public void setArgs(java.lang.String value) {\n this.args = value;\n }", "@Override\n public void execute(String[] args) {\n\n }", "@Override\n\tprotected final void setFromArgument(CommandContext<ServerCommandSource> context, String name) {\n\t}", "UUID createArgument(ArgumentCreateRequest request);", "@Override\n public void initialise(String[] arguments) {\n\n }", "public static ParameterExpression parameter(Class type, String name) { throw Extensions.todo(); }", "protected abstract void parseArgs() throws IOException;" ]
[ "0.71620077", "0.69440025", "0.6711487", "0.6510869", "0.6395964", "0.637318", "0.6347982", "0.63172585", "0.626037", "0.6206126", "0.6206126", "0.6204428", "0.6196331", "0.61786395", "0.617723", "0.61509335", "0.614605", "0.61263025", "0.6074019", "0.6056265", "0.59894925", "0.59894925", "0.5982372", "0.59784126", "0.5976578", "0.59514225", "0.5946062", "0.5945854", "0.59451884", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.5907128", "0.58901805", "0.58811074", "0.5870056", "0.5866255", "0.5857818", "0.58502215", "0.58372456", "0.58065504", "0.5803388", "0.5794962", "0.57822233", "0.57652336", "0.57551724", "0.5747548", "0.5740826", "0.5729332", "0.57288444", "0.5715425", "0.57104665", "0.5696492", "0.5675817", "0.56724477", "0.5665729", "0.5661573", "0.5659701", "0.5652922", "0.5648713", "0.564161", "0.56359", "0.5633436", "0.56217945", "0.5620876", "0.5615735", "0.5612703", "0.5604706", "0.5604706", "0.56031877", "0.56012666", "0.5597895", "0.5589867", "0.5587258", "0.5582892", "0.5581103", "0.5567564", "0.55617505", "0.55564237", "0.55520123", "0.55498207", "0.5538131", "0.5536699", "0.5526077", "0.55113447", "0.5509267", "0.550175" ]
0.0
-1
return number of keyvalue pairs in BST rooted at x
private Value size(Node x) { return (Value) x.value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer countBST() {\n\n if (root == null) return 0;\n try {\n Integer x = (Integer)root.element;\n } catch (NumberFormatException e) {\n System.out.println(\"count BST works only with comparable values, AKA Integers.\" + e);\n return 0;\n }\n return countBSTRecur(root);\n }", "private int size(Node x) {\n if (x == null) return 0;\n return 1 + size(x.left) + size(x.right);\n }", "int size() \n { \n return size(root); \n }", "public int countNodes(){\r\n \treturn count(root);\r\n }", "int getNodeCount();", "int getNodeCount();", "private int size(Node x) {\n if (x == null) return 0;\n else return x.N;\n }", "int size()\r\n\t{\r\n\t\treturn size(root);\r\n\t}", "public int size(){\n return size(root);\n }", "private int size(Node x) {\n\t\t\tif(x==null)return 0;\n\t\t\treturn x.N;\n\t\t}", "public int size() \r\n\t{\r\n\t\treturn size(root);\r\n\t}", "public int size()\n {\n return _root.size();\n }", "public int getCount(Node root, int key){\n\t\tif(root==nil){\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t\tif(root.id == key){\n\t\t\treturn root.count;\n\t\t}\n\t\t\n\t\tif(key < root.id){\n\t\t\treturn getCount(root.left,key);\n\t\t}else{\n\t\t\treturn getCount(root.right,key);\n\t\t}\n\t}", "public void Count(int key){\n\t\tint res = getCount(root,key);\n\t\tSystem.out.println(res);\n\t}", "public int size() \n {\n return size(root);\n }", "private int size(Node x) {\n if (x == null)\n return 0;\n return x.size;\n }", "public int size() {\n\t\tTree<K, V> t = this;\n\t\tint size = 1;\n\t\treturn size(t, size);\n\t}", "private int getVariablesNumberInTree() {\n\t\tList<Node> l = getFirstLevelSubnodes();\n\n\t\treturn l != null ? l.size() : 0;\n\t}", "private int rank(Integer key, Node x) {\n\t if (x == null) return 0; \n\t int cmp = key.compareTo(x.key); \n\t if (cmp < 0) return rank(key, x.left); \n\t else if (cmp > 0) return 1 + size(x.left) + rank(key, x.right); \n\t else return size(x.left); \n\t }", "public Integer count() {\n return this.bst.count();\n }", "public int size() \n\t {\n\t\t return size(root);\n\t }", "public int countNodes()\r\n {\r\n return countNodes(root);\r\n }", "int count() {\n\t\tArrayList<Integer> checked = new ArrayList<Integer>();\r\n\t\tint count = 0;\r\n\t\tfor (int x = 0; x < idNode.length; x++) {// Order of N2\r\n\t\t\tint rootX = getRoot(x);\r\n\t\t\tif (!checked.contains(rootX)) {// Order of N Access of Array\r\n\r\n\t\t\t\tSystem.out.println(\"root x is \" + rootX);\r\n\t\t\t\tcount++;\r\n\t\t\t\tchecked.add(rootX);// N Access of Array\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "private int size(Node x) {\r\n if (x == null) return 0;\r\n else return x.size;\r\n }", "public int size() {\n\t\treturn size(root);\n\t}", "public int size() {\n\t\treturn size(root);\n\t}", "public int getCount()\r\n {\r\n int answer=0;\r\n answer+=recCount(root);\r\n return answer;\r\n }", "public int size() {\n if(root == null){\n return 0;\n }\n else{\n return 1 + size(root.lc) + size(root.rc);\n }\n }", "public int countNodes() {\r\n \r\n // call the private countNodes method with root\r\n return countNodes(root);\r\n }", "public int countLeaves(){\n return countLeaves(root);\n }", "public int countNodes()\n {\n return countNodes(root);\n }", "public int countNodes()\n {\n return countNodes(root);\n }", "@Override\n public int size() {\n return size(root); }", "public int size() {\n return size(root);\n }", "public int size() {\n return size(root);\n }", "public int size() {\n\t\t// TODO\n\t\treturn size(root);\n\t}", "private int rank(K key, Node x) {\n if (x == null) return 0;\n int cmp = key.compareTo(x.key);\n if (cmp < 0) return rank(key, x.left);\n else if (cmp > 0) return 1 + size(x.left) + rank(key, x.right);\n else return size(x.left);\n }", "@Override\r\n\tpublic int size() {\r\n\t\treturn size(root);\r\n\t}", "Integer countForKey(String key);", "public int count( ) {\n if(empty()) {\n return 0;\n } else{\n return countNodes(root);\n }\n }", "public int my_leaf_count();", "@Override\n\tpublic int size() {\n\t\treturn size(root);\n\t}", "public int size() {\n\t\treturn root.count();\n\t}", "public static int size(Node root){\r\n int count = 0;\r\n for(int i=0; i<root.children.size(); i++){\r\n Node child = root.children.get(i);\r\n count += size(child);\r\n }\r\n return count + 1;\r\n }", "public static void main(String args[]) \r\n {\n BinaryTree tree = new BinaryTree();\r\n tree.root = new Node(20);\r\n tree.root.left = new Node(8);\r\n tree.root.right = new Node(22);\r\n tree.root.left.left = new Node(4);\r\n tree.root.left.right = new Node(12);\r\n tree.root.left.right.left = new Node(10);\r\n tree.root.left.right.right = new Node(14);\r\n \r\n System.out.println(\"No. of nodes in the tree is : \"+ nodeCount(tree.root));\r\n \r\n }", "public int size() {\n return tree.count();\n }", "@Override\n public int size() {\n return size(root);\n }", "public int numNodes()\r\n {\r\n\tint s = 0;\r\n\tfor (final NodeTypeHolder nt : ntMap.values())\r\n\t s += nt.numNodes();\r\n\treturn s;\r\n }", "public int numberOfNodes() {\n return numberOfNodes(root);\n }", "private int numberOfNodes(Node root){\n if(root==null){\n return 0;\n }\n return 1 + numberOfNodes(root.getLeft()) + numberOfNodes(root.getRight());\n }", "@Override\n\tpublic int size() {\n\t\tint s = valCount; // saves value of current node\n\t\tfor (int i = 0; i < childCount; ++i) { // then checks all children\n\t\t\ts += children[i].size();\n\t\t}\n\t\treturn s;\n\t}", "public int size(){\n if(root!=null){ // มี node ใน tree\n return size(root);\n }\n else{\n return 0; // tree เปล่า size 0\n }\n }", "public int size() {\n if (root == null) return 0;\n if (root.left == null && root.right == null) return 1;\n else {\n int treeSize = 0;\n treeSize = size(root, treeSize);\n return treeSize;\n }\n }", "@Test\n public void getHeight() {\n Node node = new Node(150);\n node.setLeft(new Node(120));\n node.setRight(new Node(40));\n Node root = new Node(110);\n root.setLeft(new Node(80));\n root.setRight(node);\n assertEquals(2, BinarySearchTree.getHeight(root));\n }", "private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}", "int nodeCount();", "public int size()\r\n\t {\r\n\t\t if(root == null)\r\n\t\t {\r\n\t\t\t return 0;\r\n\t\t }\r\n\t\t return root.getSubTreeSize();\r\n\t }", "public int size() // return the number of nodes in the tree\r\n {\r\n return root.sizen;\r\n }", "public int numberOfNodes() {\r\n\t\tBinaryNode<AnyType> t = root;\r\n\t\tif (root == null) {\r\n\t\t\treturn 0;\r\n\t\t} // if\r\n\t\treturn numberOfNodes(root.left) + numberOfNodes(root.right) + 1;\r\n\t}", "public int getNodeCount() {\n return dataTree.getNodeCount();\n }", "int height(Node root) { return (root != null) ? Math.max(height(root.left), height(root.right)) + 1 : 0;}", "static int countSubtreesWithSumXUtil(Node root, int x)\n {\n int l = 0, r = 0;\n if(root == null) \n \treturn 0;\n l += countSubtreesWithSumXUtil(root.left, x);\n r += countSubtreesWithSumXUtil(root.right, x);\n if(l + r + root.data == x) \n \tcount++;\n if(ptr != root) \n \treturn l + root.data + r;\n return count;\n }", "int getNodesCount();", "int getNodesCount();", "public int numLeaves() {\n return numLeaves(root);//invokes helper method\n }", "public static int countLE(Node n, int x) {\n if (n == null) return 0;\n if (n.parent != null && n.parent.left == n && n.parent.v <= x) {\n return n.count;\n } else {\n int ret = countLE(n.left, x);\n if (n.v <= x) ret += n.dup;\n if (n.v < x) ret += countLE(n.right, x);\n return ret;\n }\n }", "private int countNodes(TreeNode root) {\n int count = 1;\n if (root.left != null) {\n count += countNodes(root.left);\n }\n if (root.right != null) {\n count += countNodes(root.right);\n }\n return count;\n }", "public static int getNum(TreeNode root) {\n if (root == null) {\n return 0;\n }\n int count = 0;\n Queue<TreeNode> queue = new LinkedList<>();\n queue.offer(root);\n while (!queue.isEmpty()) {\n TreeNode node = queue.poll();\n if (node.left != null) queue.offer(node.left);\n if (node.right != null) queue.offer(node.right);\n count++;\n }\n return count;\n }", "public int size() {\r\n\t\tint i = 0;\r\n\t\tif (this.value != 0) {\r\n\t\t\ti++;\r\n\t\t\tif(this.leftChild != null) {\r\n\t\t\t\ti = i + this.leftChild.size();\r\n\t\t\t}\r\n\t\t\tif(rightChild != null){\r\n\t\t\t\ti = i + this.rightChild.size();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn i; \r\n\t}", "private int size(Node nodeX) {\n return nodeX == null ? 0 : nodeX.size;\n }", "public int size() {\r\n int count = 0;\r\n for (int i = 0; i < SIZE; i++) {\r\n if (tree[i] != null) {\r\n count++;\r\n }\r\n }\r\n return count;\r\n }", "public int height() { return height(root); }", "public long getContextNodeCount();", "private int nodeCount(BinaryNode<AnyType> t)\r\n\t{\r\n\t\tif(t==null)\r\n\t\t\treturn 0;\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn 1+nodeCount(t.left)+nodeCount(t.right);\r\n\t\t}\r\n\t}", "public int my_node_count();", "private int height(BSTNode<K, V> node) {\r\n if (node == null) {\r\n return 0;\r\n } else {\r\n if (height(node.left) >= height(node.right)) {\r\n return 1 + height(node.left);\r\n } else {\r\n return 1 + height(node.right);\r\n }\r\n }\r\n }", "@Override\r\n\tpublic int getNumberOfNodes() {\n\t\tint leftNumber=0;\r\n\t\tint rightNumber=0;\r\n\t\tif(left!=null){\r\n\t\t\tleftNumber=left.getNumberOfNodes();\r\n\t\t}\r\n\t\tif(right!=null)\r\n\t\t\trightNumber=right.getNumberOfNodes();\r\n\t\treturn leftNumber+rightNumber+1;\r\n\t}", "private int countNodes(BSTNode r) {\r\n \r\n // if the node is null, return 0\r\n if (r == null) {\r\n \r\n return 0;\r\n }\r\n \r\n // if node is NOT null, execute\r\n else {\r\n \r\n // initialize count to 1\r\n int countN = 1;\r\n \r\n // increment count for each child node\r\n countN += countNodes(r.getLeft());\r\n countN += countNodes(r.getRight());\r\n \r\n // return the count\r\n return countN;\r\n }\r\n }", "public int countNodes(TreeNode root) {\n int leftHeight = getLeftHeight(root);\n int rightHeight = getRightHeight(root);\n if (leftHeight == rightHeight) {\n return (1 << leftHeight) - 1;\n }\n return countNodes(root.left) + countNodes(root.right) + 1;\n }", "public int getNodeCount() {\n resetAllTouched();\n return recurseNodeCount();\n }", "public int size() {\n\t\tif (this.root == null) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn this.root.getSize(); \n\t}", "public static int sizeIterative(Node root) {\r\n\t\tif (root == null) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\tint count = 0;\r\n\t\tQueue<Node> queue = new LinkedList<>();\r\n\t\tqueue.add(root);\r\n\t\twhile (!queue.isEmpty()) {\r\n\t\t\tNode temp = queue.poll();\r\n\t\t\tif (temp != null) {\r\n\t\t\t\tcount++;\r\n\t\t\t\tqueue.add(temp.left);\r\n\t\t\t\tqueue.add(temp.right);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "public int getSize(){\n /**\n * TODO: INSERT YOUR CODE HERE\n * FIND THE NUMBER OF NODES IN THE TREE AND STORE THE VALUE IN CLASS VARIABLE \"size\"\n * RETURN THE \"size\" VALUE\n *\n * HINT: THE NMBER OF NODES CAN BE UPDATED IN THE \"size\" VARIABLE EVERY TIME A NODE IS INSERTED OR DELETED FROM THE TREE.\n */\n\n return size;\n }", "private int Nodes(BTNode n){\r\n if (n == null)\r\n return 0;\r\n else {\r\n return ( (n.left == null? 0 : Nodes(n.left)) + (n.right == null? 0 : Nodes(n.right)) + 1 );\r\n }\r\n }", "int getChildCount();", "public int numberOfLeaves() {\r\n\t\tif (root == null) {\r\n\t\t\treturn 0;\r\n\t\t} // if\r\n\t\treturn numberOfLeaves(root.left) + numberOfLeaves(root.right);\r\n\t}", "@Override\n public int getNumberOfNodes() {\n int numNodes = 0;\n\n if (!isEmpty()) {\n numNodes = root.getNumberOfNodes();\n }\n\n return numNodes;\n }", "public int size() {\n return root.getNumberOfTerminalsInSubTree();\n }", "public int nodeCount() {\n return this.root.nodeCount();\n }", "public int numNodes() {\r\n\t\treturn numNodes(root);\r\n\t}", "public int totalWordsTree() {\r\n\t\treturn count;\r\n\t}", "public int getNodeCount() {\n return node_.size();\n }", "public int nodesInTree() \n { \n return nodesInTree(header.rightChild); \n }", "public int treeSize(BinaryTreeNode root) {\n\t\tint size = 0;\n\t\tif (root == null) {\n\t\t\treturn 0;\n\t\t} else {\n\t\t\tBinaryTreeNode temp;\n\t\t\tQueue<BinaryTreeNode> q = new LinkedList<BinaryTreeNode>();\n\t\t\tq.add(root);\n\n\t\t\twhile (!q.isEmpty()) {\n\t\t\t\ttemp = q.poll();\n\t\t\t\tsize++;\n\t\t\t\tif (temp.getLeft() != null)\n\t\t\t\t\tq.add(temp.getLeft());\n\t\t\t\tif (temp.getRight() != null)\n\t\t\t\t\tq.add(temp.getRight());\n\t\t\t}\n\t\t}\n\t\treturn size;\n\t}", "public final int size() {\r\n return sequentialSize(root);\r\n }", "public int height(){\n return height(root);\n }", "private static int countUnivalSubtrees(Node root) {\n Set<Node> set = new HashSet<>();\n isUnivalNode(root, set);\n return set.size();\n }", "int getKeyspacesCount();", "@Override\r\n\tpublic int getNumberOfNodes() {\r\n\t\tint contador = 0;// Contador para el recursivo\r\n\t\treturn getNumberOfNodesRec(contador, raiz);\r\n\t}", "public int dataCount() {\n return this.root.dataCount();\n }" ]
[ "0.71649075", "0.7077162", "0.678476", "0.6747342", "0.674598", "0.674598", "0.6729832", "0.6712557", "0.66869444", "0.6647407", "0.6618658", "0.6617668", "0.65991914", "0.6554597", "0.6530286", "0.64778167", "0.64740294", "0.64704347", "0.6467204", "0.6465447", "0.645473", "0.6453881", "0.64513427", "0.6439854", "0.64344615", "0.64344615", "0.64300203", "0.6403209", "0.6396103", "0.6394209", "0.6377103", "0.6377103", "0.63767385", "0.6372217", "0.6372217", "0.63679814", "0.636446", "0.63496834", "0.6340517", "0.63371634", "0.6328093", "0.63279915", "0.63070637", "0.62982893", "0.6286863", "0.6281172", "0.6268302", "0.6258586", "0.62525016", "0.6251478", "0.6245836", "0.62440073", "0.6239712", "0.62335336", "0.62231725", "0.62200826", "0.6216027", "0.62137896", "0.6213732", "0.62035674", "0.6194464", "0.61833715", "0.6174059", "0.6174059", "0.6154899", "0.61514497", "0.6143224", "0.6123836", "0.6109486", "0.6106955", "0.61051476", "0.6103371", "0.6081685", "0.607684", "0.6063223", "0.60625625", "0.60591745", "0.6058285", "0.60463345", "0.6046105", "0.6044192", "0.60440594", "0.6037569", "0.60264784", "0.6018315", "0.6014602", "0.5996017", "0.59937704", "0.5979494", "0.5977922", "0.5973228", "0.59651595", "0.59503603", "0.59402066", "0.59382683", "0.59336394", "0.5921394", "0.59064645", "0.59033823", "0.590189" ]
0.66175485
12
get value of the given key searched in the given Node
private Value get(Node node, Key key ) { if ( node.key.equals( key ) ) { return (Value) node.value; } if ( key.compareTo( (Key)node.key ) < 0 ) { return node.left.value == null ? null : get(node.left,key); } else { return node.right.value == null ? null : get(node.right,key); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object lookup(String key){\n ListNode<String,Object> temp = getNode(key);\n if(temp != null)\n return temp.value;\n else\n return null;\n }", "public Value get(String key) {\n Node x = get(root, key, 0);\n if (x == null) return null; //node does not exist\n else return (Value) x.val; //found node, but key could be null\n }", "public Object get(Object key){\n\t\tNode tempNode = _locate(key);\r\n\t\tif(tempNode != null){\r\n\t\t\treturn tempNode._value;\r\n\t\t}else{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "private V get(TreeNode<K, V> node, K key){\n if(node == null){\r\n return null;\r\n }\r\n \r\n // Compare the key passed into the function with the keys in the tree\r\n // Recursive function calls determine which direction is taken\r\n if (node.getKey().compareTo(key) > 0){\r\n // If the current node has a value greater than our key, go left\r\n return get(node.left, key);\r\n }\r\n else if (node.getKey().compareTo(key) < 0){\r\n // If the current node has a value less than our key, go right\r\n return get(node.right, key);\r\n }\r\n else{\r\n // If the keys are equal, a match is found return the value\r\n return node.getValue();\r\n }\r\n }", "public String lookup(String key){\n Node N = front;\n while( N != null){\n if( N.key.equals(key)){\n return N.value;\n }\n N = N.next;\n }\n return null;\n }", "public V get(K key){\n\t\t\n\n\t\tNode n=searchkey(root, key);\n\n\t\t\n\t\tif(n!=null && n.value!=null){\n\t\t\treturn n.value;\n\t\t}\n\t\telse{\n\t\t\treturn null;\n\t\t}\n\t}", "public String lookup(String key){\n Node N;\n N = findKey(root, key);\n return ( N == null ? null : N.item.value );\n }", "public T get(T key) {\n\t\tNode<T> node = root;\n\t\twhile (node != null) {\n\t\t\tif (key.compareTo(node.value) == 0) {\n\t\t\t\treturn node.value;\n\t\t\t} else if (key.compareTo(node.value) < 0) {\n\t\t\t\tnode = node.right;\n\t\t\t} else {\n\t\t\t\tnode = node.left;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@Override\r\n public Object findElement(Object key) {\r\n\r\n // Search for node possibly containing key\r\n TFNode node = search(root(), key);\r\n \r\n // Note the index of where the key should be\r\n int index = FFGTE(node, key);\r\n\r\n // If the index is greater than the number of items in the node, the key is not in the node\r\n if (index < node.getNumItems()) {\r\n // Look for key in node\r\n if (treeComp.isEqual(node.getItem(index).key(), key)) {\r\n return node.getItem(index);\r\n }\r\n }\r\n\r\n // The search hit a leaf without finding the key\r\n return null;\r\n }", "public Value get(Key key) {\n\t\tNode node = current_node;\n\t\twhile(!node.key.equals(key)) node = node.next;\n\t\treturn node.value;\n\t}", "public V get(K key) {\r\n int hash = key.hashCode() % data.length;\r\n if (hash < 0){\r\n hash *= -1;\r\n }\r\n V result = null;\r\n if (data[hash] != null) {\r\n Node currentNode = data[hash];\r\n while (currentNode != null) {\r\n if (currentNode.key == key || currentNode.key.equals(key)) {\r\n result = (V) currentNode.value;\r\n }\r\n currentNode = currentNode.next;\r\n }\r\n }\r\n return result;\r\n }", "public T getValue(String key) {\r\n\t\tNode node = getNode(root, key, 0);\r\n\t\treturn node == null ? null : node.value;\r\n\t}", "public String get(String key) {\n \ttmp = getNode(key);\n \tif (tmp != null) { \n \t\treturn tmp.getVal();\n \t}\n \treturn null;\n }", "public V find(K key) {\n Node<K,V> node = root;\n while (node != null) {\n int cmp = key.compareTo(node.key);\n if (cmp < 0) {\n node = node.left;\n } else if (cmp > 0) {\n node = node.right;\n } else {\n return node.value;\n }\n }\n return null;\n }", "public Value get(Key key){\n\t\tNode x = root;\n\t\twhile(x!=null){\n\t\t\tif(key.compareTo(x.key)<0)\n\t\t\t\tx = x.left;\n\t\t\telse if(key.compareTo(x.key)>0)\n\t\t\t\tx = x.right;\n\t\t\telse\n\t\t\t\treturn x.value;\n\t\t}\n\t\treturn null;\n\t}", "public TValue find(TKey key) {\n Node n = bstFind(key, mRoot); // find the Node containing the key if any\n if (n == null || n == NIL_NODE)\n throw new RuntimeException(\"Key not found\");\n return n.mValue;\n }", "@Override\n\tpublic V getValue(K key) {\n\t\tNode currentNode = firstNode;\n\t\t\n\t\tif(!isEmpty()){\n\t\t\twhile(currentNode.key != key){\n\t\t\t\tif(currentNode.getNextNode() == null){\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\treturn (V)currentNode.value;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t\t\n\t}", "Object get(Node node);", "String getNodeMetadataValue(int node, String key);", "public Value get(String key)\r\n {\r\n if (key.equals(\"\")) return null_str_val;\r\n Node<Value> x = get(root, key, 0);\r\n return x == null ? null : x.val;\r\n }", "public Value valueOf(Key key) \n {\n Node n = root;\n while (n != null) \n {\n int cmp = key.compareTo(n.key);\n \n if (cmp < 0) \n n = n.left;\n else if (cmp > 0) \n n = n.right;\n else \n return n.val;\n }\n return null; \n \n }", "public NodeT getNode(String key) {\n return nodeTable.get(key);\n }", "public RBNode<T, E> searchAndRetrieve(T key) {\r\n\t\tRBNode<T, E> c = root;\r\n\t\tRBNode<T, E> p = nillLeaf;\r\n\t\twhile (c != nillLeaf) {\r\n\t\t\t// if when comparing if it hasnt found the key go to the left\r\n\t\t\tif (key.compareTo(c.uniqueKey) < 0) {\r\n\t\t\t\tp = c;\r\n\t\t\t\tc = c.leftChild;\r\n\t\t\t}\r\n\t\t\t// if when comparing if it hasnt found the key go to the right\r\n\t\t\telse if (key.compareTo(c.uniqueKey) > 0) {\r\n\t\t\t\tp = c;\r\n\t\t\t\tc = c.rightChild;\r\n\t\t\t}\r\n\t\t\t// they are equal\r\n\t\t\telse {\r\n\t\t\t\tp = c;\r\n\t\t\t\tc = c.leftChild;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn p;\r\n\t}", "public Value get(Key key);", "public node_info getNode(int key)\n{\n\treturn getNodes().get(key);\n\t\n}", "public V get(K key) {\n if (null == key) {\n throw new IllegalStateException(\"Null value for key is \" +\n \"unsupported!\");\n }\n\n V result = null;\n\n Node<Pair<K, V>> node = findItem(key);\n\n if (node != null) {\n result = node.getData().value;\n }\n\n return result;\n\n }", "public Value find(Value key) {\n\t\tValue v = get(key);\n\t\tif (v != null)\n\t\t\treturn v;\n\t\tif (parent != null)\n\t\t\treturn parent.find(key);\n\t\treturn null;\n\t}", "private V getHelper(Node n, K key) {\n // base case\n if (n == null) {\n return null;\n }\n\n int compareResult = key.compareTo(n.key);\n if (compareResult == 0) {\n return n.value;\n } else if (compareResult < 0) {\n return getHelper(n.leftChild, key);\n } else {\n return getHelper(n.rightChild, key);\n }\n\n }", "public GraphNode getNode(String key) {\n\treturn nodes.get(key);\n }", "public final V get(final E key) {\r\n if (key == null) throw new NullPointerException();\r\n Node<E,V> l = root.c.get(0);\r\n while (l.c != null) l = child(key, l); /* while l is internal */\r\n return l.getValue(key);\r\n }", "@Override\n\tpublic node_data getNode(int key) {\n\n\t\treturn this.Nodes.get(key);\n\n\t}", "public int get(int key) {\n Node n = map.get(key);\n if(n == null){\n //we do not have the value, return -1\n return -1;\n }\n //we do have the node\n //update the node in the DLL, so that its now in the front\n update(n);\n return n.val;\n }", "public V get(K key) {\n int hashCode = scaledHashCode(key);\n OwnLinkedList<K, V> list = table[hashCode];\n if (list == null) {\n return null;\n }\n PairNode<K, V> result = list.search(key);\n if (result == null) {\n return null;\n }\n return result.getValue();\n }", "public V searchValue (K key) {\n\t\tfor (Map.Entry<K, V> entry : this.entrySet()) {\n\t\t\tif (entry.getKey() == key) {\n\t\t\t\treturn entry.getValue();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "protected Node<T> getNode(T key) {\n\t\tNode<T> node = root;\n\t\twhile (node != null) {\n\t\t\tif (key.compareTo(node.value) == 0) {\n\t\t\t\treturn node;\n\t\t\t} else if (key.compareTo(node.value) < 0) {\n\t\t\t\tnode = node.right;\n\t\t\t} else {\n\t\t\t\tnode = node.left;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public Value get(Key key)\t\t\t\t//Value passed with Key(Null if key is absent)\n\t{\n\t\tNode x=root;\n\t\twhile(x!=null)\n\t\t{\n\t\t\tint cmp=key.compareTo(x.key);\n\t\t\tif(cmp<0)\tx=x.left;\n\t\t\telse if(cmp>0)\tx=x.right;\n\t\t\telse if(cmp==0)\treturn x.val;\n\t\t}\n\t\treturn null;\n\t}", "public Node getNode(String key) {\n \ttmp = first;\n \tint i;\n \tfor (i=0;i<len;i++) {\n \t\tif (tmp.key == key) {\n \t\t\treturn tmp;\n \t\t}\n \t\ttmp = tmp.getNext();\n \t}\n \treturn null;\n }", "public Value get(Key key) ;", "@Override\r\n public V get(K key){\r\n // Return the value given by overloaded get function\r\n return get(root, key);\r\n }", "private K lookup(BSTnode<K> n, K key) {\n\t\tif (n == null) {// if key is not present\n\t\t\treturn null;\n\t\t}\n\t\tif (key.equals(n.getKey())) {// if key is present, return the match to\n\t\t\t\t\t\t\t\t\t\t// be incremented\n\t\t\treturn n.getKey();\n\t\t}\n\t\tif (key.compareTo(n.getKey()) < 0) {\n\t\t\t// key < this node's key; look in left subtree\n\t\t\treturn lookup(n.getLeft(), key);\n\t\t}\n\n\t\telse {\n\t\t\t// key > this node's key; look in right subtree\n\t\t\treturn lookup(n.getRight(), key);\n\t\t}\n\t}", "public E get(String key) {\n TSTNode<E> node = getNode(key);\n if(node==null) return null;\n return node.data;\n }", "public TFNode findNode(Object key) {\r\n\r\n // Search for node possibly containing key\r\n TFNode node = search(root(), key);\r\n\r\n // Note the index of where the key should be\r\n int index = FFGTE(node, key);\r\n\r\n // If the index is greater than the number of items in the node, the key is not in the node\r\n if (index < node.getNumItems()) {\r\n // Look for key in node\r\n if (treeComp.isEqual(node.getItem(index).key(), key)) {\r\n return node;\r\n }\r\n }\r\n\r\n // The search hit a leaf without finding the key\r\n return null;\r\n }", "private Node find(String key) {\n Node now = head;\n while (now != null) {\n if (now.pairStringString.getKey().equals(key)) {\n return now;\n }\n now = now.next;\n }\n return null;\n }", "private void valueSearch(int key, Node currNode) {\n int numChildren = getNumChildren();\n\n // Returns if currNode is null.\n if (currNode == null) {\n queueNodeSelectAnimation(null, \"Current Node null, desired Node not found\",\n AnimationParameters.ANIM_TIME);\n return;\n\n }\n\n // Finishes the traversal if the key has been found.\n if (currNode.key == key) {\n queueNodeSelectAnimation(currNode, key + \" == \"\n + currNode.key + \", desired Node found\",\n AnimationParameters.ANIM_TIME);\n\n }\n // Explores the left subtree.\n else if (key < currNode.key) {\n for (int i = 0; i < numChildren / 2; ++i) {\n queueNodeSelectAnimation(currNode.children[i],\n key + \" < \" + currNode.key +\n \", exploring left subtree\",\n AnimationParameters.ANIM_TIME);\n valueSearch(key, currNode.children[i]);\n\n }\n }\n // Explores the right subtree.\n else {\n for (int i = numChildren / 2; i < numChildren; ++i) {\n queueNodeSelectAnimation(currNode.children[i],\n key + \" > \" + currNode.key +\n \", exploring right subtree\",\n AnimationParameters.ANIM_TIME);\n valueSearch(key, currNode.children[i]);\n\n }\n }\n }", "public V lookup(K key) {\n\t\tTree<K, V> t = this;\n\t\treturn lookup(t, key);\n\t}", "public Node search(K key) {\n\t\tNode currentNode = this.mRoot;\n\t\t// start from the root of the tree that calls the method\n\t\twhile (currentNode != mSentinel && key.compareTo(currentNode.getKey()) != 0) {\n\t\t\t// if the current node is not empty and its key is not equal to the\n\t\t\t// search key\n\t\t\tif (key.compareTo(currentNode.getKey()) < 0) {\n\t\t\t\tcurrentNode = currentNode.getLeftChild();\n\t\t\t\t// go left if the search key is lower\n\t\t\t} else {\n\t\t\t\tcurrentNode = currentNode.getrightChild();\n\t\t\t\t// go right if the search key is higher\n\t\t\t}\n\t\t\t// break the loop if the search key matches the node key\n\t\t}\n\t\tif (currentNode == mSentinel) {\n\t\t\treturn null;\n\t\t\t// if there is not a match return nu;;\n\t\t} else {\n\t\t\treturn currentNode;\n\t\t\t// return the first node with the same key as the search key\n\t\t}\n\t}", "public String getNodeValue(Node node) throws Exception;", "public Node find(int key) // find node with given key\n\t{ // (assumes non-empty tree)\n\t\tNode current = root; // start at root\n\t\tif(current == null) {\n\t\t\treturn null;\n\t\t}\n\t\twhile(current.iData != key) // while no match,\n\t\t{\n\t\t\tif(key < current.iData) // go left?\n\t\t\t\tcurrent = current.leftChild;\n\t\t\telse // or go right?\n\t\t\t\tcurrent = current.rightChild;\n\t\t\tif(current == null) // if no child,\n\t\t\t\treturn null; // didn't find it\n\t\t}\n\t\treturn current; // found it\n\t}", "public V lookup(Tree<K, V> t, K key) {\n\t\tif (key.compareTo(this.key) == 0) {\n\t\t\treturn value;\n\t\t} else if (key.compareTo(this.key) < 0) {\n\t\t\treturn left.lookup(left, key);\n\t\t} else {\n\t\t\treturn right.lookup(right, key);\n\t\t}\n\t}", "public int get(int key) {\n int index = key % n;\n MapNode node = keys[index];\n for (int i =0; i < node.list.size(); ++i) {\n if (node.list.get(i) == key) {\n return vals[index].list.get(i);\n }\n }\n\n return -1;\n }", "public int get(int key) {\n if(map.containsKey(key)) {\n Node node = map.get(key);\n \n removeNode(node);\n insertNode(node);\n \n return node.val;\n }\n return -1;\n }", "public int get(int key) {\n Node x = root;\r\n while (x != null) {\r\n if (key > x.key) x = x.right;\r\n else if (key < x.key) x = x.left;\r\n else if (x.key == key) return key;\r\n }\r\n System.out.print(\"No key found\");\r\n return -1; //return 0 means did not find!\r\n }", "public String search(Integer key) {\n\t\treturn root.search(key);\n\t}", "public LinkedList<Value> get(Key key) {\r\n return root.get(key);\r\n }", "public Value get(Key key) {\n if (key == null) {\n return null;\n }\n if(first.key.compareTo(key) == 0) {\n return update(first);\n }\n Node recentNode = first;\n while(recentNode != null) {\n if (recentNode.next.key.compareTo(key) == 0) {\n return update(recentNode);\n }\n recentNode = recentNode.next;\n }\n return null;\n }", "public Node find(int key) {\n Node current = root; // start at root\n while (current.iData != key) {\n // while no match\n if (key < current.iData)\n // go left\n current = current.leftChild;\n else\n current = current.rightChild;\n if (current == null) // if no child, didn't find it\n return null;\n }\n return current; // found it\n }", "@Override\n public node_data getNode(int key) {\n return nodes.get(key);\n }", "Node getChild(K key) {\r\n\t\t\tint loc = Collections.binarySearch(keys, key);\r\n\t\t\tint childIndex = loc >= 0 ? loc + 1 : -loc - 1;\r\n\t\t\treturn children.get(childIndex);\r\n\t\t}", "V get(Object key);", "@Override\n public V get(K key) {\n return get(root, key);\n }", "<T> T getValue(DataKey<T> key);", "public T get(Object key)\n\t{\n\t\tif(root == null || key == null)\n\t\t\treturn null;\n\t\tif(!(key instanceof CharSequence))\n\t\t\treturn null;\n\t\treturn root.get((CharSequence)key,0);\n\t}", "private Node findKey(String key){\n Node N = front;\n while(N != null){\n if(N.key.equals(key)){\n return N; \n }\n else{\n N = N.next; \n }\n }\n return null;\n }", "private KeyedItem retrieve(BinarySearchTree currentNode, Comparable key){\r\n\t\t\r\n\t\t//item to return if found\r\n\t\tKeyedItem item = null;\r\n\t\t\r\n\t\t//Node is null, we are at a empty leaf. Item not found\r\n\t\tif(currentNode == null){\r\n\t\t\tthrow new TreeException(\"Key not found. Tree is empty.\");\r\n\t\t}\r\n\t\t//Check right tree if key is greater\r\n\t\telse if(currentNode.getRoot().getKey().compareTo(key) < 0){\r\n\t\t\titem = retrieve(currentNode.getRightChild(), key);\r\n\t\t}\r\n\t\t//Check left tree if key is less than\r\n\t\telse if(currentNode.getRoot().getKey().compareTo(key) > 0){\r\n\t\t\titem = retrieve(currentNode.getLeftChild(), key);\r\n\t\t}\r\n\t\t//Key is equal, found the item\r\n\t\telse if(currentNode.getRoot().getKey().compareTo(key) == 0){\r\n\t\t\titem = currentNode.getRoot();\r\n\t\t}\r\n\t\t\r\n\t\treturn item;\r\n\t}", "private V getHelper(K key, Node p) {\n if(p == null){\n return null;\n }\n int cmp = key.compareTo(p.key);\n if(cmp == 0){\n return p.value;\n }else if(cmp < 0){\n return getHelper(key, p.left);\n }else{\n return getHelper(key, p.right);\n }\n }", "String get(Integer key);", "public Node search(int key) {\n\t\t\t Node node=root;\n\t while (node!= nil){\n\t if(node.id==key){\n\t \treturn node;\n\t }\n\t else if(node.id<key){\n\t \tnode=node.right;\n\t }\n\t else{\n\t \tnode=node.left;\n\t } \n\t }\n\t //key not found in the tree\n\t return nil;\n\t }", "public int get(int key) {\n if (!map.containsKey(key)) return -1;\n Node n = map.get(key);\n \n if (n.next != tail) {\n putToTail(n); \n }\n \n return n.val;\n }", "String getValue(String type, String key);", "private Node<Pair<K, V>> findItem(K key) {\n Node<Pair<K, V>> result = null;\n\n int hash1 = hash1(key);\n\n if (table[hash1] != null) {\n Node<Pair<K, V>> node = search(table[hash1].list, key);\n\n if (node != null) {\n result = node;\n }\n }\n\n int hash2 = hash2(key);\n\n if (table[hash2] != null && result == null) {\n Node<Pair<K, V>> node = search(table[hash2].list, key);\n\n if (node != null) {\n result = node;\n }\n }\n\n return result;\n }", "public TreeNode find(Integer searchKey) {\n\t\treturn root.find(searchKey);\n\t}", "public int get(int key) {\n Node node = cache.get(key);\n // If the node exists\n if (node != null) {\n // Get the value stored in the node\n int value = node.value;\n // Remove and add the node\n remove(node);\n add(node);\n return value;\n }\n return -1;\n }", "public V lookup(K key);", "public Data get(Key key) {\n var curr = root;\n var next = root;\n while (next != null && next.key.compareTo(key) != 0) {\n curr = next;\n\n if (key.compareTo(curr.key) < 0) {\n next = curr.left; \n } else {\n next = curr.right;\n }\n }\n return next == null ? null\n : next.data;\n }", "public E find(K key){\n\t\tE output= null;\n\t\t\n\t\tint i = 0;\n\t\twhile (i<keys.length && output == null){\n\t\t\tif(keys[i] != null && keys[i].equals(key))\n\t\t\t\toutput = elem[i];\n\t\t\ti = i + 1;\n\t\t}\n\t\treturn output;\n\t}", "public String find(int key) {\n\t\t//YOUR CODE HERE\n\t\tif (root == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn find(key,root);\n\t}", "private <Key, Value> Value get(Node x, Key key) {\n return null;\n }", "private Node _locate(Object key){\n\t\tint hashCode = key.hashCode();\r\n\t\tint bucketNum = hashCode % _numBuckets;\r\n\t\treturn _locate(key, bucketNum);\r\n\t}", "public RBNode<T> search(T key) {\r\n return search1(key);\r\n//\t\treturn search2(root, key); //recursive version\r\n }", "public Entry find(Object key) {\n int i = compFunction(key.hashCode());\n SList chain = buckets[i];\n try {\n for (SListNode n = (SListNode) chain.front(); n.isValidNode(); n = (SListNode) n.next()) {\n Entry e = (Entry) n.item();\n if (e.key.equals(key)) {\n return e;\n }\n }\n } catch(InvalidNodeException e) {\n System.out.println(e);\n }\n return null;\n }", "@Override\n public V get(K key) {\n return getHelper(root, key);\n }", "public Value getPred(Key key) {\r\n return root.getPred(key);\r\n }", "public V search(K key);", "V get(K key);", "V get(K key);", "V get(K key);", "V get(K key);", "V get(K key);", "V get(K key);", "V get(K key);", "@Override\n @SuppressWarnings(\"Duplicates\")\n public V getValue(K key) {\n TreeNode<KeyValuePair<K, V>> previous = root;\n TreeNode<KeyValuePair<K, V>> current = root;\n boolean smaller = false;\n TreeNode<KeyValuePair<K, V>> result = null;\n while(true) {\n if(current == null) {\n break;\n }\n previous = current;\n if(key.compareTo(current.getValue().getKey()) < 0) {\n smaller = true;\n current = current.getLeft();\n } else if(key.compareTo(current.getValue().getKey()) > 0) {\n smaller = false;\n current = current.getRight();\n } else if (key.equals(current.getValue().getKey())) {\n System.out.println(\"Found the value!\");\n result = current;\n break;\n }\n }\n if(result != null) return result.getValue().getValue();\n return null;\n }", "private TFNode search(TFNode node, Object key) throws TFNodeException {\r\n\r\n // Check for empty node\r\n if (node.getNumItems() == 0) {\r\n throw new TFNodeException(\"Search discovered an empty node\");\r\n }\r\n\r\n int index = FFGTE(node, key);\r\n TFNode child = node.getChild(index);\r\n\r\n // If the node contains they key, return node\r\n if (index < node.getNumItems()) {\r\n if(treeComp.isEqual(node.getItem(index).key(), key)){\r\n return node;\r\n }\r\n }\r\n \r\n // If the node is a leaf, return node\r\n if (child == null) {\r\n return node;\r\n // If neither of the above, keep searching\r\n } else {\r\n return search(child, key);\r\n }\r\n \r\n }", "public V getValue(K key);", "public V getValue(K key);", "public V get(Object key) {\r\n\t\tif (key == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tint slotIndex = Math.abs(key.hashCode()) % table.length;\r\n\r\n\t\tif (table[slotIndex] == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tTableEntry<K, V> currentElement = table[slotIndex];\r\n\r\n\t\tdo {\r\n\t\t\tif (currentElement.key.equals(key)) {\r\n\t\t\t\treturn currentElement.value;\r\n\t\t\t}\r\n\r\n\t\t\tcurrentElement = currentElement.next;\r\n\t\t} while (currentElement != null);\r\n\r\n\t\treturn null;\r\n\t}", "@Override\n\t@TimeComplexity(\"O(log n)\")\n\tpublic V get(K key) {\n\t/* TCJ\n\t * Binary search operation: log n\n\t */\n\t\tint j = findIndex(key);\n\t\tif ( j == size() || key.compareTo(map.get(j).getKey()) != 0 ) { return null; }\n\t\treturn map.get(j).getValue();\n\t}", "@Override\n\tpublic K lookup(K key) {\n\t\treturn lookup(root, key);\n\t}", "Object get(String key);", "Object get(String key);", "private Node getChild(char key) {\n for (Node child : children) {\n if (child.getKey() == key) {\n return child;\n }\n }\n return null;\n }" ]
[ "0.79290116", "0.78502595", "0.7718862", "0.7622201", "0.7608405", "0.75369954", "0.7514946", "0.7479482", "0.74271023", "0.7407064", "0.7400399", "0.7385766", "0.7364818", "0.7347168", "0.7336106", "0.73310155", "0.72238296", "0.7170962", "0.7132052", "0.70183754", "0.7009276", "0.7006691", "0.6994241", "0.6992928", "0.6987388", "0.6978991", "0.69788903", "0.69562787", "0.6951569", "0.69283324", "0.69139993", "0.68977815", "0.68890285", "0.6887062", "0.68813944", "0.68800306", "0.68689823", "0.6861776", "0.68569535", "0.6842458", "0.68276954", "0.6805848", "0.679187", "0.67762035", "0.6766025", "0.6763591", "0.6744191", "0.6743299", "0.67315054", "0.67259175", "0.67244935", "0.6723859", "0.671948", "0.6717772", "0.6711392", "0.67061496", "0.66880906", "0.6673617", "0.6663067", "0.66603", "0.66563755", "0.66559166", "0.66530967", "0.6633481", "0.66191244", "0.6617712", "0.66138846", "0.66041774", "0.66038525", "0.6601934", "0.66008544", "0.6599375", "0.65969914", "0.6593051", "0.6587104", "0.65770555", "0.65711653", "0.6567476", "0.6565823", "0.6560696", "0.65492535", "0.65466076", "0.6541243", "0.65355694", "0.65355694", "0.65355694", "0.65355694", "0.65355694", "0.65355694", "0.65355694", "0.65343505", "0.6526801", "0.65205956", "0.65205956", "0.65035063", "0.64979845", "0.64917123", "0.64858574", "0.64858574", "0.6476923" ]
0.75235564
6
replaces oldKey with newKey only works if the tree is in order
@Override public void changeKey(Key oldKey, Key newKey){ changeKey(this.root, oldKey, newKey); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Node getReplacementKeyNode(Key key, Node node) {\n\t\tNode ret = node.getChild(node.getDataNumber(key));\r\n\t\t\r\n\t\twhile (!ret.isLeaf()) {\r\n\t\t\tret = ret.getChild(ret.getChildren().size() - 1);\r\n\t\t}\r\n\t\t\r\n\t\treturn ret;\r\n\t}", "IntTree<V> changeKeysBelow(final long key, final int delta) {\n if (size == 0 || delta == 0) return this;\n\n if (this.key < key)\n // adding delta to this.key changes the keys of _all_ children of this,\n // so we now need to un-change the children of this larger than key,\n // all of which are to the right. note that we still use the 'old' relative key...:\n return new IntTree<V>(\n this.key + delta, value, left, right.changeKeysAbove(key - this.key, -delta));\n\n // otherwise, doesn't apply yet, look to the left:\n IntTree<V> newLeft = left.changeKeysBelow(key - this.key, delta);\n if (newLeft == left) return this;\n return new IntTree<V>(this.key, value, newLeft, right);\n }", "IntTree<V> changeKeysAbove(final long key, final int delta) {\n if (size == 0 || delta == 0) return this;\n\n if (this.key >= key)\n // adding delta to this.key changes the keys of _all_ children of this,\n // so we now need to un-change the children of this smaller than key,\n // all of which are to the left. note that we still use the 'old' relative key...:\n return new IntTree<V>(\n this.key + delta, value, left.changeKeysBelow(key - this.key, -delta), right);\n\n // otherwise, doesn't apply yet, look to the right:\n IntTree<V> newRight = right.changeKeysAbove(key - this.key, delta);\n if (newRight == right) return this;\n return new IntTree<V>(this.key, value, left, newRight);\n }", "public void setKey(K newKey) {\r\n\t\tkey = newKey;\r\n\t}", "public void setKey(K newKey) {\n this.key = newKey;\n }", "protected void reorderNode( String workspaceName,\n NodeKey key,\n Name primaryType,\n Set<Name> mixinTypes,\n NodeKey parent,\n Path newPath,\n Path oldPath,\n Path reorderedBeforePath,\n Map<NodeKey, Map<Path, Path>> snsPathChangesByNodeKey ) {\n\n }", "public void put(int key) { root = put(root, key); }", "public void trickleUp(TreeHeapNode newNode)\n\t{\n\t\tint bottom = newNode.getKey();\n\t\tTreeHeapNode current = newNode;\n\t\twhile( current.parent != null && current.parent.getKey() < bottom )\n\t\t{\n\t\t\tcurrent.setKey(current.parent.getKey());\n\t\t\tcurrent = current.parent;\n\t\t}\n\t\tcurrent.setKey(bottom);\n\t}", "@Override\r\n public V put(K key, V value){\r\n \r\n // Declare a temporay node and instantiate it with the key and\r\n // previous value of that key\r\n TreeNode<K, V> tempNode = new TreeNode<>(key, get(key));\r\n \r\n // Call overloaded put function to either place a new node\r\n // in the tree or update the exisiting value for the key\r\n root = put(root, key, value);\r\n \r\n // Return the previous value of the key through the temporary node\r\n return tempNode.getValue();\r\n }", "public int insert(int newKey){\n int i=n-1;\n int x =0;\n if (isLeaf){\n while ((i>=0)&& (newKey<=key[i])) {\n if(newKey==key[i]) \n return -1;//duplicate return withoiut doinganything\n key[i+1] = key[i];\n i--;\n \n }\n if(x>=0){\n n++;\n key[i+1]=newKey;\n }\n }\n else{\n while ((i>=0)&& (newKey<=key[i])) {\n if(newKey==key[i])\n return -1;// find duplictte return without doing anithing \n \n else\n i--;\n }\n if(x>=0){\n \n int insertChild = i+1; // Subtree where new key must be inserted\n if (c[insertChild].isFull()){\n x++;// one more node.\n // The root of the subtree where new key will be inserted has to be split\n // We promote the mediand of that root to the current node and\n // update keys and references accordingly\n \n //System.out.println(\"This is the full node we're going to break \");// Debugging code\n //c[insertChild].printNodes();\n //System.out.println(\"going to promote \" + c[insertChild].key[T-1]);\n n++;\n c[n]=c[n-1];\n for(int j = n-1;j>insertChild;j--){\n c[j] =c[j-1];\n key[j] = key[j-1];\n }\n key[insertChild]= c[insertChild].key[T-1];\n c[insertChild].n = T-1;\n \n BTreeNode newNode = new BTreeNode(T);\n for(int k=0;k<T-1;k++){\n newNode.c[k] = c[insertChild].c[k+T];\n newNode.key[k] = c[insertChild].key[k+T];\n }\n \n newNode.c[T-1] = c[insertChild].c[2*T-1];\n newNode.n=T-1;\n newNode.isLeaf = c[insertChild].isLeaf;\n c[insertChild+1]=newNode;\n \n //System.out.println(\"This is the left side \");\n //c[insertChild].printNodes(); \n //System.out.println(\"This is the right side \");\n //c[insertChild+1].printNodes();\n //c[insertChild+1].printNodes();\n \n if (newKey <key[insertChild]){\n c[insertChild].insert(newKey); }\n else{\n c[insertChild+1].insert(newKey); }\n }\n else\n c[insertChild].insert(newKey);\n }\n \n \n }\n return x ;\n }", "public void reDistributeKeys() {\n predKey = chord.getPredecessorKey();\n if (predKey == 0) {\n return;\n }\n if (map.isEmpty()) {\n return;\n }\n\n Iterator it = map.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry<Integer, FileLocation> entry = (Map.Entry) it.next();\n //If I am not a successor of this Entry, put in in toDistribute Stack\n if (!Hasher.isBetween(predKey, entry.getKey(), nodeKey)) {\n toDistribute.push(new Entry(entry));\n }\n }\n\n }", "void decreasekey(Nodefh node, double newValue){\n\t\t\n\t\tnode.dist = newValue;\n\t\tif(node.Parent == null){\n\t\t\tif(node == min){\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse\n\t\t\t\tnode.Left.Right = node.Right;\n\t\t\tnode.Right.Left = node.Left;\n\t\t\tfhInsert(node);\n\t\t\treturn;\n\t\t}\n\t\t/**\n\t\t\tCondition varies depending on whether the child is present or not\n\t\t*/\n\t\tif(node.Parent.Child == node){\n\t\t\tif(node.Right != null && node.Right != node){\n\t\t\t\tnode.Parent.Child = node.Right;\n\t\t\t\tif(node.Left!=null && node.Left != node){\n\t\t\t\t\tnode.Left.Right = node.Right;\n\t\t\t\t\tnode.Right.Left = node.Left;\n\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tnode.Right.Left = node.Right;\n\t\t\t\t\tnode.Right.Right = node.Right;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tnode.Parent.Child = null;\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tif(node.Left != null && node.Left != node){\n\t\t\t\tnode.Left.Right = node.Right;\n\t\t\t\tnode.Right.Left = node.Left;\n\t\t\t}\n\t\t}\n\t\t\n\t\t/**\n\t\t\tThe decreased key node is inserted here.\n\t\t*/\n\t\t\n\t\tfhInsert(node);\n\t\tif(node.Parent.ChildCut == true){\n\t\t\tcascadingCut(node.Parent);\n\t\t}\n\t\telse{\n\t\t\tnode.Parent.ChildCut = false;\n\t\t}\n\t\tnode.Parent = null;\n\t}", "String setKey(String newKey);", "private long replace(long r, Node change) throws IOException {\n Node current = new Node(r);\r\n if (current.right != 0) {\r\n current.right = replace(current.right, change);\r\n current.height = getHeight(current);\r\n current.writeNode(r);\r\n int heightDifference = getHeightDifference(r);\r\n if (heightDifference < -1) {\r\n if (getHeightDifference(current.right) > 0) {\r\n current.right = rightRotate(current.right);\r\n current.writeNode(r);\r\n return leftRotate(r);\r\n }\r\n else {\r\n return leftRotate(r);\r\n }\r\n }\r\n else if (heightDifference > 1) {\r\n if (getHeightDifference(current.left) < 0) {\r\n current.left = leftRotate(current.left);\r\n current.writeNode(r);\r\n return rightRotate(r);\r\n }\r\n else {\r\n return rightRotate(r);\r\n }\r\n }\r\n return r;\r\n }\r\n else {\r\n change.key = current.key;\r\n change.fields = current.fields;\r\n addToFree(r);\r\n return current.left;\r\n }\r\n }", "public void insertOneKeyPointer(byte[] new_key, int pointer_id){\n int total_number = prior_key_number + key_number + next_key_number;\n\n if (total_number == key_number){\n\n //node in one block\n if(total_number == M){\n //split\n byte[] old_biggest = getBiggestKey();\n int mid = (int) Math.ceil((double)M/2) - 1;\n BTreeInternalNode split_node;\n //add split node to parent node\n if(M % 2 == 1){\n if(compare2key(keys.get(mid),new_key) == Util.G)\n split_node = splitAt(mid-1);\n else\n split_node = splitAt(mid);\n }else{\n split_node = splitAt(mid);\n }\n if(parent_id != 0){\n //insert to left node\n BTreeInternalNode parent_node = (BTreeInternalNode)buffer.getNode(parent_id,DB_name,table_name,index_attrs);\n parent_node.insertOneKeyPointer(split_node.getBiggestKey(),split_node.node_id);\n }\n if(compare2key(keys.get(mid),new_key) == Util.G){\n insertOneKeyPointer(new_key,pointer_id);\n }else{\n split_node.insertOneKeyPointer(new_key,pointer_id);\n }\n for (int i = 0; i < split_node.key_number; i ++){\n buffer.getNode(split_node.getPointer(i),DB_name,table_name,index_attrs).updateParent(split_node.node_id);\n }\n }else{\n if(key_number == 0){\n insertKeyPointer(0,new_key,pointer_id);\n return;\n }\n int insert_index = BinarySearch(new_key,0,key_number - 1);\n if (free_space >= 2 + key_length){\n insertKeyPointer(insert_index,new_key,pointer_id);\n }else{\n BTreeInternalNode new_node = new BTreeInternalNode(M,buffer.getFreeId(DB_name,table_name,index_attrs),parent_id,left_bro_id,right_bro_id,\n node_id,0,prior_key_number + key_number,0,buffer,index_attrs,DB_name,table_name);\n byte[] biggest_key = keys.get(key_number - 1);\n short pt = getPointer(key_number - 1);\n updateNextBro(new_node.node_id);\n buffer.addNewNode(new_node);\n deleteKeyPointer(key_number - 1);\n new_node.insertOneKeyPointer(biggest_key,pt);\n insertOneKeyPointer(new_key,pointer_id);\n }\n }\n }else{\n //node in many blocks\n if (total_number == M){\n int mid = (int) Math.ceil((double)M/2) - 1;\n BTreeInternalNode split_node;\n if (mid >= key_number + prior_key_number){\n //this node do not split\n BTreeInternalNode next_node = (BTreeInternalNode) buffer.getNode(next_id,DB_name,table_name,index_attrs);\n next_node.insertOneKeyPointer(new_key,pointer_id);\n return;\n }else if (mid < prior_key_number) {\n BTreeInternalNode prior_node = (BTreeInternalNode) buffer.getNode(prior_id,DB_name,table_name,index_attrs);\n prior_node.insertOneKeyPointer(new_key,pointer_id);\n }else{\n byte[] old_biggest = getBiggestKey();\n int old_next_id = next_id;\n if(M % 2 == 1){\n if(compare2key(keys.get(mid),new_key) == Util.G){\n if (mid == prior_key_number){\n //special case - split\n BTreeInternalNode prior_node = (BTreeInternalNode) buffer.getNode(prior_id,DB_name,table_name,index_attrs);\n prior_node.updateNextBro(0);\n prior_node.updateNextKeyNumber(0);\n prior_node.updateNumberToLeft();\n //bro\n BTreeInternalNode head_node = (BTreeInternalNode) prior_node.getHeadNode();\n BTreeInternalNode origin_right_node = (BTreeInternalNode) buffer.getNode(prior_node.right_bro_id,DB_name,table_name,index_attrs);\n origin_right_node.updateLeftBro(node_id);\n prior_node.updateRightBro(node_id);\n\n updatePriorBro(0);\n updatePriorKeyNumber(0);\n updateNumberToRight();\n updateLeftBro(head_node.node_id);\n\n prior_node.insertOneKeyPointer(new_key,pointer_id);\n if(parent_id !=0) {\n BTreeInternalNode parent_node = (BTreeInternalNode)buffer.getNode(parent_id,DB_name,table_name,index_attrs);\n parent_node.insertOneKeyPointer(prior_node.getBiggestKey(), head_node.node_id);\n parent_node.updateKeyPointer(getBiggestKey(), null, node_id);\n }else{\n createRootNode(prior_node,this);\n }\n return;\n }\n split_node = splitAt(mid- prior_key_number - 1);\n }\n else\n split_node = splitAt(mid - prior_key_number);\n }else{\n split_node = splitAt(mid - prior_key_number);\n }\n if(parent_id != 0){\n BTreeInternalNode parent_node = (BTreeInternalNode)buffer.getNode(parent_id,DB_name,table_name,index_attrs);\n if(old_next_id != 0)\n parent_node.updateKeyPointer(old_biggest,getBiggestKey(),getHeadNode().node_id);\n parent_node.insertOneKeyPointer(split_node.getBiggestKey(),split_node.node_id);\n }\n if(compare2key(keys.get(mid - prior_key_number),new_key) == Util.G){\n insertOneKeyPointer(new_key,pointer_id);\n }else{\n split_node.insertOneKeyPointer(new_key,pointer_id);\n }\n for (int i = 0; i < split_node.key_number; i ++){\n buffer.getNode(split_node.getPointer(i),DB_name,table_name,index_attrs).updateParent(split_node.node_id);\n }\n }\n }else{\n if(next_id != 0){\n BTreeInternalNode next_node = (BTreeInternalNode) buffer.getNode(next_id,DB_name,table_name,index_attrs);\n if(compare2key(next_node.keys.get(0),new_key) != Util.G) {\n next_node.insertOneKeyPointer(new_key, pointer_id);\n return;\n }\n }\n if(prior_id != 0){\n BTreeInternalNode prior_node = (BTreeInternalNode) buffer.getNode(prior_id,DB_name,table_name,index_attrs);\n if(compare2key(prior_node.keys.get(prior_node.key_number - 1),new_key) != Util.L){\n prior_node.insertOneKeyPointer(new_key,pointer_id);\n return;\n }\n }\n int insert_index = BinarySearch(new_key,0,key_number - 1);\n if (free_space >= 2 + key_length){\n insertKeyPointer(insert_index,new_key,pointer_id);\n }else{\n BTreeInternalNode new_node;\n Boolean create_new_node = false;\n if(next_id != 0){\n new_node =(BTreeInternalNode) buffer.getNode(next_id,DB_name,table_name,index_attrs);\n if(new_node.free_space < key_length + 2){\n new_node = new BTreeInternalNode(M,buffer.getFreeId(DB_name,table_name,index_attrs),parent_id,left_bro_id,right_bro_id, node_id,0,prior_key_number + key_number,0,buffer,index_attrs,DB_name,table_name);\n buffer.addNewNode(new_node);\n create_new_node = true;\n }\n }else{\n new_node = new BTreeInternalNode(M,buffer.getFreeId(DB_name,table_name,index_attrs),parent_id,left_bro_id,right_bro_id, node_id,0,prior_key_number + key_number,0,buffer,index_attrs,DB_name,table_name);\n buffer.addNewNode(new_node);\n create_new_node = true;\n }\n if(create_new_node && next_id != 0){\n BTreeNode origin_next_node = buffer.getNode(next_id,DB_name,table_name,index_attrs);\n origin_next_node.updatePriorBro(new_node.node_id);\n new_node.updateNextBro(origin_next_node.node_id);\n new_node.updateNextKeyNumber(origin_next_node.key_number + origin_next_node.next_key_number);\n }\n updateNextBro(new_node.node_id);\n byte[] biggest_key = keys.get(key_number - 1);\n short pt = getPointer(key_number - 1);\n deleteKeyPointer(key_number - 1);\n new_node.insertOneKeyPointer(biggest_key,pt);\n insertOneKeyPointer(new_key,pointer_id);\n }\n }\n }\n }", "public SortOrdering addKey( final String newKey ) {\n\t\tString[] newKeys = new String[_keys.length + 1];\n\t\tSystem.arraycopy( _keys, 0, newKeys, 0, _keys.length );\n\t\tnewKeys[_keys.length] = newKey;\n\t\t_keys = newKeys;\n\t\t\n\t\treturn this;\n\t}", "private TreeNode<K, V> put(TreeNode<K, V> node, K key, V value){\r\n \r\n // If the node is null, create a new node with the information\r\n // passed into the function\r\n if(node == null){\r\n return new TreeNode<>(key, value);\r\n }\r\n \r\n // Compare the keys recursively to find the correct spot to insert\r\n // the new node or if the key already exists\r\n if(node.getKey().compareTo(key) > 0){\r\n // If the current node has a value greater than our key, go left\r\n node.left = put(node.left, key, value);\r\n }\r\n else if(node.getKey().compareTo(key) < 0){\r\n // If the current node has a value less than our key, go right\r\n node.right = put(node.right, key, value);\r\n }\r\n else{\r\n // If the keys are equal, only update the value\r\n node.setValue(value);\r\n }\r\n \r\n // Return the updated or newly inserted node\r\n return node;\r\n }", "@SuppressWarnings(\"ReferenceEquality\") // cannot use equals() for check whether tree is the same\n private PersistentSortedMap<K, V> mapFromTree(@Var @Nullable Node<K, V> newRoot) {\n if (newRoot == root) {\n return this;\n } else if (newRoot == null) {\n return of();\n } else {\n // Root is always black.\n newRoot = newRoot.withColor(Node.BLACK);\n return new PathCopyingPersistentTreeMap<>(newRoot);\n }\n }", "public void set(String newKey)\n\t{\n\t\tthis.Key = newKey;\n\t}", "public void decreaseKey(MinHeap minHeap, int newKey, int vertex){\n int index = minHeap.indexes[vertex];\r\n\r\n //get the node and update its value\r\n HeapNode node = minHeap.minHeap[index];\r\n node.distance = newKey;\r\n minHeap.swim(index); // decrease the key in minHeap\r\n }", "public static void setUserKey(Key newKey) {\n\t\tlocalKey.set(newKey);\n\t}", "public void setKey(int position,int key) {\r\n\t\tthis.treeKey[position]=key;\r\n\t}", "private BSTNode<K> insertNode(BSTNode<K> currentNode, K key) \n throws DuplicateKeyException, IllegalArgumentException {\n // if key is null, throw an IllegalArgumentException\n if (key == null) {\n throw new IllegalArgumentException(\"Please input a valid key\");\n }\n // if currentNode is null, create a new node, because of reaching a leaf\n if (currentNode == null) {\n BSTNode<K> newNode = new BSTNode<K>(key);\n return newNode;\n }\n // otherwise, keep searching through the tree until meet a leaf, or find a duplicated node \n else {\n switch(key.compareTo(currentNode.getId())){\n case -1:\n currentNode.setLeftChild(insertNode(currentNode.getLeftChild(), key));\n break;\n case 1:\n currentNode.setRightChild(insertNode(currentNode.getRightChild(), key));\n break;\n default:\n throw new DuplicateKeyException(\"A node with the same value is already existed\");\n }\n // after update currentNode's left and right childNote, let's check currentNode's balanceValue\n // ancestor two levels away from a lead node, its absolute balanceValue may exceeds 1,\n // so codes below has meaning for it \n int balanceValue = getNodeBalance(currentNode); \n if (balanceValue < -1) { // balanceValue < -1 means sublefttree is longer than subrighttree\n switch (key.compareTo(currentNode.getLeftChild().getId())) {\n case -1: // after Left Left Case, balance is updated, so sent currentNode to its ancestor \n return rotateRight(currentNode); \n case 1: // after Left Right Case, balance is updated, so sent currentNode to its ancestor \n currentNode.setLeftChild(rotateLeft(currentNode.getLeftChild()));\n return rotateRight(currentNode);\n }\n }\n else if (balanceValue > 1) { // balanceValue < -1 means subrighttree is longer than sublefttree\n switch (key.compareTo(currentNode.getRightChild().getId())){\n case 1: // after Right Right Case, balance is updated, so sent currentNode to its ancestor \n return rotateLeft(currentNode);\n case -1: // after Right Left Case, balance is updated, so sent currentNode to its ancestor \n currentNode.setRightChild(rotateRight(currentNode.getRightChild()));\n return rotateLeft(currentNode);\n } \n }\n }\n // for leaf node's balanceValue == 0, and for -1 <= leaf node's first ancestor's balanceValue <= 1,\n // codes above(from balanceValue) has no meaning for it, return currentNode straight forward\n return currentNode;\n }", "public void reduceKey(int nodeId, int newPriority) {\n\n }", "public void increaseKey(FHeapNode x, int k)\r\n {\r\n x.key = x.key + k;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//increment value of x.key\r\n FHeapNode y = x.parent;\t\t\r\n\r\n if ((y != null) && (x.key > y.key))\t\t\t\t\t\t\t\t\t\t\t//remove node x and its children if incremented key value is greater than its parent\r\n\t\t{\r\n cut(x, y);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//remove node x from parent node y, add x to root list of heap.\r\n cascadingCut(y);\t\t\t\t\t\t\t\t\t\t\t\t\t\t//check the child cut value of parent y and perform cascading cut if required\r\n }\r\n\r\n if (x.key > maxNode.key)\t\t\t\t\t\t\t\t\t\t\t\t\t//update maxnode pointer if necessary\r\n\t\t{\r\n maxNode = x;\r\n }\r\n }", "public Node increaseKey(Node root, int key, int incVal){\n\t\tif(root==nil){\n\t\t\treturn nil;\n\t\t}\n\t\t\n\t\tif(root.id == key){\n\t\t\tint temp = root.count+incVal;\n\t\t\troot.count = temp;\n\t\t\treturn root;\n\t\t}\n\t\t\n\t\tif(key<root.id){\n\t\t\troot = increaseKey(root.left,key,incVal);\n\t\t}else{\n\t\t\troot = increaseKey(root.right,key,incVal);\n\t\t}\n\t\t\n\t\treturn root;\n\t}", "public void decreaseKey(int i, int new_val)\n\t{\n\t Heap[i] = new_val;\n\t while (i != 0 && Heap[parent(i)] < Heap[i])\n\t {\n\t swap(i, parent(i));\n\t i = parent(i);\n\t }\n\t}", "public void updateKey(double newKey, int vertex, double distance){\n int index = indexOf.get(vertex);\n\n //get the node and update its value\n// HeapNode node = minHeap.mH[index];\n// node.distance = newKey;\n heap.set(index,new Pair(vertex,newKey));\n heapifyUp(index);\n }", "public void insert(Integer key){\r\n\t\tint start=this.root;\r\n\t\tint currentPos=avail;\r\n\t\tint temp=-1;\r\n\t\twhile(increaseCompares() && start!=-1) {\r\n\t\t\ttemp=start;\r\n\t\t\tcompares++;\r\n\t\t\tif(increaseCompares() && key<getKey(start)) {\r\n\t\t\t\tstart=getLeft(start);\r\n\t\t\t\tcompares++;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tstart=getRight(start);\r\n\t\t\t\tcompares++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Tree is empty. New Node is now root of tree\r\n\t\tif(increaseCompares() && temp==-1) {\r\n\t\t\tsetRoot(0);\r\n\t\t\tcompares++;\r\n\t\t\tsetKey(avail, key);\r\n\t\t\tcompares++;\r\n\t\t\tavail=getRight(currentPos);\r\n\t\t\tcompares++;\r\n\t\t\tsetRight(currentPos,-1);\r\n\t\t\tcompares++;\r\n\t\t}\r\n\t\t//Compare values and place newNode either left or right of previous Node\r\n\t\telse if(increaseCompares() && key<getKey(temp)) {\r\n\t\t\t//Set previous (parent) Node of new inserted Node\r\n\t\t\tsetLeft(temp, currentPos);\r\n\t\t\tcompares++;\r\n\t\t\t//Initialize line of new Node\r\n\t\t\tsetKey(currentPos,key);\r\n\t\t\tcompares++;\r\n\t\t\tavail=getRight(currentPos);\r\n\t\t\tcompares++;\r\n\t\t\tsetRight(currentPos,-1);\r\n\t\t\tcompares++;\r\n\t\t}\r\n\t\telse {\r\n\t\t\t//Set previous (parent) Node of new inserted Node\r\n\t\t\tsetRight(temp, currentPos);\r\n\t\t\tcompares++;\r\n\t\t\t//Initialize line of new Node\r\n\t\t\tsetKey(currentPos,key);\r\n\t\t\tcompares++;\r\n\t\t\tavail=getRight(currentPos);\r\n\t\t\tcompares++;\r\n\t\t\tsetRight(currentPos,-1);\r\n\t\t\tcompares++;\r\n\t\t}\r\n\t}", "public boolean decreaseKey(Node<T> x, T k) {\n if (x.key.compareTo(k) < 0) {\n return false;\n }\n x.key = k;\n Node<T> y = x.parent;\n if (y != null && x.key.compareTo(y.key) <= 0) {\n cut(x, y);\n cascadingCut(y);\n }\n if (x.key.compareTo(min.key) <= 0) {\n min = x;\n }\n\n return true;\n }", "public static void Test() {\t\t\n\t\tTreeMap<String, Integer> treeMap = new TreeMap<String, Integer>();\n\t\ttreeMap.put(\"Key#1\", 1);\n\t\ttreeMap.put(\"Key#2\", 2);\n\t\ttreeMap.put(\"Key#2\", 3); // Duplicate is not allowed. Replaces old value with new\n\t\t//treeMap.put(null, 1); //NULL key is not allowed; throws NPE \n\t\t//treeMap.put(null, 2);\n\t\tSystem.out.println(\"Tree Map: \" + treeMap.toString());\n\t\t\n\t\t// Sorts key based on natural ordering (sorts in \"ascending order\")\n\t\tTreeMap<MapKey<String>, Integer> treeMap2 = new TreeMap<MapKey<String>, Integer>(); // uses \"natural ordering\" provided by the key object for comparison i.e. MapKey.compareTo() method\n\t\ttreeMap2.put(new MapKey<String>(\"x\"), 1);\n\t\ttreeMap2.put(new MapKey<String>(\"y\"), 2);\t\t\n\t\t// Comparable\n\t\tboolean status = treeMap2.put(new MapKey<String>(\"z\"), 3) == null;\n\t\tMapKey<String> mapKey = new MapKey<String>(\"xyz\");\t\t\n\t\tstatus = treeMap2.put(mapKey, 123) == null;\n\t\tstatus = treeMap2.put(mapKey, 1234) == null;\n\t\tSystem.out.println(\"Tree Map: \" + treeMap2.toString());\n\t\t\n\t\tTreeMap<String, Integer> treeMap3 = new TreeMap<String, Integer>(new TestComparator());\n\t\t\n\t\tTreeMap<MyKey, Integer> treeMap4 = new TreeMap<MyKey, Integer>();\n\t\ttreeMap4.put(new MyKey(), 10);\n\t\ttreeMap4.put(new MyKey(), 20);\n\t\t\n\t\t\n\t}", "public void delete(K key)\r\n\t{\r\n\t\tif(search(key) == null) \r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif(root == null) \r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tBSTNode<E,K> node = root;\r\n\t\tBSTNode<E,K> child = null;\r\n\t\tBSTNode<E,K> parent1 = null;\r\n\t\tBSTNode<E,K> parent2 = null;;\r\n\t\tboolean Left = true;\r\n\t\tboolean Left2 = false;\r\n\t\tboolean found = false;\r\n\t\t\r\n\t\twhile(!found)\r\n\t\t{\r\n\t\t\tif(node.getKey().compareTo(key) == 0)\r\n\t\t\t{\r\n\t\t\t\tfound = true;\r\n\t\t\t}\r\n\t\t\telse if(key.compareTo(node.getKey())<=-1)\r\n\t\t\t{\r\n\t\t\t\tif(node.getLeft() != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tparent1 = node;\r\n\t\t\t\t\tnode = node.getLeft();\r\n\t\t\t\t\tLeft = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if(key.compareTo(node.getKey()) >= 1)\r\n\t\t\t{\r\n\t\t\t\tif(node.getRight() != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tparent1 = node;\r\n\t\t\t\t\tnode = node.getRight();\r\n\t\t\t\t\tLeft = false;\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(node.getLeft() != null && node.getRight() != null)\r\n\t\t{\r\n\t\t\tchild = node.getRight();\r\n\t\t\tparent2 = node;\r\n\t\t\twhile(child.getLeft() != null)\r\n\t\t\t{\r\n\t\t\t\tparent2 = child;\r\n\t\t\t\tchild = child.getLeft();\r\n\t\t\t\tLeft2 = true;\r\n\t\t\t}\r\n\t\t\tif(Left2)\r\n\t\t\t{\r\n\t\t\t\tparent2.setLeft(child.getLeft());\t\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\tparent2.setRight(child.getLeft());\r\n\t\t\t}\r\n\t\t\tchild.setLeft(node.getLeft());\r\n\t\t\tchild.setRight(node.getRight());\r\n\t\t}\r\n\t\telse if(node.getLeft() == null && node.getRight() != null)\r\n\t\t{\r\n\t\t child = node.getRight();\r\n\t\t}\r\n\t\telse if(node.getLeft() != null && node.getRight() == null)\r\n\t\t{\r\n\t\t\tchild = node.getLeft();\r\n\t\t}\r\n\t\telse if(node.getLeft() == null && node.getRight() == null)\r\n\t\t{\r\n\t\t\tif(Left)\r\n\t\t\t{\r\n\t\t\t\tparent1.setLeft(null);\r\n\t\t\t} \r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tparent1.setRight(null);\r\n\t\t\t}\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif(root == node)\r\n\t\t{\r\n\t\t\troot = child;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tif(Left) \r\n\t\t{\r\n\t\t\tparent1.setLeft(child);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tparent1.setRight(child);\r\n\t\t}\r\n\t}", "public void put(String key) {\n\t root = put(root, key, 0);\n\t }", "private Node locatePrevNode(K key) { \n\t\tNode p = null; \n\t\tNode current = first; \n\t\twhile (current != null && current.getData().getKey().compareTo(key) < 0) {\n\t\t\tp = current; \n\t\t\tcurrent = current.getNext(); \n\t\t}\n\t\treturn p; \n\t}", "public final V put(final E key, final V value) {\r\n if (key == null) throw new NullPointerException();\r\n Node<E, V> p, l, newchild;\r\n Info<E, V> pinfo;\r\n int pindex; // index of the child of p that points to l\r\n\r\n while (true) {\r\n // search\r\n p = root;\r\n pinfo = p.info;\r\n l = p.c.get(0);\r\n while (l.c != null) {\r\n p = l;\r\n l = child(key, l);\r\n }\r\n\r\n // - read pinfo once instead of every iteration of the previous loop\r\n // then re-read and verify the child pointer from p to l\r\n // (so it is as if p.info were read first)\r\n // and also store the index of the child pointer of p that points to l\r\n pinfo = p.info;\r\n Node<E,V> currentL = p.c.get(p.kcount);\r\n pindex = p.kcount;\r\n for (int i=0;i<p.kcount;i++) {\r\n if (less(key, (E)p.k[i])) {\r\n currentL = p.c.get(i);\r\n pindex = i;\r\n break;\r\n }\r\n }\r\n\r\n if (l != currentL) continue;\r\n\r\n if (pinfo != null && pinfo.getClass() != Clean.class) {\r\n help(pinfo);\r\n } else if (l.hasKey(key)) {\r\n\r\n // REPLACE INSERTION\r\n newchild = new Node<E, V>(key, value, l, true); // true means key is already in node l\r\n\r\n // flag and perform the insertion\r\n final IInfo<E, V> newPInfo = new IInfo<E, V>(l, p, newchild, pindex);\r\n if (infoUpdater.compareAndSet(p, pinfo, newPInfo)) {\t // [[ iflag CAS ]]\r\n helpInsert(newPInfo);\r\n return l.getValue(key);\r\n } else {\r\n // help current operation first\r\n help(p.info);\r\n }\r\n } else {\r\n // SPROUTING INSERTION\r\n if (l.kcount == K-1) { // l is full of keys\r\n // create internal node with K children sorted by key\r\n newchild = new Node<E, V>(key, value, l);\r\n \r\n // SIMPLE INSERTION\r\n } else {\r\n // create leaf node with sorted keys\r\n // (at least one key of l is null and, by structural invariant,\r\n // nulls appear at the end, so the last key is null)\r\n newchild = new Node<E, V>(key, value, l, false); // false means key is not in l\r\n }\r\n\r\n // flag and perform the insertion\r\n final IInfo<E, V> newPInfo = new IInfo<E, V>(l, p, newchild, pindex);\r\n if (infoUpdater.compareAndSet(p, pinfo, newPInfo)) {\t // [[ iflag CAS ]]\r\n helpInsert(newPInfo);\r\n return null;\r\n } else {\r\n // help current operation first\r\n help(p.info);\r\n }\r\n }\r\n }\r\n }", "Key replaceKey(Entry<Key, Value> entry, Key key) throws InvalidKeyException;", "static void insert(Node nd, int key)\n\t{\n\t\tif (nd == null) {\n\t\t\troot = new Node(key);\n\t\t\treturn;\n\t\t}\n\t\tQueue<Node> q = new LinkedList<Node>();\n\t\tq.add(nd);\n\n\t\t// Do level order traversal until we find an empty place\n\t\twhile (!q.isEmpty()) {\n\t\t\tnd = q.remove();\n\n\t\t\tif (nd.left == null) {\n\t\t\t\tnd.left = new Node(key);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t\tq.add(nd.left);\n\n\t\t\tif (nd.right == null) {\n\t\t\t\tnd.right = new Node(key);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t\tq.add(nd.right);\n\t\t}\n\t}", "private static <K extends Comparable<? super K>, V> Node<K, V> putAndCopy0(\n K key, V value, @Var @Nullable Node<K, V> current) {\n\n if (current == null) {\n return new Node<>(key, value);\n }\n\n int comp = key.compareTo(current.getKey());\n if (comp < 0) {\n // key < current.data\n Node<K, V> newLeft = putAndCopy0(key, value, current.left);\n current = current.withLeftChild(newLeft);\n\n } else if (comp > 0) {\n // key > current.data\n Node<K, V> newRight = putAndCopy0(key, value, current.right);\n current = current.withRightChild(newRight);\n\n } else {\n current = new Node<>(key, value, current.left, current.right, current.getColor());\n }\n\n // restore invariants\n return restoreInvariants(current);\n }", "private void insercionOrdenada(BTreeNode<T> currentNode, T t) {\n int indexNewKey = findChildOrIndex(currentNode, (I)t.getId());\n\n for (int i = currentNode.getNumKeys() - 1; i >= indexNewKey; i--) {\n currentNode.setKey(currentNode.getKey(i), i + 1);\n }\n\n currentNode.setKey(t, indexNewKey);\n\n currentNode.increaseNumKeys();\n }", "@Override\n public void put(PairNode<K, V> node) {\n super.put(node);\n keySet.add(node.getKey());\n }", "private DefaultMutableTreeNode buildSortedTree(DefaultMutableTreeNode oldNode) {\n return buildSortedTree(oldNode, \n new DefaultMutableTreeNode(oldNode.getUserObject()));\n }", "public void rename( String oldKey, String newKey ) {\n if ( containsKey(oldKey) ) {\n JsonValue value = get(oldKey);\n put(newKey, value);\n remove(oldKey);\n }\n }", "private Node putHelper(Node n, K key, V value) {\n if (n == null) {\n n = new Node(key, value);\n } else if (key.compareTo(n.key) < 0) {\n n.leftChild = putHelper(n.leftChild, key, value);\n } else if (key.compareTo(n.key) > 0) {\n n.rightChild = putHelper(n.rightChild, key, value);\n }\n\n return n;\n }", "private void insertNonFull(BTNode x, DataPair k) {\n int i = x.mCurrentKeyNum-1;\n if (x.mIsLeaf){\n\n // The following loop does two things\n // a) Finds the location of new key to be inserted\n // b) Moves all greater keys to one place ahead\n while (i >= 0 && k.compareTo(x.mKeys[i]) < 0){\n x.mKeys[i+1] = x.mKeys[i];\n i--;\n }\n\n // Insert the new key at found location\n x.mKeys[i+1] = k;\n x.mCurrentKeyNum++;\n }else{\n // Find the child which is going to have the new key\n while (i>= 0 && k.compareTo(x.mKeys[i]) < 0)\n i--;\n\n i++;\n // See if the found child is full\n if (x.mChildren[i].mCurrentKeyNum == 2*t -1){\n splitChild(x,i,x.mChildren[i]);\n if (k.compareTo(x.mKeys[i]) > 0)\n i++;\n }\n insertNonFull(x.mChildren[i], k);\n }\n }", "private void move(int newIndex, int oldIndex){\r\n \tassign(newIndex, keys[oldIndex], vals[oldIndex]); //get(keys[oldIndex]) could be used but doesn't seem intuitive when you are already accessing the keys array\r\n \tremove(oldIndex);\r\n }", "private void updateChildrenOrgPath(String oldNo, String newNo) {\n\t\tif (!oldNo.equals(newNo)) {\n\t\t\torgMapper.updateSubParentNo(oldNo, newNo);\n\t\t}\n\t\tList<OrgVo> children = orgMapper.queryChildrenByOrgNo(newNo);\n\t\tchildren.forEach(o -> {\n\t\t\tEpSOrg org = new EpSOrg();\n\t\t\tBeanUtils.copyProperties(o, org);\n\t\t\tsetOrgPath(org);\n\t\t\torgMapper.updateWithoutNull(org); //更新orgPath\n\t\t\tupdateChildrenOrgPath(org.getOrgNo(), org.getOrgNo());\n\t\t});\n\t}", "public void setLeft(int position,int key) {\r\n\t\tthis.treeLeft[position]=key;\r\n\t}", "private Node findKey(Node R, String targetKey){ \n if(R == null || R.item.key.equals(targetKey)) return R;\n if(R.item.key.compareToIgnoreCase(targetKey)>0) return findKey(R.left, targetKey);\n else return findKey(R.right, targetKey); //(R.item.key.compareToIgnoreCase(targetKey)>0) \n }", "public void changeKey(String key, Object newValue){\n try {\n myJSON.put(key, newValue);\n writeToFile();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private native void switchKey(String newKey);", "public void binomialHeapDecreaseKey(Node x, int k) {\n\t\tif(k>x.key) {\n\t\t\tSystem.out.println(\"New key is greater than current key\");\n\t\t}\n\t\telse {\n\t\t\t// change the key of given node to k\n\t\t\tx.key = k;\n\t\t\tNode y = x;\n\t\t\tNode z = y.p;\n\t\t\t// bubble up the node to its correct position in the tree\n\t\t\t// by just exchanging the key values of all nodes in\n\t\t\t// y's path to the root\n\t\t\twhile(z!=null && y.key < z.key) {\n\t\t\t\tint temp = z.key;\n\t\t\t\tz.key = y.key;\n\t\t\t\ty.key = temp;\n\t\t\t\ty = z;\n\t\t\t\tz = y.p;\n\t\t\t}\n\t\t}\n\t}", "private WAVLNode treePosForDel (WAVLTree tree,int key) {\n\t\t WAVLNode x=tree.root;\r\n\t\t WAVLNode y=EXT_NODE;\r\n\t\t if(x==EXT_NODE) { // if the tree happens to be empty return a node with a different key then expected\r\n\t\t\t return new WAVLNode(key-1,\"i\");\r\n\t\t }\r\n\t\t while (x!=EXT_NODE) {\r\n\t\t\t y=x;\r\n\t\t\t y.sizen--;\r\n\t\t\t if (key==x.key){\r\n\t\t\t\t return x;\r\n\t\t\t }\r\n\t\t\t else if (key<x.key) {\r\n\t\t\t\t x=x.left;\r\n\t\t\t }\r\n\t\t\t else {\r\n\t\t\t\t x=x.right;\r\n\t\t\t }\r\n\t\t }\r\n\t\t if(y.key!=key) { // if the node is not found, the method call refixfordel to fix the sizes\r\n\t\t\t reFixForDel(y);\r\n\t\t }\r\n\t\t return y;\r\n\t }", "public void delete(int key){\n\t\tBSTNode currentNode = root;\n\t\tBSTNode parent = null;\n\t\twhile (currentNode != null && currentNode.getKey() != key){\n\t\t\tparent = currentNode;\n\t\t\tif (key < currentNode.getKey()){\n\t\t\t\tcurrentNode = currentNode.getLeft();\n\t\t\t}else{\n\t\t\t\tcurrentNode = currentNode.getRight();\n\t\t\t}\n\t\t}\n\t\tif (currentNode == null){\n\t\t\tSystem.out.println(\"No such key is found in the tree\");\n\t\t\treturn;\n\t\t}\n\t\tif (currentNode.getLeft() == null && currentNode.getRight() == null){\n\t\t\t//Leaf Node\n\t\t\tif (currentNode.getKey() > parent.getKey()){\n\t\t\t\tparent.setRight(null);\n\t\t\t}else{\n\t\t\t\tparent.setLeft(null);\n\t\t\t}\n\t\t}else if (currentNode.getLeft() == null){\n\t\t\tif (currentNode.getKey() > parent.getKey()){\n\t\t\t\tparent.setRight(currentNode.getRight());\n\t\t\t}else{\n\t\t\t\tparent.setLeft(currentNode.getRight());\n\t\t\t}\n\t\t}else if(currentNode.getRight() == null){\n\t\t\tif (currentNode.getKey() > parent.getKey()){\n\t\t\t\tparent.setRight(currentNode.getLeft());\n\t\t\t}else{\n\t\t\t\tparent.setLeft(currentNode.getLeft());\n\t\t\t}\n\t\t}else{\n\t\t\t// this is case where this node has two children\n\t\t\tBSTNode node = currentNode.getLeft();\n\t\t\tBSTNode parentTemp = currentNode;\n\t\t\twhile (node.getRight() != null){\n\t\t\t\tparentTemp = node;\n\t\t\t\tnode = node.getRight();\n\t\t\t}\n\t\t\t// switch the value with the target node we are deleting.\n\t\t\tcurrentNode.setKey(node.getKey());\n\t\t\t// remove this node but don't forget about its left tree\n\t\t\tparentTemp.setRight(node.getLeft());\n\t\t}\n\t}", "public int addKey(long key){\n int i = 0;\n while (i < numKeys && keys[i].getKey() < key){\n i++;\n }\n if (i == keys.length){\n //node is full\n return -1;\n }\n if (i == numKeys){\n //at end of list of keys, there is space for new one\n TreeObject newKey = new TreeObject(key);\n keys[i] = newKey;\n numKeys++;\n try {\n writeNode();\n } catch(IOException e){\n System.err.println(e.getMessage());\n }\n return i;\n }\n if (keys[i].getKey() == key){\n //found a key that already exists\n keys[i].incrementFrequency();\n try {\n writeNode();\n } catch(IOException e){\n System.err.println(e.getMessage());\n }\n return i; //don't increment numKeys, we didn't add a new value\n }\n //keys[i].getKey() > than key\n //need to shift other elements backward to make space for new key\n for (int j = keys.length - 1; j > i; j--){\n keys[j] = keys[j-1];\n }\n TreeObject newKey = new TreeObject(key);\n keys[i] = newKey;\n numKeys++;\n try {\n writeNode();\n } catch(IOException e){\n System.err.println(e.getMessage());\n }\n return i;\n }", "public void replace(K key, V value) {\r\n int hash = key.hashCode() % data.length;\r\n if (hash < 0){\r\n hash *= -1;\r\n }\r\n if (data[hash] == null) {\r\n throw new NullPointerException(\"no such key in the HashMap\" + key);\r\n } else {\r\n Node currentNode = data[hash];\r\n while (currentNode != null) {\r\n if (currentNode.key == key || currentNode.key.equals(key)) {\r\n currentNode.value = value;\r\n break;\r\n }\r\n currentNode = currentNode.next;\r\n }\r\n }\r\n }", "public void decreaseKey(int locationToChange, double valueOfElem) {\r\n\t\tint i = locationToChange;\r\n\t\tif (valueOfElem > this.costHeap[i]) {\r\n\t\t\tthrow new RuntimeException(\"New key is larger than current key\");\r\n\t\t}\r\n\t\tthis.costHeap[i] = valueOfElem;\r\n\t\twhile (i > 0 && this.costHeap[this.parent(i)] > this.costHeap[i]) {\r\n\t\t\t// exchange i with parent(i)\r\n\t\t\tE tempE = objectHeap[i];\r\n\t\t\tdouble tempC = this.costHeap[i];\r\n\t\t\tthis.objectHeap[i] = this.objectHeap[parent(i)];\r\n\t\t\tthis.costHeap[i] = this.costHeap[parent(i)];\r\n\t\t\tthis.locations.put(this.objectHeap[i], i);\r\n\t\t\tthis.objectHeap[parent(i)] = tempE;\r\n\t\t\tthis.costHeap[parent(i)] = tempC;\r\n\t\t\tthis.locations.put(tempE, parent(i));\r\n\t\t\ti = parent(i);\r\n\t\t}\r\n\t}", "public void inc(String key) {\n if (!keyMap.containsKey(key)) {\n keyMap.put(key, 1);\n DLinkedListNode node = countMap.get(1);\n System.out.println(node);\n if (node == null) {\n node = new DLinkedListNode(1);\n countMap.put(1, node);\n dll.insertAfter(dll.head, node);\n }\n node.keySet.add(key);\n }\n else {\n int count = keyMap.get(key); \n DLinkedListNode oldNode = countMap.get(count);\n oldNode.keySet.remove(key);\n count++;\n keyMap.put(key, count);\n DLinkedListNode newNode = countMap.get(count);\n if (newNode == null) {\n newNode = new DLinkedListNode(count);\n countMap.put(count, newNode);\n dll.insertAfter(oldNode, newNode);\n }\n newNode.keySet.add(key);\n if (oldNode.keySet.size() == 0) {\n dll.remove(oldNode);\n countMap.remove(oldNode.count);\n }\n }\n }", "private void rebuildKey() {\r\n\r\n final StringBuffer sb = new StringBuffer();\r\n\r\n sb.append(getClassField().getCanonicalName());\r\n for (final Object k : this.keyPartList) {\r\n sb.append(k.toString()).append('|');\r\n }\r\n this.key = sb.toString();\r\n }", "private BinarySearchTree deleteTree(BinarySearchTree tree, Comparable key){\r\n\t\t\r\n\t\t//If it is a leaf\r\n\t\tif(tree.getLeftChild() == null && tree.getRightChild() == null){\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t//Tree has only 1 leaf\r\n\t\telse if( (tree.getLeftChild() == null && tree.getRightChild() != null) ||\r\n\t\t\t\t (tree.getLeftChild() != null && tree.getRightChild() == null)){\r\n\t\t\t\r\n\t\t\t//Make a new tree out of the leaf and make it the new root\r\n\t\t\tif(tree.getLeftChild() != null){\r\n\t\t\t\treturn tree.getLeftChild();\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\treturn tree.getRightChild();\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Has two leaves. This case is slightly more complicated\r\n\t\telse{\r\n\t\t\t//get the leftmost item in the right child subtree. This becomes the \r\n\t\t\t//new root. This allows the BinarySearchTree to stay a valid \r\n\t\t\t//BinarySearchTree\r\n\t\t\tKeyedItem replacementItem = findLeftMost(tree.getRightChild());\r\n\t\t\t\r\n\t\t\t//Delete the tree with that item so it can be moved to the new root\r\n\t\t\tBinarySearchTree replacementTree = deleteLeftMost(tree.getRightChild());\r\n\t\t\t\r\n\t\t\t//change the root to the new item\r\n\t\t\ttree.setRootItem(replacementItem);\r\n\t\t\t\r\n\t\t\t//Set the new roots right tree to the replacement tree\r\n\t\t\ttree.attachRightSubtree(replacementTree);\r\n\t\t\treturn tree;\r\n\t\t}\r\n\t}", "private void swim(int node){\n //we need node/2 > 0 here to stop the loop and prevent the unused keys[0] from being accessed\n while (node/2 > 0){\n //break if the node is smaller than its parent node\n if (this.keys[node].compareTo(this.keys[node/2])<=0) break;\n //otherwise exchange the node with its parent\n this.exch(node, node/2, this.keys);\n node = node/2;\n }\n }", "public void decreaseKey(int i, int new_val) {\n\t\t\tharr[i] = new_val;\n\t\t\twhile (i != 0 && harr[parent(i)] > harr[i]) {\n\t\t\t\tswap(i, parent(i));\n\t\t\t\ti = parent(i);\n\t\t\t}\n\t\t}", "public static void setOldTree(RootedTree t) {\r\n\t\tsetOldNewickString(createNewickString(t)); // Added by Madhu, it is where I save the newick\r\n\t\t// string for the uploaded tree.\r\n\t\tSystem.out.println(\"OLD NODE:\" + getOldNewickString());\r\n\t\toldTree = t;\r\n\t}", "public AVLNode deleteNodeImmersion(AVLNode treeRoot, int key) {\n if (treeRoot == null) {\n // Sub tree is empty\n // End operation\n return treeRoot;\n }\n\n // Sub tree is NOT empty so we have to perform the recursive descent\n if (key < treeRoot.getKey()) {\n // The key of the current node is less than the key we are looking for\n // Recursive descent through the left\n treeRoot.setLeft(deleteNodeImmersion(treeRoot.getLeft(), key));\n } else if (key > treeRoot.getKey()) {\n // The key of the current node is greater than the key we are looking for\n // Recursive descent through the right\n treeRoot.setRight(deleteNodeImmersion(treeRoot.getRight(), key));\n } else {\n // Key already exists, so we cannot add a new element with the same key\n treeRoot = this.handleDeletion(treeRoot);\n }\n\n // After applying the removal, let's see if rotations need to be applied\n\n // Case of tree with just one node: it is not necessary to apply rotations\n if (treeRoot == null) {\n return treeRoot;\n }\n\n // After inserting the element, we must increase the height of the current node\n // so we can later compute the height of the whole tree.\n // Let's compute height below using child heights\n int heightBelow = IntegerUtilities.max(height(treeRoot.getLeft()), height(treeRoot.getRight()));\n // Increase the height of the current node\n treeRoot.setHeight(heightBelow + 1);\n\n // Compute the balance factor of this node\n int balance = getBalance(treeRoot);\n\n // Check if this node is unbalanced\n if (balance > 1 || balance < -1) {\n\n // This node is unbalanced\n // Let's check the case\n\n if (balance > 1) {\n // Case Left Left / case Left Right\n if (getBalance(treeRoot.getLeft()) >= 0) {\n // Case Left Left: Right Rotation\n return rightRotate(treeRoot);// Right Rotation\n } else if (getBalance(treeRoot.getLeft()) < 0) {\n // Case Left Right: Left Rotation and Right Rotation\n treeRoot.setLeft(leftRotate(treeRoot.getLeft()));// Left Rotation\n return rightRotate(treeRoot);// Right Rotation\n }\n } else {// balance < -1\n // Case Right Right / case Right Left\n if (getBalance(treeRoot.getRight()) <= 0) {\n // Case Right Right: Left Rotation\n return leftRotate(treeRoot);// Left Rotation\n } else if (getBalance(treeRoot.getRight()) > 0) {\n // Case Right Left: Right Rotation and Left Rotation\n treeRoot.setRight(rightRotate(treeRoot.getRight()));// Right Rotation\n return leftRotate(treeRoot);// Left Rotation\n }\n }\n }\n\n return treeRoot;\n }", "void setKey(K key);", "static TreeNode insert(TreeNode node, int key) \n\t{ \n\t // if tree is empty return new node \n\t if (node == null) \n\t return newNode(key); \n\t \n\t // if key is less then or grater then \n\t // node value then recur down the tree \n\t if (key < node.key) \n\t node.left = insert(node.left, key); \n\t else if (key > node.key) \n\t node.right = insert(node.right, key); \n\t \n\t // return the (unchanged) node pointer \n\t return node; \n\t}", "public void changeKey(int x, int y) throws IndexOutOfBoundsException {\n\t\tMap m = rows.get(y).getMap(x);\n\t\tsuper.changeKey(m.getKey(), InputManager.enterString(\"New Key\"));\n\t}", "protected void renameNode( String workspaceName,\n NodeKey key,\n Path newPath,\n Segment oldSegment,\n Name primaryType,\n Set<Name> mixinTypes ) {\n\n }", "@Override\n public void insert(K key) {\n try {\n this.rootNode = insertNode(this.rootNode, key);\n } catch (DuplicateKeyException e) {\n System.out.println(e.getMessage());\n } catch (IllegalArgumentException e) {\n System.out.println(e.getMessage());\n }\n }", "public void heapDecreaseKey(node_data node){\n\t\tint v = node.getKey();\n\t\tint i = 0;\n\t\twhile (i<_size && v!=_a[i].getKey()) i++;\n\t\tif (node.getWeight() <_a[i].getWeight()){\n\t\t\t_a[i] = node;\n\t\t\twhile (i>0 && _a[parent(i)].getWeight()>_a[i].getWeight()){\n\t\t\t\texchange(i, parent(i));\n\t\t\t\ti = parent(i);\n\t\t\t}\n\t\t}\n\t}", "public void insert(int key)\n\t{\n\t\tTreeHeapNode newNode = new TreeHeapNode();\n\t\tnewNode.setKey(key);\n\t\tif(numNodes == 0) root = newNode;\n\t\telse\n\t\t{\n\t\t\t//find place to put newNode\n\t\t\tTreeHeapNode current = root;\n\t\t\tint n = numNodes+1;\n\t\t\tint k;\n\t\t\tint[] path = new int[n];\n\t\t\tint j = 0;\n\t\t\twhile(n >= 1)\n\t\t\t{\n\t\t\t\tpath[j] = n % 2;\n\t\t\t\tn /= 2;\n\t\t\t\tj++;\n\t\t\t}\n\t\t\t//find parent of new child\n\t\t\tfor(k = j-2; k > 0; k--)\n\t\t\t{\n\t\t\t\tif(path[k] == 1)\n\t\t\t\t\tcurrent = current.rightChild;\n\t\t\t\telse\n\t\t\t\t\tcurrent = current.leftChild;\n\t\t\t}\n\t\t\t//find which child new node should go into\n\t\t\t\n\t\t\tif(current.leftChild != null)\n\t\t\t{\n\t\t\t\tcurrent.rightChild = newNode;\n\t\t\t\tnewNode.isLeftChild = false;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcurrent.leftChild = newNode;\n\t\t\t\tnewNode.isLeftChild = true;\n\t\t\t}\n\t\t\tnewNode.parent = current;\n\t\t\t\n\t\t\ttrickleUp(newNode);\n\t\t}\n\t\tnumNodes++;\n\t}", "public void put(int key, int value) {\n int hash = key % 1024;\n TreeNode treeNode = array[hash];\n if (treeNode == null) {\n array[hash] = new TreeNode(value);\n }\n if (value > treeNode.value) {\n\n }\n\n }", "public void insert(int key){\n\t\tBSTNode currentNode = root;\n\t\tBSTNode parent = null;\n\t\twhile (currentNode != null){\n\t\t\tif (currentNode.getKey() == key){\n\t\t\t\tSystem.out.println(\"This value already exists in the tree!\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tparent = currentNode;\n\t\t\tif (key < currentNode.getKey()){\n\t\t\t\tcurrentNode = currentNode.getLeft();\n\t\t\t}else{\n\t\t\t\tcurrentNode = currentNode.getRight();\n\t\t\t}\n\t\t}\n\t\t// once we reached the bottom of the tree, we insert the new node.\n\t\t// to do that we need to know the leaf node which is stored in the BSTNode parent\n\t\t// by comparing with its value, we know which side to insert the new node.\n\t\tif (key < parent.getKey()){\n\t\t\tparent.setLeft(new BSTNode(key, null, null));\n\t\t}else{\n\t\t\tparent.setRight(new BSTNode(key, null, null));\n\t\t}\n\t\tsize++;\n\t}", "private static <K extends Comparable<? super K>, V> @Nullable Node<K, V> removeAndCopy0(\n K key, @Var Node<K, V> current) {\n\n @Var int comp = key.compareTo(current.getKey());\n\n if (comp < 0) {\n // key < current.data\n if (current.left == null) {\n // Target key is not in map.\n return current;\n }\n\n // Go down leftwards, keeping a red node.\n\n if (!Node.isRed(current.left) && !Node.isRed(current.left.left)) {\n // Push red to left if necessary.\n current = makeLeftRed(current);\n }\n\n // recursive descent\n Node<K, V> newLeft = removeAndCopy0(key, current.left);\n current = current.withLeftChild(newLeft);\n\n } else {\n // key >= current.data\n if ((comp > 0) && (current.right == null)) {\n // Target key is not in map.\n return current;\n }\n\n if (Node.isRed(current.left)) {\n // First chance to push red to right.\n current = rotateClockwise(current);\n\n // re-update comp\n comp = key.compareTo(current.getKey());\n assert comp >= 0;\n }\n\n if ((comp == 0) && (current.right == null)) {\n assert current.left == null;\n // We can delete the node easily, it's a leaf.\n return null;\n }\n\n if (!Node.isRed(current.right) && !Node.isRed(current.right.left)) {\n // Push red to right.\n current = makeRightRed(current);\n\n // re-update comp\n comp = key.compareTo(current.getKey());\n assert comp >= 0;\n }\n\n if (comp == 0) {\n // We have to delete current, but is has children.\n // We replace current with the smallest node in the right subtree (the \"successor\"),\n // and delete that (leaf) node there.\n\n @Var Node<K, V> successor = current.right;\n while (successor.left != null) {\n successor = successor.left;\n }\n\n // Delete the successor\n Node<K, V> newRight = removeMininumNodeInTree(current.right);\n // and replace current with it\n current =\n new Node<>(\n successor.getKey(),\n successor.getValue(),\n current.left,\n newRight,\n current.getColor());\n\n } else {\n // key > current.data\n // Go down rightwards.\n\n Node<K, V> newRight = removeAndCopy0(key, current.right);\n current = current.withRightChild(newRight);\n }\n }\n\n return restoreInvariants(current);\n }", "public void inc(String key) {\n\t\tif(map.containsKey(key)){\n\t\t\tNode n=map.get(key);\n\t\t\tn.val++;\n\t\t\tmoveToHead(n);\n\t\t}\n\t\telse{\n\t\t\tNode n=new Node(key, 1);\n\t\t\tmap.put(key, n);\n\t\t\tinsert(n, tail);\n\t\t}\n\t}", "public void delete(String key) throws KeyNotFoundException{\n Node N, P, S;\n if(findKey(root, key)==null){\n throw new KeyNotFoundException(\"Dictionary Error: delete() cannot delete non-existent key\");\n }\n N = findKey(root, key);\n if( N.left == null && N.right == null ){\n if( N == root ){\n root = null;\n }else{\n P = findParent(N, root);\n if( P.right == N ) P.right = null;\n else P.left = null;\n }\n }else if( N.right == null ){\n if( N == root ){\n root = N.left;\n }else{\n P = findParent(N, root);\n if( P.right == N ) P.right = N.left;\n else P.left = N.left;\n }\n }else if( N.left == null ){\n if( N == root ){\n root = N.right;\n }else{\n P = findParent(N, root);\n if( P.right == N ) P.right = N.right;\n else P.left = N.right;\n }\n }else{ // N.left != null && N.right != null\n S = findLeftmost(N.right);\n N.item.key = S.item.key;\n N.item.value = S.item.value;\n P = findParent(S, N);\n if( P.right == S ) P.right = S.right;\n else P.left = S.right; \n }\n numItems--;\n }", "public boolean put(int key, String value) {\n\t\t//YOUR CODE HERE\n\t\tif(root == null) {\n\t\t\tLeafNode leaf = new LeafNode(key, value);\n\t\t\troot = leaf;\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\tPair pair = add(key, value, this.root);\n\t\t\tif(pair != null) {\n\t\t\t\tInternalNode node = new InternalNode();\n\t\t\t\tnode.size = 1;\n\t\t\t\tnode.children[0] = root;\n\t\t\t\tnode.keys[1] = pair.newKey;\n\t\t\t\tnode.children[1] = pair.rightChild;\n\t\t\t\tthis.root = node;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "private DefaultMutableTreeNode buildSortedTree(DefaultMutableTreeNode oldNode, \n DefaultMutableTreeNode newNode) {\n \n List<DefaultMutableTreeNode> children = new ArrayList();\n Enumeration e = oldNode.children();\n while(e.hasMoreElements()) {\n DefaultMutableTreeNode child = (DefaultMutableTreeNode)e.nextElement();\n children.add(child);\n }\n \n // sort everything except the first level\n if (!(oldNode.getUserObject() instanceof RootNode)) {\n Collections.sort(children, new Comparator<DefaultMutableTreeNode>() {\n public int compare(DefaultMutableTreeNode node1, DefaultMutableTreeNode node2) {\n return node1.getUserObject().toString().compareTo(\n node2.getUserObject().toString());\n }\n });\n }\n \n for(DefaultMutableTreeNode oldChild : children) {\n DefaultMutableTreeNode newChild = new DefaultMutableTreeNode(oldChild.getUserObject());\n newNode.add(newChild);\n buildSortedTree(oldChild, newChild);\n }\n \n return newNode;\n }", "static void rBSTInsert(Node tmp,int key)\n {\n // if the new value is greater than root then it will be inserted to the right subtree\n if(tmp.val<key)\n {\n if(tmp.right==null)\n {\n tmp.right=new Node(key);\n \n \n return;\n }\n \n else rBSTInsert(tmp.right,key);\n \n \n }\n // otherwise the new value will be inserted to the left subtree\n else\n {\n if(tmp.left==null)\n {\n tmp.left=new Node(key);\n \n return;\n }\n \n rBSTInsert(tmp.left,key);\n }\n return;\n }", "public void insert(int key) {\n // Implement insert() using the non-recursive version\n // This function should call findClosestLeaf()\n\n if(root!=null){ // มี node ใน tree\n Node n = findClosestLeaf(key); //หา Leaf n ที่ใกล้ค่าที่ใส่มากที่สุด โดย call findClosestLeaf()\n\n\n if(n.key!= key){ // ค่าที่จะใส่ต้องไม่มีใน tree\n if(key > n.key){ // ค่าที่จะใส่มากกว่า Leaf n ให้ใส่เป็นลูฏของ Leaf ด้านขวา\n n.right = new Node(key);\n n.right.parent = n;\n }\n\n else { // ค่าที่จะใส่น้อยกว่า Leaf n ให้ใส่เป็นลูฏของ Leaf ด้านซ้าย\n n.left = new Node(key);\n n.left.parent = n;\n }\n }\n else\n {\n return;\n }\n\n }else{ // ไม่มี node ใน tree ดังนั้นค่าที่ใส่เข้ามาจะกลายเป็ฯ root\n root = new Node(key);\n }\n }", "public NodeKey createNodeKey();", "void preOrder(Node node) \n { \n if (node != null) \n { \n System.out.print(node.key + \" \"); \n preOrder(node.left); \n preOrder(node.right); \n } \n }", "private void rehash() {\n Entry<K, V>[] old = table;\n allocate((int) (old.length * INC));\n\n for (int i = 0; i < old.length; ++i) {\n if (old[i] != null) {\n for (Node<Pair<K, V>> j = old[i].list.getHead().getNext();\n j != old[i].list.getTail();\n j = j.getNext()) {\n put(j.getData().key, j.getData().value);\n }\n\n }\n }\n }", "private void insertarKey(BTreeNode<T> root, T t) {\n BTreeNode<T> currentNode = root;\n\n if (currentNode.isLeaf()) {\n if (!itsRepeated(currentNode, (I)t.getId())) {\n insercionOrdenada(currentNode, t);\n } else {\n System.out.println(\"Dato repetido\");\n }\n } else {\n int indexChild = findChildOrIndex(currentNode, (I)t.getId());\n if (!itsRepeated(currentNode.getChild(indexChild), (I)t.getId())) {\n BTreeNode<T> child = currentNode.getChild(indexChild);\n if (child.getNumKeys() == 4 && child.isLeaf()) {\n insercionOrdenada(currentNode.getChild(indexChild), t);\n splitChild(currentNode, currentNode.getChild(indexChild), indexChild);\n } else {\n insertarKey(root.getChild(indexChild), t);\n }\n\n if (currentNode.getNumKeys() == 5) {\n checkMaxKeys(currentNode);\n }\n } else {\n System.out.println(\"Dato repetido\");\n }\n }\n }", "public boolean Insert(int v_key){\n\tTree new_node ;\n\tboolean ntb ;\n\tboolean cont ;\n\tint key_aux ;\n\tTree current_node ;\n\n\tnew_node = new Tree();\n\tntb = new_node.Init(v_key) ;\n\tcurrent_node = this ;\n\tcont = true ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux){\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse {\n\t\t cont = false ;\n\t\t ntb = current_node.SetHas_Left(true);\n\t\t ntb = current_node.SetLeft(new_node);\n\t\t}\n\t }\n\t else{\n\t\tif (current_node.GetHas_Right())\n\t\t current_node = current_node.GetRight() ;\n\t\telse {\n\t\t cont = false ;\n\t\t ntb = current_node.SetHas_Right(true);\n\t\t ntb = current_node.SetRight(new_node);\n\t\t}\n\t }\n\t}\n\treturn true ;\n }", "public boolean Insert(int v_key){\n\tTree new_node ;\n\tboolean ntb ;\n\tboolean cont ;\n\tint key_aux ;\n\tTree current_node ;\n\n\tnew_node = new Tree();\n\tntb = new_node.Init(v_key) ;\n\tcurrent_node = this ;\n\tcont = true ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux){\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse {\n\t\t cont = false ;\n\t\t ntb = current_node.SetHas_Left(true);\n\t\t ntb = current_node.SetLeft(new_node);\n\t\t}\n\t }\n\t else{\n\t\tif (current_node.GetHas_Right())\n\t\t current_node = current_node.GetRight() ;\n\t\telse {\n\t\t cont = false ;\n\t\t ntb = current_node.SetHas_Right(true);\n\t\t ntb = current_node.SetRight(new_node);\n\t\t}\n\t }\n\t}\n\treturn true ;\n }", "public boolean Insert(int v_key){\n\tTree new_node ;\n\tboolean ntb ;\n\tboolean cont ;\n\tint key_aux ;\n\tTree current_node ;\n\n\tnew_node = new Tree();\n\tntb = new_node.Init(v_key) ;\n\tcurrent_node = this ;\n\tcont = true ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux){\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse {\n\t\t cont = false ;\n\t\t ntb = current_node.SetHas_Left(true);\n\t\t ntb = current_node.SetLeft(new_node);\n\t\t}\n\t }\n\t else{\n\t\tif (current_node.GetHas_Right())\n\t\t current_node = current_node.GetRight() ;\n\t\telse {\n\t\t cont = false ;\n\t\t ntb = current_node.SetHas_Right(true);\n\t\t ntb = current_node.SetRight(new_node);\n\t\t}\n\t }\n\t}\n\treturn true ;\n }", "public boolean Insert(int v_key){\n\tTree new_node ;\n\tboolean ntb ;\n\tboolean cont ;\n\tint key_aux ;\n\tTree current_node ;\n\n\tnew_node = new Tree();\n\tntb = new_node.Init(v_key) ;\n\tcurrent_node = this ;\n\tcont = true ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux){\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse {\n\t\t cont = false ;\n\t\t ntb = current_node.SetHas_Left(true);\n\t\t ntb = current_node.SetLeft(new_node);\n\t\t}\n\t }\n\t else{\n\t\tif (current_node.GetHas_Right())\n\t\t current_node = current_node.GetRight() ;\n\t\telse {\n\t\t cont = false ;\n\t\t ntb = current_node.SetHas_Right(true);\n\t\t ntb = current_node.SetRight(new_node);\n\t\t}\n\t }\n\t}\n\treturn true ;\n }", "public boolean Insert(int v_key){\n\tTree new_node ;\n\tboolean ntb ;\n\tboolean cont ;\n\tint key_aux ;\n\tTree current_node ;\n\n\tnew_node = new Tree();\n\tntb = new_node.Init(v_key) ;\n\tcurrent_node = this ;\n\tcont = true ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux){\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse {\n\t\t cont = false ;\n\t\t ntb = current_node.SetHas_Left(true);\n\t\t ntb = current_node.SetLeft(new_node);\n\t\t}\n\t }\n\t else{\n\t\tif (current_node.GetHas_Right())\n\t\t current_node = current_node.GetRight() ;\n\t\telse {\n\t\t cont = false ;\n\t\t ntb = current_node.SetHas_Right(true);\n\t\t ntb = current_node.SetRight(new_node);\n\t\t}\n\t }\n\t}\n\treturn true ;\n }", "public boolean Insert(int v_key){\n\tTree new_node ;\n\tboolean ntb ;\n\tboolean cont ;\n\tint key_aux ;\n\tTree current_node ;\n\n\tnew_node = new Tree();\n\tntb = new_node.Init(v_key) ;\n\tcurrent_node = this ;\n\tcont = true ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux){\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse {\n\t\t cont = false ;\n\t\t ntb = current_node.SetHas_Left(true);\n\t\t ntb = current_node.SetLeft(new_node);\n\t\t}\n\t }\n\t else{\n\t\tif (current_node.GetHas_Right())\n\t\t current_node = current_node.GetRight() ;\n\t\telse {\n\t\t cont = false ;\n\t\t ntb = current_node.SetHas_Right(true);\n\t\t ntb = current_node.SetRight(new_node);\n\t\t}\n\t }\n\t}\n\treturn true ;\n }", "public boolean Insert(int v_key){\n\tTree new_node ;\n\tboolean ntb ;\n\tboolean cont ;\n\tint key_aux ;\n\tTree current_node ;\n\n\tnew_node = new Tree();\n\tntb = new_node.Init(v_key) ;\n\tcurrent_node = this ;\n\tcont = true ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux){\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse {\n\t\t cont = false ;\n\t\t ntb = current_node.SetHas_Left(true);\n\t\t ntb = current_node.SetLeft(new_node);\n\t\t}\n\t }\n\t else{\n\t\tif (current_node.GetHas_Right())\n\t\t current_node = current_node.GetRight() ;\n\t\telse {\n\t\t cont = false ;\n\t\t ntb = current_node.SetHas_Right(true);\n\t\t ntb = current_node.SetRight(new_node);\n\t\t}\n\t }\n\t}\n\treturn true ;\n }", "public boolean Insert(int v_key){\n\tTree new_node ;\n\tboolean ntb ;\n\tboolean cont ;\n\tint key_aux ;\n\tTree current_node ;\n\n\tnew_node = new Tree();\n\tntb = new_node.Init(v_key) ;\n\tcurrent_node = this ;\n\tcont = true ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux){\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse {\n\t\t cont = false ;\n\t\t ntb = current_node.SetHas_Left(true);\n\t\t ntb = current_node.SetLeft(new_node);\n\t\t}\n\t }\n\t else{\n\t\tif (current_node.GetHas_Right())\n\t\t current_node = current_node.GetRight() ;\n\t\telse {\n\t\t cont = false ;\n\t\t ntb = current_node.SetHas_Right(true);\n\t\t ntb = current_node.SetRight(new_node);\n\t\t}\n\t }\n\t}\n\treturn true ;\n }", "public boolean Insert(int v_key){\n\tTree new_node ;\n\tboolean ntb ;\n\tboolean cont ;\n\tint key_aux ;\n\tTree current_node ;\n\n\tnew_node = new Tree();\n\tntb = new_node.Init(v_key) ;\n\tcurrent_node = this ;\n\tcont = true ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux){\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse {\n\t\t cont = false ;\n\t\t ntb = current_node.SetHas_Left(true);\n\t\t ntb = current_node.SetLeft(new_node);\n\t\t}\n\t }\n\t else{\n\t\tif (current_node.GetHas_Right())\n\t\t current_node = current_node.GetRight() ;\n\t\telse {\n\t\t cont = false ;\n\t\t ntb = current_node.SetHas_Right(true);\n\t\t ntb = current_node.SetRight(new_node);\n\t\t}\n\t }\n\t}\n\treturn true ;\n }", "public boolean Insert(int v_key){\n\tTree new_node ;\n\tboolean ntb ;\n\tboolean cont ;\n\tint key_aux ;\n\tTree current_node ;\n\n\tnew_node = new Tree();\n\tntb = new_node.Init(v_key) ;\n\tcurrent_node = this ;\n\tcont = true ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux){\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse {\n\t\t cont = false ;\n\t\t ntb = current_node.SetHas_Left(true);\n\t\t ntb = current_node.SetLeft(new_node);\n\t\t}\n\t }\n\t else{\n\t\tif (current_node.GetHas_Right())\n\t\t current_node = current_node.GetRight() ;\n\t\telse {\n\t\t cont = false ;\n\t\t ntb = current_node.SetHas_Right(true);\n\t\t ntb = current_node.SetRight(new_node);\n\t\t}\n\t }\n\t}\n\treturn true ;\n }", "public boolean Insert(int v_key){\n\tTree new_node ;\n\tboolean ntb ;\n\tboolean cont ;\n\tint key_aux ;\n\tTree current_node ;\n\n\tnew_node = new Tree();\n\tntb = new_node.Init(v_key) ;\n\tcurrent_node = this ;\n\tcont = true ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux){\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse {\n\t\t cont = false ;\n\t\t ntb = current_node.SetHas_Left(true);\n\t\t ntb = current_node.SetLeft(new_node);\n\t\t}\n\t }\n\t else{\n\t\tif (current_node.GetHas_Right())\n\t\t current_node = current_node.GetRight() ;\n\t\telse {\n\t\t cont = false ;\n\t\t ntb = current_node.SetHas_Right(true);\n\t\t ntb = current_node.SetRight(new_node);\n\t\t}\n\t }\n\t}\n\treturn true ;\n }", "public boolean Insert(int v_key){\n\tTree new_node ;\n\tboolean ntb ;\n\tboolean cont ;\n\tint key_aux ;\n\tTree current_node ;\n\n\tnew_node = new Tree();\n\tntb = new_node.Init(v_key) ;\n\tcurrent_node = this ;\n\tcont = true ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux){\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse {\n\t\t cont = false ;\n\t\t ntb = current_node.SetHas_Left(true);\n\t\t ntb = current_node.SetLeft(new_node);\n\t\t}\n\t }\n\t else{\n\t\tif (current_node.GetHas_Right())\n\t\t current_node = current_node.GetRight() ;\n\t\telse {\n\t\t cont = false ;\n\t\t ntb = current_node.SetHas_Right(true);\n\t\t ntb = current_node.SetRight(new_node);\n\t\t}\n\t }\n\t}\n\treturn true ;\n }", "public boolean Insert(int v_key){\n\tTree new_node ;\n\tboolean ntb ;\n\tboolean cont ;\n\tint key_aux ;\n\tTree current_node ;\n\n\tnew_node = new Tree();\n\tntb = new_node.Init(v_key) ;\n\tcurrent_node = this ;\n\tcont = true ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux){\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse {\n\t\t cont = false ;\n\t\t ntb = current_node.SetHas_Left(true);\n\t\t ntb = current_node.SetLeft(new_node);\n\t\t}\n\t }\n\t else{\n\t\tif (current_node.GetHas_Right())\n\t\t current_node = current_node.GetRight() ;\n\t\telse {\n\t\t cont = false ;\n\t\t ntb = current_node.SetHas_Right(true);\n\t\t ntb = current_node.SetRight(new_node);\n\t\t}\n\t }\n\t}\n\treturn true ;\n }", "public boolean Insert(int v_key){\n\tTree new_node ;\n\tboolean ntb ;\n\tboolean cont ;\n\tint key_aux ;\n\tTree current_node ;\n\n\tnew_node = new Tree();\n\tntb = new_node.Init(v_key) ;\n\tcurrent_node = this ;\n\tcont = true ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux){\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse {\n\t\t cont = false ;\n\t\t ntb = current_node.SetHas_Left(true);\n\t\t ntb = current_node.SetLeft(new_node);\n\t\t}\n\t }\n\t else{\n\t\tif (current_node.GetHas_Right())\n\t\t current_node = current_node.GetRight() ;\n\t\telse {\n\t\t cont = false ;\n\t\t ntb = current_node.SetHas_Right(true);\n\t\t ntb = current_node.SetRight(new_node);\n\t\t}\n\t }\n\t}\n\treturn true ;\n }", "public boolean Insert(int v_key){\n\tTree new_node ;\n\tboolean ntb ;\n\tboolean cont ;\n\tint key_aux ;\n\tTree current_node ;\n\n\tnew_node = new Tree();\n\tntb = new_node.Init(v_key) ;\n\tcurrent_node = this ;\n\tcont = true ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux){\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse {\n\t\t cont = false ;\n\t\t ntb = current_node.SetHas_Left(true);\n\t\t ntb = current_node.SetLeft(new_node);\n\t\t}\n\t }\n\t else{\n\t\tif (current_node.GetHas_Right())\n\t\t current_node = current_node.GetRight() ;\n\t\telse {\n\t\t cont = false ;\n\t\t ntb = current_node.SetHas_Right(true);\n\t\t ntb = current_node.SetRight(new_node);\n\t\t}\n\t }\n\t}\n\treturn true ;\n }", "public boolean Insert(int v_key){\n\tTree new_node ;\n\tboolean ntb ;\n\tboolean cont ;\n\tint key_aux ;\n\tTree current_node ;\n\n\tnew_node = new Tree();\n\tntb = new_node.Init(v_key) ;\n\tcurrent_node = this ;\n\tcont = true ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux){\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse {\n\t\t cont = false ;\n\t\t ntb = current_node.SetHas_Left(true);\n\t\t ntb = current_node.SetLeft(new_node);\n\t\t}\n\t }\n\t else{\n\t\tif (current_node.GetHas_Right())\n\t\t current_node = current_node.GetRight() ;\n\t\telse {\n\t\t cont = false ;\n\t\t ntb = current_node.SetHas_Right(true);\n\t\t ntb = current_node.SetRight(new_node);\n\t\t}\n\t }\n\t}\n\treturn true ;\n }", "public boolean Insert(int v_key){\n\tTree new_node ;\n\tboolean ntb ;\n\tboolean cont ;\n\tint key_aux ;\n\tTree current_node ;\n\n\tnew_node = new Tree();\n\tntb = new_node.Init(v_key) ;\n\tcurrent_node = this ;\n\tcont = true ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux){\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse {\n\t\t cont = false ;\n\t\t ntb = current_node.SetHas_Left(true);\n\t\t ntb = current_node.SetLeft(new_node);\n\t\t}\n\t }\n\t else{\n\t\tif (current_node.GetHas_Right())\n\t\t current_node = current_node.GetRight() ;\n\t\telse {\n\t\t cont = false ;\n\t\t ntb = current_node.SetHas_Right(true);\n\t\t ntb = current_node.SetRight(new_node);\n\t\t}\n\t }\n\t}\n\treturn true ;\n }" ]
[ "0.66113704", "0.649757", "0.6375237", "0.62670493", "0.6184537", "0.613751", "0.61107004", "0.6084023", "0.6057443", "0.6057036", "0.6016306", "0.5994365", "0.5977616", "0.5915628", "0.5888525", "0.5878909", "0.5866646", "0.58385134", "0.58205414", "0.580565", "0.5752016", "0.57360244", "0.57299304", "0.57275987", "0.56829447", "0.56716084", "0.566399", "0.5657875", "0.56518507", "0.5619279", "0.56064725", "0.56029755", "0.55982846", "0.559674", "0.55736834", "0.55469424", "0.5545555", "0.5538077", "0.552762", "0.5521115", "0.5518904", "0.55141395", "0.55066407", "0.5493668", "0.54860234", "0.54829586", "0.54772604", "0.5473527", "0.5473427", "0.54644734", "0.54536146", "0.5450408", "0.54455894", "0.54371643", "0.5428238", "0.54194516", "0.5410801", "0.54092926", "0.53987265", "0.5389794", "0.53874344", "0.53864264", "0.5369683", "0.5366798", "0.53665507", "0.53621525", "0.53614914", "0.53500414", "0.53456235", "0.5340048", "0.5335176", "0.53331226", "0.53319544", "0.5330462", "0.5312237", "0.5309981", "0.5309084", "0.53087544", "0.53073484", "0.5304689", "0.5303207", "0.5301173", "0.5297325", "0.52884734", "0.52884734", "0.52884734", "0.52884734", "0.52884734", "0.52884734", "0.52884734", "0.52884734", "0.52884734", "0.52884734", "0.52884734", "0.52884734", "0.52884734", "0.52884734", "0.52884734", "0.52884734", "0.52884734" ]
0.7776848
0
Sort properties using a map of strategies.
protected void sortProperties(final AccommodationSearchRequestData accommodationSearchRequest, final AccommodationSearchResponseData accommodationSearchResponse) { if (StringUtils.isBlank(accommodationSearchRequest.getCriterion().getSort())) { getSortStrategyMap().get(TravelfacadesConstants.ACCOMMODATION_SEARCH_DEFAULT_SORT_KEY).sort (accommodationSearchResponse); } if (getSortStrategyMap().containsKey(accommodationSearchRequest.getCriterion().getSort())) { getSortStrategyMap().get(accommodationSearchRequest.getCriterion().getSort()).sort(accommodationSearchResponse); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sortElements(Comparator<TLProperty> comparator);", "@Required\n\tpublic void setSortStrategyMap(final Map<String, AccommodationOfferingSearchResponseSortStrategy> sortStrategyMap)\n\t{\n\t\tthis.sortStrategyMap = sortStrategyMap;\n\t}", "@Override\r\n\tpublic void setSortProperties(List<? extends ISortProperty> sortProperties) {\n\t\t\r\n\t}", "@Override\n\tpublic void setSorting(Object[] propertyIds, boolean[] ascending) {\n\t\t\n\t}", "public void sortCompetitors(){\n\t\t}", "protected Map<String, AccommodationOfferingSearchResponseSortStrategy> getSortStrategyMap()\n\t{\n\t\treturn sortStrategyMap;\n\t}", "private static Map<String, Method> sortAsDeclaredOrder(Map<String, Method> unordered_mp, Object obj)\n {\n Map<String, Method> map = new LinkedHashMap<>();\n\n for (Field field:obj.getClass().getDeclaredFields())\n {\n Method m = unordered_mp.get(field.getName());\n if (m != null)\n {\n map.put(field.getName(), m);\n }\n }\n\n return map;\n }", "protected List<Order> getOrdering(Path<?> t, CriteriaBuilder cb) {\r\n if (sortPropertyIds == null || sortPropertyIds.length == 0) {\r\n sortPropertyIds = nativeSortPropertyIds;\r\n sortPropertyAscendingStates = nativeSortPropertyAscendingStates;\r\n }\r\n \r\n ArrayList<Order> ordering = new ArrayList<Order>();\r\n \tif (sortPropertyIds == null || sortPropertyIds.length == 0) return ordering;\r\n \t\r\n\t\tfor (int curItem = 0; curItem < sortPropertyIds.length; curItem++ ) {\r\n\t \tfinal String id = (String)sortPropertyIds[curItem];\r\n\t\t\tif (sortPropertyAscendingStates[curItem]) {\r\n\t\t\t\tordering.add(cb.asc(t.get(id)));\r\n\t\t\t} else {\r\n\t\t\t\tordering.add(cb.desc(t.get(id)));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ordering;\r\n\t}", "public void sortProperties (ArrayList<Property> properties, String branchName) {\r\n\t\tsoldProperties.clear();\r\n\t\tnotSoldProperties.clear();\r\n\t\totherProperties.clear();\r\n \tint size = properties.size();\r\n \tfor (int i = 0; i < size; i++) {\r\n \t\tif (properties.get(i).getBranchName().equals(branchName)) {\r\n \t\t\tif (!properties.get(i).getSoldPrice().equals(\"\")) {\r\n \t\t\t\tsoldProperties.add(properties.get(i));\r\n \t\t\t}\r\n \t\t\telse {\r\n \t\t\t\tnotSoldProperties.add(properties.get(i));\r\n \t\t\t}\r\n \t\t}\r\n \t\telse {\r\n\t\t\t\totherProperties.add(properties.get(i));\r\n\t\t\t}\r\n \t}\r\n\t}", "private List<PricingRule> orderPricingRules(Set<PricingRule> pricingRules) {\n \tList<PricingRule> pricingRulesList = pricingRules.stream().collect(Collectors.toList());\n \tCollections.sort(pricingRulesList, new Comparator<PricingRule>() {\n\t\t\tpublic int compare(PricingRule o1, PricingRule o2) {\n\t\t\t\treturn ((o2.getClass().getAnnotation(PricingRuleOrder.class).value()) - (o1.getClass().getAnnotation(PricingRuleOrder.class).value()));\n\t\t\t}\n\t\t});\n\t\treturn pricingRulesList;\n }", "static List<AccessibleObject> orderFieldsAndMethodsByDependency(List<AccessibleObject> unorderedList, Map<String, AccessibleObject> propertiesMap) {\n Stack<AccessibleObject> stack = new Stack<AccessibleObject>();\n // the result list \n List<AccessibleObject> orderedList = new LinkedList<AccessibleObject>();\n // add the elements from the unordered list to the ordered list \n // any dependencies will be checked and added first, in recursive manner \n for (int i = 0; i < unorderedList.size(); i++) {\n AccessibleObject obj = unorderedList.get(i);\n addPropertyToDependencyList(orderedList, propertiesMap, stack, obj);\n }\n return orderedList;\n}", "public void sortKnowledgeBase()\n {\n int i;\n Random random;\n String aPredicate;\n StringTokenizer tokenizer;\n //------------\n random = new Random();\n i = 0;\n while (i < knowledgeBase.size())\n {\n aPredicate = knowledgeBase.get(i).commitments.get(0).predicate;\n tokenizer = new StringTokenizer(aPredicate,\"(), \");\n if(tokenizer.nextToken().equals(\"secuencia\"))\n knowledgeBase.get(i).priority = random.nextInt(100);\n //end if\n else\n knowledgeBase.get(i).priority = random.nextInt(10000);\n //end else\n i = i + 1;\n }//end while\n Collections.sort(knowledgeBase);\n }", "String convertToSortProperty(String sortParameter) throws ValidationFailureException;", "public static void main(String[] args) {\n\n List<String> animals = new ArrayList <String>();\n\n animals.add(\"Elephatn\");\n animals.add(\"snake\");\n animals.add(\"Lion\");\n animals.add(\"Mongoose\");\n animals.add(\"Cat\");\n\n\n\n// Collections.sort(animals, new StringLengthComparator());\n// Collections.sort(animals, new AlphabeticalComparator());\n Collections.sort(animals, new ReverseAlphabeticalComparator());\n for(String animal:animals){\n System.out.println(animal);\n }\n\n//////////////Sorting Numbers ///////////\n List<Integer> numbers = new ArrayList <Integer>();\n\n numbers.add(54);\n numbers.add(1);\n numbers.add(36);\n numbers.add(73);\n numbers.add(9);\n\n Collections.sort(numbers, new Comparator <Integer>() {\n @Override\n public int compare(Integer num1, Integer num2) {\n return num1.compareTo(num2);\n }\n });\n\n for(Integer number: numbers){\n System.out.println(number);\n }\n\n\n///////////////Sorting Arbitrary objects////////\n\n\n List<Person> people = new ArrayList <Person>();\n\n people.add(new Person(1,\"Joe\"));\n people.add(new Person(5,\"Harry\"));\n people.add(new Person(2,\"Hermoine\"));\n people.add(new Person(4,\"Muffet\"));\n\n// Sort in order of ID\n Collections.sort(people, new Comparator <Person>() {\n @Override\n public int compare(Person p1, Person p2) {\n\n if(p1.getId()>p2.getId()){\n return 1;\n }else if(p1.getId()<p2.getId()){\n return -1;\n }\n return 0;\n\n }\n });\n\n\n // Sort in order of Name\n Collections.sort(people, new Comparator <Person>() {\n @Override\n public int compare(Person p1, Person p2) {\n\n return p1.getName().compareTo(p2.getName());\n\n\n }\n });\n\n for(Person person: people){\n System.out.println(person);\n\n }\n\n }", "private static Map<String, Object> sortAsDeclaredOrder(Object obj, Map<String, Object> unordered_mp)\n {\n Map<String, Object> map = new LinkedHashMap<>();\n\n for (Field field:obj.getClass().getDeclaredFields())\n {\n Object m = unordered_mp.get(field.getName());\n if (m != null)\n {\n map.put(field.getName(), m);\n }\n }\n\n return map;\n }", "private static void DoOrderBy()\n\t{\n\t\tArrayList<Attribute> inAtts = new ArrayList<Attribute>();\n\t\tinAtts.add(new Attribute(\"Int\", \"n_n_nationkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"n_n_name\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"n_n_regionkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"n_n_comment\"));\n\n\t\tArrayList<Attribute> outAtts = new ArrayList<Attribute>();\n\t\toutAtts.add(new Attribute(\"Int\", \"att1\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att2\"));\n\t\toutAtts.add(new Attribute(\"Int\", \"att3\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att4\"));\n\n\t\t// These could be more complicated expressions than simple input columns\n\t\tMap<String, String> exprsToCompute = new HashMap<String, String>();\n\t\texprsToCompute.put(\"att1\", \"n_n_nationkey\");\n\t\texprsToCompute.put(\"att2\", \"n_n_name\");\n\t\texprsToCompute.put(\"att3\", \"n_n_regionkey\");\n\t\texprsToCompute.put(\"att4\", \"n_n_comment\");\n\t\t\n\t\t// Order by region key descending then nation name ascending\n\t\tArrayList<SortKeyExpression> sortingKeys = new ArrayList<SortKeyExpression>();\n\t\tsortingKeys.add(new SortKeyExpression(\"Int\", \"n_n_regionkey\", false));\n\t\tsortingKeys.add(new SortKeyExpression(\"Str\", \"n_n_name\", true));\n\t\t\n\t\t// run the selection operation\n\t\ttry\n\t\t{\n\t\t\tnew Order(inAtts, outAtts, exprsToCompute, sortingKeys, \"nation.tbl\", \"out.tbl\", \"g++\", \"cppDir/\");\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "public void sortProposals() {\n\n\t}", "public void sort() {\r\n // sort the process variables\r\n Arrays.sort(pvValues, categoryComparator);\r\n fireTableDataChanged();\r\n }", "private List<OrderDistance> sortOrdersByPriorities(List<OrderDistance> orderDistances) {\n\n /*Keeps orders and their priorities.\n * TreeMap keeps data in order using keys\n */\n\n Map<Integer, List<OrderDistance>> listMap = orderDistances.stream()\n .collect(groupingBy(order -> getPriority(order.getOrder()), TreeMap::new, mapping(Function.identity(), toList())));\n\n /*\n * There are three list which consists of vip,food and other\n * Here we are flatting them into single list\n */\n return listMap.values().stream().flatMap(Collection::stream).collect(toList());\n }", "private void sortByKeys(LazyMap<ProcessorDistributionKey, Collection<Geometry>> keyToGeoms,\n Collection<? extends Geometry> sortGeoms, Collection<Geometry> unprocessed)\n {\n final ProcessorDistributionKey hull = new ProcessorDistributionKey();\n for (final Geometry geom : sortGeoms)\n {\n sortByKeys(keyToGeoms, geom, unprocessed, hull);\n }\n }", "public void sort(){\n Collections.sort(list, new SortBySpecies());\n }", "public static void sortCompilationProposal(List<ICompletionProposal> prop){\r\n\t\tCollections.sort(prop,new Comparator<ICompletionProposal>(){\r\n\t\t\tpublic int compare(ICompletionProposal o1, ICompletionProposal o2){\r\n\t\t\t\treturn o1.getDisplayString().compareTo(o2.getDisplayString());\r\n\t\t\t}\r\n\t\t});\r\n\t}", "private static void sortMap(HashMap<Integer, Integer> map) {\n\t\t\n\t}", "public static void sortByPrice(List<Apartment> apartments) {\n Collections.sort(apartments, SORT_BY_PRICE);\n }", "public static void sortBeans(List<?> beanList, String propertyToSortWith) {\n\t\t// null check against the given bean List\n\t\tif (beanList != null)\n\t\t{\n\t\t\t// create a comparator\n\t\t\tComparator<Object> propertyToCompareComparator = new BeanComparator<Object>(propertyToSortWith);\n\t\t\t// sort the beans according to the given properties value\n\t\t\tCollections.sort(beanList, propertyToCompareComparator);\n\t\t}\n\t}", "private static void populateArtworkSorts() {\r\n if (artworkSorts.isEmpty()) {\r\n artworkSorts.add(SORT_FAV_ASC);\r\n artworkSorts.add(SORT_FAV_DESC);\r\n artworkSorts.add(SORT_NAME_ASC);\r\n artworkSorts.add(SORT_NAME_DESC);\r\n }\r\n }", "private void sort() {\n\t\tCollections.sort(this.entities, comparator);\n\t}", "private static final List<Fooable> sortFooables(\n \t\t\tMap<Fooable, Integer> fooPairs) {\n \t\t// Create a list of Map.Entries based on the input Map\n \t\tList<Map.Entry<Fooable, Integer>> pairList = new ArrayList<>();\n \t\tpairList.addAll(fooPairs.entrySet());\n \n \t\t// Sort the list of Map.Entries containing Fooables and Levenshtein\n \t\t// Distances\n \t\tCollections.sort(pairList,\n \t\t\t\tnew Comparator<Map.Entry<Fooable, Integer>>() {\n \t\t\t\t\t@Override\n \t\t\t\t\tpublic int compare(Entry<Fooable, Integer> o1,\n \t\t\t\t\t\t\tEntry<Fooable, Integer> o2) {\n \t\t\t\t\t\t// Initially sort by Levenshtein Distance\n \t\t\t\t\t\tif (o1.getValue() < o2.getValue())\n \t\t\t\t\t\t\treturn -1;\n \n \t\t\t\t\t\tif (o1.getValue() > o2.getValue())\n \t\t\t\t\t\t\treturn 1;\n \n \t\t\t\t\t\t// Fallback sorting on String comparison\n \t\t\t\t\t\treturn o1.getKey().getName()\n \t\t\t\t\t\t\t\t.compareToIgnoreCase(o2.getKey().getName());\n \t\t\t\t\t}\n \t\t\t\t});\n \n \t\t// Construct a sorted list of Fooables\n \t\tList<Fooable> sortedList = new ArrayList<>();\n \t\tfor (Map.Entry<Fooable, Integer> pair : pairList) {\n \t\t\tsortedList.add(pair.getKey());\n \t\t}\n \n \t\treturn sortedList;\n \t}", "public synchronized void sort()\n\t{\n\t\tCollections.sort(vars, tvComparator);\n\t}", "public static void sortByClass(List<Apartment> apartments) {\n Collections.sort(apartments, SORT_BY_CLASS);\n }", "@Override\n\t public int compare(Player p1, Player p2) {\n\t boolean desc = sortField.startsWith(\"-\");\n\t String fieldToUse = desc ? sortField.substring(1): sortField; \n\n\t try {\n\t String field1 = BeanUtils.getProperty(p1, fieldToUse);\n\t String field2 = BeanUtils.getProperty(p2, fieldToUse);\n\t return (desc) ? field2.compareTo(field1) : field1.compareTo(field2);\n\t } catch (IllegalAccessException | InvocationTargetException | NoSuchMethodException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t// Again just for test purposes. Since we are in the service layer \n\t\t\t\t\t\t// and beyond the API. We will throw a Business Logic Exception.\n\t\t\t\t\t\tthrow new BusinessLogicException(e.getMessage(), \n\t\t\t\t\t\t\t\tBusinessErrorCodeEnum.INTERNAL_PROCESSING_ERROR);\n\t\t\t\t\t}\n\t\t\t\t}", "Map<String, org.springframework.batch.item.database.Order> genBatchOrderByFromSort(TableFields tableFields, Sort sort);", "private List<Article> orderArticles(List<Article> things){\n\t\t Comparator<Article> comparatorPrizes = new Comparator<Article>() {\n\t public int compare(Article x, Article y) {\n\t return (int) (x.getPrize() - y.getPrize());\n\t }\n\t };\n\t Collections.sort(things,comparatorPrizes); \n\t Collections.reverse(things);\n\t return things;\n\t }", "private static void setSorted(JobConf conf) {\n conf.setBoolean(INPUT_SORT, true);\n }", "public static void sortByPlaceCount(List<Apartment> apartments) {\n Collections.sort(apartments, SORT_BY_PLACE_COUNT);\n }", "private void sortAddsAndRemoves(Collection<? extends Geometry> adds, Collection<? extends Geometry> removes,\n LazyMap<ProcessorDistributionKey, Collection<Geometry>> addKeyToGeoms,\n LazyMap<ProcessorDistributionKey, Collection<Geometry>> removeKeyToGeoms)\n {\n myUnprocessedGeometryLock.lock();\n try\n {\n sortByKeys(addKeyToGeoms, adds, myUnprocessedAdds);\n sortByKeys(removeKeyToGeoms, removes, null);\n }\n finally\n {\n myUnprocessedGeometryLock.unlock();\n }\n }", "public void step3(){\n\n Collections.sort(names,(String a, String b) -> a.compareTo(b));\n }", "public void sort() {\n Collections.sort(jumpers, new SortJumperByPoints()); \n }", "public static void main(String[] args) {\n\t\tList<String> animal = new ArrayList<String>();\n\n\t\tanimal.add(\"Cat\");\n\t\tanimal.add(\"Mouse\");\n\t\tanimal.add(\"Lion\");\n\t\tanimal.add(\"Zeebra\");\n\t\tanimal.add(\"Bear\");\n\t\tanimal.add(\"Deer\");\n\n\t\t// Collections.sort(animal,new StringLengthComparator());\n\n\t\tCollections.sort(animal, new ReverseAlphabeticalComparator());\n\t\tfor (String animal1 : animal) {\n\n\t\t\tSystem.out.println(animal1);\n\t\t}\n\n\t\t/////////////////////////////// Sorting Numbers ////////////////////////////////\n\t\tList<Integer> numbers = new ArrayList<Integer>();\n\n\t\tnumbers.add(5);\n\t\tnumbers.add(31);\n\t\tnumbers.add(16);\n\t\tnumbers.add(605);\n\t\tnumbers.add(15);\n\n\t\tCollections.sort(numbers, new Comparator<Integer>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(Integer num1, Integer num2) {\n\n\t\t\t\treturn -num1.compareTo(num2);\n\t\t\t}\n\n\t\t});\n\n\t\tfor (Integer num1 : numbers) {\n\n\t\t\tSystem.out.println(num1);\n\t\t}\n\t\t///////////////////////////// Sorting Arbitrary Objects ////////////////////////////\n\n\t\tList<Person> people = new ArrayList<Person>();\n\n\t\tpeople.add(new Person(3, \"Ajeer\"));\n\t\tpeople.add(new Person(1, \"Sudeer\"));\n\t\tpeople.add(new Person(2, \"Sureash\"));\n\t\tpeople.add(new Person(4, \"Sam\"));\n\t\t\n\t\t// Sort in Order of ID\n\t\tCollections.sort(people, new Comparator<Person>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(Person p1, Person p2) {\n\t\t\t\tif (p1.getId() > p2.getId()) {\n\t\t\t\t\treturn 1;\n\t\t\t\t}\n\t\t\t\telse if (p1.getId()< p2.getId()) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t});\n\t\tfor (Person person1 : people) {\n\n\t\t\tSystem.out.println(person1);\n\t\t}\n\t\tSystem.out.println(\"\\n\");\n\t\t// Sort In Order of NAME....\n\t\tCollections.sort(people, new Comparator<Person>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(Person p1, Person p2) {\n\t\t\t\n\t\t\t\treturn p1.getName().compareTo(p2.getName());\n\t\t\t}\n\t\t});\n\t\tfor (Person person1 : people) {\n\n\t\t\tSystem.out.println(person1);\n\t\t}\n\t}", "public abstract void setSortKeys(List<? extends SortKey> keys);", "PriorityQueue<Ride> orderRidesByPriceAscending(Map<String, Ride> rides){\n return new PriorityQueue<>(rides.values());\n }", "private Map<String, Object> sortMap(Map<String, Object> map)\n {\n return new TreeMap<>(map);\n }", "Map<String, Double> sortByValues(Map<String, Double> map_to_sort){\n\tList<Map.Entry<String,Double>> ranklist = new LinkedList<Map.Entry<String,Double>>(map_to_sort.entrySet());\n\tCollections.sort(ranklist, new Comparator<Map.Entry<String, Double>>(){\n\t\tpublic int compare(Map.Entry<String,Double> o1, Map.Entry<String,Double> o2){\n\t\t\treturn o2.getValue().compareTo((double)o1.getValue() );\n\t\t}\n\t});\n\t\n\tMap<String, Double> sortedRank = new LinkedHashMap<String,Double>();\n\tfor(Map.Entry<String, Double> rank : ranklist){\n\t\tsortedRank.put(rank.getKey(), rank.getValue());\t\t\t\n\t}\n\t\n\treturn sortedRank;\n\t}", "public void setSortState(final Object[] sortPropertyIds,\r\n\t\t\tfinal boolean[] sortPropertyAscendingStates) {\r\n\t\tthis.sortPropertyIds = sortPropertyIds;\r\n\t\tthis.sortPropertyAscendingStates = sortPropertyAscendingStates;\r\n\t}", "private List<Criterion> _sortCriterionList()\n {\n Collections.sort(_criterionList, _groupNameComparator);\n Collections.sort(_criterionList, _fieldOrderComparator);\n for(int count = 0 ; count < _criterionList.size() ; count++)\n {\n ((DemoAttributeCriterion)_criterionList.get(count)).setOrderDirty(false);\n }\n return _criterionList;\n }", "private static void SortHash(HashMap<String,ArrayList<input>> hashMap,Distribution list)\n\t{\n\t\tCollections.sort(list.First, new Comparator<input>() {\n\t\t public int compare(input one, input other) {\n\t\t \tif(one.sum>other.sum)\n\t\t \t{\n\t\t \t\treturn 1;\n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\treturn -1;\n\t\t \t}\n\t\t }\n\t\t}); \n\t\tCollections.sort(list.Second, new Comparator<input>() {\n\t\t public int compare(input one, input other) {\n\t\t \tif(one.sum>other.sum)\n\t\t \t{\n\t\t \t\treturn 1;\n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\treturn -1;\n\t\t \t}\n\t\t }\n\t\t}); \n\t\tCollections.sort(list.Third, new Comparator<input>() {\n\t\t public int compare(input one, input other) {\n\t\t \tif(one.sum>other.sum)\n\t\t \t{\n\t\t \t\treturn 1;\n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\treturn -1;\n\t\t \t}\n\t\t }\n\t\t}); \n\t\tCollections.sort(list.Fourth, new Comparator<input>() {\n\t\t public int compare(input one, input other) {\n\t\t \tif(one.sum>other.sum)\n\t\t \t{\n\t\t \t\treturn 1;\n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\treturn -1;\n\t\t \t}\n\t\t }\n\t\t}); \n\t\tCollections.sort(list.Fifth, new Comparator<input>() {\n\t\t public int compare(input one, input other) {\n\t\t \tif(one.sum>other.sum)\n\t\t \t{\n\t\t \t\treturn 1;\n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\treturn -1;\n\t\t \t}\n\t\t }\n\t\t}); \n\t\tCollections.reverse(list.First);\n\t\tCollections.reverse(list.Second);\n\t\tCollections.reverse(list.Third);\n\t\tCollections.reverse(list.Fourth);\n\t\tCollections.reverse(list.Fifth);\n\t\tputInHashMap(hashMap,list);\n\t}", "public static boolean testSort() {\r\n Manager inst;\r\n try {\r\n inst = new PokemonTable();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n return false;\r\n }\r\n LinkedList<Pokemon> list;\r\n list = inst.sortByAttack(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getAttack() < list.get(i).getAttack()) {\r\n System.out.println(\"attack sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByAttack(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getAttack() > list.get(i).getAttack()) {\r\n System.out.println(\"attack sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByDefense(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getDefense() < list.get(i).getDefense()) {\r\n System.out.println(\"defense sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByDefense(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getDefense() > list.get(i).getDefense()) {\r\n System.out.println(\"defense sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByFavorite(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (!list.get(i - 1).getFavorite() && list.get(i).getFavorite()) {\r\n System.out.println(\"favorite sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByFavorite(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getFavorite() && !list.get(i).getFavorite()) {\r\n System.out.println(\"favorite sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByHp(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getHp() < list.get(i).getHp()) {\r\n System.out.println(\"hp sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByHp(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getHp() > list.get(i).getHp()) {\r\n System.out.println(\"hp sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByLegendary(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (!list.get(i - 1).isLegendary() && list.get(i).isLegendary()) {\r\n System.out.println(\"legendary sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByLegendary(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).isLegendary() && !list.get(i).isLegendary()) {\r\n System.out.println(\"legendary sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByName(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getName().compareTo(list.get(i).getName()) > 0) {\r\n System.out.println(\"name sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByName(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getName().compareTo(list.get(i).getName()) < 0) {\r\n System.out.println(\"name sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpAttack(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpAttack() < list.get(i).getSpAttack()) {\r\n System.out.println(\"spAttack sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpAttack(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpAttack() > list.get(i).getSpAttack()) {\r\n System.out.println(\"spAttack sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpDefense(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpDefense() < list.get(i).getSpDefense()) {\r\n System.out.println(\"spDefense sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpDefense(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpDefense() > list.get(i).getSpDefense()) {\r\n System.out.println(\"spDefense sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpeed(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpeed() < list.get(i).getSpeed()) {\r\n System.out.println(\"speed sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpeed(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpeed() > list.get(i).getSpeed()) {\r\n System.out.println(\"speed sort\");\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "public void sort () {\n\t\t\n\t\t// Clear iterator\n\t\titer = null;\n\t\t\n\t\tCollections.sort(this.pathObjects, new Comparator<PathObject>() {\n\t\t @Override\n\t\t public int compare(PathObject lhs, PathObject rhs) {\n\t\t // -1 - less than, 1 - greater than, 0 - equal, all inversed for descending\n\t\t return Double.compare(lhs.getClassProbability(), rhs.getClassProbability()); // Use double compare to safely handle NaN and Infinity\n\t\t }\n\t\t});\n\t\t\n\t\titer = this.pathObjects.iterator();\n\t}", "void sort(OrderBy orderBy);", "Report sortGoods(Map<Goods, Integer> goodsForSorting, String storeKeeperName) throws StoreKeeperWorkException;", "public StatementBuilder asc(String... properties) {\n for (String p : properties) {\n order(Order.asc(p));\n }\n return this;\n }", "void updateSortingComparators(Comparator<ReadOnlyEntry> eventComparator,\n Comparator<ReadOnlyEntry> deadlineComparator,\n Comparator<ReadOnlyEntry> floatingTaskComparator);", "public void sort() {\n if (sorter != null)\n sort(sorter);\n }", "public interface SortType {\n int ASC=1;\n int DESC=-1;\n int INFO =3;\n int POINT=4;\n int ACTIVE=5;\n}", "public void sort(List<Product> pdts, final SortMethod method) {\n class ProductComparator implements Comparator<Product> {\n @Override\n public int compare(Product o1, Product o2) {\n if(method == SortMethod.BYTITLE) {\n return o1.title.compareTo(o2.title);\n } else {\n if(o1.price == o2.price) return 0;\n else if(o1.price < o2.price) return -1;\n else return 1;\n }\n }\n }\n Collections.sort(pdts, new ProductComparator());\n }", "private HashMap<String, Double> sortByValues(HashMap<String, Double> map) {\n List<Map.Entry<String, Double>> list =\n new LinkedList<>(map.entrySet());\n\n Collections.sort(list, new Comparator<Map.Entry<String, Double>>() {\n @Override\n public int compare(Map.Entry<String, Double> o1, Map.Entry<String, Double> o2) {\n return (o1.getValue()).compareTo(o2.getValue());\n }\n });\n\n HashMap<String, Double> sortedHashMap = new LinkedHashMap<>();\n for (Map.Entry<String, Double> item : list) {\n sortedHashMap.put(item.getKey(), item.getValue());\n }\n return sortedHashMap;\n }", "private void sortPlayers(List<Player> players, String sortField) {\n\t LOG.info(\"sortPlayers=(players=\" + players + \",sortField=\" + sortField);\n\t if (sortField != null && !sortField.equals(\"\")) {\n\t Comparator<Player> comp = new Comparator<Player>(){\n\t @Override\n\t public int compare(Player p1, Player p2) {\n\t // Descending if it begins with a -\n\t boolean desc = sortField.startsWith(\"-\");\n\t String fieldToUse = desc ? sortField.substring(1): sortField; \n\n\t try {\n\t String field1 = BeanUtils.getProperty(p1, fieldToUse);\n\t String field2 = BeanUtils.getProperty(p2, fieldToUse);\n\t return (desc) ? field2.compareTo(field1) : field1.compareTo(field2);\n\t } catch (IllegalAccessException | InvocationTargetException | NoSuchMethodException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t// Again just for test purposes. Since we are in the service layer \n\t\t\t\t\t\t// and beyond the API. We will throw a Business Logic Exception.\n\t\t\t\t\t\tthrow new BusinessLogicException(e.getMessage(), \n\t\t\t\t\t\t\t\tBusinessErrorCodeEnum.INTERNAL_PROCESSING_ERROR);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t};\n\t\t\tCollections.sort(players, comp);\n\t\t}\n\t}", "Comparator<T> sortBy();", "public String sortBy();", "public static void doSort ( RunData data)\n\t{\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ());\n\n\t\t//get the ParameterParser from RunData\n\t\tParameterParser params = data.getParameters ();\n\n\t\t// save the current selections\n\t\tSet selectedSet = new TreeSet();\n\t\tString[] selectedItems = data.getParameters ().getStrings (\"selectedMembers\");\n\t\tif(selectedItems != null)\n\t\t{\n\t\t\tselectedSet.addAll(Arrays.asList(selectedItems));\n\t\t}\n\t\tstate.setAttribute(STATE_LIST_SELECTIONS, selectedSet);\n\n\t\tString criteria = params.getString (\"criteria\");\n\n\t\tif (criteria.equals (\"title\"))\n\t\t{\n\t\t\tcriteria = ResourceProperties.PROP_DISPLAY_NAME;\n\t\t}\n\t\telse if (criteria.equals (\"size\"))\n\t\t{\n\t\t\tcriteria = ResourceProperties.PROP_CONTENT_LENGTH;\n\t\t}\n\t\telse if (criteria.equals (\"created by\"))\n\t\t{\n\t\t\tcriteria = ResourceProperties.PROP_CREATOR;\n\t\t}\n\t\telse if (criteria.equals (\"last modified\"))\n\t\t{\n\t\t\tcriteria = ResourceProperties.PROP_MODIFIED_DATE;\n\t\t}\n\t\telse if (criteria.equals(\"priority\") && ContentHostingService.isSortByPriorityEnabled())\n\t\t{\n\t\t\t// if error, use title sort\n\t\t\tcriteria = ResourceProperties.PROP_CONTENT_PRIORITY;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcriteria = ResourceProperties.PROP_DISPLAY_NAME;\n\t\t}\n\n\t\tString sortBy_attribute = STATE_SORT_BY;\n\t\tString sortAsc_attribute = STATE_SORT_ASC;\n\t\tString comparator_attribute = STATE_LIST_VIEW_SORT;\n\t\t\n\t\tif(state.getAttribute(STATE_MODE).equals(MODE_REORDER))\n\t\t{\n\t\t\tsortBy_attribute = STATE_REORDER_SORT_BY;\n\t\t\tsortAsc_attribute = STATE_REORDER_SORT_ASC;\n\t\t\tcomparator_attribute = STATE_REORDER_SORT;\n\t\t}\n\t\t// current sorting sequence\n\t\tString asc = NULL_STRING;\n\t\tif (!criteria.equals (state.getAttribute (sortBy_attribute)))\n\t\t{\n\t\t\tstate.setAttribute (sortBy_attribute, criteria);\n\t\t\tasc = Boolean.TRUE.toString();\n\t\t\tstate.setAttribute (sortAsc_attribute, asc);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// current sorting sequence\n\t\t\tasc = (String) state.getAttribute (sortAsc_attribute);\n\n\t\t\t//toggle between the ascending and descending sequence\n\t\t\tif (asc.equals (Boolean.TRUE.toString()))\n\t\t\t{\n\t\t\t\tasc = Boolean.FALSE.toString();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tasc = Boolean.TRUE.toString();\n\t\t\t}\n\t\t\tstate.setAttribute (sortAsc_attribute, asc);\n\t\t}\n\n\t\tif (state.getAttribute(STATE_MESSAGE) == null)\n\t\t{\n\t\t\tComparator comparator = ContentHostingService.newContentHostingComparator(criteria, Boolean.getBoolean(asc));\n\t\t\tstate.setAttribute(comparator_attribute, comparator);\n\t\t\t\n\t\t\t// sort sucessful\n\t\t\t// state.setAttribute (STATE_MODE, MODE_LIST);\n\n\t\t}\t// if-else\n\n\t}", "public void sort() {\r\n\t\tCollections.sort(parts);\r\n\t}", "SortComparator(Map<Integer, Integer> tFreqMap) { \n this.freqMap = tFreqMap; \n }", "private List<Pair<ActionCallConfig, List<ActionCallConfig>>> sortDependencyGraph(IdentityHashMap<ActionCallConfig, Set<ActionCallConfig>> dependencyGraph) {\n List<Pair<ActionCallConfig, List<ActionCallConfig>>> sorted = new ArrayList<>();\n dependencyGraph.forEach((call, deps) -> {\n ArrayList<ActionCallConfig> sortedDeps = new ArrayList<>(deps);\n sortedDeps.sort(Comparator.comparing(ActionCallConfig::getDataKey));\n sorted.add(Pair.of(call, sortedDeps));\n });\n sorted.sort(Comparator.comparing(p -> p.getLeft().getDataKey()));\n return sorted;\n }", "public Map<String, List<Product>> orderBySupplier(List<Product> productList){\n\n for (Product product:productList) {\n String key = product.getSupplier();\n orderedProducts.computeIfAbsent( key, k -> new ArrayList<>()).add(product);\n }\n return orderedProducts;\n }", "public List<String> prioritize(List<TestCase> tests, int typeOfTechnique) throws EmptySetOfTestCaseException{\n\t\tTechniqueCreator creator = new TechniqueCreator();\n\t\tTechnique technique = creator.create(typeOfTechnique);\n\t\treturn technique.prioritize(tests);\n\t}", "private static void sortingOptions(ArrayList<Person> p) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tArrayList<Person> personList = p;\n\t\tboolean again = true;\n\t\twhile (again) {\n\t\t\tagain = false;\n\t\t\tSystem.out.println(\"Ascending or descending?\\n\" + \"1: Ascending\\n\" + \"2: Descending\");\n\t\t\tint input = scan.nextInt();\n\n\t\t\tswitch (input) {\n\t\t\tcase 1:\n\t\t\t\tprintDataFormat(personList);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tCollections.reverse(personList);\n\t\t\t\tprintDataFormat(personList);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tagain = true;\n\t\t\t\tSystem.out.println(\"Enter either 1 or 2\");\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t}", "@Override\n public int compare(Map<String, Object> o1, Map<String, Object> o2) {\n if(!descflag){\n return String.valueOf(o2.get(orderField)).compareTo(String.valueOf(o1.get(orderField)));\n }else {\n return String.valueOf(o1.get(orderField)).compareTo(String.valueOf(o2.get(orderField)));\n }\n // return 0;//加一个默认返回\n }", "protected void assignItemPriorities(HashMap<String, String> itemPriorityMap, List<CompletionItem> completionItems) {\n completionItems.forEach(completionItem -> {\n if (itemPriorityMap.containsKey(completionItem.getDetail())) {\n completionItem.setSortText(itemPriorityMap.get(completionItem.getDetail()));\n }\n });\n }", "protected void sortResources()\n {\n PriorityComparator priorityComparator = new PriorityComparator();\n List<Resource> resources = getResources();\n Collections.sort(resources, priorityComparator);\n }", "private void sortResults(List<String> results) {\r\n\t\tif (comparator == null) {\r\n\t\t\tCollections.sort(results);\r\n\t\t} else {\r\n\t\t\tCollections.sort(results, comparator);\r\n\t\t}\r\n\t}", "private void sortCourses() {\n ctrl.sortCourses().forEach(System.out::println);\n }", "public void sortReport(Long fileID, List<String> sortOrders,\n Map<String, SortOrder> sortables) {\n List<Comparator<ReportPeptide>> compares =\n sortOrders.stream().map(sortKey -> ReportPeptideComparatorFactory.getComparatorByName(\n sortKey,\n sortables.get(sortKey))).collect(Collectors.toList());\n\n if (fileReportPeptides.get(fileID) != null) {\n (fileReportPeptides.get(fileID)).sort(ReportPeptideComparatorFactory.getComparator(compares));\n }\n }", "@Override\r\n\t\t\tpublic int compare(Presentor o1, Presentor o2) {\n\t\t\t\tint sort = 0;\r\n\t\t\t\tint a = o1.getZs() - o2.getZs();\r\n\t\t\t\tif (a != 0) {\r\n\t\t\t\t\tsort = (a < 0) ? 1 : -1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\ta = o1.getJd() - o2.getJd();\r\n\t\t\t\t\tif (a != 0) {\r\n\t\t\t\t\t\tsort = (a < 0) ? 1 : -1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn sort;\r\n\t\t\t}", "private static Map<String, Integer> sortByComparator(Map<String, Integer> unsortMap) {\n\t\tList<Map.Entry<String, Integer>> list = \n\t\t\tnew LinkedList<Map.Entry<String, Integer>>(unsortMap.entrySet());\n \n\t\t// Sort list with comparator, to compare the Map values\n\t\tComparator<Map.Entry<String, Integer>> comparator;\n\t\tcomparator=Collections.reverseOrder(new Comparator<Map.Entry<String, Integer>>() {\n\t\t\tpublic int compare(Map.Entry<String, Integer> o1,\n Map.Entry<String, Integer> o2) {\n\t\t\t\treturn (o1.getValue()).compareTo(o2.getValue());\n\t\t\t}\n\t\t});\n\t\tCollections.sort(list, comparator);\n \n\t\t// Convert sorted map back to a Map\n\t\tMap<String, Integer> sortedMap = new LinkedHashMap<String, Integer>();\n\t\tfor (Iterator<Map.Entry<String, Integer>> it = list.iterator(); it.hasNext();) {\n\t\t\tMap.Entry<String, Integer> entry = it.next();\n\t\t\tsortedMap.put(entry.getKey(), entry.getValue());\n\t\t}\n\t\treturn sortedMap;\n\t}", "public static void main(String[] args) {\n\t\tShirt r = new Shirt(\"Red\", 10);\r\n\t\tShirt b = new Shirt(\"Blue\", 465);\r\n\t\tShirt g = new Shirt(\"Green\", 3213456);\r\n\t\t// Creates some custom comparator object.\r\n\t\tSizeComp s = new SizeComp();\r\n\t\tColorComp c = new ColorComp();\r\n\t\t// Creates some tree sets using custom comparator. \r\n\t\tTreeSet<Shirt> mySizeSet = new TreeSet<>(s);\r\n\t\tmySizeSet.add(r);\r\n\t\tmySizeSet.add(g);\r\n\t\tmySizeSet.add(b);\r\n\t\tout.println(\"Sort by Size\");\r\n\t\tout.println(mySizeSet);\r\n\t\t\r\n\t\tTreeSet<Shirt> myCompSet = new TreeSet<>(c);\r\n\t\tmyCompSet.add(r);\r\n\t\tmyCompSet.add(g);\r\n\t\tmyCompSet.add(b);\r\n\t\tout.println(\"Sort by Color\");\r\n\t\tout.println(myCompSet);\r\n\t}", "private List<Article> sortTopics(Article queryTopic, List<Article>relatedTopics) throws Exception {\n for (Article art:relatedTopics) \n art.setWeight(_comparer.getRelatedness(art, queryTopic)) ;\n\n //Now that the weight attribute is set, sorting will be in descending order of weight.\n //If weight was not set, it would be in ascending order of id. \n Collections.sort(relatedTopics) ;\n return relatedTopics ;\n }", "private void sort() {\n ScoreComparator comparator = new ScoreComparator();\n Collections.sort(scores, comparator);\n }", "private static Map<Long, Long> sortByComparatorGift(Map<Long, Long> unsortMap) {\n\t\tList<Map.Entry<Long, Long>> list = \n\t\t\tnew LinkedList<Map.Entry<Long, Long>>(unsortMap.entrySet());\n \n\t\t// Sort list with comparator, to compare the Map values\n\t\tComparator<Map.Entry<Long, Long>> comparator;\n\t\tcomparator = Collections.reverseOrder(new Comparator<Map.Entry<Long, Long>>() {\n\t\t\tpublic int compare(Map.Entry<Long, Long> o1,\n Map.Entry<Long, Long> o2) {\n\t\t\t\treturn (o1.getValue()).compareTo(o2.getValue());\n\t\t\t}\n\t\t});\n\t\tCollections.sort(list, comparator);\n \n\t\t// Convert sorted map back to a Map\n\t\tMap<Long, Long> sortedMap = new LinkedHashMap<Long, Long>();\n\t\tfor (Iterator<Map.Entry<Long, Long>> it = list.iterator(); it.hasNext();) {\n\t\t\tMap.Entry<Long, Long> entry = it.next();\n\t\t\tsortedMap.put(entry.getKey(), entry.getValue());\n\t\t}\n\t\treturn sortedMap;\n\t}", "private ArrayList<BoulderProblem> SortBps()\n {\n ArrayList<BoulderProblem> sortedBps = displayBps;\n if(sortOption.equals(\"name\"))\n {\n Collections.sort(sortedBps, bpNameComparator);\n }\n else if(sortOption.equals(\"grade\"))\n {\n Collections.sort(sortedBps, bpGradeComparator);\n }\n else\n {\n Collections.sort(sortedBps, bpSetterComparator);\n }\n return sortedBps;\n }", "@Override\r\n public void sort(final IRepository<T> repository,\r\n final Comparator<T> comparator) {\r\n int personLength = 0;\r\n for (T iPerson : repository.toList()) {\r\n if (iPerson != null) {\r\n ++personLength;\r\n }\r\n }\r\n for (int i = 1; i < personLength; i++) {\r\n T current = repository.get(i);\r\n int j = i - 1;\r\n while(j >= 0 && comparator.compare(repository.get(j), current) > 0) {\r\n repository.set(j + 1, repository.get(j));\r\n j--;\r\n }\r\n repository.set(j + 1, current);\r\n }\r\n }", "private void sortByKeys(LazyMap<ProcessorDistributionKey, Collection<Geometry>> keyToGeoms, Geometry geom,\n Collection<Geometry> unprocessed, ProcessorDistributionKey hull)\n {\n boolean timeless;\n boolean foundKey;\n if (geom instanceof ConstrainableGeometry)\n {\n final Constraints constraints = ((ConstrainableGeometry)geom).getConstraints();\n\n if (constraints == null || constraints.getTimeConstraint() == null)\n {\n timeless = true;\n foundKey = false;\n }\n else\n {\n timeless = false;\n if (myTimeAgnostic)\n {\n addTimeListeners();\n updateTime();\n }\n foundKey = sortByKeys(myActiveTimeSpans, keyToGeoms, (ConstrainableGeometry)geom, hull);\n }\n }\n else\n {\n timeless = true;\n foundKey = false;\n }\n\n if (timeless)\n {\n foundKey = sortByKeys(keyToGeoms, geom, hull, null, TimeSpanList.TIMELESS);\n }\n if (!foundKey && unprocessed != null)\n {\n unprocessed.add(geom);\n }\n }", "public void sortBy(Comparator<Trip> cmp) {\n comparator = cmp;\n modifiedSinceLastResult = true;\n }", "@Override\n public void sort(IAlg algorithm, boolean decrescent){}", "private void sortUsers(List<User> users) {\n users.sort(Comparator.comparingInt(User::getAge));\n }", "private Map<String, Double> sortBottomPercents(final String gradingScaleName, final Map<String, Double> percents) {\n\n\t\tMap<String, Double> rval = null;\n\n\t\tif (StringUtils.equals(gradingScaleName, \"Pass / Not Pass\")) {\n\t\t\trval = new TreeMap<>(Collections.reverseOrder()); // P before NP.\n\t\t} else {\n\t\t\trval = new TreeMap<>(new LetterGradeComparator()); // letter grade mappings\n\t\t}\n\t\trval.putAll(percents);\n\n\t\treturn rval;\n\t}", "private void ordenaLista(List<AgrupamentoTipoBean> valoresMap) {\n\t\tCollections.sort(valoresMap, new Comparator<AgrupamentoTipoBean>() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic int compare(AgrupamentoTipoBean o1, AgrupamentoTipoBean o2) {\n\t\t\t\treturn o1.getQuantidade() > o2.getQuantidade() ? -1 : +1;\n\t\t\t}\n\t\t\t\n\t\t});\n\t}", "public void sort() {\n Collections.sort(tasks);\n }", "private static Comparator<Person> comparator(CrudFilter filter) {\n return filter.getSortOrders().entrySet().stream()\n .map(sortClause -> {\n try {\n Comparator<Person> comparator\n = Comparator.comparing(person ->\n (Comparable) valueOf(sortClause.getKey(), person));\n\n if (sortClause.getValue() == SortDirection.DESCENDING) {\n comparator = comparator.reversed();\n }\n\n return comparator;\n } catch (Exception ex) {\n return (Comparator<Person>) (o1, o2) -> 0;\n }\n })\n .reduce(Comparator::thenComparing)\n .orElse((o1, o2) -> 0);\n }", "public interface SportStarMapper extends Mapper<SportStar> {\n\n public List<SportStar> findAllOrderByProperty(String property);\n}", "public void sortScoresDescendently(){\n this.langsScores.sort((LangScoreBankUnit o1, LangScoreBankUnit o2) -> {\n return Double.compare(o2.getScore(),o1.getScore());\n });\n }", "public void sortManlist(){\r\n\t\tCollections.sort(Manlist, new MySort());\r\n\t}", "public static void main(String[] args) {\r\n\t\t\r\n\t\tList<Student> students = new ArrayList<>();\r\n\t\t\r\n\t\tstudents.add(new Student(23, \"Aryan\"));\r\n\t\tstudents.add(new Student(23, \"Jeet\"));\r\n\t\tstudents.add(new Student(83, \"Dhruv\"));\r\n\t\tstudents.add(new Student(13, \"Amit\"));\r\n\t\tstudents.add(new Student(65, \"Aditya\"));\r\n\t\tstudents.add(new Student(57, \"Jeet\"));\r\n\t\t\r\n//\t\tCollections.sort(students);\r\n\t\t\r\n//\t\tCollections.sort(students, new SortByNameThenMarks());\t// We passed our own comparator object.\r\n\t\t\r\n\t\t// We can have our own anonymous comparator without making a class. We can do that so by doing the following:\r\n\t\t\r\n//\t\tCollections.sort(students, new Comparator<Student>() {\r\n//\r\n//\t\t\t@Override\r\n//\t\t\tpublic int compare(Student obj1, Student obj2) {\r\n//\t\t\t\tif(obj1.name.equals(obj2)) return obj1.marks - obj2.marks;\r\n//\t\t\t\treturn obj1.name.compareTo(obj2.name);\r\n//\t\t\t}\r\n//\t\t\t\r\n//\t\t});\r\n\t\t\r\n\t\t// With the help of Lambda we could cut short the lines but we have to mention the sign \"->\".\r\n//\t\tCollections.sort(students,(Student obj1, Student obj2) -> {\r\n\t\t\r\n//\t\tCollections.sort(students,(obj1, obj2) -> {\r\n//\t\t\t\tif(obj1.name.equals(obj2)) return obj1.marks - obj2.marks;\r\n//\t\t\t\treturn obj1.name.compareTo(obj2.name);\r\n//\t\t\t});\r\n\t\t\r\n//\t\tCollections.sort(students, (obj1, obj2) -> obj1.name.compareTo(obj2.name));\r\n\t\t\r\n//\tThe comparator SortByNameThenMarks can be written in one line as follows. Also \".reversed()\" is used to reverse the order of comparison.\r\n\t\tCollections.sort(students, Comparator.comparing(Student::getName).thenComparing(Student::getMarks).reversed());\r\n\t\t\r\n\t\tstudents.forEach(System.out::println);\t// This is lambda expression to print \r\n\t}", "public void sortVehicles() {\n\t\tCollections.sort(vehicles);\n\t\t\n\t}", "public void sort() {\n\t\t\tCollections.sort(population, new SolutionComparator());\n\t\t}", "public static void main(String args[]) {\n\t Map<String, Integer> budget = new HashMap<>();\n\t budget.put(\"clothes\", 120);\n\t budget.put(\"grocery\", 150);\n\t budget.put(\"transportation\", 100);\n\t budget.put(\"utility\", 130);\n\t budget.put(\"rent\", 1150);\n\t budget.put(\"miscellneous\", 90);\n\t \n\t System.out.println(\"map before sorting: \" + budget);\n\t System.out.println();\n\t // let's sort this map by values first\n\t manualSortingBasedOnValue(budget);\n\t sortBYValuesJava8(budget);\n\t \n\t sortByValues(budget);\n\t }", "public void sortAttributes(Comparator<TLAttribute> comparator);", "@Override\n \t\t\t\t\tpublic int compare(Entry<Fooable, Integer> o1,\n \t\t\t\t\t\t\tEntry<Fooable, Integer> o2) {\n \t\t\t\t\t\tif (o1.getValue() < o2.getValue())\n \t\t\t\t\t\t\treturn -1;\n \n \t\t\t\t\t\tif (o1.getValue() > o2.getValue())\n \t\t\t\t\t\t\treturn 1;\n \n \t\t\t\t\t\t// Fallback sorting on String comparison\n \t\t\t\t\t\treturn o1.getKey().getName()\n \t\t\t\t\t\t\t\t.compareToIgnoreCase(o2.getKey().getName());\n \t\t\t\t\t}", "private OrderSpecifier[] getOrderSpecifiers(@NotNull Pageable pageable) {\n\n return pageable.getSort().stream()\n .map(order -> new OrderSpecifier(\n Order.valueOf(order.getDirection().toString()),\n new PathBuilder(AirplaneTrip.class, \"airplaneTrip\")\n .get(order.getProperty()))\n )\n .toArray(OrderSpecifier[]::new);\n }", "public String doSort();", "public void sortPassing(){\n\t\tpassing.sort(PlayingCard.PlayingCardComparator_ACEHIGH);\n\t}" ]
[ "0.63688105", "0.6066917", "0.5948234", "0.582271", "0.5698603", "0.5676037", "0.5666818", "0.5576189", "0.554335", "0.5473027", "0.5397445", "0.53341424", "0.5287268", "0.52854806", "0.5283315", "0.52715445", "0.5244768", "0.52417684", "0.52170724", "0.5196525", "0.5188481", "0.5161455", "0.51399606", "0.51154786", "0.51149136", "0.5099995", "0.50918436", "0.50865746", "0.5086319", "0.5073167", "0.50548947", "0.5041701", "0.50370467", "0.50154704", "0.5011912", "0.49977434", "0.49838477", "0.4979234", "0.49779642", "0.497653", "0.4974038", "0.49609596", "0.49449694", "0.49283206", "0.49258006", "0.49196038", "0.4909868", "0.4902712", "0.48810917", "0.48732048", "0.48622373", "0.48597857", "0.48467833", "0.48270503", "0.4826165", "0.48234722", "0.48136765", "0.4803391", "0.48029098", "0.47984144", "0.47959796", "0.47947416", "0.4793396", "0.47923622", "0.47834632", "0.47832078", "0.47765535", "0.47673377", "0.47671908", "0.4764526", "0.4760754", "0.4758507", "0.4745781", "0.47386348", "0.473852", "0.4738394", "0.4735353", "0.4735059", "0.47336894", "0.4728761", "0.47214174", "0.47212088", "0.4718736", "0.4718692", "0.47162417", "0.47161034", "0.47034338", "0.46989003", "0.46953955", "0.46939301", "0.46913323", "0.46912006", "0.46908027", "0.46888584", "0.46882385", "0.46862125", "0.46825704", "0.46656618", "0.4663595", "0.465699" ]
0.55221283
9
Discard extra accommodation offerings.
protected void discardExtraAccommodationOfferings(final List<String> returnedAccommodationOfferings, final List<PropertyData> properties) { final List<String> propertyCodes = properties.stream() .map(PropertyData::getAccommodationOfferingCode).collect(Collectors.toList()); final Collection<String> propertyCodeIntersection = CollectionUtils.intersection(propertyCodes, returnedAccommodationOfferings); final List<PropertyData> accommodationOfferingToRemove = properties.stream().filter( accommodationOffering -> BooleanUtils.isNotTrue(accommodationOffering.isIgnoreRules()) && !propertyCodeIntersection .contains(accommodationOffering.getAccommodationOfferingCode())).collect(Collectors.toList()); properties.removeAll(accommodationOfferingToRemove); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void discard(){\n for(int i = 1 ; i <= 110 ; i++) cardDeck.remove(i);\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 void clear() {\n for (int i = 0; i < if_you_items.length; i++) {\n if_you_items[i].setEnabled(true);\n }\n for (int i = 0; i < then_we_items.length; i++) {\n then_we_items[i].setEnabled(true);\n }\n non_promised_ministries.clear();\n non_promised_ministries.addAll(all_ministries);\n // if not at war, can't ask/offer peace\n if (game.getDiplomacy().getDiplomaticState(game.getTurn(), faction) != C.DS_WAR) {\n if_you_items[IfYouWill.PEACE.ordinal()].setEnabled(false);\n then_we_items[ThenWeWill.PEACE.ordinal()].setEnabled(false);\n }\n if (faction > C.HOUSE5) { // non-house\n non_promised_ministries.clear();\n if_you_items[IfYouWill.TECH.ordinal()].setEnabled(false);\n then_we_items[ThenWeWill.TECH.ordinal()].setEnabled(false);\n if_you_items[IfYouWill.VOTES.ordinal()].setEnabled(false);\n then_we_items[ThenWeWill.VOTES.ordinal()].setEnabled(false);\n return;\n }\n // search for promised votes and ministries in pending contracts of sender\n for (Contract con : game.getDiplomacy().getSentContracts()) {\n for (Term term : con.getTerms()) {\n if (term.getDonor() == game.getTurn()) {\n switch (term.getType()) {\n case VOTES:\n System.out.println(\"DBG no votes\");\n then_we_items[ThenWeWill.VOTES.ordinal()].setEnabled(false);\n break;\n case MINISTRY:\n non_promised_ministries.remove(new Integer(term.getAmount()));\n break;\n case MONEY:\n break;\n case STATE:\n break;\n case TECH:\n break;\n default:\n throw new AssertionError();\n }\n }\n if (term.getDonor() == faction) {\n switch (term.getType()) {\n case VOTES:\n System.out.println(\"DBG no votes\");\n if_you_items[IfYouWill.VOTES.ordinal()].setEnabled(false);\n break;\n case MINISTRY:\n non_promised_ministries.remove(new Integer(term.getAmount()));\n break;\n case MONEY:\n break;\n case STATE:\n break;\n case TECH:\n break;\n default:\n throw new AssertionError();\n }\n }\n }\n }\n // search for promised votes and ministries for sender and for receiver\n // those that are made with sender\n if (game.getRegency().getVotes()[game.getTurn()][Regency.CANDIDATE_IDX] > -1\n || game.getRegency().getVotes()[faction][Regency.CANDIDATE_IDX] == game.getTurn()) {\n then_we_items[ThenWeWill.VOTES.ordinal()].setEnabled(false);\n if_you_items[IfYouWill.VOTES.ordinal()].setEnabled(false);\n }\n int[] promises = game.getDiplomacy().getMinistryPromises(game.getTurn());\n for (int i = 0; i < promises.length; i++) {\n if (promises[i] > -1) {\n non_promised_ministries.remove(new Integer(promises[i]));\n }\n }\n promises = game.getDiplomacy().getMinistryPromises(faction);\n for (int i = 0; i < promises.length; i++) {\n if (promises[i] == game.getTurn()) {\n non_promised_ministries.remove(new Integer(promises[i]));\n }\n }\n if (non_promised_ministries.isEmpty()) {\n then_we_items[ThenWeWill.MINISTRY.ordinal()].setEnabled(false);\n if_you_items[IfYouWill.MINISTRY.ordinal()].setEnabled(false);\n }\n }", "public void discard() {\n }", "public void discardAll()\n\t{\n\t\thand = new Card[12];\n\t\tnumCards = 0;\n\t}", "void rejectNewOrders();", "public void cancelTradeOffer()\n\t{\n\t\tm_trade.cancelOffer(this);\n\t}", "public void discard();", "public void reject() {\n rejectBus.add(applicantQueue.dequeue());\n }", "private void discardRestrictedCards()\n\t{\n\t\tif (playerList.size() == 2)\n\t\t{\n\t\t\tfor(Card card : restrictedCard2PlayerList)\n\t\t\t{\n\t\t\t\tswitch (card.getType())\n\t\t\t\t{\n\t\t\t\t\tcase GreenPlayerCard:\n\t\t\t\t\tcase BrownPlayerCard:\n\t\t\t\t\t\tCard playerCardMatch = board.getPlayerCardDeck().pickCardByID(card.getId());\n\t\t\t\t\t\tif (playerCardMatch != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tboard.getDiscardDeck().addCard(playerCardMatch);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase CityAreaCard:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase PersonalityCard:\n\t\t\t\t\t\tCard personalityCardMatch = board.getPersonalityCardDeck().pickCardByID(card.getId());\n\t\t\t\t\t\tif (personalityCardMatch != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tboard.getDiscardDeck().addCard(personalityCardMatch);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase RandomEventCard:\n\t\t\t\t\t\tCard randomEventCardMatch = board.getRandomEventCardDeck().pickCardByID(card.getId());\n\t\t\t\t\t\tif (randomEventCardMatch != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tboard.getDiscardDeck().addCard(randomEventCardMatch);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void discard(int num) {\r\n\t\tfor (int i = 0; i < mustDiscard.size(); i++) {\r\n\t\t\tif (currentPlayer.discard(num)) {\r\n\t\t\t\tif (mustDiscard.get(i).contentEquals(\"Sleight of Hand\")) {\r\n\t\t\t\t\tmustDiscard.remove(i);\r\n\t\t\t\t\tcurrentPlayer.draw(2);\r\n\t\t\t\t\tupdatePlayArea(currentPlayer, false);\r\n\t\t\t\t} else if (mustDiscard.get(i).contentEquals(\"Apothecary\")) {\r\n\t\t\t\t\tmustDiscard.remove(i);\r\n\t\t\t\t\tmustChoose.add(\"Apothecary\");\r\n\t\t\t\t\tchoosePrompt();\r\n\t\t\t\t\tupdatePlayArea(currentPlayer, false);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void asignExtraGross() {\n\t\tpizza = new ExtraGross();\n\t\tBaguette pz = new PizzaAdapter(pizza);\n\t\tSystem.out.println(pz.getDescription() + \". Total: $\" + pz.cost());\n\t}", "public void discardToDeck() {\n\t\tfor(int i=discardPile.size(); i>0; i--) {\n\t\t deck.add(discardPile.remove(0));\n\t\t}\n\t\tCollections.shuffle(deck);\n\t}", "protected void onDiscard() {\r\n this.setActive(false);\r\n }", "public void removeExtras() {\n Object selected = extraSelected.getSelectionModel().getSelectedItem();\n sandwhich.remove(selected);\n orderPrice.clear();\n String price = new DecimalFormat(\"#.##\").format(sandwhich.price());\n orderPrice.appendText(\"$\"+price);\n extraSelected.getItems().remove(selected);\n extraOptions.getItems().add(selected);\n }", "protected boolean processOfferRemoved(int offerIndex){\n return false;\n }", "protected void discard() {\r\n discarded = true;\r\n onDiscard();\r\n }", "public void discardItem(LoopManiaWorld world) {\n super.discardItem(world, PRICE);\n }", "public void dontCompleteBooking(){\r\n\t\ttempBookings.clear();\r\n\t}", "public void depositeAll(Player player) {\n\t\tInventory inventory = player.inventory;\n\t\tif (inventory.isEmpty()) {\n\t\t\tplayer.message(\"There is nothing in your inventory to deposit!\");\n\t\t\treturn;\n\t\t}\n\t\tfor (int index = 0; index < inventory.size(); index++) {\n\t\t\tItem item = inventory.get(index);\n\n\t\t\tif (item == null || !item.isTradeable()) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tthis.item_containers.get(player).add(item);\n\t\t\tinventory.remove(item, index, false);\n\t\t}\n\t\tinventory.refresh();\n\t\tupdateOfferComponents();\n\t}", "void unsetAppointmentsToIgnore();", "void discard();", "void discard();", "public void onExemptChanged(AppStateTracker sender) {\n updateAllJobs();\n unblockAllUnrestrictedAlarms();\n }", "private Protos.Offer filterBadResources(Protos.Offer offer) {\n Collection<Protos.Resource> goodResources = new ArrayList<>();\n Collection<Protos.Resource> badResources = new ArrayList<>();\n for (Protos.Resource resource : offer.getResourcesList()) {\n if (ResourceUtils.isProcessable(resource, frameworkRolesWhitelist)) {\n goodResources.add(resource);\n } else {\n badResources.add(resource);\n }\n }\n if (badResources.isEmpty()) {\n // Common shortcut: All resources are good. Just return the original offer.\n return offer;\n }\n\n // Build a new offer which only contains the good resources. Log the bad resources.\n LOGGER.info(\n \"Filtered {} resources from offer {}:\",\n badResources.size(),\n offer.getId().getValue());\n for (Protos.Resource badResource : badResources) {\n LOGGER.info(\" {}\", TextFormat.shortDebugString(badResource));\n }\n return offer.toBuilder()\n .clearResources()\n .addAllResources(goodResources)\n .build();\n }", "public void forceDiscard(TurnTracker turn_tracker_pointer, int player_index) throws Exception;", "public void discard(Card card) {\n discardPile.add(card);\n }", "@Override\r\n\tpublic void discard(Resources toDiscard) {\n\t\t\r\n\t}", "@Override\r\n public void uncall() {\r\n Player player = MbPets.getInstance().getServer().getPlayer(getOwner());\r\n if (player != null) {\r\n if (getEntity().getInventory().getDecor() != null) {\r\n if (player.getInventory().firstEmpty() >= 0) {\r\n player.getInventory().addItem(getEntity().getInventory().getDecor());\r\n } else {\r\n player.getWorld().dropItemNaturally(player.getLocation(),\r\n getEntity().getInventory().getDecor());\r\n }\r\n }\r\n }\r\n super.uncall();\r\n }", "public void cancelSeat(String option) {\r\n for (int j = 0; j < seats.size(); j++) {\r\n if (seats.get(j).equals(option)) {\r\n seats.remove(j);\r\n }\r\n }\r\n System.out.println(\"Seat \" + option + \" canceled.\");\r\n calculatePrice();\r\n }", "public void discardPotion(Bucket b) \n\t{\n\t\t//run through the contents of the potion and then add them to the bucket\n\t\tfor (int i=0; i < this.ingredients.length(); i++ ) \n\t\t{\n\t\t\tb.dumpIngredient(ingredients.charAt(i));\n\t\t}\n\t\t//clear the ingredients in the bottle\n\t\tthis.ingredients=\"\";\n\t}", "protected boolean processPlayerDeclined(int gameNum, String playerName, String offer){\n return false;\n }", "@Override\n\tpublic void discardUnget() {\n\t\t\n\t}", "public void clearFreeSlots() {\n AvailableSlots.clear();\n }", "protected void reset() {\n\t\tadaptees.clear();\n\t}", "private void discardNecklaceIfVisible(){\n CardDealer cardDealer = CardDealer.getInstance();\n Treasure necklace = null;\n for (Treasure t: this.visibleTreasures){\n if (t.getType() == TreasureKind.NECKLACE){\n necklace = t;\n }\n }\n if (necklace != null){\n this.visibleTreasures.remove(necklace);\n cardDealer.giveTreasureBack(necklace);\n }\n }", "public void discard(DiscardResponse discardResponse){\n int pos = cardPlayedPos;\n if (discardResponse.accepted){\n this.infoTokens += 1;\n int count = this.discardPile.getOrDefault(discardResponse.gameCard.toString(), 0);\n this.discardPile.put(discardResponse.gameCard.toString(), count + 1);\n playerCardsList.get(0).set(pos, new GameCard());\n }\n notifyObservors();\n }", "public void onPowerSaveUnwhitelisted(AppStateTracker sender) {\n updateAllJobs();\n unblockAllUnrestrictedAlarms();\n }", "void unsetAmount();", "public void clearBids(){\n this.bids.clear();\n setRequested();\n }", "public void cancelSeat() {\n this.bookedSeats = this.bookedSeats - 1;\n }", "public void removeExpiredAuctions(){\r\n ArrayList <String> expiredAuction = new ArrayList <String>(super.size());\r\n for(String expiredKey: keySet()){\r\n if(getAuction(expiredKey).getTimeRemaining() == 0){\r\n expiredAuction.add(expiredKey);\r\n }\r\n } \r\n for(String expiredKey: expiredAuction){\r\n super.remove(expiredKey);\r\n }\r\n }", "public void otherDiscard(int pos, GameCard card){\n this.infoTokens += 1;\n int count = this.discardPile.getOrDefault(card.toString(), 0);\n this.discardPile.put(card.toString(), count + 1);\n playerCardsList.get(turnCounter % playerCardsList.size()).set(pos, card);\n notifyObservors();\n }", "@Test\n public void decreaseWithDiscardLessThan4() {\n gm.setPlayerInfo(clientPlayer4);\n gm.setThisPlayerIndex(clientPlayer4.getPlayerIndex());\n for (ResourceType type : ResourceType.values()) {\n assertEquals(0, getAmounts().getOfType(type));\n }\n assertFalse(dc.getMaxDiscard() >= 4);\n dc.increaseAmount(ResourceType.ORE);\n assertEquals(0, getAmounts().getOfType(ResourceType.ORE));\n dc.decreaseAmount(ResourceType.ORE);\n assertEquals(0, getAmounts().getOfType(ResourceType.ORE));\n }", "public void removePowerUp(List<CardPower> cost)\n {\n cardPower.removeAll(cost);\n }", "private void abandonTileImprovementPlan() {\n if (tileImprovementPlan != null) {\n if (tileImprovementPlan.getPioneer() == getAIUnit()) {\n tileImprovementPlan.setPioneer(null);\n }\n tileImprovementPlan = null;\n }\n }", "void discardCards(Resources resources);", "public void skip() {\t\n\t\tif(nItems < 2) {\n\t\t\treturn;\n\t\t}\n\t\tCustomer temp = new Customer(queArray[front].getName(), queArray[front].getPartySize());\n\t\tqueArray[front] = queArray[front+1];\n\t\tqueArray[front+1] = temp;\n\t}", "void rejectOrder(String orderId);", "private void cleanUpConsumedEsnRecords() {\n\t\tesnInfoRepository.findAllByIsConsumed(true).removeIf(item -> (Days\n\t\t\t\t.daysBetween(new DateTime(item.getDateImported()), new DateTime()).isGreaterThan(Days.days(30))));\n\t}", "private void offer() {\n\t\t\t\n\t\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 }", "public void rejectProduct() {\n self.increaseRejectCount();\n env.updateMachine(self);\n }", "public void discardUserAction() {\n\t\tshowAnimalList();\n\t}", "private void eliminateDay() {\r\n\tdayElimTimer.cancel();\r\n\tdayElimTimer.purge();\r\n\r\n\t// playerIDs.remove(playerOnTrialID);\r\n\tplayers.remove(playerOnTrialID);\r\n\r\n\tif (mafia.contains(playerOnTrialID)) {\r\n\t int index = mafia.indexOf(playerOnTrialID);\r\n\t mafia.remove(index);\r\n\r\n\t} else {\r\n\t int index = innocentIDs.indexOf(playerOnTrialID);\r\n\t innocentIDs.remove(index);\r\n\t}\r\n\r\n\tserver.setPlayerMuted(playerOnTrialID, true);\r\n\r\n\tserver.publicMessage(server.getUsername(playerOnTrialID) + \" has been eliminated\");\r\n\r\n\tplayerOnTrialID = null;\r\n\telimDay.clear();\r\n\tsave.clear();\r\n\telimDayVoteInProgress = false;\r\n\r\n\tcheckWin();\r\n }", "void unsetCapitalPayed();", "@Test\n public void discardLessThan4() {\n gm.setPlayerInfo(clientPlayer4);\n gm.setThisPlayerIndex(clientPlayer4.getPlayerIndex());\n Player p = model.getPlayer(clientPlayer4.getPlayerIndex());\n ResourceSet discardSet = dc.getDiscardAmount();\n verify(robberFacade, atMost(3)).canDiscard(discardSet, p);\n verify(robberFacade, atMost(2)).discard(discardSet, p);\n }", "@Override\n public Event performAction(RemoteView remoteView) {\n\n return remoteView.weaponDiscardChoice(getWeapons());\n }", "public void resetSaleAndCostTracking() {\n for (int i = 0; i < stockList.size(); i++) {\r\n // If the beanBag object at the current position is \"isSold\" bool is true.\r\n if (((BeanBag) stockList.get(i)).isSold()) {\r\n // Remove beanBag object at that position from the \"stockList\".\r\n stockList.remove(i);\r\n }\r\n }\r\n }", "public void removeRemaining( int index )\n\t{\n\t\t_avTable.rm( ATTR_REMAINING , index ) ;\n\t}", "public void empty() {\n int StartSize = stockList.size();\r\n // While array is not empty.\r\n while (stockList.size() > 0) {\r\n // For every item in the \"stockList\" array.\r\n for (int i = 0; i < StartSize; i++) {\r\n // Remove the beanBag object at the current position in the \"stockList\".\r\n stockList.remove(i);\r\n // Set the global int \"nextReservationNumber\" to 0.\r\n nextReservationNum = 0;\r\n }\r\n }\r\n }", "public void Invalidate() {\n\n\t\tString[] result_money = getAccepted().split(\"(N|K|F|S)+\");\n\t\tString[] result_item = getAccepted().split(\"(a|b|y)+\");\n\t\tsetMoney(result_money[result_money.length - 1]);\n\t\tsetItem(result_item[result_item.length - 1]);\n\n\t}", "public void kickOut(){\n Iterator<Player> iter = players.iterator();\n while (iter.hasNext()){\n Player player = iter.next();\n if(player.isBankrupt(minBet)){\n iter.remove();\n System.out.println(player + \" runs out of cash!\");\n }\n }\n }", "@Test\n public void discard() throws Exception {\n for (ResourceType type : ResourceType.values()) {\n dc.increaseAmount(type);\n assertEquals(1, getAmounts().getOfType(type));\n }\n // These should be the same value: 5\n assertEquals(5, dc.getMaxDiscard());\n assertEquals(5, dc.getDiscardAmount().getTotal());\n // Now to discard: First player\n Player p = model.getPlayer(clientPlayer1.getPlayerIndex());\n ResourceSet discardSet = dc.getDiscardAmount();\n when(robberFacade.canDiscard(discardSet, p)).thenReturn(true);\n dc.discard();\n verify(robberFacade).discard(discardSet, p);\n }", "public void discard(Card card) {\n if (!myTurn()) {\n return;\n }\n // CardAction cardAct = new CardAction(card, \"Discard: \" + card.getName());\n // history.add(cardAct);\n\n if (handPile.contains(card)) {\n tmpDiscardPile.add(card);\n handPile.remove(card);\n } else {\n tmpDiscardPile.add(card);\n }\n }", "public void setEXCLUDE_PROFIT_AMOUNT(BigDecimal EXCLUDE_PROFIT_AMOUNT) {\r\n this.EXCLUDE_PROFIT_AMOUNT = EXCLUDE_PROFIT_AMOUNT;\r\n }", "public void removeFromSilkBag() {\r\n silkBag.remove(0);\r\n }", "public DiscardDeck() {\n\t\tthis.content = new ArrayList<Card>();\n\t}", "public void performSuppression() {\n \n for (int row = 0; row < dataOutput.getNumRows(); row++) {\n if (privacyModelDefinesSubset == null || privacyModelDefinesSubset.contains(row)) {\n final int hash = dataOutput.hashCode(row);\n final int index = hash & (hashTableBuckets.length - 1);\n HashGroupifyEntry m = hashTableBuckets[index];\n while ((m != null) && ((m.hashcode != hash) || !dataOutput.equalsIgnoringOutliers(row, m.row))) {\n m = m.next;\n }\n if (m == null) {\n throw new RuntimeException(\"Invalid state! Group the data before suppressing records!\");\n }\n if (!m.isNotOutlier || this.isCompletelyGeneralized(m)) {\n dataOutput.or(row, Data.OUTLIER_MASK);\n m.isNotOutlier = false;\n }\n } else {\n dataOutput.or(row, Data.OUTLIER_MASK);\n }\n }\n }", "void unsetMultipleBetMinimum();", "public void setExempt(boolean exempt);", "public void clearSelected() {\n ObservableList<Extra> selected = extraSelected.getItems();\n for(int i =0; i < selected.size(); i++){\n sandwhich.remove(selected.get(i));\n }\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\n\n }", "private List<InventoryBO> getRemainingInventoryList(ItemBO anItem, List<InventoryBO> excludeInventoryList) {\n\t\tList<InventoryBO> remainingInventory = new ArrayList<InventoryBO>();\n\t\tString inventoryDcCode = \"\";\n\t\tfor (InventoryBO anInventory : anItem.getInventory()) {\n\t\t\tinventoryDcCode = anInventory.getDistributionCenter().getCode();\n\t\t\tlogger.info(\"getRemainingInventoryList(...): inventoryDcCode: \" + inventoryDcCode);\n\t\t\tfor (InventoryBO anExcludeInventory : excludeInventoryList) {\n\t\t\t\tlogger.info(\"getRemainingInventoryList(...): anExcludeInventory DC Code: \" + anExcludeInventory.getDistributionCenter().getCode());\n\t\t\t\tif (!inventoryDcCode.equals(anExcludeInventory.getDistributionCenter().getCode())) {\n\t\t\t\t\tlogger.info(\"getRemainingInventoryList(...): Adding DC Code '\" + inventoryDcCode + \"' to additionalInventory\");\n\t\t\t\t\tremainingInventory.add(anInventory);\n\t\t\t\t}\n\t\t\t}\t\t\t\t\n\t\t}\n\t\t\n\t\treturn remainingInventory;\n\t}", "private void discardPlayer(Player p)\n {\n locations.remove(p);\n plugin.getAM().arenaMap.remove(p);\n clearPlayer(p);\n }", "public void markUnsold(){\n\n myMaxRejectCountCount--;\n }", "@Test(expected=MissingPrice.class)\n\tpublic void testNotEnoughBought() {\n\t\tpos.setPricing(\"A\", 4, 7);\n\n\t\tpos.scan(\"A\");\n\t\tpos.total();\n\t}", "private void shrinkChangeCombinationSearchSpace(int usedBanknoteIndex, int remainingAmount,\n\t\t\tList<Integer> tempSearchSpace) {\n\t\ttempSearchSpace.remove(usedBanknoteIndex);\n\t\t// eliminate denominations larger than remaining amount\n\t\tfor (Iterator<Integer> iterator = tempSearchSpace.iterator(); iterator.hasNext();) {\n\t\t\tif (iterator.next() > remainingAmount) {\n\t\t\t\titerator.remove();\n\t\t\t}\n\t\t}\n\t}", "private void clearAllAirfields() {\n Nation nation = determineNation();\n\n game.getHumanPlayer().getAirfields()\n .stream()\n .filter(airfield -> airfield.usedByNation(nation))\n .forEach(airfield -> view.clearAirfield(nation, airfield));\n }", "public ReceivingSpace planToRemoveGoodsListWithSmartPallet(ReceivingSpace receivingSpace, String smartPalletId, Map<String,Object> options)throws Exception;", "public void clear() {\r\n GiftList.clear();\r\n names = new LinkedList<>();\r\n totalGifts = 0;\r\n totalCost = 0;\r\n }", "public void cancelCard() {}", "void removeAllRawLicenses();", "private void eliminate() {\n\t\t// when the election is not closed,\n\t\ttry{\n\t\t\tMap<String,Integer> results = election.getResultsFromPolls();\n\t\t\tList<Map.Entry<String,Integer>> entryList = new ArrayList(results.entrySet());\n\n\t\t\tCollection<Integer> values = results.values();\n\t\t\tint totalVotes = 0;\n\n\t\t\tfor(Integer i:values){\n\t\t\t\ttotalVotes += i;\n\t\t\t}\n\n\t\t\tif(entryList.get(entryList.size()-1).getValue()/(double)totalVotes > 0.5) {\n\t\t\t\t// when the election already has a winner,\n\t\t\t\tSystem.out.println(\"A candidate already has a majority of the votes.\");\n\t\t\t\tSystem.out.println(\"You cannot remove any more candidates.\");\n\t\t\t}else {\n\n\t\t\t\t// when we can eliminate a candidate,\n\t\t\t\tSystem.out.println(\"Eliminating the lowest-ranked candidate.\");\n\t\t\t\tList lowestCans = new ArrayList();\n\t\t\t\tlowestCans.add(entryList.get(0).getKey());\n\t\t\t\tint i = 1;\n\t\t\t\twhile (i<entryList.size() && entryList.get(i).getValue() == entryList.get(0).getValue() ){\n\t\t\t\t\tlowestCans.add(entryList.get(i).getKey());\n\t\t\t\t\ti++;\n\t\t\t\t}\n\n\t\t\t\tif (lowestCans.size() >1) {\n\t\t\t\t\tCollections.sort(lowestCans);\n\t\t\t\t\tCollections.reverse(lowestCans);\n\t\t\t\t}\n\t\t\t\t\telection.eliminateCandidateWithName((String) lowestCans.get(0));\n\n\t\t\t\tSystem.out.println(\"Eliminated \"+lowestCans.get(0)+\".\");\n\t\t\t}\n\n\t\t}catch(UnsupportedOperationException uso){\n\t\t\tSystem.out.println(\"The election is still open for votes.\");\n\t\t\tSystem.out.println(\"You must close the election before eliminating candidates.\");\n\t\t}\n\n\t}", "void unsetIssued();", "@Override\n public void onNegativeClick() {\n AbDialogUtil.removeDialog(ApplyAcitivity.this);\n }", "@Override\n public void onNegativeClick() {\n AbDialogUtil.removeDialog(ApplyAcitivity.this);\n }", "public void removeAllItem() {\n orderList.clear();\n }", "public void removeAllItems() {\n mPapers.clear();\n notifyDataSetChanged();\n }", "@Override\n public void onNegativeClick() {\n AbDialogUtil.removeDialog(ApplyAcitivity.this);\n }", "private void eliminatePlayers() {\n \n Iterator<Player> iter = players.iterator();\n\n while (iter.hasNext()) {\n Player player = iter.next();\n\n if (player.getList().isEmpty()) {\n iter.remove();\n if (player.getIsHuman()) {\n setGameState(GameState.HUMAN_OUT);\n }\n // need to remember that due to successive draws, the active player could run\n // out of cards\n // select a new random player if player gets eliminated\n if (!players.contains(activePlayer)) {\n selectRandomPlayer();\n }\n }\n }\n }", "void cancelProduction();", "@Override\r\n public void transferFromDiscard(int plDeckPosition, int player){\r\n PlayingCard card;\r\n while(!this.players.get(player).getDeck(plDeckPosition+1).isDeckEmpty()){\r\n card = (PlayingCard) this.getPlayerCard(player, plDeckPosition+1);\r\n this.giveCardToPlayer(card, player, plDeckPosition);\r\n } \r\n }", "public void clearPartyList() {\n currentlyProcessingParties.clear();\n }", "public void addToDiscard(Card card) {\r\n\t\tthis.discard.add(card);\r\n\t}", "public void removeOrder(){\n foods.clear();\n price = 0;\n }", "public static void clearInventoryCrafting(Player player)\n\t{\n\t\tPlayerInventory inv = player.getInventory();\n\t\tfor(int i = 0; i < 4; i++)\n\t\t\tinv.setItem(1 + i, null);\n\t}", "@Test\n public void discardPlayer2() {\n gm.setPlayerInfo(clientPlayer2);\n gm.setThisPlayerIndex(clientPlayer2.getPlayerIndex());\n\n dc.increaseAmount(ResourceType.ORE);\n dc.increaseAmount(ResourceType.ORE);\n dc.increaseAmount(ResourceType.WOOD);\n dc.increaseAmount(ResourceType.WOOD);\n assertEquals(2, getAmounts().getOfType(ResourceType.ORE));\n assertEquals(2, getAmounts().getOfType(ResourceType.WOOD));\n Player p = model.getPlayer(clientPlayer2.getPlayerIndex());\n ResourceSet discardSet = dc.getDiscardAmount();\n when(robberFacade.canDiscard(discardSet, p)).thenReturn(true);\n dc.discard();\n // This verifies that the robberFacade.discard is only called twice\n verify(robberFacade, atMost(2)).discard(discardSet, p);\n\n }", "public void dealerAskCard() {\n int dealerScore = this.getDealerHand().getActualValue();\n while (dealerScore < 17) {\n Card card = this.deck.deal(this.getDealerHand());\n dealerScore = this.getDealerHand().getActualValue();\n }\n }", "public void addCardToDiscardPile(Card card) {\r\n discardPile.add(card);\r\n if (discardPile.size() > maxDiscardPileSize) {\r\n discardPile = discardPile.subList(1, discardPile.size());\r\n }\r\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tAppofferUtil.getIntsance().getList().clear();\n\t}" ]
[ "0.61442554", "0.610992", "0.60762566", "0.5942092", "0.5934237", "0.5879319", "0.58742577", "0.586777", "0.5827211", "0.581363", "0.5803406", "0.57657486", "0.56633085", "0.5588489", "0.55832535", "0.5581436", "0.5545129", "0.5537254", "0.5501156", "0.5468695", "0.5387936", "0.538408", "0.538408", "0.53712124", "0.53583837", "0.53421664", "0.5339176", "0.5329935", "0.5321245", "0.5320686", "0.5317113", "0.5315698", "0.52890515", "0.52742225", "0.5264019", "0.5249526", "0.52475166", "0.52457094", "0.52450275", "0.52383304", "0.5237204", "0.5231187", "0.52297574", "0.5227958", "0.5201857", "0.51991975", "0.51776284", "0.5175403", "0.51547605", "0.5143174", "0.5141644", "0.51410854", "0.51405674", "0.5139674", "0.5139173", "0.5127795", "0.51198566", "0.5096036", "0.50895035", "0.50737345", "0.50715405", "0.50705105", "0.5068562", "0.5052409", "0.504793", "0.50427324", "0.5030982", "0.5023509", "0.5019227", "0.5016745", "0.50099945", "0.49959174", "0.49947104", "0.4991897", "0.4988269", "0.49798468", "0.49744403", "0.49728808", "0.49712372", "0.49709564", "0.49683115", "0.49657413", "0.49608433", "0.4960756", "0.49583107", "0.49583107", "0.49566793", "0.4953869", "0.49522483", "0.49498188", "0.4947174", "0.49445346", "0.49423778", "0.4941495", "0.49361107", "0.49337187", "0.4927544", "0.49273935", "0.49201015", "0.49171934" ]
0.67444396
0
Update search response with the values from the given criterion data.
protected void updateSearchResponse(final AccommodationSearchResponseData searchResponseData, final CriterionData criterion) { searchResponseData.getCriterion().setFacets(criterion.getFacets()); searchResponseData.getCriterion().setSorts(criterion.getSorts()); searchResponseData.getCriterion().setQuery(criterion.getQuery()); searchResponseData.getCriterion().setFilteredFacets(criterion.getFilteredFacets()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setSearchResults(LazyDataModel<ReagentResult> searchResults);", "private void update_private(LatLngBounds bounds) {\n\t\tJSONObject response = null;\n\n\t\ttry {\n\t\t\tStringBuffer result = new StringBuffer();\n\n\t\t\tURL url = new URL(BASE_URL +\n\t\t\t\t\t\"lang=\" + mLang +\n\t\t\t\t\t\"&north=\" + bounds.getNe().getLat() +\n\t\t\t\t\t\"&south=\" + bounds.getSw().getLat() +\n\t\t\t\t\t\"&east=\" + bounds.getNe().getLng() +\n\t\t\t\t\t\"&west=\" + bounds.getSw().getLng() +\n\t\t\t\t\t\"&maxRows=\" + MAX_SEARCH_RESULTS);\n\t\t\tPLog.d(TAG, \"Sending geonames URL... \", url);\n\t\t\tBufferedReader buf = BufferedReaderFactory.openBufferedReader(url);\n\t\t\tfor (String line; (line = buf.readLine()) != null;) {\n\t\t\t\tresult.append(line).append(\"\\n\");\n\t\t\t}\n\t\t\tbuf.close();\n\t\t\tPLog.d(TAG, \"Geonames result received !\");\n\t\t\tresponse = new JSONObject(result.toString());\n\n\t\t\t/*\n\t\t\t * Once the first response is received, we adjust the real\n\t\t\t * amount of possible responses for next sends.\n\t\t\t */\n\n\t\t\tif (response.has(\"status\")) {\n\t\t\t\t/* No results found on first request */\n\t\t\t\tthrow (new Exception(\"Bad response status : \" + response.getJSONObject(\"status\").getString(\"message\")));\n\t\t\t}\n\n\t\t\tupdateMarkers(bounds,response);\n\n\t\t\t// Trigger a refresh of map display\n\t\t\tmController.getHandler().sendEmptyMessage(Controller.MSG_INVALIDATE_DISPLAY);\n\t\t\t\n\t\t} catch (MalformedURLException e) {\n\t\t\tPLog.e(TAG, \"Incorrect URL in search method : \", e.getMessage());\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\tPLog.e(TAG, \"Error while manipulating stream response : \",\n\t\t\t\t\te.getMessage());\n\t\t\te.printStackTrace();\n\t\t} catch (JSONException e) {\n\t\t\tPLog.e(TAG, \"Error JSON while building geonames result : \",\n\t\t\t\t\te.getMessage());\n\t\t\tresponse = null;\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\tPLog.e(TAG, \"Error while building geonames result : \",\n\t\t\t\t\te.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public String post(PageModel model, @BindParams SearchPhrase search_phrase, @RequestParam(\"patientId\") Integer patient) {\n System.out.println(\"phrase : \" + search_phrase.getPhrase());\n if(search_phrase.getPhrase() == \",\" ){\n search_phrase.setPhrase(\"\");\n }\n SearchAPI searchAPI = SearchAPI.getInstance();\n model.addAttribute(\"patientID_from_get\", patient); //get patient\n\n Integer length = Integer.valueOf(999999999); //amount of obs we want - all of them\n Integer start = Integer.valueOf(0);//starting from first obs.\n List<ChartListItem> items = new ArrayList<ChartListItem>();\n\n /*String synonyms = search_phrase.getPhrase();\n SynonymGroup synGroup = SynonymGroups.isSynonymContainedInGroup(search_phrase.getPhrase());\n if (!synGroup.equals(null)) {\n for (String syn : (HashSet<String>) synGroup.getSynonyms()) {\n synonyms += \" OR \" + syn;\n }\n }*/\n\n try {\n items = searcher.getDocumentList(patient, search_phrase.getPhrase(), start, length); //searching for the phrase.\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n List<ChartListItem> updatedItems = new ArrayList<ChartListItem>();\n for (ChartListItem observation : items) //loop to get full details about observations.\n {\n\n int itemObsId = -1;\n if (observation instanceof ObsItem) {\n itemObsId = ((ObsItem) observation).getObsId();\n }\n ChartListItem updatedObservation = DWRChartSearchService.getObservationDetails(itemObsId);\n updatedItems.add(updatedObservation);\n }\n searchAPI.setResults(updatedItems); //setting results to show.\n return \"redirect:chartsearch/chartsearch.page?patientId=\" + patient;\n }", "private void updateFilteredData() {\n mainApp.getFilteredData().clear();\n\n for (FilmItem p : mainApp.getFilmData()) {\n if (matchesFilter(p)) {\n \tmainApp.getFilteredData().add(p);\n }\n }\n }", "public void updateSearchResults(){\n\t\t//removeAll();\n\t\tPrinter currentPrinter;\n\t\tPrinterLabel tableHeader;\n\t\t\n\t\t// Create search results' table header\n\t\ttableHeader = new PrinterLabel(1,MenuWindow.FRAME_WIDTH , MenuWindow.FRAME_HEIGHT,\n\t\t\t\t\"PRINTER\",\"VENDOR\",\"TENSION (ksi)\",\"COMPRESSION (ksi)\",\"IMPACT (lb-ft)\",\"MATERIALS\",\"TOLERANCE (in)\",\"FINISH (\\u00B5in)\", false);\n\n\t\t// Add tool tips for long header categories before adding to GUI\n\t tableHeader.getMaterials().setToolTipText(\"Range of Materials\");\n\t \n\t\tsetLayout(new BoxLayout(this, BoxLayout.Y_AXIS));\n\t\tsetBorder(BorderFactory.createLineBorder(Color.gray));\n\t\tadd(tableHeader);\n\t\ttableHeader.setBackground(Color.lightGray);\n\n\t\t// Populate search results with any printer matches\n\t\tfor(int i = outputList.size()-1; i >=0;i--)\n\t\t{\n\t\t\tcurrentPrinter = outputList.get(i);\n\t\t\tPrinterLabel temp = new PrinterLabel(i+1,MenuWindow.FRAME_WIDTH , MenuWindow.FRAME_HEIGHT,\n\t\t\t\t\tcurrentPrinter.getPrinterName() + \"\",\n\t\t\t\t\tcurrentPrinter.getVendor()+ \"\",\n\t\t\t\t\tcurrentPrinter.getTension()+ \"\",\n\t\t\t\t\tcurrentPrinter.getCompression()+ \"\",\n\t\t\t\t\tcurrentPrinter.getImpact()+ \"\",\n\t\t\t\t\tcurrentPrinter.materialsString()+ \"\",\n\t\t\t\t\tcurrentPrinter.getTolerance()+ \"\",\n\t\t\t\t\tcurrentPrinter.getFinish()+ \"\", true);\n\t\t\ttemp = highlightMatch(temp, currentPrinter);\n\t\t\tadd(temp);\n\t\t}\n\t\tthis.revalidate();\n\t}", "@Override\n protected void publishResults(CharSequence constraint, FilterResults results) {\n set((List<Item>) results.values);\n }", "public Builder mergeSearchResponse(entities.Torrent.SearchResponse value) {\n if (searchResponseBuilder_ == null) {\n if (searchResponse_ != null) {\n searchResponse_ =\n entities.Torrent.SearchResponse.newBuilder(searchResponse_).mergeFrom(value).buildPartial();\n } else {\n searchResponse_ = value;\n }\n onChanged();\n } else {\n searchResponseBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public void prepareSearchForUpdate(Search search) {\r\n\t\tDouble rate = currencyService.getCurrencyRate(search.getEbayCountry().getCurrency(), search.getUser());\r\n\t\tsearch.setMinPrice((int)(search.getMinPrice() * rate));\r\n\t\tsearch.setMaxPrice((int)(search.getMaxPrice() * rate));\r\n\t}", "public void updateFromSearchFilters() {\n this.businessTravelReadyModel.checked(ExploreHomesFiltersFragment.this.searchFilters.isBusinessTravelReady());\n ExploreHomesFiltersFragment.this.businessTravelAccountManager.setUsingBTRFilter(this.businessTravelReadyModel.checked());\n this.instantBookModel.checked(ExploreHomesFiltersFragment.this.searchFilters.isInstantBookOnly());\n this.entireHomeModel.checked(ExploreHomesFiltersFragment.this.searchFilters.getRoomTypes().contains(C6120RoomType.EntireHome));\n this.privateRoomModel.checked(ExploreHomesFiltersFragment.this.searchFilters.getRoomTypes().contains(C6120RoomType.PrivateRoom));\n this.sharedRoomModel.checked(ExploreHomesFiltersFragment.this.searchFilters.getRoomTypes().contains(C6120RoomType.SharedRoom));\n SearchMetaData homeTabMetadata = ExploreHomesFiltersFragment.this.dataController.getHomesMetadata();\n if (homeTabMetadata != null && homeTabMetadata.hasFacet()) {\n SearchFacets facets = homeTabMetadata.getFacets();\n this.entireHomeModel.show(facets.facetGreaterThanZero(C6120RoomType.EntireHome));\n this.privateRoomModel.show(facets.facetGreaterThanZero(C6120RoomType.PrivateRoom));\n this.sharedRoomModel.show(facets.facetGreaterThanZero(C6120RoomType.SharedRoom));\n }\n this.priceModel.minPrice(ExploreHomesFiltersFragment.this.searchFilters.getMinPrice()).maxPrice(ExploreHomesFiltersFragment.this.searchFilters.getMaxPrice());\n if (homeTabMetadata == null) {\n this.priceModel.histogram(null).metadata(null);\n } else {\n this.priceModel.histogram(homeTabMetadata.getPriceHistogram()).metadata(homeTabMetadata.getSearch());\n }\n this.priceButtonsModel.selection(ExploreHomesFiltersFragment.this.searchFilters.getPriceFilterSelection());\n this.bedCountModel.value(ExploreHomesFiltersFragment.this.searchFilters.getNumBeds());\n this.bedroomCountModel.value(ExploreHomesFiltersFragment.this.searchFilters.getNumBedrooms());\n this.bathroomCountModel.value(ExploreHomesFiltersFragment.this.searchFilters.getNumBathrooms());\n addCategorizedAmenitiesIfNeeded();\n updateOtherAmenitiesModels();\n updateFacilitiesAmenitiesModels();\n updateHouseRulesAmenitiesModels();\n notifyModelsChanged();\n }", "public void search(ActionRequest actionRequest,\r\n\t\t\tActionResponse actionResponse) throws IOException, PortletException {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t\tString ungDung = ParamUtil.getString(actionRequest,\"ungDung\", \"\");\r\n\t\t\r\n\t\tString nhomUngDung= ParamUtil.getString(actionRequest,\"nhomUngDung\", \"\");\r\n\t\t\r\n\t\tPortletPreferences prefs = actionRequest.getPreferences();\r\n\t\tprefs.setValue(\"ungDung\", ungDung);\r\n\t\tprefs.setValue(\"nhomUngDung\", nhomUngDung);\r\n\t\t\r\n\t\tint cur = ParamUtil.getInteger(actionRequest, \"cur\", 1);\r\n\t\tint delta = ParamUtil.getInteger(actionRequest, \"delta\", 10);\r\n\t\tprefs.setValue(\"cur\", String.valueOf(cur));\r\n\t\tprefs.setValue(\"delta\", String.valueOf(delta));\r\n\t\tprefs.store();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "protected void setSearch(ArrayList<Contact> search){\n this.search = search;\n }", "public Builder setSearchResponse(\n entities.Torrent.SearchResponse.Builder builderForValue) {\n if (searchResponseBuilder_ == null) {\n searchResponse_ = builderForValue.build();\n onChanged();\n } else {\n searchResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public void addSearchPollData(List<UserPollResponseModel.Results.Data> dataResults) {\n //remove footer viewe\n this.removeFooterView(footer);\n //add data in array list\n searchAdapter.addAll(dataResults);\n //Notifies the attached observers that the underlying\n // data has been changed and any View reflecting the data set should refresh itself.\n searchAdapter.notifyDataSetChanged();\n isLoading = false;\n }", "public Builder mergeSearch(com.clarifai.grpc.api.Search value) {\n if (searchBuilder_ == null) {\n if (inputSourceCase_ == 10 &&\n inputSource_ != com.clarifai.grpc.api.Search.getDefaultInstance()) {\n inputSource_ = com.clarifai.grpc.api.Search.newBuilder((com.clarifai.grpc.api.Search) inputSource_)\n .mergeFrom(value).buildPartial();\n } else {\n inputSource_ = value;\n }\n onChanged();\n } else {\n if (inputSourceCase_ == 10) {\n searchBuilder_.mergeFrom(value);\n } else {\n searchBuilder_.setMessage(value);\n }\n }\n inputSourceCase_ = 10;\n return this;\n }", "private void searchItem(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}", "public void updateAll( Map<String, ? extends Object> where, Map<String, ? extends Object> data, final ObjectCallback<JSONObject> callback ){\n\n /**\n Call the onBefore event\n */\n callback.onBefore();\n\n\n //Definging hashMap for data conversion\n Map<String, Object> hashMapObject = new HashMap<>();\n //Now add the arguments...\n \n hashMapObject.put(\"where\", where);\n \n hashMapObject.putAll(data);\n \n\n \n\n\n \n \n invokeStaticMethod(\"updateAll\", hashMapObject, new Adapter.JsonObjectCallback() {\n \n \n @Override\n public void onError(Throwable t) {\n callback.onError(t);\n //Call the finally method..\n callback.onFinally();\n }\n\n @Override\n public void onSuccess(JSONObject response) {\n \n callback.onSuccess(response);\n \n //Call the finally method..\n callback.onFinally();\n }\n });\n \n\n \n\n }", "public UpdateResponse optimize(boolean waitFlush, boolean waitSearcher) throws SolrServerException, IOException {\n return optimize(waitFlush, waitSearcher, 1);\n }", "public void updateResults() {\n\t\t// Do not update when there is no amount entered\n\t\tif (amountEdit.getText().toString().equalsIgnoreCase(\"\"))\n\t\t\treturn;\n\t\t\n\t\t// Transform .42 to 0.42\n\t\tif (amountEdit.getText().toString().equalsIgnoreCase(\".\")) {\n\t\t\tamountEdit.setText(\"0.\");\n\t\t\tamountEdit.setSelection(amountEdit.getText().length());\n\t\t}\n\t\t\t\n\t\tint from = (int) fromSpinner.getSelectedItemId();\n\t\tint to = (int) toSpinner.getSelectedItemId();\n\t\tDouble amount = Double.parseDouble(amountEdit.getText().toString());\n\t\tDouble result = exchangeRates.convert(from, to, amount);\n\t\t\n\t\t// Build results string and update the view\n\t\tString text = \"\";\n\t\ttext += exchangeRates.getCurrency(from) + \" \";\n\t\ttext += amount + \"\\n\";\n\t\ttext += exchangeRates.getCurrency(to) + \" \";\n\t\ttext += result.toString();\n\t\tresultsText.setText(text);\n\t}", "public void updateResults(String s) {\n ArrayList<String> tempName = new ArrayList<String>();\n ArrayList<String> tempUid = new ArrayList<String>();\n for(int i=0;i<userName.size();i++){\n if(userName.get(i).toLowerCase().contains(s.toLowerCase())){\n tempName.add(userName.get(i));\n tempUid.add(uid.get(i));\n }\n }\n userName.clear();\n uid.clear();\n userName.addAll(tempName);\n uid.addAll(tempUid);\n }", "protected IBundleProvider performSearch(String theCriteria) {\n\t\tRuntimeResourceDefinition responseResourceDef = getSubscriptionDao().validateCriteriaAndReturnResourceDefinition(theCriteria);\n\t\tSearchParameterMap responseCriteriaUrl = BaseHapiFhirDao.translateMatchUrl(getSubscriptionDao(), getSubscriptionDao().getContext(), theCriteria, responseResourceDef);\n\n\t\tRequestDetails req = new ServletSubRequestDetails();\n\t\treq.setSubRequest(true);\n\n\t\tIFhirResourceDao<? extends IBaseResource> responseDao = getSubscriptionDao().getDao(responseResourceDef.getImplementingClass());\n\t\tresponseCriteriaUrl.setLoadSynchronousUpTo(1);\n\n\t\tIBundleProvider responseResults = responseDao.search(responseCriteriaUrl, req);\n\t\treturn responseResults;\n\t}", "public QueryResultBuilder<T> applySearch(Option<Search> search);", "private void search(SearchRequest request) {\r\n\t\tif(request == null)return;\r\n\t\tList<Record> results = handler.search(request);\r\n\t\tlist.show(results);\r\n\t\tpanInfo.setNumRec(results.size());\r\n\t\tpanInfo.setTotalAmt(Record.sumBalance(results));\r\n\t}", "void updateResult(int queryID, int[] ranking) {\n this.results.put(queryID, ranking);\n }", "public void updateSearchResults(SearchFiltersPanel filter)\n\t{\n\t\tremoveAll();\n\t\tm_PrinterList.setPrinterList(ToolBox.generatePrinterList().getPrinterList());\n\t\tm_PrinterList.clearMatches(m_PrinterList.getPrinterList());\n\t\t\n\t m_PrinterList.setMatches(\n (Double) filter.getCompression().getMin(),\n\t \t\t(Double) filter.getTension().getMin(),\n\t \t\t(Double) filter.getImpact().getMin(),\n\t \t\t(String) filter.getMaterials().getSelectedItem(),\n\t \t\t(Double) filter.getTolerance().getMax(),\n\t \t\t(double) filter.getFinish().getMax(),\n\t \t\t(String) filter.getVendor().getSelectedItem());\n\t \n\t outputList = ToolBox.outputSearchedList(m_PrinterList);\n\t updateSearchResults();\n\t}", "public Builder setSearch(com.clarifai.grpc.api.Search value) {\n if (searchBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n inputSource_ = value;\n onChanged();\n } else {\n searchBuilder_.setMessage(value);\n }\n inputSourceCase_ = 10;\n return this;\n }", "private void searchRefresh(){\n adapter = new FoundRecyclerviewAdapter(FoundActivity.this, search);\n v.setAdapter(adapter);\n }", "public ChannelSearchResult doSearch(SearchCriteria searchCriteria) {\n try {\n String data = getData(searchCriteria);\n\n // Clean xml version for geotools parser for faster parse\n data = data.replace(RESPONSE_CLEAN, \"\");\n log.debug(\"DATA: \" + data);\n boolean exonym = false;\n if(hasParam(searchCriteria,PARAM_EXONYM)) exonym = searchCriteria.getParam(PARAM_EXONYM).toString().equals(\"true\");\n return elfParser.parse(data, searchCriteria.getSRS(), exonym);\n\n } catch (Exception e) {\n log.error(e, \"Failed to search locations from register of ELF GeoLocator\");\n return new ChannelSearchResult();\n }\n }", "@Override\r\n\tpublic final Search searchProducts(\r\n\t\t\tfinal Map<String, List<String>> searchCriteria,\r\n\t\t\tfinal String correlationId) throws BaseException, ServiceException,\r\n\t\t\tAdapterException {\r\n\t\tfinal long startTime = LOGGER.logMethodEntry(correlationId);\r\n\t\tLOGGER.info(\"Request uri map is \" + searchCriteria, correlationId);\r\n\t\tSearch searchList = null;\r\n\t\tif (searchCriteria.containsKey(RequestAttributeConstant.ATTR)) {\r\n\t\t\tfinal String inputParameter = StringUtils\r\n\t\t\t\t\t.collectionToCommaDelimitedString(searchCriteria\r\n\t\t\t\t\t\t\t.get(RequestAttributeConstant.ATTR));\r\n\r\n\t\t\tfinal String[] pipeSeparated = inputParameter.split(\"\\\\|\");\r\n\t\t\tfor (final String pipeSeparatedString : pipeSeparated) {\r\n\t\t\t\tif (pipeSeparatedString\r\n\t\t\t\t\t\t.contains(RequestAttributeConstant.PRICE)) {\r\n\t\t\t\t\tthis.buildPriceRange(searchCriteria, pipeSeparatedString,\r\n\t\t\t\t\t\t\tcorrelationId);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Added this condition to remove dim attribute if its value is false\r\n\t\tif (searchCriteria.containsKey(RequestAttributeConstant.DIM)) {\r\n\t\t\tfinal List<String> dimvalue = searchCriteria\r\n\t\t\t\t\t.get(RequestAttributeConstant.DIM);\r\n\t\t\tif (dimvalue.get(0).equalsIgnoreCase(CommonConstants.FALSE_VALUE)) {\r\n\t\t\t\tsearchCriteria.remove(RequestAttributeConstant.DIM);\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinal Map<String, String> requestMapURI = this.requestParser\r\n\t\t\t\t.processRequestAttribute(searchCriteria, correlationId);\r\n\t\tList<Map<String, String>> resultMap = null;\r\n\t\tfinal EndecaAdapter endecaAdapter = (EndecaAdapter) this.adapterManager\r\n\t\t\t\t.getAdapter();\r\n\t\trequestMapURI.put(EndecaConstants.REFINEMENTS_REQUIRED,\r\n\t\t\t\tCommonConstants.TRUE_VALUE);\r\n\t\t//OPTIONS Parameter to be added in future\r\n\t\tfinal Map<String, List<String>> optionNodes = null;\r\n\t\tresultMap = endecaAdapter.service(requestMapURI, optionNodes, correlationId);\r\n\t\tthis.generateSearchReport(requestMapURI, resultMap);\r\n\t\tLOGGER.debug(\"ResultMap \" + resultMap, correlationId);\r\n\t\tif ((resultMap != null) && (!resultMap.isEmpty())) {\r\n\t\t\tsearchList = this.searchMapper.convertToSearchPojo(resultMap,\r\n\t\t\t\t\tcorrelationId);\r\n\t\t\tLOGGER.info(\"The search list : \"\r\n\t\t\t\t\t+ searchList.getSearchReport().getTotalProducts(),\r\n\t\t\t\t\tcorrelationId);\r\n\t\t}\r\n\r\n\t\tLOGGER.logMethodExit(startTime, correlationId);\r\n\t\treturn searchList;\r\n\t}", "@Override\n public SearchResultInfo search(SearchRequestInfo searchRequest) {\n try\n {\n SearchResultInfo searchResult = searchDispatcher.search(searchRequest, ContextUtils.getContextInfo());\n List<SearchParamInfo> params = searchRequest.getParams();\n if (params != null && params.size() > 0) {\n SearchParamInfo firstParam = params.get(0);\n if (firstParam.getKey().equals(\"lu.queryParam.cluVersionIndId\")) {//FIXME can this special case be handled after this call?\n doIdTranslation(searchResult);\n }\n }\n return searchResult;\n } catch (Exception ex) {\n // Log exception \n ex.printStackTrace();\n throw new RuntimeException(ex);\n }\n }", "public Builder setSearchResponse(entities.Torrent.SearchResponse value) {\n if (searchResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n searchResponse_ = value;\n onChanged();\n } else {\n searchResponseBuilder_.setMessage(value);\n }\n\n return this;\n }", "private RequestResponse handleSearchRequest(Request request, Response response) throws ServiceException {\n response.type(\"application/json\");\n\n String core = request.params(\":core\");\n if (StringUtils.isEmpty(core)) {\n throw new ServiceException(\"Failed to provide an index core for the document\");\n }\n\n SearchParameters searchParameters = new RequestToSearchParameters().convert(request);\n return this.searchService.query(core, searchParameters);\n }", "public void updateData() {}", "public void performSearch() {\n OASelect<QueryInfo> sel = getQueryInfoSearch().getSelect();\n sel.setSearchHub(getSearchFromHub());\n sel.setFinder(getFinder());\n getHub().select(sel);\n }", "public synchronized void updateData() {\n updateDataFields(this::defaultFetcher);\n }", "public void doUpdate() {\n Map<String, List<String>> dataToSend = new HashMap<>();\r\n List<String> values = new ArrayList<>();\r\n values.add(String.valueOf(selectedOhsaIncident.getId()));\r\n dataToSend.put(\"param\", values);\r\n showDialog(dataToSend);\r\n }", "public Builder setSearch(\n com.clarifai.grpc.api.Search.Builder builderForValue) {\n if (searchBuilder_ == null) {\n inputSource_ = builderForValue.build();\n onChanged();\n } else {\n searchBuilder_.setMessage(builderForValue.build());\n }\n inputSourceCase_ = 10;\n return this;\n }", "@Override \n\t\tprotected void publishResults(CharSequence constraint, FilterResults results)\n\t\t{\n\t\t\t\n \n filteredData = (ArrayList<IndexEntry>) results.values;\n notifyDataSetChanged();\n \n if (callback != null){\n \tcallback.valuesFiltered();\n \tcallback = null;\n }\n \n\t\t}", "Optional<CriterionDocumentMasterDTO> partialUpdate(CriterionDocumentMasterDTO criterionDocumentMasterDTO);", "@Override\n protected void publishResults(CharSequence constraint, FilterResults results) {\n\n datamodels.clear();\n datamodels.addAll((Collection<? extends MapDataModel>) results.values);\n notifyDataSetChanged();\n }", "public GameList getSearchResult(){ return m_NewSearchResult;}", "void searchFinished (Search search);", "@Override\n protected void publishResults(CharSequence constraint, FilterResults results) {\n\n enquiryModels.clear();\n enquiryModels.addAll((List) results.values);\n notifyDataSetChanged();\n }", "@Override\n protected void onProgressUpdate(String... values) {\n wordMatches.getMatches().add(values[0]);\n //only update the UI for the first page or so of results\n if (wordMatches.getMatches().size()<=TABLE_MAX_COUNT_TO_RELOAD)\n {\n matchObservable.setValue(values[0]);\n }\n }", "public boolean setAllFighterSearchRank() {\n\n\n Field<Integer> rank = DSL.choose(EVENTS.ORGANIZATION_ID)\n .when(\"https://www.sherdog.com/organizations/Ultimate-Fighting-Championship-UFC-2\", 1)\n .when(\"https://www.sherdog.com/organizations/Ultimate-Fighting-Championship-UFC-2\", 2)\n .when(\"https://www.sherdog.com/organizations/Dream-1357\", 2)\n .when(\"https://www.sherdog.com/organizations/Strikeforce-716\", 2)\n .when(\"https://www.sherdog.com/organizations/Pride-Fighting-Championships-3\", 2)\n .when(\"https://www.sherdog.com/organizations/Bellator-MMA-1960\", 2)\n .when(\"https://www.sherdog.com/organizations/Invicta-Fighting-Championships-4469\", 3)\n .when(\"https://www.sherdog.com/organizations/One-Championship-3877\", 3)\n .otherwise(99)\n .as(\"rank\");\n\n SelectLimitPercentStep<Record1<Integer>> subQuery = DSL.selectDistinct(rank).from(FIGHTS)\n .join(EVENTS).on(FIGHTS.EVENT_ID.eq(EVENTS.SHERDOGURL))\n .where(FIGHTS.FIGHTER1_ID.eq(FIGHTERS.SHERDOGURL))\n .or(FIGHTS.FIGHTER2_ID.eq(FIGHTERS.SHERDOGURL))\n .orderBy(rank)\n .limit(1);\n\n\n getDsl().update(FIGHTERS)\n .set(FIGHTERS.SEARCH_RANK, subQuery).execute();\n\n\n// template.update(\"UPDATE fighters fi\\n\" +\n// \"SET search_rank = (\\n\" +\n// \" SELECT DISTINCT CASE e.organization_id\\n\" +\n// \" WHEN 'https://www.sherdog.com/organizations/Ultimate-Fighting-Championship-UFC-2'\\n\" +\n// \" THEN 1\\n\" +\n// \" WHEN 'https://www.sherdog.com/organizations/Dream-1357'\\n\" +\n// \" THEN 2\\n\" +\n// \" WHEN 'https://www.sherdog.com/organizations/Strikeforce-716'\\n\" +\n// \" THEN 2\\n\" +\n// \" WHEN 'https://www.sherdog.com/organizations/Pride-Fighting-Championships-3'\\n\" +\n// \" THEN 2\\n\" +\n// \" WHEN 'https://www.sherdog.com/organizations/Bellator-MMA-1960'\\n\" +\n// \" THEN 2\\n\" +\n// \" WHEN 'https://www.sherdog.com/organizations/Invicta-Fighting-Championships-4469'\\n\" +\n// \" THEN 3\\n\" +\n// \" WHEN 'https://www.sherdog.com/organizations/One-Championship-3877'\\n\" +\n// \" THEN 3\\n\" +\n// \" ELSE 99\\n\" +\n// \" END AS rank\\n\" +\n// \" FROM fights f\\n\" +\n// \" JOIN events e ON f.event_id = e.sherdogUrl\\n\" +\n// \" WHERE f.fighter1_id = fi.sherdogUrl OR\\n\" +\n// \" f.fighter2_id = fi.sherdogUrl\\n\" +\n// \" ORDER BY rank ASC\\n\" +\n// \" LIMIT 0, 1)\");\n\n\n getDsl().update(FIGHTERS)\n .set(FIGHTERS.SEARCH_RANK, DSL.ifnull(99, FIGHTERS.SEARCH_RANK))\n .execute();\n\n return true;\n }", "public search_result(search_result other) {\n if (other.isSetSuccess()) {\n this.success = new com.mkfree.apithrift.vo.SearchResultVO(other.success);\n }\n }", "private void executeSearch() {\n if (!view.getSearchContent().getText().isEmpty()) {\n SearchModuleDataHolder filter = SearchModuleDataHolder.getSearchModuleDataHolder();\n //set search content text for full text search\n filter.setSearchText(view.getSearchContent().getText());\n forwardToCurrentView(filter);\n } else {\n eventBus.showPopupNoSearchCriteria();\n }\n }", "public void performSearch() {\n History.newItem(MyWebApp.SEARCH_RESULTS);\n getMessagePanel().clear();\n if (keywordsTextBox.getValue().isEmpty()) {\n getMessagePanel().displayMessage(\"Search term is required.\");\n return;\n }\n mywebapp.getResultsPanel().resetSearchParameters();\n //keyword search does not restrict to spots\n mywebapp.addCurrentLocation();\n if (markFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(markFilterCheckbox.getValue());\n }\n if (contestFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setContests(contestFilterCheckbox.getValue());\n }\n if (geoFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setGeospatialOff(!geoFilterCheckbox.getValue());\n }\n if (plateFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(plateFilterCheckbox.getValue());\n }\n if (spotFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setSpots(spotFilterCheckbox.getValue());\n }\n String color = getValue(colorsListBox);\n mywebapp.getResultsPanel().getSearchParameters().setColor(color);\n String manufacturer = getValue(manufacturersListBox);\n if (manufacturer != null) {\n Long id = new Long(manufacturer);\n mywebapp.getResultsPanel().getSearchParameters().setManufacturerId(id);\n }\n String vehicleType = getValue(vehicleTypeListBox);\n mywebapp.getResultsPanel().getSearchParameters().setVehicleType(vehicleType);\n// for (TagHolder tagHolder : tagHolders) {\n// mywebapp.getResultsPanel().getSearchParameters().getTags().add(tagHolder);\n// }\n mywebapp.getResultsPanel().getSearchParameters().setKeywords(keywordsTextBox.getValue());\n mywebapp.getMessagePanel().clear();\n mywebapp.getResultsPanel().performSearch();\n mywebapp.getTopMenuPanel().setTitleBar(\"Search\");\n //mywebapp.getResultsPanel().setImageResources(resources.search(), resources.searchMobile());\n }", "public Builder clearSearchResponse() {\n if (searchResponseBuilder_ == null) {\n searchResponse_ = null;\n onChanged();\n } else {\n searchResponse_ = null;\n searchResponseBuilder_ = null;\n }\n\n return this;\n }", "public void update() {\n suggestions = model.getDebtRepaymentSuggestions();\n }", "public void setSearchResults(List<Visit> searchResults) {\n\t\tthis.searchResults = searchResults;\n\t}", "SearchResponse search(SearchRequest searchRequest) throws IOException;", "public void renewSearch(String newVal) {\n\t\tlistView.getSelectionModel().clearSelection();\n\t\tsearchItems.clear();\n\n\t\tif (newVal.equals(\"\")) {\n\t\t\tlistView.setItems(items);\n\t\t\tlog.info(\"All items are displayed\");\n\t\t} else {\n\n\t\t\tif (searchToggle.getSelectedToggle().equals(nameSearch)) {\n\t\t\t\titemsMap.forEach((a, b) -> {\n\t\t\t\t\tif (b.getName().toLowerCase().contains(newVal.toLowerCase())) {\n\t\t\t\t\t\tsearchItems.add(b);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tlog.info(\"Only items with '\" + newVal + \"' in their name are displayed\");\n\n\t\t\t} else if (searchToggle.getSelectedToggle().equals(amountSearch)) {\n\t\t\t\titemsMap.forEach((a, b) -> {\n\t\t\t\t\tif (String.valueOf(b.getAmount()).contains(newVal)) {\n\t\t\t\t\t\tsearchItems.add(b);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tlog.info(\"Only items with '\" + newVal + \"' as their amount are displayed\");\n\n\t\t\t} else if (searchToggle.getSelectedToggle().equals(barcodeSearch)) {\n\t\t\t\titemsMap.forEach((a, b) -> {\n\t\t\t\t\tif (b.getGtin().contains(newVal)) {\n\t\t\t\t\t\tsearchItems.add(b);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tlog.info(\"Only items with '\" + newVal + \"' in their barcode are displayed\");\n\n\t\t\t} else if (searchToggle.getSelectedToggle().equals(categorieSearch)) {\n\t\t\t\titemsMap.forEach((a, b) -> {\n\t\t\t\t\tfor (String cat : b.getCategories()) {\n\t\t\t\t\t\tif (cat.toLowerCase().contains(newVal.toLowerCase())) {\n\t\t\t\t\t\t\tsearchItems.add(b);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tlog.info(\"Only items with '\" + newVal + \"' in their categories are displayed\");\n\t\t\t}\n\n\t\t\tlistView.setItems(searchItems);\n\t\t}\n\t}", "SearchResult replace(SearchResult result, String replacement);", "public abstract void update(AbstractOrmEntity entityContainingChanges,\r\n\t Vector<String> searchCriterias) throws Exception;", "@Override\n\tpublic void changeCriterion(int index) {\n }", "private void searchHelper(ArrayList<SearchResult> results, String word, Map<String, SearchResult> track) {\n\t\tfor (String location : this.invertedIndex.get(word).keySet()) {\n\t\t\tif (track.containsKey(location)) {\n\t\t\t\ttrack.get(location).updateCount(word);\n\t\t\t} else {\n\t\t\t\tSearchResult result = new SearchResult(location);\n\t\t\t\tresult.updateCount(word);\n\t\t\t\ttrack.put(location, result);\n\t\t\t\tresults.add(result);\n\t\t\t}\n\t\t}\n\t}", "public void findDataFromServer() {\n try {\n JSONObject jsonObjectGetPostParameterEachScreen = null;\n PassParameterbean passParameterbean = null;\n if (pageTokenAvailable) {\n searchbean_post_data.setPageToken(pageToken);\n }\n\n if (TextUtils.isEmpty(baseTextview_searched_item.getText().toString())) {\n\n } else {\n String name = URLEncoder.encode(baseTextview_searched_item.getText().toString(), \"utf-8\");\n searchbean_post_data.setSearchText(name);\n }\n\n\n searchbean_post_data.setIsCommuntiySearchByName(\"1\");\n searchbean_post_data.setUser_id(commonSession.getLoggedUserID());\n requestParametersbean.setSearchbeanPassPostData(searchbean_post_data);\n\n jsonObjectGetPostParameterEachScreen = GetPostParameterEachScreen.getPostParametersAccordingIndex(ScreensEnums.SEARCH_BY_COMMUNITYNAME.getScrenIndex(), requestParametersbean);\n passParameterbean = new PassParameterbean(this, CommunitySearchByNameActivity.this, getApplicationContext(), URLs.SEARCH_BY_COMMUNITYNAME, jsonObjectGetPostParameterEachScreen, ScreensEnums.SEARCH_BY_COMMUNITYNAME.getScrenIndex(), CommunitySearchByNameActivity.class.getClass());\n\n\n /* requestParametersbean.setUserId(commonSession.getLoggedUserID());\n requestParametersbean.setStart_limit(current_start);\n\n jsonObjectGetPostParameterEachScreen = GetPostParameterEachScreen.getPostParametersAccordingIndex(ScreensEnums.FILTER_COMMUNITY.getScrenIndex(), requestParametersbean);\n passParameterbean = new PassParameterbean(this, CommunitySearchByNameActivity.this, getApplicationContext(), URLs.FILTERCOMMUNITY, jsonObjectGetPostParameterEachScreen, ScreensEnums.FILTER_COMMUNITY.getScrenIndex(), CommunitySearchByNameActivity.class.getClass());\n*/\n\n\n passParameterbean.setNoNeedToDisplayLoadingDialog(true);\n new RequestToServer(passParameterbean, retryParameterbean).execute();\n\n\n } catch (Exception e) {\n e.printStackTrace();\n new BaseException(e, false, retryParameterbean);\n }\n }", "public void update(Observable o, Object arg) {\n\t\t\n\t\t// for every element in the list of parsed incidents\n\t\tfor (int i = 0; i < parsedIncidents.size(); i++) {\n\t\t\t\n\t\t\t// set the element at that index in the JList model to that element\n\t\t\tjListModel.set(i, parsedIncidents.get(i));\n\t\t\t\n\t\t}\n\t\t\n\t}", "public SearchResponse search(SearchRequest request) throws SearchServiceException;", "JobResponse.Update update();", "private void processSearchButton() {\n try {\n //Stop a user from searching before a World exists to search\n if(this.world == null) {\n JOptionPane.showMessageDialog(null, \"You must read a data file first!\", \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n\n //Declarations\n StringBuilder searchResults;\n String searchCriteria;\n String unfoundItem;\n int dropDownSelection;\n\n //initialize\n searchResults = new StringBuilder();\n searchCriteria = this.searchCriteriaField.getText().trim().toLowerCase();\n unfoundItem = this.searchCriteriaField.getText().trim().toLowerCase();\n dropDownSelection = this.searchCriteriaBox.getSelectedIndex();\n\n //Stop users from searching before selecting and entering any search criteria\n if(searchCriteria.equals(\"\") || searchCriteriaBox.equals(0)) {\n JOptionPane.showMessageDialog(null, \"You must SELECT and ENTER the search criteria before searching!\", \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n\n //handle each dropdown selection\n switch(dropDownSelection) {\n case 0: //empty string to allow a blank default\n break;\n case 1: //by name\n for(Thing myThing : this.world.getAllThings()) {\n if (myThing.getName().toLowerCase().equals(searchCriteria)) {\n searchResults = new StringBuilder(myThing.getName() + \" \" + myThing.getIndex() + \" (\" + myThing.getClass().getSimpleName() + \")\");\n }\n } //end of forLoop for case 1\n if(searchResults.toString().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Search criteria '\" + unfoundItem + \"' does not exist in this World.\", \"Unknown Item\", JOptionPane.WARNING_MESSAGE);\n } else {\n JOptionPane.showMessageDialog(null, searchResults.toString());\n }\n break;\n case 2: //by index\n for(Thing myThing : this.world.getAllThings()) {\n if (myThing.getIndex() == Integer.parseInt(searchCriteria)) {\n searchResults = new StringBuilder(myThing.getName() + \" \" + myThing.getIndex() + \" (\" + myThing.getClass().getSimpleName() + \")\");\n }\n } //end of forLoop for case 2\n if(searchResults.toString().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Search criteria '\" + unfoundItem + \"' does not exist in this World.\", \"Unknown Item\", JOptionPane.WARNING_MESSAGE);\n } else {\n JOptionPane.showMessageDialog(null, searchResults.toString());\n }\n break;\n case 3: //by skill\n for(SeaPort mySeaPort : this.world.getPorts()) {\n for(Person myPerson : mySeaPort.getPersons()) {\n if(myPerson.getSkill().toLowerCase().equals(searchCriteria)) {\n searchResults.append(myPerson.getName()).append(\" \").append(myPerson.getIndex()).append(\" (\").append(myPerson.getClass().getSimpleName()).append(\")\\n Skill: \").append(myPerson.getSkill()).append(\"\\n\\n\");\n }\n }\n } //end of forLoop for case 3\n if(searchResults.toString().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Search criteria '\" + unfoundItem + \"' does not exist in this World.\", \"Unknown Item\", JOptionPane.WARNING_MESSAGE);\n } else {\n JOptionPane.showMessageDialog(null, searchResults.toString());\n }\n break;\n default: break;\n } //end of switch()\n } catch(Exception e5) {\n JOptionPane.showMessageDialog(null, \"Something went wrong in the search!\\n\\n\" + e5.getMessage(), \"Error\", JOptionPane.ERROR_MESSAGE);\n } //end of catch()\n }", "private void updateFilteredData() {\n\t\tswitch (currentTabScreen) {\n\t\tcase INVENTORY:\n\t\t\tpresentationInventoryData.clear();\n\n\t\t\tfor (RecordObj record: masterInventoryData) {\n\t\t\t\tif (matchesFilter(record)) {\n\t\t\t\t\tpresentationInventoryData.add(record);\n\t\t\t\t} // End if statement\n\t\t\t} // End for loop \n\t\t\tbreak;\n\t\tcase INITIAL:\n\t\t\tpresentationInitialData.clear();\n\n\t\t\tfor (RecordObj record: masterInitialData) {\n\t\t\t\tif (matchesFilter(record)) {\n\t\t\t\t\tpresentationInitialData.add(record);\n\t\t\t\t} // End if statement\n\t\t\t} // End for loop \n\t\t\tbreak;\n\t\tcase SEARCH:\n\t\t\tpresentationSearchData.clear();\n\n\t\t\tfor (RecordObj record: masterSearchData) {\n\t\t\t\tif (matchesFilter(record)) {\n\t\t\t\t\tpresentationSearchData.add(record);\n\t\t\t\t} // End if statement\n\t\t\t} // End for loop \n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}// End switch statement\n\t}", "@Override\n protected void publishResults(CharSequence constraint,\n FilterResults results) {\n\n list = (List<Person>) results.values;\n notifyDataSetChanged();\n }", "@RequestMapping({ \"/agent/enrollment/search/{view}\", \"/provider/search/{view}\" })\n public ModelAndView search(@ModelAttribute(\"criteria\") ProviderSearchCriteria criteria, @PathVariable String view,\n HttpServletResponse response) throws PortalServiceException {\n\n nocache(response);\n String signature = \"EnrollmentController#search(ProviderSearchCriteria criteria)\";\n LogUtil.traceEntry(getLog(), signature, new String[] { \"criteria\" }, new Object[] { criteria });\n\n if (criteria == null) {\n throw new IllegalArgumentException(\"A valid criteria must be provided.\");\n }\n\n return LogUtil.traceExit(getLog(), signature, doSearch(criteria, view));\n }", "void updateData();", "@Override\n public void processStimulus(Enumeration criteria) {\n quadParts.updateData(updater); // request an update of the geometry\n wakeupOn(timedelay);\n }", "@Override\n protected void executeUpdate(final String requestId, DSRequest request, final DSResponse response)\n {\n JavaScriptObject data = request.getData();\n final ListGridRecord rec = new ListGridRecord(data);\n ContactDTO testRec = new ContactDTO();\n copyValues(rec, testRec);\n service.update(testRec, new AsyncCallback<Void>()\n {\n @Override\n public void onFailure(Throwable caught)\n {\n response.setStatus(RPCResponse.STATUS_FAILURE);\n processResponse(requestId, response);\n SC.say(\"Contact Edit Save\", \"Contact edits have NOT been saved!\");\n }\n\n @Override\n public void onSuccess(Void result)\n {\n ListGridRecord[] list = new ListGridRecord[1];\n // We do not receive removed record from server.\n // Return record from request.\n list[0] = rec;\n response.setData(list);\n processResponse(requestId, response);\n SC.say(\"Contact Edit Save\", \"Contact edits have been saved!\");\n }\n });\n }", "public abstract void mergeToGlobalStats(SolrQueryRequest req,\n List<ShardResponse> responses);", "private void FetchSearchResult(String tag, String searchCriteria) {\n\t\t/** invoking the search call */\n\t\tmLog.info(\"Fetching Search Result\");\n\t\tspiceManager.execute(\n\t\t\t\tnew MVMediaSearchRequest(AppHelper\n\t\t\t\t\t\t.getToken(SearchActivity.this), tag, searchCriteria,\n\t\t\t\t\t\tmPageCount), Constants.CACHE_KEY_SEARCH_KEY,\n\t\t\t\tDurationInMillis.ALWAYS_EXPIRED, new MVSearchRequestListner(\n\t\t\t\t\t\tSearchActivity.this));\n\n\t}", "@Override\n public void success(CommentDisplayResponseModel campaignCommentEdit, Response response) {\n //If the succes matches with the value 1 then the corresponding row is modified\n //else corresponding row wont remove\n if ((\"1\").equals(campaignCommentEdit.getSuccess())) {\n listDialog.dismiss();\n dataResultsSearch.set(position, campaignCommentEdit.getResults().getData().get(0));\n prefrenceSearchCommentsCount = MApplication.loadArray(searchPollCommentsAdapterContext, searchcommentsCount, Constants.USER_POLL_COMMENTS_COUNT, Constants.USER_POLL_COMMENTS_SIZE); //Prefernce comment count is stored in array list\n prefrenceSearchCommentsCount.set(commentsCountSearchPosition, Integer.valueOf(campaignCommentEdit.getCount())); //Changing the particular position value\n MApplication.saveArray(searchPollCommentsAdapterContext, prefrenceSearchCommentsCount, Constants.USER_POLL_COMMENTS_COUNT, Constants.USER_POLL_COMMENTS_SIZE); //Saving again into the prefernce\n notifyDataSetChanged();//Notifies the attached observers that the underlying data has been changed\n // and any View reflecting the data set should refresh itself.\n }\n }", "private void executeSearchQuery(JsonObject json, HttpServerResponse response) {\n database.searchQuery(json, handler -> {\n if (handler.succeeded()) {\n LOGGER.info(\"Success: Search Success\");\n handleSuccessResponse(response, ResponseType.Ok.getCode(),\n handler.result().toString());\n } else if (handler.failed()) {\n LOGGER.error(\"Fail: Search Fail\");\n processBackendResponse(response, handler.cause().getMessage());\n }\n });\n }", "public Builder mergeSearchRequest(entities.Torrent.SearchRequest value) {\n if (searchRequestBuilder_ == null) {\n if (searchRequest_ != null) {\n searchRequest_ =\n entities.Torrent.SearchRequest.newBuilder(searchRequest_).mergeFrom(value).buildPartial();\n } else {\n searchRequest_ = value;\n }\n onChanged();\n } else {\n searchRequestBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "private String getData(SearchCriteria searchCriteria) throws Exception {\n log.debug(\"getData\");\n \tif (serviceURL == null) {\n log.warn(\"ServiceURL not configured. Add property with key\", PROPERTY_SERVICE_URL);\n return null;\n }\n\n // Language\n Locale locale = new Locale(searchCriteria.getLocale());\n String lang3 = locale.getISO3Language();\n\n StringBuffer buf = new StringBuffer(serviceURL);\n if (hasParam(searchCriteria, PARAM_LON) && hasParam(searchCriteria, PARAM_LAT)) {\n // reverse geocoding\n // Transform lon,lat\n String[] lonlat = elfParser.transformLonLat(searchCriteria.getParam(PARAM_LON).toString(), searchCriteria.getParam(PARAM_LAT).toString(), searchCriteria.getSRS());\n if (lonlat == null) {\n log.warn(\"Invalid lon/lat coordinates \", searchCriteria.getParam(PARAM_LON).toString(), \" \", searchCriteria.getParam(PARAM_LAT).toString() );\n return null;\n }\n String request = REQUEST_REVERSEGEOCODE_TEMPLATE.replace(KEY_LATITUDE_HOLDER, lonlat[1] );\n request = request.replace(KEY_LONGITUDE_HOLDER, lonlat[0] );\n request = request.replace(KEY_LANG_HOLDER, lang3);\n buf.append(request);\n\n } else if (hasParam(searchCriteria, PARAM_REGION)) {\n // Exact search limited to AU region - case sensitive - no fuzzy support\n String request = REQUEST_GETFEATUREAU_TEMPLATE.replace(KEY_PLACE_HOLDER, URLEncoder.encode(searchCriteria.getSearchString(), \"UTF-8\"));\n request = request.replace(KEY_AU_HOLDER, URLEncoder.encode(searchCriteria.getParam(PARAM_REGION).toString(), \"UTF-8\"));\n request = request.replace(KEY_LANG_HOLDER, lang3);\n buf.append(request);\n } else if (hasParam(searchCriteria, PARAM_FUZZY) && searchCriteria.getParam(PARAM_FUZZY).toString().equals(\"true\")) {\n // Fuzzy search\n buf.append(REQUEST_FUZZY_TEMPLATE.replace(KEY_LANG_HOLDER, lang3));\n buf.append(URLEncoder.encode(searchCriteria.getSearchString(), \"UTF-8\"));\n } else {\n // Exact search - case sensitive\n String request = REQUEST_GETFEATURE_TEMPLATE.replace(KEY_LANG_HOLDER, lang3);\n buf.append(request.replace(KEY_PLACE_HOLDER, URLEncoder.encode(searchCriteria.getSearchString(), \"UTF-8\")));\n }\n\n return IOHelper.readString(getConnection(buf.toString()));\n }", "public abstract void returnLocalStats(ResponseBuilder rb,\n SolrIndexSearcher searcher);", "@Override\n public Data3DPlastic search() {\n return super.search();\n }", "@Override\n protected void publishResults(CharSequence constraint, Filter.FilterResults results) {\n filtered = (List<Scenario>) results.values;\n notifyDataSetChanged();\n }", "@RequestMapping(method = RequestMethod.POST)\n\tpublic String processSearch(@ModelAttribute(\"search\") Search search) {\n\t\tSystem.out.println(\"SearchController.processSearch()\");\n\t\t\n\t\t// Retrieve search keyword\n\t\tString searchFor = search.getKeyword();\n\t\t\n\t\t// search & set results\n\t\tsearch.setResults(cat.findByKeyword(searchFor));\n\t\t\n\t\t// return to search results view\n\t\treturn \"searchResults\";\n\t}", "void remoteSearch(String groupId, String type, String attr, \n String value, int threshold, String serviceHandler, \n DiscoveryListener listener)\n \tthrows IOException\n {\n Query query = new Query(groupId, type, attr, value, \n serviceHandler,listener);\n \n queries.put(listener, query);\n \n\t //if resource not found in local cache\n\t String requestId = getNextRequestId();\n\t \n\t int urisize =0;\n\t EndpointAddress[] myURIs = peer.getURIList();\n\t \n\t if (myURIs != null)\n\t urisize = myURIs.length;\n\t \n\t Element[] elm = new Element[9 + urisize];\n\t //Element[] elm = new Element[9];\n\t \n\t\n\t elm[0] = new Element(Message.MESSAGE_TYPE_TAG, Message.REQUEST_SEARCH,\n\t Message.JXTA_NAME_SPACE);\n\t elm[1] = new Element(Message.TYPE_TAG, type, \n\t Message.JXTA_NAME_SPACE);\n\t elm[2] = new Element(Message.ATTRIBUTE_TAG, attr, \n\t Message.JXTA_NAME_SPACE);\n\t elm[3] = new Element(Message.VALUE_TAG, value, \n\t Message.JXTA_NAME_SPACE);\n\t elm[4] = new Element(Message.THRESHOLD_TAG, Integer.toString(threshold), \n\t Message.JXTA_NAME_SPACE);\n\t elm[5] = new Element(Message.REQUESTID_TAG, requestId, \n\t Message.JXTA_NAME_SPACE);\n\t elm[6] = new Element(Message.ID_TAG, peer.getID().toString(), \n\t Message.JXTA_NAME_SPACE);\n\t elm[7] = new Element(Message.GROUP_ID_TAG, groupId, \n\t Message.JXTA_NAME_SPACE);\n\t elm[8] = new Element(Message.HOPCOUNT_TAG, Integer.toString(DEFAULT_HOP_COUNT), \n\t Message.JXTA_NAME_SPACE);\n\t\n\t if (urisize > 0)\n\t {\n\t\t for (int i = 0; i < myURIs.length; i++)\n\t\t {\n\t\t EndpointAddress uri = myURIs[i];\n\t\t uri = new EndpointAddress(uri, serviceName, serviceHandler);\n\t\t elm[9 + i] = new Element(NamedResource.URITAG + String.valueOf(i), uri.toString().getBytes(),\n\t\t Message.JXTA_NAME_SPACE, null);\n\t\t }\n\t }\n\t \n\t send(elm, serviceHandler);\n }", "public void setResults(final Collection<? extends Result> newValues) {\n results = writeCollection(newValues, results, Result.class);\n }", "public UpdateResponse optimize(boolean waitFlush, boolean waitSearcher, int maxSegments) throws SolrServerException, IOException {\n return new UpdateRequest().setAction(UpdateRequest.ACTION.OPTIMIZE, waitFlush, waitSearcher, maxSegments).process( this );\n }", "protected abstract void onSearch(AjaxRequestTarget target, String searchString);", "public void treatmentSearch(){\r\n searchcb.getItems().addAll(\"treatmentID\",\"treatmentName\",\"medicineID\", \"departmentID\", \"diseaseID\");\r\n searchcb.setValue(\"treatmentID\");;\r\n }", "private void merge(ComicDataWrapper comicDataWrapper) {\n mComicDataWrapper.getData().getResults().addAll(comicDataWrapper.getData().getResults());\n mComicDataWrapper.getData().setOffset(comicDataWrapper.getData().getOffset());\n mComicDataWrapper.getData().setCount(mComicDataWrapper.getData().getCount() + comicDataWrapper.getData().getCount());\n }", "public SearchResponse<T, P> build(Pageable searchRequest, QueryResponse queryResponse) {\n // Create response\n SearchResponse<T, P> searchResponse = new SearchResponse<T, P>(searchRequest);\n searchResponse.setCount(queryResponse.getResults().getNumFound());\n searchResponse.setLimit(queryResponse.getResults().size());\n // The results and facets are copied into the response\n final List<ST> resultsST = queryResponse.getBeans(annotatedClass);\n // convert types\n final List<T> results = Lists.newArrayList();\n for (ST x : resultsST) {\n results.add(x);\n }\n searchResponse.setResults(results);\n searchResponse.setFacets(getFacetsFromResponse(queryResponse));\n setHighlightedFields(searchResponse, queryResponse);\n if(queryResponse.getSpellCheckResponse() != null){\n searchResponse.setSpellCheckResponse(SpellCheckResponseBuilder.build(queryResponse.getSpellCheckResponse()));\n }\n return searchResponse;\n }", "private Collection<Record> handleRequest(SearchRequest request) {\n\t\tCollection<Record> resultSet = getResults(request.getQuery());\n\t\treturn resultSet;\n\t}", "public String conductSearchForItem()\r\n\t{\r\n\t\tAdvancedSearch_Model query = new AdvancedSearch_Model();\r\n\t\t\r\n\t\tif (this.typeFilter.equals(\"Subject\"))\r\n\t\t{\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.CONTAIN, Constants.SEARCH_DOCUMENT_FIELD_CATEGORY, this.selectedItem.getTerm());\r\n\t\t}\r\n\t\tif (this.typeFilter.equals(\"Type\"))\r\n\t\t{\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.TERM_QUERY, Constants.SEARCH_DOCUMENT_FIELD_TYPE, this.selectedItem.getTerm());\r\n\t\t}\r\n\t\tif (this.typeFilter.equals(\"Creator\"))\r\n\t\t{\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.CONTAIN, Constants.SEARCH_DOCUMENT_FIELD_CREATOR, this.selectedItem.getTerm());\r\n\t\t}\r\n\t\tif (this.typeFilter.equals(\"Location\"))\r\n\t\t{\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.TERM_QUERY, Constants.SEARCH_DOCUMENT_FIELD_LOCATION,\r\n\t\t\t this.selectedItem.getTerm());\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.TERM_QUERY, Constants.SEARCH_DOCUMENT_FIELD_TYPE, this.selectedItem.getType());\r\n\t\t}\r\n\t\t\r\n\t\t// Set the AdvancedSearch_Model on the Search Backing Bean\r\n\t\tthis.searchBackingBean.setAdvancedQueryModel(query);\r\n\t\tthis.searchBackingBean.setSimpleOrAdvanced(SimpleOrAdvanced.ADVANCED);\r\n\t\tthis.searchBackingBean.setSearchType(\"all\");\r\n\t\tthis.searchBackingBean.autoSearch();\r\n\t\t\r\n\t\t// Transfer the user to the Search Results page\r\n\t\tthis.pageBackingBean.setRenderPage(Constants.PAGE_RESTRICTED_SEARCHRESULTS);\r\n\t\t\r\n\t\treturn \"update\";\r\n\t}", "public void search(Map<String, String> searchParam);", "private void refreshFilterData(){\n empty.setVisibility(View.GONE);\n adapter = new FoundRecyclerviewAdapter(FoundActivity.this, filteredData);\n v.setAdapter(adapter);\n emptyViewForFilter();\n }", "@Override\n public void onSearchTermChanged() {\n }", "private void configureViewModel(){\n viewModel = ViewModelProviders.of(this, viewModelFactory).get(SearchViewModel.class);\n\n //viewModel.init(binding.etSearchQuery.getText().toString());\n\n viewModel.getSearchResults().observe(this, searchResponse -> {\n\n // Update UI here\n\n if(searchResponse != null && searchResponse.getSearchResults() != null && searchResponse.getSearchResults().size() > 0) {\n\n SearchResultRvAdapter rvAdapter = new SearchResultRvAdapter(searchResponse.getSearchResults());\n binding.rvRepos.setAdapter(rvAdapter);\n }\n\n });\n }", "private void enterSearchMode(String resultContent) {\n\n\t\tthis.removeAll();\n\n\t\tJLabel welcomeLabel = new JLabel(\"Search the word you want to modify.\");\n\t\twelcomeLabel.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, 17));\n\t\tGridBagConstraints welcomeC = new GridBagConstraints();\n\t\twelcomeC.anchor = GridBagConstraints.CENTER;\n\t\twelcomeC.gridwidth = 2;\n\t\twelcomeC.weighty = 5;\n\t\twelcomeC.gridy = 0;\n\t\tthis.add(welcomeLabel, welcomeC);\n\n\t\tAction submit = new AbstractAction() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsubmitSearch(searchBox.getText());\n\t\t\t}\n\t\t};\n\n\t\tsearchBox = new JTextField();\n\t\tsearchBox.addActionListener(submit);\n\t\tGridBagConstraints sboxC = new GridBagConstraints();\n\t\tsboxC.fill = GridBagConstraints.HORIZONTAL;\n\t\tsboxC.weightx = 4;\n\t\tsboxC.weighty = 1;\n\t\tsboxC.gridx = 0;\n\t\tsboxC.gridy = 1;\n\t\tsboxC.insets = new Insets(0, 20, 0, 10);\n\t\tthis.add(searchBox, sboxC);\n\n\t\tJButton submitButton = new JButton(\"Search\");\n\t\tsubmitButton.addActionListener(submit);\n\t\tGridBagConstraints submitC = new GridBagConstraints();\n\t\tsubmitC.weightx = 0;\n\t\tsubmitC.gridx = 1;\n\t\tsubmitC.gridy = 1;\n\t\tsubmitC.anchor = GridBagConstraints.EAST;\n\t\tsubmitC.insets = new Insets(0, 0, 0, 30);\n\t\tthis.add(submitButton, submitC);\n\n\t\tresult = new JLabel(resultContent);\n\t\tresult.setFont(new Font(\"\", Font.ITALIC, 14));\n\t\tGridBagConstraints resultC = new GridBagConstraints();\n\t\tresultC.fill = GridBagConstraints.BOTH;\n\t\tresultC.weighty = 5;\n\t\tresultC.gridy = 8;\n\t\tresultC.gridwidth = 3;\n\t\tresultC.anchor = GridBagConstraints.WEST;\n\t\tresultC.insets = new Insets(0, 40, 0, 0);\n\t\tthis.add(result, resultC);\n\n\t\tthis.repaint();\n\n\t}", "@Override\r\n public final void update() {\r\n\r\n logger.entering(this.getClass().getName(), \"update\");\r\n\r\n setFilterMap();\r\n\r\n logger.exiting(this.getClass().getName(), \"update\");\r\n\r\n }", "public void onResponseReceived(Request request,\n\t\t\t\t\t\tResponse response) {\n\t\t\t\t\tint statusCode = response.getStatusCode();\n\t\t\t\t\tif (statusCode == 200) {\n\t\t\t\t\t\tString[] airportList = response.getText().split(\"\\n\");\n\n\t\t\t\t\t\tMultiWordSuggestOracle oracle = new MultiWordSuggestOracle();\n\t\t\t\t\t\toracle.addAll(Arrays.asList(airportList));\n\n\t\t\t\t\t\tairportSuggestBoxFrom = new SuggestBox(oracle);\n\t\t\t\t\t\tairportSuggestBoxTo = new SuggestBox(oracle);\n\t\t\t\t\t\tfTable.setWidget(0, 1, airportSuggestBoxFrom);\n\t\t\t\t\t\tfTable.setWidget(1, 1, airportSuggestBoxTo);\n\t\t\t\t\t}\n\t\t\t\t}", "private void searchExec(){\r\n\t\tString key=jComboBox1.getSelectedItem().toString();\r\n\t\tkey=NameConverter.convertViewName2PhysicName(\"Discount\", key);\r\n\t\tString valueLike=searchTxtArea.getText();\r\n\t\tList<DiscountBean>searchResult=discountService.searchDiscountByKey(key, valueLike);\r\n\t\tjTable1.setModel(ViewUtil.transferBeanList2DefaultTableModel(searchResult,\"Discount\"));\r\n\t}", "public void setUpdateData() {\n positionFenceToUpdateinController = Controller.getPositionFenceInArrayById(this.idFenceToUpdate);\n if(positionFenceToUpdateinController >= 0) {\n Fence fence = Controller.fences.get(positionFenceToUpdateinController);\n ((MainActivity)getActivity()).getSupportActionBar().setTitle(Constant.TITLE_VIEW_UPDATE_FENCE + \": \" + fence.getName());\n this.nameFence.setText(fence.getName());\n this.addressFence.setText(fence.getAddress());\n this.cityFence.setText(fence.getCity());\n this.provinceFence.setText(fence.getProvince());\n this.numberFence.setText(fence.getNumber());\n this.textSMSFence.setText(fence.getTextSMS());\n int index = (int)Constant.SPINNER_RANGE_POSITIONS.get(fence.getRange());\n this.spinnerRange.setSelection(index);\n this.spinnerEvent.setSelection(fence.getEvent());\n }\n }", "public void searchValue(ActionEvent actionEvent) {\n RadioButton selectedRadioButton = (RadioButton) radioSelector.getSelectedToggle();\n String toogleGroupValue = selectedRadioButton.getText();\n boolean valueSearch = false;\n if (toogleGroupValue.equals(\"Value\")) {\n valueSearch = true;\n }\n String text = searchText.getText();\n DataBase dataBase = new DataBase(file);\n ArrayList <KeyValue> data = dataBase.searchData(text, valueSearch);\n tableKeyValue.getItems().clear();\n if (data.size() > 0) {\n this.list.addAll(data);\n }\n\n }", "List<SearchResult> search(SearchQuery searchQuery);", "abstract Integer processUpdateQuery(String collectionName, ArrayList<HashMap<String,Object>> data, boolean isNew);", "private JsonObject search(JsonObject request) {\n\t\t\tJsonObject result = new JsonObject();\n\t\t\tJsonArray artists = new JsonArray();\n\t\t\tJsonArray titles = new JsonArray();\n\t\t\tJsonArray tags = new JsonArray();\n\t\t\tJsonArray arSimilars = new JsonArray();\n\t\t\tJsonArray tiSimilars = new JsonArray();\n\t\t\tJsonArray taSimilars = new JsonArray();\n\t\t\t//Individually search by artist, by title and by tag. \n\t\t\tartists = request.getAsJsonArray(\"searchByArtist\");\n\t\t\ttitles = request.getAsJsonArray(\"searchByTitle\");\n\t\t\ttags = request.getAsJsonArray(\"searchByTag\");\n\t\t\t//If the request contains \"artist\", we search each artist's similar song, and add it to a JsonArray.\n\t\t\tif(artists != null && artists.size() >= 1) {\n\t\t\t\tfor(JsonElement artist: artists) {\n\t\t\t\t\tarSimilars.add(this.sl.searchByArtist(artist.getAsString()));\t\n\t\t\t\t}\n\t\t\t\t//We add the JsonArray to result, associated with \"searchByArtist\".\n\t\t\t\tresult.add(\"searchByArtist\", arSimilars);\n\t\t\t}\n\t\t\t//If the request contains \"tag\", we search each tag's similar song, and add it to a JsonArray.\n\t\t\tif(tags != null && tags.size() >= 1) {\n\t\t\t\tfor(JsonElement tag: tags) {\t\t\t\t\n\t\t\t\t\ttaSimilars.add(this.sl.searchByTag(tag.getAsString()));\t\t\t\t\n\t\t\t\t}\n\t\t\t\t//We add the JsonArray to result, associated with \"searchByTag\".\n\t\t\t\tresult.add(\"searchByTag\", taSimilars);\n\t\t\t}\t\t\n\t\t\t//If the request contains title, we search each title's similar song, and add it to a JsonArray\n\t\t\tif(titles != null && titles.size() >= 1) {\t\t\t\n\t\t\t\tfor(JsonElement title: titles) {\n\t\t\t\t\ttiSimilars.add(this.sl.searchByTitle(title.getAsString()));\n\t\t\t\t}\n\t\t\t\t//We add the JsonArray to result, associated with \"searchByTiltle\".\n\t\t\t\tresult.add(\"searchByTitle\", tiSimilars);\n\t\t\t}\n\t\t\treturn result;\n\t\t}", "public void updateActivarGestionStock(Map criteria);" ]
[ "0.5388905", "0.5217741", "0.5203458", "0.51337713", "0.5123966", "0.5106701", "0.50754076", "0.5072813", "0.50608605", "0.5057221", "0.5048655", "0.49933058", "0.49858", "0.49815243", "0.49714527", "0.49550968", "0.4953637", "0.49105072", "0.49067742", "0.49046335", "0.48967266", "0.48655623", "0.48531312", "0.48520187", "0.48208794", "0.4800162", "0.47932348", "0.4787783", "0.47768638", "0.47715065", "0.4770411", "0.47669804", "0.4758759", "0.47446537", "0.47230893", "0.47049388", "0.46690297", "0.46620873", "0.46572554", "0.46569496", "0.46501037", "0.46483555", "0.46455792", "0.4640832", "0.46366152", "0.46340314", "0.4629705", "0.4629161", "0.46245915", "0.4620891", "0.46127477", "0.46092704", "0.45933023", "0.45809847", "0.4573672", "0.4573586", "0.45705125", "0.456933", "0.45657456", "0.45592993", "0.45560125", "0.4554908", "0.45540512", "0.45508263", "0.4537269", "0.4533694", "0.4529836", "0.45296055", "0.45294842", "0.45275092", "0.45257083", "0.45145705", "0.45138764", "0.4507827", "0.450712", "0.4498462", "0.44981572", "0.44905624", "0.44864005", "0.44817775", "0.44753477", "0.4473523", "0.4471703", "0.44688654", "0.44675896", "0.4460203", "0.4455301", "0.44542742", "0.44541386", "0.4451452", "0.4439657", "0.4437174", "0.4437121", "0.44291404", "0.44290063", "0.44247016", "0.44198853", "0.4419758", "0.44182763", "0.44082358" ]
0.77667564
0
Gets accommodation offering facade.
protected AccommodationOfferingFacade getAccommodationOfferingFacade() { return accommodationOfferingFacade; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Offer getOffer();", "AccommodationModel findAccommodationForAccommodationOffering(String accommodationOfferingCode, String accommodationCode);", "protected AccommodationOfferingSearchPipelineManager getAccommodationOfferingSearchPipelineManager()\n\t{\n\t\treturn accommodationOfferingSearchPipelineManager;\n\t}", "List<AccommodationModel> findAccommodationForAccommodationOffering(String accommodationOfferingCode);", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getBookOffering();", "public DealOffer getDealOffer() {\n return dealOffer;\n }", "List<AccommodationModel> findAccommodationForAccommodationOfferingAndCatalog(String accommodationOfferingCode,\n\t\t\tString catalogVersion);", "@Override\n public IOffer getOffer() {\n return offer;\n }", "public String marketplaceOffer() {\n return this.marketplaceOffer;\n }", "public abstract Alliance getAlliance();", "com.google.cloud.channel.v1.PurchasableOffer getPurchasableOffers(int index);", "ProductPlan getProductPlan();", "@Required\n\tpublic void setAccommodationOfferingFacade(final AccommodationOfferingFacade accommodationOfferingFacade)\n\t{\n\t\tthis.accommodationOfferingFacade = accommodationOfferingFacade;\n\t}", "private CloudStackServiceOffering getCSServiceOfferingId(String instanceType) throws Exception {\n try {\n if (instanceType == null)\n instanceType = \"m1.small\"; // default value\n List<CloudStackServiceOffering> serviceOfferings = getApi().listServiceOfferings(null, null, false, null, instanceType, null, null);\n return serviceOfferings.get(0);\n } catch (Exception e) {\n logger.error(\"Error while retrieving ServiceOffering information by name - \", e);\n throw new Exception(\"No ServiceOffering found to be defined by name\");\n }\n }", "public interface Offer {\r\n\t/**\r\n\t * information about provider \r\n\t * @return\r\n\t */\r\n\tOperationUser getOfferProvider();\r\n\r\n\t/**\r\n\t * short description of offer\r\n\t * @return\r\n\t */\r\n\tString getOfferSummary();\r\n}", "public LoanAccounting getAccounting();", "public Object ae() {\n try {\n return this.ad.newInstance();\n } catch (IllegalAccessException | InstantiationException e) {\n throw new RuntimeException();\n }\n }", "@Override\r\n\tpublic String getFortune() {\n\t\treturn service.getFortuneService();\r\n\t}", "private static OfferDAO getOfferDAO() {\n DbConnection dbConnection = new DbConnection();\n DBI dbi = dbConnection.getDBConnection();\n OfferDAO offerDAO = dbi.onDemand(OfferDAO.class);\n return offerDAO;\n }", "public double getCost() {\n\t\tif (this.accommodationType.equals(TYPEsingle)) {\n\t\t\tif (this.getRoomView().equals(\"street view\")) {\n\t\t\t\treturn 50.0;\n\t\t\t} else if (this.getRoomView().equals(\"garden view\")) {\n\t\t\t\treturn 70.0;\n\t\t\t} else {\n\t\t\t\treturn 110.0;\n\t\t\t}\n\t\t} else if (this.accommodationType.equals(TYPEdouble)) {\n\t\t\tif (this.getRoomView().equals(\"street view\")) {\n\t\t\t\treturn 70.0;\n\t\t\t} else if (this.getRoomView().equals(\"garden view\")) {\n\t\t\t\treturn 98.0;\n\t\t\t} else {\n\t\t\t\treturn 154.0;\n\t\t\t}\n\t\t} else if (this.accommodationType.equals(TYPEfamily)) {\n\t\t\tif (this.getRoomView().equals(\"street view\")) {\n\t\t\t\treturn 86.0;\n\t\t\t} else if (this.getRoomView().equals(\"garden view\")) {\n\t\t\t\tif (getInfoJacuzzi() == true) {\n\t\t\t\t\treturn 180.6;\n\t\t\t\t} else {\n\t\t\t\t\treturn 120.4;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (getInfoJacuzzi() == true) {\n\t\t\t\t\treturn 283.8;\n\t\t\t\t} else {\n\t\t\t\t\treturn 189.2;\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (this.accommodationType.equals(TYPEpresidential)) {\n\t\t\tif (this.getRoomView().equals(\"street view\")) {\n\t\t\t\treturn 200.0;\n\t\t\t} else if (this.getRoomView().equals(\"garden view\")) {\n\t\t\t\tif (getInfoJacuzzi() == true) {\n\t\t\t\t\treturn 420.0;\n\t\t\t\t} else {\n\t\t\t\t\treturn 280.0;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (getInfoJacuzzi() == true) {\n\t\t\t\t\treturn 660.0;\n\t\t\t\t} else {\n\t\t\t\t\treturn 440.0;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\treturn 0.0;\n\t\t}\n\t}", "public static List<Offer> offerList() {\n OfferDAO offerDAO = getOfferDAO();\n List<Offer> offerList = offerDAO.offerList();\n return offerList;\n }", "public static Booking getBooking() {\n return sBooking;\n }", "public Contract getOf()\n\t{\n\t\treturn of;\n\t}", "public Hotel getHotel() {\n return hotel;\n }", "public Hotel getHotel() {\n return hotel;\n }", "public Offer getOfferById(Integer item_id) {\n\t\treturn offerDao.getById(item_id);\n\t}", "public Object ai() {\n try {\n return this.ad.newInstance();\n } catch (IllegalAccessException | InstantiationException e) {\n throw new RuntimeException();\n }\n }", "@Override\n\tpublic PartnerUsageSummary get()\n\t{\n\t\treturn this.getPartner().getServiceClient().get(\n\t\t\tthis.getPartner(),\n\t\t\tnew TypeReference<PartnerUsageSummary>(){}, \n\t\t\tPartnerService.getInstance().getConfiguration().getApis().get(\"GetPartnerUsageSummary\").getPath());\n\t}", "public String getBestSeller ()\n {\n return (bestSeller);\n }", "public ProductOffering name(String name) {\n this.name = name;\n return this;\n }", "public void addOffering (Offering theOffering) {\r\n\t\tofferingList.add(theOffering);\r\n\t\t\r\n\t}", "public static ColaProdAndes getInstance() {\n\t\tif (instance == null)\n\t\t\tinstance = new ColaProdAndes();\n\t\treturn instance;\n\t}", "public PricingModel getPricingModel()\r\n\t{\r\n\t\treturn pricingModel;\r\n\t}", "public IAlgo getAlgo();", "public ArrayList<Offer> getFittedOffers(){\r\n\t\treturn this.FittedOffers;\r\n\t}", "@Override\n\tpublic List<DemandeAcquisition> getDemandeAcquisitionByClient() {\n\t\treturn demandeacquisitiondao.getDemandeAcquisitionByClient();\n\t}", "@Override\n\tpublic String getOffer() {\n\t\treturn \"Get 10% of on your next purchase\";\n\t}", "public SavingsOpportunity getSavingsOpportunity() {\n return this.savingsOpportunity;\n }", "@Override\n\tpublic RacingBike get() {\n\t\tSystem.out.println(\"Inside get method of provider class!!!\");\n\t\treturn new ApacheRR310();\n\t}", "public BigDecimal getAgencyProfit() {\r\n return agencyProfit;\r\n }", "public Via getViaComienzo() {\n\t\treturn viaComienzo;\n\t}", "protected NDCTransportOfferingService getNdcTransportOfferingService()\n\t{\n\t\treturn ndcTransportOfferingService;\n\t}", "java.util.List<com.google.cloud.channel.v1.PurchasableOffer> \n getPurchasableOffersList();", "public Equipe getEquipe() {\n return equipe;\n }", "public synchronized AdvertisingInfo getAdvertisingInfo() {\n if (!this.fetchedAdvertisingInfo) {\n this.advertisingInfo = this.advertisingInfoProvider.getAdvertisingInfo();\n this.fetchedAdvertisingInfo = true;\n }\n return this.advertisingInfo;\n }", "AddonRecommendation getAddonRecommendation();", "@Override\n\tpublic List<ApartmentListing> getApartments() {\n\t\treturn apartmentListingRepository.findAll();\n\t}", "public AccommodationPledgeBo getAccommodationPledgeBo(){\n \treturn this.accommodationPledgeBo;\n }", "public Equipo getEquipo() {\n return equipo;\n }", "protected FreeColClient getFreeColClient() {\n return freeColClient;\n }", "public Pricing getPricingForId(int productId);", "protected OwRenditionServiceProvider getRenditionServiceProvider()\r\n {\r\n return getContext().getRegisteredInterface(OwRenditionServiceProvider.class);\r\n }", "@Override\n\tpublic DataTablesResponseInfo getSupplier() {\n\t\tDataTablesResponseInfo info = new DataTablesResponseInfo();\n\t\tinfo.setData(purchaseDao.getSupplier());\n\t\treturn info;\n\t}", "public tudresden.ocl20.core.jmi.uml15.core.Association getAssociation()\n {\n \tModelFacade instance = ModelFacade.getInstance(this.refOutermostPackage().refMofId());\n \tif (instance != null && \n \t\tinstance.isRepresentative(this.refMofId())&&\n \t\tinstance.hasRefObject(this.refMofId()))\n \t{ \t\t\n \t\treturn instance.getAssociation(this.refMofId());\n \t} \n \t\n\t\treturn super_getAssociation();\t\n }", "com.google.ads.googleads.v6.resources.BillingSetup getBillingSetup();", "public String getAccommodationType() {\n\t\tswitch (this.accommodationType) {\n\t\tcase (TYPEsingle):\n\t\t\treturn TYPEsingle;\n\t\tcase (TYPEdouble):\n\t\t\treturn TYPEdouble;\n\n\t\tcase (TYPEfamily):\n\t\t\treturn TYPEfamily;\n\n\t\tcase (TYPEpresidential):\n\t\t\treturn TYPEpresidential;\n\t\tdefault:\n\t\t\treturn \"error\";\n\t\t}\n\t}", "@Override\n public Productor getProductor() {\n return new ProductorImp1();\n }", "public String[] getOffers() {return offers;}", "public Enterprise getOwnerEnterprise() {\n if (!isReserved()) {\n return null;\n }\n\n EnterpriseDto enterprise = context.getApi().getEnterpriseApi()\n .getEnterprise(target.getIdFromLink(ParentLinkName.ENTERPRISE));\n\n return wrap(context, Enterprise.class, enterprise);\n }", "public Empresa getEmpresa() {\n\t\treturn producto.getEmpresa();\n\t}", "public BwCalSuiteWrapper getCalSuite() {\n return calSuite;\n }", "public com.hps.july.persistence.OrganizationAccessBean getOrganization() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n instantiateEJB();\n com.hps.july.persistence.Organization localEJBRef = ejbRef().getOrganization();\n if ( localEJBRef != null )\n return new com.hps.july.persistence.OrganizationAccessBean(localEJBRef);\n else\n return null;\n }", "public String getAgency() {\r\n return agency;\r\n }", "public SchoolOfferNss withSchoolOffer() {\r\n _query.doNss(new SchoolAplicantCQ.NssCall() { public ConditionQuery qf() { return _query.querySchoolOffer(); }});\r\n\t\treturn new SchoolOfferNss(_query.querySchoolOffer());\r\n }", "public static HospitalProfessionalsHelper getHospitalProfessionalHelper() {\n return hospitalProfessionalsHelper;\n }", "java.lang.String getSeller();", "public String getBestofferenabled() {\r\n return bestofferenabled;\r\n }", "public Purse getPurse(){\n return purses.get(0);\n }", "AdPartner getAdDefaultPartner();", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public List<Officer> getOfficer() {\n return officerDao.listar(); \n }", "com.google.ads.googleads.v6.resources.HotelPerformanceView getHotelPerformanceView();", "ExternalInterface getPartnerSideA();", "public ProductOffering id(String id) {\n this.id = id;\n return this;\n }", "private static AvailEntry getAvailEntry(String key) {\n AvailEntry ae = null;\n Map lcache = null;\n if (GET_AVAILABLE_CACHE != null) {\n lcache = (Map) GET_AVAILABLE_CACHE.get();\n if (lcache != null) {\n ae = (AvailEntry) lcache.get(key);\n }\n }\n\n if (ae == null) {\n ae = new AvailEntry(key);\n if (lcache == null) {\n lcache = new HashMap();\n lcache.put(key, ae);\n GET_AVAILABLE_CACHE = new SoftReference(lcache);\n } else {\n lcache.put(key, ae);\n }\n }\n\n return ae;\n }", "IBooking getSeatonHold(String seatHoldId, String customerEmail) throws BookingNotAvailableException;", "@JsonIgnore public String getMealService() {\n return (String) getValue(\"mealService\");\n }", "@NotNull\n @Contract(pure = true)\n public Arena getArena() {\n return arena;\n }", "String getOfferSummary();", "public EPPService getService() {\n\t\treturn service;\n\t}", "public Cafe getCafe() {\n return cafe;\n }", "public java.lang.String getExternalPricingPer() {\n return externalPricingPer;\n }", "public static Elevator getInstance() {\r\n return instance;\r\n }", "Object getProduct();", "Acquest getAcquest(int Acquest_id);", "@Override\r\n\tpublic String getFortune() {\n\t\t\r\n\t\treturn fortuneService.getFortune();\r\n\t}", "public List<Office> getNearbyOffices() {\n return nearbyOffices;\n }", "public interface CatalogueClient {\n\n\tList<Exoplanet> getCatalogue();\n\n}", "public List<Adventurer> getAdventurers() {\n return adventurers;\n }", "public Reference serviceProvider() {\n return getObject(Reference.class, FhirPropertyNames.PROPERTY_SERVICE_PROVIDER);\n }", "protected OjbCollectionHelper getOjbCollectionHelper() {\r\n if (ojbCollectionHelper == null) {\r\n ojbCollectionHelper = KNSServiceLocator.getOjbCollectionHelper();\r\n }\r\n\r\n return ojbCollectionHelper;\r\n }", "public ExpoEAO getExpoEAO()\n {\n return expoEAO;\n }", "public List<String> getAVEquipmentList() {\r\n\t\treturn AVEquipmentList;\r\n\t}", "private BillingPeriod getBillingPeriod() {\n\t\treturn (BillingPeriod) this.getBean();\n\t}", "@Generated\n public Anexo getAnexo() {\n Long __key = this.anexoId;\n if (anexo__resolvedKey == null || !anexo__resolvedKey.equals(__key)) {\n __throwIfDetached();\n AnexoDao targetDao = daoSession.getAnexoDao();\n Anexo anexoNew = targetDao.load(__key);\n synchronized (this) {\n anexo = anexoNew;\n \tanexo__resolvedKey = __key;\n }\n }\n return anexo;\n }", "public DesignCommercialElements getDesignCommercialAccess() {\n\t\treturn pDesignCommercial;\n\t}", "public BigDecimal getORG_PROFIT_AMT() {\r\n return ORG_PROFIT_AMT;\r\n }", "public BigDecimal getAgencyFee() {\r\n return agencyFee;\r\n }", "ReservationPackage getReservationPackage();", "private static TasOffer getTasOffer(SupportOrder supportOrder) throws ManagerBeanException{\r\n\t\tTasOffer tasOffer = null;\r\n\t\tIManagerBean tasOfferBean = BeanManager\r\n\t\t\t\t.getManagerBean(TasOffer.class);\r\n\t\tCriteria tasOfferCriteria = new Criteria();\r\n\t\ttasOfferCriteria.addEqualExpression(tasOfferBean\r\n\t\t\t\t.getFieldName(ITasCommercialAlias.TAS_OFFER_SUPPORT_ORDER_ID), supportOrder.getId());\r\n\t\tIterator iter = tasOfferBean\r\n\t\t\t\t.getList(tasOfferCriteria).iterator();\r\n\t\tif(iter.hasNext()){\r\n\t\t\ttasOffer = (TasOffer) iter.next();\r\n\t\t}\r\n\t\treturn tasOffer;\r\n\t}", "public List<ProductDetails> retrieveOffersWithOfferType()\n\t\t\tthrows MISPException {\n\n\t\tlogger.entering(\"retrieveOffersWithOfferType\");\n\n\t\tList<ProductDetails> productsList = null;\n\n\t\ttry {\n\n\t\t\tproductsList = this.offerDetailsMgr.retrieveOffersWithOfferType();\n\n\t\t} catch (DBException exception) {\n\n\t\t\tlogger.error(\n\t\t\t\t\t\"An exception occured while retrieving offer Details.\",\n\t\t\t\t\texception);\n\t\t\tthrow new MISPException(exception);\n\t\t}\n\n\t\tlogger.exiting(\"retrieveOffersWithOfferType\", productsList);\n\n\t\treturn productsList;\n\n\t}" ]
[ "0.6656526", "0.64162743", "0.6338772", "0.6181529", "0.59185076", "0.5761924", "0.56531584", "0.54673535", "0.54353666", "0.5372721", "0.536121", "0.5299956", "0.52222246", "0.5220617", "0.52056473", "0.51702183", "0.516187", "0.51393545", "0.51174086", "0.5113514", "0.5067521", "0.50671315", "0.5066925", "0.50292176", "0.50292176", "0.5013447", "0.50125396", "0.49954888", "0.49836072", "0.49564677", "0.4951585", "0.49496037", "0.49029216", "0.4891621", "0.48908284", "0.4889822", "0.4885911", "0.48773053", "0.48766142", "0.48726532", "0.48678136", "0.48643294", "0.48499498", "0.48410025", "0.4833504", "0.48333383", "0.48322406", "0.48278475", "0.48019767", "0.48016474", "0.47928917", "0.47888514", "0.47862858", "0.4782324", "0.47731033", "0.47689626", "0.47687912", "0.47687778", "0.47686362", "0.47623098", "0.47576064", "0.4751967", "0.47497395", "0.4746231", "0.4745013", "0.47425961", "0.47403878", "0.4737376", "0.47368553", "0.4733069", "0.47329974", "0.47322965", "0.47266975", "0.47243616", "0.4718932", "0.47143546", "0.47142112", "0.4702393", "0.46958917", "0.46933424", "0.46897933", "0.46895063", "0.46846417", "0.46774375", "0.467503", "0.46712884", "0.46647385", "0.46645445", "0.465792", "0.46558762", "0.46514162", "0.4640752", "0.46325183", "0.463085", "0.46287885", "0.46272215", "0.4614724", "0.46040034", "0.46025696", "0.45978883" ]
0.78523445
0
Sets accommodation offering facade.
@Required public void setAccommodationOfferingFacade(final AccommodationOfferingFacade accommodationOfferingFacade) { this.accommodationOfferingFacade = accommodationOfferingFacade; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected AccommodationOfferingFacade getAccommodationOfferingFacade()\n\t{\n\t\treturn accommodationOfferingFacade;\n\t}", "public void setOfferingDao(PriceMapOfferingEntityDao offeringDao) {\n this.offeringDao = offeringDao;\n }", "public void setBookOffering(java.lang.String value);", "public ProductOffering name(String name) {\n this.name = name;\n return this;\n }", "public DataResourceBuilder _contractOffer_(ContractOffer _contractOffer_) {\n this.dataResourceImpl.getContractOffer().add(_contractOffer_);\n return this;\n }", "public void addOffering (Offering theOffering) {\r\n\t\tofferingList.add(theOffering);\r\n\t\t\r\n\t}", "protected void setAppraisalPrice(double ap) {\n \tappraisalPrice = ap;\n }", "Offer getOffer();", "protected AccommodationOfferingSearchPipelineManager getAccommodationOfferingSearchPipelineManager()\n\t{\n\t\treturn accommodationOfferingSearchPipelineManager;\n\t}", "@Autowired\n\tpublic OptionMarketCoach(FortuneService fortuneService) {\n\t\tthis.fortuneService = fortuneService;\n\t}", "public ProductOffering id(String id) {\n this.id = id;\n return this;\n }", "AccommodationModel findAccommodationForAccommodationOffering(String accommodationOfferingCode, String accommodationCode);", "@Test\n public void testSetOffer() {\n \n assertNull(o2.getOffer());\n o2.setOffer(\"testOffer2\");\n assertNotNull(o2.getOffer());\n assertEquals(\"testOffer2\", o2.getOffer());\n }", "public ProductOffering href(String href) {\n this.href = href;\n return this;\n }", "public synchronized void setOption(OptionSet optSet_Temp,String name,float price){\n optSet_Temp.Increase_Option_Manager(name.toUpperCase(Locale.getDefault()), price);\n }", "public void setEquipe(Equipe equipe) { // verif 1 ou 2\r\n\t\tthis.equipe = equipe;\r\n\t}", "public void establishDealOffer() {\n DealOffer offer = new DealOffer();\n \n int moneyToOffer = (Integer)this.playersMoneyMap.get(currentPlayer).getValue();\n offer.offerCash(moneyToOffer);\n \n Map<JCheckBox, Space> thisPlayerMap = playersCheckBoxes.get(currentPlayer);\n if (thisPlayerMap != null) {\n for (JCheckBox checkBox : thisPlayerMap.keySet()) {\n if (checkBox.isSelected()) {\n offer.addPropertyToOffer(thisPlayerMap.get(checkBox));\n }\n }\n }\n \n int moneyToRequest = (Integer)this.playersMoneyMap.get(playerToOfferTo).getValue();\n offer.requestCash(moneyToRequest);\n \n Map<JCheckBox, Space> otherPlayerMap = playersCheckBoxes.get(playerToOfferTo);\n if (otherPlayerMap != null) {\n for (JCheckBox checkBox : otherPlayerMap.keySet()) {\n if (checkBox.isSelected()) {\n offer.addPropertyToRequest(otherPlayerMap.get(checkBox));\n }\n }\n }\n this.dealOffer = offer;\n \n }", "public void setNewFittedOffer(Offer offer){ \r\n\t\t//System.out.println(\"previous offer list size= \"+ this.FittedOffers.size());\r\n\t\tthis.FittedOffers.add(offer);\r\n\t\t//System.out.println(\"current offer list size= \"+ this.FittedOffers.size());\r\n\t}", "public FieldSetAdaptor(EquationStandardSession session, FunctionClassLoader classLoader, IFunctionAdaptor functionAdaptorImpl,\n\t\t\t\t\tString optionId, FieldSet fieldSet) throws EQException\n\t{\n\t\tthis.functionAdaptorImpl = functionAdaptorImpl;\n\n\t\tAdaptorKeyFields keyFields = AdaptorToolbox.getGAZKeyFields(fieldSet);\n\n\t\tif (functionAdaptorImpl != null)\n\t\t{\n\t\t\tthis.fieldSetAdaptorClass = getClass(session, classLoader, optionId, keyFields.getGazfld(), keyFields.getGazpvn(),\n\t\t\t\t\t\t\tkeyFields.getGaztyp());\n\t\t}\n\n\t\tif (this.fieldSetAdaptorClass != null)\n\t\t{\n\t\t\tthis.fieldSetAdaptorImpl = getInstance(functionAdaptorImpl, fieldSetAdaptorClass);\n\t\t}\n\t}", "void setBrokerAlgo(BrokerAlgo inBrokerAlgo);", "public void setEquipe(Equipe equipe) {\n this.equipe = equipe;\n }", "void setSolicitarServicio(com.soa.SolicitarServicioDocument.SolicitarServicio solicitarServicio);", "public SetElevatorSetpoint(Constants.OIMap.Setpoint setpoint, Elevator elevator)\n {\n requires(elevator);\n logger = LoggerFactory.createNewLogger(this.getClass());\n this.setpoint = setpoint;\n this.elevator = elevator;\n }", "public void setFatorAcelaracao(int fatorAceleracao) {\n this.fatorAceleracao = fatorAceleracao;\n }", "void setProductPlan(final ProductPlan productPlan);", "@Required\n\tpublic void setAccommodationOfferingSearchPipelineManager(\n\t\t\tfinal AccommodationOfferingSearchPipelineManager accommodationOfferingSearchPipelineManager)\n\t{\n\t\tthis.accommodationOfferingSearchPipelineManager = accommodationOfferingSearchPipelineManager;\n\t}", "public void setProduct(entity.APDProduct value);", "abstract public void setServiceAppointment(Date serviceAppointment);", "public void setAdvisorFee(BigDecimal advisorFee) {\r\n this.advisorFee = advisorFee;\r\n }", "void setExpenses(double amount);", "private void setCurrentFacility(Point f){\n\t\t\n\t\t_currentFacility = f;\n\t\n\t}", "private void setHotel(Hotel myHotel) {\n\t\tthis.myHotel = myHotel;\n\t}", "public void setEndPoint(AKeyCallPoint endPoint) {\n\t\t\tthis.endPoint = endPoint;\n\t\t}", "public void setEmployeeDetails(MealVoucherConfiguration mealVoucher) {\n\t}", "public void setCompany(Company aCompany) {\n company = aCompany;\n }", "List<AccommodationModel> findAccommodationForAccommodationOfferingAndCatalog(String accommodationOfferingCode,\n\t\t\tString catalogVersion);", "void setProvincia(String provincia);", "void usada() {\n mazo.habilitarCartaEspecial(this);\n }", "public abstract void updateOfferComponents();", "List<AccommodationModel> findAccommodationForAccommodationOffering(String accommodationOfferingCode);", "public void setAccompagnantService(IAccompagnantService accompagnantService) {\r\n\t\tthis.accompagnantService = accompagnantService;\r\n\t}", "public static void setLicensee(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, Contact value) {\r\n\t\tBase.set(model, instanceResource, LICENSEE, value);\r\n\t}", "public void setCalSuite(final BwCalSuiteWrapper val) {\n calSuite = val;\n }", "public ProductOffering validFor(TimePeriod validFor) {\n this.validFor = validFor;\n return this;\n }", "public void setExhibition(Exhibition exhibition) {\n\n selectedExhibition = exhibition;\n }", "public void setName() {\r\n\t\tapplianceName = \"Refrigerator\";\r\n\t}", "@Override\n public IOffer getOffer() {\n return offer;\n }", "public void setLicensee(Contact value) {\r\n\t\tBase.set(this.model, this.getResource(), LICENSEE, value);\r\n\t}", "void setIVA(float iva);", "public void setSelectionLimiter(Limiter limiter)\n {\n\tthis.selectionLimiter = limiter;\n }", "@Then(\"^user selects the accommodation and enters the quantity$\")\n\tpublic void user_selects_the_accommodation_and_enters_the_quantity() throws Throwable {\n\t\tamendFerry.updateExtraAccom();\n\t\tamendFerry.updateExtra();\n\t}", "public void setFacade(XCFFacade facade) {\n\t\tthis.facade = facade;\n\t\t\n\t}", "@Override\n\tpublic void setSeatFree(String seatId) {\n\t\t dgConsumerSeatMapper.modifySeatSeat(Integer.valueOf(seatId));\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getBookOffering();", "public DealOffer getDealOffer() {\n return dealOffer;\n }", "public final void setAlgoSpec(BrokerAlgoSpec inAlgoSpec)\n {\n algoSpec = inAlgoSpec;\n }", "public void setName() {\r\n\t\tapplianceName = \"ElectricShower\";\r\n\t}", "public DataResourceBuilder _contractOffer_(List<ContractOffer> _contractOffer_) {\n this.dataResourceImpl.setContractOffer(_contractOffer_);\n return this;\n }", "public void setAz_ant(java.math.BigDecimal newAz_ant)\n\t\tthrows java.rmi.RemoteException;", "public void setPriceLimit (BigDecimal PriceLimit);", "public void setHotel(Hotel hotel) {\n this.hotel = hotel;\n }", "public void setHotel(Hotel hotel) {\n this.hotel = hotel;\n }", "@Override\n\tpublic void setAskingPrice(java.lang.String askingPrice) {\n\t\t_buySellProducts.setAskingPrice(askingPrice);\n\t}", "public void setIsSetPriceLimit (boolean IsSetPriceLimit);", "public interface Offer {\r\n\t/**\r\n\t * information about provider \r\n\t * @return\r\n\t */\r\n\tOperationUser getOfferProvider();\r\n\r\n\t/**\r\n\t * short description of offer\r\n\t * @return\r\n\t */\r\n\tString getOfferSummary();\r\n}", "void setAgregate(com.hps.july.persistence.StorageCard anAgregate) throws java.rmi.RemoteException;", "public static void setLicensee( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, LICENSEE, value);\r\n\t}", "public ProductOffering description(String description) {\n this.description = description;\n return this;\n }", "public void setMarketing(nl.webservices.www.soap.DNBMarketing marketing) {\n this.marketing = marketing;\n }", "private void setupCreateOffering() {\n\t\tmakeButton(\"Create Course Offering\", (ActionEvent e) -> {\n\t\t\ttry {\n\t\t\t\tint row = table.getSelectedRow();\n\n\t\t\t\tif (row < 0) {\n\t\t\t\t\tJOptionPane.showMessageDialog(getRootPane(), \"Please select a course\", \"Error\",\n\t\t\t\t\t\t\tJOptionPane.OK_OPTION);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tString[] inputs = getInputs(new String[] { \"Section Number:\", \"Section Capacity:\" });\n\n\t\t\t\tif (inputs == null)\n\t\t\t\t\treturn;\n\n\t\t\t\tint courseId = adCon.getCourseIdFromRow(row);\n\t\t\t\tint num = Integer.parseInt(inputs[0]);\n\t\t\t\tint cap = Integer.parseInt(inputs[1]);\n\t\t\t\tadCon.addOffering(courseId, num, cap);\n\t\t\t\tupdateTextArea(adCon.searchCourseById(courseId));\n\n\t\t\t} catch (NumberFormatException ex) {\n\t\t\t\tJOptionPane.showMessageDialog(getRootPane(), \"Course number must be a number\", \"Error\",\n\t\t\t\t\t\tJOptionPane.OK_OPTION);\n\t\t\t}\n\t\t});\n\t}", "public abstract void setEmpresa(\n\t\tco.com.telefonica.atiempo.ejb.eb.EmpresaLocal anEmpresa);", "public void assignOffer(OfferMgmtVO offerMgmtVO) throws MISPException {\n\n\t\tlogger.entering(\"assignOffer\", offerMgmtVO);\n\n\t\ttry {\n\n\t\t\t// Assign offer to all the customers\n\t\t\tif (PlatformConstants.ALL_CUSTOMERS.equalsIgnoreCase(offerMgmtVO\n\t\t\t\t\t.getCustomers())) {\n\n\t\t\t\tthis.customerSubsManager.assignOfferToAllCustomers(offerMgmtVO);\n\n\t\t\t} else if (PlatformConstants.SELECTED_CUSTOMERS\n\t\t\t\t\t.equalsIgnoreCase(offerMgmtVO.getCustomers())) {\n\n\t\t\t\t// Assign offer to selected customers\n\t\t\t\tDate fromDate = DateUtil.toDate(offerMgmtVO.getFromDate());\n\t\t\t\tDate toDate = DateUtil.toDate(offerMgmtVO.getToDate());\n\n\t\t\t\tCalendar calendar = Calendar.getInstance();\n\t\t\t\tcalendar.setTime(toDate);\n\n\t\t\t\tcalendar.set(Calendar.HOUR_OF_DAY, 23);\n\t\t\t\tcalendar.set(Calendar.MINUTE, 59);\n\t\t\t\tcalendar.set(Calendar.SECOND, 59);\n\n\t\t\t\ttoDate = calendar.getTime();\n\n\t\t\t\tthis.customerSubsManager.assignOfferToSelectedCustomers(\n\t\t\t\t\t\tfromDate, toDate, offerMgmtVO.getProducts());\n\t\t\t}\n\n\t\t} catch (DBException exception) {\n\t\t\tlogger.error(\"An exception occured while assigning Offer.\",\n\t\t\t\t\texception);\n\t\t\tthrow new MISPException(exception);\n\n\t\t}\n\n\t\tlogger.exiting(\"assignOffer\");\n\n\t}", "Builder addEducationalUse(String value);", "public void setCurrentCalSuite(final BwCalSuiteWrapper val) {\n currentCalSuite = val;\n }", "public AltaProveedor() {\n AparienciaPantalla apa = new AparienciaPantalla();\n apa.cambiarApariencia(\"com.sun.java.swing.plaf.windows.WindowsLookAndFeel\");\n initComponents();\n this.cargarProvincias();\n setLocationRelativeTo(null);\n }", "public void setOf(Contract of)\n\t{\n\t\tthis.of = (of != null) ? of : Contract.Obj;\n\t}", "public void setAmount(int moneyOption);", "public SpecialOffer() {\n\t\tsuper(org.jooq.examples.sqlserver.adventureworks.sales.tables.SpecialOffer.SpecialOffer);\n\t}", "@Override\r\n\t\tpublic void setTradeApplication(TradeApplication app) {\n\t\t\t\r\n\t\t}", "public void setAccommodationPledgeBo(AccommodationPledgeBo accommodationPledgeBo){\n \tthis.accommodationPledgeBo = accommodationPledgeBo;\n }", "@Override\n\tpublic void approveAcceptedOffer(String matriculation) {\n\t\tofferman.approveAcceptedOffer(matriculation);\n\t\t\n\t}", "public void setSupplier(Supplier supplier) {\n this.supplier = supplier;\n }", "public void setThisFacility(Facility thisFacility) {\n this.thisFacility = thisFacility;\n }", "public void setAgencyFee(BigDecimal agencyFee) {\r\n this.agencyFee = agencyFee;\r\n }", "@Override\r\n public void setCorporation(String corporation) {\n }", "@Override\r\n\tpublic void setApple(Apple a) {\n\t\tthis.a = a;\r\n\t}", "public void setDPAlternativeAusgabe(String value){\n\t\tthis.m_bIsDirty = (this.m_bIsDirty || (!value.equals(this.m_sDPAlternativeAusgabe)));\n\t\tthis.m_sDPAlternativeAusgabe=value;\n\t}", "public void setBudgetExpenditure(String expAppId) {\r\n\t\tdouble cost = 0.0d;\r\n\t\ttry {\r\n\t\t\tTravelProcessModel trvlprcmodel = new TravelProcessModel();\r\n\t\t\ttrvlprcmodel.initiate(context, session);\r\n\t\t\tcost = trvlprcmodel.getApproximateBudget(expAppId);\r\n\t\t\ttrvlClmApprvl.setBudgetExpenditure(Utility.twoDecimals(cost));\r\n\t\t\ttrvlprcmodel.terminate();\r\n\t\t} catch (Exception e) {\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "public void azzera() { setEnergia(0.0); }", "public void setPriceMode(final ProductPriceModeEnum priceMode);", "public static void setAlpha(double alp)\n\t{\n\t\talpha = alp;\t\n\t}", "private void assignBuildingLicense(Player owner, BuildingPermit buildingLicense) {\n\t\towner.addBuildingPermit(buildingLicense);\n\t}", "public void set(E obj) {\r\n throw new UnsupportedOperationException();\r\n }", "public void setViaComienzo(Via viaComienzo) {\n\t\tif (viaComienzo != null && viaComienzo.getCodigo() != comienza)\n\t\t\tthrow new RuntimeException(\"Via de comienzo inconsistente\");\n\t\tthis.viaComienzo = viaComienzo;\n\t}", "interface WithEdition {\n /**\n * Sets the edition for the SQL Elastic Pool.\n *\n * @param edition edition to be set for Elastic Pool.\n * @return The next stage of the definition.\n */\n @Deprecated\n @Beta(Beta.SinceVersion.V1_7_0)\n SqlElasticPoolOperations.DefinitionStages.WithCreate withEdition(ElasticPoolEdition edition);\n\n /**\n * Sets the basic edition for the SQL Elastic Pool.\n *\n * @return The next stage of the definition.\n */\n @Beta(Beta.SinceVersion.V1_7_0)\n @Method\n SqlElasticPoolOperations.DefinitionStages.WithBasicEdition withBasicPool();\n\n /**\n * Sets the standard edition for the SQL Elastic Pool.\n *\n * @return The next stage of the definition.\n */\n @Beta(Beta.SinceVersion.V1_7_0)\n @Method\n SqlElasticPoolOperations.DefinitionStages.WithStandardEdition withStandardPool();\n\n /**\n * Sets the premium edition for the SQL Elastic Pool.\n *\n * @return The next stage of the definition.\n */\n @Beta(Beta.SinceVersion.V1_7_0)\n @Method\n SqlElasticPoolOperations.DefinitionStages.WithPremiumEdition withPremiumPool();\n }", "private void setAppointment(Appointment appointment) {\n appointment.setCustomerId(customerNameTxt.getSelectionModel().getSelectedItem().getId());\n appointment.setTitle(titleTxt.getText());\n appointment.setDescription(descriptionTxt.getText());\n appointment.setLocation(locationTxt.getText());\n appointment.setContact(contactTxt.getText());\n appointment.setType(typeTxt.getText());\n appointment.setUrl(urlTxt.getText());\n\n // format times\n // Date formatter for date picker and time combo boxes\n final DateTimeFormatter dateFormatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd\");\n final DateTimeFormatter timeFormatter = DateTimeFormatter.ofPattern(\"hh:mm:ss\");\n LocalTime startTime = startTxt.getSelectionModel().getSelectedItem();\n LocalTime endTime = startTime.plusMinutes(endTxt.getSelectionModel().getSelectedItem());\n\n if (datePicker.getValue() != null && startTime != null && endTime != null) {\n appointment.setStart(Timestamp.valueOf(dateFormatter.format(datePicker.getValue()) + \" \" + timeFormatter.format(startTime)));\n appointment.setEnd(Timestamp.valueOf(dateFormatter.format(datePicker.getValue()) + \" \" + timeFormatter.format(endTime)));\n } else {\n Alert a = new Alert(Alert.AlertType.INFORMATION, \"You must select a date, start time, and end time.\");\n a.showAndWait();\n }\n }", "private void setWorkmanPoint( int point ){\n\n callGetSliderAds();\n }", "public void setFacilityChannelProvider(ChannelProvider facilityChannelProvider) {\n this.facilityChannelProvider = facilityChannelProvider;\n }", "public org.xms.g.common.AccountPicker.AccountChooserOptions.Builder setSelectedAccount(android.accounts.Account param0) {\n throw new java.lang.RuntimeException(\"Not Supported\");\n }", "public BaseBallCoach(FortuneService theFortuneSerive) {\n\t\t\tfortuneService= theFortuneSerive;\n\t\t\t\n\t\t}" ]
[ "0.6907282", "0.61398", "0.5914727", "0.54763335", "0.5433689", "0.5389988", "0.5293846", "0.52825385", "0.5272489", "0.52541023", "0.52030325", "0.5188383", "0.5154339", "0.51392573", "0.50908905", "0.50201106", "0.500248", "0.49356946", "0.493326", "0.48718336", "0.48685423", "0.48483622", "0.48416948", "0.48299927", "0.48186246", "0.48182452", "0.4809706", "0.48027056", "0.4799715", "0.47916943", "0.47883037", "0.47783065", "0.47772405", "0.47681862", "0.4758201", "0.47580063", "0.47556123", "0.47423625", "0.47269613", "0.47258496", "0.47258177", "0.4711837", "0.47063315", "0.47047213", "0.46981254", "0.46970806", "0.46965453", "0.46923804", "0.4661749", "0.4657222", "0.46555826", "0.46537685", "0.46516517", "0.46458507", "0.46453413", "0.46442625", "0.46421", "0.46405113", "0.46302566", "0.4626554", "0.46236914", "0.46236914", "0.46176332", "0.46176204", "0.46095058", "0.46089545", "0.46076494", "0.45990232", "0.45984885", "0.45958322", "0.45943284", "0.4578973", "0.45726383", "0.4570748", "0.45678836", "0.45658636", "0.4563862", "0.4546585", "0.45465094", "0.4537338", "0.4531101", "0.45223618", "0.4522032", "0.4516255", "0.450489", "0.45029032", "0.45008716", "0.44995183", "0.44981584", "0.448403", "0.4481327", "0.44809616", "0.44739655", "0.44716904", "0.44672215", "0.44601825", "0.44502354", "0.44486046", "0.44482", "0.4446308" ]
0.6830932
1
Gets accommodation offering search pipeline manager.
protected AccommodationOfferingSearchPipelineManager getAccommodationOfferingSearchPipelineManager() { return accommodationOfferingSearchPipelineManager; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Required\n\tpublic void setAccommodationOfferingSearchPipelineManager(\n\t\t\tfinal AccommodationOfferingSearchPipelineManager accommodationOfferingSearchPipelineManager)\n\t{\n\t\tthis.accommodationOfferingSearchPipelineManager = accommodationOfferingSearchPipelineManager;\n\t}", "protected AccommodationOfferingFacade getAccommodationOfferingFacade()\n\t{\n\t\treturn accommodationOfferingFacade;\n\t}", "public SearchManager getManagedAStarGraphSearch() {\n return new SearchManager(doolhof, problem,\n new AStarGraphSearch(problem), \"A* Graph Search\");\n }", "List<AccommodationModel> findAccommodationForAccommodationOffering(String accommodationOfferingCode);", "AccommodationModel findAccommodationForAccommodationOffering(String accommodationOfferingCode, String accommodationCode);", "public SearchManager getManagedPriorityQueueGraphSearch() {\n return new SearchManager(doolhof, problem,\n new PriorityQueueGraphSearch(problem), \"PriorityQueue Graph Search\");\n }", "public ExplorerManager getExplorerManager() {\n return ExplorerManager.find(this);\n //return manager;\n }", "List<AccommodationModel> findAccommodationForAccommodationOfferingAndCatalog(String accommodationOfferingCode,\n\t\t\tString catalogVersion);", "public VOOrganization getOrganization() {\n\n if (organization == null) {\n organization = new VOOrganization();\n FacesContext fc = FacesContext.getCurrentInstance();\n Locale locale = fc.getViewRoot().getLocale();\n organization.setLocale(locale.toString());\n }\n return organization;\n }", "public CorpToStoreSearch getCorpToStoreSearch() {\n if (corpToStoreSearch != null) return corpToStoreSearch;\n corpToStoreSearch = new CorpToStoreSearch();\n return corpToStoreSearch;\n }", "public SearchManager getManagedAStarTreeSearch() {\n return new SearchManager(doolhof, problem,\n new AStarTreeSearch(problem), \"A* Tree Search\");\n }", "Offer getOffer();", "public Manager getEmployee() {\n\t\treturn new Manager();\n\t}", "public static PipelineManager getInstance() {\n if (INSTANCE == null){\n synchronized(PipelineManager.class) {\n if(INSTANCE == null) {\n INSTANCE = new PipelineManager();\n }\n }\n }\n return INSTANCE;\n }", "public com.hps.july.persistence.OrganizationAccessBean getOrganization() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n instantiateEJB();\n com.hps.july.persistence.Organization localEJBRef = ejbRef().getOrganization();\n if ( localEJBRef != null )\n return new com.hps.july.persistence.OrganizationAccessBean(localEJBRef);\n else\n return null;\n }", "public CatalogManager getCatalogManager() {\n return cm;\n }", "Collection<MatchmakingManager> getManagers();", "public static OIFitsCollectionManager getInstance() {\n return INSTANCE;\n }", "public JobManager getJobManager() {\n if (instance == null) {\n throw new ElasticsearchException(\"Tried to get job manager although Machine Learning is disabled\");\n }\n return instance;\n }", "private Collection<MarketDataProvider> getActiveMarketDataProviders()\n {\n populateProviderList();\n return providersByPriority;\n }", "public ExplorerManager getExplorerManager();", "public com.hps.july.persistence.Organization getOrganization() throws java.rmi.RemoteException, javax.ejb.FinderException;", "public OfficeManager getOfficeManager() {\n\t\treturn officeManager;\n\t}", "public OzoneManager getOMLeader() {\n OzoneManager res = null;\n for (OzoneManager ozoneManager : this.omhaService.getActiveServices()) {\n if (ozoneManager.isLeaderReady()) {\n if (res != null) {\n // Found more than one leader\n // Return null, expect the caller to retry in a while\n return null;\n }\n // Found a leader\n res = ozoneManager;\n }\n }\n return res;\n }", "public StoreCatalogTools getCatalogTools() {\n return mCatalogTools;\n }", "public List<String> getAVEquipmentList() {\r\n\t\treturn AVEquipmentList;\r\n\t}", "public ClientCorporation getClientCorporation() {\n\t\tif (clientCorporation == null) {\n\t\t\tsetClientCorporation(findClientCorporation(getJob().getClientCorporation().getId()));\n\t\t}\n\t\treturn clientCorporation;\n\t}", "public Organization getOrganization() {\n return organization;\n }", "public Organization getOrganization() {\n return organization;\n }", "public DBCollection getEngagementCollection() {\n try {\n //TODO move db config to properties file\n return MongoDBService.getCollection(\"engagements\");\n } catch (Exception e) {\n NXGReports.addStep(\"Can't get Engagements Colection: auvenir-engagements\", LogAs.FAILED, null);\n e.printStackTrace();\n }\n return null;\n }", "VPlexApiExportManager getExportManager() {\n return _exportMgr;\n }", "public java.util.List<CapacityProviderStrategyItem> getCapacityProviderStrategy() {\n if (capacityProviderStrategy == null) {\n capacityProviderStrategy = new com.amazonaws.internal.SdkInternalList<CapacityProviderStrategyItem>();\n }\n return capacityProviderStrategy;\n }", "public java.util.List<CapacityProviderStrategyItem> getCapacityProviderStrategy() {\n if (capacityProviderStrategy == null) {\n capacityProviderStrategy = new com.amazonaws.internal.SdkInternalList<CapacityProviderStrategyItem>();\n }\n return capacityProviderStrategy;\n }", "protected IndexSearcher getSearcher() {\n\t\treturn indexSearcher;\n\t}", "@Override\n\tpublic List<Parking> employeeavailableParking() {\n\t\treturn parkingRepository.employeeavailableParking();\n\t}", "public ProcessProvider getComponent() {\n return component;\n }", "public ResultSet CargarManager() {\n\n\t\trs = sendSelect(SELECT_SQL_MANAGER);\n\n\t\treturn rs;\n\n\t}", "public String getGrasaCorp() {\r\n return grasaCorp;\r\n }", "protected SARLQuickfixProvider getTools() {\n\t\treturn this.tools.get();\n\t}", "public ShopManager getShopManager() {\n return this.shopManager;\n }", "public SearchManager getManagedPriorityQueueTreeSearch() {\n return new SearchManager(doolhof, problem,\n new PriorityQueueTreeSearch(problem), \"PriorityQueue Tree Search\");\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getBookOffering();", "@Override\r\n\tpublic AccessControlManager getAccessControlManager()\r\n\t\t\tthrows UnsupportedRepositoryOperationException, RepositoryException {\n\t\treturn null;\r\n\t}", "public String[] getAvailableGovernors() {\n\t\t\tif (mAvailableGovernors == null) {\n\t\t\t\tList<String> list = ShellHelper.cat(\n\t\t\t\t\tmRoot.getAbsolutePath() + AVAILABLE_GOVERNERS);\n\t\t\t\tif (list == null || list.isEmpty()) return null;\n\t\t\t\tmAvailableGovernors = list.get(0).split(\"\\\\s+\");\n\t\t\t}\n\t\t\treturn mAvailableGovernors;\n\t\t}", "public Pipeline getPipeline(){\n return pipeline;\n }", "String getOrganization();", "public Manager getManager() {\n return this.manager;\n }", "private JComboBox getOrgCmb() {\r\n cmbOrganization = new JComboBox();\r\n \r\n vOrganizations = getProposalSubOrgs();\r\n\r\n CoeusVector cvOrgs = new CoeusVector();\r\n \tcvOrgs.add(0, \"\");\r\n\r\n HashMap mapRow = new HashMap();\r\n \tfor (int c=0;c<vOrganizations.size();c++) {\r\n mapRow = (HashMap) vOrganizations.elementAt(c);\r\n \tcvOrgs.add(c+1,(String)mapRow.get(\"LOCATION_NAME\"));\r\n \t}\r\n \t\r\n \tcmbOrganization.setModel(new DefaultComboBoxModel(cvOrgs));\r\n return cmbOrganization;\r\n }", "modelProvidersI getProvider();", "public EmployeeManager getEmployeeManager() {\n\t\tif (employeeManager == null) {\n\t\t\tIEmployeeDAO emplDAO = new EmployeeDAOSqlite(dbHelper);\n\t\t\temployeeManager = new EmployeeManager(emplDAO);\n\t\t\temployeeManager.setManagerHolder(this);\n\t\t}\n\t\treturn employeeManager;\n\t}", "public RouteTrackingCriteriaManager getCriteriaManager() {\n\t\tif (criteriaManager == null) {\n\t\t\tIRouteTrackingCriteriaDAO criteriaDAO = new RouteTrackingCriteriaDAOSqlite(dbHelper);\n\t\t\tcriteriaManager = new RouteTrackingCriteriaManager(criteriaDAO);\n\t\t\tcriteriaManager.setManagerHolder(this);\n\t\t}\n\t\treturn criteriaManager;\n\t}", "public Enterprise getOwnerEnterprise() {\n if (!isReserved()) {\n return null;\n }\n\n EnterpriseDto enterprise = context.getApi().getEnterpriseApi()\n .getEnterprise(target.getIdFromLink(ParentLinkName.ENTERPRISE));\n\n return wrap(context, Enterprise.class, enterprise);\n }", "public Empresa getEmpresa() {\n\t\treturn producto.getEmpresa();\n\t}", "public static interface Provider {\n /** Get the explorer manager.\n * @return the manager\n */\n public ExplorerManager getExplorerManager();\n }", "public String getMasaCorp() {\r\n return masaCorp;\r\n }", "public Organization getOrganization(){\r\n\t\treturn organization;\r\n\t}", "MatchmakingManager getManager(String matchmakingId);", "public String marketplaceOffer() {\n return this.marketplaceOffer;\n }", "protected HpComponent findHpComponent() {\n return (HpComponent) this.findFirstActiveComponentInObj(GameComponent.GcType.HITPOINT);\n }", "public LinkedList<Equipo> getEquiposPorLaboratorio() {\n if(this.intento){\n this.pv=f.consultarEquiposPorLaboratorio(laboratorio);\n this.intento=false;\n this.intentoLab=true;\n }\n return this.pv;\n\n }", "public Ecosystem getEcosystem() {\n return ecosystem;\n }", "public org.iplant.pipeline.client.json.autobeans.Pipeline getPipeline() {\n org.iplant.pipeline.client.json.autobeans.Pipeline ret = factory.pipeline().as();\n ret.setName(workspace.getPipeline().getName());\n ret.setDescription(workspace.getPipeline().getDescription());\n \n List<PipelineApp> apps = new ArrayList<PipelineApp>();\n Vector<PipeComponent> steps = workspace.getPipeline().getSteps();\n for (PipeComponent step : steps) {\n App app = ((PipeApp)step).getApp();\n \n PipelineApp jsonApp = factory.app().as();\n jsonApp.setId(app.getID());\n jsonApp.setName(app.getName());\n jsonApp.setDescription(app.getDescription());\n jsonApp.setStep(step.getPosition());\n \n HashMap<PipeComponent, ArrayList<Input>> mappings = new HashMap<PipeComponent, ArrayList<Input>>();\n for (Input input : step.getInputs()) {\n if (input.getMapped() != null) {\n PipeComponent parent = input.getMapped().getParent();\n ArrayList<Input> maps = mappings.get(parent);\n if (maps == null)\n maps = new ArrayList<Input>();\n maps.add(input);\n mappings.put(parent, maps);\n }\n }\n \n List<PipelineAppMapping> jsonMappings = new ArrayList<PipelineAppMapping>();\n jsonApp.setMappings(jsonMappings);\n \n for (PipeComponent mappedTo : mappings.keySet()) {\n App mappedApp = ((PipeApp)mappedTo).getApp();\n PipelineAppMapping jsonMap = factory.appMapping().as();\n jsonMap.setStep(mappedTo.getPosition());\n jsonMap.setId(mappedApp.getID());\n ArrayList<Input> inputs = mappings.get(mappedTo);\n Map<String, String> map = new HashMap<String, String>();\n for (Input input : inputs) {\n map.put(input.getID(), input.getMapped().getID());\n }\n jsonMap.setMap(map);\n jsonMappings.add(jsonMap);\n }\n \n jsonApp.setInputs(app.getAppDataInputs());\n jsonApp.setOutputs(app.getAppDataOutputs());\n \n apps.add(jsonApp);\n }\n \n ret.setApps(apps);\n \n return ret;\n }", "@NonNull\n public String getCurrentRuleSetProvider() {\n try {\n return mManager.getCurrentRuleSetProvider();\n } catch (RemoteException e) {\n throw e.rethrowAsRuntimeException();\n }\n }", "Manager getManager() {\n return Manager.getInstance();\n }", "Manager getManager() {\n return Manager.getInstance();\n }", "Manager getManager() {\n return Manager.getInstance();\n }", "public static AABBPool getAABBPool() {\n\t\treturn (AABBPool) theAABBLocalPool.get();\n\t}", "public Collection<Manager> findManagersWithMoreServicesThanAverage() {\n\t\treturn this.managerRepository.findManagersWithMoreServicesThanAverage();\n\t}", "public VehicleManager getVehicleManager() {\n\t\tif (vehicleManager == null) {\n\t\t\tIVehicleDAO vehicleDAO = new VehicleDAOSqlite(dbHelper);\n\t\t\tvehicleManager = new VehicleManager(vehicleDAO);\n\t\t\tvehicleManager.setManagerHolder(this);\n\t\t}\n\t\treturn vehicleManager;\n\t}", "public CampusEbo getCampus() {\n if ( StringUtils.isBlank(campusCode) ) {\n campus = null;\n } else {\n if ( campus == null || !StringUtils.equals( campus.getCode(),campusCode) ) {\n ModuleService moduleService = SpringContext.getBean(KualiModuleService.class).getResponsibleModuleService(CampusEbo.class);\n if ( moduleService != null ) {\n Map<String,Object> keys = new HashMap<String, Object>(1);\n keys.put(LocationConstants.PrimaryKeyConstants.CODE, campusCode);\n campus = moduleService.getExternalizableBusinessObject(CampusEbo.class, keys);\n } else {\n throw new RuntimeException( \"CONFIGURATION ERROR: No responsible module found for EBO class. Unable to proceed.\" );\n }\n }\n }\n return campus;\n }", "@Override\n\tpublic OrganizationVO getOrganization(String name) throws RemoteException {\n\t\treturn new OrganizationVO(\"1\",Organizationtype.hall);\n\t}", "public DealOffer getDealOffer() {\n return dealOffer;\n }", "public ClaimableTools getClaimableTools() {\n return mClaimableTools;\n }", "public Tool getAdornmentTool() {\n\t\treturn renderingTool;\n\t}", "public java.lang.String getOrgExecutor() {\n\treturn orgExecutor;\n}", "public String getAgency() {\r\n return agency;\r\n }", "private PointsOfContactEditorPanel getServicePointsOfContactEditorPanel() {\r\n if (this.servicePointsOfContactEditorPanel == null) {\r\n this.servicePointsOfContactEditorPanel = new PointsOfContactEditorPanel();\r\n }\r\n return this.servicePointsOfContactEditorPanel;\r\n }", "ProductPlan getProductPlan();", "private MarketDataProvider getMarketDataProviderForName(String inProviderName)\n {\n populateProviderList();\n return activeProvidersByName.get(inProviderName);\n }", "public ExecutionManager getManager() {\n return manager;\n }", "protected EmployeeRepository getEmployeeRepository() {\r\n return this.employeeRepository;\r\n }", "private Agent getRecommenderFromNode()\n\t{\n\t\tMap<String,ComputationOutputBuffer> nodeInputs =\n\t\t\t\tcomputationNode.getInputs();\n\n\t\tAgent agent = new Agent();\n\t\tagent.setType(computationNode.getRecommenderClass());\n if (options == null) {\n \tOptionEdge optionEdge = (OptionEdge)\n \t\t\tnodeInputs.get(\"options\").getNext();\n nodeInputs.get(\"options\").block();\n options = new NewOptions(optionEdge.getOptions());\n }\n\t\tagent.setOptions(options.getOptions());\n\t\treturn agent;\n\t}", "private ObjectListDataProvider getObjectListDataProvider() {\n return this.getLdpGrupoFamiliar();\n }", "@SuppressWarnings(\"static-access\")\n\tpublic Envelope getEnvelopeProvincie() {\n\n\t\ttry {\n\t\t\tFeatureMapLayer provincieLayer = (FeatureMapLayer) getViewer()\n\t\t\t\t\t.getConfiguration().getContext().getLayer(\"provincie\");\n\t\t\tprovincieLayer.setHidden(false);\n\t\t\tProvincie provincie = (Provincie) modelRepository\n\t\t\t\t\t.getUniqueResult(modelRepository.searchObjects(\n\t\t\t\t\t\t\tnew DefaultQuery(\"Provincie\"), true, true));\n\n\t\t\treturn GeometryUtils.getEnvelope(provincie.getGeom());\n\n\t\t} catch (IOException e) {\n\t\t\tLOG.error(\"Can not search Provincie.\", e);\n\t\t}\n\t\treturn null;\n\t}", "VPlexApiDiscoveryManager getDiscoveryManager() {\n return _discoveryMgr;\n }", "public BigDecimal getORG_PROFIT_AMT() {\r\n return ORG_PROFIT_AMT;\r\n }", "public OSPApplication getOSPApp();", "public JPanel getSearchJPanel(){\n\t\treturn searchResults;//Return the search results\n\t}", "public static CompanyManager getInstance() {\n synchronized (CompanyManager.class) {\n if (instance == null) {\n instance = new CompanyManager();\n }\n }\n //noinspection SynchronizeOnNonFinalField\n synchronized (instance) { checkout++; }\n return instance;\n }", "public String getOrganization ()\n {\n return this.organization;\n }", "public org.naru.park.ParkModel.UIParkRequest.Builder getRequestBuilder() {\n \n onChanged();\n return getRequestFieldBuilder().getBuilder();\n }", "PMSManage getPMSManage();", "@Override\r\n public GenericManager<ViewListeEleve, Long> getManager() {\r\n return manager;\r\n }", "public Equipo getEquipo() {\n return equipo;\n }", "public SelectorDepartment getDepartmentSelector() {\n return departmentSelector;\n }", "public abstract ISearchCore getSearchCore();", "private ISearchPageContainer getContainer() {\n return searchPageContainer;\n }", "public OAuth2Manager get() {\n OAuth2Manager a = this.f30636a.mo34992a((C11818g) this.f30637b.get(), (C11766a) this.f30638c.get(), (C13325v) this.f30639d.get(), (C11125d) this.f30640e.get(), C12020b.m31668a(this.f30641f), (C11791e) this.f30642g.get(), C12020b.m31668a(this.f30643h));\n C12021c.m31671a(a, \"Cannot return null from a non-@Nullable @Provides method\");\n return a;\n }", "public IAlgo getAlgo();", "ParkingPackage getParkingPackage();" ]
[ "0.612297", "0.57861936", "0.5785389", "0.5662463", "0.5661841", "0.5226705", "0.5196434", "0.5123598", "0.51100785", "0.5079992", "0.5043808", "0.5015433", "0.4987161", "0.4954655", "0.4944692", "0.4887834", "0.4837927", "0.4836162", "0.48324633", "0.4772462", "0.47525898", "0.4749502", "0.47440922", "0.47289202", "0.46953496", "0.4682387", "0.46477208", "0.46472088", "0.46472088", "0.4643534", "0.4632287", "0.46276468", "0.46276468", "0.4605814", "0.46040076", "0.4599137", "0.4583333", "0.45810097", "0.45797962", "0.45765814", "0.4557709", "0.45550606", "0.45498344", "0.45426548", "0.45404354", "0.45348445", "0.45336908", "0.4532934", "0.4527578", "0.45133778", "0.44968393", "0.4492087", "0.44888693", "0.44848225", "0.4484185", "0.44663715", "0.4459917", "0.44568145", "0.44532314", "0.4444294", "0.44420278", "0.4434989", "0.4433387", "0.44326028", "0.44326028", "0.44326028", "0.44287965", "0.44273654", "0.44183284", "0.44174", "0.4417037", "0.44150415", "0.44150177", "0.4410251", "0.43984777", "0.43969393", "0.43870845", "0.43856996", "0.43835944", "0.4378843", "0.43762112", "0.43724707", "0.43719867", "0.43716052", "0.43621722", "0.43591622", "0.4357456", "0.43566763", "0.43545496", "0.43527535", "0.43492883", "0.4339347", "0.4339118", "0.43388796", "0.43387645", "0.4338116", "0.43346035", "0.43326217", "0.43324882", "0.43317446" ]
0.8361455
0
Sets accommodation offering search pipeline manager.
@Required public void setAccommodationOfferingSearchPipelineManager( final AccommodationOfferingSearchPipelineManager accommodationOfferingSearchPipelineManager) { this.accommodationOfferingSearchPipelineManager = accommodationOfferingSearchPipelineManager; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected AccommodationOfferingSearchPipelineManager getAccommodationOfferingSearchPipelineManager()\n\t{\n\t\treturn accommodationOfferingSearchPipelineManager;\n\t}", "public void setOfferingDao(PriceMapOfferingEntityDao offeringDao) {\n this.offeringDao = offeringDao;\n }", "@Required\n\tpublic void setAccommodationOfferingFacade(final AccommodationOfferingFacade accommodationOfferingFacade)\n\t{\n\t\tthis.accommodationOfferingFacade = accommodationOfferingFacade;\n\t}", "public void setBookOffering(java.lang.String value);", "protected AccommodationOfferingFacade getAccommodationOfferingFacade()\n\t{\n\t\treturn accommodationOfferingFacade;\n\t}", "AccommodationModel findAccommodationForAccommodationOffering(String accommodationOfferingCode, String accommodationCode);", "public void setCompany(Company aCompany) {\n company = aCompany;\n }", "public void setOrganization(com.hps.july.persistence.Organization anOrganization) throws java.rmi.RemoteException;", "@Override\r\n public void setCorporation(String corporation) {\n }", "public void addOffering (Offering theOffering) {\r\n\t\tofferingList.add(theOffering);\r\n\t\t\r\n\t}", "@Override\n\tpublic void approveAcceptedOffer(String matriculation) {\n\t\tofferman.approveAcceptedOffer(matriculation);\n\t\t\n\t}", "@Autowired\n\tpublic OptionMarketCoach(FortuneService fortuneService) {\n\t\tthis.fortuneService = fortuneService;\n\t}", "public void setSelectionLimiter(Limiter limiter)\n {\n\tthis.selectionLimiter = limiter;\n }", "List<AccommodationModel> findAccommodationForAccommodationOffering(String accommodationOfferingCode);", "public ProductOffering name(String name) {\n this.name = name;\n return this;\n }", "public void setOrganization(com.hps.july.persistence.Organization arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().setOrganization(arg0);\n }", "public void setOrganization(String organization);", "Builder addProvider(Organization value);", "public void set(Object requestor, String field, JMenu comp);", "public void setEquipe(Equipe equipe) { // verif 1 ou 2\r\n\t\tthis.equipe = equipe;\r\n\t}", "List<AccommodationModel> findAccommodationForAccommodationOfferingAndCatalog(String accommodationOfferingCode,\n\t\t\tString catalogVersion);", "private void assignBuildingLicense(Player owner, BuildingPermit buildingLicense) {\n\t\towner.addBuildingPermit(buildingLicense);\n\t}", "public void setAccommodationPledgeBo(AccommodationPledgeBo accommodationPledgeBo){\n \tthis.accommodationPledgeBo = accommodationPledgeBo;\n }", "public void setMarketDataProvider(MarketDataProvider marketDataProvider) {\r\n this.marketDataProvider = marketDataProvider;\r\n }", "public void setAdornmentTool(Tool tool) {\n\t\tthis.renderingTool = tool;\n\t}", "public void set(Object requestor, String field, JMenuItem comp);", "public void setGui(MarketGrocerGuiInterface mg) {\n\t\tmGrocer = mg;\n\t}", "public synchronized void setOption(OptionSet optSet_Temp,String name,float price){\n optSet_Temp.Increase_Option_Manager(name.toUpperCase(Locale.getDefault()), price);\n }", "public void setCompany(String company)\r\n {\r\n m_company = company;\r\n }", "public void estableceEquipoComputo() {\n\tsetDispositivo(JOptionPane.showInputDialog(\"Ingrese el nombre del dispositivo a adquirir\"));\n\tsetComercio(JOptionPane.showInputDialog(\"Ingrese el nombre del comercio donde lo comprara\"));\n}", "void enableAgentSelectionControl();", "public void setMarketDataProvider(MarketDataProvider marketDataProvider) {\n this.marketDataProvider = marketDataProvider;\n }", "public void setCompany(String company) {\n this.company = company;\n }", "public DataResourceBuilder _contractOffer_(ContractOffer _contractOffer_) {\n this.dataResourceImpl.getContractOffer().add(_contractOffer_);\n return this;\n }", "public void setPipeline(Pipeline pipeline){\n this.pipeline = pipeline;\n }", "public ProductOffering href(String href) {\n this.href = href;\n return this;\n }", "protected void setOrganization(String organization) {\n this.organization = organization;\n }", "@ZAttr(id=360)\n public void setGalAutoCompleteLdapFilter(String zimbraGalAutoCompleteLdapFilter) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraGalAutoCompleteLdapFilter, zimbraGalAutoCompleteLdapFilter);\n getProvisioning().modifyAttrs(this, attrs);\n }", "public void setApprover(String approver) {\n this.approver = approver;\n }", "public void setEquipe(Equipe equipe) {\n this.equipe = equipe;\n }", "public void setCseService(CseService pCseService) {\n\t\tcseService = pCseService;\n\t}", "public void setGrasaCorp(String grasaCorp) {\r\n this.grasaCorp = grasaCorp;\r\n }", "public void setStrategieEmployability(String strategieEmployability)\n {\n this.strategieEmployability = strategieEmployability;\n }", "public void setPlayer(Player player){\r\n\t\tif (!hasBeenAcquired()){\r\n\t\t\tthis.acquiredBy = player;\r\n\t\t}\r\n\t\telse{\r\n\t\t\tthrow new IllegalArgumentException(\"Cannot acquire a plot that has already been acquired!\");\r\n\t\t}\r\n\t}", "public void setIndustry(\n @Nullable\n final String industry) {\n rememberChangedField(\"Industry\", this.industry);\n this.industry = industry;\n }", "public void setKonsortiumManager(final KonsortiumManager konsortiumManager) {\n\t\tthis.konsortiumManager = konsortiumManager;\n\t}", "public void secondarySetOrganization(com.hps.july.persistence.Organization arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondarySetOrganization(arg0);\n }", "public void secondarySetOrganization(com.hps.july.persistence.Organization anOrganization) throws java.rmi.RemoteException;", "public void setOrganization(Organization organization){\r\n\t\tthis.organization = organization;\r\n\t}", "public void setAdvisors(List<Professor> list) {\r\n advisors = list;\r\n }", "Builder addEducationalUse(String value);", "@Beta(Beta.SinceVersion.V1_7_0)\n @Method\n SqlElasticPoolOperations.DefinitionStages.WithPremiumEdition withPremiumPool();", "public void setSelectionProvider(final SelectionProvider selectionProvider) {\n\t\tthis.selectionProvider = selectionProvider;\n\t}", "public ProductOffering id(String id) {\n this.id = id;\n return this;\n }", "public void setAccompagnantService(IAccompagnantService accompagnantService) {\r\n\t\tthis.accompagnantService = accompagnantService;\r\n\t}", "public void setClaimableTools(ClaimableTools pClaimableTools) {\n mClaimableTools = pClaimableTools;\n }", "public void setOccupation(String occupation);", "private void actionChangedEstimatorSettingsManual ()\r\n\t{\r\n\t\tmainFormLink.getComponentPanelLeft().getCombobobxEstimatorBacteriaType().setEnabled(true);\r\n\t\tmainFormLink.getComponentPanelLeft().getComboboxEstimatorDrugType().setEnabled(true);\r\n\t}", "public void setProductOwner(String productOwner);", "public void setAssetManager(AssetManager am) {\n\t\t__am = am;\n\t}", "protected void setProvider() {\n fs.getClient().setKeyProvider(cluster.getNameNode().getNamesystem()\n .getProvider());\n }", "public void setProduitManager(IProduitService produitManager) {\r\n\t\tthis.produitManager = produitManager;\r\n\t}", "public void setEnablementParameter(YParameter parameter) {\n if (YParameter.getTypeForEnablement().equals(parameter.getDirection())) {\n if (null != parameter.getName()) {\n _enablementParameters.put(parameter.getName(), parameter);\n } else if (null != parameter.getElementName()) {\n _enablementParameters.put(parameter.getElementName(), parameter);\n }\n } else {\n throw new RuntimeException(\"Can only set enablement type param as such.\");\n }\n }", "@Override\r\n\tpublic void setForPermit(DriverVO driverVO) {\n\t\t\r\n\t}", "public void setExplorationPolicy(ExplorationPolicy explorationPolicy) {\n this.explorationPolicy = explorationPolicy;\n }", "public void setNewFittedOffer(Offer offer){ \r\n\t\t//System.out.println(\"previous offer list size= \"+ this.FittedOffers.size());\r\n\t\tthis.FittedOffers.add(offer);\r\n\t\t//System.out.println(\"current offer list size= \"+ this.FittedOffers.size());\r\n\t}", "public void setAssignable(boolean assignable) {\n isAssignable = assignable;\n }", "@Then(\"^user selects the accommodation and enters the quantity$\")\n\tpublic void user_selects_the_accommodation_and_enters_the_quantity() throws Throwable {\n\t\tamendFerry.updateExtraAccom();\n\t\tamendFerry.updateExtra();\n\t}", "void setProvider(modelProvidersI IDProvider);", "public void setOrganization(Organization organization) {\n this.organization = organization;\n }", "public void setOrganization(Organization organization) {\n this.organization = organization;\n }", "public void setSelectedArena(Arena arena) {\n this.selectedArena = arena;\n }", "@Inject\n public void setEventsmanagement(Eventsmanagement eventsmanagement) {\n\n this.eventsmanagement = eventsmanagement;\n }", "public void setOrgExecutor(java.lang.String newOrgExecutor) {\n\torgExecutor = newOrgExecutor;\n}", "@Test\n public void testSetOffer() {\n \n assertNull(o2.getOffer());\n o2.setOffer(\"testOffer2\");\n assertNotNull(o2.getOffer());\n assertEquals(\"testOffer2\", o2.getOffer());\n }", "public void setEsperService(EsperManagementService esper) {\n\t\tthis.esperService = esper;\n\t\tfor (Integer appID : queuedApps) {\n\t\t\tstartApp(appID, true);\n\t\t}\n\t\tqueuedApps.clear();\n\t}", "public void setComapny (jkt.hms.masters.business.MasHospital comapny) {\n\t\tthis.comapny = comapny;\n\t}", "private void setHotel(Hotel myHotel) {\n\t\tthis.myHotel = myHotel;\n\t}", "public void setLaboratorio(String Laboratorio) {\n this.intento=true;\n this.laboratorio = Laboratorio;\n }", "public abstract void updateOfferComponents();", "public void setAvailable(boolean a)\n {\n this.available = a;\n }", "public final void setAlgoSpec(BrokerAlgoSpec inAlgoSpec)\n {\n algoSpec = inAlgoSpec;\n }", "public void setProductManager(ProductManager a_ProductManager)\n\t{\n\t\tm_productManager = a_ProductManager;\n\t}", "public void activate ()\n {\n // add the editor panel\n _split.setRightComponent(_epanel);\n SwingUtil.refresh(_epanel);\n\n // activate the selected item\n GroupItem group = (GroupItem)gbox.getSelectedItem();\n if (group != null) {\n group.activate();\n }\n\n boolean writeable = !_readOnly;\n // can only save/revert configurations with a config path\n boolean enable = writeable && (cfgmgr.getConfigPath() != null);\n _save.setEnabled(enable);\n _revert.setEnabled(enable);\n _saveAll.setEnabled(enable);\n _revertAll.setEnabled(enable);\n }", "public void setIndustry(String industry) {\n this.industry = industry;\n }", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "Builder addProvider(Organization.Builder value);", "public ManageAmazonJPanel(JPanel userProcessContainer, EcoSystem system) {\n initComponents();\n this.userProcessContainer = userProcessContainer;\n this.system = system;\n populateNetwrkTable();\n populateCombo();\n EnterpriseJComboButton.removeAllItems();\n populateEnterprise();\n\n }" ]
[ "0.7157418", "0.5366128", "0.5344955", "0.524725", "0.5237639", "0.5080854", "0.50612783", "0.50086963", "0.4976597", "0.49432993", "0.49230328", "0.4884828", "0.48477256", "0.48127383", "0.47829244", "0.47644997", "0.4762147", "0.46804154", "0.4661933", "0.46581936", "0.46430045", "0.46359044", "0.46336725", "0.46275914", "0.46108732", "0.45906073", "0.45783636", "0.45650372", "0.45647526", "0.4551649", "0.45468754", "0.45453742", "0.45351022", "0.45313862", "0.45043415", "0.4503849", "0.4483846", "0.44809806", "0.44745103", "0.44642955", "0.4452743", "0.44499317", "0.44438446", "0.44361684", "0.4433482", "0.4427454", "0.44212943", "0.44203493", "0.44183636", "0.4410436", "0.4409094", "0.44067085", "0.44060534", "0.44060183", "0.4404575", "0.43949208", "0.43944532", "0.43917418", "0.43868712", "0.43842134", "0.43813834", "0.43769044", "0.4374368", "0.4374178", "0.43718722", "0.43715033", "0.43703866", "0.4368456", "0.43679398", "0.43675923", "0.43675923", "0.4353192", "0.43508074", "0.4347867", "0.43443018", "0.43428254", "0.43296003", "0.4326853", "0.43260875", "0.4324781", "0.43211547", "0.4320107", "0.43181738", "0.4312858", "0.4311768", "0.43115246", "0.43115246", "0.43115246", "0.43115246", "0.43115246", "0.43115246", "0.43115246", "0.43115246", "0.43115246", "0.43115246", "0.43115246", "0.43115246", "0.43115246", "0.43106115", "0.43105602" ]
0.72201926
0
Gets sort strategy map.
protected Map<String, AccommodationOfferingSearchResponseSortStrategy> getSortStrategyMap() { return sortStrategyMap; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Required\n\tpublic void setSortStrategyMap(final Map<String, AccommodationOfferingSearchResponseSortStrategy> sortStrategyMap)\n\t{\n\t\tthis.sortStrategyMap = sortStrategyMap;\n\t}", "public static Map<Integer,Planet> getPlanetsByOrder() { return planetsByOrder; }", "private static Map<String, Method> sortAsDeclaredOrder(Map<String, Method> unordered_mp, Object obj)\n {\n Map<String, Method> map = new LinkedHashMap<>();\n\n for (Field field:obj.getClass().getDeclaredFields())\n {\n Method m = unordered_mp.get(field.getName());\n if (m != null)\n {\n map.put(field.getName(), m);\n }\n }\n\n return map;\n }", "public IDataBrowserSortStrategy getGuiSortStrategy()\n {\n if (this.lastSortStrategy == null)\n this.lastSortStrategy = new SortStrategy(this, null, null);\n return lastSortStrategy;\n }", "public ArrayList<SortingRule> get_sort_by() {\n\t\treturn sort_by;\n\t}", "protected SortedMap getSortedMap() {\n/* 65 */ return (SortedMap)this.map;\n/* */ }", "public Map getOperatorMap()// TODO tighten protection?\n\t{\n\t\treturn mComparisonOperatorMap; // TODO make unmodifiable?\n\t}", "public java.util.List<PlacementStrategy> getPlacementStrategy() {\n if (placementStrategy == null) {\n placementStrategy = new com.amazonaws.internal.SdkInternalList<PlacementStrategy>();\n }\n return placementStrategy;\n }", "public Map findAvailableSorters(INavigatorContentDescriptor theSource);", "Map<String, org.springframework.batch.item.database.Order> genBatchOrderByFromSort(TableFields tableFields, Sort sort);", "public Map<EntityMode,String> getTuplizerClassMap();", "private static Map<String, Object> sortAsDeclaredOrder(Object obj, Map<String, Object> unordered_mp)\n {\n Map<String, Object> map = new LinkedHashMap<>();\n\n for (Field field:obj.getClass().getDeclaredFields())\n {\n Object m = unordered_mp.get(field.getName());\n if (m != null)\n {\n map.put(field.getName(), m);\n }\n }\n\n return map;\n }", "static public String getCurrentSortingMethod(Context context) {\n String aux = PreferenceManager.getDefaultSharedPreferences(context).getString(\n context.getString(R.string.preferred_sorting_method_key),\n context.getString(R.string.default_sorting_method));\n return aux;\n }", "public SortedMap<Integer, SortedMap<Long, PolyMLStatistics>> getProcessData()\n {\n return Collections.unmodifiableSortedMap(processData);\n }", "public int getStrategy() {\n\t\t \n\t\t return strategyInt;\n\t}", "public IDataBrowserSortStrategy newGuiSortStrategy()\n {\n this.lastSortStrategy = new SortStrategy(this, null, null);\n return this.lastSortStrategy;\n }", "public static LinkedHashMap<UUID, Double> sortMap(RacePlugin plugin) {\n LinkedHashMap<UUID, Double> reverseSortedMap = new LinkedHashMap<>();\r\n\r\n//Use Comparator.reverseOrder() for reverse ordering\r\n getLocations(plugin).entrySet()\r\n .stream()\r\n .sorted(Map.Entry.comparingByValue(Comparator.reverseOrder()))\r\n .forEachOrdered(x -> reverseSortedMap.put(x.getKey(), x.getValue()));\r\n return reverseSortedMap;\r\n }", "public interface SortType {\n int ASC=1;\n int DESC=-1;\n int INFO =3;\n int POINT=4;\n int ACTIVE=5;\n}", "public Integer getSort() {\r\n return sort;\r\n }", "public PolicyMap getPolicyMap();", "public Integer getSort() {\n return sort;\n }", "public Integer getSort() {\n return sort;\n }", "public Integer getSort() {\n return sort;\n }", "public Integer getSort() {\n return sort;\n }", "public Integer getSort() {\n return sort;\n }", "public Integer getSort() {\n return sort;\n }", "public Integer getSort() {\n return sort;\n }", "public Integer getSort() {\n return sort;\n }", "public Integer getSort() {\n return sort;\n }", "public static String getPreferredSortingCriterion(Context context){\n\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);\n String keyForSortingCriterion = context.getString(R.string.pref_sort_criterion_key);\n\n return sp.getString(keyForSortingCriterion,getDefaultSortingCriterion(context));\n }", "public Map<Integer, Integer> getAllSortedCommittedValues() {\n\n LinkedHashMap<Integer, Integer> sortedMap = new LinkedHashMap<>();\n variables.entrySet()\n .stream()\n .sorted(Map.Entry.comparingByKey())\n .forEachOrdered(x -> sortedMap.put(x.getKey(), x.getValue().getKey()));\n\n return sortedMap;\n }", "private void fetchSortingConfig() {\n IndexingConfig indexingConfig = _tableConfig.getIndexingConfig();\n List<String> sortedColumns = indexingConfig.getSortedColumn();\n Preconditions.checkArgument(sortedColumns.size() <= 1, \"There should be at most 1 sorted column in the table.\");\n if (sortedColumns.size() == 1) {\n _sortedColumn = sortedColumns.get(0);\n }\n }", "protected Map getKeyMethodMap() {\n\t\tHashMap<String, String> map = new HashMap<String, String>();\n\t\tmap.put(\"cmd.planilla.lista\", \"lista\");\n\t\tmap.put(\"cmd.planilla.buscar\", \"buscar\");\n\t\tmap.put(\"cmd.planilla.verificar\", \"verificar\");\n\t\tmap.put(\"cmd.planilla.cargar\", \"cargar\");\n\t\tmap.put(\"cmd.planilla.actualizar\", \"actualizar\");\n\t\tmap.put(\"cmd.planilla.generar\", \"generar\");\n\t\tmap.put(\"cmd.planilla.cargaFin\", \"cargaFin\");\n\t\tmap.put(\"cmd.planilla.descEmpleadoFiador\", \"descEmpleadoFiador\");\n\t\tmap.put(\"cmd.planilla.verReporte\", \"verReporte\");\n\t\treturn map;\n\t}", "public String getSortOrder();", "private OrderSpecifier[] getOrderSpecifiers(@NotNull Pageable pageable) {\n\n return pageable.getSort().stream()\n .map(order -> new OrderSpecifier(\n Order.valueOf(order.getDirection().toString()),\n new PathBuilder(AirplaneTrip.class, \"airplaneTrip\")\n .get(order.getProperty()))\n )\n .toArray(OrderSpecifier[]::new);\n }", "private static Map<Long, Long> sortByComparatorGift(Map<Long, Long> unsortMap) {\n\t\tList<Map.Entry<Long, Long>> list = \n\t\t\tnew LinkedList<Map.Entry<Long, Long>>(unsortMap.entrySet());\n \n\t\t// Sort list with comparator, to compare the Map values\n\t\tComparator<Map.Entry<Long, Long>> comparator;\n\t\tcomparator = Collections.reverseOrder(new Comparator<Map.Entry<Long, Long>>() {\n\t\t\tpublic int compare(Map.Entry<Long, Long> o1,\n Map.Entry<Long, Long> o2) {\n\t\t\t\treturn (o1.getValue()).compareTo(o2.getValue());\n\t\t\t}\n\t\t});\n\t\tCollections.sort(list, comparator);\n \n\t\t// Convert sorted map back to a Map\n\t\tMap<Long, Long> sortedMap = new LinkedHashMap<Long, Long>();\n\t\tfor (Iterator<Map.Entry<Long, Long>> it = list.iterator(); it.hasNext();) {\n\t\t\tMap.Entry<Long, Long> entry = it.next();\n\t\t\tsortedMap.put(entry.getKey(), entry.getValue());\n\t\t}\n\t\treturn sortedMap;\n\t}", "private static void sortMap(HashMap<Integer, Integer> map) {\n\t\t\n\t}", "private Map<String, Object> sortMap(Map<String, Object> map)\n {\n return new TreeMap<>(map);\n }", "protected Comparator<?> getInitialSortOrderComparator() {\n MetaData md = PmTableImpl.this.getOwnMetaDataWithoutPmInitCall();\n return (md.initialBeanSortComparatorClass != null)\n ? (Comparator<?>)ClassUtil.newInstance(md.initialBeanSortComparatorClass)\n : null;\n }", "protected Map<String, Function> getFuncMap() {\n\t\treturn myFuncMap;\n\t}", "static String getSorting(String sortingKey, boolean modifier)\r\n {\r\n String s;\r\n if (sortingMap.containsKey(sortingKey))\r\n {\r\n s = sortingMap.get(sortingKey);\r\n }\r\n else\r\n {\r\n s = sortingMap.get(SORT_PROPERTY_NAME);\r\n }\r\n\r\n if (modifier)\r\n {\r\n s += \" ASC\";\r\n }\r\n else\r\n {\r\n s += \" DESC\";\r\n }\r\n\r\n return s;\r\n }", "public HashMap<Integer, ExecutedOrder> getExecutedOrders(){\n\t\treturn hmExecutedOrder;\n\t}", "public synchronized final ColumnSort getSort() {\r\n return f_sort;\r\n }", "@Override\r\n\tpublic BaseMapper<T> getMapper() {\n\t\treturn orderMapper;\r\n\t}", "public List<Chemin> getSortants() {\n return sortants;\n }", "public Sort getSort() {\r\n\t\t\t\treturn sort;\r\n\t\t\t}", "private static Map<String, Integer> sortByComparator(Map<String, Integer> unsortMap) {\n\t\tList<Map.Entry<String, Integer>> list = \n\t\t\tnew LinkedList<Map.Entry<String, Integer>>(unsortMap.entrySet());\n \n\t\t// Sort list with comparator, to compare the Map values\n\t\tComparator<Map.Entry<String, Integer>> comparator;\n\t\tcomparator=Collections.reverseOrder(new Comparator<Map.Entry<String, Integer>>() {\n\t\t\tpublic int compare(Map.Entry<String, Integer> o1,\n Map.Entry<String, Integer> o2) {\n\t\t\t\treturn (o1.getValue()).compareTo(o2.getValue());\n\t\t\t}\n\t\t});\n\t\tCollections.sort(list, comparator);\n \n\t\t// Convert sorted map back to a Map\n\t\tMap<String, Integer> sortedMap = new LinkedHashMap<String, Integer>();\n\t\tfor (Iterator<Map.Entry<String, Integer>> it = list.iterator(); it.hasNext();) {\n\t\t\tMap.Entry<String, Integer> entry = it.next();\n\t\t\tsortedMap.put(entry.getKey(), entry.getValue());\n\t\t}\n\t\treturn sortedMap;\n\t}", "List<ColumnStrategy> getColumnStrategies();", "public Stack<Map<Integer, Territory>> getMapsHistoryByOrder() {\n Stack<Map<Integer,Territory>> mapsHistoryByOrder = new Stack<>();\n roundsHistory.forEach(roundHistory -> mapsHistoryByOrder.push(roundHistory.getMapHistory()));\n return mapsHistoryByOrder;\n }", "SortComparator(Map<Integer, Integer> tFreqMap) { \n this.freqMap = tFreqMap; \n }", "public static JwComparator<AcWebServiceRequestData> getServiceTypeComparator()\n {\n return AcWebServiceRequestDataTools.instance.getServiceTypeComparator();\n }", "public Short getSort() {\n return sort;\n }", "public static JwComparator<AcPost> getActiveComparator()\n {\n return AcPostTools.instance.getActiveComparator();\n }", "public Integer getInstSort() {\n return instSort;\n }", "ColumnSortList.ColumnSortInfo getSortInfo();", "@Override\n public Sort getDefaultSort() {\n return Sort.add(SiteConfineArea.PROP_CREATE_TIME, Direction.DESC);\n }", "public SortedMap<String,Long>\n getResources()\n {\n TreeMap<String, Long> toReturn = new TreeMap<String, Long>();\n \n getResourcesHelper(toReturn);\n \n if(!toReturn.isEmpty()) {\n return Collections.unmodifiableSortedMap(toReturn);\n }\n\n return null;\n }", "abstract String getSortKey();", "public Map<Profile, Archetype> getArchetypeMap() {\n return map;\n }", "public static Map<String, String> getTableMap() {\n return tableMap;\n }", "public static JwComparator<AcDomesticCandidateRouteLeg> getLegNumberComparator()\n {\n return AcDomesticCandidateRouteLegTools.instance.getLegNumberComparator();\n }", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\t\t\t\t@Override\n\t\t\t\tpublic List getSortKeys() {\n\t\t\t\t\treturn sortKeys.stream().filter(x -> x.getSortOrder() != SortOrder.UNSORTED)\n\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t}", "public static JwComparator<AcPost> getRouteOutputChannelIdComparator()\n {\n return AcPostTools.instance.getRouteOutputChannelIdComparator();\n }", "public Map<String, Counter> getMap(){\n\t\treturn map;\n\t}", "public Map<ClassName, List<ClassName>> dependenciesMap() { return m_dependenceisMap; }", "public IScapSyncSearchSortField[] getSortFields();", "Map<Element, Map<Element, Element>> getOperationMap();", "public Map getKeyMethodMap() {\r\n\t\tMap map = new HashMap();\r\n\r\n\t\tString pkg = this.getClass().getPackage().getName();\r\n\t\tResourceBundle methods = ResourceBundle.getBundle(pkg\r\n\t\t\t\t+ \".LookupMethods\");\r\n\r\n\t\tEnumeration keys = methods.getKeys();\r\n\r\n\t\twhile (keys.hasMoreElements()) {\r\n\t\t\tString key = (String) keys.nextElement();\r\n\t\t\tmap.put(key, methods.getString(key));\r\n\t\t}\r\n\r\n\t\treturn map;\r\n\t}", "public ArrayList<PoolMap> get_P_maps(){\n\n\t\treturn poolMaps;\n\t}", "public Long getSort_merge_passes() {\n return sort_merge_passes;\n }", "public List<Entry<String, Double>> sort()\n\t{\n\t\tList<Entry<String, Double>> list = new ArrayList<Entry<String, Double>>();\n\t\tfor(Entry<String, Double> entry : map.entrySet())\n\t\t{\n\t\t\tlist.add(entry);\n\t\t}\n\n\t\tComparator<Entry<String, Double>> compare = new Comparator<Entry<String, Double>>() {\n\t @Override\n\t public int compare(Entry<String, Double> first, Entry<String, Double> second)\n\t {\n\t \tif (first.getValue() > second.getValue())\n\t \t{\n\t return -1;\n\t }\n\t if (first.getValue() < second.getValue())\n\t {\n\t return 1;\n\t }\n\t return 0;\n\t }\n\t };\n\n\t Collections.sort(list, compare);\n return list;\n\t}", "public BoxPlotSortConfiguration getSortConfiguration() {\n return this.sortConfiguration;\n }", "private static Map<String, Double> sortByComparator(Map<String, Double> unsortMap, final boolean order)\n {\n\n List<Entry<String, Double>> list = new LinkedList<Entry<String, Double>>(unsortMap.entrySet());\n\n // Sorting the list based on values\n Collections.sort(list, new Comparator<Entry<String, Double>>()\n {\n public int compare(Entry<String, Double> o1,\n Entry<String, Double> o2)\n {\n if (order)\n {\n return o1.getValue().compareTo(o2.getValue());\n }\n else\n {\n return o2.getValue().compareTo(o1.getValue());\n\n }\n }\n });\n\n int rank = 1;\n // Maintaining insertion order with the help of LinkedList\n Map<String, Double> sortedMap = new LinkedHashMap<String, Double>();\n for (Entry<String, Double> entry : list)\n {\n \tif(rank<=1000){\n \t\n \t\tsortedMap.put(entry.getKey() +\" \"+ String.valueOf(rank), entry.getValue());\n \t\trank++;\n \t}\n \telse break;\n }\n \n //Map<string, Double> updatedRank = new LinkedHashMap<String, Double>();\n\n return sortedMap;\n }", "public Map<String, Object> getInfoMap()\n {\n Map<String, Object> paramMap = new HashMap<String, Object>();\n this.putInMap(paramMap);\n return paramMap;\n }", "public Map<String, Factory> getFactoryMap(){\n\t\treturn factoryMap;\n\t}", "protected List<Order> getOrdering(Path<?> t, CriteriaBuilder cb) {\r\n if (sortPropertyIds == null || sortPropertyIds.length == 0) {\r\n sortPropertyIds = nativeSortPropertyIds;\r\n sortPropertyAscendingStates = nativeSortPropertyAscendingStates;\r\n }\r\n \r\n ArrayList<Order> ordering = new ArrayList<Order>();\r\n \tif (sortPropertyIds == null || sortPropertyIds.length == 0) return ordering;\r\n \t\r\n\t\tfor (int curItem = 0; curItem < sortPropertyIds.length; curItem++ ) {\r\n\t \tfinal String id = (String)sortPropertyIds[curItem];\r\n\t\t\tif (sortPropertyAscendingStates[curItem]) {\r\n\t\t\t\tordering.add(cb.asc(t.get(id)));\r\n\t\t\t} else {\r\n\t\t\t\tordering.add(cb.desc(t.get(id)));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ordering;\r\n\t}", "Map<String, Double> sortByValues(Map<String, Double> map_to_sort){\n\tList<Map.Entry<String,Double>> ranklist = new LinkedList<Map.Entry<String,Double>>(map_to_sort.entrySet());\n\tCollections.sort(ranklist, new Comparator<Map.Entry<String, Double>>(){\n\t\tpublic int compare(Map.Entry<String,Double> o1, Map.Entry<String,Double> o2){\n\t\t\treturn o2.getValue().compareTo((double)o1.getValue() );\n\t\t}\n\t});\n\t\n\tMap<String, Double> sortedRank = new LinkedHashMap<String,Double>();\n\tfor(Map.Entry<String, Double> rank : ranklist){\n\t\tsortedRank.put(rank.getKey(), rank.getValue());\t\t\t\n\t}\n\t\n\treturn sortedRank;\n\t}", "protected LinkedHashMap<String, Float> getAllOptionLHM() {\n\t\tLinkedHashMap<String, Float> optionsetmap = new LinkedHashMap<String,Float>();\n\t\tfor(Option op : options){\n\t\t\toptionsetmap.put(op.getOptionName(), op.getPrice());\n\t\t}\n\t\treturn optionsetmap;\n\t}", "private Map getExportsMap(Resource resource) {\n \t\treturn (Map) exports.get(resource);\n \t}", "public static final TypeDescriptor<?> strategyType() {\n return INSTANCE.getType(Constants.TYPE_STRATEGY);\n }", "private Collection<IndexedDiskElementDescriptor> createPositionSortedDescriptorList()\r\n {\r\n final List<IndexedDiskElementDescriptor> defragList = new ArrayList<>(keyHash.values());\r\n defragList.sort(Comparator.comparing(ded1 -> ded1.pos));\r\n\r\n return defragList;\r\n }", "public String name_of_sort()\r\n\t{\r\n\t\treturn \"Merge sort\";\r\n\t}", "SolrIndexedTypeDefaultSortOrderMappingModel findIndexOrderSortMapping(String indexedType);", "public int[] getColumnsOfSpecialComparatorForSorting() {\n return new int[]{0, 1, 2};\n }", "Map<String, FileModule> getSymbolMap() {\n Map<String, FileModule> out = new LinkedHashMap<>();\n for (FileModule module : fileToModule.values()) {\n for (String symbol : module.importedNamespacesToSymbols.keySet()) {\n out.put(symbol, module);\n }\n }\n return out;\n }", "public List<Map<String, Object>> getOrder(String id);", "public Map<String, Object> getInfoMap() {\n\t\tMap<String, Object> paramMap = new HashMap<String, Object>();\n\t\tthis.putInMap(paramMap);\n\t\treturn paramMap;\n\t}", "java.lang.String getOrderBy();", "public Map<Employee,String> getPerformancemap(){\r\n\t\treturn performance;\r\n\t}", "public void sortCompetitors(){\n\t\t}", "public String stats()\n\t{\n\t\tString algo = null;//set up algo return null if error\n\t\tswitch (sortingAlgorithm) {\n\t\tcase SelectionSort:\n\t\t\talgo = \"SelectionSort\";\n\t\t\tbreak;\n\t\tcase InsertionSort:\n\t\t\talgo = \"InsertionSort\";\n\t\t\tbreak;\n\t\tcase MergeSort:\n\t\t\talgo = \"MergeSort\";\n\t\t\tbreak;\n\t\tcase QuickSort:\n\t\t\talgo = \"QuickSort\";\n\t\t\tbreak;\n\t\t}\n\t\treturn algo + \"\\t\" + points.length + \"\\t\" + scanTime; \n\t}", "String getSortColumn();", "private static <N extends Node> SortedMap<ImmutableContextSet, SortedSet<N>> createMap() {\n return new ConcurrentSkipListMap<>(ContextSetComparator.reverse());\n }", "HashMap <String, Command> getMap();", "public static HashMap<String, Shelter> getMap() {\n return shelters;\n }", "public int getSortType() {\n\t\treturn SortType;\n\t}", "private Map<String, Double> sortBottomPercents(final String gradingScaleName, final Map<String, Double> percents) {\n\n\t\tMap<String, Double> rval = null;\n\n\t\tif (StringUtils.equals(gradingScaleName, \"Pass / Not Pass\")) {\n\t\t\trval = new TreeMap<>(Collections.reverseOrder()); // P before NP.\n\t\t} else {\n\t\t\trval = new TreeMap<>(new LetterGradeComparator()); // letter grade mappings\n\t\t}\n\t\trval.putAll(percents);\n\n\t\treturn rval;\n\t}", "LinkedHashMap<Long, Truck> getTrucksForOrder(Long weight);", "@Override\n public int compare(Map<String, Object> o1, Map<String, Object> o2) {\n if(!descflag){\n return String.valueOf(o2.get(orderField)).compareTo(String.valueOf(o1.get(orderField)));\n }else {\n return String.valueOf(o1.get(orderField)).compareTo(String.valueOf(o2.get(orderField)));\n }\n // return 0;//加一个默认返回\n }", "public Map<Diff<K>, Diff<V>> getMap() {\r\n return map;\r\n }" ]
[ "0.57801455", "0.5779059", "0.560933", "0.54927886", "0.5251919", "0.5251248", "0.52348465", "0.5180141", "0.5177878", "0.51135594", "0.50998116", "0.50915956", "0.50336254", "0.49882603", "0.49724945", "0.49165556", "0.48968375", "0.48849016", "0.48829818", "0.48654166", "0.4855563", "0.4855563", "0.4855563", "0.4855563", "0.4855563", "0.4855563", "0.4855563", "0.4855563", "0.4855563", "0.48551685", "0.4840397", "0.48294982", "0.48267704", "0.48257273", "0.48145062", "0.48105615", "0.48077506", "0.4805434", "0.47958782", "0.4788165", "0.47806448", "0.4773926", "0.47681084", "0.47626784", "0.47607324", "0.47541752", "0.47501862", "0.47479278", "0.47323966", "0.47275165", "0.47149742", "0.47010273", "0.46974325", "0.4672673", "0.46645504", "0.46412617", "0.46305016", "0.46243057", "0.46182004", "0.45970118", "0.45830524", "0.45801947", "0.45739874", "0.45733562", "0.45685345", "0.45673922", "0.456538", "0.4563572", "0.45607665", "0.45596656", "0.4554035", "0.45533156", "0.45506063", "0.45421398", "0.45406634", "0.45399597", "0.4534318", "0.45296156", "0.45278314", "0.45244274", "0.45183665", "0.4517222", "0.4516174", "0.45095363", "0.4506971", "0.45068514", "0.4495923", "0.44902018", "0.4489879", "0.4487288", "0.4485909", "0.44774562", "0.44761914", "0.44724303", "0.44690138", "0.44676924", "0.44673336", "0.44655502", "0.44615403", "0.44601265" ]
0.8018704
0
Sets sort strategy map.
@Required public void setSortStrategyMap(final Map<String, AccommodationOfferingSearchResponseSortStrategy> sortStrategyMap) { this.sortStrategyMap = sortStrategyMap; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Map<String, AccommodationOfferingSearchResponseSortStrategy> getSortStrategyMap()\n\t{\n\t\treturn sortStrategyMap;\n\t}", "@Override\r\n\tpublic void addSort() {\n\t\t\r\n\t}", "private static void populateArtworkSorts() {\r\n if (artworkSorts.isEmpty()) {\r\n artworkSorts.add(SORT_FAV_ASC);\r\n artworkSorts.add(SORT_FAV_DESC);\r\n artworkSorts.add(SORT_NAME_ASC);\r\n artworkSorts.add(SORT_NAME_DESC);\r\n }\r\n }", "public abstract void setSortKeys(List<? extends SortKey> keys);", "SortComparator(Map<Integer, Integer> tFreqMap) { \n this.freqMap = tFreqMap; \n }", "Map<String, org.springframework.batch.item.database.Order> genBatchOrderByFromSort(TableFields tableFields, Sort sort);", "private static void sortMap(HashMap<Integer, Integer> map) {\n\t\t\n\t}", "public void sortCompetitors(){\n\t\t}", "@Override\n\tpublic void setSortCounters(boolean sortCounters) {\n\t\t\n\t}", "private static Map<String, Method> sortAsDeclaredOrder(Map<String, Method> unordered_mp, Object obj)\n {\n Map<String, Method> map = new LinkedHashMap<>();\n\n for (Field field:obj.getClass().getDeclaredFields())\n {\n Method m = unordered_mp.get(field.getName());\n if (m != null)\n {\n map.put(field.getName(), m);\n }\n }\n\n return map;\n }", "public interface SortType {\n int ASC=1;\n int DESC=-1;\n int INFO =3;\n int POINT=4;\n int ACTIVE=5;\n}", "@Override\n\tpublic void setSorting(Object[] propertyIds, boolean[] ascending) {\n\t\t\n\t}", "private static void setSorted(JobConf conf) {\n conf.setBoolean(INPUT_SORT, true);\n }", "public void sort() {\r\n // sort the process variables\r\n Arrays.sort(pvValues, categoryComparator);\r\n fireTableDataChanged();\r\n }", "public void changeSortOrder();", "public static void setFlags( boolean typesort, boolean keysort ) {\n Main.typeSort = typesort;\n Main.keySort = keysort;\n }", "@Override\r\n\tpublic void editSort() {\n\t\t\r\n\t}", "private static void sortingMemo() {\n\t\t\n\t}", "@Override\n public void sort(IAlg algorithm, boolean decrescent){}", "@Override\r\n\tpublic void setSortProperties(List<? extends ISortProperty> sortProperties) {\n\t\t\r\n\t}", "private void sortByKeys(LazyMap<ProcessorDistributionKey, Collection<Geometry>> keyToGeoms,\n Collection<? extends Geometry> sortGeoms, Collection<Geometry> unprocessed)\n {\n final ProcessorDistributionKey hull = new ProcessorDistributionKey();\n for (final Geometry geom : sortGeoms)\n {\n sortByKeys(keyToGeoms, geom, unprocessed, hull);\n }\n }", "public void sort() {\n }", "private static Map<String, Double> sortByComparator(Map<String, Double> unsortMap, final boolean order)\n {\n\n List<Entry<String, Double>> list = new LinkedList<Entry<String, Double>>(unsortMap.entrySet());\n\n // Sorting the list based on values\n Collections.sort(list, new Comparator<Entry<String, Double>>()\n {\n public int compare(Entry<String, Double> o1,\n Entry<String, Double> o2)\n {\n if (order)\n {\n return o1.getValue().compareTo(o2.getValue());\n }\n else\n {\n return o2.getValue().compareTo(o1.getValue());\n\n }\n }\n });\n\n int rank = 1;\n // Maintaining insertion order with the help of LinkedList\n Map<String, Double> sortedMap = new LinkedHashMap<String, Double>();\n for (Entry<String, Double> entry : list)\n {\n \tif(rank<=1000){\n \t\n \t\tsortedMap.put(entry.getKey() +\" \"+ String.valueOf(rank), entry.getValue());\n \t\trank++;\n \t}\n \telse break;\n }\n \n //Map<string, Double> updatedRank = new LinkedHashMap<String, Double>();\n\n return sortedMap;\n }", "public void sort() {\n if (sorter != null)\n sort(sorter);\n }", "private static Map<Long, Long> sortByComparatorGift(Map<Long, Long> unsortMap) {\n\t\tList<Map.Entry<Long, Long>> list = \n\t\t\tnew LinkedList<Map.Entry<Long, Long>>(unsortMap.entrySet());\n \n\t\t// Sort list with comparator, to compare the Map values\n\t\tComparator<Map.Entry<Long, Long>> comparator;\n\t\tcomparator = Collections.reverseOrder(new Comparator<Map.Entry<Long, Long>>() {\n\t\t\tpublic int compare(Map.Entry<Long, Long> o1,\n Map.Entry<Long, Long> o2) {\n\t\t\t\treturn (o1.getValue()).compareTo(o2.getValue());\n\t\t\t}\n\t\t});\n\t\tCollections.sort(list, comparator);\n \n\t\t// Convert sorted map back to a Map\n\t\tMap<Long, Long> sortedMap = new LinkedHashMap<Long, Long>();\n\t\tfor (Iterator<Map.Entry<Long, Long>> it = list.iterator(); it.hasNext();) {\n\t\t\tMap.Entry<Long, Long> entry = it.next();\n\t\t\tsortedMap.put(entry.getKey(), entry.getValue());\n\t\t}\n\t\treturn sortedMap;\n\t}", "public void setSort(Integer sort) {\r\n this.sort = sort;\r\n }", "private Sort() { }", "public static void setSortCriteria(String method)\n \t{\n \t\tsortCriteria = method;\n \t}", "public void sortBy(Comparator<Trip> cmp) {\n comparator = cmp;\n modifiedSinceLastResult = true;\n }", "public void setSort(Integer sort) {\n this.sort = sort;\n }", "public void setSort(Integer sort) {\n this.sort = sort;\n }", "public void setSort(Integer sort) {\n this.sort = sort;\n }", "public void setSort(Integer sort) {\n this.sort = sort;\n }", "public void setSort(Integer sort) {\n this.sort = sort;\n }", "public void setSort(Integer sort) {\n this.sort = sort;\n }", "public void setSort(Integer sort) {\n this.sort = sort;\n }", "public void setSort(Integer sort) {\n this.sort = sort;\n }", "public void setSort(Integer sort) {\n this.sort = sort;\n }", "private void sort() {\n\t\tCollections.sort(this.entities, comparator);\n\t}", "private void mapSetUp() {\n\t\tfor (int i = 0; i < allChar.length; i++) {\n\t\t\tmap.put(allChar[i], shuffledChar[i]);\n\t\t}\n\t}", "public MapVOComparator(boolean isAscending, SortType primarySortType, SortType secondarySortType)\n\t{\n\t\tascending = isAscending;\n\t\tprimarySortingType = primarySortType;\n\t\tsecondarySortingType = secondarySortType;\n\t}", "public void sort() {\n compares = 0;\n shuttlesort((int[]) indexes.clone(), indexes, 0, indexes.length);\n }", "public void sort() {\n Collections.sort(jumpers, new SortJumperByPoints()); \n }", "public void sortByDefault() {\r\n\t\tcomparator = null;\r\n\t}", "private static Map<String, Integer> sortByComparator(Map<String, Integer> unsortMap) {\n\t\tList<Map.Entry<String, Integer>> list = \n\t\t\tnew LinkedList<Map.Entry<String, Integer>>(unsortMap.entrySet());\n \n\t\t// Sort list with comparator, to compare the Map values\n\t\tComparator<Map.Entry<String, Integer>> comparator;\n\t\tcomparator=Collections.reverseOrder(new Comparator<Map.Entry<String, Integer>>() {\n\t\t\tpublic int compare(Map.Entry<String, Integer> o1,\n Map.Entry<String, Integer> o2) {\n\t\t\t\treturn (o1.getValue()).compareTo(o2.getValue());\n\t\t\t}\n\t\t});\n\t\tCollections.sort(list, comparator);\n \n\t\t// Convert sorted map back to a Map\n\t\tMap<String, Integer> sortedMap = new LinkedHashMap<String, Integer>();\n\t\tfor (Iterator<Map.Entry<String, Integer>> it = list.iterator(); it.hasNext();) {\n\t\t\tMap.Entry<String, Integer> entry = it.next();\n\t\t\tsortedMap.put(entry.getKey(), entry.getValue());\n\t\t}\n\t\treturn sortedMap;\n\t}", "public DefaultSortParameters(byte[] byPattern, Range limit, byte[][] getPattern, Order order, Boolean alphabetic) {\n\t\tsuper();\n\t\tthis.byPattern = byPattern;\n\t\tthis.limit = limit;\n\t\tthis.order = order;\n\t\tthis.alphabetic = alphabetic;\n\t\tsetGetPattern(getPattern);\n\t}", "private PerfectMergeSort() {}", "private void setup() {\r\n final int gsz = _g.getNumNodes();\r\n if (_k==2) {\r\n\t\t\tNodeComparator2 comp = new NodeComparator2();\r\n\t\t\t_origNodesq = new TreeSet(comp);\r\n\t\t} else { // _k==1\r\n\t\t\tNodeComparator4 comp = new NodeComparator4();\r\n\t\t\t_origNodesq = new TreeSet(comp);\r\n\t\t}\r\n for (int i=0; i<gsz; i++) {\r\n _origNodesq.add(_g.getNodeUnsynchronized(i)); // used to be _g.getNode(i)\r\n }\r\n _nodesq = new TreeSet(_origNodesq);\r\n //System.err.println(\"done sorting\");\r\n }", "private void sortAddsAndRemoves(Collection<? extends Geometry> adds, Collection<? extends Geometry> removes,\n LazyMap<ProcessorDistributionKey, Collection<Geometry>> addKeyToGeoms,\n LazyMap<ProcessorDistributionKey, Collection<Geometry>> removeKeyToGeoms)\n {\n myUnprocessedGeometryLock.lock();\n try\n {\n sortByKeys(addKeyToGeoms, adds, myUnprocessedAdds);\n sortByKeys(removeKeyToGeoms, removes, null);\n }\n finally\n {\n myUnprocessedGeometryLock.unlock();\n }\n }", "Map<String, Double> sortByValues(Map<String, Double> map_to_sort){\n\tList<Map.Entry<String,Double>> ranklist = new LinkedList<Map.Entry<String,Double>>(map_to_sort.entrySet());\n\tCollections.sort(ranklist, new Comparator<Map.Entry<String, Double>>(){\n\t\tpublic int compare(Map.Entry<String,Double> o1, Map.Entry<String,Double> o2){\n\t\t\treturn o2.getValue().compareTo((double)o1.getValue() );\n\t\t}\n\t});\n\t\n\tMap<String, Double> sortedRank = new LinkedHashMap<String,Double>();\n\tfor(Map.Entry<String, Double> rank : ranklist){\n\t\tsortedRank.put(rank.getKey(), rank.getValue());\t\t\t\n\t}\n\t\n\treturn sortedRank;\n\t}", "public static void resetPreferredSortingCriterion(Context context){\n\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = sp.edit();\n\n String keyForSortingCriterion = context.getString(R.string.pref_sort_criterion_key);\n\n editor.remove(keyForSortingCriterion);\n editor.apply();\n\n }", "private void updateIdentificationComparator() {\n WeightSettingsEntity weightSettingsEntity = weightSettingsService.getWeightSettings();\n if (weightSettingsEntity != null) {\n if (weightSettingsEntity.getSlaDifferenceWeight() != null) {\n identificationComparator.setSlaDifferenceWeight(weightSettingsEntity.getSlaDifferenceWeight());\n }\n if (weightSettingsEntity.getSlaWeight() != null) {\n identificationComparator.setSlaWeight(weightSettingsEntity.getSlaWeight());\n }\n if (weightSettingsEntity.getWaitingTimeWeight() != null) {\n identificationComparator.setWaitingTimeWeight(weightSettingsEntity.getWaitingTimeWeight());\n }\n }\n }", "public synchronized void sort()\n\t{\n\t\tCollections.sort(vars, tvComparator);\n\t}", "public void setSortFunction(JSFunction sortFunction) {\r\n this.sortFunction = sortFunction;\r\n }", "@Override\n protected void runAlgorithm() {\n for (int i = 0; i < getArray().length; i++) {\n for (int j = i + 1; j < getArray().length; j++) {\n if (applySortingOperator(getValue(j), getValue(i))) {\n swap(i, j);\n }\n }\n }\n }", "void updateSortingComparators(Comparator<ReadOnlyEntry> eventComparator,\n Comparator<ReadOnlyEntry> deadlineComparator,\n Comparator<ReadOnlyEntry> floatingTaskComparator);", "public void setSort(Short sort) {\n this.sort = sort;\n }", "private static Map<String, Object> sortAsDeclaredOrder(Object obj, Map<String, Object> unordered_mp)\n {\n Map<String, Object> map = new LinkedHashMap<>();\n\n for (Field field:obj.getClass().getDeclaredFields())\n {\n Object m = unordered_mp.get(field.getName());\n if (m != null)\n {\n map.put(field.getName(), m);\n }\n }\n\n return map;\n }", "public String doSort();", "public static void initializeOrderMap(Gui gui){\n Menu menu = gui.getMenu();\n putArrayLstToMaps(menu.getMainDishes(), gui);\n putArrayLstToMaps(menu.getStarters(), gui);\n putArrayLstToMaps(menu.getDrinks(), gui);\n }", "public ValueComparator(Map map){\n\t\t\tthis.map = map;\n\t\t}", "public IDataBrowserSortStrategy newGuiSortStrategy()\n {\n this.lastSortStrategy = new SortStrategy(this, null, null);\n return this.lastSortStrategy;\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tTreeSet<Object> treeSet = new TreeSet<Object>();\r\n\t treeSet.add(45);\r\n\t treeSet.add(15);\r\n\t treeSet.add(99);\r\n\t treeSet.add(70);\r\n\t treeSet.add(65);\r\n\t treeSet.add(30);\r\n\t treeSet.add(10);\r\n\t System.out.println(\"TreeSet Ascending order : \" + treeSet);\r\n\t NavigableSet<Object> res = treeSet.descendingSet();\r\n\t System.out.println(\"TreeSet after Descending order\" + res);\r\n\t \r\n\t // How to Change it Descending order For TreeMap\r\n\t TreeMap<Object,Object> treeMap = new TreeMap<Object,Object>();\r\n\t treeMap.put(1,\"A\");\r\n\t treeMap.put(5,\"B\");\r\n\t treeMap.put(3,\"C\");\r\n\t treeMap.put(7,\"F\");\r\n\t treeMap.put(2,\"G\");\r\n\t System.out.println(\"TreeMap Ascending order : \" + treeMap);\r\n\t NavigableMap<Object,Object> result = treeMap.descendingMap();\r\n\t System.out.println(\"TreeMap after Descending order\" + result);\r\n\t \r\n\t // Covert HashSet or List to Array\r\n\t HashSet<String> hset = new HashSet<String>();\r\n\t hset.add(\"Element1\");\r\n\t hset.add(\"Element2\");\r\n\t hset.add(\"Element3\");\r\n\t hset.add(\"Element4\");\r\n\t // Displaying HashSet elements\r\n\t System.out.println(\"HashSet contains: \"+ hset); \r\n\t // Creating an Array\r\n\t String[] array = new String[hset.size()];\r\n\t hset.toArray(array);\r\n\t // Displaying Array elements\r\n\t System.out.println(\"Array elements: \");\r\n\t for(String temp : array){\r\n\t System.out.println(temp);\r\n\t }\r\n\t \r\n\t // HashMap Creation with Load Factor \r\n\t Map<String, String> hmapFac = new HashMap<>(12,0.95f);\r\n\t hmapFac.put(\"1\", \"Debu\");\r\n\t hmapFac.put(\"2\", \"Debu\");\r\n\t hmapFac.put(\"3\", \"Shyam\");\r\n\t hmapFac.put(\"4\", \"Uttam\");\r\n\t hmapFac.put(\"5\", \"Gautam\");\r\n\t System.out.println(\"Created with Load Factor \" + hmapFac);\r\n\t \r\n\t \r\n\t \r\n\t //how to copy one hashmap content to another hashmap\r\n\t Map<String, String> hmap1 = new HashMap<>();\r\n\t hmap1.put(\"1\", \"Debu\");\r\n\t hmap1.put(\"2\", \"Debu\");\r\n\t hmap1.put(\"3\", \"Shyam\");\r\n\t hmap1.put(\"4\", \"Uttam\");\r\n\t hmap1.put(\"5\", \"Gautam\");\r\n\t // Create another HashMap\r\n\t HashMap<String, String> hmap2 = new HashMap<String, String>();\r\n\t // Adding elements to the recently created HashMap\r\n\t hmap2.put(\"7\", \"Jerry\");\r\n\t hmap2.put(\"8\", \"Tom\");\r\n\t // Copying one HashMap \"hmap\" to another HashMap \"hmap2\"\r\n\t hmap2.putAll(hmap1);\r\n\t System.out.println(\"After Copy in The HashMap \" + hmap2);\r\n\t \r\n\t // Map containsKey(), containsValue and get() method\r\n\t // get() by index for List and similar contains available for List , Set\r\n\t \r\n\t Map<String, String> map = new HashMap<>();\r\n\t\t\tmap.put(\"1\", \"Debu\");\r\n\t\t\tmap.put(\"2\", \"Debu\");\r\n\t\t\tmap.put(\"3\", \"Shyam\");\r\n\t\t\tmap.put(\"4\", \"Uttam\");\r\n\t\t\tmap.put(\"5\", \"Gautam\");\r\n\t\t\tSystem.out.println(\"Map containsKey() : \" + map.containsKey(\"2\"));\r\n\t\t\tSystem.out.println(\"Map containsValue() : \" + map.containsValue(\"Debu\"));\r\n\t\t\tSystem.out.println(\"Map get() : \" + map.get(\"4\"));\r\n\t\t\t\r\n\t\t\t\r\n\t\t // Few Common Collection Method ========\r\n\t\t\tList<Integer> list = new ArrayList<>();\r\n\t\t\tlist.add(5);\r\n\t\t\tlist.add(3);\r\n\t\t\tlist.add(6);\r\n\t\t\tlist.add(1);\r\n\t\t\t// size()\r\n\t\t\tSystem.out.println(\"List Size() : \" + list.size());\r\n\t\t\t// contains() , Similar containsAll() take all collection Object\r\n\t\t\tSystem.out.println(\"List Contains() : \" + list.contains(1));\r\n\t\t\t// remove() - Here by object of element , also can be happen by index \r\n\t\t\t// Similar removeAll() take all collection Object\r\n\t\t\tSystem.out.println(\"List Before remove : \" + list);\r\n\t\t\tSystem.out.println(\"List remove() : \" + list.remove(3));\r\n\t\t\tSystem.out.println(\"List After remove : \" + list);\r\n\t\t\t\r\n\t\t\t// isEmpty()\r\n\t\t\tSystem.out.println(\"List isEmpty() : \" + list.isEmpty());\r\n\t\t\t// retainAll() - matching\r\n\t\t\tlist.add(1);\r\n\t\t\tlist.add(8);\r\n\t\t\tList<Integer> list1 = new ArrayList<>();\r\n\t\t\tlist1.add(8);\r\n\t\t\tlist1.add(3);\r\n\t\t\tSystem.out.println(\"List Before retainAll() : \" +list );\r\n\t\t\tlist.retainAll(list1);\r\n\t\t\tSystem.out.println(\"List AFter retainAll() : \" +list );\r\n\t\t\t\r\n\t\t\t// clear()\r\n\t\t\tSystem.out.println(\"List Before clear() : \" +list );\r\n\t\t\t\r\n\t\t\tlist.clear();\r\n\t\t\tSystem.out.println(\"List AFter clear() : \" + list );\r\n\t\t\t// Below line compile time error\r\n\t\t\t//System.out.println(\"List AFter clear() : \" + list.clear() );\r\n\t\t\tlist.add(1);\r\n\t\t\tlist.add(3);\r\n\t\t\tlist.add(6);\r\n\t\t\tSystem.out.println(\"List AFter Adding() : \" +list );\r\n\t\t\t\r\n\t\t\t\r\n\t}", "JDKSort() {\n }", "public DefaultSortParameters() {\n\t\tthis(null, null, null, null, null);\n\t}", "public void setSortProvider(DataTableSortProvider sortProvider) {\n\t\tif (this.sortProvider != sortProvider) {\n\t\t\tinvalidateIndexMapping();\n\t\t\tthis.sortProvider = sortProvider;\n\t\t\tfireEvent();\n\t\t}\n\t}", "private static void addEntriesToMap(\n\t\tMap<Character,Integer> map,String toSort, String poolOfOccurances\n\t\t){\n\n\t\t//Loop the toStort\n\t\tfor(int i=0;i<toSort.length();i++){\n\t\t\tmap.put(toSort.charAt(i),new Integer(getCharacterFrequence(toSort.charAt(i),poolOfOccurances)));\n\t\t}\n\n\t}", "public static void setPreferredSortingCriterion(Context context, String newCriterion){\n\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = sp.edit();\n\n String keyForSortingCriterion = context.getString(R.string.pref_sort_criterion_key);\n\n editor.putString(keyForSortingCriterion,newCriterion);\n editor.apply();\n }", "public void initializeSortModel()\r\n {\r\n oldSortColumnProperty = sortColumnProperty;\r\n oldAscending = !ascending; // To make sure Sort happens on first render \r\n }", "public IDataBrowserSortStrategy newGuiSortStrategy(Locale sortLocale)\n {\n this.lastSortStrategy = new SortStrategy(this, null, sortLocale);\n return this.lastSortStrategy;\n }", "protected void onInit() {\n order = new Entry[threshold];\n }", "public void setGuiSortStrategy(IDataBrowserComparator comparator)\n {\n this.lastSortStrategy = new SortStrategy(this, comparator, null);\n }", "public void setSort(boolean sort) {\n this.sort = sort;\n }", "public Map findAvailableSorters(INavigatorContentDescriptor theSource);", "private static void DoOrderBy()\n\t{\n\t\tArrayList<Attribute> inAtts = new ArrayList<Attribute>();\n\t\tinAtts.add(new Attribute(\"Int\", \"n_n_nationkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"n_n_name\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"n_n_regionkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"n_n_comment\"));\n\n\t\tArrayList<Attribute> outAtts = new ArrayList<Attribute>();\n\t\toutAtts.add(new Attribute(\"Int\", \"att1\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att2\"));\n\t\toutAtts.add(new Attribute(\"Int\", \"att3\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att4\"));\n\n\t\t// These could be more complicated expressions than simple input columns\n\t\tMap<String, String> exprsToCompute = new HashMap<String, String>();\n\t\texprsToCompute.put(\"att1\", \"n_n_nationkey\");\n\t\texprsToCompute.put(\"att2\", \"n_n_name\");\n\t\texprsToCompute.put(\"att3\", \"n_n_regionkey\");\n\t\texprsToCompute.put(\"att4\", \"n_n_comment\");\n\t\t\n\t\t// Order by region key descending then nation name ascending\n\t\tArrayList<SortKeyExpression> sortingKeys = new ArrayList<SortKeyExpression>();\n\t\tsortingKeys.add(new SortKeyExpression(\"Int\", \"n_n_regionkey\", false));\n\t\tsortingKeys.add(new SortKeyExpression(\"Str\", \"n_n_name\", true));\n\t\t\n\t\t// run the selection operation\n\t\ttry\n\t\t{\n\t\t\tnew Order(inAtts, outAtts, exprsToCompute, sortingKeys, \"nation.tbl\", \"out.tbl\", \"g++\", \"cppDir/\");\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "public static Map<Integer,Planet> getPlanetsByOrder() { return planetsByOrder; }", "@PostConstruct\r\n\tpublic void init() {\n\t\tCollections.sort(this.internalAuthenticationProviders, AnnotationAwareOrderComparator.INSTANCE);\r\n\t}", "@Override\r\n\tpublic void sort() {\r\n\t\tint minpos;\r\n\t\tfor (int i = 0; i < elements.length-1; i++) {\r\n\t\t\tminpos=AuxMethods.minPos(elements, i);\r\n\t\t\telements=AuxMethods.swapElements(elements, i, minpos);\r\n\t\t\t\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\r\n\t\tSortByValue sbv = new SortByValue();\r\n\t\tsbv.setValueOnMap(12, \"Aarti\");\r\n\t\tsbv.setValueOnMap(15, \"Sonam\");\r\n\t\tsbv.setValueOnMap(17, \"Anita\");\r\n\t\tsbv.setValueOnMap(13, \"Premlata\");\r\n\t\tsbv.setValueOnMap(14, \"Komal\");\r\n\t\tsbv.setValueOnMap(20, \"Namita\");\r\n\t\tsbv.setValueOnMap(25, \"Babita\");\r\n\t\t\r\n\t\tMap<Integer, String> _map = sbv.getValueFromMap();\r\n\t\t/*Iterator<Map.Entry<Integer, String>> _it = _map.entrySet().iterator();\r\n\t\twhile(_it.hasNext()){\r\n\t\t\tMap.Entry<Integer, String> _map_value = _it.next();\r\n\t\t\tSystem.out.println(_map_value.getKey()+\"|\"+_map_value.getValue());\r\n\t\t}*/\r\n\t\t\r\n\t\tSet<Entry<Integer, String>> set = _map.entrySet();\r\n\t\tList<Entry<Integer, String>> list = new ArrayList<Entry<Integer, String>>(set);\r\n\t\tSystem.out.println(\"HashMap values Before sort:\");\r\n\t\tfor(Map.Entry<Integer, String> listBeforeSort : list){\r\n\t\t\tSystem.out.println(listBeforeSort.getKey()+\" | \"+listBeforeSort.getValue());\r\n\t\t}\r\n\t\t\r\n\t\tCollections.sort(list, new Comparator<Map.Entry<Integer, String>>(){\r\n\t\t\tpublic int compare(Map.Entry<Integer, String> value1, Map.Entry<Integer, String> value2){\r\n\t\t\t\treturn value1.getValue().compareTo(value2.getValue());\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tSystem.out.println(\"HashMap values After sort:\");\r\n\t\tfor(Map.Entry<Integer, String> listBeforeSort : list){\r\n\t\t\tSystem.out.println(listBeforeSort.getKey()+\" | \"+listBeforeSort.getValue());\r\n\t\t}\r\n\t}", "private Map<String, Object> sortMap(Map<String, Object> map)\n {\n return new TreeMap<>(map);\n }", "private void updateOrder() {\n Arrays.sort(positions);\n }", "public void radixSorting() {\n\t\t\n\t}", "Report sortGoods(Map<Goods, Integer> goodsForSorting, String storeKeeperName) throws StoreKeeperWorkException;", "private void sortByKeys(LazyMap<ProcessorDistributionKey, Collection<Geometry>> keyToGeoms, Geometry geom,\n Collection<Geometry> unprocessed, ProcessorDistributionKey hull)\n {\n boolean timeless;\n boolean foundKey;\n if (geom instanceof ConstrainableGeometry)\n {\n final Constraints constraints = ((ConstrainableGeometry)geom).getConstraints();\n\n if (constraints == null || constraints.getTimeConstraint() == null)\n {\n timeless = true;\n foundKey = false;\n }\n else\n {\n timeless = false;\n if (myTimeAgnostic)\n {\n addTimeListeners();\n updateTime();\n }\n foundKey = sortByKeys(myActiveTimeSpans, keyToGeoms, (ConstrainableGeometry)geom, hull);\n }\n }\n else\n {\n timeless = true;\n foundKey = false;\n }\n\n if (timeless)\n {\n foundKey = sortByKeys(keyToGeoms, geom, hull, null, TimeSpanList.TIMELESS);\n }\n if (!foundKey && unprocessed != null)\n {\n unprocessed.add(geom);\n }\n }", "private List<Criterion> _sortCriterionList()\n {\n Collections.sort(_criterionList, _groupNameComparator);\n Collections.sort(_criterionList, _fieldOrderComparator);\n for(int count = 0 ; count < _criterionList.size() ; count++)\n {\n ((DemoAttributeCriterion)_criterionList.get(count)).setOrderDirty(false);\n }\n return _criterionList;\n }", "@VTID(29)\n void setSortUsingCustomLists(\n boolean rhs);", "@Override\n public int compare(Map<String, Object> o1, Map<String, Object> o2) {\n if(!descflag){\n return String.valueOf(o2.get(orderField)).compareTo(String.valueOf(o1.get(orderField)));\n }else {\n return String.valueOf(o1.get(orderField)).compareTo(String.valueOf(o2.get(orderField)));\n }\n // return 0;//加一个默认返回\n }", "public void addInSort(Tile t) {\n\t\tthis.addJoker(t);\n\t\tthis.tiles.add(t);\n\t}", "Map<String, Integer> sortByinlinks(Map<String, Integer> inlinks_sort){\n\tList<Map.Entry<String,Integer>> ranklist = new LinkedList<Map.Entry<String,Integer>>(inlinks_sort.entrySet());\n\tCollections.sort(ranklist, new Comparator<Map.Entry<String, Integer>>(){\n\t\tpublic int compare(Map.Entry<String,Integer> o1, Map.Entry<String,Integer> o2){\n\t\t\treturn o2.getValue().compareTo(o1.getValue() );\n\t\t}\n\t});\n\t\n\tMap<String, Integer> sortedRank = new LinkedHashMap<String,Integer>();\n\tfor(Map.Entry<String, Integer> rank : ranklist){\n\t\tsortedRank.put(rank.getKey(), rank.getValue());\t\t\t\n\t}\n\t\n\treturn sortedRank;\n\t}", "public void reorder(FillingStrategy strategy) {\n\n\t\tList<Content> contentsLongList = null;\n\t\tif (contentMap.size() == 0)\n\t\t\tthrow new SomethingWentWrongException(\"Empty Location\");\n \n\t\tcontentsLongList = sortContentMapByVolumeAndBarcode(contentMap);\n\t\tremoveAllContentFromLocation();\n\n\t\tswitch (strategy) {\n\t\tcase ROW_WISE:\t\t\n\t\t\tfillLocationWithItems(contentsLongList, FillingStrategy.ROW_WISE);\n\t\t\tbreak;\n\t\tcase COLUMN_WISE:\n\t\t\tfillLocationWithItems(contentsLongList, FillingStrategy.COLUMN_WISE);\n\t\t\tbreak;\n\t\t}\n\n\t}", "public void setSortOrder(String sortOrder);", "public void sortieBloc() {\n this.tableLocaleCourante = this.tableLocaleCourante.getTableLocalPere();\n }", "public void sortAndSave() {\n\t\tsort();\n\t\tShopIO.writeFile(ShopIO.getDataFile(), ShopIO.getGson().toJson(this));\n\t}", "private void switchSortMode(int type) {\r\n if (visitsViewModel.visits.getValue() == null) {\r\n return;\r\n }\r\n\r\n if (visitsViewModel.isSortByAsc(type)) {\r\n resetRecycler(Lists.reverse(visitsViewModel.visits.getValue()));\r\n } else {\r\n resetRecycler(visitsViewModel.visits.getValue());\r\n }\r\n }", "void topologicalSort() {\n\n\t\tfor (SimpleVertex vertice : allvertices) {\n\n\t\t\tif (vertice.isVisited == false) {\n\t\t\t\tlistset.add(vertice.Vertexname);\n\t\t\t\ttopologicalSortUtil(vertice);\n\n\t\t\t}\n\t\t}\n\n\t}", "public HashMapValueComparator() {\n\t\tsuper();\n\t}", "public void sortKnowledgeBase()\n {\n int i;\n Random random;\n String aPredicate;\n StringTokenizer tokenizer;\n //------------\n random = new Random();\n i = 0;\n while (i < knowledgeBase.size())\n {\n aPredicate = knowledgeBase.get(i).commitments.get(0).predicate;\n tokenizer = new StringTokenizer(aPredicate,\"(), \");\n if(tokenizer.nextToken().equals(\"secuencia\"))\n knowledgeBase.get(i).priority = random.nextInt(100);\n //end if\n else\n knowledgeBase.get(i).priority = random.nextInt(10000);\n //end else\n i = i + 1;\n }//end while\n Collections.sort(knowledgeBase);\n }", "public interface SortAlgorithm {\n\tpublic int[] sort(int[] numbers);\n}", "public SoilTypeComparator() {\n\t\tthis.descending = true;\n\t}", "public void set_sort(String column, String direction) {\n\t\tif (column == null || column.equals(\"\"))\n\t\t\tsort_by = new ArrayList<SortingRule>();\n\t\telse\n\t\t\tsort_by.add(new SortingRule(column,direction));\n\t}" ]
[ "0.72722757", "0.60478324", "0.60403156", "0.6020853", "0.59448", "0.5855135", "0.58515096", "0.5788757", "0.5764477", "0.5742159", "0.5735455", "0.5645088", "0.55936116", "0.5592843", "0.5590653", "0.5588176", "0.5581493", "0.55565286", "0.5549436", "0.554284", "0.5540613", "0.55007094", "0.5470299", "0.5460327", "0.5422492", "0.5421247", "0.5414271", "0.5408209", "0.5405785", "0.5379611", "0.5379611", "0.5379611", "0.5379611", "0.5379611", "0.5379611", "0.5379611", "0.5379611", "0.5379611", "0.5339115", "0.5332666", "0.5317908", "0.53042805", "0.5294227", "0.5294013", "0.5289095", "0.528041", "0.5278708", "0.52660125", "0.5253386", "0.52499294", "0.524502", "0.52433336", "0.5242517", "0.5236295", "0.5210661", "0.52060944", "0.5185622", "0.51801795", "0.5169676", "0.51592755", "0.51582503", "0.5156224", "0.51435024", "0.5132083", "0.5128165", "0.51153326", "0.51074135", "0.50975466", "0.5096698", "0.5086591", "0.5084253", "0.5067032", "0.5066646", "0.5056189", "0.5053585", "0.50435525", "0.50361264", "0.50354785", "0.50353676", "0.5033174", "0.5012347", "0.50074047", "0.50066453", "0.50046563", "0.50044924", "0.50029093", "0.49970296", "0.49957818", "0.4987807", "0.49871323", "0.4970929", "0.49682704", "0.49661803", "0.49658147", "0.4964367", "0.49587822", "0.49331343", "0.49300948", "0.49283108", "0.49225476" ]
0.67522526
1
Gets update search criterion strategies.
protected List<UpdateSearchCriterionStrategy> getUpdateSearchCriterionStrategies() { return updateSearchCriterionStrategies; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Required\n\tpublic void setUpdateSearchCriterionStrategies(final List<UpdateSearchCriterionStrategy> updateSearchCriterionStrategies)\n\t{\n\t\tthis.updateSearchCriterionStrategies = updateSearchCriterionStrategies;\n\t}", "public Optimizer getOptimizedCriteria() {\r\n\r\n\t\tLog.d(\"Criteria\", \"Inside getOC:\" + isIntelligenceOverridden);\r\n\r\n\t\tif (!isIntelligenceOverridden) {\r\n\r\n\t\t\t/* BATTERY LEVEL - \"HIGH\" */\r\n\t\t\tif (batteryLevel > Constants.BATTERY_LEVEL.HIGH) {\r\n\t\t\t\tLog.d(\"Test\", \"Entered High\");\r\n\t\t\t\toptimizer.setFrequency(Constants.FREQUENCY_LEVEL.HIGH);\r\n\t\t\t\toptimizer.setPriority(Constants.PRIORITY_LEVEL.HIGH);\r\n\t\t\t}\r\n\r\n\t\t\t/* BATTERY LEVEL - \"MEDIUM\" */\r\n\t\t\telse if (batteryLevel > Constants.BATTERY_LEVEL.MEDIUM\r\n\t\t\t\t\t&& batteryLevel <= Constants.BATTERY_LEVEL.HIGH) {\r\n\t\t\t\tLog.d(\"Criteria\", \"Entered Medium\");\r\n\t\t\t\toptimizer.setFrequency(Constants.FREQUENCY_LEVEL.MEDIUM);\r\n\t\t\t\toptimizer.setPriority(Constants.PRIORITY_LEVEL.MEDIUM);\r\n\t\t\t}\r\n\r\n\t\t\t/* BATTERY LEVEL - \"LOW\" */\r\n\t\t\telse if (batteryLevel <= Constants.BATTERY_LEVEL.MEDIUM) {\r\n\t\t\t\tLog.d(\"Criteria\", \"Checking Moderate Mode\");\r\n\t\t\t\tmModerateMode();\r\n\t\t\t}\r\n\t\t\tLog.d(\"Criteria\", \"Returning Op obj\");\r\n\t\t\treturn optimizer;\r\n\t\t}\r\n\r\n\t\tLog.d(\"Criteria\", \"Then continuing\");\r\n\t\tswitch (userScheme) {\r\n\t\tcase \"moderate\":\r\n\t\t\tLog.d(\"Test\", \"Entered Moderate\");\r\n\t\t\tmModerateMode();\r\n\t\t\tbreak;\r\n\t\tcase \"lazy\":\r\n\t\t\tLog.d(\"Test\", \"Lazy\");\r\n\t\t\tmLazyMode();\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tmModerateMode();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn optimizer;\r\n\t}", "protected ParametersBuilder getUpdateParameters(){\r\n return new ParametersBuilder(\r\n getId(),\r\n saveOrUpdateParameters(),\r\n getUpUser(),\r\n getDescription()\r\n );\r\n }", "org.zenoss.cloud.dataRegistry.UpdateMode getUpdateMode();", "public interface Update extends SpatialQuery {\n\n\t/**\n\t * Add a restriction to filter the update operation.\n\t * \n\t * @param type\n\t * The {@link RestrictionType}.\n\t * @param value\n\t * The property value for the restriction type.\n\t */\n\tpublic abstract void addRestriction(RestrictionType type, String value);\n\t\n\t/**\n\t * Returns a list with restrictions of this update query.\n\t * \n\t * @return Returns a list with {@link RestrictionImpl}.\n\t */\n\tpublic abstract RestrictionMap getRestrictions();\n}", "protected abstract boolean supportsForUpdate();", "@Override\n\tpublic Object[] advSearchCondition() {\n\t\treturn null;\n\t}", "public String getUpdateOperator() {\n return updateOperator;\n }", "public List<ServiceType> getAllByUpdate() {\n\t\t// TODO Auto-generated method stub\n\t\tSession session = HibernateUtil.getSessionFactory().openSession();\n\t\tsession.beginTransaction();\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList <ServiceType> lst =(List<ServiceType>) session.createCriteria(ServiceType.class)\n\t\t.add(Restrictions.ne(\"updateDate\", \"\"))\n\t\t.list();\n\t\tsession.close();\n\t\treturn lst;\n\t}", "public SearchCondition[] getConditions();", "public go.micro.runtime.RuntimeOuterClass.UpdateOptions getOptions() {\n return options_ == null ? go.micro.runtime.RuntimeOuterClass.UpdateOptions.getDefaultInstance() : options_;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public entity.UpdateDBStatisticsCommand[] getUpdateDBStatisticsCommands();", "public synchronized List<Update<V>> getUpdates() {\n if (!isReadOnly() && updates == null) {\n updates = calculateUpdates();\n }\n return updates;\n }", "public void runOptimizations() {\n\t\tOptInfo info = new OptInfo();\n\t\tfor (int i = 0; i < mainOpts.size(); i++) {\n\t\t\t//Extract the operator in the vector and convert it into a\n\t\t\t//SearchStrategy type. The object that is loaded into the\n\t\t\t//SearchStrategy type is not SearchStrategy as it is an\n\t\t\t//abstract class but a class that inherits off of\n\t\t\t//SearchStrategy such as FirstBestIntraOpt, FirstBestInterOpt\n\t\t\t//and so on. the opt.run method runs the run method\n\t\t\t//from the inheriting class such as FirstBestIntraOpt.\n\t\t\tSearchStrategy opt = (SearchStrategy) mainOpts.elementAt(i);\n\t\t\tSettings.printDebug(Settings.COMMENT, \"Running \" + opt);\n\n\t\t\t//The opt.run method called is dependent on the object that\n\t\t\t//was created in the mainOpts. If the object was BestBestIntraSearch\n\t\t\t//then the run method in BestBestIntraSearch is called.\n\t\t\toptInformation.add(opt.toString() + \" \" + opt.run(mainDepots));\n\t\t\tSettings.printDebug(Settings.COMMENT,\n\t\t\t\t\topt.toString() + \" Stats: \" +\n\t\t\t\t\t\t\tmainDepots.getSolutionString());\n\t\t}\n\t}", "public interface RecommendationStrategy {\n\tRecommendationResultsHolder getRecommendationResults(Product product, String type);\n\n}", "public static ArrayList<Strategy> getTwoBestStrategies(StrategyPool sp)\r\n\t{\r\n\t\tArrayList <Strategy> twoBest = new ArrayList<Strategy>();\r\n\t\tStrategy best = null;\r\n\t\tStrategy secondBest = null;\r\n\t\t\r\n\t\tint minLost = Integer.MAX_VALUE;\r\n\t\tint minSecondLost = Integer.MAX_VALUE;\r\n\t\t\r\n\t\tfor(int i = 0; i<sp.pool.size(); i++)\r\n\t\t{\r\n\t\t\tStrategy temp = sp.pool.get(i);\r\n\t\t\tif(temp.lostCount < minLost)\r\n\t\t\t{\r\n\t\t\t\tminLost = temp.lostCount;\r\n\t\t\t\tbest = temp;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i = 0; i< sp.pool.size(); i++)\r\n\t\t{\r\n\t\t\tStrategy temp = sp.pool.get(i);\r\n\t\t\tif(temp.lostCount < minSecondLost && temp.lostCount > minLost)\r\n\t\t\t{\r\n\t\t\t\tminSecondLost = temp.lostCount;\r\n\t\t\t\tsecondBest = temp;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(best != null)\r\n\t\t{\r\n\t\t\ttwoBest.add(best);\r\n\t\t}\r\n\t\tif(best != null)\r\n\t\t{\r\n\t\t\ttwoBest.add(secondBest);\r\n\t\t}\r\n\t\t\r\n\t\treturn twoBest;\r\n\t}", "@Override\n public Criteria getCriteria() {\n //region your codes 2\n Criteria criteria = new Criteria();\n criteria.addAnd(SiteConfineArea.PROP_NATION,Operator.EQ,searchObject.getNation()).addAnd(SiteConfineArea.PROP_PROVINCE, Operator.EQ, searchObject.getProvince()).addAnd(SiteConfineArea.PROP_CITY,Operator.EQ,searchObject.getCity());\n if (searchObject.getStatus() != null) {\n if (searchObject.getStatus().equals(SiteConfineStatusEnum.USING.getCode())) {\n //使用中\n criteria.addAnd(SiteConfineArea.PROP_END_TIME, Operator.GT, new Date());\n } else if (searchObject.getStatus().equals(SiteConfineStatusEnum.EXPIRED.getCode())) {\n criteria.addAnd(SiteConfineArea.PROP_END_TIME, Operator.LT, new Date());\n }\n }\n criteria.addAnd(SiteConfineArea.PROP_SITE_ID,Operator.EQ,searchObject.getSiteId());\n return criteria;\n //endregion your codes 2\n }", "public List<Criterion> getCriteria() {\n\t return criteria;\n\t }", "private void convertReqsInCriterions(){\n\t\tArrayList<Criterion> criteria = this.data.getCriteria();\n\t\t\n\t\tfor(Requirement req : this.data.getRequirements()){\n\t\t\tif(req.isCriterion()){\n\t\t\t\t//create new criterion\n\t\t\t\tCriterion crit = new Criterion();\n\t\t\t\tif(req.getQuantType() != null)\n\t\t\t\t\tcrit.setName(req.getQuantType().getValue());\n\t\t\t\telse if(req.getQualType() != null)\n\t\t\t\t\tcrit.setName(req.getQualType().getValue());\n\t\t\t\telse\n\t\t\t\t\t//this is a price requirement\n\t\t\t\t\tcrit.setName(\"price\");\n\t\t\t\t\n\t\t\t\tString[] msg = {crit.getName(), \"General\"};\n\t\t\t\tif(this.methodID == CloudAid.SAW){\n\t\t\t\t\tFloat weight = Float.parseFloat(CloudAid.askData(CloudAid.GET_WEIGHT, msg, null));\n\t\t\t\t\tcrit.setWeight(weight);\n\t\t\t\t}\n\t\t\t\t//get the criterion preference direction\n\t\t\t\tString res = CloudAid.askData(CloudAid.GET_PREFERENCE_DIRECTION, msg, null);\n\t\t\t\tif(res.equalsIgnoreCase(\"y\")){\n\t\t\t\t\tcrit.setPreferenceDirection(\"max\");\n\t\t\t\t}else if(res.equalsIgnoreCase(\"n\")){\n\t\t\t\t\tcrit.setPreferenceDirection(\"min\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcriteria.add(crit);\n\t\t\t}\n\t\t}\n\t\tthis.data.setCriteria(criteria);\n\t\t\n\t\t//convert each serpiceTemplate requirements\n\t\tfor(ServiceTemplate template : this.data.getServiceTemplates()){\n\t\t\tArrayList<Criterion> templateCriteria = template.getCriteria();\n\t\t\tfor(Requirement req: template.getRequirements()){\n\t\t\t\tif(req.isCriterion()){\n\t\t\t\t\t//create new criterion\n\t\t\t\t\tCriterion crit = new Criterion();\n\t\t\t\t\tif(req.getQuantType() != null)\n\t\t\t\t\t\tcrit.setName(req.getQuantType().getValue());\n\t\t\t\t\telse if(req.getQualType() != null)\n\t\t\t\t\t\tcrit.setName(req.getQualType().getValue());\n\t\t\t\t\telse\n\t\t\t\t\t\t//this is a price requirement\n\t\t\t\t\t\tcrit.setName(\"price\");\n\t\t\t\t\t\n\t\t\t\t\tString[] msg = {crit.getName(), template.getType()};\n\t\t\t\t\tif(this.methodID == CloudAid.SAW){\n\t\t\t\t\t\tFloat weight = Float.parseFloat(CloudAid.askData(CloudAid.GET_WEIGHT, msg, null));\n\t\t\t\t\t\tcrit.setWeight(weight);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//get the criterion preference direction\n\t\t\t\t\tString res = CloudAid.askData(CloudAid.GET_PREFERENCE_DIRECTION, msg, null);\n\t\t\t\t\tif(res.equalsIgnoreCase(\"y\")){\n\t\t\t\t\t\tcrit.setPreferenceDirection(\"max\");\n\t\t\t\t\t}else if(res.equalsIgnoreCase(\"n\")){\n\t\t\t\t\t\tcrit.setPreferenceDirection(\"min\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\ttemplateCriteria.add(crit);\n\t\t\t\t}\n\t\t\t}\n\t\t\ttemplate.setCriteria(templateCriteria);\n\t\t}\n\t}", "public String getUpdateBy() {\n\t\treturn updateBy;\n\t}", "private String getUpdateQuery() {\n String query = null;\n try {\n query = crudQueryComposer.composeUpdateQuery();\n } catch (MissingPropertyException e) {\n logger.error(e);\n }\n return query;\n }", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n \tprivate CriteriaUpdateImpl<?> constructUpdateQuery(CriteriaBuilderImpl cb, CommonTree tree) {\n \t\tfinal CriteriaUpdateImpl<?> q = new CriteriaUpdateImpl(this.metamodel);\n \n \t\tfinal Tree updateDef = tree.getChild(0);\n \n \t\tfinal Tree aliasedDef = updateDef.getChild(0);\n \t\tfinal Aliased aliased = new Aliased(aliasedDef);\n \n \t\tfinal EntityTypeImpl entity = this.getEntity(aliased.getQualified().toString());\n \t\tfinal RootImpl<?> r = (RootImpl<?>) q.from(entity);\n \t\tthis.putAlias(q, aliasedDef, aliased, r);\n \n \t\tfinal Tree setDefs = updateDef.getChild(1);\n \t\tfor (int i = 0; i < setDefs.getChildCount(); i++) {\n \t\t\tfinal Tree setDef = setDefs.getChild(i);\n \n \t\t\tfinal BasicPath left = (BasicPath) this.getExpression(cb, q, setDef.getChild(0), null);\n \t\t\tfinal AbstractExpression right = this.getExpression(cb, q, setDef.getChild(1), left.getJavaType());\n \n \t\t\tq.set(left, right);\n \t\t}\n \n \t\tif (updateDef.getChildCount() == 3) {\n \t\t\tq.where(this.constructJunction(cb, q, updateDef.getChild(2)));\n \t\t}\n \n \t\treturn q;\n \t}", "public boolean isUpdateWeights() {\r\n\t\treturn updateWeights;\r\n\t}", "public String getUpdateBy() {\n return updateBy;\n }", "public String getUpdateBy() {\n return updateBy;\n }", "public String getUpdateBy() {\n return updateBy;\n }", "@ServiceMethod(returns = ReturnType.SINGLE)\n public UpdateCompliance getUpdateCompliance() {\n return this.serviceClient.getUpdateCompliance();\n }", "public String getUpdateBy() {\r\n return updateBy;\r\n }", "public String getForUpdateClause(JDBCFetchConfiguration fetch, boolean forUpdate) {\r\n String isolationLevel = null;\r\n boolean updateClause;\r\n DatabaseMetaData metaData = null;\r\n StringBuffer forUpdateString = new StringBuffer();\r\n try {\r\n // Determine the update clause/isolationLevel the hint \r\n // overrides the persistence.xml value\r\n if (fetch != null && fetch.getHint(UPDATE_HINT)\r\n !=null )\r\n updateClause = ((Boolean)fetch.\r\n getHint(UPDATE_HINT)).booleanValue();\r\n else \r\n updateClause = forUpdate;\r\n if (fetch != null &&fetch.getHint(ISOLATION_HINT)\r\n !=null )\r\n isolationLevel = (String)fetch.\r\n getHint(ISOLATION_HINT);\r\n else \r\n isolationLevel = conf.getTransactionIsolation();\r\n if (updateClause == false)\r\n // This sql is not for update so add FOR Read Only clause\r\n forUpdateString.append(\" \").append(forReadOnlyClause)\r\n .append(\" \");\r\n else if (updateClause == true){\r\n \r\n switch(db2ServerType){\r\n case db2ISeriesV5R3AndEarlier:\r\n case db2UDBV81OrEarlier: \r\n if (isolationLevel.equals(\"read-uncommitted\"))\r\n forUpdateString.append(\" \").append(withRSClause)\r\n .append(\" \").append(forUpdateOfClause).append(\" \");\r\n else\r\n forUpdateString.append(\" \").append(forUpdateOfClause)\r\n .append(\" \");\r\n break; \r\n case db2ZOSV8x:\r\n case db2UDBV82AndLater: \r\n if (isolationLevel.equals(\"serializable\"))\r\n forUpdateString.append(\" \").append(withRRClause)\r\n .append(\" \").append(useKeepUpdateLockClause)\r\n .append(\" \");\r\n else\r\n forUpdateString.append(\" \").append(withRSClause)\r\n .append(\" \").append(useKeepUpdateLockClause)\r\n .append(\" \");\t\r\n break;\r\n case db2ISeriesV5R4AndLater:\r\n if (isolationLevel.equals(\"serializable\"))\r\n forUpdateString.append(\" \").append(withRRClause)\r\n .append(\" \").append(useKeepExclusiveLockClause)\r\n .append(\" \");\r\n else\r\n forUpdateString.append(\" \").append(withRSClause)\r\n .append(\" \").append(useKeepExclusiveLockClause)\r\n .append(\" \");\t\r\n }\r\n }\r\n } \r\n catch (Exception e) {\r\n if (log.isTraceEnabled())\r\n log.error(e.toString(),e);\r\n }\r\n return forUpdateString.toString();\r\n }", "public String getUpdateRule () {\n return updateRule;\n }", "public String getUpdateRule () {\n return updateRule;\n }", "public Set<String> getStrategiesNames () {\n\t\treturn Collections.unmodifiableSet(serviceProvider.getStrategies().keySet());\n\t}", "private void normalizeCriteriaWeights(){\n\t\tSystem.out.println(\"SYSTEM: Normalizing general criteria\");\n\t\tdouble total = 0;\n\t\tfor(Criterion crit : data.getCriteria()){\n\t\t\ttotal = total + crit.getWeight();\n\t\t}\n\t\t\n\t\tfor(Criterion crit : data.getCriteria()){\n\t\t\tdouble res = crit.getWeight() / total;\n\t\t\tSystem.out.println(\"SYSTEM: Total: \"+ total +\" || value: \"+crit.getWeight()+\"|| res: \"+ res);\n\t\t\tcrit.setWeight(res);\n\t\t}\n\t\t\n\t\t//normalize each of the Service Templates\n\t\tfor(ServiceTemplate template : data.getServiceTemplates()){\n\t\t\tSystem.out.println(\"SYSTEM: Normalizing criteria of the serviceTemplate: \"+ template.getId());\n\t\t\tdouble templateTotal = 0;\n\t\t\tfor(Criterion crit : template.getCriteria()){\n\t\t\t\ttemplateTotal = templateTotal + crit.getWeight();\n\t\t\t}\n\t\t\t\n\t\t\tfor(Criterion crit : template.getCriteria()){\n\t\t\t\tdouble res = crit.getWeight() / templateTotal;\n\t\t\t\tSystem.out.println(\"SYSTEM: Total: \"+ templateTotal +\" || value: \"+crit.getWeight()+\"|| res: \"+ res);\n\t\t\t\tcrit.setWeight(res);\n\t\t\t}\n\t\t}\n\t}", "public abstract List<OptimisationSolution> getSolutions();", "public void setUpdateWeights(boolean updateWeights) {\r\n\t\tthis.updateWeights = updateWeights;\r\n\t}", "public ScoringStrategy getScoringStrategy() {\n return scoringStrategy;\n }", "public interface SearchQuerySet extends QuerySet\n{\n\n // for AbstractSearch\n public static final int STAT_MODELS = 1;\n public static final int STAT_CLUSTERS = 2;\n public static final int STAT_GENOMES = 4;\n public static final int STAT_MODEL_CLUSTERS = 8;\n\n public String getStatsById(Collection data);\n public String getStatsByQuery(String query);\n public String getStatsById(Collection data,int stats);\n public String getStatsByQuery(String query,int stats);\n \n // for BlastSearch\n public String getBlastSearchQuery(Collection dbNames, Collection keys, KeyTypeUser.KeyType keyType);\n \n //for ClusterIDSearch\n public String getClusterIDSearchQuery(Collection input, int limit, int[] DBs, KeyTypeUser.KeyType keyType);\n \n // for ClusterNameSearch\n public String getClusterNameSearchQuery(Collection input, int limit, int[] DBs, KeyTypeUser.KeyType keyType);\n \n // for DescriptionSearch\n public String getDescriptionSearchQuery(Collection input, int limit, int[] DBs, KeyTypeUser.KeyType keyType);\n \n // for GoSearch \n public String getGoSearchQuery(Collection input, int limit, KeyTypeUser.KeyType keyType);\n \n // for GoTextSearch\n public String getGoTextSearchQuery(Collection input, int limit, KeyTypeUser.KeyType keyType);\n \n // for IdSearch\n public String getIdSearchQuery(Collection input, int limit, int[] DBs, KeyTypeUser.KeyType keyType);\n \n // for QueryCompSearch\n public String getQueryCompSearchQuery(String comp_id, String status, KeyTypeUser.KeyType keyType);\n \n // for QuerySearch\n public String getQuerySearchQuery(String queries_id, KeyTypeUser.KeyType keyType); \n \n // for SeqModelSearch\n public String getSeqModelSearchQuery(Collection model_ids, KeyTypeUser.KeyType keyType);\n \n // for UnknowclusterIdSearch\n public String getUnknownClusterIdSearchQuery(int cluster_id, KeyTypeUser.KeyType keyType);\n \n // for ProbeSetSearch\n public String getProbeSetSearchQuery(Collection input, int limit, KeyTypeUser.KeyType keyType);\n \n // for ProbeSetKeySearch\n public String getProbeSetKeySearchQuery(Collection input, int limit, KeyTypeUser.KeyType keyType);\n \n // for QueryTestSearch\n public String getQueryTestSearchQuery(String query_id, String version, String genome_id);\n \n // for QueryStatsSearch\n public String getQueryStatsSearchQuery(List query_ids,List DBs);\n \n // for PskClusterSearch\n public String getPskClusterSearchQuery(int cluster_id,KeyTypeUser.KeyType keyType);\n \n // for ClusterCorrSearch\n public String getClusterCorrSearchQuery(int cluster_id, int psk_id, KeyTypeUser.KeyType keyType);\n \n // for UnknownGenesSearch\n public String getUnknownGenesSearchQuery(Collection sources, KeyTypeUser.KeyType keyType);\n \n}", "protected Map<String, AccommodationOfferingSearchResponseSortStrategy> getSortStrategyMap()\n\t{\n\t\treturn sortStrategyMap;\n\t}", "void filterUpdate(ServerContext context, UpdateRequest request,\n ResultHandler<Resource> handler, RequestHandler next);", "public Long getUpdateBy() {\n return updateBy;\n }", "public Long getUpdateBy() {\n return updateBy;\n }", "public Long getUpdateBy() {\n return updateBy;\n }", "@Override\n\tpublic boolean updateStrategy(String strategyType, String strategyId, PromotionStrategyPO newPromotionStrategyPO) {\n\t\treturn false;\n\t}", "static HintStrategyTable createHintStrategies(HintStrategyTable.Builder builder) {\n return builder\n .hintStrategy(\"no_hash_join\", HintPredicates.JOIN)\n .hintStrategy(\"time_zone\", HintPredicates.SET_VAR)\n .hintStrategy(\"REPARTITION\", HintPredicates.SET_VAR)\n .hintStrategy(\"index\", HintPredicates.TABLE_SCAN)\n .hintStrategy(\"properties\", HintPredicates.TABLE_SCAN)\n .hintStrategy(\n \"resource\", HintPredicates.or(\n HintPredicates.PROJECT, HintPredicates.AGGREGATE,\n HintPredicates.CALC, HintPredicates.VALUES,\n HintPredicates.FILTER, HintPredicates.TABLE_FUNCTION_SCAN))\n .hintStrategy(\"AGG_STRATEGY\",\n HintStrategy.builder(HintPredicates.AGGREGATE)\n .optionChecker(\n (hint, errorHandler) -> errorHandler.check(\n hint.listOptions.size() == 1\n && (hint.listOptions.get(0).equalsIgnoreCase(\"ONE_PHASE\")\n || hint.listOptions.get(0).equalsIgnoreCase(\"TWO_PHASE\")),\n \"Hint {} only allows single option, \"\n + \"allowed options: [ONE_PHASE, TWO_PHASE]\",\n hint.hintName)).build())\n .hintStrategy(\"use_hash_join\",\n HintPredicates.or(\n HintPredicates.and(HintPredicates.CORRELATE, temporalJoinWithFixedTableName()),\n HintPredicates.and(HintPredicates.JOIN, joinWithFixedTableName())))\n .hintStrategy(\"breakable\", HintPredicates.SETOP)\n .hintStrategy(\"async_merge\", HintPredicates.SORT)\n .hintStrategy(\"mini_batch\",\n HintPredicates.and(HintPredicates.WINDOW, HintPredicates.PROJECT))\n .hintStrategy(\"fast_snapshot\", HintPredicates.SNAPSHOT)\n .hintStrategy(\"use_merge_join\",\n HintStrategy.builder(\n HintPredicates.and(HintPredicates.JOIN, joinWithFixedTableName()))\n .excludedRules(EnumerableRules.ENUMERABLE_JOIN_RULE).build())\n .hintStrategy(\n \"preserved_project\", HintStrategy.builder(\n HintPredicates.PROJECT).excludedRules(CoreRules.FILTER_PROJECT_TRANSPOSE).build())\n .build();\n }", "public final List<Update> getUpdates(UpdateRequest upr)\n\t{\n\t\tif(upr == null)\n\t\t\treturn null;\n\t\treturn rm.getUpdates(upr);\n\t}", "SolverParamsType getSolverParams();", "public UpdateResponse optimize(boolean waitFlush, boolean waitSearcher, int maxSegments) throws SolrServerException, IOException {\n return new UpdateRequest().setAction(UpdateRequest.ACTION.OPTIMIZE, waitFlush, waitSearcher, maxSegments).process( this );\n }", "public go.micro.runtime.RuntimeOuterClass.UpdateOptions getOptions() {\n if (optionsBuilder_ == null) {\n return options_ == null ? go.micro.runtime.RuntimeOuterClass.UpdateOptions.getDefaultInstance() : options_;\n } else {\n return optionsBuilder_.getMessage();\n }\n }", "private List<Criterion> _sortCriterionList()\n {\n Collections.sort(_criterionList, _groupNameComparator);\n Collections.sort(_criterionList, _fieldOrderComparator);\n for(int count = 0 ; count < _criterionList.size() ; count++)\n {\n ((DemoAttributeCriterion)_criterionList.get(count)).setOrderDirty(false);\n }\n return _criterionList;\n }", "@Override\r\n\tpublic List<Criterion> getCriterions(ParamCondition paramCondition) {\n\t\tList<Criterion> criterions = new ArrayList<Criterion>();\r\n\t\treturn criterions;\r\n\t}", "public List<OperationEqField> getConditions()\n {\n if (conditions == null)\n {\n conditions = new ArrayList<>();\n }\n return conditions;\n }", "public Set<T> getUpdateEntities() {\n return unmodifiableSet(updateEntities);\n }", "private void enableFieldBasedOnUpdateMethod() {\r\n if (updateMethod.getSelectedItem() == CompetitiveGroup.UpdateMethod.ALVAREZ_SQUIRE) {\r\n tfSynpaseDecayPercent.setEnabled(true);\r\n } else if (updateMethod.getSelectedItem() == CompetitiveGroup.UpdateMethod.RUMM_ZIPSER) {\r\n tfSynpaseDecayPercent.setEnabled(false);\r\n }\r\n }", "private boolean update(UpdateStatement us) {\n\t\tTable target = DBUsing.getTable(us.tableName);\n\t\tArrayList<Tuple> tuples = (ArrayList<Tuple>) target.getTuples();\n\t\tObject updateValue = null;\n\t\t\n\t\ttry {\n\t\t\tFile root = new File(\"src\");\n \tURLClassLoader classLoader = URLClassLoader.newInstance(new URL[] { root.toURI().toURL() });\n \tClass<?> cl = Class.forName(target.getName(), true, classLoader);\n\t\t\t\n\t\t\t// Clarify update targets\n\t\t\tfor(Field field : cl.getDeclaredFields()) {\n\t\t\t\tfield.setAccessible(true);\n\t\t\t\tif(field.getType().getName().equals(\"int\"))\n\t\t\t\t\tupdateValue = new Integer(us.val);\n\t\t\t\telse if(field.getType().getName().equals(\"java.lang.String\"))\n\t\t\t\t\tupdateValue = new String(us.val);\n\t\t\t\telse if(field.getType().getName().equals(\"double\"))\n\t\t\t\t\tupdateValue = new Double(us.val);\n\t\t\t\tfield.setAccessible(false);\n\t\t\t}\n\t\t\t\n\t\t\t//System.out.println(us.attr + \" \" + updateValue);\n\t\t\t\n\t\t\t// Filter and update\n\t\t\tif(us.where != null) {\n\t\t\t\tConditionExpression cond = us.where;\n\t\t\t\tString attributeName = cond.left;\n\t\t\t\tString attributeValue = cond.right;\n\t\t\t\t\n\t\t\t\tfor(Tuple tuple : tuples) {\n\t\t\t\t\tField fields[] = tuple.getClass().getDeclaredFields();\n\t\t\t\t\tfor(int i = 0; i < fields.length; i++) {\n\t\t\t\t\t\tField field = fields[i];\n\t\t\t\t\t\tfield.setAccessible(true);\n\t\t\t\t\t\t//System.out.println(\"check field.getName(): \" + field.getName() + \", attributeName: \" + attributeName);\n\t\t\t\t\t\tif(field.getName().equals(attributeName)) {\n\t\t\t\t\t\t\tif(cond.operator.equals(\"=\")) {\n\t\t\t\t\t\t\t\tboolean checkCondition = false;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(field.getType().getName().equals(\"int\"))\n\t\t\t\t\t\t\t\t\tcheckCondition = ((Object) new Integer(attributeValue)).equals(field.get(tuple));\n\t\t\t\t\t\t\t\telse if(field.getType().getName().equals(\"java.lang.String\"))\n\t\t\t\t\t\t\t\t\tcheckCondition = ((Object) new String(attributeValue)).equals(field.get(tuple));\n\t\t\t\t\t\t\t\telse if(field.getType().getName().equals(\"double\"))\n\t\t\t\t\t\t\t\t\tcheckCondition = ((Object) new Double(attributeValue)).equals(field.get(tuple));\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(checkCondition) {\n\t\t\t\t\t\t\t\t\tField toBeUpdated = tuple.getClass().getDeclaredField(us.attr);\n\t\t\t\t\t\t\t\t\ttoBeUpdated.setAccessible(true);\n\t\t\t\t\t\t\t\t\ttoBeUpdated.set(tuple, updateValue);\n\t\t\t\t\t\t\t\t\ttoBeUpdated.setAccessible(false);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfield.setAccessible(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tfor(Tuple tuple : tuples) {\n\t\t\t\t\tField toBeUpdated = tuple.getClass().getDeclaredField(us.attr);\n\t\t\t\t\ttoBeUpdated.setAccessible(true);\n\t\t\t\t\ttoBeUpdated.set(tuple, updateValue);\n\t\t\t\t\ttoBeUpdated.setAccessible(false);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\tcatch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch (NoSuchFieldException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch (IllegalAccessException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch (MalformedURLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\t\n\t\treturn true;\n\t}", "public interface Strategy {\n\n StrategySolution solve(List<Item> items, int weight);\n}", "public UpdateResponse optimize(boolean waitFlush, boolean waitSearcher) throws SolrServerException, IOException {\n return optimize(waitFlush, waitSearcher, 1);\n }", "private void applyLocationAlgorithms() {\n List<NodeState> states = new ArrayList<NodeState>();\n List<RemoteNode> nodes = new ArrayList<RemoteNode>(nodeManager.getNodes());\n AlgorithmMatchCriteria criteria;\n\n for (Algorithm la : algorithmManager.getAlgorithms()) {\n if (!la.isEnabled()) continue;\n criteria = algorithmManager.getCriteria(la);\n\n List<Node> filteredNodes = criteria.filter(nodes);\n if (filteredNodes.size() > 0) {\n states.add(la.applyTo(nodeManager.getLocalNode(), filteredNodes));\n }\n }\n for (NodeState s : states) {\n nodeManager.getLocalNode().addPending(s);\n }\n }", "public scala.collection.Seq<org.apache.spark.sql.catalyst.planning.GenericStrategy<org.apache.spark.sql.execution.SparkPlan>> extraStrategies () { throw new RuntimeException(); }", "int getUpdateModeValue();", "Collection<EntityUpdateRequest> pendingUpdates();", "@Nonnull protected List<String> getEffectiveDataEncryptionAlgorithms(@Nonnull final CriteriaSet criteria, \n @Nonnull final Predicate<String> includeExcludePredicate) {\n \n final EncryptionConfigurationCriterion criterion = criteria.get(EncryptionConfigurationCriterion.class);\n assert criterion != null;\n \n final ArrayList<String> accumulator = new ArrayList<>();\n for (final EncryptionConfiguration config : criterion.getConfigurations()) {\n \n config.getDataEncryptionAlgorithms()\n .stream()\n .filter(PredicateSupport.and(getAlgorithmRuntimeSupportedPredicate(), includeExcludePredicate))\n .forEach(accumulator::add);\n }\n return accumulator;\n }", "public void setUpdateBy( String updateBy ) {\n this.updateBy = updateBy;\n }", "List<ColumnStrategy> getColumnStrategies();", "@Override\n\tpublic Query createQuery(CriteriaUpdate updateQuery) {\n\t\treturn null;\n\t}", "public QbUpdate all();", "public static interface PredictorSelectionStrategy {\n /**\n * Injects kernel to kernel-MA according to predictor internal data.\n */\n public void injectKernel(final Predictor predictor);\n\n /**\n * Maximum size of kernels\n */\n public int kernelSize();\n\n /**\n * Creates a brand new predictor.\n */\n public PredictorListener buildPredictor();\n }", "private boolean performUpdate (WFSUpdate update) throws Exception {\r\n boolean success = true;\r\n Debug.debugMethodBegin (this, \"performUpdate (WFSUpdate)\");\r\n DBAccess osa = null;\r\n java.sql.Connection con = null;\r\n org.deegree.services.wfs.configuration.Connection connect =\r\n config.getConnection();\r\n \r\n try {\r\n // get jdbc connection and access object for oracle spatial\r\n con = pool.acuireConnection (connect.getDriver (),\r\n connect.getLogon (),\r\n connect.getUser (),\r\n connect.getPassword ());\r\n osa = new DBAccess (con);\r\n osa.setAutoCommit (false);\r\n\r\n FeatureType ft = config.getFeatureType (update.getTypeName());\r\n Set fIDs = getFeatureIDs (ft, update.getFilter(), osa);\r\n if (!fIDs.isEmpty ()) {\r\n TableDescription masterTable = ft.getMasterTable ();\r\n PointRowSelector selector = new PointRowSelector (\r\n masterTable, masterTable.getIdField (), fIDs, osa, ft);\r\n\r\n // create a new HashMap that contains the table names as\r\n // keys, and an ArrayList of changes that are to be performed\r\n // in that table (String-array with 2 values)\r\n HashMap changes = new HashMap (); \r\n HashMap properties = update.getProperties();\r\n\r\n Iterator it = properties.keySet().iterator ();\r\n while (it.hasNext ()) {\r\n String name = (String) it.next ();\r\n String value = (String) properties.get (name);\r\n\r\n if (name.startsWith (\"/\")) {\r\n name = name.substring (1);\r\n }\r\n name = name.replace ('.', '/');\r\n \r\n if (!ft.isPropertyKnown (name)) {\r\n throw new Exception (\r\n \"Property '\" + name.replace ('/', '.') + \"' is not known to Feature '\"\r\n + ft.getName() + \"' (not mapped?)\");\r\n } \r\n \r\n // get the datastore-mapping of the property\r\n String mapping = null;\r\n String [] s_ = ft.getDatastoreField (name);\r\n\r\n if (s_ == null) {\r\n throw new Exception (name +\r\n \" is not known by the datastore\");\r\n } else {\r\n mapping = s_[0];\r\n }\r\n\r\n String [] parts = splitString (mapping);\r\n String tableName = parts [0].toUpperCase ();\r\n String fieldName = parts [1].toUpperCase ();\r\n \r\n ArrayList list = (ArrayList) changes.get (tableName);\r\n if (list == null) {\r\n list = new ArrayList ();\r\n }\r\n String [] change = new String [2];\r\n change [0] = fieldName;\r\n change [1] = value;\r\n list.add (change);\r\n\r\n changes.put (tableName, list);\r\n }\r\n \r\n success = performUpdate (selector, changes);\r\n osa.commit ();\r\n }\r\n } catch (Exception e) { \r\n success = false;\r\n System.out.println (\"Exception: \" + e);\r\n if (osa != null) osa.rollback ();\r\n Debug.debugException (e, \"\");\r\n }\r\n if (con != null) {\r\n pool.releaseConnection (con, connect.getDriver (),\r\n connect.getLogon (),\r\n connect.getUser (),\r\n connect.getPassword ());\r\n } \r\n\r\n Debug.debugMethodEnd ();\r\n return success;\r\n }", "public static Set<RelOptRule> elasticSearchRules() {\n Set<RelOptRule> rules = Arrays.stream(ElasticsearchRules.RULES)\n .filter(RULE_PREDICATE)\n .collect(Collectors.toSet());\n rules.add(ENUMERABLE_INTERMEDIATE_PREL_CONVERTER_RULE);\n rules.add(ELASTIC_DREL_CONVERTER_RULE);\n rules.add(ElasticsearchProjectRule.INSTANCE);\n rules.add(ElasticsearchFilterRule.INSTANCE);\n return rules;\n }", "public void prepareSearchForUpdate(Search search) {\r\n\t\tDouble rate = currencyService.getCurrencyRate(search.getEbayCountry().getCurrency(), search.getUser());\r\n\t\tsearch.setMinPrice((int)(search.getMinPrice() * rate));\r\n\t\tsearch.setMaxPrice((int)(search.getMaxPrice() * rate));\r\n\t}", "@Override\n public Criteria getCriteria() {\n\n //判断是否为精确到天的时间查询\n //情况一 点击分组查询查看该天的详情\n if (this.searchObject.getEndtime() == null && this.searchObject.getStarttime() != null){\n\n this.searchObject.setEndtime(DateTool.addDays(this.searchObject.getStarttime(),1));\n\n //情况二 在分组页面按时间搜索\n }else if (this.searchObject.getEndtime() != null && this.searchObject.getStarttime().equals(this.searchObject.getEndtime())){\n\n this.searchObject.setEndtime(DateTool.addDays(this.searchObject.getStarttime(),1));\n }\n\n Criteria criteria = Criteria.and(\n\n Criteria.add(ActivityPlayerApply.PROP_ID, Operator.EQ, this.searchObject.getId()),\n Criteria.add(ActivityPlayerApply.PROP_ACTIVITY_MESSAGE_ID, Operator.EQ, this.searchObject.getActivityMessageId()),\n Criteria.add(ActivityPlayerApply.PROP_USER_ID, Operator.EQ, this.searchObject.getUserId()),\n Criteria.add(ActivityPlayerApply.PROP_USER_NAME, Operator.EQ, this.searchObject.getUserName()),\n Criteria.add(ActivityPlayerApply.PROP_REGISTER_TIME, Operator.EQ, this.searchObject.getRegisterTime()),\n Criteria.add(ActivityPlayerApply.PROP_APPLY_TIME, Operator.EQ, this.searchObject.getApplyTime()),\n Criteria.add(ActivityPlayerApply.PROP_PLAYER_RECHARGE_ID, Operator.EQ, this.searchObject.getPlayerRechargeId()),\n Criteria.add(ActivityPlayerApply.PROP_STARTTIME, Operator.GE, this.searchObject.getStarttime()),\n Criteria.add(ActivityPlayerApply.PROP_STARTTIME, Operator.LE, this.searchObject.getEndtime()),\n Criteria.add(ActivityPlayerApply.PROP_PREFERENTIAL_VALUE, Operator.EQ, this.searchObject.getPreferentialValue()),\n Criteria.add(ActivityPlayerApply.PROP_ARTICLE, Operator.EQ, this.searchObject.getArticle()),\n Criteria.add(ActivityPlayerApply.PROP_IS_REALIZE, Operator.EQ, this.searchObject.getIsRealize()),\n Criteria.add(ActivityPlayerApply.PROP_RELATION_PLAYER_ID, Operator.EQ, this.searchObject.getRelationPlayerId()),\n Criteria.add(ActivityPlayerApply.PROP_ACTIVITY_CLASSIFY_KEY, Operator.EQ, this.searchObject.getActivityClassifyKey()),\n Criteria.add(ActivityPlayerApply.PROP_ACTIVITY_TYPE_CODE, Operator.EQ, this.searchObject.getActivityTypeCode())\n );\n criteria.addAnd(ActivityPlayerApply.PROP_IS_DELETED, Operator.EQ, false);\n return criteria;\n }", "public double[] getParams() {\n order();\n if (simp != null) {\n return simp[best];\n } else {\n return null;\n }\n }", "private boolean updateExistingSearchController(List<String> queryMethods,\n ClassOrInterfaceTypeDetails controllerToUpdateOrCreate,\n ClassOrInterfaceTypeDetailsBuilder controllerBuilder) {\n // Get @RooSearch and build necessary variables\n AnnotationMetadata searchAnnotation =\n controllerToUpdateOrCreate.getAnnotation(RooJavaType.ROO_SEARCH);\n List<AnnotationAttributeValue<?>> findersToAdd = new ArrayList<AnnotationAttributeValue<?>>();\n List<String> finderNames = new ArrayList<String>();\n boolean findersAdded = false;\n\n // Get existent finder values\n if (searchAnnotation != null && searchAnnotation.getAttribute(\"finders\") != null) {\n List<?> existingFinders = (List<?>) searchAnnotation.getAttribute(\"finders\").getValue();\n Iterator<?> it = existingFinders.iterator();\n\n // Add existent finders to new attributes array to merge with new ones\n while (it.hasNext()) {\n StringAttributeValue attributeValue = (StringAttributeValue) it.next();\n findersToAdd.add(attributeValue);\n finderNames.add(attributeValue.getValue());\n }\n\n // Add new finders to new attributes array\n for (String finder : queryMethods) {\n if (!finderNames.contains(finder)) {\n findersToAdd.add(new StringAttributeValue(new JavaSymbolName(\"value\"), finder));\n findersAdded = true;\n }\n }\n\n // Add attributes array to @RooSearch\n AnnotationMetadataBuilder searchAnnotationBuilder =\n new AnnotationMetadataBuilder(searchAnnotation);\n ArrayAttributeValue<AnnotationAttributeValue<?>> allFinders =\n new ArrayAttributeValue<AnnotationAttributeValue<?>>(new JavaSymbolName(\"finders\"),\n findersToAdd);\n searchAnnotationBuilder.addAttribute(allFinders);\n controllerBuilder.updateTypeAnnotation(searchAnnotationBuilder);\n }\n return findersAdded;\n }", "interface Update extends Appliable<Job>, Resource.UpdateWithTags<Update>, UpdateStages.WithCaffe2Settings, UpdateStages.WithCaffeSettings, UpdateStages.WithChainerSettings, UpdateStages.WithCntkSettings, UpdateStages.WithConstraints, UpdateStages.WithContainerSettings, UpdateStages.WithCustomToolkitSettings, UpdateStages.WithEnvironmentVariables, UpdateStages.WithExperimentName, UpdateStages.WithInputDirectories, UpdateStages.WithJobPreparation, UpdateStages.WithOutputDirectories, UpdateStages.WithPriority, UpdateStages.WithTensorFlowSettings {\n }", "int updateByPrimaryKeySelective(CfgSearchRecommend record);", "public static String getUpdateStatement() {\n return UPDATE_STATEMENT;\n }", "@Override\n\tpublic IPredicate merge(final Collection<IPredicate> states) {\n\n\t\tfinal Set<HcPredicateSymbol> mergedLocations = new HashSet<>();\n\t\tstates.stream().filter(s -> s instanceof HCPredicate)\n\t\t\t\t.forEach(hcp -> mergedLocations.addAll(((HCPredicate) hcp).getHcPredicateSymbols()));\n\n\t\tfinal IPredicate mergedPred = mPredicateFactory.or(true, states);\n\t\tfinal Term mergedFormula = mergedPred.getFormula();\n\n//\t\tTerm mergedFormula = mMgdScript.getScript().term(\"false\");\n\n//\t\tList<TermVariable> varsForHcPred = null;\n\n//\t\tfor (final IPredicate pred : states) {\n//\t\t\tif (mPredicateFactory.isDontCare(pred)) {\n//\t\t\t\treturn pred;\n//\t\t\t}\n\n//\t\t\tif (pred instanceof HCPredicate) {\n//\t\t\t\tmergedLocations.addAll(((HCPredicate) pred).getHcPredicateSymbols());\n//\t\t\t\tassert varsForHcPred == null || varsForHcPred.equals(((HCPredicate) pred).getSignature()) : \"merging \"\n//\t\t\t\t\t\t+ \"predicates with a different signature. Does that make sense??\";\n//\t\t\t\tvarsForHcPred = ((HCPredicate) pred).getSignature();\n//\t\t\t}\n//\t\t\tmergedFormula = mSimplifier.getSimplifiedTerm(\n//\t\t\t\t\tSmtUtils.or(mMgdScript.getScript(), mergedFormula, pred.getFormula()));\n//\t\t}\n\t\tif (mergedLocations.isEmpty()) {\n\t\t\treturn mPredicateFactory.newPredicate(mergedFormula);\n\t\t} else if (mPredicateFactory.isDontCare(mergedFormula)) {\n\t\t\treturn mPredicateFactory.newPredicate(mergedLocations, mergedFormula, Collections.emptyList());\n\t\t} else {\n\t\t\treturn mPredicateFactory.newPredicate(mergedLocations, mergedFormula,\n\t\t\t\t\tArrays.asList(mergedFormula.getFreeVars()));\n\t\t}\n\t}", "private static List<ModCandidate> findCompatibleSet(Collection<ModCandidate> candidates, EnvType envType, Map<String, Set<ModCandidate>> envDisabledMods) throws ModResolutionException {\n\n\t\tList<ModCandidate> allModsSorted = new ArrayList<>(candidates);\n\n\t\tallModsSorted.sort(modPrioComparator);\n\n\t\t// group/index all mods by id\n\n\t\tMap<String, List<ModCandidate>> modsById = new LinkedHashMap<>(); // linked to ensure consistent execution\n\n\t\tfor (ModCandidate mod : allModsSorted) {\n\t\t\tmodsById.computeIfAbsent(mod.getId(), ignore -> new ArrayList<>()).add(mod);\n\n\t\t\tfor (String provided : mod.getProvides()) {\n\t\t\t\tmodsById.computeIfAbsent(provided, ignore -> new ArrayList<>()).add(mod);\n\t\t\t}\n\t\t}\n\n\t\t// soften positive deps from schema 0 or 1 mods on mods that are present but disabled for the current env\n\t\t// this is a workaround necessary due to many mods declaring deps that are unsatisfiable in some envs and loader before 0.12x not verifying them properly\n\n\t\tfor (ModCandidate mod : allModsSorted) {\n\t\t\tif (mod.getMetadata().getSchemaVersion() >= 2) continue;\n\n\t\t\tfor (ModDependency dep : mod.getMetadata().getDependencies()) {\n\t\t\t\tif (!dep.getKind().isPositive() || dep.getKind() == Kind.SUGGESTS) continue; // no positive dep or already suggests\n\t\t\t\tif (!(dep instanceof ModDependencyImpl)) continue; // can't modify dep kind\n\t\t\t\tif (modsById.containsKey(dep.getModId())) continue; // non-disabled match available\n\n\t\t\t\tCollection<ModCandidate> disabledMatches = envDisabledMods.get(dep.getModId());\n\t\t\t\tif (disabledMatches == null) continue; // no disabled id matches\n\n\t\t\t\tfor (ModCandidate m : disabledMatches) {\n\t\t\t\t\tif (dep.matches(m.getVersion())) { // disabled version match -> remove dep\n\t\t\t\t\t\t((ModDependencyImpl) dep).setKind(Kind.SUGGESTS);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// preselect mods, check for builtin mod collisions\n\n\t\tList<ModCandidate> preselectedMods = new ArrayList<>();\n\n\t\tfor (List<ModCandidate> mods : modsById.values()) {\n\t\t\tModCandidate builtinMod = null;\n\n\t\t\tfor (ModCandidate mod : mods) {\n\t\t\t\tif (mod.isBuiltin()) {\n\t\t\t\t\tbuiltinMod = mod;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (builtinMod == null) continue;\n\n\t\t\tif (mods.size() > 1) {\n\t\t\t\tmods.remove(builtinMod);\n\t\t\t\tthrow new ModResolutionException(\"Mods share ID with builtin mod %s: %s\", builtinMod, mods);\n\t\t\t}\n\n\t\t\tpreselectedMods.add(builtinMod);\n\t\t}\n\n\t\tMap<String, ModCandidate> selectedMods = new HashMap<>(allModsSorted.size());\n\t\tList<ModCandidate> uniqueSelectedMods = new ArrayList<>(allModsSorted.size());\n\n\t\tfor (ModCandidate mod : preselectedMods) {\n\t\t\tpreselectMod(mod, allModsSorted, modsById, selectedMods, uniqueSelectedMods);\n\t\t}\n\n\t\t// solve\n\n\t\tModSolver.Result result;\n\n\t\ttry {\n\t\t\tresult = ModSolver.solve(allModsSorted, modsById,\n\t\t\t\t\tselectedMods, uniqueSelectedMods);\n\t\t} catch (ContradictionException | TimeoutException e) {\n\t\t\tthrow new ModResolutionException(\"Solving failed\", e);\n\t\t}\n\n\t\tif (!result.success) {\n\t\t\tLog.warn(LogCategory.RESOLUTION, \"Mod resolution failed\");\n\t\t\tLog.info(LogCategory.RESOLUTION, \"Immediate reason: %s%n\", result.immediateReason);\n\t\t\tLog.info(LogCategory.RESOLUTION, \"Reason: %s%n\", result.reason);\n\t\t\tif (!envDisabledMods.isEmpty()) Log.info(LogCategory.RESOLUTION, \"%s environment disabled: %s%n\", envType.name(), envDisabledMods.keySet());\n\n\t\t\tif (result.fix == null) {\n\t\t\t\tLog.info(LogCategory.RESOLUTION, \"No fix?\");\n\t\t\t} else {\n\t\t\t\tLog.info(LogCategory.RESOLUTION, \"Fix: add %s, remove %s, replace [%s]%n\",\n\t\t\t\t\t\tresult.fix.modsToAdd,\n\t\t\t\t\t\tresult.fix.modsToRemove,\n\t\t\t\t\t\tresult.fix.modReplacements.entrySet().stream().map(e -> String.format(\"%s -> %s\", e.getValue(), e.getKey())).collect(Collectors.joining(\", \")));\n\n\t\t\t\tfor (Collection<ModCandidate> mods : envDisabledMods.values()) {\n\t\t\t\t\tfor (ModCandidate m : mods) {\n\t\t\t\t\t\tresult.fix.inactiveMods.put(m, InactiveReason.WRONG_ENVIRONMENT);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthrow new ModResolutionException(\"Mod resolution encountered an incompatible mod set!%s\",\n\t\t\t\t\tResultAnalyzer.gatherErrors(result, selectedMods, modsById, envDisabledMods, envType));\n\t\t}\n\n\t\tuniqueSelectedMods.sort(Comparator.comparing(ModCandidate::getId));\n\n\t\t// clear cached data and inbound refs for unused mods, set minNestLevel for used non-root mods to max, queue root mods\n\n\t\tQueue<ModCandidate> queue = new ArrayDeque<>();\n\n\t\tfor (ModCandidate mod : allModsSorted) {\n\t\t\tif (selectedMods.get(mod.getId()) == mod) { // mod is selected\n\t\t\t\tif (!mod.resetMinNestLevel()) { // -> is root\n\t\t\t\t\tqueue.add(mod);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tmod.clearCachedData();\n\n\t\t\t\tfor (ModCandidate m : mod.getNestedMods()) {\n\t\t\t\t\tm.getParentMods().remove(mod);\n\t\t\t\t}\n\n\t\t\t\tfor (ModCandidate m : mod.getParentMods()) {\n\t\t\t\t\tm.getNestedMods().remove(mod);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// recompute minNestLevel (may have changed due to parent associations having been dropped by the above step)\n\n\t\t{\n\t\t\tModCandidate mod;\n\n\t\t\twhile ((mod = queue.poll()) != null) {\n\t\t\t\tfor (ModCandidate child : mod.getNestedMods()) {\n\t\t\t\t\tif (child.updateMinNestLevel(mod)) {\n\t\t\t\t\t\tqueue.add(child);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tString warnings = ResultAnalyzer.gatherWarnings(uniqueSelectedMods, selectedMods,\n\t\t\t\tenvDisabledMods, envType);\n\n\t\tif (warnings != null) {\n\t\t\tLog.warn(LogCategory.RESOLUTION, \"Warnings were found!%s\", warnings);\n\t\t}\n\n\t\treturn uniqueSelectedMods;\n\t}", "boolean getIsUpdate();", "@Override\n public Criteria getCriteria() {\n //region your codes 2\n Criteria criteria = Criteria.add(UserPlayerTransfer.PROP_PLAYER_ACCOUNT, Operator.IEQ,searchObject.getPlayerAccount());\n criteria = criteria.addAnd(Criteria.add(UserPlayerTransfer.PROP_IS_ACTIVE, Operator.EQ,searchObject.getIsActive()));\n criteria = criteria.addAnd(Criteria.add(UserPlayerTransfer.PROP_PLAYER_ACCOUNT, Operator.EQ,searchObject.getPlayerAccount()));\n\n return criteria;\n //endregion your codes 2\n }", "Boolean getSearchObjective();", "public interface FeaturesHeuristic {\n double getScore(Way selectedWay, double distance);\n\n void setPreferredSurfaces(List<String> preferredSurfaces);\n\n void setDislikedSurfaces(List<String> dislikedSurfaces);\n\n void setPreferredHighways(List<String> preferredHighways);\n}", "protected static Criterion[] apply2HibernateCriterion(List<Criteria> criterias ){\n\t\tCriterion[] result = new Criterion[criterias.size()];\n\t\t\n\t\tfor (int i = 0; i < criterias.size(); i++) {\n\t\t\tresult[i] = el4jCriteria2HibernateCriterion(criterias.get(i));\n\t\t}\n\t\treturn result;\n\t}", "public int getCriteria() {\n return criteria;\n }", "@Override\n\tpublic ProductBasicSearchCriteria getCriteria() {\n\t\tif (super.criteria == null) {\n\t\t\tsuper.criteria = new ProductBasicSearchCriteria();\n\t\t}\n\t\treturn super.getCriteria();\n\t}", "public boolean canUpdate();", "public boolean isUpdateBiases() {\r\n\t\treturn updateBiases;\r\n\t}", "public void setUpdateBy(int updateBy) {\n inputParameters.Update_By = updateBy;\n\n }", "public String getCriteria() {\r\n\t\treturn criteria;\r\n\t}", "@Override\r\n public Object getModel()\r\n {\r\n return criteria;\r\n }", "private void getCriteriaSaved() {\n try {\n Map<Integer, Criteria> mapCriteria = search.getDataBaseInHashMap();\n for (Integer key : mapCriteria.keySet()) {\n Criteria cri = mapCriteria.get(key);\n frameSearch.getTpDataBase().addRowTableDb(\n (key), mapCriteria.get(key).getNameOwnwe());\n }\n cm = new HashMap<Integer, Criteria>(mapCriteria);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic Parameter[] getGridSearchParameters() {\n\t\treturn new Parameter[] { kernelCoefficient, kernelDegree, kernelGamma, parameterC, parameterNu };\n\t}", "private static boolean updatesImplementsCompatible(Mode actual) {\n boolean result;\n if /**/(actual.equals(UPDATES) || actual.equals(CLEARS)\n || actual.equals(RESTORES) || actual.equals(PRESERVES)) {\n result = true;\n }\n else {\n result = false;\n }\n return result;\n }", "public void onUpdate(Statement update, Connection cx, SimpleFeatureType featureType) throws SQLException {\r\n }", "@Override\n\tpublic void update(ConditionalCharacteristicSpecification acs) {\n\n\t}", "public void update() {\n suggestions = model.getDebtRepaymentSuggestions();\n }", "@Override\n public void updateConfigFromAlgorithmParams(List<Param> algParams) {\n }", "default CriteriaContainer or(Criteria... criteria) {\n return legacyOperation();\n }", "@Nonnull protected List<String> getEffectiveDataEncryptionAlgorithms(@Nonnull final CriteriaSet criteria, \n @Nonnull final Predicate<String> whitelistBlacklistPredicate) {\n \n final ArrayList<String> accumulator = new ArrayList<>();\n for (final EncryptionConfiguration config : criteria.get(EncryptionConfigurationCriterion.class)\n .getConfigurations()) {\n \n accumulator.addAll(Collections2.filter(config.getDataEncryptionAlgorithms(), \n PredicateSupport.and(getAlgorithmRuntimeSupportedPredicate(), whitelistBlacklistPredicate)::test));\n \n }\n return accumulator;\n }", "public int getCriteria() {\r\n\t\treturn criteria;\r\n\t}", "private static NodeList<Expression> retrieveForUpdate(ForStmt forStmt) {\n return forStmt.getUpdate();\n }" ]
[ "0.6803775", "0.53008634", "0.51413363", "0.5035421", "0.5014869", "0.48625335", "0.47877315", "0.4772983", "0.47722057", "0.47484568", "0.47118318", "0.46816358", "0.46399257", "0.46290195", "0.4595818", "0.4592472", "0.45580617", "0.4540768", "0.4509568", "0.45043126", "0.45029265", "0.44868368", "0.44828328", "0.44761795", "0.44761795", "0.44761795", "0.44708753", "0.44655135", "0.44596043", "0.44583496", "0.44583496", "0.4420871", "0.44118807", "0.44076273", "0.44022962", "0.43801418", "0.43786314", "0.43674916", "0.4348717", "0.43413207", "0.43413207", "0.43413207", "0.43357924", "0.43210602", "0.43136632", "0.43104732", "0.4309727", "0.43074018", "0.4306403", "0.4305321", "0.43018395", "0.43010357", "0.42978114", "0.4271918", "0.42586315", "0.42541096", "0.42523497", "0.42448372", "0.42327493", "0.42321613", "0.4229474", "0.4214806", "0.4213135", "0.42047277", "0.41912463", "0.41890234", "0.41776022", "0.41703418", "0.41691884", "0.41571602", "0.4152514", "0.4139188", "0.4136921", "0.41251805", "0.41225713", "0.41221988", "0.4118391", "0.41164017", "0.41066778", "0.41064167", "0.41026452", "0.4097885", "0.40924436", "0.40791878", "0.40735596", "0.4072384", "0.4070717", "0.4068896", "0.40655836", "0.4065207", "0.40620342", "0.40618345", "0.40610197", "0.40588412", "0.4058023", "0.40538055", "0.40503168", "0.40474653", "0.40460992", "0.40421194" ]
0.85005546
0
Sets update search criterion strategies.
@Required public void setUpdateSearchCriterionStrategies(final List<UpdateSearchCriterionStrategy> updateSearchCriterionStrategies) { this.updateSearchCriterionStrategies = updateSearchCriterionStrategies; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected List<UpdateSearchCriterionStrategy> getUpdateSearchCriterionStrategies()\n\t{\n\t\treturn updateSearchCriterionStrategies;\n\t}", "@Override\n\tpublic void changeCriterion(int index) {\n }", "public void prepareSearchForUpdate(Search search) {\r\n\t\tDouble rate = currencyService.getCurrencyRate(search.getEbayCountry().getCurrency(), search.getUser());\r\n\t\tsearch.setMinPrice((int)(search.getMinPrice() * rate));\r\n\t\tsearch.setMaxPrice((int)(search.getMaxPrice() * rate));\r\n\t}", "public void updateNewSuggestParamOracle() {\n\t\tif (searchSuggestDefineTextBox != null) {\n\t\t\tCQLSuggestOracle cqlSuggestOracle = new CQLSuggestOracle(parameterNameMap.values());\n\t\t}\n\t}", "public void setUpdateBy(int updateBy) {\n inputParameters.Update_By = updateBy;\n\n }", "public void setUpdateWeights(boolean updateWeights) {\r\n\t\tthis.updateWeights = updateWeights;\r\n\t}", "private void setSparqlQueries(EditConfigurationVTwo editConfiguration, VitroRequest vreq) {\n \t//Sparql queries defining retrieval of literals etc.\n \teditConfiguration.setSparqlForAdditionalLiteralsInScope(new HashMap<String, String>());\n \teditConfiguration.setSparqlForAdditionalUrisInScope(new HashMap<String, String>());\n \teditConfiguration.setSparqlForExistingLiterals(new HashMap<String, String>());\n \teditConfiguration.setSparqlForExistingUris(new HashMap<String, String>());\n }", "public static void setPreferredSortingCriterion(Context context, String newCriterion){\n\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = sp.edit();\n\n String keyForSortingCriterion = context.getString(R.string.pref_sort_criterion_key);\n\n editor.putString(keyForSortingCriterion,newCriterion);\n editor.apply();\n }", "int updateByPrimaryKeySelective(CfgSearchRecommend record);", "private void enableFieldBasedOnUpdateMethod() {\r\n if (updateMethod.getSelectedItem() == CompetitiveGroup.UpdateMethod.ALVAREZ_SQUIRE) {\r\n tfSynpaseDecayPercent.setEnabled(true);\r\n } else if (updateMethod.getSelectedItem() == CompetitiveGroup.UpdateMethod.RUMM_ZIPSER) {\r\n tfSynpaseDecayPercent.setEnabled(false);\r\n }\r\n }", "public interface Update extends SpatialQuery {\n\n\t/**\n\t * Add a restriction to filter the update operation.\n\t * \n\t * @param type\n\t * The {@link RestrictionType}.\n\t * @param value\n\t * The property value for the restriction type.\n\t */\n\tpublic abstract void addRestriction(RestrictionType type, String value);\n\t\n\t/**\n\t * Returns a list with restrictions of this update query.\n\t * \n\t * @return Returns a list with {@link RestrictionImpl}.\n\t */\n\tpublic abstract RestrictionMap getRestrictions();\n}", "private void setSearchParameters() {\n List obSys = dbm.getHQLManager().executeHQLQuery(\"from NewuserParamters where USERID=0\"); //user 0 is the system user\n NewuserParamters paramsSys = null;\n if (obSys != null) {\n paramsSys = (NewuserParamters) obSys.get(0);\n } else {\n System.out.println(\"User System Properties missing\");\n }\n //modify the settings of the search parameter based on user specification\n List ob = null;\n\n try {\n ob = dbm.getHQLManager().executeHQLQuery(\"from NewuserParamters where USERID=\" + UserId);\n if (ob.size() > 0) {\n NewuserParamters params = (NewuserParamters) ob.get(0);\n Integer val = 0;\n if ((val = params.getGlobalSessionSize()) != null) {\n NoOfglobalSessions = val;\n } else {\n this.NoOfglobalSessions = paramsSys.getGlobalSessionSize();\n }\n\n if ((val = params.getHdmGeneration()) != null) {\n this.noHDMGenerations = val;\n } else {\n this.noHDMGenerations = paramsSys.getHdmGeneration();\n }\n\n if ((val = params.getHdmPopulationSize()) != null) {\n this.HDMPopulation = val;\n } else {\n this.HDMPopulation = paramsSys.getHdmPopulationSize();\n }\n\n if ((val = params.getLearningType()) != null) {\n this.learningType = val;\n } else {\n this.learningType = paramsSys.getLearningType();\n }\n\n if ((val = params.getOptimizationType()) != null) {\n this.optimizationType = val;\n } else {\n this.optimizationType = paramsSys.getOptimizationType();\n }\n\n if ((val = params.getSdmGeneration()) != null) {\n this.noSDMGenerations = val;\n } else {\n this.noSDMGenerations = paramsSys.getSdmGeneration();\n }\n\n if ((val = params.getSdmPopulationSize()) != null) {\n this.SDMPopulation = val;\n } else {\n this.SDMPopulation = paramsSys.getSdmPopulationSize();\n }\n Double valdou = 0.0;\n if ((valdou = params.getGaMutationProbability()) != null) {\n this.MUTATION_PROBABILITY = valdou;\n } else {\n this.MUTATION_PROBABILITY = paramsSys.getGaMutationProbability();\n }\n\n if ((valdou = params.getGaCrossoverProbability()) != null) {\n this.CROSSOVER_PROBABILITY = valdou;\n } else {\n this.CROSSOVER_PROBABILITY = paramsSys.getGaCrossoverProbability();\n }\n }\n else {\n //use system default parameters\n this.NoOfglobalSessions = paramsSys.getGlobalSessionSize();\n this.noHDMGenerations = paramsSys.getHdmGeneration();\n this.HDMPopulation = paramsSys.getHdmPopulationSize();\n this.learningType = paramsSys.getLearningType();\n this.optimizationType = paramsSys.getOptimizationType();\n this.noSDMGenerations = paramsSys.getSdmGeneration();\n this.SDMPopulation = paramsSys.getSdmPopulationSize();\n this.MUTATION_PROBABILITY = paramsSys.getGaMutationProbability();\n this.CROSSOVER_PROBABILITY = paramsSys.getGaCrossoverProbability();\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void setUpdateBy( String updateBy ) {\n this.updateBy = updateBy;\n }", "void updateAllFilteredLists(Set<String> keywords, Calendar startDate, Calendar endDate,\n Entry.State state, Entry.State state2, Search... searches);", "void updateAllFilteredLists(Set<String> keywords, Calendar startDate, Calendar endDate,\n Entry.State state, Search... searches);", "public abstract void update(AbstractOrmEntity entityContainingChanges,\r\n\t Vector<String> searchCriterias) throws Exception;", "public boolean setAllFighterSearchRank() {\n\n\n Field<Integer> rank = DSL.choose(EVENTS.ORGANIZATION_ID)\n .when(\"https://www.sherdog.com/organizations/Ultimate-Fighting-Championship-UFC-2\", 1)\n .when(\"https://www.sherdog.com/organizations/Ultimate-Fighting-Championship-UFC-2\", 2)\n .when(\"https://www.sherdog.com/organizations/Dream-1357\", 2)\n .when(\"https://www.sherdog.com/organizations/Strikeforce-716\", 2)\n .when(\"https://www.sherdog.com/organizations/Pride-Fighting-Championships-3\", 2)\n .when(\"https://www.sherdog.com/organizations/Bellator-MMA-1960\", 2)\n .when(\"https://www.sherdog.com/organizations/Invicta-Fighting-Championships-4469\", 3)\n .when(\"https://www.sherdog.com/organizations/One-Championship-3877\", 3)\n .otherwise(99)\n .as(\"rank\");\n\n SelectLimitPercentStep<Record1<Integer>> subQuery = DSL.selectDistinct(rank).from(FIGHTS)\n .join(EVENTS).on(FIGHTS.EVENT_ID.eq(EVENTS.SHERDOGURL))\n .where(FIGHTS.FIGHTER1_ID.eq(FIGHTERS.SHERDOGURL))\n .or(FIGHTS.FIGHTER2_ID.eq(FIGHTERS.SHERDOGURL))\n .orderBy(rank)\n .limit(1);\n\n\n getDsl().update(FIGHTERS)\n .set(FIGHTERS.SEARCH_RANK, subQuery).execute();\n\n\n// template.update(\"UPDATE fighters fi\\n\" +\n// \"SET search_rank = (\\n\" +\n// \" SELECT DISTINCT CASE e.organization_id\\n\" +\n// \" WHEN 'https://www.sherdog.com/organizations/Ultimate-Fighting-Championship-UFC-2'\\n\" +\n// \" THEN 1\\n\" +\n// \" WHEN 'https://www.sherdog.com/organizations/Dream-1357'\\n\" +\n// \" THEN 2\\n\" +\n// \" WHEN 'https://www.sherdog.com/organizations/Strikeforce-716'\\n\" +\n// \" THEN 2\\n\" +\n// \" WHEN 'https://www.sherdog.com/organizations/Pride-Fighting-Championships-3'\\n\" +\n// \" THEN 2\\n\" +\n// \" WHEN 'https://www.sherdog.com/organizations/Bellator-MMA-1960'\\n\" +\n// \" THEN 2\\n\" +\n// \" WHEN 'https://www.sherdog.com/organizations/Invicta-Fighting-Championships-4469'\\n\" +\n// \" THEN 3\\n\" +\n// \" WHEN 'https://www.sherdog.com/organizations/One-Championship-3877'\\n\" +\n// \" THEN 3\\n\" +\n// \" ELSE 99\\n\" +\n// \" END AS rank\\n\" +\n// \" FROM fights f\\n\" +\n// \" JOIN events e ON f.event_id = e.sherdogUrl\\n\" +\n// \" WHERE f.fighter1_id = fi.sherdogUrl OR\\n\" +\n// \" f.fighter2_id = fi.sherdogUrl\\n\" +\n// \" ORDER BY rank ASC\\n\" +\n// \" LIMIT 0, 1)\");\n\n\n getDsl().update(FIGHTERS)\n .set(FIGHTERS.SEARCH_RANK, DSL.ifnull(99, FIGHTERS.SEARCH_RANK))\n .execute();\n\n return true;\n }", "public void setSearchOptions(SearchOptions options) {\n searchOptions_ = options;\n }", "@Override\n\tpublic void update(ConditionalCharacteristicSpecification acs) {\n\n\t}", "public void setUpdateby(Integer updateby) {\n this.updateby = updateby;\n }", "@Override\r\n\tpublic void setFilter(Set<SensorDescriptionUpdateRate<Measurement>> bestSensors) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void setFilter(Set<SensorDescriptionUpdateRate<Measurement>> bestSensors) {\n\t\t\r\n\t}", "protected void updateSearchResponse(final AccommodationSearchResponseData searchResponseData, final CriterionData criterion)\n\t{\n\t\tsearchResponseData.getCriterion().setFacets(criterion.getFacets());\n\t\tsearchResponseData.getCriterion().setSorts(criterion.getSorts());\n\t\tsearchResponseData.getCriterion().setQuery(criterion.getQuery());\n\t\tsearchResponseData.getCriterion().setFilteredFacets(criterion.getFilteredFacets());\n\t}", "@Override\n protected boolean updateCriteriaSet(String value) {\n return false;\n }", "int updateByExampleSelective(Providers record, ProvidersExample example);", "public void runOptimizations() {\n\t\tOptInfo info = new OptInfo();\n\t\tfor (int i = 0; i < mainOpts.size(); i++) {\n\t\t\t//Extract the operator in the vector and convert it into a\n\t\t\t//SearchStrategy type. The object that is loaded into the\n\t\t\t//SearchStrategy type is not SearchStrategy as it is an\n\t\t\t//abstract class but a class that inherits off of\n\t\t\t//SearchStrategy such as FirstBestIntraOpt, FirstBestInterOpt\n\t\t\t//and so on. the opt.run method runs the run method\n\t\t\t//from the inheriting class such as FirstBestIntraOpt.\n\t\t\tSearchStrategy opt = (SearchStrategy) mainOpts.elementAt(i);\n\t\t\tSettings.printDebug(Settings.COMMENT, \"Running \" + opt);\n\n\t\t\t//The opt.run method called is dependent on the object that\n\t\t\t//was created in the mainOpts. If the object was BestBestIntraSearch\n\t\t\t//then the run method in BestBestIntraSearch is called.\n\t\t\toptInformation.add(opt.toString() + \" \" + opt.run(mainDepots));\n\t\t\tSettings.printDebug(Settings.COMMENT,\n\t\t\t\t\topt.toString() + \" Stats: \" +\n\t\t\t\t\t\t\tmainDepots.getSolutionString());\n\t\t}\n\t}", "protected void setForUpdate(Txn txn, boolean forUpdate) {\r\n }", "public void update() {\n\t\t\tif (!max.getText().isEmpty()) {\n\t\t\t\tInteger maxVal = Integer.parseInt(max.getText());\n\t\t\t\tif (maxVal > 2) {\n\t\t\t\t\tboolean toUpdate = false;\n\t\t\t\t\tPlgProbabilityDistribution distr = null;\n\t\t\t\t\tif (((String)cb.getSelectedItem()).equals(PlgProbabilityDistribution.distributionToName(DISTRIBUTION.UNIFORM))) {\n\t\t\t\t\t\tdistr = PlgProbabilityDistribution.uniformDistributionFactory();\n\t\t\t\t\t\ttoUpdate = true;\n\t\t\t\t\t} else if (((String)cb.getSelectedItem()).equals(PlgProbabilityDistribution.distributionToName(DISTRIBUTION.BETA))) {\n\t\t\t\t\t\tif (!alpha.getText().isEmpty() && !beta.getText().isEmpty()) {\n\t\t\t\t\t\t\tDouble a = Double.parseDouble(alpha.getText());\n\t\t\t\t\t\t\tDouble b = Double.parseDouble(beta.getText());\n\t\t\t\t\t\t\tdistr = PlgProbabilityDistribution.betaDistributionFactory(a, b);\n\t\t\t\t\t\t\ttoUpdate = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (((String)cb.getSelectedItem()).equals(PlgProbabilityDistribution.distributionToName(DISTRIBUTION.NORMAL))) {\n\t\t\t\t\t\tdistr = PlgProbabilityDistribution.normalDistributionFactory();\n\t\t\t\t\t\ttoUpdate = true;\n\t\t\t\t\t}\n\t\t\t\t\tif (toUpdate) {\n\t\t\t\t\t\tp.updateDistribution(dv, maxVal, distr);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void dependencyUpdateVal(Set updatingObjects);", "public void dependencyUpdateDef(Set updatingObjects);", "public void tellChanged(SearchTool searchTool) {\n updateAll();\n }", "public void onUpdate(Statement update, Connection cx, SimpleFeatureType featureType) throws SQLException {\r\n }", "public interface SearchQuerySet extends QuerySet\n{\n\n // for AbstractSearch\n public static final int STAT_MODELS = 1;\n public static final int STAT_CLUSTERS = 2;\n public static final int STAT_GENOMES = 4;\n public static final int STAT_MODEL_CLUSTERS = 8;\n\n public String getStatsById(Collection data);\n public String getStatsByQuery(String query);\n public String getStatsById(Collection data,int stats);\n public String getStatsByQuery(String query,int stats);\n \n // for BlastSearch\n public String getBlastSearchQuery(Collection dbNames, Collection keys, KeyTypeUser.KeyType keyType);\n \n //for ClusterIDSearch\n public String getClusterIDSearchQuery(Collection input, int limit, int[] DBs, KeyTypeUser.KeyType keyType);\n \n // for ClusterNameSearch\n public String getClusterNameSearchQuery(Collection input, int limit, int[] DBs, KeyTypeUser.KeyType keyType);\n \n // for DescriptionSearch\n public String getDescriptionSearchQuery(Collection input, int limit, int[] DBs, KeyTypeUser.KeyType keyType);\n \n // for GoSearch \n public String getGoSearchQuery(Collection input, int limit, KeyTypeUser.KeyType keyType);\n \n // for GoTextSearch\n public String getGoTextSearchQuery(Collection input, int limit, KeyTypeUser.KeyType keyType);\n \n // for IdSearch\n public String getIdSearchQuery(Collection input, int limit, int[] DBs, KeyTypeUser.KeyType keyType);\n \n // for QueryCompSearch\n public String getQueryCompSearchQuery(String comp_id, String status, KeyTypeUser.KeyType keyType);\n \n // for QuerySearch\n public String getQuerySearchQuery(String queries_id, KeyTypeUser.KeyType keyType); \n \n // for SeqModelSearch\n public String getSeqModelSearchQuery(Collection model_ids, KeyTypeUser.KeyType keyType);\n \n // for UnknowclusterIdSearch\n public String getUnknownClusterIdSearchQuery(int cluster_id, KeyTypeUser.KeyType keyType);\n \n // for ProbeSetSearch\n public String getProbeSetSearchQuery(Collection input, int limit, KeyTypeUser.KeyType keyType);\n \n // for ProbeSetKeySearch\n public String getProbeSetKeySearchQuery(Collection input, int limit, KeyTypeUser.KeyType keyType);\n \n // for QueryTestSearch\n public String getQueryTestSearchQuery(String query_id, String version, String genome_id);\n \n // for QueryStatsSearch\n public String getQueryStatsSearchQuery(List query_ids,List DBs);\n \n // for PskClusterSearch\n public String getPskClusterSearchQuery(int cluster_id,KeyTypeUser.KeyType keyType);\n \n // for ClusterCorrSearch\n public String getClusterCorrSearchQuery(int cluster_id, int psk_id, KeyTypeUser.KeyType keyType);\n \n // for UnknownGenesSearch\n public String getUnknownGenesSearchQuery(Collection sources, KeyTypeUser.KeyType keyType);\n \n}", "@Override\n public void updateConfigFromAlgorithmParams(List<Param> algParams) {\n }", "protected void update() throws SQLException {\n\t\tProperties whereClause = new Properties();\n\t\twhereClause.setProperty(\"1\", \"1\");\n\t\tupdatePersistentState(getSchema(), persistentState, whereClause);\n\t}", "public void setUpdateDBStatisticsCommands(entity.UpdateDBStatisticsCommand[] value);", "private void updateFilteringAndSorting() {\n log.debug(\"update filtering of adapter called\");\n if (lastUsedComparator != null) {\n sortWithoutNotify(lastUsedComparator, lastUsedAsc);\n }\n Filter filter = getFilter();\n if (filter instanceof UpdateableFilter){\n ((UpdateableFilter)filter).updateFiltering();\n }\n }", "public void setSearchMode(SearchMode searchMode) {\n this.searchMode = searchMode;\n }", "int updateByPrimaryKeySelective(CommonQuestionStrategyType record);", "public void update() {\n suggestions = model.getDebtRepaymentSuggestions();\n }", "private boolean update(UpdateStatement us) {\n\t\tTable target = DBUsing.getTable(us.tableName);\n\t\tArrayList<Tuple> tuples = (ArrayList<Tuple>) target.getTuples();\n\t\tObject updateValue = null;\n\t\t\n\t\ttry {\n\t\t\tFile root = new File(\"src\");\n \tURLClassLoader classLoader = URLClassLoader.newInstance(new URL[] { root.toURI().toURL() });\n \tClass<?> cl = Class.forName(target.getName(), true, classLoader);\n\t\t\t\n\t\t\t// Clarify update targets\n\t\t\tfor(Field field : cl.getDeclaredFields()) {\n\t\t\t\tfield.setAccessible(true);\n\t\t\t\tif(field.getType().getName().equals(\"int\"))\n\t\t\t\t\tupdateValue = new Integer(us.val);\n\t\t\t\telse if(field.getType().getName().equals(\"java.lang.String\"))\n\t\t\t\t\tupdateValue = new String(us.val);\n\t\t\t\telse if(field.getType().getName().equals(\"double\"))\n\t\t\t\t\tupdateValue = new Double(us.val);\n\t\t\t\tfield.setAccessible(false);\n\t\t\t}\n\t\t\t\n\t\t\t//System.out.println(us.attr + \" \" + updateValue);\n\t\t\t\n\t\t\t// Filter and update\n\t\t\tif(us.where != null) {\n\t\t\t\tConditionExpression cond = us.where;\n\t\t\t\tString attributeName = cond.left;\n\t\t\t\tString attributeValue = cond.right;\n\t\t\t\t\n\t\t\t\tfor(Tuple tuple : tuples) {\n\t\t\t\t\tField fields[] = tuple.getClass().getDeclaredFields();\n\t\t\t\t\tfor(int i = 0; i < fields.length; i++) {\n\t\t\t\t\t\tField field = fields[i];\n\t\t\t\t\t\tfield.setAccessible(true);\n\t\t\t\t\t\t//System.out.println(\"check field.getName(): \" + field.getName() + \", attributeName: \" + attributeName);\n\t\t\t\t\t\tif(field.getName().equals(attributeName)) {\n\t\t\t\t\t\t\tif(cond.operator.equals(\"=\")) {\n\t\t\t\t\t\t\t\tboolean checkCondition = false;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(field.getType().getName().equals(\"int\"))\n\t\t\t\t\t\t\t\t\tcheckCondition = ((Object) new Integer(attributeValue)).equals(field.get(tuple));\n\t\t\t\t\t\t\t\telse if(field.getType().getName().equals(\"java.lang.String\"))\n\t\t\t\t\t\t\t\t\tcheckCondition = ((Object) new String(attributeValue)).equals(field.get(tuple));\n\t\t\t\t\t\t\t\telse if(field.getType().getName().equals(\"double\"))\n\t\t\t\t\t\t\t\t\tcheckCondition = ((Object) new Double(attributeValue)).equals(field.get(tuple));\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(checkCondition) {\n\t\t\t\t\t\t\t\t\tField toBeUpdated = tuple.getClass().getDeclaredField(us.attr);\n\t\t\t\t\t\t\t\t\ttoBeUpdated.setAccessible(true);\n\t\t\t\t\t\t\t\t\ttoBeUpdated.set(tuple, updateValue);\n\t\t\t\t\t\t\t\t\ttoBeUpdated.setAccessible(false);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfield.setAccessible(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tfor(Tuple tuple : tuples) {\n\t\t\t\t\tField toBeUpdated = tuple.getClass().getDeclaredField(us.attr);\n\t\t\t\t\ttoBeUpdated.setAccessible(true);\n\t\t\t\t\ttoBeUpdated.set(tuple, updateValue);\n\t\t\t\t\ttoBeUpdated.setAccessible(false);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\tcatch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch (NoSuchFieldException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch (IllegalAccessException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch (MalformedURLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\t\n\t\treturn true;\n\t}", "protected abstract boolean supportsForUpdate();", "public void updateSwitches(){\r\n if(this.ar){\r\n this.augmentedReality.setChecked(true);\r\n }else{\r\n this.augmentedReality.setChecked(false);\r\n }\r\n\r\n if(this.easy){\r\n this.easyMode.setChecked(true);\r\n }else{\r\n this.easyMode.setChecked(false);\r\n }\r\n }", "public void setOptions(String[] options) throws Exception {\n\t\tString evaluatorString = Utils.getOption('E', options);\r\n\t\tif (evaluatorString.length() == 0)\r\n\t\t\tevaluatorString = weka.attributeSelection.CfsSubsetEval.class\r\n\t\t\t\t\t.getName();\r\n\t\tString[] evaluatorSpec = Utils.splitOptions(evaluatorString);\r\n\t\tif (evaluatorSpec.length == 0) {\r\n\t\t\tthrow new Exception(\r\n\t\t\t\t\t\"Invalid attribute evaluator specification string\");\r\n\t\t}\r\n\t\tString evaluatorName = evaluatorSpec[0];\r\n\t\tevaluatorSpec[0] = \"\";\r\n\t\tm_evaluator = ASEvaluation.forName(evaluatorName, evaluatorSpec);\r\n\r\n\t\t// same for search method\r\n\t\tString searchString = Utils.getOption('S', options);\r\n\t\tif (searchString.length() == 0)\r\n\t\t\tsearchString = weka.attributeSelection.BestFirst.class.getName();\r\n\t\tString[] searchSpec = Utils.splitOptions(searchString);\r\n\t\tif (searchSpec.length == 0) {\r\n\t\t\tthrow new Exception(\"Invalid search specification string\");\r\n\t\t}\r\n\t\tString searchName = searchSpec[0];\r\n\t\tsearchSpec[0] = \"\";\r\n\t\tm_searcher = ASSearch.forName(searchName, searchSpec);\r\n\r\n\t\tsuper.setOptions(options);\r\n\t}", "private void updateViewModelValidatorSupports()\n {\n if (myValidator == null)\n {\n return;\n }\n Conditional cond = myOperator.get();\n if (cond == Conditional.IN_LIST || cond == Conditional.NOT_IN_LIST || cond == Conditional.LIKE_LIST\n || cond == Conditional.NOT_LIKE_LIST)\n {\n myCriterionValue.setValidatorSupport(new TextModelListValidatorSupport(myCriterionValue, myValidator));\n myCriterionMaxValue.setValidatorSupport(new TextModelListValidatorSupport(myCriterionMaxValue, myValidator));\n }\n else\n {\n myCriterionValue.setValidatorSupport(new ObservableValueValidatorSupport<>(myCriterionValue, myValidator));\n myCriterionMaxValue.setValidatorSupport(new ObservableValueValidatorSupport<>(myCriterionMaxValue, myValidator));\n }\n }", "@Override\n\tpublic Object[] advSearchCondition() {\n\t\treturn null;\n\t}", "public void setAllUpdateFlags() {\n\t}", "int updateByExampleSelective(@Param(\"record\") CfgSearchRecommend record, @Param(\"example\") CfgSearchRecommendExample example);", "@Override\n\tpublic void updateSuggestFuncOracle() {\n\t\tif (searchSuggestFuncTextBox != null) {\n\t\t\tMultiWordSuggestOracle multiWordSuggestOracle = (MultiWordSuggestOracle) searchSuggestFuncTextBox\n\t\t\t\t\t.getSuggestOracle();\n\t\t\tmultiWordSuggestOracle.clear();\n\t\t\tmultiWordSuggestOracle.addAll(funcNameMap.values());\n\t\t}\n\t}", "private void updateAll() {\n updateAction();\n updateQueryViews();\n }", "public void updateParameters(){\n\t\tp = RunEnvironment.getInstance().getParameters();\n\t\tmaxFlowerNectar = (double)p.getValue(\"maxFlowerNectar\");\n\t\tlowMetabolicRate = (double)p.getValue(\"lowMetabolicRate\");\n\t\thighMetabolicRate = (double)p.getValue(\"highMetabolicRate\");\n\t\tcolonySize = (int)p.getValue(\"colonySize\");\n\t}", "public void setUpdateBy(Long updateBy) {\n this.updateBy = updateBy;\n }", "public void setUpdateBy(Long updateBy) {\n this.updateBy = updateBy;\n }", "public void setUpdateBy(Long updateBy) {\n this.updateBy = updateBy;\n }", "private void initClauses() {\n if (!mIsInitialized) {\n if (ConnectionUtil.getDBProductID() == ConnectionUtil.DB_ORACLE ||\n ConnectionUtil.getDBProductID() == ConnectionUtil.DB_MYSQL) {\n mForUpdateClause = \" FOR UPDATE \";\n } else if (ConnectionUtil.getDBProductID() == ConnectionUtil.DB_SQLSERVER) {\n mWithClause = \" WITH (ROWLOCK, UPDLOCK) \";\n }\n mIsInitialized = true;\n }\n\n }", "public void setSearchOperation(List<Post> newList)\n {\n notifyDataSetChanged();\n }", "public void updateState(Map<String, String[]> parameters){\n if(this instanceof ParameterizedStrategy){\n ((ParameterizedStrategy)this).updateStrategyParameters(parameters);\n }\n }", "public void setUpdateBiases(boolean updateBiases) {\r\n\t\tthis.updateBiases = updateBiases;\r\n\t}", "void filterAdvancedScenarios(boolean fingerprints, boolean updatePreference) {\n\tthis.results.setFingerprints(fingerprints);\n\tif (fingerprints) {\n\t\tthis.viewFilters.add(FILTER_ADVANCED_SCENARIOS);\n\t} else {\n\t\tthis.viewFilters.remove(FILTER_ADVANCED_SCENARIOS);\n\t}\n\tthis.preferences.putBoolean(IPerformancesConstants.PRE_FILTER_ADVANCED_SCENARIOS, fingerprints);\n\tupdateFilters();\n}", "public QueryResultBuilder<T> applySearch(Option<Search> search);", "public void setUpdateBy(String updateBy) {\r\n this.updateBy = updateBy == null ? null : updateBy.trim();\r\n }", "@Deprecated\n\t@Override\n\tpublic void updateAll(List<OptionEntity> entities) {\n\t}", "protected ParametersBuilder getUpdateParameters(){\r\n return new ParametersBuilder(\r\n getId(),\r\n saveOrUpdateParameters(),\r\n getUpUser(),\r\n getDescription()\r\n );\r\n }", "public void setUpdateBy(String updateBy) {\n\t\tthis.updateBy = updateBy == null ? null : updateBy.trim();\n\t}", "public void setUpdateBy(String updateBy) {\n this.updateBy = updateBy == null ? null : updateBy.trim();\n }", "public void setUpdateBy(String updateBy) {\n this.updateBy = updateBy == null ? null : updateBy.trim();\n }", "public void setUpdateBy(String updateBy) {\n this.updateBy = updateBy == null ? null : updateBy.trim();\n }", "public void update(int updateType);", "public void setUpdateRule (String updateRule) {\n this.updateRule = updateRule;\n }", "public void setUpdateRule (String updateRule) {\n this.updateRule = updateRule;\n }", "void filterUpdate(ServerContext context, UpdateRequest request,\n ResultHandler<Resource> handler, RequestHandler next);", "public void performAdditionalUpdates() {\n\t\t// Default: do nothing - subclasses should override if needed\n\t}", "private void convertReqsInCriterions(){\n\t\tArrayList<Criterion> criteria = this.data.getCriteria();\n\t\t\n\t\tfor(Requirement req : this.data.getRequirements()){\n\t\t\tif(req.isCriterion()){\n\t\t\t\t//create new criterion\n\t\t\t\tCriterion crit = new Criterion();\n\t\t\t\tif(req.getQuantType() != null)\n\t\t\t\t\tcrit.setName(req.getQuantType().getValue());\n\t\t\t\telse if(req.getQualType() != null)\n\t\t\t\t\tcrit.setName(req.getQualType().getValue());\n\t\t\t\telse\n\t\t\t\t\t//this is a price requirement\n\t\t\t\t\tcrit.setName(\"price\");\n\t\t\t\t\n\t\t\t\tString[] msg = {crit.getName(), \"General\"};\n\t\t\t\tif(this.methodID == CloudAid.SAW){\n\t\t\t\t\tFloat weight = Float.parseFloat(CloudAid.askData(CloudAid.GET_WEIGHT, msg, null));\n\t\t\t\t\tcrit.setWeight(weight);\n\t\t\t\t}\n\t\t\t\t//get the criterion preference direction\n\t\t\t\tString res = CloudAid.askData(CloudAid.GET_PREFERENCE_DIRECTION, msg, null);\n\t\t\t\tif(res.equalsIgnoreCase(\"y\")){\n\t\t\t\t\tcrit.setPreferenceDirection(\"max\");\n\t\t\t\t}else if(res.equalsIgnoreCase(\"n\")){\n\t\t\t\t\tcrit.setPreferenceDirection(\"min\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcriteria.add(crit);\n\t\t\t}\n\t\t}\n\t\tthis.data.setCriteria(criteria);\n\t\t\n\t\t//convert each serpiceTemplate requirements\n\t\tfor(ServiceTemplate template : this.data.getServiceTemplates()){\n\t\t\tArrayList<Criterion> templateCriteria = template.getCriteria();\n\t\t\tfor(Requirement req: template.getRequirements()){\n\t\t\t\tif(req.isCriterion()){\n\t\t\t\t\t//create new criterion\n\t\t\t\t\tCriterion crit = new Criterion();\n\t\t\t\t\tif(req.getQuantType() != null)\n\t\t\t\t\t\tcrit.setName(req.getQuantType().getValue());\n\t\t\t\t\telse if(req.getQualType() != null)\n\t\t\t\t\t\tcrit.setName(req.getQualType().getValue());\n\t\t\t\t\telse\n\t\t\t\t\t\t//this is a price requirement\n\t\t\t\t\t\tcrit.setName(\"price\");\n\t\t\t\t\t\n\t\t\t\t\tString[] msg = {crit.getName(), template.getType()};\n\t\t\t\t\tif(this.methodID == CloudAid.SAW){\n\t\t\t\t\t\tFloat weight = Float.parseFloat(CloudAid.askData(CloudAid.GET_WEIGHT, msg, null));\n\t\t\t\t\t\tcrit.setWeight(weight);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//get the criterion preference direction\n\t\t\t\t\tString res = CloudAid.askData(CloudAid.GET_PREFERENCE_DIRECTION, msg, null);\n\t\t\t\t\tif(res.equalsIgnoreCase(\"y\")){\n\t\t\t\t\t\tcrit.setPreferenceDirection(\"max\");\n\t\t\t\t\t}else if(res.equalsIgnoreCase(\"n\")){\n\t\t\t\t\t\tcrit.setPreferenceDirection(\"min\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\ttemplateCriteria.add(crit);\n\t\t\t\t}\n\t\t\t}\n\t\t\ttemplate.setCriteria(templateCriteria);\n\t\t}\n\t}", "@Override\n\tpublic boolean updateStrategy(String strategyType, String strategyId, PromotionStrategyPO newPromotionStrategyPO) {\n\t\treturn false;\n\t}", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n \tprivate CriteriaUpdateImpl<?> constructUpdateQuery(CriteriaBuilderImpl cb, CommonTree tree) {\n \t\tfinal CriteriaUpdateImpl<?> q = new CriteriaUpdateImpl(this.metamodel);\n \n \t\tfinal Tree updateDef = tree.getChild(0);\n \n \t\tfinal Tree aliasedDef = updateDef.getChild(0);\n \t\tfinal Aliased aliased = new Aliased(aliasedDef);\n \n \t\tfinal EntityTypeImpl entity = this.getEntity(aliased.getQualified().toString());\n \t\tfinal RootImpl<?> r = (RootImpl<?>) q.from(entity);\n \t\tthis.putAlias(q, aliasedDef, aliased, r);\n \n \t\tfinal Tree setDefs = updateDef.getChild(1);\n \t\tfor (int i = 0; i < setDefs.getChildCount(); i++) {\n \t\t\tfinal Tree setDef = setDefs.getChild(i);\n \n \t\t\tfinal BasicPath left = (BasicPath) this.getExpression(cb, q, setDef.getChild(0), null);\n \t\t\tfinal AbstractExpression right = this.getExpression(cb, q, setDef.getChild(1), left.getJavaType());\n \n \t\t\tq.set(left, right);\n \t\t}\n \n \t\tif (updateDef.getChildCount() == 3) {\n \t\t\tq.where(this.constructJunction(cb, q, updateDef.getChild(2)));\n \t\t}\n \n \t\treturn q;\n \t}", "public static void setSortCriteria(String method)\n \t{\n \t\tsortCriteria = method;\n \t}", "void updateFilteredPersonList(Set<String> keywords);", "protected void addUpdateQualifiers(SQLUpdateStatement sql,\n OrderTransactionIfc orderTransaction)\n { // begin addUpdateQualifiers()\n sql.addQualifier(ARTSDatabaseIfc.FIELD_ORDER_ID,\n inQuotes(orderTransaction.getOrderID()));\n sql.addQualifier(ARTSDatabaseIfc.FIELD_BUSINESS_DAY_DATE,\n dateToSQLDateString(orderTransaction.getBusinessDay()));\n }", "public void updateAll( Map<String, ? extends Object> where, Map<String, ? extends Object> data, final ObjectCallback<JSONObject> callback ){\n\n /**\n Call the onBefore event\n */\n callback.onBefore();\n\n\n //Definging hashMap for data conversion\n Map<String, Object> hashMapObject = new HashMap<>();\n //Now add the arguments...\n \n hashMapObject.put(\"where\", where);\n \n hashMapObject.putAll(data);\n \n\n \n\n\n \n \n invokeStaticMethod(\"updateAll\", hashMapObject, new Adapter.JsonObjectCallback() {\n \n \n @Override\n public void onError(Throwable t) {\n callback.onError(t);\n //Call the finally method..\n callback.onFinally();\n }\n\n @Override\n public void onSuccess(JSONObject response) {\n \n callback.onSuccess(response);\n \n //Call the finally method..\n callback.onFinally();\n }\n });\n \n\n \n\n }", "public void setAlgorithm(){\n\t\tif(pickRequest.equals(\"FCFS\"){\n\t\t\tmethods.remove(0);\n\t\t}\n\t\telse if(pickRequest.equals(\"Closest\"))\n\t\t{\n\t\t\tmethods.remove(); \n\t\t}\n\t\telse if(pickRequest.equals(\"Urgency\"))\n\t\t{\n\t\t\tmethods.remove();\n\t\t}\n\t}", "@Override\n\tpublic void onQaSettingUpdate(boolean arg0, boolean arg1, boolean arg2) {\n\t\t\n\t}", "public void updateNewSuggestDefineOracle() {\n\t\tif (searchSuggestDefineTextBox != null) {\n\t\t\tCQLSuggestOracle cqlSuggestOracle = new CQLSuggestOracle(defineNameMap.values());\n\t\t}\n\t}", "public void update(Driver driver);", "private boolean updateExistingSearchController(List<String> queryMethods,\n ClassOrInterfaceTypeDetails controllerToUpdateOrCreate,\n ClassOrInterfaceTypeDetailsBuilder controllerBuilder) {\n // Get @RooSearch and build necessary variables\n AnnotationMetadata searchAnnotation =\n controllerToUpdateOrCreate.getAnnotation(RooJavaType.ROO_SEARCH);\n List<AnnotationAttributeValue<?>> findersToAdd = new ArrayList<AnnotationAttributeValue<?>>();\n List<String> finderNames = new ArrayList<String>();\n boolean findersAdded = false;\n\n // Get existent finder values\n if (searchAnnotation != null && searchAnnotation.getAttribute(\"finders\") != null) {\n List<?> existingFinders = (List<?>) searchAnnotation.getAttribute(\"finders\").getValue();\n Iterator<?> it = existingFinders.iterator();\n\n // Add existent finders to new attributes array to merge with new ones\n while (it.hasNext()) {\n StringAttributeValue attributeValue = (StringAttributeValue) it.next();\n findersToAdd.add(attributeValue);\n finderNames.add(attributeValue.getValue());\n }\n\n // Add new finders to new attributes array\n for (String finder : queryMethods) {\n if (!finderNames.contains(finder)) {\n findersToAdd.add(new StringAttributeValue(new JavaSymbolName(\"value\"), finder));\n findersAdded = true;\n }\n }\n\n // Add attributes array to @RooSearch\n AnnotationMetadataBuilder searchAnnotationBuilder =\n new AnnotationMetadataBuilder(searchAnnotation);\n ArrayAttributeValue<AnnotationAttributeValue<?>> allFinders =\n new ArrayAttributeValue<AnnotationAttributeValue<?>>(new JavaSymbolName(\"finders\"),\n findersToAdd);\n searchAnnotationBuilder.addAttribute(allFinders);\n controllerBuilder.updateTypeAnnotation(searchAnnotationBuilder);\n }\n return findersAdded;\n }", "public void makeUpdate()\n {\n this.mustUpdate = true;\n }", "@Override\n\tpublic void queryUpdate() {\n\t\tneedToUpdate = true;\n\t}", "public void requestUpdate(){\n shouldUpdate = true;\n }", "public void or(Criteria criteria) {\r\n\t\toredCriteria.add(criteria);\r\n\t}", "public void or(Criteria criteria) {\r\n\t\toredCriteria.add(criteria);\r\n\t}", "public void or(Criteria criteria) {\r\n\t\toredCriteria.add(criteria);\r\n\t}", "public void or(Criteria criteria) {\r\n\t\toredCriteria.add(criteria);\r\n\t}", "public void or(Criteria criteria) {\r\n\t\toredCriteria.add(criteria);\r\n\t}", "public void or(Criteria criteria) {\r\n\t\toredCriteria.add(criteria);\r\n\t}", "public void or(Criteria criteria) {\r\n\t\toredCriteria.add(criteria);\r\n\t}", "public void or(Criteria criteria) {\r\n\t\toredCriteria.add(criteria);\r\n\t}", "public void or(Criteria criteria) {\r\n\t\toredCriteria.add(criteria);\r\n\t}", "@Override\r\n public final void update() {\r\n\r\n logger.entering(this.getClass().getName(), \"update\");\r\n\r\n setFilterMap();\r\n\r\n logger.exiting(this.getClass().getName(), \"update\");\r\n\r\n }", "public void setWhere(String dbsel)\n {\n this._appendWhere(dbsel, WHERE_SET);\n }", "public UpdateResponse optimize(boolean waitFlush, boolean waitSearcher) throws SolrServerException, IOException {\n return optimize(waitFlush, waitSearcher, 1);\n }", "protected void setSearch(ArrayList<Contact> search){\n this.search = search;\n }" ]
[ "0.76015157", "0.52825534", "0.52363753", "0.5174204", "0.5172014", "0.5118527", "0.5106232", "0.51013273", "0.5076459", "0.5048095", "0.50155973", "0.50134486", "0.5001618", "0.4995985", "0.49115807", "0.4898508", "0.48965648", "0.48903543", "0.48842764", "0.48831633", "0.48353255", "0.48353255", "0.4827835", "0.47948647", "0.47799757", "0.47790152", "0.47784257", "0.47496116", "0.47452816", "0.4744147", "0.47187033", "0.46911618", "0.46755368", "0.46620846", "0.46614787", "0.46539906", "0.4644555", "0.4638558", "0.46341324", "0.46337244", "0.46319914", "0.4631677", "0.46151987", "0.45991066", "0.4583939", "0.45799875", "0.45751342", "0.45713627", "0.45670998", "0.45552108", "0.45180303", "0.4509906", "0.4509906", "0.4509906", "0.4508293", "0.45014718", "0.45008364", "0.45007795", "0.45004252", "0.4498716", "0.4494043", "0.4492458", "0.4482073", "0.44796255", "0.44795018", "0.44795018", "0.44795018", "0.44768822", "0.44761363", "0.44761363", "0.44752553", "0.44688457", "0.44660228", "0.44616222", "0.44592464", "0.44560805", "0.44475135", "0.44464695", "0.44450712", "0.44436458", "0.44423032", "0.44331932", "0.44309947", "0.442862", "0.44276726", "0.44151008", "0.44081816", "0.44022092", "0.44022092", "0.44022092", "0.44022092", "0.44022092", "0.44022092", "0.44022092", "0.44022092", "0.44022092", "0.43994424", "0.4394318", "0.43934518", "0.43927374" ]
0.73492026
1
Gets travel rules service.
protected TravelRulesService getTravelRulesService() { return travelRulesService; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final RuleBaseFacility getRules()\n{\n\treturn _rules;\n}", "public Rules getRules()\r\n {\r\n return rules;\r\n }", "@Required\n\tpublic void setTravelRulesService(final TravelRulesService travelRulesService)\n\t{\n\t\tthis.travelRulesService = travelRulesService;\n\t}", "public abstract List<NARule> getRules(Context context);", "public GameRules getGameRulesInstance()\n {\n return theGameRules;\n }", "public List<Rule> getRules() {\r\n\t\treturn rules;\r\n\t}", "public interface RulesManager extends RulesService {\n\n boolean applyPortForwardingRules(long ipAddressId, boolean continueOnError, Account caller);\n\n boolean applyStaticNatRulesForIp(long sourceIpId, boolean continueOnError, Account caller, boolean forRevoke);\n\n boolean applyPortForwardingRulesForNetwork(long networkId, boolean continueOnError, Account caller);\n\n boolean applyStaticNatRulesForNetwork(long networkId, boolean continueOnError, Account caller);\n\n void checkIpAndUserVm(IpAddress ipAddress, UserVm userVm, Account caller);\n\n void checkRuleAndUserVm(FirewallRule rule, UserVm userVm, Account caller);\n\n boolean revokeAllPFAndStaticNatRulesForIp(long ipId, long userId, Account caller) throws ResourceUnavailableException;\n\n boolean revokeAllPFStaticNatRulesForNetwork(long networkId, long userId, Account caller) throws ResourceUnavailableException;\n\n List<? extends FirewallRule> listFirewallRulesByIp(long ipAddressId);\n\n /**\n * Returns a list of port forwarding rules that are ready for application\n * to the network elements for this ip.\n * \n * @param ip\n * @return List of PortForwardingRule\n */\n List<? extends PortForwardingRule> listPortForwardingRulesForApplication(long ipId);\n\n List<? extends PortForwardingRule> gatherPortForwardingRulesForApplication(List<? extends IpAddress> addrs);\n\n boolean revokePortForwardingRulesForVm(long vmId);\n\n boolean revokeStaticNatRulesForVm(long vmId);\n\n FirewallRule[] reservePorts(IpAddress ip, String protocol, FirewallRule.Purpose purpose, boolean openFirewall, Account caller, int... ports) throws NetworkRuleConflictException;\n\n boolean releasePorts(long ipId, String protocol, FirewallRule.Purpose purpose, int... ports);\n\n List<PortForwardingRuleVO> listByNetworkId(long networkId);\n\n boolean applyStaticNatForIp(long sourceIpId, boolean continueOnError, Account caller, boolean forRevoke);\n\n boolean applyStaticNatsForNetwork(long networkId, boolean continueOnError, Account caller);\n\n void getSystemIpAndEnableStaticNatForVm(UserVm vm, boolean getNewIp) throws InsufficientAddressCapacityException;\n\n boolean disableStaticNat(long ipAddressId, Account caller, long callerUserId, boolean releaseIpIfElastic) throws ResourceUnavailableException;\n\n}", "List<? extends Rule> getRules();", "FirewallRuleService firewallrule();", "@Override\n public List getRules() {\n return rules;\n }", "public List<RulesEngineRule> rules() {\n return this.innerProperties() == null ? null : this.innerProperties().rules();\n }", "public ArrayList<String> getRules() {\n return rules;\n }", "@Override\n public List<Rule> getPriceRules() {\n return List.of(getMatchTravelCardHolderRule());\n }", "@Deprecated\n public List<V1IngressRule> getRules();", "@Bean\n public RulesEngine getRulesEngine() {\n return new DefaultRulesEngine(new RulesEngineParameters().skipOnFirstAppliedRule(false));\n }", "java.util.List<com.appscode.api.kubernetes.v1beta2.Rule> \n getRulesList();", "public java.util.Enumeration getLeaseRules() throws java.rmi.RemoteException, javax.ejb.FinderException {\n\treturn this.getLeaseRulesLink().enumerationValue();\n}", "public ArrayList<NetworkSecurityRule> getRules() {\n return this.rules;\n }", "public com.walgreens.rxit.ch.cda.StrucDocTable.Rules xgetRules()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.StrucDocTable.Rules target = null;\n target = (com.walgreens.rxit.ch.cda.StrucDocTable.Rules)get_store().find_attribute_user(RULES$26);\n return target;\n }\n }", "private Rule honorRules(InstanceWaypoint context){\n \t\t\n \t\tStyle style = getStyle(context);\n \t\tRule[] rules = SLD.rules(style);\n \t\t\n \t\t//do rules exist?\n \t\t\n \t\tif(rules == null || rules.length == 0){\n \t\t\treturn null;\n \t\t}\n \t\t\n \t\t\n \t\t//sort the elserules at the end\n \t\tif(rules.length > 1){\n \t\t\trules = sortRules(rules);\n \t\t}\n \t\t\n \t\t//if rule exists\n \t\tInstanceReference ir = context.getValue();\n \t\tInstanceService is = (InstanceService) PlatformUI.getWorkbench().getService(InstanceService.class);\n \t\tInstance inst = is.getInstance(ir);\n \t\t\t\n \t\tfor (int i = 0; i < rules.length; i++){\n \t\t\t\n \t\t\tif(rules[i].getFilter() != null){\t\t\t\t\t\t\n \t\t\t\t\n \t\t\t\tif(rules[i].getFilter().evaluate(inst)){\n \t\t\t\t\treturn rules[i];\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\t//if a rule exist without a filter and without being an else-filter,\n \t\t\t//the found rule applies to all types\n \t\t\telse{\n \t\t\t\tif(!rules[i].isElseFilter()){\n \t\t\t\t\treturn rules[i];\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t\n \t\t//if there is no appropriate rule, check if there is an else-rule\n \t\tfor (int i = 0; i < rules.length; i++){\n \t\t\tif(rules[i].isElseFilter()){\n \t\t\t\treturn rules[i];\n \t\t\t}\n \t\t}\n \t\t\n \t \n \t\t//return null if no rule was found\n \t\treturn null;\n \t\n \t}", "Rule getRule();", "java.util.List<? extends com.appscode.api.kubernetes.v1beta2.RuleOrBuilder> \n getRulesOrBuilderList();", "String getRules();", "@Override\n public ResponseEntity<List<Rule>> getRules() {\n\n String apiKeyId = (String) servletRequest.getAttribute(\"Application\");\n Optional<List<RuleEntity>> ruleEntities = ruleRepository.findByApiKeyEntityValue(apiKeyId);\n List<Rule> rules = new ArrayList<>();\n\n if (ruleEntities.isPresent()) {\n for (RuleEntity ruleEntity : ruleEntities.get()) {\n rules.add(toRule(ruleEntity));\n }\n }\n\n return ResponseEntity.ok(rules);\n }", "public String getRules() { \n\t\treturn getRulesElement().getValue();\n\t}", "public com.walgreens.rxit.ch.cda.StrucDocTable.Rules.Enum getRules()\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(RULES$26);\n if (target == null)\n {\n return null;\n }\n return (com.walgreens.rxit.ch.cda.StrucDocTable.Rules.Enum)target.getEnumValue();\n }\n }", "protected TravelRouteFacade getTravelRouteFacade()\n\t{\n\t\treturn travelRouteFacade;\n\t}", "java.util.List<com.google.privacy.dlp.v2.CustomInfoType.DetectionRule> getDetectionRulesList();", "public Travel getTravel() {\n return travel;\n }", "public TraversalStrategyFactory getInstance() {\n\t\treturn instance;\n\t}", "private GxyService getGxyService() {\r\n\t\tthis.visitNo = 0;\r\n\t\tfor (int i = 0; i < this.visitTime.length; i++) {\r\n\t\t\tif (visitTime[i] != null) {\r\n\t\t\t\tthis.visitNo = i;\r\n\t\t\t}\r\n\t\t}\r\n\t\tGxyService gxyService = new GxyService();\r\n\r\n\t\tdoctors[visitNo] = new Doctor();\r\n\t\tdoctors[visitNo].setDoctorId(this.doctorId[visitNo]);\r\n\t\tgxyService.setId(System.nanoTime());\r\n\t\tgxyService.setDoctor(doctors[visitNo]);\r\n\t\tBp[visitNo] = Bp[visitNo] & this.drugReaction[visitNo];\r\n\t\tgxyService.setIf_BpOK(this.Bp[visitNo]);\r\n\t\t// gxyService.setOtherDeal(otherDeal);\r\n\t\tgxyService.setServiceNumberInYear(visitNo + 1);\r\n\t\tgxyService.setServiceTime(this.visitTime[visitNo]);\r\n\t\treturn gxyService;\r\n\t}", "public static Rules instance() throws ViatraQueryException {\n if (INSTANCE == null) {\n \tINSTANCE = new Rules();\n }\n return INSTANCE;\n }", "List<Travel> getAllTravel();", "com.appscode.api.kubernetes.v1beta2.Rule getRules(int index);", "@GET(\"pushrules/\")\n Call<PushRulesResponse> getAllRules();", "public RouteStopManager getRouteStopManager() {\n\t\tif (routeStopManager == null) {\n\t\t\tIRouteStopDAO routeStopDAO = new RouteStopDAOSqlite(dbHelper);\n\t\t\trouteStopManager = new RouteStopManager(routeStopDAO);\n\t\t\trouteStopManager.setManagerHolder(this);\n\t\t}\n\t\treturn routeStopManager;\n\t}", "public List<ServiceNode> getRelevantServices() {\n\t\treturn relevantServices;\n\t}", "public RouteTrackingCriteriaManager getCriteriaManager() {\n\t\tif (criteriaManager == null) {\n\t\t\tIRouteTrackingCriteriaDAO criteriaDAO = new RouteTrackingCriteriaDAOSqlite(dbHelper);\n\t\t\tcriteriaManager = new RouteTrackingCriteriaManager(criteriaDAO);\n\t\t\tcriteriaManager.setManagerHolder(this);\n\t\t}\n\t\treturn criteriaManager;\n\t}", "public LocationService getService()\n {\n return LocationService.this;\n }", "public interface ActivityRuleRelationService extends BaseService<ActivityRuleRelation, ActivityRuleRelationCondition> {\n\tActivityRuleRelation getInfoByRuleid(int id);\n\tList<ActivityRuleRelation> getInfoByActivityNo(int id);\n\tint deleteInfoByCondId(int id);\n}", "List<TravelDTO> getTravelByCriteria(TravelSearchCriteria dto);", "FirewallPolicyService firewallpolicy();", "public List<IPropertyValidationRule> getRules() {\n\t\treturn _rules;\n\t}", "@TestApi\n @NonNull\n public RuleSet getCurrentRuleSet() {\n try {\n ParceledListSlice<Rule> rules = mManager.getCurrentRules();\n String version = mManager.getCurrentRuleSetVersion();\n return new RuleSet.Builder().setVersion(version).addRules(rules.getList()).build();\n } catch (RemoteException e) {\n throw e.rethrowAsRuntimeException();\n }\n }", "public ArrayList<RuleSet> getRuleSets() {\n return ruleSets;\n }", "public Set<Class<? extends Rule<?, ?>>> getTransformationRules();", "List<T> getRuleTargets();", "List<Service> services();", "@Path(\"rules/{id}\")\n @GET\n @Produces(MediaType.APPLICATION_JSON)\n public Trigger getRule(@PathParam(\"id\") String id) {\n return ContextManager.getInstance().getRuleById(id);\n }", "public IBehaviourInferenceAlgorithm getService(){\n if(registry == null) {\n \tlogger.warning(\"BehaviourInferenceAlgorithmRegistry service unbound.\");\n \treturn null;\n }\n return registry;\n }", "LocService getService() {\n return LocService.this;\n }", "List<Travel> getTravelsToVisited(TravelsToVisitedCriteria criteria);", "List<Stop> getStops();", "List<RuleInfo> listRulesInfo() throws IOException;", "public PlaylistBusinessInterface getService() {\n\t\treturn service;\n\t}", "public static LocationServices getInstance() {\n\t\tif (instance == null) {\t\n\t\t\tinstance = new LocationServices();\n\t\t}\n\t\treturn instance;\n\t}", "public static ThreadedPmClientInstanceResolver get() {\n\t\t// synchronization :: rely on registry to return same impl\n\t\tif (instance == null) {\n\t\t\tinstance = Registry.impl(ThreadedPmClientInstanceResolver.class);\n\t\t}\n\t\treturn instance;\n\t}", "public java.lang.String GetRules() throws IOException {\r\n java.lang.String RulesString = new java.lang.String();\r\n Scanner scanner = new Scanner(new FileInputStream(RulesFile), \"UTF-8\");\r\n while (scanner.hasNextLine()) {\r\n RulesString = RulesString + scanner.nextLine() + \"\\n\";\r\n }\r\n return RulesString;\r\n }", "public static Set<RelOptRule> elasticSearchRules() {\n Set<RelOptRule> rules = Arrays.stream(ElasticsearchRules.RULES)\n .filter(RULE_PREDICATE)\n .collect(Collectors.toSet());\n rules.add(ENUMERABLE_INTERMEDIATE_PREL_CONVERTER_RULE);\n rules.add(ELASTIC_DREL_CONVERTER_RULE);\n rules.add(ElasticsearchProjectRule.INSTANCE);\n rules.add(ElasticsearchFilterRule.INSTANCE);\n return rules;\n }", "public GeoService getService() {\n return GeoService.this;\n }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public List/*WsCompileEditorSupport.ServiceSettings*/ getServices();", "Request<List<SimpleTravelProxy>> findAllSimpleTravels();", "List<WF3RulesBean> getWF3RulesBeans();", "java.util.List<? extends com.google.privacy.dlp.v2.CustomInfoType.DetectionRuleOrBuilder>\n getDetectionRulesOrBuilderList();", "public List<IRuleParser> getRuleParsers() {\n return ruleParsers;\n }", "public java.util.List<org.landxml.schema.landXML11.TrafficControlDocument.TrafficControl> getTrafficControlList()\r\n {\r\n final class TrafficControlList extends java.util.AbstractList<org.landxml.schema.landXML11.TrafficControlDocument.TrafficControl>\r\n {\r\n public org.landxml.schema.landXML11.TrafficControlDocument.TrafficControl get(int i)\r\n { return IntersectionImpl.this.getTrafficControlArray(i); }\r\n \r\n public org.landxml.schema.landXML11.TrafficControlDocument.TrafficControl set(int i, org.landxml.schema.landXML11.TrafficControlDocument.TrafficControl o)\r\n {\r\n org.landxml.schema.landXML11.TrafficControlDocument.TrafficControl old = IntersectionImpl.this.getTrafficControlArray(i);\r\n IntersectionImpl.this.setTrafficControlArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.landxml.schema.landXML11.TrafficControlDocument.TrafficControl o)\r\n { IntersectionImpl.this.insertNewTrafficControl(i).set(o); }\r\n \r\n public org.landxml.schema.landXML11.TrafficControlDocument.TrafficControl remove(int i)\r\n {\r\n org.landxml.schema.landXML11.TrafficControlDocument.TrafficControl old = IntersectionImpl.this.getTrafficControlArray(i);\r\n IntersectionImpl.this.removeTrafficControl(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return IntersectionImpl.this.sizeOfTrafficControlArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new TrafficControlList();\r\n }\r\n }", "public static AngleCalculatorService getInstance() {\n\t\tif (instance == null) {\n\t\t\tinstance = new AngleCalculatorService();\n\t\t}\n\n\t\treturn instance;\n\t}", "public BoundCodeDt<SlicingRulesEnum> getRulesElement() { \n\t\tif (myRules == null) {\n\t\t\tmyRules = new BoundCodeDt<SlicingRulesEnum>(SlicingRulesEnum.VALUESET_BINDER);\n\t\t}\n\t\treturn myRules;\n\t}", "public abstract List<EventRule> getEventRulesOfSentence();", "public CountriesApiService getApiService() {\n if (apiService == null) {\n synchronized (RestClient.class) {\n if (apiService == null)\n new RestClient();\n }\n }\n return apiService;\n }", "public List getRuleFinders() {\n if (ruleFinders == null) {\n // when processing a plugin declaration, attempts are made to\n // find custom rules in the order in which the Finder objects\n // are added below. However this list can be modified\n ruleFinders = new LinkedList();\n ruleFinders.add(new FinderFromFile());\n ruleFinders.add(new FinderFromResource());\n ruleFinders.add(new FinderFromClass());\n ruleFinders.add(new FinderFromMethod());\n ruleFinders.add(new FinderFromDfltMethod());\n ruleFinders.add(new FinderFromDfltClass());\n ruleFinders.add(new FinderFromDfltResource());\n ruleFinders.add(new FinderFromDfltResource(\".xml\"));\n ruleFinders.add(new FinderSetProperties());\n }\n return ruleFinders;\n }", "public interface TravelRestrictionService\n{\n\n\t/**\n\t * Returns the AddToCartCriteriaType for the given productModel. It retrieves the offerGroup of the product and\n\t * returns its addToCartCriteria restriction if present, the default criteria otherwise.\n\t *\n\t * @param productModel\n\t * \t\tthe product model\n\t * @return the AddToCartCriteriaType for the given product\n\t */\n\tAddToCartCriteriaType getAddToCartCriteria(ProductModel productModel);\n\n}", "public List<JRule> getAllRules(final String userToken) {\n System.out.println(\"Invoking getAllRules...\");\n logger.info(\"Invoking getAllRules...\");\n final JCredentials _getAllRules_credentials = new JCredentials();\n _getAllRules_credentials.setUserToken(userToken);\n final Holder<List<JRule>> _getAllRules_rules = new Holder<List<JRule>>();\n final JWebResult _getAllRules__return = port\n .getAllRules(_getAllRules_credentials, _getAllRules_rules);\n System.out.println(\"getAllRules.result=\" + _getAllRules__return);\n System.out.println(\"getAllRules._getAllRules_rules=\"\n + _getAllRules_rules.value);\n return _getAllRules_rules.value;\n }", "public IRule getRule()\n\t{\n\t\treturn this.rule;\n\t}", "public ParserRule getRule() { return rule; }", "public ParserRule getRule() { return rule; }", "public ParserRule getRule() { return rule; }", "public ParserRule getRule() { return rule; }", "public ParserRule getRule() { return rule; }", "public ParserRule getRule() { return rule; }", "public ParserRule getRule() { return rule; }", "public ParserRule getRule() { return rule; }", "public ParserRule getRule() { return rule; }", "public ParserRule getRule() { return rule; }", "public ParserRule getRule() { return rule; }", "public ParserRule getRule() { return rule; }" ]
[ "0.6109704", "0.59684515", "0.57032615", "0.56738174", "0.5554467", "0.5540429", "0.5522888", "0.5513994", "0.54754955", "0.5438232", "0.5400101", "0.5399919", "0.5344522", "0.5284211", "0.52825356", "0.52659523", "0.52583975", "0.5224783", "0.51791555", "0.5163884", "0.51432604", "0.51196", "0.5058213", "0.50313985", "0.49945456", "0.4993694", "0.4992669", "0.49800625", "0.49653018", "0.49434802", "0.4930089", "0.49233893", "0.49154893", "0.49148843", "0.489201", "0.48637763", "0.48321715", "0.48198652", "0.4818258", "0.48017228", "0.47802466", "0.47778195", "0.47733334", "0.4770381", "0.476965", "0.4767112", "0.4758882", "0.47504786", "0.47370055", "0.47361776", "0.47332996", "0.47028404", "0.46821177", "0.46798608", "0.46657443", "0.46460745", "0.46419314", "0.46385905", "0.46206743", "0.4615623", "0.46016997", "0.46016997", "0.46016997", "0.46016997", "0.46016997", "0.46016997", "0.46016997", "0.46016997", "0.46016997", "0.46016997", "0.46016997", "0.46016997", "0.46016997", "0.46016997", "0.45694205", "0.45638108", "0.4557968", "0.45552093", "0.45550212", "0.4549503", "0.45453182", "0.45447397", "0.45352054", "0.45344308", "0.4528564", "0.4520621", "0.4519733", "0.45145783", "0.45099914", "0.45099914", "0.45099914", "0.45099914", "0.45099914", "0.45099914", "0.45099914", "0.45099914", "0.45099914", "0.45099914", "0.45099914", "0.45099914" ]
0.824247
0
Sets travel rules service.
@Required public void setTravelRulesService(final TravelRulesService travelRulesService) { this.travelRulesService = travelRulesService; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected TravelRulesService getTravelRulesService()\n\t{\n\t\treturn travelRulesService;\n\t}", "private void setService(Service service) {\n this.service = service;\n }", "@Required\n public void setRules(Set<Rule> rules)\n {\n this.rules = new TreeSet<Rule>(new RuleComparator());\n this.rules.addAll(rules);\n }", "public void setRules(List<T> rules) {\n\t\tthis.rules = rules;\n\t}", "public void setService(String service) {\n this.service = service;\n }", "public final void setService(java.lang.String service)\r\n\t{\r\n\t\tsetService(getContext(), service);\r\n\t}", "public void setService(String service) {\n this.service = service;\n }", "public void setService(String service) {\n this.service = service;\n }", "public void setService(String service) {\n this.service = service;\n }", "void setRule(Rule rule);", "public void setRules(ArrayList<Rule> rules) {\n\t\tthis.rules = rules;\n\t}", "public abstract void setServiceType(String serviceType);", "protected void setSubdivisionsService(SubdivisionsService service) {\n\t\tthis.subdivisionsService = service;\n\t}", "protected void setWorkflowService(WorkflowService service) {\n this.workflowService = service;\n }", "public void setServices(List<AService> services) {\n this.services = services;\n }", "public void setService(CentralSystemServiceFactory service) {\n\t\tthis.service = service;\n\t}", "public void setPreferncesService(IPreferencesService preferncesService) {\n\n this.preferncesService = preferncesService;\n }", "public void setTravel(Travel travel) {\n this.travel = travel;\n }", "@Override\n public void setRules(List rules) {\n this.rules = rules;\n if (schemaGraph != null) {\n // The change of rules invalidates the existing precomputed schema graph\n // This might be recoverable but for now simply flag the error and let the\n // user reorder their code to set the rules before doing a bind!\n throw new ReasonerException(\"Cannot change the rule set for a bound rule reasoner.\\nSet the rules before calling bindSchema\");\n }\n }", "public void setService (String service) {\n\t this.service = service;\n\t}", "public void setGameService(GameService gameService) {\n this.gameService = gameService;\n }", "public void setGameService(GameService gameService) {\n this.gameService = gameService;\n }", "public void setService(Text newService) {\n service = newService;\n }", "protected void setEmployeeSalaryService(EmployeeSalaryService service) {\n this.employeeSalaryService = service;\n }", "public void setService(PlaylistBusinessInterface service) {\n\t\tthis.service = service;\n\t}", "public abstract void setService(OntologyGenerationComponentServiceInterface<T,R> service);", "public void setServices(List<ServiceInfo> services) {\n\t\tif (services == null || services.size() == 0) {\n\t\t\tthrow new IllegalArgumentException(\"services is empty!\");\n\t\t}\n\t\tthis.services = services;\n//\t\tserviceReset = true;\n\t}", "public void setLookupService(LookupService lookupService) {\n this.lookupService = lookupService;\n }", "public interface RulesManager extends RulesService {\n\n boolean applyPortForwardingRules(long ipAddressId, boolean continueOnError, Account caller);\n\n boolean applyStaticNatRulesForIp(long sourceIpId, boolean continueOnError, Account caller, boolean forRevoke);\n\n boolean applyPortForwardingRulesForNetwork(long networkId, boolean continueOnError, Account caller);\n\n boolean applyStaticNatRulesForNetwork(long networkId, boolean continueOnError, Account caller);\n\n void checkIpAndUserVm(IpAddress ipAddress, UserVm userVm, Account caller);\n\n void checkRuleAndUserVm(FirewallRule rule, UserVm userVm, Account caller);\n\n boolean revokeAllPFAndStaticNatRulesForIp(long ipId, long userId, Account caller) throws ResourceUnavailableException;\n\n boolean revokeAllPFStaticNatRulesForNetwork(long networkId, long userId, Account caller) throws ResourceUnavailableException;\n\n List<? extends FirewallRule> listFirewallRulesByIp(long ipAddressId);\n\n /**\n * Returns a list of port forwarding rules that are ready for application\n * to the network elements for this ip.\n * \n * @param ip\n * @return List of PortForwardingRule\n */\n List<? extends PortForwardingRule> listPortForwardingRulesForApplication(long ipId);\n\n List<? extends PortForwardingRule> gatherPortForwardingRulesForApplication(List<? extends IpAddress> addrs);\n\n boolean revokePortForwardingRulesForVm(long vmId);\n\n boolean revokeStaticNatRulesForVm(long vmId);\n\n FirewallRule[] reservePorts(IpAddress ip, String protocol, FirewallRule.Purpose purpose, boolean openFirewall, Account caller, int... ports) throws NetworkRuleConflictException;\n\n boolean releasePorts(long ipId, String protocol, FirewallRule.Purpose purpose, int... ports);\n\n List<PortForwardingRuleVO> listByNetworkId(long networkId);\n\n boolean applyStaticNatForIp(long sourceIpId, boolean continueOnError, Account caller, boolean forRevoke);\n\n boolean applyStaticNatsForNetwork(long networkId, boolean continueOnError, Account caller);\n\n void getSystemIpAndEnableStaticNatForVm(UserVm vm, boolean getNewIp) throws InsufficientAddressCapacityException;\n\n boolean disableStaticNat(long ipAddressId, Account caller, long callerUserId, boolean releaseIpIfElastic) throws ResourceUnavailableException;\n\n}", "void setClassOfService(ClassOfService serviceClass);", "public void setSrvSesionesService(es.pode.dri.negocio.servicios.Sesion.SrvSesionesService srvSesionesService)\r\n\t {\r\n\t this.srvSesionesService = srvSesionesService;\r\n\t }", "public final void setReservationService(\n final IConferenceReservationService reservationService) {\n this.reservationService = reservationService;\n }", "void setTrafficControl(org.landxml.schema.landXML11.TrafficControlDocument.TrafficControl trafficControl);", "@Reference(\n name = \"user.realmservice.default\",\n service = org.wso2.carbon.user.core.service.RealmService.class,\n cardinality = ReferenceCardinality.MANDATORY,\n policy = ReferencePolicy.DYNAMIC,\n unbind = \"unsetRealmService\")\n protected void setRealmService(RealmService realmService) {\n DataHolder.getInstance().setRealmService(realmService);\n }", "public ServiceType setActualServiceType(ServiceType service){\r\n\t\tthis.serviceTypeInUse = service;\r\n\t\treturn this.serviceTypeInUse;\r\n\t}", "public final void setFoundService(java.lang.Boolean foundservice)\r\n\t{\r\n\t\tsetFoundService(getContext(), foundservice);\r\n\t}", "public abstract void setYjaService(AbsYJACommonService yjaService) throws Exception;", "public void setOptionsService(OptionsService optionsService) {\n this.optionsService = optionsService;\n }", "FirewallRuleService firewallrule();", "public void setSpaceService(final ISpaceService spaceService) {\r\n this.spaceService = spaceService;\r\n }", "default void setEventService(EventService service) {\n bind(service);\n }", "public void setService(Service value) {\n\t\tthis._service = value;\n\t}", "public abstract void setServiceName(String serviceName);", "public void setNodeService(final NodeService nodeService)\n {\n this.nodeService = nodeService;\n }", "public void setServiceContext(org.apache.axis2.context.xsd.ServiceContext param){\n localServiceContextTracker = true;\n \n this.localServiceContext=param;\n \n\n }", "public void setNodeService(NodeService nodeService)\n {\n this.nodeService = nodeService;\n }", "public void setRuleAgentProperties(KeyValuePairSet kvps) {\r\n ruleAgentProperties = kvps;\r\n }", "public void setDateTimeService(DateTimeService dateTimeService) {\r\n this.dateTimeService = dateTimeService;\r\n }", "public void setDateTimeService(DateTimeService dateTimeService) {\r\n this.dateTimeService = dateTimeService;\r\n }", "public abstract void setEventRulesOfSentence(List<EventRule> eventRulesOfSentence);", "public void setRules(com.walgreens.rxit.ch.cda.StrucDocTable.Rules.Enum rules)\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(RULES$26);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(RULES$26);\n }\n target.setEnumValue(rules);\n }\n }", "abstract public void setServiceInterval(int serviceIntervalDays);", "protected void setInspectionCategoryMappingService(InspectionCategoryMappingService service) {\n\t\tthis.inspectionCategoryMappingService = service;\n\t}", "public void setDateTimeService(DateTimeService dateTimeService) {\n this.dateTimeService = dateTimeService;\n }", "@Required\n\tpublic void setTargetService(TargetService service) {\n\t\tthis.targetService = service;\n\t}", "public void setOnLocationServiceListener (LocationServiceListener listener)\n {\n this.mListeners.add(listener);\n }", "public void xsetRules(com.walgreens.rxit.ch.cda.StrucDocTable.Rules rules)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.StrucDocTable.Rules target = null;\n target = (com.walgreens.rxit.ch.cda.StrucDocTable.Rules)get_store().find_attribute_user(RULES$26);\n if (target == null)\n {\n target = (com.walgreens.rxit.ch.cda.StrucDocTable.Rules)get_store().add_attribute_user(RULES$26);\n }\n target.set(rules);\n }\n }", "protected void setPersonlanguagecommunicationchannelService(PersonlanguagecommunicationchannelService service) {\n\t\tthis.personlanguagecommunicationchannelService = service;\n\t}", "protected void setAuthUserService(AuthUserService service) {\n this.authUserService = service;\n }", "private void setWsdlValues(Map<String, String> wsdlValues, BaseVO<Long> service) throws BusinessException{\n\t\tif(!wsdlValues.isEmpty()){\n\t\t\tif(service instanceof ServiceVO){\n\t\t\t\tServiceVO srv = (ServiceVO)service;\n\t\t\t\t//set name space value\n\t\t\t\tsrv.setNameSpace(wsdlValues.get(ServiceEngineConstants.KEY_SE_WS_NAMESPACE_MAP));\n\t\t\t\t//set port type value\n\t\t\t\tsrv.setPortTypeName(wsdlValues.get(ServiceEngineConstants.KEY_SE_PORT_TYPE_NAME_MAP));\n\t\t\t\t//set end point value\n\t\t\t\tsrv.setEndPoint(wsdlValues.get(ServiceEngineConstants.KEY_SE_END_POINT_MAP));\n\t\t\t\t//set soap http binding type\n\t\t\t\tsrv.setSoapHttpBindingType(wsdlValues.get(ServiceEngineConstants.KEY_SE_SOAP_HTTP_BINDING_MAP));\n\t\t\t\t//set root request header\n\t\t\t\tsrv.setRootRequest(wsdlValues.get(ServiceEngineConstants.KEY_SE_REQUEST_ROOT_NAME_MAP));\n\t\t\t}else if(service instanceof ComponentServiceVO){\n\t\t\t\tComponentServiceVO compSrv = (ComponentServiceVO)service;\n\t\t\t\t//set name space value\n\t\t\t\tcompSrv.setNameSpace(wsdlValues.get(ServiceEngineConstants.KEY_SE_NAMESPACE_MAP));\n\t\t\t\t//set port type value\n\t\t\t\tcompSrv.setPortTypeName(wsdlValues.get(ServiceEngineConstants.KEY_SE_PORT_TYPE_NAME_MAP));\n\t\t\t\t//set end point value\n\t\t\t\tcompSrv.setEndPoint(wsdlValues.get(ServiceEngineConstants.KEY_SE_END_POINT_MAP));\n\t\t\t\t//set soap http binding type\n\t\t\t\tcompSrv.setSoapHttpBindingType(wsdlValues.get(ServiceEngineConstants.KEY_SE_SOAP_HTTP_BINDING_MAP));\n\t\t\t\t//set root request header\n\t\t\t\tcompSrv.setRootRequest(wsdlValues.get(ServiceEngineConstants.KEY_SE_REQUEST_ROOT_NAME_MAP));\n\t\t\t}else{\n\t\t\t\tthrow ServiceEngineGeneralError.UNKOW_ERROR;\n\t\t\t}\n\t\t}else{\n\t\t\tlogger.info(\"El Mapa de valores del WSDL viene vacío, no se asign\\u00F3 ningun valor\");\n\t\t}\n\t}", "public void setPushRulesManager(BingRulesManager bingRulesManager) {\n if (isAlive()) {\n mBingRulesManager = bingRulesManager;\n\n mBingRulesManager.loadRules(new SimpleApiCallback<Void>() {\n @Override\n public void onSuccess(Void info) {\n onBingRulesUpdate();\n }\n });\n }\n }", "protected static void setServiceLocation(URI serviceLocation) {\n Program.serviceLocation = serviceLocation;\n }", "@Override\n public void setDateTimeService(DateTimeService dateTimeService) {\n this.dateTimeService = dateTimeService;\n }", "protected void setRolePermissionService(RolePermissionService service) {\n\t\tthis.rolePermissionService = service;\n\t}", "public void setServiceTransports(String serviceId, List<String> transportProtocols)\n throws SecurityConfigException, AxisFault {\n\n AxisService axisService = axisConfig.getServiceForActivation(serviceId);\n\n if (axisService == null) {\n throw new SecurityConfigException(\"nullService\");\n }\n\n List<String> transports = new ArrayList<>();\n for (int i = 0; i < transportProtocols.size(); i++) {\n transports.add(transportProtocols.get(i));\n }\n axisService.setExposedTransports(transports);\n\n if (log.isDebugEnabled()) {\n log.debug(\"Successfully add selected transport bindings to service \" + serviceId);\n }\n }", "private void setServiceDTO (String service[], boolean isJai) {\n\n\t\tString companyName = service[0];\n\n\t\tString depTime[] = service[1].split (\":\");\n\n\t\tLocalTime departureTime = LocalTime.of (Integer.parseInt (depTime[0]), Integer.parseInt (depTime[1]));\n\n\t\tString arrTime[] = service[2].split (\":\");\n\n\t\tLocalTime arrivalTime = LocalTime.of (Integer.parseInt (arrTime[0]), Integer.parseInt (arrTime[1]));\n\n\t\tlong netDuration = arrivalTime.toSecondOfDay () - departureTime.toSecondOfDay ();\n\n\t\tif (netDuration > SECONDS_IN_AN_HOUR)\n\t\t\treturn;\n\n\t\tTreeSet <BusService> busServiceList;\n\n\t\tif (isJai) {\n\t\t\tbusServiceList = jaiBusServiceList == null ? jaiBusServiceList = new TreeSet<> () : jaiBusServiceList;\n\t\t} else {\n\t\t\tbusServiceList = veeruBusServiceList == null ? veeruBusServiceList = new TreeSet<> () : veeruBusServiceList;\n\t\t}\n\n\t\tBusService busService = new BusService ();\n\n\t\tbusService.setCompanyName (companyName);\n\t\tbusService.setDepartureTime (departureTime);\n\t\tbusService.setArrivalTime (arrivalTime);\n\n\t\tbusServiceList.add (busService);\n\t}", "public CreatePricingRuleRequest withService(String service) {\n setService(service);\n return this;\n }", "public void setAttributeService(AttributeService attributeService) {\n this.attributeService = attributeService;\n }", "public UpdatePricingRuleResult withService(String service) {\n setService(service);\n return this;\n }", "public void setRuleSelector(String ruleSel)\n {\n this.ruleSelector = ruleSel;\n }", "public void setServiceName(java.lang.String param){\n localServiceNameTracker = true;\n \n this.localServiceName=param;\n \n\n }", "protected void configureNestedRouter() throws MuleException\n {\n if (service.getNestedRouter() != null)\n {\n Map bindings = new HashMap();\n for (Iterator it = service.getNestedRouter().getRouters().iterator(); it.hasNext();)\n {\n NestedRouter nestedRouter = (NestedRouter) it.next();\n Object proxy = bindings.get(nestedRouter.getInterface());\n\n if (proxy == null)\n {\n // Create a proxy that implements this interface\n // and just routes away using a mule client\n // ( using the high level Mule client is probably\n // a bit agricultural but this is just POC stuff )\n proxy = nestedRouter.createProxy(pojoService);\n bindings.put(nestedRouter.getInterface(), proxy);\n\n //Now lets set the proxy on the Service object\n Method setterMethod;\n\n\n List methods =\n ClassUtils.getSatisfiableMethods(pojoService.getClass(),\n new Class[]{nestedRouter.getInterface()}, true, false, null);\n if (methods.size() == 1)\n {\n setterMethod = (Method) methods.get(0);\n }\n else if (methods.size() > 1)\n {\n throw new TooManySatisfiableMethodsException(\n pojoService.getClass(), new Class[]{nestedRouter.getInterface()});\n }\n else\n {\n throw new NoSatisfiableMethodsException(\n pojoService.getClass(), new Class[]{nestedRouter.getInterface()});\n }\n\n try\n {\n setterMethod.invoke(pojoService, new Object[]{proxy});\n }\n catch (Exception e)\n {\n throw new InitialisationException(\n CoreMessages.failedToSetProxyOnService(nestedRouter,\n pojoService.getClass()), e, this);\n }\n }\n else\n {\n NestedInvocationHandler handler = (NestedInvocationHandler) Proxy.getInvocationHandler(proxy);\n handler.addRouterForInterface(nestedRouter);\n }\n }\n }\n }", "public final void setService(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String service)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.Service.toString(), service);\r\n\t}", "public void setAccountService(AccountService accountService){\n this.accountService = accountService;\n }", "public void setNodeService(NodeService nodeService) {\n\t\tthis.nodeService = nodeService;\n\t}", "public void setReferenceService(ReferenceService referenceService){\n\t\tthis.referenceService = referenceService;\n\t}", "public void setServiceDAO(ServiceDAO serviceDAO) {\n\t\tthis.serviceDAO = serviceDAO;\n\t}", "protected void setProjectGisrecordsService(ProjectGisrecordsService service) {\n\t\tthis.projectGisrecordsService = service;\n\t}", "public void setSeriesService(SeriesService seriesService) {\n this.seriesService = seriesService;\n }", "public void setUseGlobalService(boolean flag);", "void setServiceConfiguration(AGServiceDescription service,\n AGParameter[] config)\n throws IOException, SoapException;", "public void setYawlService(YAWLServiceReference yawlService) {\n if (yawlService != null) {\n _yawlServices.put(yawlService.getURI(), yawlService);\n }\n }", "@Override\n public void update(Routing.Rules rules) {\n rules\n .get(\"/\", this::getAllMovements)\n .get(\"/balance/{customer}\", this::getCustomerBalance)\n .get(\"/orders/{customer}\", this::getOrdersProxy)\n .get(\"/shippinginfo/{orderNo}\", this::getShippingInfo)\n .get(\"/login\", this::loginSTTC)\n .post(\"/create\", this::createMovement)\n .post(\"/compensate\", this::compensateMovement)\n .get(\"/{customer}\", this::getCustomerMovements)\n ;\n }", "public final void setMessagesService(final ConferenceCallMessagesService messagesService) {\n this.messagesService = messagesService;\n }", "public final void setIncomingRequest_Service(slm.proxies.Service incomingrequest_service)\r\n\t{\r\n\t\tsetIncomingRequest_Service(getContext(), incomingrequest_service);\r\n\t}", "public Event setService(String service) {\n this.service = service;\n return this;\n }", "public abstract T addService(ServerServiceDefinition service);", "public void addRules(ContextRule value) {\n value.getClass();\n ensureRulesIsMutable();\n this.rules_.add(value);\n }", "protected void setServiceRegistry(ServiceRegistry serviceRegistry) {\n this.serviceRegistry = serviceRegistry;\n }", "protected void setServiceRegistry(ServiceRegistry serviceRegistry) {\n this.serviceRegistry = serviceRegistry;\n }", "public Builder setService(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n service_ = value;\n onChanged();\n return this;\n }", "public Builder setService(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n service_ = value;\n onChanged();\n return this;\n }", "public Builder setService(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n service_ = value;\n onChanged();\n return this;\n }", "public abstract void setRules (CellProfile rules);", "public void setSecurityService(SecurityService securityService) {\n this.securityService = securityService;\n }", "public void setSecurityService(SecurityService securityService) {\n this.securityService = securityService;\n }", "public void setSecurityService(SecurityService securityService) {\n this.securityService = securityService;\n }", "public void setFooService(\n com.sohlman.liferay.foobar.service.FooService fooService) {\n this.fooService = fooService;\n }", "public void setUserService(UserService userService) {\n this.userService = userService;\n }", "public static void createMappingRules(String serviceId) throws URISyntaxException {\n String metricId = \"\";\n Metrics metrics = getThreeScaleApiService().listMetric(serviceId);\n Metric metric = metrics.getMetric();\n logger.info(\"metricId name: \" + metric.getName());\n if (metric.getName().equalsIgnoreCase(\"Hits\")) {\n metricId = String.valueOf(metric.getId());\n }\n\n logger.info(\"metricId : \" + metricId);\n\n MappingRulesParameters mp = new MappingRulesParameters();\n mp.setPattern(\"/\");\n mp.setDelta(\"1\");\n mp.setMetric_id(metricId);\n mp.setHttp_method(\"POST\");\n\n MappingRule rule = getThreeScaleApiService().createMappingRules(serviceId, mp);\n logger.info(\"creating mapping result : \" + rule.getHttpMethod());\n\n //now create mapping rule for PUT under metric \"hit\"\n mp.setHttp_method(\"PUT\");\n rule = getThreeScaleApiService().createMappingRules(serviceId, mp);\n logger.info(\"creating mapping result : \" + rule.getHttpMethod());\n\n //now create mapping rule for PATCH under metric \"hit\"\n mp.setHttp_method(\"PATCH\");\n rule = getThreeScaleApiService().createMappingRules(serviceId, mp);\n logger.info(\"creating mapping result : \" + rule.getHttpMethod());\n\n //now create mapping rule for DELETE under metric \"hit\"\n mp.setHttp_method(\"DELETE\");\n rule = getThreeScaleApiService().createMappingRules(serviceId, mp);\n logger.info(\"creating mapping result : \" + rule.getHttpMethod());\n\n }" ]
[ "0.68243146", "0.5738089", "0.5608989", "0.55810434", "0.5462927", "0.54063773", "0.5394017", "0.5394017", "0.5394017", "0.5375876", "0.5371444", "0.53569746", "0.53470063", "0.53193516", "0.53146", "0.52959347", "0.5279778", "0.52694184", "0.52633846", "0.52522707", "0.5214965", "0.5214965", "0.5157532", "0.5145299", "0.51243645", "0.5115083", "0.509902", "0.5066556", "0.5065476", "0.5058359", "0.5035896", "0.50304717", "0.50302345", "0.50234306", "0.50105345", "0.5003927", "0.49455398", "0.49325877", "0.49266532", "0.49242178", "0.49230903", "0.48974904", "0.48736936", "0.4869032", "0.4861503", "0.4829264", "0.4827449", "0.48205957", "0.48205957", "0.48149413", "0.48077768", "0.48055765", "0.48018864", "0.47931978", "0.47870156", "0.47796932", "0.4769034", "0.47636342", "0.4760909", "0.4755946", "0.47531143", "0.47517452", "0.4740381", "0.47203797", "0.47120342", "0.47113663", "0.47091666", "0.47016263", "0.470007", "0.46907833", "0.46876308", "0.46819553", "0.4676604", "0.46607357", "0.4656187", "0.46440428", "0.46417716", "0.46305358", "0.4626799", "0.46068966", "0.46005493", "0.4597255", "0.45946968", "0.45895857", "0.45783046", "0.45734853", "0.45730084", "0.45622855", "0.45605788", "0.45605788", "0.45587224", "0.45587224", "0.45587224", "0.4553063", "0.45492017", "0.45492017", "0.45492017", "0.4524923", "0.45229322", "0.45212975" ]
0.7749168
0
TODO Autogenerated method stub if statement!! declare price and if price is higher than expected price= dont buy it
public static void main(String[] args) { double shoePrice = 220.99; double allowance = 200.00; if (shoePrice > allowance) { System.out.println("We cant buy it :("); } else { System.out.println("We can buy it :D"); } //declare boolean variable its raining and if it is true your program should say take an umbrella boolean isRaining = true; if (isRaining) { System.out.println("stay home and code"); }else { System.out.println("take a walk and listen to java"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPrice(double price){\r\n Random chance = new Random();\r\n int crashChance = chance.nextInt(100);\r\n double droppedPrice = price * ThreadLocalRandom.current().nextDouble(0.6, 0.8);\r\n if (crashChance > 95) {\r\n setPlusMinus(\"Down\");\r\n System.out.println(\"This stock has crashed.\");\r\n super.setPrice(price - droppedPrice);\r\n } else if(crashChance < 5){\r\n setPlusMinus(\"Up\");\r\n System.out.println(\"This stock has surged.\");\r\n super.setPrice(price + droppedPrice);\r\n } else {\r\n super.setPrice(price);\r\n }\r\n }", "@Test(expected=MissingPrice.class)\n\tpublic void testNotEnoughBought() {\n\t\tpos.setPricing(\"A\", 4, 7);\n\n\t\tpos.scan(\"A\");\n\t\tpos.total();\n\t}", "public void decreasePrice() {\n //price halved\n //is it okay if the price becomes 0?\n itemToSell.setBuyPrice(itemToSell.getBuyPrice() / 2);\n }", "@Override \n\tpublic TradeAction tick(double price) {\n\t\tma10before=average(priceQ10);\n\t\t\n\t\tif (priceQ10.size()<10)\n\t\t{\n\t\t\tpriceQ10.offer(price);\n\t\t}\n\t\tif(priceQ10.size()==10)\n\t\t{\n\t\t\tpriceQ10.poll();\n\t\t\tpriceQ10.offer(price);\t\t\n\t\t}\n\t\t\n\t\t ma10after=average(priceQ10);\n\t\t \n\t\t// 60 days moving average\n\t\tma60before=average(priceQ60);\n\t\tif (priceQ60.size()<60)\n\t\t{\n\t\t\tpriceQ60.offer(price);\n\t\t}\n\t\tif(priceQ60.size()==60)\n\t\t{\n\t\t\tpriceQ60.poll();\n\t\t\tpriceQ60.offer(price);\t\t\n\t\t}\n\t\tma60after=average(priceQ60);\n\t\t\t\n\t\t//buy when its 10 day moving average goes above the 60 day moving average\n\t\tif((ma10before < ma60before) & (ma10after > ma60after))\n\t\t{\n\t\t\tprofit = profit - price;\n\t\t\t//System.out.println(\"buy\");\n\t\t\t//System.out.println(\"profit is\");\n\t\t\t//System.out.println(profit);\n\t\t\tif(mark==1){\n\t\t\t\tmark=-1;\n\t\t\t\treturn TradeAction.BUY;\n\t\t\t}\n\t\t\telse \n\t\t\t\treturn TradeAction.DO_NOTHING;\n\t\t\t\n\t\t}\n\t\t//buy when its 10 day moving average goes below the 60 day moving average\n\t\tif((ma10before > ma60before) & (ma10after < ma60after))\n\t\t{\n\t\t\tprofit = profit + price;\n\t\t\t//System.out.println(\"sell\");\n\t\t\t//System.out.println(\"profit is\");\n\t\t\t//System.out.println(profit);\n\t\t\tif(mark==-1){\n\t\t\t\tmark=1;\n\t\t\t\treturn TradeAction.SELL;\n\t\t\t}\n\t\t\telse \n\t\t\t\treturn TradeAction.DO_NOTHING;\n\t\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn TradeAction.DO_NOTHING;\t\t\t\n\t\t}\n\n\t}", "public void setPrice(double price) {\n this.price = price;\n if (this.price < 0) {\n this.price = 0;\n }\n }", "private boolean checkPrice(Order otherOrder) {\n\t\tif (getDirection() == Direction.ASK && otherOrder.getDirection() == Direction.BID\n\t\t\t\t&& getPrice() <= otherOrder.getPrice()) {\n\t\t\treturn true;\n\t\t}\n\t\tif (getDirection() == Direction.BID && otherOrder.getDirection() == Direction.ASK\n\t\t\t\t&& getPrice() >= otherOrder.getPrice()) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private void buy() {\n if (asset >= S_I.getPirce()) {\n Item item = S_I.buy();\n asset -= item.getPrice();\n S_I.setAsset(asset);\n } else {\n System.out.println(\"cannot afford\");\n }\n }", "public void setPrice(double price) {\n\t\tif(price > 0 )\n\t\t\tthis.price=price;\n\t}", "public double price(){\n if (basePrice() >1000){\n return basePrice() *0.95;\n }else\n return basePrice() * 0.98;\n }", "public void setBuyPrice(double buyPrice) {\n double oldPrice = this.buyPrice;\n this.buyPrice = buyPrice;\n if(oldPrice == -1) {\n originalPrice = buyPrice;\n } else {\n fluctuation += (buyPrice - oldPrice);\n }\n }", "@Test(priority=1)\n\tpublic void validateProductPagePrice()\n\t{\n\t\tAssert.assertEquals(productpage.getPrice(), ResultsPage.price);\n\t\tproceedToCheckOut();\n\t\t\n\t}", "@Test\n public void amountGreatherThanItemsPrice() {\n Coupon coupon = couponService.calculateCoupon(Arrays.asList(MLA1),PRICE_MLA1+PRICE_MLA2);\n assertEquals(1, coupon.itemsIds().size());\n assertEquals(MLA1, coupon.itemsIds().get(0));\n assertEquals(PRICE_MLA1, coupon.total());\n }", "public void setPrice(double price) {\r\n this.price = price;\r\n }", "public void setPrice(double price) {\r\n this.price = price;\r\n }", "public void setPrice(double price) {\r\n this.price = price;\r\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price)\n {\n this.price = price;\n }", "@Test\n public void notSell() {\n Game game = Game.getInstance();\n Player player = new Player(\"ED\", 4, 4, 4,\n 4, SolarSystems.GHAVI);\n game.setPlayer(player);\n game.getPlayer().getShip().getShipCargo().add(new CargoItem(2, Goods.Water));\n game.getPlayer().getShip().getShipCargo().add(new CargoItem(1, Goods.Food));\n game.getPlayer().getShip().getShipCargo().add(new CargoItem(0, Goods.Furs));\n CargoItem good = game.getPlayer().getShip().getShipCargo().get(2);\n \n int oldCredits = game.getPlayer().getCredits();\n good.getGood().sell(good.getGood(), 1);\n \n CargoItem water = game.getPlayer().getShip().getShipCargo().get(0);\n CargoItem food = game.getPlayer().getShip().getShipCargo().get(1);\n water.setQuantity(2);\n food.setQuantity(1);\n good.setQuantity(0);\n //int P = good.getGood().getPrice(1);\n int curr = game.getPlayer().getCredits();\n //boolean qn = water.getQuantity() == 2 && food.getQuantity() == 1 && good.getQuantity() == 0;\n boolean check = water.getQuantity() == 2;\n System.out.print(curr);\n assertEquals(curr, oldCredits);\n }", "@SuppressWarnings(\"FeatureEnvy\")\n @SuppressLint(\"SetTextI18n\")\n @Override\n public void sellItem(String goods, int price) {\n @SuppressWarnings(\"ChainedMethodCall\") int max = player.getInven().get(goods.toLowerCase());\n if ((max - Integer.parseInt(inputStr)) >= 0) {\n player.getInven().put(goods.toLowerCase(), player.getInven().get(goods.toLowerCase())\n -Integer.parseInt(inputStr));\n player.setCargo(player.getCargo() - Integer.parseInt(inputStr));\n player.setCredit(player.getCredit() + (Integer.parseInt(inputStr) * price));\n bay.setText(String.valueOf(player.getCargo()) + \"/\" + player.getSpaceship().getBay());\n credit.setText(String.valueOf(player.getCredit()) + \" Cr\");\n setupInverntory();\n Toast.makeText(getApplicationContext(), \"You sold \" + inputStr + \" \" + goods,\n Toast.LENGTH_LONG).show();\n } else {\n Toast.makeText(getApplicationContext(),\n \"You can not sell anymore. Check your bay.\", Toast.LENGTH_LONG).show();\n }\n }", "public void setPrice(double price)\n {\n this.price = price;\n }", "public void setPrice(Double price) {\n this.price = price;\n }", "public void setPrice(Double price) {\n this.price = price;\n }", "protected abstract boolean canHaveAsPrice(DukatAmount price);", "public void setPrice(Double price) {\r\n this.price = price;\r\n }", "public void setPrice(double price) {\r\n\t\tthis.price = price;\r\n\t}", "public void setPrice(double price) {\r\n\t\tthis.price = price;\r\n\t}", "public void priceCheck() {\n\t\tnew WLPriceCheck().execute(\"\");\n\t}", "public void setPrice(Money price) {\n this.price = price;\n }", "public void setPrice(double price) \n\t{\n\t\tthis.price = price;\n\t}", "@Test\n\tpublic void priceTest(){\n\t\tMyFoodora myFoodora = new MyFoodora();\n\t\tmyFoodora.load();\n\t\tRestaurant rest = myFoodora.getListRestaurant().get(0);\n\t\ttry{\n\t\tOrder order = new Order(myFoodora.getListCustomer().get(0), rest);\n\t\torder.AddMealToOrder(\"basic\",1); //Basic is the meal of the week\n\t\torder.getCustomer().setFidelityCard(\"lotteryfidelitycard\");\n\t\torder.getBill();\n\t\tmyFoodora.getListCourier().get(0).setAcceptProbability(1); //To be sure that the order is always accepted in the test\n\t\tmyFoodora.setCourierToOrder(order);\n\t\tmyFoodora.closeOrder(order);\n\t\tassertTrue(order.getPrice()== ((double) Math.round(0.95*(2.3+6.7+2.5) * 100))/100 ||order.getPrice()==0);}\n\t\t\n\t\tcatch(NoCourierFoundToDeliver e){\n\t\t\te.getMessage();\n\t\t}\n\t\tcatch(OrderNotCompletException e){\n\t\t\te.getMessage();\n\t\t}\n\t\tcatch(ItemDoesNotExist e){\n\t\t\te.getMessage();\n\t\t}\n\t\tcatch(FidelityCardDoesNotExistException e){\n\t\t\te.getMessage();\n\t\t}\n\t}", "public void increasePrice() {\n //price doubled\n itemToSell.setBuyPrice(itemToSell.getBuyPrice() * 2);\n }", "public int getPrice() {\n Random rng = GameState.getState().rng;\n\n int range = (int)((float)basePrice * ((float)var / 100));\n int maxPrice = basePrice + range;\n int minPrice = basePrice - range;\n\n //randomly assigns a price to each good\n int price = minPrice + rng.nextInt(range * 2);\n\n //prevents the price from exceeding the set max price or falling below the set min price\n if (price > maxPrice) {\n price = maxPrice;\n } else if (price < minPrice || price < 15) {\n price = minPrice;\n }\n\n return price;\n }", "public void setPrice(BigDecimal price) {\n this.price = price;\n }", "public void setPrice(BigDecimal price) {\n this.price = price;\n }", "public void setPrice(BigDecimal price) {\r\n this.price = price;\r\n }", "public void setPrice(BigDecimal price) {\r\n this.price = price;\r\n }", "public void setPrice(float price) {\n this.price = price;\n }", "public void setPrice(float price) {\n this.price = price;\n }", "public void setPrice(double price) {\n\t\tthis.price = price;\n\t}", "public void setPrice(double price) {\n\t\tthis.price = price;\n\t}", "public void setPrice(double price) {\n\t\tthis.price = price;\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 void doLogicBuy() {\n\t\tif (!player.isHuman) {\n\t\t\tif (player.money > estimatedFee * 1.5) //\n\t\t\t{\n\t\t\t\tint free = (int) (player.money - estimatedFee * 1.5);\n\t\t\t\tCell c = board.getCells().get(player.position);\n\t\t\t\tif (c instanceof TradeableCell) {\n\t\t\t\t\tTradeableCell tc = (TradeableCell) c;\n\t\t\t\t\tif (tc.getOwner() == null && tc.getPrice() < free) {\n\t\t\t\t\t\ttc.buy(player);\n\t\t\t\t\t\tboard.addMessage(\"Just bought\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void sell(double limitPrice, int quantity) {\n Boolean allSold = false;\n Iterator iter1 = buyOrders.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 allSold = true;\n buyOrders.put((Double)entry.getKey(),(Integer)entry.getValue()-quantity) ;\n quantity =0;\n break;\n }\n }\n }\n if(!allSold){\n if(sellOrders.containsKey(limitPrice)) sellOrders.put(limitPrice,sellOrders.get(limitPrice) + quantity);\n else sellOrders.put(limitPrice,quantity);\n }\n cleanUp();\n\n\n }", "public boolean hasPrice() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "public static int getPrice() {\n return PRICE_TO_BUY;\n }", "public void setPrice(int price) {\n this.price = (double)price;\n }", "double purchasePrice();", "public void setPrice(int price) {\r\n this.price = price;\r\n }", "public boolean priceIsValid() {\n if (bikePrice.length() != 0)\n return Double.parseDouble(bikePrice) >= MIN_BIKE_PRICE;\n\n return false;\n }", "public void setPrice(Float price) {\n this.price = price;\n }", "public void setPrice(int price) {\n this.price = price;\n }", "public void setPrice(java.math.BigDecimal price) {\n this.price = price;\n }", "public void setPrice(Float price) {\r\n this.price = price;\r\n }", "void calculate() {\n if (price <= 1000)\n price = price - (price * 2 / 100);\n else if (price > 1000 && price <= 3000)\n price = price - (price * 10 / 100);\n else\n price = price - (price * 15 / 100);\n }", "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 }", "public boolean hasPrice() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "public void setPrice(double p)\r\n\t{\r\n\t\tprice = p;\r\n\t}", "public void setPrice(Double price) {\n\t\tthis.price = price;\n\t}", "public void setPurchasePrice(double p)\n {\n this.purchasePrice = p;\n }", "public void checkAndExecute(){\n if(priceListener.getSecurityPrice() < buyPrice){\n executionService.buy(security, buyPrice, 100);\n // if the price < buyPrice then executionService.buy(buyquantity)\n }else if ( priceListener.getSecurityPrice() > sellPrice ) {\n executionService.sell(security, buyPrice, 100);\n }\n }", "public void setPrice(double p) {\n\t\tprice = p;\n\t}", "boolean hasPrice();", "boolean hasPrice();", "boolean hasPrice();", "BigDecimal getLowPrice();", "@Override\n\tpublic boolean updateShopCartMoney(double price) {\n\t\treturn false;\n\t}", "public boolean hasPrice() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "public void setPrice(float itemPrice) \n {\n price = itemPrice;\n }", "public int calcMarketPrice() {\r\n player = Context.getInstance().getPlayer();\r\n //Random r = new Random();\r\n int techLevel = player.getCurrentPlanet().getTechLevel();\r\n Event event = player.getCurrentPlanet().getEvent();\r\n Resource resource = player.getCurrentPlanet().getResource();\r\n double price = basePrice;\r\n price += (ipl * (techLevel - mtlb)) + variance;\r\n if (player.getCurrentPlanet().getTechLevel() == this.ttp) {\r\n price *= Context.TECH_PRICE_MULT;\r\n }\r\n if (event.equals(this.ie)) {\r\n price *= event.getUpMult();\r\n } else if (event.equals(this.de)) {\r\n price *= event.getDownMult();\r\n }\r\n if (resource.equals(this.cr)) {\r\n price *= resource.getDownMult();\r\n } else if (resource.equals(this.er)) {\r\n price *= resource.getUpMult();\r\n }\r\n price *= (((double) player.getTrader() / DFIFTY) + 1.0);\r\n int finalPrice = (int) price;\r\n if (player.getTrader() > 0) {\r\n double discountedPrice = price;\r\n double trader = (double) player.getTrader();\r\n discountedPrice -= (price) * (4.0 * trader / PERCENT);\r\n return (int) discountedPrice;\r\n } else {\r\n return finalPrice;\r\n }\r\n }", "public int prIce_Per_GUeSt(int NO_OF_PEOPLE){\r\n if (NO_OF_PEOPLE>50){\r\n price_per_guest=lower_price_per_guest;\r\n System.out.println(\"PER_PERSON_PRICE = \"+lower_price_per_guest);\r\n int total_price = price_per_guest* NO_OF_PEOPLE;\r\n return total_price;\r\n }\r\n else\r\n {price_per_guest=Highest_price_per_guest;\r\n int total_price = price_per_guest* NO_OF_PEOPLE;\r\n System.out.println(\"PER_PERSON_PRICE = \"+Highest_price_per_guest);\r\n return total_price;}\r\n }", "public void setPrice(final BigDecimal price) {\n this.price = price;\n }", "@Test(priority =2)\n\tpublic void validateProceedToCheckoutPagePrice()\n\t{\n\t\tAssert.assertEquals(proceedtocheckoutpage.getPrice(), ResultsPage.price);\n\t\tnavigateToCheckoutPage();\n\t}", "public TransactionResponse sell() {\r\n \t\ttry {\r\n \t\t\tTransactionResponse response = new TransactionResponse(hp);\r\n \t\t\tCalculation calc = hc.getCalculation();\r\n \t\t\tAccount acc = hc.getAccount();\r\n \t\t\tLanguageFile L = hc.getLanguageFile();\r\n \t\t\tLog log = hc.getLog();\r\n \t\t\tNotification not = hc.getNotify();\r\n \t\t\tInfoSignHandler isign = hc.getInfoSignHandler();\r\n \t\t\tString playerecon = hp.getEconomy();\r\n \t\t\tint id = hyperObject.getId();\r\n \t\t\tint data = hyperObject.getData();\r\n \t\t\tString name = hyperObject.getName();\r\n \t\t\tif (giveInventory == null) {\r\n \t\t\t\tgiveInventory = hp.getPlayer().getInventory();\r\n \t\t\t}\r\n \t\t\tif (amount > 0) {\r\n \t\t\t\tif (id >= 0) {\r\n \t\t\t\t\tint totalitems = im.countItems(id, data, giveInventory);\r\n \t\t\t\t\tif (totalitems < amount) {\r\n \t\t\t\t\t\tboolean sellRemaining = hc.getYaml().getConfig().getBoolean(\"config.sell-remaining-if-less-than-requested-amount\");\r\n \t\t\t\t\t\tif (sellRemaining) {\r\n \t\t\t\t\t\t\tamount = totalitems;\r\n \t\t\t\t\t\t} else {\t\r\n \t\t\t\t\t\t\tresponse.addFailed(L.f(L.get(\"YOU_DONT_HAVE_ENOUGH\"), name), hyperObject);\r\n \t\t\t\t\t\t\treturn response;\t\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t\tif (amount > 0) {\r\n \t\t\t\t\t\tdouble price = hyperObject.getValue(amount, hp);\r\n \t\t\t\t\t\tBoolean toomuch = false;\r\n \t\t\t\t\t\tif (price == 3235624645000.7) {\r\n \t\t\t\t\t\t\ttoomuch = true;\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tif (!toomuch) {\r\n \t\t\t\t\t\t\tint maxi = hyperObject.getMaxInitial();\r\n \t\t\t\t\t\t\tboolean isstatic = false;\r\n \t\t\t\t\t\t\tboolean isinitial = false;\r\n \t\t\t\t\t\t\tisinitial = Boolean.parseBoolean(hyperObject.getInitiation());\r\n \t\t\t\t\t\t\tisstatic = Boolean.parseBoolean(hyperObject.getIsstatic());\r\n \t\t\t\t\t\t\tif ((amount > maxi) && !isstatic && isinitial) {\r\n \t\t\t\t\t\t\t\tamount = maxi;\r\n \t\t\t\t\t\t\t\tprice = hyperObject.getValue(amount, hp);\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tboolean sunlimited = hc.getYaml().getConfig().getBoolean(\"config.shop-has-unlimited-money\");\r\n \t\t\t\t\t\t\tif (acc.checkshopBalance(price) || sunlimited) {\r\n \t\t\t\t\t\t\t\tif (maxi == 0) {\r\n \t\t\t\t\t\t\t\t\tprice = hyperObject.getValue(amount, hp);\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tim.removeItems(id, data, amount, giveInventory);\r\n \t\t\t\t\t\t\t\tdouble shopstock = 0;\r\n \t\t\t\t\t\t\t\tshopstock = hyperObject.getStock();\r\n \t\t\t\t\t\t\t\tif (!Boolean.parseBoolean(hyperObject.getIsstatic()) || !hc.getConfig().getBoolean(\"config.unlimited-stock-for-static-items\")) {\r\n \t\t\t\t\t\t\t\t\thyperObject.setStock(shopstock + amount);\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tint maxi2 = hyperObject.getMaxInitial();\r\n \t\t\t\t\t\t\t\tif (maxi2 == 0) {\r\n \t\t\t\t\t\t\t\t\thyperObject.setInitiation(\"false\");\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tdouble salestax = hp.getSalesTax(price);\r\n \t\t\t\t\t\t\t\tacc.deposit(price - salestax, hp.getPlayer());\r\n \t\t\t\t\t\t\t\tacc.withdrawShop(price - salestax);\r\n \t\t\t\t\t\t\t\tif (sunlimited) {\r\n \t\t\t\t\t\t\t\t\tString globalaccount = hc.getYaml().getConfig().getString(\"config.global-shop-account\");\r\n \t\t\t\t\t\t\t\t\tacc.setBalance(0, globalaccount);\r\n \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\tresponse.addSuccess(L.f(L.get(\"SELL_MESSAGE\"), amount, calc.twoDecimals(price), name, calc.twoDecimals(salestax)), price - salestax, hyperObject);\r\n \t\t\t\t\t\t\t\tresponse.setSuccessful();\r\n \t\t\t\t\t\t\t\tString type = \"dynamic\";\r\n \t\t\t\t\t\t\t\tif (Boolean.parseBoolean(hyperObject.getInitiation())) {\r\n \t\t\t\t\t\t\t\t\ttype = \"initial\";\r\n \t\t\t\t\t\t\t\t} else if (Boolean.parseBoolean(hyperObject.getIsstatic())) {\r\n \t\t\t\t\t\t\t\t\ttype = \"static\";\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tlog.writeSQLLog(hp.getName(), \"sale\", name, (double) amount, calc.twoDecimals(price - salestax), calc.twoDecimals(salestax), playerecon, type);\r\n \t\t\t\t\t\t\t\tisign.updateSigns();\r\n \t\t\t\t\t\t\t\tnot.setNotify(name, null, playerecon);\r\n \t\t\t\t\t\t\t\tnot.sendNotification();\r\n \t\t\t\t\t\t\t\treturn response;\r\n \t\t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\t\tresponse.addFailed(L.get(\"SHOP_NOT_ENOUGH_MONEY\"), hyperObject);\r\n \t\t\t\t\t\t\t\treturn response;\t\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\tresponse.addFailed(L.f(L.get(\"CURRENTLY_CANT_SELL_MORE_THAN\"), hyperObject.getStock(), name), hyperObject);\r\n \t\t\t\t\t\t\treturn response;\t\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\tresponse.addFailed(L.f(L.get(\"YOU_DONT_HAVE_ENOUGH\"), name), hyperObject);\r\n \t\t\t\t\t\treturn response;\t\r\n \t\t\t\t\t}\r\n \t\t\t\t} else {\r\n \t\t\t\t\tresponse.addFailed(L.f(L.get(\"CANNOT_BE_SOLD_WITH\"), name), hyperObject);\r\n \t\t\t\t\treturn response;\t\r\n \t\t\t\t}\r\n \t\t\t} else {\r\n \t\t\t\tresponse.addFailed(L.f(L.get(\"CANT_SELL_LESS_THAN_ONE\"), name), hyperObject);\r\n \t\t\t\treturn response;\t\r\n \t\t\t}\r\n \t\t} catch (Exception e) {\r\n \t\t\tString info = \"Transaction sell() passed values name='\" + hyperObject.getName() + \"', player='\" + hp.getName() + \"', id='\" + hyperObject.getId() + \"', data='\" + hyperObject.getData() + \"', amount='\" + amount + \"'\";\r\n \t\t\tnew HyperError(e, info);\r\n \t\t\treturn new TransactionResponse(hp);\r\n \t\t}\r\n \t}", "public void setPrice(java.lang.Integer _price)\n {\n price = _price;\n }", "@Test\n public void verifyNoOfferApplied() {\n \tProduct product = new Product(\"Watermelon\", 0.8);\n \tProduct product2 = new Product(\"Apple\", 0.2);\n \tProduct product3 = new Product(\"Orange\", 0.5);\n \tBasket basket = new Basket();\n \tbasket.getProducts().put(product, 2);\n \tbasket.getProducts().put(product2, 1);\n \tbasket.getProducts().put(product3, 5);\n \tassertTrue(\"Have to get the price of 8 items = 4.3 ==> \", (calculator.calculatePrice(basket) - 4.3) < 0.0001);\n }", "public void setPrice (double ticketPrice)\r\n {\r\n price = ticketPrice;\r\n }", "public void setPrice(double newPrice) {\r\n price = newPrice;\r\n }", "public double getBuyPrice() {\n return buyPrice;\n }", "public boolean couldBeProfitable(){\n return this.priceBought < this.maximumMachineProfit;\n }", "public void setPrice(double value) {\n this.price = value;\n }", "public void setPrice(double value) {\n this.price = value;\n }", "public void setPrice(Integer price) {\r\n this.price = price;\r\n }", "public void setPrice(Integer price) {\r\n this.price = price;\r\n }", "public boolean confirmPrice(String price) {\r\n String finalPrice = getPrice();\r\n info(\"Price of chosen ticket: \" + price + \" Price before paying: \" + finalPrice);\r\n return clearPrice(finalPrice).equals(price);\r\n }", "abstract public double getPrice();", "public void setPrice(Integer price) {\n this.price = price;\n }", "public void setPrice(Integer price) {\n this.price = price;\n }", "public void setPrice(Integer price) {\n this.price = price;\n }", "public void setPrice(Integer price) {\n this.price = price;\n }", "public boolean hasPrice() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "public void setPrice(int price)\n {\n if(checker.isString(Integer.toString(price)))\n this.price = price;\n else\n this.price = 0;\n }", "@Test(priority=3)\n\tpublic void validateCheckoutPagePrice()\n\t{\n\t\tAssert.assertEquals(ResultsPage.price, checkoutpage.getPrice() );\n\t}", "protected void setPrice(DukatAmount price){\r\n\t\tif(canHaveAsPrice(price))\r\n\t\t\tthis.price = price;\r\n\t}", "private static int buyLowSellHigh(int[] prices) {\n int minPrice = Integer.MAX_VALUE;\n int maxProfit = Integer.MIN_VALUE;\n\n for (int v : prices) {\n if (minPrice == Integer.MAX_VALUE) {\n // update min price for the first time\n minPrice = v;\n } else if (v > minPrice) {\n // calculate profit since the stock price is > minPrice\n int profit = v - minPrice;\n maxProfit = Math.max(maxProfit, profit);\n } else {\n // either v is equal to or smaller than minPrice, then update it\n minPrice = v;\n }\n }\n System.out.printf(\"minPrice: %d\\n\", minPrice);\n return maxProfit;\n }" ]
[ "0.7050795", "0.6963793", "0.6955515", "0.6890824", "0.6890748", "0.6885494", "0.68492097", "0.68040746", "0.6761648", "0.6748866", "0.67342585", "0.67241067", "0.66932946", "0.66932946", "0.66932946", "0.6692014", "0.6692014", "0.6692014", "0.6692014", "0.6692014", "0.6692014", "0.6692014", "0.66736376", "0.6659024", "0.6648118", "0.6634064", "0.66335124", "0.66335124", "0.6631375", "0.6628388", "0.6611166", "0.6611166", "0.6608916", "0.66042984", "0.65974945", "0.6590379", "0.65748125", "0.6574638", "0.6561682", "0.6561682", "0.6557558", "0.6557558", "0.655417", "0.655417", "0.6552406", "0.6552406", "0.6552406", "0.65413916", "0.6536888", "0.6535828", "0.65076834", "0.65022975", "0.65005225", "0.64989233", "0.64861214", "0.64814323", "0.6472797", "0.64684665", "0.6461398", "0.646024", "0.64598614", "0.64529735", "0.6448532", "0.6446617", "0.6438913", "0.6437955", "0.64253473", "0.64222395", "0.6419445", "0.6419445", "0.6419445", "0.6419357", "0.6418639", "0.6392822", "0.63923776", "0.6389786", "0.63870996", "0.6385582", "0.6379473", "0.6374755", "0.6367757", "0.6359293", "0.6350389", "0.6349273", "0.6348976", "0.63481724", "0.6346893", "0.6346893", "0.63303924", "0.63303924", "0.63261545", "0.63240623", "0.63234377", "0.63234377", "0.63234377", "0.63234377", "0.63211954", "0.6314451", "0.6311317", "0.6311238", "0.6304438" ]
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column expediente_consulta.idExpeConsul
public Integer getIdexpeconsul() { return idexpeconsul; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getIdExperienciaEducativa() {\r\n return idExperienciaEducativa;\r\n }", "public BigDecimal getIdExpediente() {\r\n return idExpediente;\r\n }", "public E getConsulta() {\n\n\t\treturn this.consulta;\n\t}", "public String getCodigoExpediente() {\r\n return codigoExpediente;\r\n }", "public int getIdExamCcEtudiant(String matricule, int idMatiere){\n int id ;\n Query query = em.createQuery(\"select etuex.idexamen from EtudiantExam etuex,Examen exam, MatiereExam matexam where etuex.matricule := ?1 and matexam.idmatiere := ?2 and matexam.idexamen := exam.idexamen and exam.type := 'CC' and exam.idexamen := etuex.idexamen\");\n id = (int)query.getSingleResult(); \n return id;\n \n }", "@Transactional\r\n\t@Modifying\r\n\t@Query(value = \"INSERT INTO CONSULTA_EXAMEN(ID_CONSULTA, ID_EXAMEN) VALUES (:idConsulta, :idExamen)\", nativeQuery = true)\r\n\t//METODO MANUAL\r\n\tint registrar(@Param(\"idConsulta\")int idConsulta, @Param(\"idExamen\") int idExamen);", "public int idEmpleado(int cui) throws SQLException{\n obtenerConexion();\n int id = 0;\n PreparedStatement declaracionId = cn.prepareStatement(ID_EMPLEADO);\n declaracionId.setInt(1, cui);\n ResultSet result = declaracionId.executeQuery();\n while(result.next()){\n id = result.getInt(\"id\");\n }\n login.Desconectar();\n return id;\n }", "public String getCodigoExemplar(int select) throws IOException {\r\n ArrayList<String> listExemplar = exemplar.getListExemplar();\r\n ArrayList<String> templist = new ArrayList<String>();\r\n\r\n for (int i = 0; i < listExemplar.size(); i++) {\r\n if (listExemplar.get(i).contains(getCodigoLivro())) {\r\n templist.add(listExemplar.get(i));\r\n }\r\n }\r\n String[] temp = templist.get(select).split(\";\");\r\n return temp[1];\r\n }", "public long getIdCadastroSelecionado(){\r\n \treturn idCadastroSelecionado;\r\n }", "public Long getId() {\r\n return idComentario;\r\n }", "@Override\n public Propiedad getPropiedadId(String pNumFinca) throws SQLException {\n ArrayList<Propiedad> resultado = new ArrayList<Propiedad>();\n resultado = (ArrayList<Propiedad>) bdPropiedad.selectQuery(\"SELECT * FROM PROPIEDAD WHERE \"\n + \"ID_PROPIEDAD = '\" + pNumFinca + \"'\");\n Propiedad propiedadSeleccionada = resultado.get(0);\n return propiedadSeleccionada;\n }", "public int getIdDetalleComponenteCosto()\r\n/* 58: */ {\r\n/* 59: 83 */ return this.idDetalleComponenteCosto;\r\n/* 60: */ }", "public BigDecimal getIdContrato() {\r\n return idContrato;\r\n }", "public int getCampoIdentificacao() {\r\n return campoIdentificacao;\r\n }", "public Integer getCboEspecialidad() {\n return cboEspecialidad;\n }", "public int getId()\r\n/* 53: */ {\r\n/* 54: 79 */ return this.idDetalleComponenteCosto;\r\n/* 55: */ }", "public int getId()\r\n/* 208: */ {\r\n/* 209:381 */ return this.idCargaEmpleado;\r\n/* 210: */ }", "public Long getIdExcluir() {\r\n\t\treturn idExcluir;\r\n\t}", "@Transient\n\t/**\n\t * @return the idInstituicao\n\t */\n\tpublic Integer getIdInstituicao() {\n\t\treturn idInstituicao;\n\t}", "public void setIdExperienciaEducativa(Integer idExperienciaEducativa) {\r\n this.idExperienciaEducativa = idExperienciaEducativa;\r\n }", "public int ObtenerMaximaIdDetalle() {// METODO OBTENER MAXIMA ID\n\n conexionBD.getConnection();\n\n try {\n String SQL = \"SELECT * FROM facturadetalle\";\n Statement stmt = conexionBD.con.createStatement();\n ResultSet rs = stmt.executeQuery(SQL);\n idFacturaDetalle = 0;\n\n while (rs.next()) {\n idFacturaDetalle = rs.getInt(\"idFacturaDetalle\");\n }\n\n rs.close();\n stmt.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return idFacturaDetalle;\n }", "public HospedagemBean select (int cdHospedagem, Connection conexao) throws Exception{\n\t\t\tstmt = conexao.prepareStatement(\"SELECT H.CD_HOSPEDAGEM, R.CD_RESERVA, C.CD_PESSOA, C.NM_PESSOA, F.CD_FUNCIONARIO, H.DT_ENTRADA, H.VC_PERC_DESCONTO FROM T_AM_LDB_HOSPEDAGEM H INNER JOIN T_AM_LDB_PESSOA C ON H.CD_CLIENTE = C.CD_PESSOA INNER JOIN T_AM_LDB_FUNCIONARIO F ON H.CD_FUNCIONARIO = F.CD_FUNCIONARIO INNER JOIN T_AM_LDB_RESERVA R ON H.CD_RESERVA = R.CD_RESERVA WHERE H.CD_HOSPEDAGEM = ?\");\n\t\t\tstmt.setInt(1, cdHospedagem);\n\t\t\trs = stmt.executeQuery();\n\t\t\trs.next();\n\t\t\tHospedagemBean hp = new HospedagemBean();\n\t\t\thp.setCodigoHospedagem(rs.getInt(\"CD_HOSPEDAGEM\"));\n\t\t\tReservaBean r = new ReservaBean();\n\t\t\tr.setCodigoReserva(rs.getInt(\"CD_RESERVA\"));\n\t\t\thp.setReserva(r);\n\t\t\tClienteBean c = new ClienteBean();\n\t\t\tc.setCodigoPessoa(rs.getInt(\"CD_PESSOA\"));\n\t\t\tc.setNomePessoa(rs.getString(\"NM_PESSOA\"));\n\t\t\thp.setCliente(c);\n\t\t\tFuncionarioBean f = new FuncionarioBean();\n\t\t\tf.setCodigoPessoa(rs.getInt(\"CD_FUNCIONARIO\"));\n\t\t\thp.setFuncionario(f);\n\t\t\tCalendar cal = null;\n\t\t\tcal = Calendar.getInstance();\n\t\t\tcal.setTime(rs.getDate(\"DT_ENTRADA\"));\n\t\t\thp.setDataEntrada(cal);\n\t\t\thp.setDesconto(rs.getInt(\"VC_PERC_DESCONTO\"));\n\t\t\treturn hp;\n\t}", "int getEviId(String project, DataDate date) throws SQLException;", "int getEtoId(DataDate date) throws SQLException;", "public Long getId()\r\n\t{\r\n\t\treturn idContrat;\r\n\t}", "public int conocerID(String usuario) {\n Conexion c = new Conexion();\n PreparedStatement ps = null;\n ResultSet rs = null;\n String sql = \"SELECT id FROM usuario WHERE usuario.usuario = ?\";\n try {\n ps = c.getConexion().prepareStatement(sql);\n ps.setString(1, usuario);\n rs = ps.executeQuery();\n while (rs.next()) {\n return rs.getInt(1);\n }\n\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n } finally {\n try {\n ps.close();\n rs.close();\n c.cerrarConexion();\n } catch (Exception ex) {\n }\n }\n return -1;\n }", "public String getDenumireExperienta(String id) {\n c = db.rawQuery(\"select denumire from experienta where id='\" + id + \"'\", new String[]{});\n StringBuffer buffer = new StringBuffer();\n while (c.moveToNext()) {\n String denumire = c.getString(0);\n buffer.append(\"\" + denumire);\n }\n return buffer.toString();\n }", "private int getEmployeeId() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tint employeeId1 = 0;\r\n\t\tString sql = \"SELECT Patient_Id_Sequence.NEXTVAL FROM DUAL\";\r\n\t\ttry {\r\n\t\t\tPreparedStatement pstmt = con.prepareStatement(sql);\r\n\t\t\tResultSet res = pstmt.executeQuery();\r\n\t\t\tif (res.next()) {\r\n\t\t\t\temployeeId1 = res.getInt(1);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"error while fetching data from database\");\r\n\t\t}\r\n\t\treturn employeeId1;\r\n\r\n\t}", "public java.util.List<String> dinoConflictivo(){\n java.util.List<String> resultado = new java.util.ArrayList<String>();\n Connection con;\n PreparedStatement stmDinos=null;\n ResultSet rsDinos;\n con=this.getConexion();\n try {\n stmDinos = con.prepareStatement(\"select d.nombre \" +\n \"from incidencias i, dinosaurios d where responsable = d.id \" +\n \"group by responsable, d.nombre \" +\n \"having count(*) >= \" +\n \"(select count(*) as c \" +\n \" from incidencias group by responsable order by c desc limit 1)\");\n rsDinos = stmDinos.executeQuery();\n while (rsDinos.next()){resultado.add(rsDinos.getString(\"nombre\"));}\n } catch (SQLException e){\n System.out.println(e.getMessage());\n this.getFachadaAplicacion().muestraExcepcion(e.getMessage());\n }finally{\n try {stmDinos.close();} catch (SQLException e){System.out.println(\"Imposible cerrar cursores\");}\n }\n return resultado;\n }", "public Integer getExisteCliente(String codigoCliente);", "public int obtenerDatosPersonaEspecifico(int idCliente) {\n\n\t\ttry {\n\n\t\t\tlog.info(\"Procediendo a obtener salidas especificas para la persona\");\n\t\t\tStoredProcedureQuery storedProcedureQuery = entityManager\n\t\t\t\t\t\n\t\t\t\t\t// Definicion\n\t\t\t\t\t.createStoredProcedureQuery(prop.getPROCEDURE_OBTENER_DATOS_UNICOS())\n\n\t\t\t\t\t// Entradas\n\t\t\t\t\t.registerStoredProcedureParameter(1, Integer.class, ParameterMode.IN)\n\n\t\t\t\t\t// Salidas\n\t\t\t\t\t.registerStoredProcedureParameter(2, String.class, ParameterMode.OUT)\n\t\t\t\t\t.registerStoredProcedureParameter(3, String.class, ParameterMode.OUT)\n\n\t\t\t\t\t// Parametros\n\t\t\t\t\t.setParameter(1, idCliente);\n\n\t\t\tlog.info(\"Ejecutando Procedimiento...\");\n\t\t\tstoredProcedureQuery.execute();\n\t\t\tlog.info(\"Procedimiento ejecutado\");\n\n\t\t\t// Obtener los datos de salida\n\t\t\tString nombre = (String) storedProcedureQuery.getOutputParameterValue(2);\n\t\t\tString direccion = (String) storedProcedureQuery.getOutputParameterValue(3);\n\n\t\t\tlog.info(\"SALIDA: Nombre = \" + nombre + \" , Direccion = \" + direccion);\n\t\t\treturn 1;\n\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"Error al consultar procedure [\" + prop.getPROCEDURE_OBTENER_PERSONA_ID() + \"] , Detalle > \" + e.getMessage());\n\t\t}\n\t\t\n\t\treturn 0;\n\n\t}", "public BigDecimal getSecuenciaExpediente() {\r\n return secuenciaExpediente;\r\n }", "public int getIdExamSnEtudiant(String matricule, int idMatiere){\n int id;\n Query query = em.createQuery(\"select etuex.idexamen from EtudiantExam etuex,Examen exam, MatiereExam matexam where etuex.matricule := ?1 and matexam.idmatiere := ?2 and matexam.idexamen := exam.idexamen and exam.type := 'SN' and exam.idexamen := etuex.idexamen\");\n id = (int)query.getSingleResult(); \n return id;\n }", "public int getId()\r\n/* 69: */ {\r\n/* 70:103 */ return this.idAutorizacionEmpresaSRI;\r\n/* 71: */ }", "int getIdRondaCancion(Cancion cancion,Date fecha) throws ExceptionDao;", "public java.lang.String getIdcliente() {\n return idcliente;\n }", "public int getIdCargaEmpleado()\r\n/* 103: */ {\r\n/* 104:185 */ return this.idCargaEmpleado;\r\n/* 105: */ }", "@Override\r\n\tpublic Integer getId() {\n\t\treturn this.codContacto;\r\n\t}", "public int getTipoEleicao(int idEleicao){\n return this.eleicaoDB.getTipoEleicao(idEleicao);\n }", "public HTMLSelectElement getElementCodigoEmpleado() { return this.$element_CodigoEmpleado; }", "public ContratOffreDTO getCdi(){\n\t\tcdi = null;\n\t\tList<ContratOffreDTO> l = getNomenclatureDomainService().getContrats();\n\t\tfor(ContratOffreDTO c : l){\n\t\t\tif(c.getCodeCtrl().equalsIgnoreCase(DonneesStatic.CONTRAT_OFFRE_CODE_CTRL_CDI)){\n\t\t\t\tcdi=c;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn cdi;\n\t}", "public Long getIdVieSociale() {\r\n\t\treturn idVieSociale.get();\r\n\t}", "@Override\r\n\tpublic Integer getId() {\n\t\treturn codigoCliente;\r\n\t}", "public String getCompoId() {\n\t return compoId;\r\n\t }", "public ContratOffreDTO getCdd(){\n\t\tcdd = null;\n\t\tList<ContratOffreDTO> l = getNomenclatureDomainService().getContrats();\n\t\tfor(ContratOffreDTO c : l){\n\t\t\tif(c.getCodeCtrl().equalsIgnoreCase(DonneesStatic.CONTRAT_OFFRE_CODE_CTRL_CDD)){\n\t\t\t\tcdd=c;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn cdd;\n\t}", "public int getComuneResidenzaCod() {\r\n return comuneResidenzaCod;\r\n }", "public int getConexionesDescartadas(){\n return conexionesDescartadas;\n }", "public int getCodigoSelecionado() {\n return codigoSelecionado;\n }", "public int autoIncrementarEmpleado() throws SQLException{\r\n int idEmpleado = 0;\r\n String sql = \"{CALL sp_autoIncrementarEmpleadoId()}\";\r\n try{\r\n st = cn.createStatement();\r\n rs = st.executeQuery(sql);\r\n rs.next();\r\n idEmpleado = rs.getInt(\"idEmpleado\");\r\n if(idEmpleado == 0) {\r\n idEmpleado = 1;\r\n }\r\n \r\n }catch(SQLException e){\r\n JOptionPane.showMessageDialog(null, \"error: \"+ e.getMessage());\r\n \r\n }\r\n return idEmpleado;\r\n }", "public long getIdPessoa() {\n\t\treturn idPessoa;\n\t}", "public String getCodigoEmpresa() {\n return this.codigoEmpresa;\n }", "public Collection eleicoesAbertaID(){\n return this.eleicaoDB.eleicoesAbertaID();\n }", "@Override\n\tpublic Integer getId() {\n\t\treturn ofertaOpexId;\n\t}", "public int getIdContacto() {\r\n return idContacto;\r\n }", "public java.lang.Integer getCare_id();", "public int getContrcdId() {\n return contrcdId;\n }", "public int getIdCliente() {\n return idCliente;\n }", "public int ObtenerMaximaIdCabecera() {\n\n conexionBD.getConnection();\n\n try {\n String SQL = \"SELECT * FROM facturacabecera\";\n Statement stmt = conexionBD.con.createStatement();\n ResultSet rs = stmt.executeQuery(SQL);\n idFacturaCabecera = 0;\n\n while (rs.next()) {\n idFacturaCabecera = rs.getInt(\"idFacturaCabecera\");\n }\n\n rs.close();\n stmt.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return idFacturaCabecera;\n }", "public BCliente obtenerCliente(int codigo)throws SQLException{\r\n\t\tICliente daoCliente = new DCliente();\r\n\t\treturn daoCliente.obtenerCliente(codigo);\r\n\t}", "public String obtenerCampo(String sqlConsulta) throws SQLException {\n try {\n this.sqlConsulta = sqlConsulta;\n ejecutarResultSet();\n if (!resultSet.first() || resultSet.getString(1) == null) {\n return \"\";\n }\n String campo = resultSet.getString(1);\n return campo;\n } finally {\n cerrarResultSet();\n }\n\n }", "public List<Consulta> listagemConsultas(){\r\n\t\tList<Consulta>col1;\r\n\t\tcol1=new ArrayList<Consulta>();\r\n\t\tfor (Consulta c : col){\r\n\t\t\tif (c.toString()!=null){\r\n\t\t\t\tcol1.add(c);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn col1;\r\n\t}", "public ArrayList<ComentarioComp> listaComentarioNoRespondido() {\n ArrayList<ComentarioComp> lista = new ArrayList<>();\n try {\n Connection conn = DriverManager.getConnection(CONN, USER, PASS);\n\n Statement st = conn.createStatement();\n ResultSet rs = st.executeQuery(\"select co.nombre, c.nombreUsuario, c.descripcion, c.fecha, c.valoracion\\n\" +\n\"from Comentarios c join Comercios co on c.id_comercio = co.id_comercio\\n\" +\n\"where id_comentario not in (select id_comentario from Respuestas r )\");\n\n while (rs.next()) {\n String nombreC = rs.getString(1);\n String nombre = rs.getString(2);\n String descripcion = rs.getString(3);\n String fecha = rs.getString(4);\n int valoracion = rs.getInt(5);\n\n ComentarioComp c = new ComentarioComp(nombreC, nombre, descripcion, fecha, valoracion);\n\n lista.add(c);\n }\n\n st.close();\n conn.close();\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n\n return lista;\n }", "public ColecaoConsultas() {\r\n\t\tcol = new ArrayList<Consulta>();\r\n\t}", "public es.gob.agenciatributaria.www2.static_files.common.internet.dep.aplicaciones.es.aeat.ssii.fact.ws.SuministroInformacion_xsd.ContraparteConsultaType getContraparte() {\r\n return contraparte;\r\n }", "public int getId_coodinador() {\n return id_coodinador;\n }", "public int getId()\r\n/* 75: */ {\r\n/* 76:110 */ return this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;\r\n/* 77: */ }", "public Integer consultaCantidadesXId(Integer idProducto){\n\t\tInteger rta = 0;\n\t\ttry {\n\t\t\tList<ExistenciaXSedeEntity> lista = new ArrayList<>();\n\t\t\tlista = conexionWSProd().getPortProd().obtenerCantidadesXProducto(idProducto);\n\t\t\tif(lista==null || lista.isEmpty()){\n\t\t\t\trta =0;\n\t\t\t}else{\n\t\t\t\trta = lista.get(0).getExistencias();\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 rta;\n\t}", "public List<Long> getTodosComputadoresId()throws Exception{\n\t\t\n\t\tList<Long> ids=new ArrayList<Long>();\n\t\tString sql = \"select codigo from \" + TABELA;\n\n\t\tPreparedStatement stmt = connection.prepareStatement(sql);\n\n\t\tResultSet rs = stmt.executeQuery();\n\n\t\twhile (rs.next()){\n\t\t\tids.add(rs.getLong(1));\n\t\t}\n\n\t\treturn ids;\n\t}", "public int getIdReceta() {\r\n return idReceta;\r\n }", "public int getCaroserieId(String denumire) {\n c = db.rawQuery(\"select id from caroserii where denumire='\" + denumire + \"'\", new String[]{});\n int id=0;\n while(c.moveToNext()){\n id= c.getInt(0);\n }\n return id;\n }", "@Override\r\n\tpublic Importancia findOne(Integer codigo) throws DataAccessException {\n\t\treturn null;\r\n\t}", "public int getMarcaId(String denumire) {\n c = db.rawQuery(\"select id from marci where denumire='\" + denumire + \"'\", new String[]{});\n int id=0;\n while(c.moveToNext()){\n id= c.getInt(0);\n }\n return id;\n }", "@Override\n public Asesor getAsesorId(int idUsuarioSistema){\n Asesor asesor = null;\n ConexionSQL conexionSql = new ConexionSQL();\n Connection conexion = conexionSql.getConexion();\n try{\n PreparedStatement orden = conexion.prepareStatement(\"select * from asesor where idUsuarioSistema =?\");\n orden.setInt(1, idUsuarioSistema);\n ResultSet resultadoConsulta = orden.executeQuery();\n if(resultadoConsulta.first()){\n String nombre;\n String idioma;\n String correo;\n String telefono;\n String numeroPersonal;\n nombre = resultadoConsulta.getString(4) +\" \"+ resultadoConsulta.getString(6) +\" \"+ resultadoConsulta.getString(5);\n idioma = resultadoConsulta.getString(2);\n telefono = resultadoConsulta.getString(8);\n correo = resultadoConsulta.getString(7);\n numeroPersonal = resultadoConsulta.getString(1);\n asesor = new Asesor(numeroPersonal, nombre, idioma,telefono,correo);\n }else{\n Logger logger = Logger.getLogger(\"Logger\");\n logger.log(Level.WARNING, \"No se encuentra el asesor\");\n }\n }catch(SQLException | NullPointerException excepcion){\n Logger logger = Logger.getLogger(\"Logger\");\n logger.log(Level.WARNING, \"La conexión podría ser nula | la sentencia SQL esta mal\");\n }\n return asesor;\n }", "@Column(name = \"C_NO_IDENTIFICACION\", nullable = true)\n public String getNoIdentificacion() {\n return noIdentificacion;\n }", "public Integer pesquisarIdContaRetificada(Integer idImovel,\tint anoMesReferenciaConta) throws ErroRepositorioException;", "public int getDatossolicitudBftipoDeConvenio() {\n return datossolicitudBftipoDeConvenio;\n }", "public UUID getIdSistemaEspecifico(){\n\t\t\n\t\treturn miIdSistemaEspecifico;\n\t}", "private Long devuelveProyectoCarreraId(List<ProyectoCarreraOferta> proyectoCarreras, ProyectoCarreraOferta pc) {\r\n Long var = 0L;\r\n for (ProyectoCarreraOferta pco : proyectoCarreras) {\r\n if (pco.getCarreraId().equals(pc.getCarreraId())) {\r\n var = pco.getId();\r\n break;\r\n }\r\n }\r\n return var;\r\n }", "public Ejercicio consultarEjercicio(int ejercicioId){\r\n\t\t\r\n\t\treturn daoEjercicio.getEjercicio(ejercicioId);\r\n\t\t\r\n\t}", "public Produto consultarProduto(Produto produto) {\r\n ConexaoBDJavaDB conexaoBD = new ConexaoBDJavaDB(\"routeexpress\");\r\n Connection conn = null;\r\n PreparedStatement stmt = null;\r\n ResultSet rs = null;\r\n Produto cerveja = null;\r\n String sql = \"SELECT TBL_CERVEJARIA.ID_CERVEJARIA, TBL_CERVEJARIA.CERVEJARIA, TBL_CERVEJARIA.PAIS, \"\r\n + \"TBL_CERVEJA.ID_CERVEJA, TBL_CERVEJA.ID_CERVEJARIA AS \\\"FK_CERVEJARIA\\\", \"\r\n + \"TBL_CERVEJA.ROTULO, TBL_CERVEJA.PRECO, TBL_CERVEJA.VOLUME, TBL_CERVEJA.TEOR, TBL_CERVEJA.COR, TBL_CERVEJA.TEMPERATURA, \"\r\n + \"TBL_CERVEJA.FAMILIA_E_ESTILO, TBL_CERVEJA.DESCRICAO, TBL_CERVEJA.SABOR, TBL_CERVEJA.IMAGEM_1, TBL_CERVEJA.IMAGEM_2, TBL_CERVEJA.IMAGEM_3 \"\r\n + \"FROM TBL_CERVEJARIA \"\r\n + \"INNER JOIN TBL_CERVEJA \"\r\n + \"ON TBL_CERVEJARIA.ID_CERVEJARIA = TBL_CERVEJA.ID_CERVEJARIA \"\r\n + \"WHERE ID_CERVEJA = ?\";\r\n try {\r\n conn = conexaoBD.obterConexao();\r\n stmt = conn.prepareStatement(sql);\r\n stmt.setInt(1, produto.getIdCerveja());\r\n rs = stmt.executeQuery();\r\n if (rs.next()) {\r\n cerveja = new Produto();\r\n cerveja.setIdCervejaria(rs.getInt(\"ID_CERVEJARIA\"));\r\n cerveja.setCervejaria(rs.getString(\"CERVEJARIA\"));\r\n cerveja.setPais(rs.getString(\"PAIS\"));\r\n cerveja.setIdCerveja(rs.getInt(\"ID_CERVEJA\"));\r\n cerveja.setIdFkCervajaria(rs.getInt(\"FK_CERVEJARIA\"));\r\n cerveja.setRotulo(rs.getString(\"ROTULO\"));\r\n cerveja.setPreco(rs.getString(\"PRECO\"));\r\n cerveja.setVolume(rs.getString(\"VOLUME\"));\r\n cerveja.setTeor(rs.getString(\"TEOR\"));\r\n cerveja.setCor(rs.getString(\"COR\"));\r\n cerveja.setTemperatura(rs.getString(\"TEMPERATURA\"));\r\n cerveja.setFamiliaEEstilo(rs.getString(\"FAMILIA_E_ESTILO\"));\r\n cerveja.setDescricao(rs.getString(\"DESCRICAO\"));\r\n cerveja.setSabor(rs.getString(\"SABOR\"));\r\n cerveja.setImagem1(rs.getString(\"IMAGEM_1\"));\r\n cerveja.setImagem2(rs.getString(\"IMAGEM_2\"));\r\n cerveja.setImagem3(rs.getString(\"IMAGEM_3\"));\r\n } else {\r\n return cerveja;\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (ClassNotFoundException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n if (conn != null) {\r\n try {\r\n conn.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (stmt != null) {\r\n try {\r\n stmt.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (rs != null) {\r\n try {\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }\r\n return cerveja;\r\n }", "Especialidad getEspecialidadPorId(Integer especialidadId);", "public int getCodPessoa() {\r\n\t\treturn this.codPessoa;\r\n\t}", "private int insert(Consulta p) {\n Connection con = null;\r\n PreparedStatement pstm = null;\r\n int retorno = -1;\r\n try {\r\n con = ConnectionFactory.getConnection();\r\n pstm = con.prepareStatement(INSERT, Statement.RETURN_GENERATED_KEYS);\r\n\r\n pstm.setDate(1, new java.sql.Date(p.getDataDaConsulta().getTime()));\r\n pstm.setString(2, p.getDescricao());\r\n pstm.setString(3, p.getTipoConsulta());\r\n pstm.setTime(4, p.getHorario());\r\n pstm.setInt(5, p.getPaciente().getCodigo());\r\n pstm.execute();\r\n try (ResultSet rs = pstm.getGeneratedKeys()) {\r\n if (rs.next()) {\r\n retorno = rs.getInt(1);\r\n }\r\n }\r\n } catch (SQLException e) {\r\n JOptionPane.showMessageDialog(null, \"Erro ao inserir consulta: \" + e.getMessage());\r\n } finally {\r\n try {\r\n\r\n ConnectionFactory.closeConnection(con, pstm);\r\n\r\n } catch (SQLException e) {\r\n JOptionPane.showMessageDialog(null, \"Erro ao finalizar conexão em inserir paciente: \" + e.getMessage());\r\n }\r\n }\r\n return retorno;\r\n }", "public long getEulaId() {\n return eulaId;\n }", "public BigDecimal getIdUnidadContratacion() {\r\n return idUnidadContratacion;\r\n }", "int getModisId(ModisProduct product, DataDate date, int horz, int vert) throws SQLException;", "public int getcodigoIdentificador() {\r\n\t\treturn codigoIdentificador;\r\n\t}", "public static Administrador buscarDocumentoIdentidad( String cedulaadmin, Conector conector ) throws ErrorConector\r\n {\r\n String consultaSQL = \"SELECT * FROM administrador WHERE documento_identidad = \" + cedulaadmin + \" LIMIT 1\";\r\n ResultSet rs = conector.consultarEnBaseDatos(consultaSQL); \r\n try {\r\n if( rs.next() ){\r\n \tAdministrador admin = new Administrador();\r\n \tadmin.setIdadmin( rs.getInt( \"id_administrador\" ) );\r\n \tadmin.setDocumentoidentidad( rs.getString( \"documento_identidad\" ) );\r\n \tadmin.setNombres( rs.getString( \"nombres\" ) );\r\n admin.setApellidos( rs.getString( \"apellidos\" ) );\r\n admin.setPassword( rs.getString( \"password\" ) );\r\n admin.setNumerotelefonico( rs.getString( \"numero_telefonico\" ) );\r\n admin.setCorreoelectronico( rs.getString( \"correo_electronico\" ) );\r\n return admin;\r\n }\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n }\r\n return null;\r\n }", "public int retornaIdFreela(int idProjeto) {\n\n int idFreela = -1;\n\n conectarnoBanco();\n\n String sql = \"SELECT * FROM proposta\";\n\n try {\n\n st = con.createStatement();\n\n rs = st.executeQuery(sql);\n\n while (rs.next()) {\n\n if(idProjeto == rs.getInt(\"id_projeto\")){\n idFreela = rs.getInt(\"id_usuario\");\n }\n \n sucesso = true;\n }\n\n } catch (SQLException ex) {\n System.out.println(\"Erro ao retornar id do freelancer pelo id do projeto = \" + ex.getMessage());\n sucesso = false;\n } finally {\n try {\n\n if (con != null && pst != null) {\n con.close();\n pst.close();\n }\n\n } catch (SQLException ex) {\n System.out.println(\"Erro ao fechar o bd = \" + ex.getMessage());\n }\n\n }\n\n return idFreela;\n }", "public int getIdCandidatura(){\n return idCandidatura;\n }", "public int getDatossolicitudBfclasificacionConvenio() {\n return datossolicitudBfclasificacionConvenio;\n }", "private Long obtenerCodigoLineaComercialClasificacion(Long codigoLineaComercial, String codigoClasificacion) throws SICException{\n\t\tStringBuilder query = null;\n\t\tQuery sqlQuery = null;\t\t\n\t\ttry {\n\t\t\tSession session = hibernateH.getHibernateSession();\n\t\t\tsession.clear();\n\t\t\t\n\t\t\tquery = new StringBuilder();\n\t\t\tquery.append(\" SELECT CODLINCOMCLA FROM SCADMTLINCOMCLA LCC INNER JOIN SCSPETCLASIFICACION CL ON LCC.CODIGOCOMPANIA = CL.CODIGOCOMPANIA AND LCC.CODIGOCLASIFICACION = CL.CODIGOCLASIFICACION\");\n\t\t\tquery.append(\" WHERE LCC.CODIGOLINEACOMERCIAL = \" + codigoLineaComercial + \" AND LCC.CODIGOCLASIFICACION = \" + codigoClasificacion + \" AND CL.ESTADOCLASIFICACION = '\" + SICConstantes.ESTADO_ACTIVO_NUMERICO + \"'\");\t\t\t\t\t\t\n\t\t\tsqlQuery = session.createSQLQuery(query.toString());\n\t\t\t\n\t\t\tObject codLinComCla = sqlQuery.uniqueResult();\t\t\t\n\t\t\tif(codLinComCla != null){\n\t\t\t\tif(codLinComCla instanceof BigDecimal){\n\t\t\t\t\treturn ((BigDecimal)codLinComCla).longValue();\n\t\t\t\t}else{\n\t\t\t\t\treturn (Long)codLinComCla;\n\t\t\t\t}\t\n\t\t\t}\n\t\t\treturn null;\n\t\t} catch (Exception e) {\n\t\t\tLogeable.LOG_SICV2.error(\"Error obtenerCodigoLineaComercialClasificacion {0}\", e);\n\t\t\tthrow new SICException(\"Error al obtener el codigo linea comercial clasificacion\", e);\n\t\t}\n\t}", "public int siguienteRegistro(int codigoFlujo) {\n/* 265 */ int inumero = 1;\n/* 266 */ String s = \"select max(secuencia) from wkf_detalle where codigo_flujo=\" + codigoFlujo + \"\";\n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 271 */ boolean rta = this.dat.parseSql(s);\n/* 272 */ if (!rta) return 0; \n/* 273 */ this.rs = this.dat.getResultSet();\n/* 274 */ if (this.rs.next()) {\n/* 275 */ s = this.rs.getString(1);\n/* 276 */ if (!this.rs.wasNull()) {\n/* 277 */ inumero = Integer.parseInt(s) + 1;\n/* */ }\n/* */ } \n/* 280 */ return inumero;\n/* */ }\n/* 282 */ catch (Exception e) {\n/* 283 */ e.printStackTrace();\n/* 284 */ Utilidades.writeError(\"FlujoDetalleDAO:siguienteRegistro \", e);\n/* */ \n/* 286 */ return 0;\n/* */ } \n/* */ }", "public static CentroDeCusto readId(int pCodigo) {\n Query query = HibernateUtil.getSession().createQuery(\"FROM CentroDeCusto WHERE id = \" + pCodigo);\n return (CentroDeCusto) query.uniqueResult();\n }", "private Collection<Long> consultarCodigosLineaComercialesClienteImportacion(LineaComercialVO lineaComercialVO) throws SICException{\n\t\ttry {\n\t\t\tLogeable.LOG_SICV2.info(\"Metodo consultarCodigosLineaComercialesClienteImportacion \");\n\t\t\t\n\t\t\tCriteria criteria = hibernateH.getHibernateSession().createCriteria(LineaComercialDTO.class, \"lineaComercialDTO\");\n\t\t\t\t\t\n\t\t\tcriteria.setProjection(Projections.projectionList()\n\t\t .add(Projections.property(\"lineaComercialDTO.id.codigoLineaComercial\"),\"id.codigoLineaComercial\")\n\t\t .add(Projections.property(\"lineaComercialDTO.id.codigoCompania\"),\"id.codigoCompania\")\n\t\t .add(Projections.property(\"lineaComercialDTO.codigoLineaComercialPadre\"),\"codigoLineaComercialPadre\"));\n\t\t \n\t\t\tcriteria.createAlias(\"lineaComercialDTO.lineaComercialClienteImportacionCol\", \"LineaComercialClienteImportacionDTO\");\n\t criteria.createAlias(\"LineaComercialClienteImportacionDTO.clienteImportacionDTO\", \"clienteImportacionDTO\");\n\t\t\t\t\t\t\t\t \n\t\t\t/**se valida que los valores a retornar sean activos**/\n\t criteria.add(Restrictions.eq(\"LineaComercialClienteImportacionDTO.estado\", SICConstantes.ESTADO_ACTIVO_NUMERICO));\n\t\t\tcriteria.add(Restrictions.eq(\"clienteImportacionDTO.estado\", SICConstantes.ESTADO_ACTIVO_LITERAL));\n\t\t\t\n\t\t\t/**se agrega las restricciones ingresadas por el cliente importacion**/\n\t\t\tcriteria.add(lineaComercialVO.getHasMapCriteriaRestriction().get(\"linComCliImp\").getCriteriaRestriction());\n\t\n\t\t\t\n\t\t\tcriteria.setResultTransformer(new DtoResultTransformer(LineaComercialDTO.class));\n\t\t \n\t\t\tCollection<LineaComercialDTO> lineaComercialDTOCol = criteria.list();\n\t\t\t\n\t\t\tHashSet<Long> codigoLineaComercial = new HashSet<Long>();\n\t\t\t\n\t\t\tif(lineaComercialVO.hasDynamicProperty(\"validaCodigosPadre\") && !(Boolean)lineaComercialVO.getDynamicProperty(\"validaCodigosPadre\")){\n\t\t\t\tCollectionUtils.collect(lineaComercialDTOCol, new BeanToPropertyValueTransformer(\"id.codigoLineaComercial\"), codigoLineaComercial);\n\t\t\t}else{\n\t\t\t\tfor(LineaComercialDTO linCom :lineaComercialDTOCol){\n\t\t\t\t\tif(linCom.getCodigoLineaComercialPadre() == null){\n\t\t\t\t\t\tcodigoLineaComercial.add(linCom.getId().getCodigoLineaComercial());\n\t\t\t\t\t}else{\n\t\t\t\t\t\tLong codigoLinCom = obtenerCodigoLineaComercialPadre(linCom);\n\t\t\t\t\t\tcodigoLineaComercial.add(codigoLinCom);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\n\t\t\treturn codigoLineaComercial;\n\t\t\t\n\t\t} catch (SICException e) {\n\t\t\tthrow new SICException(\"Error consultarCodigosLineaComercialesClienteImportacion: \",e);\n\t\t}\n\t}", "public void novoDebito(Debitos debitos, String conCodigo, Contas contaComSaldo) throws SQLException {\r\n String sqls = \"select * from contas where concodigo = \" + conCodigo + \" \";\r\n\r\n PreparedStatement psc = null;\r\n ResultSet rsc = null;\r\n try {\r\n psc = connection.prepareStatement(sqls);\r\n rsc = psc.executeQuery();\r\n while (rsc.next()) {\r\n contaComSaldo.setConCodigo(rsc.getInt(\"concodigo\"));\r\n contaComSaldo.setConDescricao(rsc.getString(\"condescricao\"));\r\n contaComSaldo.setTipoCodigo(rsc.getInt(\"tipocodigo\"));\r\n contaComSaldo.setConSaldo(rsc.getDouble(\"consaldo\"));\r\n }\r\n\r\n } catch (Exception e) {\r\n Logger.getLogger(ContaDAO.class.getName()).log(Level.SEVERE, null, e);\r\n\r\n }\r\n\r\n String sqlUltimoCredito = \"select * from creditos order by crecodigo desc limit 1\";\r\n\r\n PreparedStatement pscUltimoCredito = null;\r\n ResultSet rscUltimoCredito = null;\r\n\r\n Creditos creditos = new Creditos();\r\n\r\n try {\r\n\r\n pscUltimoCredito = connection.prepareStatement(sqlUltimoCredito);\r\n rscUltimoCredito = pscUltimoCredito.executeQuery();\r\n while (rscUltimoCredito.next()) {\r\n\r\n creditos.setCreCodigo(rscUltimoCredito.getInt(\"crecodigo\"));\r\n creditos.setCreData(rscUltimoCredito.getDate(\"credata\"));\r\n creditos.setConCodigo(rscUltimoCredito.getInt(\"concodigo\"));\r\n creditos.setCreValor(rscUltimoCredito.getInt(\"crevalor\"));\r\n creditos.setCreHistorico(rscUltimoCredito.getString(\"crehistorico\"));\r\n creditos.setConSaldo(rscUltimoCredito.getDouble(\"consaldo\"));\r\n }\r\n\r\n } catch (Exception e) {\r\n Logger.getLogger(DebitoDAO.class.getName()).log(Level.SEVERE, null, e);\r\n\r\n }\r\n\r\n String sql = \"insert into debitos (debdata,concodigo,debvalor,debhistorico,consaldo,creditoid) values (?,?,?,?,?,?)\";\r\n PreparedStatement ps = null;\r\n try {\r\n ps = connection.prepareStatement(sql);\r\n ps.setDate(1, new java.sql.Date(debitos.getDebData().getTime()));\r\n ps.setInt(2, debitos.getConCodigo());\r\n ps.setDouble(3, debitos.getDebValor() * -1);\r\n ps.setString(4, debitos.getDebHistorico());\r\n ps.setDouble(5, contaComSaldo.getConSaldo());\r\n ps.setInt(6, creditos.getCreCodigo());\r\n\r\n ps.execute();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(CreditoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n connection.close();\r\n ps.close();\r\n }\r\n }", "public int getClaveEntidad() {\n return claveEntidad;\n }", "private Long modificarCorreoElectronico(CorreoElectronico correo) {\n\t\ttry {\n\t\t\t gCorreoElectronico.modify(correo);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn correo.getIdCorreoElectronico();\n\t}", "public String consultaEqCiudad() {\n\t\tString res = \"\";\n\t\tString query = \"SELECT E.NOMBRE, C.NOMBRE FROM EQUIPOS E, CIUDADES C WHERE E.COD_CIUDAD == C.CODIGO\";\n\n\t\tConnection con = null;\n\t\tPreparedStatement pstmt = null;\n\t\tResultSet rslt = null;\n\n\t\ttry {\n\t\t\tcon = acceso.getConnection();\n\t\t\tpstmt = con.prepareStatement(query);\n\t\t\trslt = pstmt.executeQuery();\n\n\t\t\twhile (rslt.next()) {\n\t\t\t\tres = res + rslt.getString(1) + \" - \" + rslt.getString(2) + \"\\n\";\n\t\t\t}\n\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (rslt != null)\n\t\t\t\t\trslt.close();\n\t\t\t\tif (pstmt != null)\n\t\t\t\t\tpstmt.close();\n\t\t\t\tif (con != null)\n\t\t\t\t\tcon.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\treturn res;\n\t}", "public abstract java.lang.Integer getEspe_id();" ]
[ "0.62118924", "0.6178489", "0.6025264", "0.592217", "0.5763005", "0.5750685", "0.57333094", "0.5690474", "0.5642623", "0.55369407", "0.55183953", "0.54816", "0.5447268", "0.5424143", "0.5335093", "0.53339857", "0.5302803", "0.52976197", "0.52952284", "0.5291211", "0.5272", "0.52548206", "0.5235756", "0.5233483", "0.52306545", "0.522542", "0.5224624", "0.5220603", "0.5187078", "0.5181988", "0.51654994", "0.516373", "0.5145384", "0.51332396", "0.51299965", "0.51266587", "0.51233476", "0.5123165", "0.511621", "0.51153594", "0.5071506", "0.5070096", "0.5060537", "0.5056934", "0.50478303", "0.50424224", "0.50321686", "0.5031683", "0.5025295", "0.50174874", "0.50144136", "0.50132906", "0.5011823", "0.5002603", "0.49943566", "0.4994274", "0.49931294", "0.49905148", "0.4986854", "0.4982248", "0.49811158", "0.49785188", "0.49771234", "0.49736392", "0.4971868", "0.49712732", "0.4966877", "0.49630246", "0.49606642", "0.49591985", "0.49583948", "0.49567732", "0.49541292", "0.49498758", "0.49487936", "0.49448055", "0.49409586", "0.49330047", "0.49275717", "0.49255863", "0.49234155", "0.49214506", "0.49173146", "0.4912872", "0.4910645", "0.49091563", "0.4905316", "0.49011758", "0.490018", "0.48970369", "0.4895831", "0.4893592", "0.4892633", "0.48863116", "0.48848972", "0.4884018", "0.48792398", "0.4876251", "0.48743117", "0.4872" ]
0.5015672
50
This method was generated by MyBatis Generator. This method sets the value of the database column expediente_consulta.idExpeConsul
public void setIdexpeconsul(Integer idexpeconsul) { this.idexpeconsul = idexpeconsul; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIdExperienciaEducativa(Integer idExperienciaEducativa) {\r\n this.idExperienciaEducativa = idExperienciaEducativa;\r\n }", "public void setConsulta(final E consulta) {\n\n\t\tthis.consulta = consulta;\n\t}", "public void setIdExpediente(BigDecimal idExpediente) {\r\n this.idExpediente = idExpediente;\r\n }", "@Transactional\r\n\t@Modifying\r\n\t@Query(value = \"INSERT INTO CONSULTA_EXAMEN(ID_CONSULTA, ID_EXAMEN) VALUES (:idConsulta, :idExamen)\", nativeQuery = true)\r\n\t//METODO MANUAL\r\n\tint registrar(@Param(\"idConsulta\")int idConsulta, @Param(\"idExamen\") int idExamen);", "public void setEstadoEleicaoEncerrada(int idEleicao){\n this.eleicaoDB.setEstadoEleicaoEncerrada(idEleicao);\n }", "public void adicionaExame(ExameColposcopico exame) {\n\t\tEntityManager entityManager = ExameColposcopioFactory.carregaBanco();\n//\t\thttps://www.guj.com.br/t/hibernate-jsf-erro-ao-persistir-objeto/337939\n\t\tif (!entityManager.getTransaction().isActive()) \n\t\t\tentityManager.getTransaction().begin();\n\t\tentityManager.persist(exame);\n\t\tentityManager.getTransaction().commit();\n\t}", "public void setSecuenciaExpediente(BigDecimal secuenciaExpediente) {\r\n this.secuenciaExpediente = secuenciaExpediente;\r\n }", "public Integer getIdExperienciaEducativa() {\r\n return idExperienciaEducativa;\r\n }", "public void setCedula(Integer cedula) {this.cedula = cedula;}", "@Override\n\tpublic void addExperiencia(\n\t\t\tsimulaSAAB.modeloSimulacion.comunicacion.Experiencia e) {\n\t\t\n\t}", "public BigDecimal getIdExpediente() {\r\n return idExpediente;\r\n }", "public void setIdDetalleComponenteCosto(int idDetalleComponenteCosto)\r\n/* 63: */ {\r\n/* 64: 87 */ this.idDetalleComponenteCosto = idDetalleComponenteCosto;\r\n/* 65: */ }", "void actualizarExpedienteReplicado(Long idExpediente) throws NSJPNegocioException;", "public void establecerDatosRegistro(String sqlConsulta) throws SQLException {\n try {\n this.sqlConsulta = sqlConsulta;\n ejecutarResultSet();\n\n if (!resultSet.first()) {\n return;\n }\n\n int cantidadColumnas = resultSet.getMetaData().getColumnCount();\n\n String nombreColumna;\n String valorColumna;\n\n for (int i = 0; i < cantidadColumnas; i++) {\n nombreColumna = resultSet.getMetaData().getColumnName(i + 1);\n valorColumna = resultSet.getString(i + 1);\n columnas.put(nombreColumna, valorColumna);\n }\n } finally {\n cerrarResultSet();\n }\n }", "public int persisteInformacionInsertSelect(String queryInserSelect, String idProceso) throws Exception;", "@Override\r\n public ExpedienteGSMDTO editarExpedienteOrdenServicio(ExpedienteGSMDTO expedienteDTO, String codigoTipoSupervisor, PersonalDTO personalDest, UsuarioDTO usuarioDTO) throws ExpedienteException {\r\n LOG.error(\"editarExpediente\");\r\n ExpedienteGSMDTO retorno= new ExpedienteGSMDTO();\r\n try {\r\n PghExpediente registro = crud.find(expedienteDTO.getIdExpediente(), PghExpediente.class);\r\n registro.setIdFlujoSiged(new PghFlujoSiged(expedienteDTO.getFlujoSiged().getIdFlujoSiged()));\r\n registro.setIdProceso(new PghProceso(expedienteDTO.getProceso().getIdProceso()));\r\n registro.setIdObligacionTipo(new PghObligacionTipo(expedienteDTO.getObligacionTipo().getIdObligacionTipo()));\r\n registro.setAsuntoSiged(expedienteDTO.getAsuntoSiged());\r\n registro.setIdUnidadSupervisada(new MdiUnidadSupervisada(expedienteDTO.getUnidadSupervisada().getIdUnidadSupervisada()));\r\n registro.setIdEmpresaSupervisada(new MdiEmpresaSupervisada(expedienteDTO.getEmpresaSupervisada().getIdEmpresaSupervisada()));\r\n registro.setDatosAuditoria(usuarioDTO);\r\n if(expedienteDTO.getObligacionSubTipo()!=null && expedienteDTO.getObligacionSubTipo().getIdObligacionSubTipo()!=null){\r\n registro.setIdObligacionSubTipo(new PghObligacionSubTipo(expedienteDTO.getObligacionSubTipo().getIdObligacionSubTipo()));\r\n }else{\r\n registro.setIdObligacionSubTipo(null);\r\n }\r\n crud.update(registro);\r\n retorno = ExpedienteGSMBuilder.toExpedienteDto(registro); \r\n \r\n Long idLocador=codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_NATURAL)?expedienteDTO.getOrdenServicio().getLocador().getIdLocador():null;\r\n Long idSupervisoraEmpresa=codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_JURIDICA)?expedienteDTO.getOrdenServicio().getSupervisoraEmpresa().getIdSupervisoraEmpresa():null;\r\n \r\n String flagConfirmaTipoAsignacion=(!StringUtil.isEmpty(expedienteDTO.getFlagEvaluaTipoAsignacion())?Constantes.ESTADO_ACTIVO:null);\r\n OrdenServicioDTO OrdenServicioDTO=ordenServicioDAO.editarExpedienteOrdenServicio(expedienteDTO.getOrdenServicio().getIdOrdenServicio(), expedienteDTO.getOrdenServicio().getIdTipoAsignacion(), codigoTipoSupervisor, idLocador, idSupervisoraEmpresa, usuarioDTO,flagConfirmaTipoAsignacion);\r\n \r\n EstadoProcesoDTO estadoProcesoDto=estadoProcesoDAO.find(new EstadoProcesoFilter(Constantes.IDENTIFICADOR_ESTADO_PROCESO_OS_REGISTRO)).get(0);\r\n MaestroColumnaDTO tipoHistoricoOS=maestroColumnaDAO.findMaestroColumna(Constantes.DOMINIO_TIPO_COMPONENTE, Constantes.APLICACION_INPS, Constantes.CODIGO_TIPO_COMPONENTE_ORDEN_SERVICIO).get(0);\r\n HistoricoEstadoDTO historicoEstadoOS=historicoEstadoDAO.registrar(null, OrdenServicioDTO.getIdOrdenServicio(), estadoProcesoDto.getIdEstadoProceso(), expedienteDTO.getPersonal().getIdPersonal(), personalDest.getIdPersonal(), tipoHistoricoOS.getIdMaestroColumna(),null,null, null, usuarioDTO); \r\n LOG.info(\"historicoEstadoOS:\"+historicoEstadoOS);\r\n \r\n retorno.setOrdenServicio(new OrdenServicioDTO(OrdenServicioDTO.getIdOrdenServicio(),OrdenServicioDTO.getNumeroOrdenServicio()));\r\n \r\n }catch(Exception e){\r\n LOG.error(\"error en editarExpediente\",e);\r\n throw new ExpedienteException(e.getMessage(), e);\r\n }\r\n return retorno;\r\n }", "public void setConexionesDescartadas(int conexionesDescartadas){\n this.conexionesDescartadas = conexionesDescartadas;\n }", "public void atualizarIdContaEmpresaCobrancaConta(Integer idContaAntigo, Integer idContaNovo)throws ErroRepositorioException;", "public void setCodigoExpediente(String codigoExpediente) {\r\n this.codigoExpediente = codigoExpediente == null ? null : codigoExpediente.trim();\r\n }", "public void setEmpresa(Empresa empresa)\r\n/* 89: */ {\r\n/* 90:141 */ this.empresa = empresa;\r\n/* 91: */ }", "public int getIdExamCcEtudiant(String matricule, int idMatiere){\n int id ;\n Query query = em.createQuery(\"select etuex.idexamen from EtudiantExam etuex,Examen exam, MatiereExam matexam where etuex.matricule := ?1 and matexam.idmatiere := ?2 and matexam.idexamen := exam.idexamen and exam.type := 'CC' and exam.idexamen := etuex.idexamen\");\n id = (int)query.getSingleResult(); \n return id;\n \n }", "public ColecaoConsultas() {\r\n\t\tcol = new ArrayList<Consulta>();\r\n\t}", "public void excluir(AlunosMilitaresOMDS excluirEfetivo) {\n\t\tsuper.executar(() -> {repository.apagar(AlunosMilitaresOMDS.class, excluirEfetivo.getId()); init();}, SUCESSO, FALHA);\n\t}", "public void EjecutarConsulta() {\n try {\n Consultar(\"select * from \"+table);\n this.resultSet = preparedStatement.executeQuery();\n } catch (Exception e) {\n// MessageEmergent(\"Fail EjecutarConsulta(): \"+e.getMessage());\n }\n }", "@Override\n public void modificarConfiguracion(Entity e) throws SQLException {\n Connection conexion;\n ResultSet result = null;\n String select= \"UPDATE config_notificacion SET \" +\n \"con_not_boletin = ?, con_not_recibir =? , \" +\n \"con_not_preferencias = ?, con_not_suscripciones = ?, \" +\n \"con_not_etiquetado = ?, con_not_estadisticas =? \" +\n \"WHERE con_not_id = ?;\";\n PreparedStatement ps = null;\n Entity config = (ConfiguracionNotificaciones) e;\n try {\n conexion = getBdConnect();\n ps = conexion.prepareStatement(select);\n ps.setInt(1, config.get_id());\n }\n catch (SQLException error){\n error.printStackTrace();\n }\n finally {\n closeConnection();\n }\n }", "public void setCedula(int value) {\n this.cedula = value;\n }", "public void SuppIndispo(String date, int refEnseignant) throws SQLException {\r\n\r\n\t\ttry {\r\n\r\n\t\t\t/** Connection à la base - Étape 2 */\r\n\t\t\tString url = \"jdbc:oracle:thin:@miage03.dmiage.u-paris10.fr:1521:MIAGE\";\r\n\t\t\tConnection cx = DriverManager.getConnection(url, \"maletell\",\r\n\t\t\t\t\t\"matthieu\");\r\n\t\t\tStatement request = cx.createStatement();\r\n\r\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\t\tjava.util.Date dateD = format.parse(date);\r\n\t\t\tGregorianCalendar cal = new java.util.GregorianCalendar();\r\n\t\t\tcal.setTime(dateD);\r\n\r\n\t\t\trequest.executeUpdate(\"DELETE FROM Indisponibilite WHERE NO_ENSEIGNANT = \"\r\n\t\t\t\t\t+ refEnseignant\r\n\t\t\t\t\t+ \" AND DATE_INDISPO = \"\r\n\t\t\t\t\t+ DAO.dateFromJavaToOracle(cal));\r\n\r\n\t\t\tcx.commit();\r\n\t\t\trequest.close();\r\n\t\t\tcx.close();\r\n\r\n\t\t} catch (ParseException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void setCorretores() throws SQLException {\n\t\t\n\t\tUsuarioDAO dao = new UsuarioDAO();\n\t\tList<Usuario> usu = dao.getTodosCorretores();\n\t\t\n\t\tfor(Usuario usuario : usu)\t\t\t\n\t\t\tcorretores.add(new SelectItem(usuario.getCodigoPessoa(),usuario.getNome()));\n\t\t\t\t\t\n\t}", "public void novoDebito(Debitos debitos, String conCodigo, Contas contaComSaldo) throws SQLException {\r\n String sqls = \"select * from contas where concodigo = \" + conCodigo + \" \";\r\n\r\n PreparedStatement psc = null;\r\n ResultSet rsc = null;\r\n try {\r\n psc = connection.prepareStatement(sqls);\r\n rsc = psc.executeQuery();\r\n while (rsc.next()) {\r\n contaComSaldo.setConCodigo(rsc.getInt(\"concodigo\"));\r\n contaComSaldo.setConDescricao(rsc.getString(\"condescricao\"));\r\n contaComSaldo.setTipoCodigo(rsc.getInt(\"tipocodigo\"));\r\n contaComSaldo.setConSaldo(rsc.getDouble(\"consaldo\"));\r\n }\r\n\r\n } catch (Exception e) {\r\n Logger.getLogger(ContaDAO.class.getName()).log(Level.SEVERE, null, e);\r\n\r\n }\r\n\r\n String sqlUltimoCredito = \"select * from creditos order by crecodigo desc limit 1\";\r\n\r\n PreparedStatement pscUltimoCredito = null;\r\n ResultSet rscUltimoCredito = null;\r\n\r\n Creditos creditos = new Creditos();\r\n\r\n try {\r\n\r\n pscUltimoCredito = connection.prepareStatement(sqlUltimoCredito);\r\n rscUltimoCredito = pscUltimoCredito.executeQuery();\r\n while (rscUltimoCredito.next()) {\r\n\r\n creditos.setCreCodigo(rscUltimoCredito.getInt(\"crecodigo\"));\r\n creditos.setCreData(rscUltimoCredito.getDate(\"credata\"));\r\n creditos.setConCodigo(rscUltimoCredito.getInt(\"concodigo\"));\r\n creditos.setCreValor(rscUltimoCredito.getInt(\"crevalor\"));\r\n creditos.setCreHistorico(rscUltimoCredito.getString(\"crehistorico\"));\r\n creditos.setConSaldo(rscUltimoCredito.getDouble(\"consaldo\"));\r\n }\r\n\r\n } catch (Exception e) {\r\n Logger.getLogger(DebitoDAO.class.getName()).log(Level.SEVERE, null, e);\r\n\r\n }\r\n\r\n String sql = \"insert into debitos (debdata,concodigo,debvalor,debhistorico,consaldo,creditoid) values (?,?,?,?,?,?)\";\r\n PreparedStatement ps = null;\r\n try {\r\n ps = connection.prepareStatement(sql);\r\n ps.setDate(1, new java.sql.Date(debitos.getDebData().getTime()));\r\n ps.setInt(2, debitos.getConCodigo());\r\n ps.setDouble(3, debitos.getDebValor() * -1);\r\n ps.setString(4, debitos.getDebHistorico());\r\n ps.setDouble(5, contaComSaldo.getConSaldo());\r\n ps.setInt(6, creditos.getCreCodigo());\r\n\r\n ps.execute();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(CreditoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n connection.close();\r\n ps.close();\r\n }\r\n }", "public E getConsulta() {\n\n\t\treturn this.consulta;\n\t}", "public void setIdCargaEmpleado(int idCargaEmpleado)\r\n/* 108: */ {\r\n/* 109:195 */ this.idCargaEmpleado = idCargaEmpleado;\r\n/* 110: */ }", "private void registrarAnexoExcepcion(RegistroRadicarExcepcionDTO registroRadicarExcepcionDTO)\n throws CirculemosAlertaException {\n logger.debug(\"CoactivoEJB.registrarAnexoExcepcion(RegistroRadicarExcepcionDTO)\");\n // Calculo de ruta: anno/mes/proceso\n String ruta = \"c2/anexosExcepcion/\" + Calendar.getInstance().get(Calendar.YEAR) + \"/\"\n + Calendar.getInstance().get(Calendar.MONTH) + \"/Proceso-\"\n + registroRadicarExcepcionDTO.getRadicarExcepcionDTO().getCoactivoDTO().getProceso().getId();\n\n for (RegistroArchivoExcepcionDTO registroArchivoExcepcionDTO : registroRadicarExcepcionDTO\n .getRegistroArchivoExcepcionDTOs()) {\n ArchivoExcepcion archivoExcepcion = new ArchivoExcepcion();\n archivoExcepcion.setFechaRegistro(Calendar.getInstance().getTime());\n archivoExcepcion.setNombreArchivo(registroArchivoExcepcionDTO.getArchivoTransportableDTO().getNombre());\n archivoExcepcion.setFalloExcepcion(registroArchivoExcepcionDTO.isFalloExcepcion());\n\n registroArchivoExcepcionDTO.getArchivoTransportableDTO().setRuta(ruta);\n OpcionGestorFileSystem ogfs = new OpcionGestorFileSystem();\n ogfs.setUbicacion(ruta);\n\n archivoExcepcion.setNumeroArchivo(irRepositorioArchivo.registrarDocumento(null,\n registroArchivoExcepcionDTO.getArchivoTransportableDTO(), ogfs));\n\n RadicarExcepcion radicarExcepcion = new RadicarExcepcion();\n radicarExcepcion.setIdRadicarExcepcion(\n registroRadicarExcepcionDTO.getRadicarExcepcionDTO().getIdRadicarExcepcion());\n archivoExcepcion.setRadicarExcepcion(radicarExcepcion);\n em.persist(archivoExcepcion);\n }\n\n }", "public ControlMuestraServicios( ServicioConsulta servicioConsulta) {\r\n\t\tthis.servicioConsulta=servicioConsulta;\r\n\t\t\r\n\t}", "public void verificarExistenciaCELPE(String numeroCelp, Integer idSetorComercial) throws ControladorException {\r\n\r\n\t\tCollection setorComerciais = null;\r\n\t\tif (idSetorComercial != null) {\r\n\t\t\tFiltroSetorComercial filtroSetorComercial = new FiltroSetorComercial();\r\n\t\t\tfiltroSetorComercial\r\n\t\t\t\t\t.adicionarParametro(new ParametroSimples(FiltroSetorComercial.ID, new Integer(idSetorComercial)));\r\n\t\t\tfiltroSetorComercial.adicionarCaminhoParaCarregamentoEntidade(FiltroSetorComercial.MUNICIPIO);\r\n\t\t\tsetorComerciais = getControladorUtil().pesquisar(filtroSetorComercial, SetorComercial.class.getName());\r\n\t\t}\r\n\r\n\t\tFiltroImovel filtroImovel = new FiltroImovel();\r\n\t\tif (setorComerciais != null && !setorComerciais.isEmpty()) {\r\n\t\t\tSetorComercial setorComercial = (SetorComercial) setorComerciais.iterator().next();\r\n\t\t\tfiltroImovel.adicionarParametro(new ParametroSimples(FiltroImovel.SETOR_COMERCIAL_MUNICIPIO_ID,\r\n\t\t\t\t\tsetorComercial.getMunicipio().getId()));\r\n\t\t}\r\n\t\tfiltroImovel.adicionarParametro(new ParametroSimples(FiltroImovel.NUMERO_CELPE, numeroCelp));\r\n\r\n\t\tCollection imoveis = getControladorUtil().pesquisar(filtroImovel, Imovel.class.getName());\r\n\r\n\t\tif (imoveis != null && !imoveis.isEmpty()) {\r\n\t\t\tString idMatricula = \"\" + ((Imovel) ((List) imoveis).get(0)).getId();\r\n\r\n\t\t\tsessionContext.setRollbackOnly();\r\n\t\t\tthrow new ControladorException(\"atencao.imovel.numero_celpe_jacadastrado\", null, idMatricula);\r\n\t\t}\r\n\r\n\t\tFiltroImovelEconomia filtroImovelEconomia = new FiltroImovelEconomia();\r\n\t\t// filtroImovelEconomia.adicionarParametro(new\r\n\t\t// ParametroSimples(FiltroImovelEconomia.IMOVEL_ID, imovel.getId()));\r\n\t\tif (setorComerciais != null && !setorComerciais.isEmpty()) {\r\n\t\t\tSetorComercial setorComercial = (SetorComercial) setorComerciais.iterator().next();\r\n\t\t\tfiltroImovelEconomia.adicionarParametro(\r\n\t\t\t\t\tnew ParametroSimples(FiltroImovelEconomia.MUNICIPIO_ID, setorComercial.getMunicipio().getId()));\r\n\t\t}\r\n\t\tfiltroImovelEconomia.adicionarParametro(new ParametroSimples(FiltroImovelEconomia.NUMERO_CELPE, numeroCelp));\r\n\t\tfiltroImovelEconomia.adicionarCaminhoParaCarregamentoEntidade(\"imovelSubcategoria\");\r\n\t\tfiltroImovelEconomia.adicionarCaminhoParaCarregamentoEntidade(\"imovelSubcategoria.comp_id.imovel\");\r\n\r\n\t\tCollection imoveisEconomiaPesquisadas = getControladorUtil().pesquisar(filtroImovelEconomia,\r\n\t\t\t\tImovelEconomia.class.getName());\r\n\r\n\t\tif (!imoveisEconomiaPesquisadas.isEmpty()) {\r\n\t\t\tImovelEconomia imovelEconomia = (ImovelEconomia) ((List) imoveisEconomiaPesquisadas).get(0);\r\n\r\n\t\t\tString idMatricula = \"\" + imovelEconomia.getImovelSubcategoria().getComp_id().getImovel().getId();\r\n\r\n\t\t\tsessionContext.setRollbackOnly();\r\n\t\t\tthrow new ControladorException(\"atencao.imovel.numero_celpe_jacadastrado\", null, idMatricula);\r\n\t\t}\r\n\t}", "public int idEmpleado(int cui) throws SQLException{\n obtenerConexion();\n int id = 0;\n PreparedStatement declaracionId = cn.prepareStatement(ID_EMPLEADO);\n declaracionId.setInt(1, cui);\n ResultSet result = declaracionId.executeQuery();\n while(result.next()){\n id = result.getInt(\"id\");\n }\n login.Desconectar();\n return id;\n }", "public void setEjercicio(Ejercicio ejercicio)\r\n/* 150: */ {\r\n/* 151:193 */ this.ejercicio = ejercicio;\r\n/* 152: */ }", "public String getCodigoExpediente() {\r\n return codigoExpediente;\r\n }", "public void excluirClienteConta(Integer idFaturamentoGrupo , Integer anoMesReferencia) throws ErroRepositorioException ;", "public void setConsultaDinamica(String consultaDinamica) {\r\n\t\tthis.consultaDinamica = consultaDinamica;\r\n\t}", "public void setIdCliente(Integer id_cliente){\n this.id_cliente=id_cliente;\n }", "public void setCuentaContableCierre(CuentaContable cuentaContableCierre)\r\n/* 103: */ {\r\n/* 104:119 */ this.cuentaContableCierre = cuentaContableCierre;\r\n/* 105: */ }", "public CensoSeccionE() {\n this.columnName1=\"\";\n this.columnName2=\"\";\n this.Total_institu=0;\n this.Total_severo=0;\n }", "public void affecterDepartementAEntreprise(int depId, int entrepriseId) {\n\t\ttry{\n\t\tlogger.info(\"Dans la methode AffecterDepartement()\");\n\t\tlogger.debug(\"Je vais lancer l'ajout AffecterDepartement().\");\n\t\t\n\t\t\t\tEntreprise entrepriseManagedEntity = entrepriseRepoistory.findById(entrepriseId).get();\n\t\t\t\tDepartement depManagedEntity = deptRepoistory.findById(depId).get();\n\t\t\t\t\n\t\t\t\tdepManagedEntity.setEntreprise(entrepriseManagedEntity);\n\t\t\t\tlogger.debug(\"avant save\");\n\t\t\t\tdeptRepoistory.save(depManagedEntity);\n\t\t\t\tlogger.debug(\"aprés save\");\n\t\t\t\t\n\t\t\t\tlogger.debug(\"Je viens de finir l'ajout .\");\n\t\t\t\tlogger.info(\"Out AffecterDepartement() without errors avec.\");\n\t\t\t\t}\n\t\tcatch (Exception e) \n\t\t{ \n\t\tlogger.error(\"Erreur dans AffecterDepartement() : \" + e); }\n\t\tlogger.info(\"fin methode AffecterDepartement() .\");\n\t\t\n\t}", "public void setFechaconsulta(Date fechaconsulta) {\r\n this.fechaconsulta = fechaconsulta;\r\n }", "public void setDeci(int c){\n this.deci = c;\n }", "public void setContraparte(es.gob.agenciatributaria.www2.static_files.common.internet.dep.aplicaciones.es.aeat.ssii.fact.ws.SuministroInformacion_xsd.ContraparteConsultaType contraparte) {\r\n this.contraparte = contraparte;\r\n }", "public long getIdCadastroSelecionado(){\r\n \treturn idCadastroSelecionado;\r\n }", "public HospedagemBean select (int cdHospedagem, Connection conexao) throws Exception{\n\t\t\tstmt = conexao.prepareStatement(\"SELECT H.CD_HOSPEDAGEM, R.CD_RESERVA, C.CD_PESSOA, C.NM_PESSOA, F.CD_FUNCIONARIO, H.DT_ENTRADA, H.VC_PERC_DESCONTO FROM T_AM_LDB_HOSPEDAGEM H INNER JOIN T_AM_LDB_PESSOA C ON H.CD_CLIENTE = C.CD_PESSOA INNER JOIN T_AM_LDB_FUNCIONARIO F ON H.CD_FUNCIONARIO = F.CD_FUNCIONARIO INNER JOIN T_AM_LDB_RESERVA R ON H.CD_RESERVA = R.CD_RESERVA WHERE H.CD_HOSPEDAGEM = ?\");\n\t\t\tstmt.setInt(1, cdHospedagem);\n\t\t\trs = stmt.executeQuery();\n\t\t\trs.next();\n\t\t\tHospedagemBean hp = new HospedagemBean();\n\t\t\thp.setCodigoHospedagem(rs.getInt(\"CD_HOSPEDAGEM\"));\n\t\t\tReservaBean r = new ReservaBean();\n\t\t\tr.setCodigoReserva(rs.getInt(\"CD_RESERVA\"));\n\t\t\thp.setReserva(r);\n\t\t\tClienteBean c = new ClienteBean();\n\t\t\tc.setCodigoPessoa(rs.getInt(\"CD_PESSOA\"));\n\t\t\tc.setNomePessoa(rs.getString(\"NM_PESSOA\"));\n\t\t\thp.setCliente(c);\n\t\t\tFuncionarioBean f = new FuncionarioBean();\n\t\t\tf.setCodigoPessoa(rs.getInt(\"CD_FUNCIONARIO\"));\n\t\t\thp.setFuncionario(f);\n\t\t\tCalendar cal = null;\n\t\t\tcal = Calendar.getInstance();\n\t\t\tcal.setTime(rs.getDate(\"DT_ENTRADA\"));\n\t\t\thp.setDataEntrada(cal);\n\t\t\thp.setDesconto(rs.getInt(\"VC_PERC_DESCONTO\"));\n\t\t\treturn hp;\n\t}", "public void excluir() {\n try {\n ClienteDao fdao = new ClienteDao();\n fdao.Excluir(cliente);\n\n JSFUtil.AdicionarMensagemSucesso(\"Cliente excluido com sucesso!\");\n\n } catch (RuntimeException e) {\n JSFUtil.AdicionarMensagemErro(\"Não é possível excluir um cliente que tenha uma venda associado!\");\n e.printStackTrace();\n }\n }", "public void setIdSucursal(int idSucursal)\r\n/* 105: */ {\r\n/* 106:134 */ this.idSucursal = idSucursal;\r\n/* 107: */ }", "@Override\n\tpublic void activarClasificacionesDepartamento(String userId, Long codigoLineaComercial, Collection<ClasificacionDTO> clasificacionCol) throws SICException {\n\t\tLogeable.LOG_SICV2.info(\"Activar las clasificaciones de la linea comercial: {}\");\n\t\tStringBuilder query = null;\n\t\tQuery sqlQuery = null;\n\t\ttry {\n\t\t\tString codigosClasificaciones = \"\";\n\t\t\t\n\t\t\t//Obtenemos los codigos de las clasificaciones\n\t\t\tfor(ClasificacionDTO clasificacionDTO:clasificacionCol){\n\t\t\t\tcodigosClasificaciones = codigosClasificaciones + \"'\" + clasificacionDTO.getId().getCodigoClasificacion()+\"',\" ;\n\t\t\t}\n\t\t\tcodigosClasificaciones = codigosClasificaciones.substring(0, codigosClasificaciones.length()-1);\n\t\t\tLogeable.LOG_SICV2.info(\"Codigos: {}\",codigosClasificaciones);\n\t\t\n\t\t\tSession session = hibernateH.getHibernateSession();\n\t\t\tsession.clear();\n\n\t\t\tquery = new StringBuilder();\n\t\t\tquery.append(\"UPDATE SCADMTLINCOMCLA \");\n\t\t\tquery.append(\"SET ESTADO = '1' \");\n\t\t\tquery.append(\"WHERE CODIGOCLASIFICACION\");\n\t\t\tquery.append(\" IN (SELECT CODIGOCLASIFICACION FROM SCSPETCLASIFICACION C WHERE ESTADOCLASIFICACION='1'\");\n\t\t\tquery.append(\"AND CODIGOCLASIFICACIONPADRE\");\n\t\t\tquery.append(\" IN(SELECT CODIGOCLASIFICACION FROM SCSPETCLASIFICACION\");\n\t\t\tquery.append(\" WHERE CODIGOCLASIFICACION IN(\" + codigosClasificaciones +\")\");\n\t\t\tquery.append(\"AND ESTADOCLASIFICACION='1')\");\n\t\t\tquery.append(\"AND C.CODIGOCLASIFICACION\");\n\t\t\tquery.append(\" IN(SELECT CODIGOCLASIFICACION FROM SCADMTLINCOMCLA WHERE CODIGOLINEACOMERCIAL='\"+codigoLineaComercial+\"' AND ESTADO ='0'))\");\n\t\t\tquery.append(\"AND CODIGOLINEACOMERCIAL =\"+codigoLineaComercial);\n\t\t\tsqlQuery = session.createSQLQuery(query.toString());\n\t\t\tsqlQuery.executeUpdate();\n\t\t\tsession.flush();\n\t\t\t\n\t\t\t//Asignar Clasificaciones de la linea comercial\n\t\t\tasignarClasificacionesDepartamento(userId, codigoLineaComercial, clasificacionCol);\n\t\t} catch (Exception e) {\n\t\t\tLogeable.LOG_SICV2.info(\"Error al activar las clasificaciones de la linea comercial {}\", e);\n\t\t\tthrow new SICException(\"Error al activar las clasificaciones de la linea comercial {}\", e);\n\t\t}\t\t\n\t}", "public void liberarConexoesEmUso (long idProcesso) {\r\n this._delegate.liberarConexoesEmUso(idProcesso);\r\n }", "public int ModificarAnuncioTematico(AnuncioDTO anuncioDTO){\n int status=0;\n try{\n Connection conect = getConection();\n Properties sqlProp = new Properties();\n InputStream is = new FileInputStream(sqlPropertiesPath);\n sqlProp.load(is);\n PreparedStatement ps = conect.prepareStatement(sqlProp.getProperty(\"modificar.AnuncioTematico\"));\n ps.setString(1, anuncioDTO.getTitulo());\n ps.setString(2, anuncioDTO.getCuerpo());\n ps.setString(3, anuncioDTO.getEstadoAnuncio().toString()); \n String intereses=\"\"; \n \n for(String interes : anuncioDTO.getTemas()){\n intereses+=interes.toLowerCase()+\",\";\n }\n \n if(intereses.length()>0){\n \n intereses=intereses.substring(0,intereses.length()-1);\n }\n \n ps.setString(4, intereses);\n\n ps.setInt(5, anuncioDTO.getId());\n\n status=ps.executeUpdate();\n\n BorrarAnuncioDestinatarios(anuncioDTO.getId());\n\n PreparedStatement psAddDestinatario = conect.prepareStatement(sqlProp.getProperty(\"insertar.Destinatario\"));\n psAddDestinatario.setInt(1, anuncioDTO.getId());\n for(String destinatario : anuncioDTO.getDestinatarios()){\n psAddDestinatario.setString(2, destinatario);\n ps.executeUpdate();\n } \n\n }catch(Exception e){\n e.printStackTrace();\n }\n\n return status;\n }", "public void setCodigoEmpresa(String codigoEmpresa) {\n this.codigoEmpresa = codigoEmpresa;\n }", "public UtilDTO modificarEstatusIbBeneficiariosPorEmpresaPjDTO(String idEmpresa, Long idbCargaPagosCorpDetPjDTO, Long idBeneficiario, Short estatusBeneficiario, Short estatusAutorizacion, String idCanal, String codigoCanal);", "public void setIdCandidatura(int idCandidatura){\n if (idCandidatura < 0 ) {\n throw new IdInvalidoException(\"Id da Candidatura é inválido!\");\n }\n this.idCandidatura = idCandidatura;\n }", "public void fecharConta() {\n\t\tcliente.setConta(new Conta());\r\n\t\tRepositorioCliente repositorioCliente = new FabricaRepositorio().getRepCliente();\r\n\t\trepositorioCliente.editar((ClienteIndividual)cliente);\r\n//\t\tGerenciadorContaImpl contaImpl = new GerenciadorContaImpl();\r\n//\t\ttry {\r\n//\t\t\tcontaImpl.fecharConta(cliente);\r\n//\t\t} catch (OperacaoInvalidaException e) {\r\n//\t\t\te.printStackTrace();\r\n//\t\t}\r\n\t}", "public void setDACTEsclave(PopUpDataAccessCtrlr monEsclave) {\r\n\tdactEsclave = monEsclave;\r\n\t// en profiter pour dire � mon esclave qui est le maitre (source de donn�es pour ces param�tres !)\r\n\tif (monEsclave != null) monEsclave.setObjetSource(this);\r\n }", "public HTMLSelectElement getElementCodigoEmpleado() { return this.$element_CodigoEmpleado; }", "public void setEspecialidad (EspecialidadEntity pEspecialidad)\r\n {\r\n this.especialidad = pEspecialidad;\r\n }", "public void setIdSucursal(int idSucursal)\r\n/* 123: */ {\r\n/* 124:135 */ this.idSucursal = idSucursal;\r\n/* 125: */ }", "public void editarEmpresa (Empresa empresa) throws Exception{\r\n\t\tEmpresa emp = daoEmpresa.buscarEmpresa(empresa.getId());\r\n\t\t\r\n\t\tif(emp != null){\r\n\t\t\tdaoEmpresa.editarEmpresa(empresa);\r\n\t\t}else{\r\n\t\t\tthrow new ExcepcionNegocio(\"No hay empresa registrada con este ID\");\r\n\t\t}\r\n\t}", "public void peleaEn(int idPeleador,int idEmpresa){\n\t\t\n\t}", "public void setIdCliente(int value) {\n this.idCliente = value;\n }", "public void setEulaId(long eulaId) {\n this.eulaId = eulaId;\n }", "public TcUnidadEdoDTO(java.lang.Integer idEdo, java.lang.String idUnidad, java.lang.Integer uniEdoCiclo, \n java.util.Date fecModifico, java.lang.String usuario) {\n this.idEdo = idEdo;\n this.idUnidad = idUnidad;\n this.uniEdoCiclo = uniEdoCiclo;\n this.fecModifico = fecModifico;\n this.usuario = usuario;\n }", "public static void guardarNuevaConsulta(Consulta consulta) throws SQLException {\n\t\tjava.sql.Date fechaSQL = new java.sql.Date(consulta.getFecha().getTime());\r\n\t\t\r\n\t\tconsultaInsertarConsulta.setDate(1, fechaSQL);\r\n\t\tconsultaInsertarConsulta.setString(2, consulta.getMascota().getNroPatente());\r\n\t\tconsultaInsertarConsulta.setString(3, consulta.getVeterinario().getCodigo());\r\n\t\tconsultaInsertarConsulta.executeQuery();\r\n\r\n\t}", "private Long modificarCorreoElectronico(CorreoElectronico correo) {\n\t\ttry {\n\t\t\t gCorreoElectronico.modify(correo);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn correo.getIdCorreoElectronico();\n\t}", "public void setIdSucursal(int idSucursal)\r\n/* 109: */ {\r\n/* 110:179 */ this.idSucursal = idSucursal;\r\n/* 111: */ }", "@Test\n public void testSetId_edificio() {\n System.out.println(\"setId_edificio\");\n int id_edificio = 1;\n DboEdificio instance = new DboEdificio(1, \"T-3\");\n instance.setId_edificio(id_edificio);\n \n }", "public void activarInactivarClasificacionesLineaComercial(String userId, Long codigoLineaComercial,Long codigoLineaComercialCambio, Collection<LineaComercialClasificacionDTO> lineaComercialClasificacionCol, String estado)throws SICException{\n\t\tLogeable.LOG_SICV2.info(\"Activa o inactiva las clasificaciones de una linea comercial: {}\");\n\t\tStringBuilder query = null;\n\t\tQuery sqlQuery = null;\n\t\t\n\t\ttry {\n\t\t\tString codigosClasificaciones = \"\";\n\t\t\tList<String> codigosList = new ArrayList<String>();\t\t\t\n\t\t\t//Obtenemos los codigos de las clasificaciones\n\t\t\tfor(LineaComercialClasificacionDTO lineaComercialClasificacionDTO:lineaComercialClasificacionCol){\n\t\t\t\tcodigosList.add(lineaComercialClasificacionDTO.getId().getCodigoClasificacion());\n\t\t\t\tcodigosClasificaciones = codigosClasificaciones + \"'\" + lineaComercialClasificacionDTO.getId().getCodigoClasificacion()+\"',\" ;\n\t\t\t}\n\t\t\tcodigosClasificaciones = codigosClasificaciones.substring(0, codigosClasificaciones.length()-1);\n\t\t\tLogeable.LOG_SICV2.info(\"Codigos: {}\",codigosClasificaciones);\n\t\t\t\n\t\t\t// se remueve las relaciones entre clasificacion, funcionario y la linea comercial a la que se esta reasignando\n\t\t\tremoverLineaComercialFuncionarioClasificacion(codigoLineaComercial.toString(), codigosList);\t\t\n\t\t\t\n\t\t\tSession session = hibernateH.getHibernateSession();\n\t\t\tsession.clear();\n\n\t\t\t\tquery = new StringBuilder();\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\tquery.append(\"UPDATE SCADMTLINCOMCLA \");\n\t\t\tif(codigoLineaComercialCambio==null){\n\t\t\t\tquery.append(\" SET ESTADO = '\"+estado+\"' \");\n\t\t\t}else{\n\t\t\t\tquery.append(\" SET CODIGOLINEACOMERCIAL = '\"+codigoLineaComercialCambio+\"' \");\t\t\n\t\t\t}\n\t\t\t\tquery.append(\" ,IDUSUARIOMODIFICACION = '\"+userId+\"' \");\n\t\t\t\tquery.append(\" ,FECHAMODIFICACION = CURRENT_TIMESTAMP \");\n\t\t\t\tquery.append(\" WHERE CODIGOCLASIFICACION IN(\" + codigosClasificaciones +\") \");\n\t\t\t\tquery.append(\" AND CODIGOLINEACOMERCIAL = '\"+codigoLineaComercial+\"'\");\n\t\t\t\t\n\t\t\tsqlQuery = session.createSQLQuery(query.toString());\n\t\t\tsqlQuery.executeUpdate();\n\t\t\tsession.flush();\n\t\t\t\n\t\t\t//se agrega las relaciones entre clasificacion\n\t\t\tagregarLineaComercialFuncionarioClasificacion(codigoLineaComercialCambio, userId, codigosList);\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tLogeable.LOG_SICV2.info(\"Error al activar las clasificaciones de la linea comercial {}\", e);\n\t\t\tthrow new SICException(\"Error al activar las clasificaciones de la linea comercial {}\", e);\n\t\t}\n\t}", "public void setIdUsuario(int value) {\n this.idUsuario = value;\n }", "public void encerraServico(Servico servico) throws SQLException {\r\n\r\n servico.setStatus(0);\r\n servico.setDtEncerramento(LocalDateTime.now().format(DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\")));\r\n\r\n System.out.println(servico.toString());\r\n update(servico);\r\n String sql = \"UPDATE solicitacoes SET em_chamado=4 WHERE servico_id_servico= \" + servico.getCell(0).getValue();\r\n\r\n stmt = conn.createStatement();\r\n stmt.execute(sql);\r\n stmt.close();\r\n\r\n }", "public void setEntidad(int entidad) {\n this.entidad = entidad;\n }", "public void setConsultDetail(String consultDetail) {\n this.consultDetail = consultDetail;\n }", "public void anularPer(String cedula){\r\n String sql = \"UPDATE \\\"HIP_PERSONAS\\\" SET \\\"PER_ESTADO\\\" = 'I' WHERE \\\"PER_CEDULA\\\" = '\" + cedula + \"'\";\r\n System.out.println(\"Persona Eliminada eliminada \" + sql);\r\n db.conectar();\r\n try {\r\n\r\n Statement sta = db.getConexionBD().createStatement();\r\n sta.execute(sql);\r\n db.desconectar();\r\n\r\n } catch (SQLException error) {\r\n\r\n error.printStackTrace();\r\n\r\n }\r\n }", "public void excluirConta(Integer idFaturamentoGrupo , Integer anoMesReferencia) throws ErroRepositorioException ;", "public void setFechaExpedicion(String p) { this.fechaExpedicion = p; }", "public void setIdContrato(BigDecimal idContrato) {\r\n this.idContrato = idContrato;\r\n }", "public void setIdSucursal(int idSucursal)\r\n/* 98: */ {\r\n/* 99:176 */ this.idSucursal = idSucursal;\r\n/* 100: */ }", "@Override\n\tpublic void AdiconarCarrinho(EntidadeDominio entidade) throws SQLException {\n\t}", "public void modificarcliente(ClienteHabitual cliente)throws SQLException{\n Connection conexion = null;\n \n try{\n conexion = GestionSQL.openConnection();\n if(conexion.getAutoCommit()){\n conexion.setAutoCommit(false);\n }\n ClientesHabitualesDatos clientesdatos = new ClientesHabitualesDatos(conexion);\n clientesdatos.update(cliente);\n conexion.commit();\n System.out.println(\"Cliente modificado con exito\");\n }catch(SQLException e){\n System.out.println(\"Error en modificacion de cliente \"+e);\n try{\n conexion.rollback();\n }catch(SQLException ex){\n System.out.println(\"Error en rollback de modificacion cliente \"+ex);\n }\n }finally{\n if(conexion != null){\n conexion.close();\n }\n }\n }", "public void setDaoDipendenti(DAODipendenti daoDipendenti) {\n this.daoDipendenti = daoDipendenti;\n }", "public Collection pesquisarFatura(Integer idCliente,\n\t\t\tInteger anoMesReferencia, Integer numeroSequencial,\n\t\t\tBigDecimal valordebito) throws ErroRepositorioException;", "public void setIdEstatusClave(int idEstatusClave) {\r\n\t\tthis.idEstatusClave = idEstatusClave;\r\n\t}", "@FXML\n public void excluiCidade(){\n\t\tCidade sel = tblCidade.getSelectionModel().getSelectedItem();\n\t\t\n \tif(sel!=null){\n \t\tif(Mensagens.msgExcluir()){\n \t\t\tsel.exclui(conn);\n \t\t\tattTblCidade();\n \t\t\tlimpaCidade();\n \t\t\tMensagens.msgInformacao(\"Sucesso\", \"Cidade excluída com êxito\");\n \t\t}else\n \t\t\tMensagens.msgInformacao(\"Cancelado\", \"Cidade não excluída\");\n \t}else\n \t\tMensagens.msgErro(\"FALHA\", \"Selecione uma Cidade\");\n }", "public void guardarDestruccion() {\n try {\n produccion.setIdMarca(opcionMarca);\n produccion.setIdPlantaProd(opcionPlanta);\n produccion.setIdPaisOrigen(opcionOrigen);\n produccion.setIdTipoRetro(opcionTipo);\n produccion.setFechProduccion(new Date());\n produccion.setDescPaisOrigen(desperdiciosHelper.getNombrePais());\n\n if (!habilitarBtnValidarProd()) {\n if (produccion != null) {\n produccion = produccionService.guardaDestruccion(produccion);\n super.msgInfo(MSGEXITOVALIDAPROD);\n desperdiciosHelper.setDeshabilitaBtnValidarProd(true);\n desperdiciosHelper.setDeshabilitaCargaArchivo(false);\n } else {\n super.msgError(MSGERRORVALIDARPROD);\n }\n }\n } catch (ProduccionServiceException e) {\n LOGGER.error(\"ERROR: Al guardar los datos de produccion\" + e.getMessage(), e);\n }\n }", "public Resultado executarConsulta(Requisicao requisicao) throws Exception {\r\n return null;\r\n }", "private void cargaInfoEmpleado(){\r\n Connection conn = null;\r\n Conexion conex = null;\r\n try{\r\n if(!Config.estaCargada){\r\n Config.cargaConfig();\r\n }\r\n conex = new Conexion();\r\n conex.creaConexion(Config.host, Config.user, Config.pass, Config.port, Config.name, Config.driv, Config.surl);\r\n conn = conex.getConexion();\r\n if(conn != null){\r\n ArrayList<Object> paramsIn = new ArrayList();\r\n paramsIn.add(txtLogin);\r\n QryRespDTO resp = new Consulta().ejecutaSelectSP(conn, IQryUsuarios.NOM_FN_OBTIENE_INFO_USUARIOWEB, paramsIn);\r\n System.out.println(\"resp: \" + resp.getRes() + \"-\" + resp.getMsg());\r\n if(resp.getRes() == 1){\r\n ArrayList<ColumnaDTO> listaColumnas = resp.getColumnas();\r\n for(HashMap<String, CampoDTO> fila : resp.getDatosTabla()){\r\n usuario = new UsuarioDTO();\r\n \r\n for(ColumnaDTO col: listaColumnas){\r\n switch(col.getIdTipo()){\r\n case java.sql.Types.INTEGER:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Integer.parseInt(fila.get(col.getEtiqueta()).getValor().toString().replaceAll(\",\", \"\").replaceAll(\"$\", \"\").replaceAll(\" \", \"\")));\r\n break;\r\n \r\n case java.sql.Types.DOUBLE:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Double.parseDouble(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n case java.sql.Types.FLOAT:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Float.parseFloat(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n case java.sql.Types.DECIMAL:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Float.parseFloat(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n case java.sql.Types.VARCHAR:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"\":fila.get(col.getEtiqueta()).getValor().toString());\r\n break;\r\n \r\n case java.sql.Types.NUMERIC:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Float.parseFloat(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n default:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"\":fila.get(col.getEtiqueta()).getValor().toString());\r\n break;\r\n } \r\n }\r\n }\r\n sesionMap.put(\"UsuarioDTO\", usuario);\r\n }else{\r\n context.getExternalContext().getApplicationMap().clear();\r\n context.getExternalContext().redirect(\"index.xhtml\");\r\n }\r\n }\r\n }catch(Exception ex){\r\n System.out.println(\"Excepcion en la cargaInfoEmpleado: \" + ex);\r\n }finally{\r\n try{\r\n conn.close();\r\n }catch(Exception ex){\r\n \r\n }\r\n }\r\n }", "public void cargaDatosInicialesSoloParaModificacionDeCuenta() throws Exception {\n GestionContableWrapper gestionContableWrapper = parParametricasService.factoryGestionContable();\n gestionContableWrapper.getNormaContable3();\n parAjustesList = parParametricasService.listaTiposDeAjuste(obtieneEnumTipoAjuste(gestionContableWrapper.getNormaContable3()));\n selectAuxiliarParaAsignacionModificacion = cntEntidadesService.listaDeAuxiliaresPorEntidad(selectedEntidad);\n //Obtien Ajuste Fin\n\n //Activa formulario para automatico modifica \n switch (selectedEntidad.getNivel()) {\n case 1:\n swParAutomatico = true;\n numeroEspaciador = 200;\n break;\n case 2:\n swParAutomatico = true;\n swActivaBoton = true;\n numeroEspaciador = 200;\n break;\n case 3:\n swParAutomatico = false;\n numeroEspaciador = 1;\n break;\n default:\n break;\n }\n\n cntEntidad = (CntEntidad) getCntEntidadesService().find(CntEntidad.class, selectedEntidad.getIdEntidad());\n }", "public String getCodigoExemplar(int select) throws IOException {\r\n ArrayList<String> listExemplar = exemplar.getListExemplar();\r\n ArrayList<String> templist = new ArrayList<String>();\r\n\r\n for (int i = 0; i < listExemplar.size(); i++) {\r\n if (listExemplar.get(i).contains(getCodigoLivro())) {\r\n templist.add(listExemplar.get(i));\r\n }\r\n }\r\n String[] temp = templist.get(select).split(\";\");\r\n return temp[1];\r\n }", "public Comunidades(int id) {\n\t\tthis.setId(id);\n\t}", "public abstract void setEspe_id(java.lang.Integer newEspe_id);", "public void gerarReceitaLiquidaIndiretaDeAgua() \n\t\t\tthrows ErroRepositorioException;", "public Integer pesquisarIdContaRetificada(Integer idImovel,\tint anoMesReferenciaConta) throws ErroRepositorioException;", "@Override\n public void definirId(Endereco objeto, int id) {\n objeto.setId(id);\n }", "@Override\n public void alterar(EntidadeDominio entidade) throws SQLException\n {\n\t\n }", "public void alterar() {\n //metodo para alterar\n String sql = \"UPDATE empresa SET empresa = ?, cnpj = ?, \"\n + \"endereco = ?, telefone = ?, email = ? WHERE (id = ?)\";\n try {\n pst = conexao.prepareStatement(sql);\n pst.setString(1, txtEmpNome.getText());\n pst.setString(2, txtEmpCNPJ.getText());\n pst.setString(3, txtEmpEnd.getText());\n pst.setString(4, txtEmpTel.getText());\n pst.setString(5, txtEmpEmail.getText());\n pst.setString(6, txtEmpId.getText());\n if ((txtEmpNome.getText().isEmpty()) || (txtEmpCNPJ.getText().isEmpty())) {\n JOptionPane.showMessageDialog(null, \"Preencha todos os campos obrigatórios\");\n } else {\n //a linha abaixo atualiza a tabela usuarios com os dados do formulario\n // a esttrutura abaixo confirma a ALTERACAO dos dados na tabela\n int adicionado = pst.executeUpdate();\n if (adicionado > 0) {\n JOptionPane.showMessageDialog(null, \"Dados do cliente alterado com sucesso\");\n txtEmpNome.setText(null);\n txtEmpEnd.setText(null);\n txtEmpTel.setText(null);\n txtEmpEmail.setText(null);\n txtEmpId.setText(null);\n txtEmpCNPJ.setText(null);\n btnAdicionar.setEnabled(true);\n }\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e);\n }\n }", "public void setIdAutorizacionEmpresaSRI(int idAutorizacionEmpresaSRI)\r\n/* 79: */ {\r\n/* 80:122 */ this.idAutorizacionEmpresaSRI = idAutorizacionEmpresaSRI;\r\n/* 81: */ }", "public void setIdEstatusObjeto(int idEstatusObjeto) {\r\n\t\tthis.idEstatusObjeto = idEstatusObjeto;\r\n\t}" ]
[ "0.62303156", "0.5938997", "0.5767884", "0.55878043", "0.5440234", "0.5338439", "0.5334201", "0.52910596", "0.52646697", "0.5247214", "0.52308524", "0.5150363", "0.51285416", "0.5123019", "0.5113426", "0.5111645", "0.5101229", "0.5082069", "0.507786", "0.507084", "0.5064236", "0.50623214", "0.5019332", "0.50191", "0.5016997", "0.5011988", "0.5010884", "0.49796703", "0.49787444", "0.4975515", "0.4975289", "0.49464166", "0.4938101", "0.49361688", "0.4935121", "0.49290022", "0.4921947", "0.49162704", "0.49101523", "0.49061087", "0.4900402", "0.48869875", "0.48686418", "0.48680484", "0.48544627", "0.4821962", "0.482063", "0.47943914", "0.4784907", "0.4784907", "0.4777624", "0.4773037", "0.4766977", "0.4763864", "0.47634396", "0.4736735", "0.4723922", "0.47223437", "0.47208908", "0.47157726", "0.47157705", "0.47140592", "0.47052732", "0.470165", "0.47014284", "0.46986544", "0.46979913", "0.468923", "0.46856427", "0.46814212", "0.46798435", "0.4676905", "0.46686658", "0.46681654", "0.46641475", "0.46593004", "0.4652527", "0.4647509", "0.4642753", "0.4642319", "0.46345714", "0.4632771", "0.462947", "0.46255016", "0.46167052", "0.4615269", "0.46151805", "0.46148688", "0.46141708", "0.46099597", "0.46083987", "0.45971626", "0.45914337", "0.458869", "0.45843434", "0.45824587", "0.45786917", "0.4578539", "0.4574745", "0.45747113" ]
0.45860848
94
This method was generated by MyBatis Generator. This method returns the value of the database column expediente_consulta.fechaConsulta
public Date getFechaconsulta() { return fechaconsulta; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFechaconsulta(Date fechaconsulta) {\r\n this.fechaconsulta = fechaconsulta;\r\n }", "public E getConsulta() {\n\n\t\treturn this.consulta;\n\t}", "public String obtenerCampo(String sqlConsulta) throws SQLException {\n try {\n this.sqlConsulta = sqlConsulta;\n ejecutarResultSet();\n if (!resultSet.first() || resultSet.getString(1) == null) {\n return \"\";\n }\n String campo = resultSet.getString(1);\n return campo;\n } finally {\n cerrarResultSet();\n }\n\n }", "public java.sql.ResultSet consultaporespecialidadfecha(String CodigoEspecialidad,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pes.codigo=\"+CodigoEspecialidad+\" and phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporespecialidadfecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public Date getDataDeCadastro() {\n\t\treturn this.dataDeCadastro;\n\t}", "public java.sql.ResultSet consultaporfecha(String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporfecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public Date obtenerUltimaFecha() {\n String sql = \"SELECT proyind_periodo_fin\"\n + \" FROM proy_indices\"\n + \" WHERE proyind_periodo_fin IS NOT NULL\"\n + \" ORDER BY proyind_periodo_fin DESC\"\n + \" LIMIT 1\";\n Query query = getEm().createNativeQuery(sql);\n List result = query.getResultList();\n return (Date) DAOUtils.obtenerSingleResult(result);\n }", "public Date getFechaBajaDesde() {\r\n\t\treturn fechaBajaDesde;\r\n\t}", "public Date obtenerPrimeraFecha() {\n String sql = \"SELECT proyind_periodo_inicio\"\n + \" FROM proy_indices\"\n + \" WHERE proyind_periodo_inicio IS NOT NULL\"\n + \" ORDER BY proyind_periodo_inicio ASC\"\n + \" LIMIT 1\";\n Query query = getEm().createNativeQuery(sql);\n List result = query.getResultList();\n return (Date) DAOUtils.obtenerSingleResult(result);\n }", "public ResultSet obtenerDatosConsulta(String idConsultaMedica) throws SQLException\r\n {\r\n OperacionesConsultaMedica operacionesConsultaMedica = new OperacionesConsultaMedica();\r\n return operacionesConsultaMedica.obtenerDatosConsulta(idConsultaMedica);\r\n }", "public Date getFecRegistro() {\n return fecRegistro;\n }", "public String getFechaInicio(){\n\n\t\treturn campoInicio.getText();\n\n\t}", "public Date getFechaBajaHasta() {\r\n\t\treturn fechaBajaHasta;\r\n\t}", "public void establecerDatosRegistro(String sqlConsulta) throws SQLException {\n try {\n this.sqlConsulta = sqlConsulta;\n ejecutarResultSet();\n\n if (!resultSet.first()) {\n return;\n }\n\n int cantidadColumnas = resultSet.getMetaData().getColumnCount();\n\n String nombreColumna;\n String valorColumna;\n\n for (int i = 0; i < cantidadColumnas; i++) {\n nombreColumna = resultSet.getMetaData().getColumnName(i + 1);\n valorColumna = resultSet.getString(i + 1);\n columnas.put(nombreColumna, valorColumna);\n }\n } finally {\n cerrarResultSet();\n }\n }", "@Override\n public java.util.Date getFecha() {\n return _partido.getFecha();\n }", "public java.util.Date getFechaRegistro() {\n\t\treturn this.fechaRegistro;\n\t}", "public java.sql.ResultSet consultapormedicoespecialidadfecha(String CodigoMedico,String CodigoEspecialidad,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pmd.codigo=\"+CodigoMedico+\" and pes.codigo=\"+CodigoEspecialidad+\" and phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicoespecialidadfecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public Timestamp getFechaEntrega() {\n return this.fechaEntrega.get();\n }", "public Fecha getFechaRetiro(){\n return this.fechaRetiro;\n }", "public int getDtRegistro() {\n return dtRegistro;\n }", "public java.sql.Timestamp getFecha_envio();", "public String getConsultaDinamica() {\r\n\t\treturn consultaDinamica;\r\n\t}", "public Date buscarFechaFacturacion() throws Exception {\n\n logger.debug(\"Buscando fecha de facturacion\");\n\n try {\n\n return getMgrFacturacionService().getFechaServidor();\n } catch (ManagerFacturacionServiceBusinessException e) {\n logger.error(e.getMessage(), e);\n throw new Exception(e.getMessage(), e);\n } catch (RemoteException e) {\n logger.error(e.getMessage(), e);\n throw new Exception(e.getMessage(), e);\n }\n }", "public String getFecha() {\n return Fecha;\n }", "Date getFechaNacimiento();", "public String getFechaSistema() {\n Date date = new Date();\n DateFormat formato = new SimpleDateFormat(\"dd/MM/yyyy\");\n //Aplicamos el formato al objeto Date y el resultado se\n //lo pasamos a la variable String\n fechaSistema = formato.format(date);\n \n return fechaSistema;\n }", "public String getFecha_Venta() {\n return fecha_Venta;\n }", "public String[] obtenerRegistro(String sqlConsulta) throws SQLException {\n try {\n this.sqlConsulta = sqlConsulta;\n ejecutarResultSet();\n if (!resultSet.first()) {\n return new String[0];\n }\n int cantidadColumnas = resultSet.getMetaData().getColumnCount();\n String[] datoRegistro = new String[cantidadColumnas];\n\n for (int i = 0; i < cantidadColumnas; i++) {\n datoRegistro[i] = resultSet.getString(i + 1);\n }\n return datoRegistro;\n } finally {\n cerrarResultSet();\n }\n\n }", "private java.sql.Date obtenerFechaEnSQL(JXDatePicker fecha) {\n Calendar cal = Calendar.getInstance();\n cal.setTime(fecha.getDate());\n int year = cal.get(Calendar.YEAR) - 1900; //PORQUE PUTAS\n int month = cal.get(Calendar.MONTH);\n int day = cal.get(Calendar.DAY_OF_MONTH);\n java.sql.Date sqlDate;\n\n sqlDate = new java.sql.Date(year, month, day);\n return sqlDate;\n }", "public static void guardarNuevaConsulta(Consulta consulta) throws SQLException {\n\t\tjava.sql.Date fechaSQL = new java.sql.Date(consulta.getFecha().getTime());\r\n\t\t\r\n\t\tconsultaInsertarConsulta.setDate(1, fechaSQL);\r\n\t\tconsultaInsertarConsulta.setString(2, consulta.getMascota().getNroPatente());\r\n\t\tconsultaInsertarConsulta.setString(3, consulta.getVeterinario().getCodigo());\r\n\t\tconsultaInsertarConsulta.executeQuery();\r\n\r\n\t}", "public java.sql.Timestamp getFecha();", "public abstract java.lang.String getFecha_inicio();", "public String getFecha() {\n Calendar calendario = new GregorianCalendar();\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n return sdf.format(calendario.getTime());\n }", "public List<Consulta> listagemConsultas(){\r\n\t\tList<Consulta>col1;\r\n\t\tcol1=new ArrayList<Consulta>();\r\n\t\tfor (Consulta c : col){\r\n\t\t\tif (c.toString()!=null){\r\n\t\t\t\tcol1.add(c);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn col1;\r\n\t}", "public LocalDate GetFechaUltimoCambio() throws RemoteException;", "public String getFechaExpedicion() { return (this.fechaExpedicion == null) ? \"\" : this.fechaExpedicion; }", "public Date getFechaDesde()\r\n/* 164: */ {\r\n/* 165:283 */ return this.fechaDesde;\r\n/* 166: */ }", "public Date getFechaHasta()\r\n/* 174: */ {\r\n/* 175:302 */ return this.fechaHasta;\r\n/* 176: */ }", "public Date getFecha_nacimiento() {\r\n\t\tDate result=null;\r\n\t\ttry {\r\n\t\t DateFormat df = new SimpleDateFormat(\"dd-MM-yyyy\");\r\n\t\t \r\n\t\t\tresult = df.parse(calendario.getDia()+\"-\"+calendario.getMes()+\"-\"+calendario.getAno());\r\n\r\n\t\t} catch (ParseException e) {\r\n\t\t\tSystem.out.println(\"Fecha incorrecta\");\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\t\treturn result;\r\n\t}", "public Fecha getFecha() {\r\n return fecha;\r\n }", "public synchronized ConsultaSQL getConsultaSQL(String TipoConsulta) throws Exception, IndexOutOfBoundsException, NullPointerException {\r\n\t\trecorreArbol(findConsultaSQL(TipoConsulta));\r\n\t\tcreateParameters();\r\n\t\tconssql.setParams(listaParams);\r\n\t\treturn conssql;\r\n\t}", "public Date getCadastro() {\n\n\t\treturn this.cadastro;\n\t}", "public Date getFechaAltaDesde() {\r\n\t\treturn fechaAltaDesde;\r\n\t}", "public java.time.LocalDate getFechaDeLaVisita() {\n return fechaDeLaVisita.get();\n }", "public String getConsultaPaginada() {\r\n\t\treturn consultaPaginada;\r\n\t}", "public es.gob.agenciatributaria.www2.static_files.common.internet.dep.aplicaciones.es.aeat.ssii.fact.ws.SuministroInformacion_xsd.RangoFechaPresentacionType getFechaPresentacion() {\r\n return fechaPresentacion;\r\n }", "public int getFECHAFORMALIZ() {\n return fechaformaliz;\n }", "public String dateToMySQLDate(Date fecha, boolean paraMostrar) {\n if (paraMostrar) {\n java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat(\"dd/MM/yyyy\");\n return sdf.format(fecha);\n } else {\n java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat(\"yyyy-MM-dd\");\n return sdf.format(fecha);\n }\n }", "public Date getFechaCreacion() {\r\n return fechaCreacion;\r\n }", "public final String obtenerFechaFormateada() {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"dd/MMM/yyyy\");\n return fechaDeLaVisita.get().format(formatter);\n }", "Optional<Consulta> findOne(Long id);", "public java.sql.ResultSet consultapormedicofecha(String CodigoMedico,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pmd.codigo=\"+CodigoMedico+\" and phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicofecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public Calificar buscar_comentario2(String email, String puesto){\n Calificar cal = null;\n Session session = sessionFactory.openSession();\n Transaction tx = null;\n \n try{\n \n tx = session.beginTransaction();\n String hql = \"from Calificar c where c.persona.correo = :correo and c.puesto.idNombre = :puesto\";\n Query query = session.createQuery(hql);\n query.setParameter(\"correo\", email);\n query.setParameter(\"puesto\", puesto);\n cal = (Calificar)query.uniqueResult();\n tx.commit();\n \n } catch (Exception e) {\n if (tx != null) {\n tx.rollback();\n }\n e.printStackTrace();\n } finally {\n session.close();\n }\n \n return cal;\n }", "public Date getDataCreazione() {\n\t\treturn dataCreazione;\n\t}", "List<Venta1> consultarVentaPorFecha(Date desde, Date hasta, Persona cliente) throws Exception;", "public void setConsulta(final E consulta) {\n\n\t\tthis.consulta = consulta;\n\t}", "public Timestamp getFechaReserva() {\n return this.fechaReserva.get();\n }", "public static String getFechaActual() {\n Date ahora = new Date();\n SimpleDateFormat formateador = new SimpleDateFormat(\"yyyy-MM-dd\");\n return formateador.format(ahora);\n }", "@Query(\"FROM Consulta c WHERE c.fecha BETWEEN :fechaConsulta AND :fechaSgte\")\n\tList<Consulta> buscarFecha(@Param(\"fechaConsulta\") LocalDateTime fechaConsulta,@Param(\"fechaSgte\") LocalDateTime fechaSgte);", "public String getFecha(){\r\n return fechaInicial.get(Calendar.DAY_OF_MONTH)+\"/\"+(fechaInicial.get(Calendar.MONTH)+1)+\"/\"+fechaInicial.get(Calendar.YEAR);\r\n }", "public CalendarioFecha obtenerPorEvento(Evento evento) throws Exception { \n\t \n\t\t CalendarioFecha datos = new CalendarioFecha(); \n\t\t Session em = sesionPostgres.getSessionFactory().openSession(); \t\n\t try { \t\n\t\t datos = (CalendarioFecha) em.createCriteria(CalendarioFecha.class).add(Restrictions.eq(\"evento\", evento))\n\t\t \t\t.add(Restrictions.eq(\"activo\", true)).uniqueResult(); \n\t } catch (Exception e) { \n\t \n\t throw new Exception(e.getMessage(),e.getCause());\n\t } finally { \n\t em.close(); \n\t } \n\t \n\t return datos; \n\t}", "@javax.jdo.annotations.Column(allowsNull = \"false\")\n\t@MemberOrder(sequence = \"3\")\n\tpublic Date getFechaInicio() {\n\t\treturn this.fechaInicio;\n\t}", "public Fecha getFechaIngreso(){\n return this.fechaIngreso;\n }", "public Cuenta obtenerCuentaConMasDinero(String codigo_cliente) {\n Cuenta cuenta = new Cuenta();\n try {\n PreparedStatement PrSt;\n ResultSet rs = null;\n String Query = \"SELECT * FROM Cuenta WHERE Codigo_Cliente = ? order by Credito desc limit 1\";\n PrSt = conexion.prepareStatement(Query);\n PrSt.setString(1, codigo_cliente);\n rs = PrSt.executeQuery();\n while (rs.next()) {\n cuenta.setCodigo(rs.getString(\"Codigo\"));\n cuenta.setCreacion(rs.getDate(\"Creacion\"));\n cuenta.setCredito(rs.getDouble(\"Credito\"));\n cuenta.setCodigo_cliente(rs.getString(\"Codigo_Cliente\"));\n }\n PrSt.close();\n rs.close();\n } catch (SQLException e) {\n System.out.println(e.toString());\n }\n return cuenta;\n }", "public Fecha getFecha() {\n\t\treturn mFecha;\n\t}", "public Date getFechaAutorizacionGastoExpediente() {\r\n return fechaAutorizacionGastoExpediente;\r\n }", "public LocalDate getFecha() {\n\t\treturn fecha;\n\t}", "private synchronized Date getDataFimValidade(int idPromocao)\n\t{\n\t\tHashMap promocao = null;\n\t\t\n\t\tfor(int i = 0; i < listaPromocoes.size(); i++)\n\t\t{\n\t\t\tpromocao = (HashMap)listaPromocoes.get(i);\n\t\t\tif (((Integer)promocao.get(\"IDT_PROMOCAO\")).intValue() == idPromocao)\n\t\t\t{\n\t\t\t\treturn (Date)promocao.get(\"DAT_FIM_VALIDADE\");\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public String dar_fecha(){\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n return dateFormat.format(date).toString();\n\n }", "public Date getNascimento() {\n return this.NASCIMENTO;\n }", "public void setConsultaDinamica(String consultaDinamica) {\r\n\t\tthis.consultaDinamica = consultaDinamica;\r\n\t}", "public static ResultSet fechaVigencia() {\r\n Connection con = MantenimientoUsuarios.con;\r\n ResultSet rs = null;\r\n try {\r\n\r\n String fechaVigencia = \"SELECT NOW() as fecha_emision, DATE_ADD(NOW(), Interval valor DAY ) as fecha_vigencia, valor FROM parametros where codigoParametro = 2;\";\r\n\r\n Statement st;\r\n st = con.createStatement();\r\n rs = st.executeQuery(fechaVigencia);\r\n return rs;\r\n } catch (SQLException ex) {\r\n Logger.getLogger(MantenimientoCotizacion.class.getName()).log(Level.SEVERE, null, ex);\r\n return rs;\r\n }\r\n\r\n }", "public String getFechaFinal(){\n\n\t\treturn campoFinal.getText();\n\n\t}", "public Date getDateDembauche() {\r\n return dateEmbauche.copie();\r\n }", "public Date getDataNascimentoToSQL() {\r\n\t\treturn new Date(dataNascimento.getTimeInMillis());\r\n\t}", "public java.sql.ResultSet consultaporespecialidadhorafecha(String CodigoEspecialidad,String hora,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pes.codigo=\"+CodigoEspecialidad+\" and phm.horas='\"+hora+\"' and phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas \");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporespecialidadhorafecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public Date getFechaAltaHasta() {\r\n\t\treturn fechaAltaHasta;\r\n\t}", "public String getFechaEvento() {\n return fechaEvento;\n }", "public Timestamp getDeCriacao() {\n return dataDeCriacao;\n }", "public java.lang.String getVocabularioConsulta()\n {\n return this.vocabularioConsulta;\n }", "@Override\n public java.util.Date getCreateDate() {\n return _partido.getCreateDate();\n }", "public es.gob.agenciatributaria.www2.static_files.common.internet.dep.aplicaciones.es.aeat.ssii.fact.ws.SuministroInformacion_xsd.ContraparteConsultaType getContraparte() {\r\n return contraparte;\r\n }", "public Date getCreacion() {\r\n return creacion;\r\n }", "public java.sql.ResultSet consultaporespecialidad(String CodigoEspecialidad){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pes.codigo=\"+CodigoEspecialidad+\" and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporespecialidad \"+ex);\r\n }\t\r\n return rs;\r\n }", "public Date getfPeticion() {\r\n return fPeticion;\r\n }", "public int getFECHAECVACT() {\n return fechaecvact;\n }", "public abstract java.sql.Timestamp getFecha_ingreso();", "public Date getDateDembauche () {\n return dateEmbauche.copie();\n }", "public HospedagemBean select (int cdHospedagem, Connection conexao) throws Exception{\n\t\t\tstmt = conexao.prepareStatement(\"SELECT H.CD_HOSPEDAGEM, R.CD_RESERVA, C.CD_PESSOA, C.NM_PESSOA, F.CD_FUNCIONARIO, H.DT_ENTRADA, H.VC_PERC_DESCONTO FROM T_AM_LDB_HOSPEDAGEM H INNER JOIN T_AM_LDB_PESSOA C ON H.CD_CLIENTE = C.CD_PESSOA INNER JOIN T_AM_LDB_FUNCIONARIO F ON H.CD_FUNCIONARIO = F.CD_FUNCIONARIO INNER JOIN T_AM_LDB_RESERVA R ON H.CD_RESERVA = R.CD_RESERVA WHERE H.CD_HOSPEDAGEM = ?\");\n\t\t\tstmt.setInt(1, cdHospedagem);\n\t\t\trs = stmt.executeQuery();\n\t\t\trs.next();\n\t\t\tHospedagemBean hp = new HospedagemBean();\n\t\t\thp.setCodigoHospedagem(rs.getInt(\"CD_HOSPEDAGEM\"));\n\t\t\tReservaBean r = new ReservaBean();\n\t\t\tr.setCodigoReserva(rs.getInt(\"CD_RESERVA\"));\n\t\t\thp.setReserva(r);\n\t\t\tClienteBean c = new ClienteBean();\n\t\t\tc.setCodigoPessoa(rs.getInt(\"CD_PESSOA\"));\n\t\t\tc.setNomePessoa(rs.getString(\"NM_PESSOA\"));\n\t\t\thp.setCliente(c);\n\t\t\tFuncionarioBean f = new FuncionarioBean();\n\t\t\tf.setCodigoPessoa(rs.getInt(\"CD_FUNCIONARIO\"));\n\t\t\thp.setFuncionario(f);\n\t\t\tCalendar cal = null;\n\t\t\tcal = Calendar.getInstance();\n\t\t\tcal.setTime(rs.getDate(\"DT_ENTRADA\"));\n\t\t\thp.setDataEntrada(cal);\n\t\t\thp.setDesconto(rs.getInt(\"VC_PERC_DESCONTO\"));\n\t\t\treturn hp;\n\t}", "private String getFechaLab(int intCodEmp, int intCodLoc){\n String strFecha=\"\"; \n java.sql.Connection conLoc;\n try{\n conLoc=DriverManager.getConnection(objParSis.getStringConexion(),objParSis.getUsuarioBaseDatos(),objParSis.getClaveBaseDatos());\n if(conLoc!=null){\n java.sql.Statement stmLoc = conLoc.createStatement();\n strSql=\"\";\n strSql+=\" SELECT a1.* \";\n strSql+=\" FROM tbm_calCiu as a1 \";\n strSql+=\" INNER JOIN tbm_loc as a2 ON (a1.co_ciu=a2.co_ciu) \";\n strSql+=\" WHERE a2.co_emp=\"+intCodEmp+\" and co_loc=\"+intCodLoc+\" AND CASE WHEN EXTRACT(MONTH from CURRENT_DATE)=12 THEN \";\n strSql+=\" (EXTRACT(YEAR from CURRENT_DATE)+1)=EXTRACT(YEAR from a1.fe_Dia) AND /*MES ENERO JM*/1=EXTRACT(MONTH from a1.fe_Dia) ELSE \";\n strSql+=\" EXTRACT(YEAR from CURRENT_DATE)=EXTRACT(YEAR from a1.fe_Dia) AND (EXTRACT(MONTH from CURRENT_DATE)+1)=EXTRACT(MONTH from a1.fe_Dia) END AND a1.tx_tipDia='L' \";\n strSql+=\" ORDER BY a1.fe_dia ASC\t\";\n strSql+=\" LIMIT 1\";\n \tjava.sql.ResultSet rstLoc = stmLoc.executeQuery(strSql);\n if(rstLoc.next()){\n //System.out.println(\"fecha \" + rstLoc.getString(\"fe_dia\"));\n strFecha=objUti.formatearFecha(rstLoc.getString(\"fe_dia\"), \"yyyy-MM-dd\",\"dd/MM/yyyy\" );\n //System.out.println(\"strFecha \" + strFecha);\n }\n rstLoc.close();\n rstLoc=null;\n stmLoc.close();\n stmLoc=null;\n }\n conLoc.close();\n conLoc=null;\n }\n catch (java.sql.SQLException e){\n objUti.mostrarMsgErr_F1(this, e);\n }\n catch (Exception e){\n objUti.mostrarMsgErr_F1(this, e);\n }\n return strFecha;\n }", "public Date getDataConsegna() {\n\t\t\treturn dataConsegna;\n\t\t}", "public String getFechaInsercion() { return (this.fechaInsercion == null) ? \"\" : this.fechaInsercion; }", "public String getFechaInsercion() { return (this.fechaInsercion == null) ? \"\" : this.fechaInsercion; }", "@Override\n\tpublic Page<PedidoDTO> consultar(PedidoConsultaDTO consulta, Pageable page) {\n\t\treturn null;\n\t}", "public int siguienteRegistro(int codigoFlujo) {\n/* 265 */ int inumero = 1;\n/* 266 */ String s = \"select max(secuencia) from wkf_detalle where codigo_flujo=\" + codigoFlujo + \"\";\n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 271 */ boolean rta = this.dat.parseSql(s);\n/* 272 */ if (!rta) return 0; \n/* 273 */ this.rs = this.dat.getResultSet();\n/* 274 */ if (this.rs.next()) {\n/* 275 */ s = this.rs.getString(1);\n/* 276 */ if (!this.rs.wasNull()) {\n/* 277 */ inumero = Integer.parseInt(s) + 1;\n/* */ }\n/* */ } \n/* 280 */ return inumero;\n/* */ }\n/* 282 */ catch (Exception e) {\n/* 283 */ e.printStackTrace();\n/* 284 */ Utilidades.writeError(\"FlujoDetalleDAO:siguienteRegistro \", e);\n/* */ \n/* 286 */ return 0;\n/* */ } \n/* */ }", "public java.lang.String getFechaDeRecibido() {\n return fechaDeRecibido;\n }", "@Column(name = \"FECHA_VENCIMIENTO\")\n\t@Temporal(TemporalType.DATE)\n\tpublic Date getlFechaVencimiento() {\n\t\treturn lFechaVencimiento;\n\t}", "@Override\n\tpublic ArrayList<VOFactura> getAllFacturasByDate(Calendar fechaDesde,\n\t\t\tCalendar fechaHasta) {\n\t\t\n\t\tSystem.out.println(\"@DAOFACTURAS: getallfacturasbydate!\");\n\t\t\n\t\tDBConnection con = null;\n\t\tStatement stm = null;\n\t\tString sql = null;\n\t\tResultSet res = null;\n\t\t\n\t\tVOFactura factura;\n\t\tArrayList<VOFactura> listaFacturas = new ArrayList<VOFactura>();\n\t\t\n\t\tjava.sql.Date sqlDesde = new java.sql.Date(fechaDesde.getTimeInMillis());\n\t\tjava.sql.Date sqlHasta = new java.sql.Date(fechaHasta.getTimeInMillis());\n\t\t\n\t\ttry {\n\t\t\tcon = new DBConnection(\"root\",\"walkirias84\");\n\t\t\tstm = con.getConnection().createStatement();\n\t\t\tsql = \"SELECT * FROM factura fac\"+\n\t\t\t\" WHERE fac.facfecha >= '\"+sqlDesde+\"' \"+\n\t\t\t\" AND fac.facfecha < '\"+sqlHasta+\"' \";\n\t\t\tres = stm.executeQuery(sql);\n\n\t\t\tSystem.out.println(\"comparando fechas sql: \"+sql);\n\t\t\t\n\t\t\twhile(res.next()) {\n\t\t\t\tfactura = new VOFactura();\n\t\t\t\tfactura.setId(res.getInt(1));\n\t\t\t\tfactura.setNumero(res.getInt(2));\n\t\t\t\tfactura.setIdCliente(res.getInt(3));\n\t\t\t\tCalendar fecha = Calendar.getInstance();\n\t\t\t\tfecha.setTimeInMillis(res.getDate(4).getTime());\n\t\t\t\tfactura.setFecha(fecha);\n\t\t\t\tfactura.setValorNeto(res.getBigDecimal(5));\n\t\t\t\tfactura.setValorIva(res.getBigDecimal(6));\n\t\t\t\tfactura.setValorTotal(res.getBigDecimal(7));\n\t\t\t\t\n\t\t\t\tlistaFacturas.add(factura);\n\t\t\t}\n\n\t\t\treturn listaFacturas;\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\tSystem.out.println(e);\n\t\t} finally {\n\t if (res != null) try { res.close(); } catch (SQLException logOrIgnore) {}\n\t if (stm != null) try { stm.close(); } catch (SQLException logOrIgnore) {}\n\t if (con != null) try { con.getConnection().close(); } catch (SQLException logOrIgnore) {}\n\t }\n\t\t\n\t\treturn null;\n\t}", "public int getDtVencimento() {\n return dtVencimento;\n }", "public String getFechaInicio(){\n return fechaInicio;\n }" ]
[ "0.6809695", "0.6631502", "0.60851014", "0.6010665", "0.59884", "0.59427285", "0.5887496", "0.5794065", "0.5787027", "0.5785889", "0.57648647", "0.5752874", "0.57369065", "0.5721783", "0.57122964", "0.57003236", "0.56896573", "0.5675874", "0.5674387", "0.5674294", "0.5624949", "0.5618018", "0.56113255", "0.5611294", "0.5590353", "0.55678815", "0.5560797", "0.5545672", "0.5530124", "0.5511892", "0.5492198", "0.5475388", "0.54739815", "0.5472783", "0.5468226", "0.5468009", "0.5462618", "0.5458354", "0.54536873", "0.54405594", "0.5433399", "0.5425492", "0.5410936", "0.54095197", "0.54093885", "0.53876585", "0.53786457", "0.53782463", "0.53749734", "0.5373195", "0.5369571", "0.53674906", "0.5363522", "0.53604233", "0.534865", "0.5348236", "0.53271115", "0.5313205", "0.5307589", "0.5285382", "0.5280977", "0.5266514", "0.526238", "0.5261651", "0.524836", "0.5238441", "0.5229363", "0.52263415", "0.52251923", "0.5216803", "0.52151334", "0.520484", "0.5201715", "0.5199581", "0.5186021", "0.5185668", "0.5182818", "0.51804286", "0.51736003", "0.51734936", "0.51658136", "0.5161542", "0.5161082", "0.5147432", "0.514316", "0.5137538", "0.5131562", "0.512911", "0.5126442", "0.51154", "0.511536", "0.5112631", "0.5112631", "0.51096994", "0.5107823", "0.51055473", "0.50996524", "0.50992024", "0.5097427", "0.5093142" ]
0.7352444
0
This method was generated by MyBatis Generator. This method sets the value of the database column expediente_consulta.fechaConsulta
public void setFechaconsulta(Date fechaconsulta) { this.fechaconsulta = fechaconsulta; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getFechaconsulta() {\r\n return fechaconsulta;\r\n }", "public void setConsulta(final E consulta) {\n\n\t\tthis.consulta = consulta;\n\t}", "public static void guardarNuevaConsulta(Consulta consulta) throws SQLException {\n\t\tjava.sql.Date fechaSQL = new java.sql.Date(consulta.getFecha().getTime());\r\n\t\t\r\n\t\tconsultaInsertarConsulta.setDate(1, fechaSQL);\r\n\t\tconsultaInsertarConsulta.setString(2, consulta.getMascota().getNroPatente());\r\n\t\tconsultaInsertarConsulta.setString(3, consulta.getVeterinario().getCodigo());\r\n\t\tconsultaInsertarConsulta.executeQuery();\r\n\r\n\t}", "public void establecerDatosRegistro(String sqlConsulta) throws SQLException {\n try {\n this.sqlConsulta = sqlConsulta;\n ejecutarResultSet();\n\n if (!resultSet.first()) {\n return;\n }\n\n int cantidadColumnas = resultSet.getMetaData().getColumnCount();\n\n String nombreColumna;\n String valorColumna;\n\n for (int i = 0; i < cantidadColumnas; i++) {\n nombreColumna = resultSet.getMetaData().getColumnName(i + 1);\n valorColumna = resultSet.getString(i + 1);\n columnas.put(nombreColumna, valorColumna);\n }\n } finally {\n cerrarResultSet();\n }\n }", "@Override\n public void setFecha(java.util.Date fecha) {\n _partido.setFecha(fecha);\n }", "public void setFechaHasta(Date fechaHasta)\r\n/* 179: */ {\r\n/* 180:312 */ this.fechaHasta = fechaHasta;\r\n/* 181: */ }", "public void setConsultaDinamica(String consultaDinamica) {\r\n\t\tthis.consultaDinamica = consultaDinamica;\r\n\t}", "public void setFecha(Fecha fecha) {\r\n this.fecha = fecha;\r\n }", "public void setFechaPresentacion(es.gob.agenciatributaria.www2.static_files.common.internet.dep.aplicaciones.es.aeat.ssii.fact.ws.SuministroInformacion_xsd.RangoFechaPresentacionType fechaPresentacion) {\r\n this.fechaPresentacion = fechaPresentacion;\r\n }", "public void setFechaBajaHasta(Date fechaBajaHasta) {\r\n\t\tthis.fechaBajaHasta = fechaBajaHasta;\r\n\t}", "public void setFechaDesde(Date fechaDesde)\r\n/* 169: */ {\r\n/* 170:293 */ this.fechaDesde = fechaDesde;\r\n/* 171: */ }", "public void setFecha_Venta(String fecha_Venta) {\n this.fecha_Venta = fecha_Venta;\n }", "public void setFechaRegistro(java.util.Date fechaRegistro1) {\n\t\tthis.fechaRegistro = fechaRegistro1;\n\n\t}", "private void fechaActual() {\r\n\t\tDate date = new Date();\r\n\t\tSimpleDateFormat sm = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\r\n\t\t// Formateo de Fecha para mostrar en la vista - (String)\r\n\t\tsetFechaCreacion(sm.format(date.getTime()));\r\n\t\t// Formateo de Fecha campo db - (Date)\r\n\t\ttry {\r\n\t\t\tnewEntidad.setFechaCreacion(sm.parse(getFechaCreacion()));\r\n\t\t} catch (ParseException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t;\r\n\t}", "public void setFechaCreacion(Date fechaCreacion) {\r\n this.fechaCreacion = fechaCreacion;\r\n }", "public void setFechaEntrega(Timestamp fechaEntrega) {\n this.fechaEntrega.setValue(fechaEntrega);\n }", "public E getConsulta() {\n\n\t\treturn this.consulta;\n\t}", "public void setFechaCompra() {\n LocalDate fecha=LocalDate.now();\n this.fechaCompra = fecha;\n }", "public void setFecha(java.util.Calendar fecha)\r\n {\r\n this.fecha = fecha;\r\n }", "public void setFecRegistro(Date fecRegistro) {\n this.fecRegistro = fecRegistro;\n }", "public void setDtRegistro(int dtRegistro) {\n this.dtRegistro = dtRegistro;\n }", "public void setFechaBajaDesde(Date fechaBajaDesde) {\r\n\t\tthis.fechaBajaDesde = fechaBajaDesde;\r\n\t}", "public void setFecha(String fecha) {\r\n\t\tthis.fecha = fecha;\r\n\t}", "public void setFecha(String Fecha) {\n this.Fecha = Fecha;\n }", "public void setFechaNacimiento(Date fechaNacimiento)\r\n/* 138: */ {\r\n/* 139:252 */ this.fechaNacimiento = fechaNacimiento;\r\n/* 140: */ }", "public ControlMuestraServicios( ServicioConsulta servicioConsulta) {\r\n\t\tthis.servicioConsulta=servicioConsulta;\r\n\t\t\r\n\t}", "public void setCreacion(Date creacion) {\r\n this.creacion = creacion;\r\n }", "public void setFecha_envio(java.sql.Timestamp newFecha_envio);", "public void setConsultaPaginada(String consultaPaginada) {\r\n\t\tthis.consultaPaginada = consultaPaginada;\r\n\t}", "public java.sql.ResultSet consultaporespecialidadfecha(String CodigoEspecialidad,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pes.codigo=\"+CodigoEspecialidad+\" and phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporespecialidadfecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public void setFechaExpedicion(String p) { this.fechaExpedicion = p; }", "public void EjecutarConsulta() {\n try {\n Consultar(\"select * from \"+table);\n this.resultSet = preparedStatement.executeQuery();\n } catch (Exception e) {\n// MessageEmergent(\"Fail EjecutarConsulta(): \"+e.getMessage());\n }\n }", "public void setFechaAutorizacionGastoExpediente(Date fechaAutorizacionGastoExpediente) {\r\n this.fechaAutorizacionGastoExpediente = fechaAutorizacionGastoExpediente;\r\n }", "public void setFechaAltaDesde(Date fechaAltaDesde) {\r\n\t\tthis.fechaAltaDesde = fechaAltaDesde;\r\n\t}", "public void setContraparte(es.gob.agenciatributaria.www2.static_files.common.internet.dep.aplicaciones.es.aeat.ssii.fact.ws.SuministroInformacion_xsd.ContraparteConsultaType contraparte) {\r\n this.contraparte = contraparte;\r\n }", "public void setFecha(java.sql.Timestamp newFecha);", "public void setFechaAltaHasta(Date fechaAltaHasta) {\r\n\t\tthis.fechaAltaHasta = fechaAltaHasta;\r\n\t}", "public java.sql.ResultSet consultaporfecha(String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporfecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public void fijarFecha(int d, int m, int a)\n {\n // put your code here\n dia.setValor(d);\n mes.setValor(m);\n año.setValor(a);\n }", "public Date getFechaBajaHasta() {\r\n\t\treturn fechaBajaHasta;\r\n\t}", "public String dateToMySQLDate(Date fecha, boolean paraMostrar) {\n if (paraMostrar) {\n java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat(\"dd/MM/yyyy\");\n return sdf.format(fecha);\n } else {\n java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat(\"yyyy-MM-dd\");\n return sdf.format(fecha);\n }\n }", "public void setFECHAFORMALIZ(int value) {\n this.fechaformaliz = value;\n }", "public void setEmpresa(Empresa empresa)\r\n/* 89: */ {\r\n/* 90:141 */ this.empresa = empresa;\r\n/* 91: */ }", "public void setFecha(LocalDate fecha) {\n\t\tthis.fecha = fecha;\n\t}", "public void modificarEstadoCuota2(CuotaObject cuota) throws SQLException, ParseException \r\n {\r\n PreparedStatement prepStmt = null;\r\n\r\n String insertStatement = \"UPDATE FINANCIADO_PAGOS SET ESTADO=?,FECHA=? where IDRUBRO=?\";\r\n \r\n prepStmt = con.prepareStatement(insertStatement);\r\n \r\n prepStmt.setString(1, cuota.getEstado());\r\n \r\n \r\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n Date date1 = formatter.parse(cuota.getFecha());\r\n java.sql.Date datetmp = new java.sql.Date(date1.getTime());\r\n \r\n prepStmt.setDate(2, datetmp);\r\n \r\n \r\n prepStmt.setString(3, cuota.getIdrubro());\r\n \r\n prepStmt.executeUpdate();\r\n if (prepStmt != null) {\r\n prepStmt.close();\r\n }\r\n }", "@Override\n public void setCreateDate(java.util.Date createDate) {\n _partido.setCreateDate(createDate);\n }", "public ResultSet obtenerDatosConsulta(String idConsultaMedica) throws SQLException\r\n {\r\n OperacionesConsultaMedica operacionesConsultaMedica = new OperacionesConsultaMedica();\r\n return operacionesConsultaMedica.obtenerDatosConsulta(idConsultaMedica);\r\n }", "public Date getFecRegistro() {\n return fecRegistro;\n }", "public void setDataCreazione(Date dataCreazione) {\n\t\tthis.dataCreazione = dataCreazione;\n\t}", "public void setDataConsegna(Date dataConsegna) {\n\t\t\tthis.dataConsegna = dataConsegna;\n\t\t}", "@Override\n public void procesarLlegada(Consulta consulta){\n consulta.setTipoModulo(TipoModulo.ClientesYConexiones); //La consulta se encuentra en este módulo.\n\n if(numeroServidores == 0){\n conexionesDescartadas++;\n listaDeEventos.removeIf((Evento ev) -> ev.getConsulta() == consulta); //Quito el timeout si la conexion fue descartada\n }else{\n numeroServidores--;\n consulta.setTiempoIngreso(this.reloj); //Se le da a la consulta el tiempo en el que ingresó al sistema.\n generarLlegadaAdmProcesos(consulta);\n }\n this.generarLlegadaAdmClientes();\n }", "public void setFECHAECVACT(int value) {\n this.fechaecvact = value;\n }", "@WebMethod\n\tpublic String updateFechaInicio(\n\t\t@WebParam(name=\"inCrrsd_codigo\")String inCrrsd_codigo,\n\t\t@WebParam(name=\"inCrrsd_fecha_inicio\")java.util.Date inCrrsd_fecha_inicio\t\n\t) throws SOAPException{\n\t\tString res = \"true\";\n\t\tHttpServletRequest tmpRequest = (HttpServletRequest) wctx.getMessageContext().get(MessageContext.SERVLET_REQUEST);\n\t\tcom.besixplus.sii.objects.Cgg_res_residencia obj = new com.besixplus.sii.objects.Cgg_res_residencia();\n\t\tobj.setCRRSD_CODIGO(inCrrsd_codigo);\n\t\tobj.setCRRSD_FECHA_INICIO(inCrrsd_fecha_inicio);\n\t\tobj.setCRRSD_ESTADO(true);\n\t\tobj.setCRRSD_USUARIO_UPDATE(tmpRequest.getUserPrincipal().getName());\n\t\ttry{\n\t\t\tConnection con = ManagerConnection.getConnection();\n\t\t\tif(!com.besixplus.sii.db.Cgg_sec_objeto.isGrant(con, Thread.currentThread().getStackTrace()[1].getMethodName(), Thread.currentThread().getStackTrace()[1].getClassName(), tmpRequest.getUserPrincipal().getName(), 1)){\n\t\t\t\tcon.close();\n\t\t\t\tthrow new SOAPFaultException(SOAPFactory.newInstance().createFault(\"Acceso no autorizado.\", new QName(\"http://schemas.xmlsoap.org/soap/envelope/\",Thread.currentThread().getStackTrace()[1].getClassName()+\" \"+Thread.currentThread().getStackTrace()[1].getMethodName())));\n\t\t\t}\n\t\t\tres = new com.besixplus.sii.db.Cgg_res_residencia(obj).updateFechaInicio(con);\n\t\t\tcon.close();\n\t\t\tif(!res.equals(\"true\"))\n\t\t\t\tthrow new SOAPFaultException(SOAPFactory.newInstance().createFault(res, new QName(\"http://schemas.xmlsoap.org/soap/envelope/\",Thread.currentThread().getStackTrace()[1].getClassName()+\" \"+Thread.currentThread().getStackTrace()[1].getMethodName())));\n\t\t}catch(SQLException inException){\n\t\t\tcom.besixplus.sii.db.SQLErrorHandler.errorHandler(inException);\n\t\t\tthrow new SOAPFaultException(SOAPFactory.newInstance().createFault(inException.getMessage(), new QName(\"http://schemas.xmlsoap.org/soap/envelope/\", Thread.currentThread().getStackTrace()[1].getClassName()+\" \"+Thread.currentThread().getStackTrace()[1].getMethodName())));\n\t\t}catch (Exception inException){\n\t\t\tcom.besixplus.sii.db.SQLErrorHandler.errorHandler(inException);\n\t\t\tthrow new SOAPFaultException(SOAPFactory.newInstance().createFault(inException.getMessage(), new QName(\"http://schemas.xmlsoap.org/soap/envelope/\", Thread.currentThread().getStackTrace()[1].getClassName()+\" \"+Thread.currentThread().getStackTrace()[1].getMethodName())));\n\t\t}\n\t\treturn res;\n\t}", "public void modificar() {\n try {\n if(!fecha.equals(null)){\n Dr_siseg_usuarioBean usuario = new Dr_siseg_usuarioBean();\n FacesContext facesContext = FacesContext.getCurrentInstance();\n usuario = (Dr_siseg_usuarioBean) facesContext.getExternalContext().getSessionMap().get(\"usuario\");\n \n calendar.setTime((Date) this.fecha);\n this.Selected.setApel_fecha_sesion(calendar.getTime());\n\n ApelacionesDao apelacionesDao = new ApelacionesDao();\n apelacionesDao.IME_APELACIONES(2, Selected); \n\n BitacoraSolicitudDao bitacoraSolicitudDao = new BitacoraSolicitudDao();//INSERTA EL MOVIMIENTO EN LA BITACORA\n BitacoraSolicitudBean bitacoraSolicitudBean = new BitacoraSolicitudBean();\n bitacoraSolicitudBean.setBit_sol_id(this.Selected.getApel_sol_numero());\n bitacoraSolicitudBean.setUsuarioBean(usuario);\n bitacoraSolicitudBean.setBit_tipo_movimiento(\"1\");\n bitacoraSolicitudBean.setBit_detalle(\"Fue modificada la apelacion\");\n bitacoraSolicitudDao.dmlDr_regt_bitacora_solicitud(bitacoraSolicitudBean);\n\n this.Listar();\n this.Selected = new ApelacionesBean();\n addMessage(\"Guadado Exitosamente\", 1);\n }else\n {\n addMessage(\"Es requerida la fecha\",1 );\n }\n } catch (ExceptionConnection ex) {\n Logger.getLogger(ApelacionController.class.getName()).log(Level.SEVERE, null, ex);\n addMessage(\"Se produjo un error al insertar el registro, contacte al administrador del sistema\", 1);\n }\n }", "public void setProformaDate (java.util.Date proformaDate) {\n\t\tthis.proformaDate = proformaDate;\n\t}", "public void setFechaCheque(final Date fecha){\t}", "public void setFechaFacturado(java.util.Calendar param){\n \n this.localFechaFacturado=param;\n \n\n }", "public java.sql.ResultSet consultapormedicoespecialidadfecha(String CodigoMedico,String CodigoEspecialidad,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pmd.codigo=\"+CodigoMedico+\" and pes.codigo=\"+CodigoEspecialidad+\" and phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicoespecialidadfecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public void setFechaInsercion(String p) { this.fechaInsercion = p; }", "public void setFechaInsercion(String p) { this.fechaInsercion = p; }", "public Date getFechaBajaDesde() {\r\n\t\treturn fechaBajaDesde;\r\n\t}", "public void setFechaEvento(String fechaEvento) {\n this.fechaEvento = fechaEvento;\n }", "public abstract void setFecha_inicio(java.lang.String newFecha_inicio);", "public void setFechaReserva(Timestamp fechaReserva) {\n this.fechaReserva.set(fechaReserva);\n }", "public void actualizarConsultaMedica(String idConsultaMedica, entidad.ConsultaMedica actConsulta){\r\n OperacionesConsultaMedica operacionesConsultaMedica = new OperacionesConsultaMedica();\r\n operacionesConsultaMedica.actualizarConsultaMedica(idConsultaMedica, actConsulta);\r\n }", "public void setFechaNacim(Date fechaNacim) {\r\n this.fechaNacim = fechaNacim;\r\n }", "public void setDataCadastroCota(Date dataCadastroCota) {\n\t\tif(dataCadastroCota != null){\n\t\t\tthis.dataCadastroCota = new DateTimeDB(dataCadastroCota.getTime());\n\t\t} else{\n\t\t\tthis.dataCadastroCota = null;\t\n\t\t}\n\t}", "@Query(\"FROM Consulta c WHERE c.fecha BETWEEN :fechaConsulta AND :fechaSgte\")\n\tList<Consulta> buscarFecha(@Param(\"fechaConsulta\") LocalDateTime fechaConsulta,@Param(\"fechaSgte\") LocalDateTime fechaSgte);", "public void setfPeticion(Date fPeticion) {\r\n this.fPeticion = fPeticion;\r\n }", "public void setDateFinContrat(Date dateFinContrat) {\r\n this.dateFinContrat = dateFinContrat;\r\n }", "public void setDataModifica(Date dataModifica) {\n\t\tthis.dataModifica = dataModifica;\n\t}", "private void procurarData() {\n if (jDateIni.getDate() != null && jDateFim.getDate() != null) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n String data = sdf.format(jDateIni.getDate());\n String data2 = sdf.format(jDateFim.getDate());\n carregaTable(id, data, data2);\n JBreg.setEnabled(false);\n }\n }", "public void setFECHAECVACT(int value) {\n this.fechaecvact = value;\n }", "private java.sql.Date obtenerFechaEnSQL(JXDatePicker fecha) {\n Calendar cal = Calendar.getInstance();\n cal.setTime(fecha.getDate());\n int year = cal.get(Calendar.YEAR) - 1900; //PORQUE PUTAS\n int month = cal.get(Calendar.MONTH);\n int day = cal.get(Calendar.DAY_OF_MONTH);\n java.sql.Date sqlDate;\n\n sqlDate = new java.sql.Date(year, month, day);\n return sqlDate;\n }", "public void setDataAffidamento(Optional<LocalDate> dataAffidamento) {\n\t\tthis.dataAffidamento = dataAffidamento;\n\t}", "public void setDataPreventivo(Date dataPreventivo) {\n this.dataPreventivo = dataPreventivo;\n }", "@Override\n public java.util.Date getFecha() {\n return _partido.getFecha();\n }", "public Date getFechaHasta()\r\n/* 174: */ {\r\n/* 175:302 */ return this.fechaHasta;\r\n/* 176: */ }", "List<Venta1> consultarVentaPorFecha(Date desde, Date hasta, Persona cliente) throws Exception;", "public void setValor(Date novoValor){\r\n\t\t\ttry {\r\n\t\t\t\tDateDocument doc = (DateDocument) getDocument();\r\n\t\t\t\tdoc.getDateFormat().parse(getText(0, doc.getLength()));\r\n\t\t\t\tsetText(doc.getDateFormat().format(novoValor));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "public void setFechaSolicitud(java.util.Calendar param){\n \n this.localFechaSolicitud=param;\n \n\n }", "public void setFechaReg(java.util.Calendar fechaReg) {\n this.fechaReg = fechaReg;\n }", "public void setDateOfExamination(java.util.Date param){\n \n this.localDateOfExamination=param;\n \n\n }", "public void setFechaInicio(String fechaInicio) {\n this.fechaInicio = fechaInicio;\n }", "public String obtenerCampo(String sqlConsulta) throws SQLException {\n try {\n this.sqlConsulta = sqlConsulta;\n ejecutarResultSet();\n if (!resultSet.first() || resultSet.getString(1) == null) {\n return \"\";\n }\n String campo = resultSet.getString(1);\n return campo;\n } finally {\n cerrarResultSet();\n }\n\n }", "public void setDataNascimentoFromSQL(Date dataNascimento) {\r\n\r\n\t\t// montando a data atrav�s do Calendar\r\n\t\tCalendar data = Calendar.getInstance();\r\n\t\tdata.setTime(dataNascimento);\r\n\t\tthis.dataNascimento = data;\r\n\r\n\t}", "public void setFechaPago(java.util.Calendar fechaPago) {\n this.fechaPago = fechaPago;\n }", "public void setFechaInclusion(Date fechaInclusion)\r\n/* 155: */ {\r\n/* 156:174 */ this.fechaInclusion = fechaInclusion;\r\n/* 157: */ }", "public FrmFichaHighSchool(int idVenda, UsuarioLogadoBean usuarioLogado,IConsultaHighSchool telaConsulta, Date dataCambio) {\r\n this.telaConsulta = telaConsulta;\r\n this.usuarioLogadoBean = usuarioLogado;\r\n this.dataCambio = dataCambio;\r\n datePattern = \"dd/MM/yyyy\";\r\n maskPattern = \"##/##/##\";\r\n placeHolder = '_';\r\n initComponents();\r\n URL url = this.getClass().getResource(\"/imagens/logo/logotela.png\");\r\n Image imagemTitulo = Toolkit.getDefaultToolkit().getImage(url);\r\n this.setIconImage(imagemTitulo);\r\n this.setLocationRelativeTo(null);\r\n limitarJText();\r\n carregarInicializacao(idVenda);\r\n carregarModelParcelamento();\r\n this.setVisible(true);\r\n\r\n }", "public void setFechaImplementacionActividad(int IdActividad, String tipo) throws IOException{\n TipoActividad tipoActividad = TipoActividad.valueOf(tipo.toUpperCase());\n FechaImplementacion = new Date();\n if((fDatos.setFechaImplementacionActividad(FechaImplementacion, IdActividad, AccionSeleccionada.getId()))== -1){\n switch(tipoActividad){\n case CORRECTIVA->mostrarErrorCorrectiva(IdActividad);\n case PREVENTIVA->mostrarErrorPreventiva(IdActividad);\n default->mostrarErrorActividad(IdActividad);\n }\n }else{\n // recargar vista de seguimiento\n String url = FacesContext.getCurrentInstance().getExternalContext().getRequestContextPath();\n FacesContext.getCurrentInstance().getExternalContext().redirect(url+\"/Views/Acciones/General/SeguimientoAccion.xhtml?id=\"+AccionSeleccionada.getId());\n }\n }", "public abstract void setFecha_ingreso(java.sql.Timestamp newFecha_ingreso);", "@Test\n\tpublic void testSetFecha7(){\n\t\tPlataforma.closePlataforma();\n\t\t\n\t\tfile = new File(\"./data/plataforma\");\n\t\tfile.delete();\n\t\tPlataforma.openPlataforma();\n\t\tPlataforma.login(\"1\", \"contraseniaprofe\");\n\t\t\n\t\tPlataforma.setFechaActual(Plataforma.fechaActual.plusDays(2));\n\t\tej1.responderEjercicio(nacho, array);\n\t\t\t\t\n\t\tLocalDate fin = Plataforma.fechaActual.plusDays(10);\n\t\tLocalDate ini = Plataforma.fechaActual.plusDays(3);\n\t\tassertTrue(ej1.setFechaFin(fin));\n\t\tassertFalse(ej1.setFechaIni(ini));\n\t}", "public void setEmpresa(Empresa empresa) {\n\t\tproducto.setEmpresa(empresa);\n\t}", "public ColecaoConsultas() {\r\n\t\tcol = new ArrayList<Consulta>();\r\n\t}", "@Override\r\n public void abrirListaReportes() {\n sec_rango_reporte.getCal_fecha1().setValue(null);\r\n sec_rango_reporte.getCal_fecha2().setValue(null);\r\n rep_reporte.dibujar();\r\n\r\n }", "public LocalDate GetFechaUltimoCambio() throws RemoteException;", "public Resultado executarConsulta(Requisicao requisicao) throws Exception {\r\n return null;\r\n }", "public Date getFechaAltaHasta() {\r\n\t\treturn fechaAltaHasta;\r\n\t}", "public Date buscarFechaFacturacion() throws Exception {\n\n logger.debug(\"Buscando fecha de facturacion\");\n\n try {\n\n return getMgrFacturacionService().getFechaServidor();\n } catch (ManagerFacturacionServiceBusinessException e) {\n logger.error(e.getMessage(), e);\n throw new Exception(e.getMessage(), e);\n } catch (RemoteException e) {\n logger.error(e.getMessage(), e);\n throw new Exception(e.getMessage(), e);\n }\n }", "@Override\n\tpublic Page<PedidoDTO> consultar(PedidoConsultaDTO consulta, Pageable page) {\n\t\treturn null;\n\t}" ]
[ "0.6946792", "0.6897344", "0.6437282", "0.63130397", "0.6185014", "0.61351156", "0.6065179", "0.6012994", "0.5984188", "0.5900904", "0.58643097", "0.58532643", "0.5784793", "0.5778032", "0.571276", "0.56899554", "0.5662991", "0.5662214", "0.56425035", "0.564213", "0.5635278", "0.5617753", "0.56039345", "0.559322", "0.5583648", "0.55547976", "0.55532163", "0.5553085", "0.5552217", "0.5538247", "0.5517369", "0.5494284", "0.54846144", "0.54635113", "0.5460105", "0.54401684", "0.54238975", "0.54032665", "0.54016006", "0.5391595", "0.53823745", "0.53654546", "0.53362674", "0.533384", "0.5328511", "0.5305533", "0.52893084", "0.5282343", "0.5265068", "0.52572554", "0.5255946", "0.5237232", "0.5226972", "0.5225772", "0.52075195", "0.5204039", "0.5195808", "0.5191045", "0.51876426", "0.51876426", "0.518751", "0.51856047", "0.51853055", "0.5184271", "0.5179389", "0.51787007", "0.517799", "0.51746273", "0.51738656", "0.5168637", "0.51642555", "0.51509017", "0.5143008", "0.51408064", "0.514031", "0.5129026", "0.5127023", "0.51219046", "0.5118717", "0.5116877", "0.51129794", "0.5109621", "0.51072866", "0.5106174", "0.5101578", "0.50975764", "0.5094382", "0.50834316", "0.50826424", "0.50730056", "0.50687784", "0.50687045", "0.50662833", "0.5062538", "0.50607854", "0.50473106", "0.5037467", "0.5036258", "0.5031748", "0.50317115" ]
0.7876846
0
This method was generated by MyBatis Generator. This method returns the value of the database column expediente_consulta.idExpediente
public Integer getIdexpediente() { return idexpediente; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BigDecimal getIdExpediente() {\r\n return idExpediente;\r\n }", "public Integer getIdExperienciaEducativa() {\r\n return idExperienciaEducativa;\r\n }", "public String getCodigoExpediente() {\r\n return codigoExpediente;\r\n }", "public E getConsulta() {\n\n\t\treturn this.consulta;\n\t}", "int getEviId(String project, DataDate date) throws SQLException;", "int getEtoId(DataDate date) throws SQLException;", "@Transient\n\t/**\n\t * @return the idInstituicao\n\t */\n\tpublic Integer getIdInstituicao() {\n\t\treturn idInstituicao;\n\t}", "public int getTipoEleicao(int idEleicao){\n return this.eleicaoDB.getTipoEleicao(idEleicao);\n }", "private int getEmployeeId() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tint employeeId1 = 0;\r\n\t\tString sql = \"SELECT Patient_Id_Sequence.NEXTVAL FROM DUAL\";\r\n\t\ttry {\r\n\t\t\tPreparedStatement pstmt = con.prepareStatement(sql);\r\n\t\t\tResultSet res = pstmt.executeQuery();\r\n\t\t\tif (res.next()) {\r\n\t\t\t\temployeeId1 = res.getInt(1);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"error while fetching data from database\");\r\n\t\t}\r\n\t\treturn employeeId1;\r\n\r\n\t}", "Especialidad getEspecialidadPorId(Integer especialidadId);", "public int getIdExamCcEtudiant(String matricule, int idMatiere){\n int id ;\n Query query = em.createQuery(\"select etuex.idexamen from EtudiantExam etuex,Examen exam, MatiereExam matexam where etuex.matricule := ?1 and matexam.idmatiere := ?2 and matexam.idexamen := exam.idexamen and exam.type := 'CC' and exam.idexamen := etuex.idexamen\");\n id = (int)query.getSingleResult(); \n return id;\n \n }", "public int getCampoIdentificacao() {\r\n return campoIdentificacao;\r\n }", "public int getIdentificador() {\r\n\t\treturn identificador;\r\n\t}", "public String getCodigoExemplar(int select) throws IOException {\r\n ArrayList<String> listExemplar = exemplar.getListExemplar();\r\n ArrayList<String> templist = new ArrayList<String>();\r\n\r\n for (int i = 0; i < listExemplar.size(); i++) {\r\n if (listExemplar.get(i).contains(getCodigoLivro())) {\r\n templist.add(listExemplar.get(i));\r\n }\r\n }\r\n String[] temp = templist.get(select).split(\";\");\r\n return temp[1];\r\n }", "public String getDenumireExperienta(String id) {\n c = db.rawQuery(\"select denumire from experienta where id='\" + id + \"'\", new String[]{});\n StringBuffer buffer = new StringBuffer();\n while (c.moveToNext()) {\n String denumire = c.getString(0);\n buffer.append(\"\" + denumire);\n }\n return buffer.toString();\n }", "public abstract java.lang.Integer getEspe_id();", "public int idEmpleado(int cui) throws SQLException{\n obtenerConexion();\n int id = 0;\n PreparedStatement declaracionId = cn.prepareStatement(ID_EMPLEADO);\n declaracionId.setInt(1, cui);\n ResultSet result = declaracionId.executeQuery();\n while(result.next()){\n id = result.getInt(\"id\");\n }\n login.Desconectar();\n return id;\n }", "public void setIdExpediente(BigDecimal idExpediente) {\r\n this.idExpediente = idExpediente;\r\n }", "public int obtenerDatosPersonaEspecifico(int idCliente) {\n\n\t\ttry {\n\n\t\t\tlog.info(\"Procediendo a obtener salidas especificas para la persona\");\n\t\t\tStoredProcedureQuery storedProcedureQuery = entityManager\n\t\t\t\t\t\n\t\t\t\t\t// Definicion\n\t\t\t\t\t.createStoredProcedureQuery(prop.getPROCEDURE_OBTENER_DATOS_UNICOS())\n\n\t\t\t\t\t// Entradas\n\t\t\t\t\t.registerStoredProcedureParameter(1, Integer.class, ParameterMode.IN)\n\n\t\t\t\t\t// Salidas\n\t\t\t\t\t.registerStoredProcedureParameter(2, String.class, ParameterMode.OUT)\n\t\t\t\t\t.registerStoredProcedureParameter(3, String.class, ParameterMode.OUT)\n\n\t\t\t\t\t// Parametros\n\t\t\t\t\t.setParameter(1, idCliente);\n\n\t\t\tlog.info(\"Ejecutando Procedimiento...\");\n\t\t\tstoredProcedureQuery.execute();\n\t\t\tlog.info(\"Procedimiento ejecutado\");\n\n\t\t\t// Obtener los datos de salida\n\t\t\tString nombre = (String) storedProcedureQuery.getOutputParameterValue(2);\n\t\t\tString direccion = (String) storedProcedureQuery.getOutputParameterValue(3);\n\n\t\t\tlog.info(\"SALIDA: Nombre = \" + nombre + \" , Direccion = \" + direccion);\n\t\t\treturn 1;\n\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"Error al consultar procedure [\" + prop.getPROCEDURE_OBTENER_PERSONA_ID() + \"] , Detalle > \" + e.getMessage());\n\t\t}\n\t\t\n\t\treturn 0;\n\n\t}", "@Transactional\r\n\t@Modifying\r\n\t@Query(value = \"INSERT INTO CONSULTA_EXAMEN(ID_CONSULTA, ID_EXAMEN) VALUES (:idConsulta, :idExamen)\", nativeQuery = true)\r\n\t//METODO MANUAL\r\n\tint registrar(@Param(\"idConsulta\")int idConsulta, @Param(\"idExamen\") int idExamen);", "public void setIdExperienciaEducativa(Integer idExperienciaEducativa) {\r\n this.idExperienciaEducativa = idExperienciaEducativa;\r\n }", "public int getIdExamSnEtudiant(String matricule, int idMatiere){\n int id;\n Query query = em.createQuery(\"select etuex.idexamen from EtudiantExam etuex,Examen exam, MatiereExam matexam where etuex.matricule := ?1 and matexam.idmatiere := ?2 and matexam.idexamen := exam.idexamen and exam.type := 'SN' and exam.idexamen := etuex.idexamen\");\n id = (int)query.getSingleResult(); \n return id;\n }", "public int getEntidad() {\n return entidad;\n }", "public int getExpId() {\n return expId;\n }", "@Override\r\n\tpublic Importancia findOne(Integer codigo) throws DataAccessException {\n\t\treturn null;\r\n\t}", "public Integer getId_inventario() {\r\n return id_inventario;\r\n }", "public int getcodigoIdentificador() {\r\n\t\treturn codigoIdentificador;\r\n\t}", "public Integer geteId() {\n return eId;\n }", "public Integer geteId() {\n return eId;\n }", "int getEmployeeId();", "public int getIdNoeud() {\n return idNoeud;\n }", "public int getEmployeeId();", "@Column(name = \"C_NO_IDENTIFICACION\", nullable = true)\n public String getNoIdentificacion() {\n return noIdentificacion;\n }", "public int getId()\r\n/* 208: */ {\r\n/* 209:381 */ return this.idCargaEmpleado;\r\n/* 210: */ }", "public java.lang.Long getIdentificador()\r\n {\r\n return this.identificador;\r\n }", "public int getEmpatadas(){\n\t\treturn empatadas;\n\t}", "public Integer geteDeptid() {\n return eDeptid;\n }", "public int ObtenerMaximaIdDetalle() {// METODO OBTENER MAXIMA ID\n\n conexionBD.getConnection();\n\n try {\n String SQL = \"SELECT * FROM facturadetalle\";\n Statement stmt = conexionBD.con.createStatement();\n ResultSet rs = stmt.executeQuery(SQL);\n idFacturaDetalle = 0;\n\n while (rs.next()) {\n idFacturaDetalle = rs.getInt(\"idFacturaDetalle\");\n }\n\n rs.close();\n stmt.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return idFacturaDetalle;\n }", "public Integer getIdRespuesta() {\n return idRespuesta;\n }", "@Override\r\n\tpublic int getEnterNo() {\n\t\treturn session.selectOne(\"enter.getEnterNo\");\r\n\t}", "public HTMLSelectElement getElementCodigoEmpleado() { return this.$element_CodigoEmpleado; }", "public DetalleNominaEmpleado getDetalleNominaEmpleado(Integer dnoeId)\n throws Exception;", "public String getDescripcionExpediente() {\r\n return descripcionExpediente;\r\n }", "@Override\n public Propiedad getPropiedadId(String pNumFinca) throws SQLException {\n ArrayList<Propiedad> resultado = new ArrayList<Propiedad>();\n resultado = (ArrayList<Propiedad>) bdPropiedad.selectQuery(\"SELECT * FROM PROPIEDAD WHERE \"\n + \"ID_PROPIEDAD = '\" + pNumFinca + \"'\");\n Propiedad propiedadSeleccionada = resultado.get(0);\n return propiedadSeleccionada;\n }", "public Long getId() {\r\n return idComentario;\r\n }", "private String getAutoIDEmployee(String adminID) throws SQLException{ \n String IDEmploy = null;\n String Dep = adminID.substring(2); // ADRD.TA\n IDEmploy += \"EM\" + Dep;\n \n // truy van lay thang ID cuoi cung theo phong ban\n \n Connection con = DriverManager.getConnection(url,user,pass);\n String query = \"select TOP 1 * from Employee where Employee.Admin_ID LIKE '%\"+Dep+\"%' order by Employee.Employee_ID desc\";\n PreparedStatement pst = con.prepareStatement(query);\n ResultSet rs = pst.executeQuery();\n rs.next();\n String IDLastFromDB = rs.getString(1);\n \n int IDNext = Integer.parseInt(IDLastFromDB.substring(8));\n String kq = \"\"; \n if (IDNext < 10){ \n kq += \"00\" + ++IDNext;\n } else kq += \"0\" + ++IDNext;\n return IDLastFromDB.substring(0, 7) + kq;\n }", "int getModisId(ModisProduct product, DataDate date, int horz, int vert) throws SQLException;", "@Override\n\tpublic Employee getEmpOnId(int empNo) throws EmpException {\n\t\treturn dao.getEmpOnId(empNo);\n\t}", "@Override\n\tpublic Integer getId() {\n\t\treturn ofertaOpexId;\n\t}", "public int getId()\r\n/* 69: */ {\r\n/* 70:103 */ return this.idAutorizacionEmpresaSRI;\r\n/* 71: */ }", "public BigDecimal getSecuenciaExpediente() {\r\n return secuenciaExpediente;\r\n }", "public int conocerID(String usuario) {\n Conexion c = new Conexion();\n PreparedStatement ps = null;\n ResultSet rs = null;\n String sql = \"SELECT id FROM usuario WHERE usuario.usuario = ?\";\n try {\n ps = c.getConexion().prepareStatement(sql);\n ps.setString(1, usuario);\n rs = ps.executeQuery();\n while (rs.next()) {\n return rs.getInt(1);\n }\n\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n } finally {\n try {\n ps.close();\n rs.close();\n c.cerrarConexion();\n } catch (Exception ex) {\n }\n }\n return -1;\n }", "public java.lang.String getIdcliente() {\n return idcliente;\n }", "public Integer obterIdEmpresaPorRota(Rota rota) throws ErroRepositorioException;", "int getReprojectedEtoId(String project, DataDate date) throws SQLException;", "public final Long getId_entreprise() {\n return this.id_entreprise;\n }", "public long getIdCadastroSelecionado(){\r\n \treturn idCadastroSelecionado;\r\n }", "public String getCodigoEmpresa() {\n return this.codigoEmpresa;\n }", "public java.lang.String getIdentificacionEntrega() {\r\n return identificacionEntrega;\r\n }", "public int getDocenteId() {\r\n return this.docenteId;\r\n }", "public long getEulaId() {\n return eulaId;\n }", "@Select({\n \"select\",\n \"id, dept_name\",\n \"from dept\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @ResultMap(\"cn.wuaijing.mapper.DeptMapper.BaseResultMap\")\n Dept selectByPrimaryKey(Integer id);", "public int getCodigoSelecionado() {\n return codigoSelecionado;\n }", "public String getFechaExpedicion() { return (this.fechaExpedicion == null) ? \"\" : this.fechaExpedicion; }", "public String getIdentificacao() {\n\t\treturn identificacao;\n\t}", "public Integer getExisteCliente(String codigoCliente);", "public String getEmployeeEmail(Statement stmt, String intEmployeeId){\n\t\t\tString empEmail = null;\n\t\t\tString query = \"select value from employeeAttributes where intEmployeeId =\"+ intEmployeeId + \" and attrId =17\"; \n\t\t\ttry{\n//\t\t\t\tSystem.out.println(\"Emp Email : \"+ query);\n\t\t\t\trs = stmt.executeQuery(query);\n\t\t\t\trs.next();\n\t\t\t\tempEmail = rs.getString(1);\n\t\t\t}catch(SQLException se){\n\t\t\t\tSystem.err.println(\"Error to find Employee Email\");\n\t\t\t}\n\t\t\treturn empEmail;\n\t\t}", "public Integer getIdUsuario() {\n return idUsuario;\n }", "public int getId()\r\n/* 53: */ {\r\n/* 54: 79 */ return this.idDetalleComponenteCosto;\r\n/* 55: */ }", "public int getEmployeeId() {\r\n\t\r\n\t\treturn employeeId;\r\n\t}", "public int getId()\r\n/* 75: */ {\r\n/* 76:110 */ return this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;\r\n/* 77: */ }", "public Long getIdVieSociale() {\r\n\t\treturn idVieSociale.get();\r\n\t}", "public int getId_docente() {\n return id_docente;\n }", "public ResultSet listarConsultasPorPaciente(String idExpediente) throws SQLException\r\n {\r\n OperacionesConsultaMedica operacionesConsultaMedica = new OperacionesConsultaMedica();\r\n return operacionesConsultaMedica.listarConsultasPorPaciente(idExpediente);\r\n }", "public int sonQaime() throws SQLException{\n \n Connection con =DBConnect.baglan();\n Statement st = con.createStatement();\n ResultSet rs = st.executeQuery(\"select id from Qaime\");\n int id =0;\n while(rs.next()){\n id=rs.getInt(1);\n }\n rs.close();\n st.close();\n con.close();\n return id;\n }", "public Long getIdExcluir() {\r\n\t\treturn idExcluir;\r\n\t}", "public int getEmpId() {\n return id;\n }", "public long getEmployeeId();", "ProEmployee selectByPrimaryKey(String id);", "public int getIdPedido() {\r\n\t\treturn idPedido;\r\n\t}", "public int employeeId(String employeeName) {\n\n int idOfEmployee = 0;\n\n try {\n Connection conn = ConnectToSqlDB.connectToSqlDatabase();\n String query = \"SELECT * FROM employees;\";\n\n ConnectToSqlDB.statement = conn.createStatement();\n\n ConnectToSqlDB.resultSet = ConnectToSqlDB.statement.executeQuery(query);\n\n while (ConnectToSqlDB.resultSet.next()) {\n int idField = ConnectToSqlDB.resultSet.getInt(\"employee_id\");\n String nameField = ConnectToSqlDB.resultSet.getString(\"employee_name\");\n String salaryField = ConnectToSqlDB.resultSet.getString(\"employee_salary\");\n String departmentField = ConnectToSqlDB.resultSet.getString(\"department\");\n\n if (nameField.equals(employeeName)) {\n idOfEmployee = idField;\n }\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n System.out.print(\"The ID assigned to this employee is: \");\n return idOfEmployee;\n }", "private static int selectDernierIdUtilisateur() {\n SQLiteDatabase db = MoteurBD.getMoteurBD().getDb();\n //TODO devrais getter sur les interwebs\n Cursor c = db.rawQuery(\"select id from utilisateur order by id desc limit 1;\", null);\n try {\n return c.moveToFirst() ? c.getInt(0) : 1;\n }\n finally {\n c.close();\n }\n }", "public int getIdReceta() {\r\n return idReceta;\r\n }", "public int getIdDetalleComponenteCosto()\r\n/* 58: */ {\r\n/* 59: 83 */ return this.idDetalleComponenteCosto;\r\n/* 60: */ }", "public int getIdproducto() {\r\n\t\treturn idproducto;\r\n\t}", "void actualizarExpedienteReplicado(Long idExpediente) throws NSJPNegocioException;", "public int getId_mensaje() {\n return id_mensaje;\n }", "public String consultarEstudioUltimaId(){\n //Creamos el conector de bases de datos\n AdmiSQLiteOpenHelper admin = new AdmiSQLiteOpenHelper(this, \"administracion\", null, 1 );\n // Abre la base de datos en modo lectura y escritura\n SQLiteDatabase BasesDeDatos = admin.getWritableDatabase();\n //Consulta El valor t_estudio\n Cursor consultaIdPreguntas = BasesDeDatos.rawQuery(\"SELECT id FROM t_estudios ORDER BY id DESC LIMIT 1\", null);\n\n String idPregunta = \"0\";\n\n if (consultaIdPreguntas.moveToFirst()){\n idPregunta = consultaIdPreguntas.getString(0);\n }\n\n consultaIdPreguntas.close();\n BasesDeDatos.close();\n\n return idPregunta;\n\n }", "public int siguienteRegistro(int codigoFlujo) {\n/* 265 */ int inumero = 1;\n/* 266 */ String s = \"select max(secuencia) from wkf_detalle where codigo_flujo=\" + codigoFlujo + \"\";\n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 271 */ boolean rta = this.dat.parseSql(s);\n/* 272 */ if (!rta) return 0; \n/* 273 */ this.rs = this.dat.getResultSet();\n/* 274 */ if (this.rs.next()) {\n/* 275 */ s = this.rs.getString(1);\n/* 276 */ if (!this.rs.wasNull()) {\n/* 277 */ inumero = Integer.parseInt(s) + 1;\n/* */ }\n/* */ } \n/* 280 */ return inumero;\n/* */ }\n/* 282 */ catch (Exception e) {\n/* 283 */ e.printStackTrace();\n/* 284 */ Utilidades.writeError(\"FlujoDetalleDAO:siguienteRegistro \", e);\n/* */ \n/* 286 */ return 0;\n/* */ } \n/* */ }", "@Transient\r\n\tpublic static Long getIdActivida() {\r\n\t\treturn idActivida;\r\n\t}", "public int getAtencionAlCliente(){\n return atencion_al_cliente; \n }", "@Override\r\n public ExpedienteGSMDTO editarExpedienteOrdenServicio(ExpedienteGSMDTO expedienteDTO, String codigoTipoSupervisor, PersonalDTO personalDest, UsuarioDTO usuarioDTO) throws ExpedienteException {\r\n LOG.error(\"editarExpediente\");\r\n ExpedienteGSMDTO retorno= new ExpedienteGSMDTO();\r\n try {\r\n PghExpediente registro = crud.find(expedienteDTO.getIdExpediente(), PghExpediente.class);\r\n registro.setIdFlujoSiged(new PghFlujoSiged(expedienteDTO.getFlujoSiged().getIdFlujoSiged()));\r\n registro.setIdProceso(new PghProceso(expedienteDTO.getProceso().getIdProceso()));\r\n registro.setIdObligacionTipo(new PghObligacionTipo(expedienteDTO.getObligacionTipo().getIdObligacionTipo()));\r\n registro.setAsuntoSiged(expedienteDTO.getAsuntoSiged());\r\n registro.setIdUnidadSupervisada(new MdiUnidadSupervisada(expedienteDTO.getUnidadSupervisada().getIdUnidadSupervisada()));\r\n registro.setIdEmpresaSupervisada(new MdiEmpresaSupervisada(expedienteDTO.getEmpresaSupervisada().getIdEmpresaSupervisada()));\r\n registro.setDatosAuditoria(usuarioDTO);\r\n if(expedienteDTO.getObligacionSubTipo()!=null && expedienteDTO.getObligacionSubTipo().getIdObligacionSubTipo()!=null){\r\n registro.setIdObligacionSubTipo(new PghObligacionSubTipo(expedienteDTO.getObligacionSubTipo().getIdObligacionSubTipo()));\r\n }else{\r\n registro.setIdObligacionSubTipo(null);\r\n }\r\n crud.update(registro);\r\n retorno = ExpedienteGSMBuilder.toExpedienteDto(registro); \r\n \r\n Long idLocador=codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_NATURAL)?expedienteDTO.getOrdenServicio().getLocador().getIdLocador():null;\r\n Long idSupervisoraEmpresa=codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_JURIDICA)?expedienteDTO.getOrdenServicio().getSupervisoraEmpresa().getIdSupervisoraEmpresa():null;\r\n \r\n String flagConfirmaTipoAsignacion=(!StringUtil.isEmpty(expedienteDTO.getFlagEvaluaTipoAsignacion())?Constantes.ESTADO_ACTIVO:null);\r\n OrdenServicioDTO OrdenServicioDTO=ordenServicioDAO.editarExpedienteOrdenServicio(expedienteDTO.getOrdenServicio().getIdOrdenServicio(), expedienteDTO.getOrdenServicio().getIdTipoAsignacion(), codigoTipoSupervisor, idLocador, idSupervisoraEmpresa, usuarioDTO,flagConfirmaTipoAsignacion);\r\n \r\n EstadoProcesoDTO estadoProcesoDto=estadoProcesoDAO.find(new EstadoProcesoFilter(Constantes.IDENTIFICADOR_ESTADO_PROCESO_OS_REGISTRO)).get(0);\r\n MaestroColumnaDTO tipoHistoricoOS=maestroColumnaDAO.findMaestroColumna(Constantes.DOMINIO_TIPO_COMPONENTE, Constantes.APLICACION_INPS, Constantes.CODIGO_TIPO_COMPONENTE_ORDEN_SERVICIO).get(0);\r\n HistoricoEstadoDTO historicoEstadoOS=historicoEstadoDAO.registrar(null, OrdenServicioDTO.getIdOrdenServicio(), estadoProcesoDto.getIdEstadoProceso(), expedienteDTO.getPersonal().getIdPersonal(), personalDest.getIdPersonal(), tipoHistoricoOS.getIdMaestroColumna(),null,null, null, usuarioDTO); \r\n LOG.info(\"historicoEstadoOS:\"+historicoEstadoOS);\r\n \r\n retorno.setOrdenServicio(new OrdenServicioDTO(OrdenServicioDTO.getIdOrdenServicio(),OrdenServicioDTO.getNumeroOrdenServicio()));\r\n \r\n }catch(Exception e){\r\n LOG.error(\"error en editarExpediente\",e);\r\n throw new ExpedienteException(e.getMessage(), e);\r\n }\r\n return retorno;\r\n }", "public String getIdEvento() {\r\n return idEvento;\r\n }", "public int getIdCargaEmpleado()\r\n/* 103: */ {\r\n/* 104:185 */ return this.idCargaEmpleado;\r\n/* 105: */ }", "public int getIdEstatusObjeto() {\r\n\t\treturn idEstatusObjeto;\r\n\t}", "public int getExamId();", "@XmlElement\n public String getEmployeId() {\n return employeId;\n }", "public java.lang.Long getId_tecnico();", "public Etudiant getEtudiant(int id) {\n\t\tSession session = ConnexionBD.getConnexion().getFactory().openSession();\n\t\tsession.beginTransaction();\n\t\tQuery query = session.createQuery(\"from Etudiant where idEtudiant= :Id\");\n\t\tquery.setParameter(\"Id\", \"idEtudiant\");\n\t\tEtudiant etu = (Etudiant) query.uniqueResult();\n\t\t\n\t\treturn etu;\n\t}", "public int getIdentifiant() {\r\n return identifiant;\r\n }" ]
[ "0.6918047", "0.66956884", "0.65858287", "0.61618507", "0.58381", "0.5774244", "0.5757953", "0.5730657", "0.5726359", "0.5726087", "0.5711568", "0.5711283", "0.56899196", "0.5685946", "0.5653265", "0.5640987", "0.56266296", "0.562636", "0.5590223", "0.55870914", "0.55853283", "0.555345", "0.55449086", "0.55436176", "0.5541736", "0.5520958", "0.5509913", "0.54878294", "0.54878294", "0.54697406", "0.5456813", "0.54374933", "0.54374915", "0.54317766", "0.5421217", "0.54145914", "0.5413572", "0.5412622", "0.54112357", "0.54084164", "0.540491", "0.540069", "0.53928214", "0.5387879", "0.53852826", "0.53772163", "0.53723305", "0.53670764", "0.5365518", "0.535908", "0.53588825", "0.5344999", "0.533717", "0.5333403", "0.5330343", "0.53226787", "0.5320719", "0.5308268", "0.5306531", "0.5303575", "0.5301786", "0.5285599", "0.5283042", "0.52789634", "0.52728176", "0.52716476", "0.52666116", "0.52580535", "0.5254209", "0.52462476", "0.5244206", "0.5239952", "0.52368736", "0.5236348", "0.52352595", "0.52257043", "0.52232647", "0.5217066", "0.5216144", "0.5209213", "0.52084124", "0.5206395", "0.5199305", "0.51978475", "0.519452", "0.519446", "0.51941943", "0.51913965", "0.5191391", "0.518891", "0.5188591", "0.5183681", "0.5176605", "0.51739573", "0.5164288", "0.51585203", "0.5154077", "0.5153108", "0.5149291", "0.51469564" ]
0.59860826
4
This method was generated by MyBatis Generator. This method sets the value of the database column expediente_consulta.idExpediente
public void setIdexpediente(Integer idexpediente) { this.idexpediente = idexpediente; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIdExpediente(BigDecimal idExpediente) {\r\n this.idExpediente = idExpediente;\r\n }", "public void setIdExperienciaEducativa(Integer idExperienciaEducativa) {\r\n this.idExperienciaEducativa = idExperienciaEducativa;\r\n }", "void actualizarExpedienteReplicado(Long idExpediente) throws NSJPNegocioException;", "public void setConsulta(final E consulta) {\n\n\t\tthis.consulta = consulta;\n\t}", "public BigDecimal getIdExpediente() {\r\n return idExpediente;\r\n }", "@Override\r\n public ExpedienteGSMDTO editarExpedienteOrdenServicio(ExpedienteGSMDTO expedienteDTO, String codigoTipoSupervisor, PersonalDTO personalDest, UsuarioDTO usuarioDTO) throws ExpedienteException {\r\n LOG.error(\"editarExpediente\");\r\n ExpedienteGSMDTO retorno= new ExpedienteGSMDTO();\r\n try {\r\n PghExpediente registro = crud.find(expedienteDTO.getIdExpediente(), PghExpediente.class);\r\n registro.setIdFlujoSiged(new PghFlujoSiged(expedienteDTO.getFlujoSiged().getIdFlujoSiged()));\r\n registro.setIdProceso(new PghProceso(expedienteDTO.getProceso().getIdProceso()));\r\n registro.setIdObligacionTipo(new PghObligacionTipo(expedienteDTO.getObligacionTipo().getIdObligacionTipo()));\r\n registro.setAsuntoSiged(expedienteDTO.getAsuntoSiged());\r\n registro.setIdUnidadSupervisada(new MdiUnidadSupervisada(expedienteDTO.getUnidadSupervisada().getIdUnidadSupervisada()));\r\n registro.setIdEmpresaSupervisada(new MdiEmpresaSupervisada(expedienteDTO.getEmpresaSupervisada().getIdEmpresaSupervisada()));\r\n registro.setDatosAuditoria(usuarioDTO);\r\n if(expedienteDTO.getObligacionSubTipo()!=null && expedienteDTO.getObligacionSubTipo().getIdObligacionSubTipo()!=null){\r\n registro.setIdObligacionSubTipo(new PghObligacionSubTipo(expedienteDTO.getObligacionSubTipo().getIdObligacionSubTipo()));\r\n }else{\r\n registro.setIdObligacionSubTipo(null);\r\n }\r\n crud.update(registro);\r\n retorno = ExpedienteGSMBuilder.toExpedienteDto(registro); \r\n \r\n Long idLocador=codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_NATURAL)?expedienteDTO.getOrdenServicio().getLocador().getIdLocador():null;\r\n Long idSupervisoraEmpresa=codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_JURIDICA)?expedienteDTO.getOrdenServicio().getSupervisoraEmpresa().getIdSupervisoraEmpresa():null;\r\n \r\n String flagConfirmaTipoAsignacion=(!StringUtil.isEmpty(expedienteDTO.getFlagEvaluaTipoAsignacion())?Constantes.ESTADO_ACTIVO:null);\r\n OrdenServicioDTO OrdenServicioDTO=ordenServicioDAO.editarExpedienteOrdenServicio(expedienteDTO.getOrdenServicio().getIdOrdenServicio(), expedienteDTO.getOrdenServicio().getIdTipoAsignacion(), codigoTipoSupervisor, idLocador, idSupervisoraEmpresa, usuarioDTO,flagConfirmaTipoAsignacion);\r\n \r\n EstadoProcesoDTO estadoProcesoDto=estadoProcesoDAO.find(new EstadoProcesoFilter(Constantes.IDENTIFICADOR_ESTADO_PROCESO_OS_REGISTRO)).get(0);\r\n MaestroColumnaDTO tipoHistoricoOS=maestroColumnaDAO.findMaestroColumna(Constantes.DOMINIO_TIPO_COMPONENTE, Constantes.APLICACION_INPS, Constantes.CODIGO_TIPO_COMPONENTE_ORDEN_SERVICIO).get(0);\r\n HistoricoEstadoDTO historicoEstadoOS=historicoEstadoDAO.registrar(null, OrdenServicioDTO.getIdOrdenServicio(), estadoProcesoDto.getIdEstadoProceso(), expedienteDTO.getPersonal().getIdPersonal(), personalDest.getIdPersonal(), tipoHistoricoOS.getIdMaestroColumna(),null,null, null, usuarioDTO); \r\n LOG.info(\"historicoEstadoOS:\"+historicoEstadoOS);\r\n \r\n retorno.setOrdenServicio(new OrdenServicioDTO(OrdenServicioDTO.getIdOrdenServicio(),OrdenServicioDTO.getNumeroOrdenServicio()));\r\n \r\n }catch(Exception e){\r\n LOG.error(\"error en editarExpediente\",e);\r\n throw new ExpedienteException(e.getMessage(), e);\r\n }\r\n return retorno;\r\n }", "public Integer getIdExperienciaEducativa() {\r\n return idExperienciaEducativa;\r\n }", "public void setEstadoEleicaoEncerrada(int idEleicao){\n this.eleicaoDB.setEstadoEleicaoEncerrada(idEleicao);\n }", "public void setSecuenciaExpediente(BigDecimal secuenciaExpediente) {\r\n this.secuenciaExpediente = secuenciaExpediente;\r\n }", "public void setFechaExpedicion(String p) { this.fechaExpedicion = p; }", "public void setCodigoExpediente(String codigoExpediente) {\r\n this.codigoExpediente = codigoExpediente == null ? null : codigoExpediente.trim();\r\n }", "public String getCodigoExpediente() {\r\n return codigoExpediente;\r\n }", "@Transactional\r\n\t@Modifying\r\n\t@Query(value = \"INSERT INTO CONSULTA_EXAMEN(ID_CONSULTA, ID_EXAMEN) VALUES (:idConsulta, :idExamen)\", nativeQuery = true)\r\n\t//METODO MANUAL\r\n\tint registrar(@Param(\"idConsulta\")int idConsulta, @Param(\"idExamen\") int idExamen);", "public void setFechaconsulta(Date fechaconsulta) {\r\n this.fechaconsulta = fechaconsulta;\r\n }", "private void setEmployeeID() {\n try {\n employeeID = userModel.getEmployeeID(Main.getCurrentUser());\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public void editarEmpresa (Empresa empresa) throws Exception{\r\n\t\tEmpresa emp = daoEmpresa.buscarEmpresa(empresa.getId());\r\n\t\t\r\n\t\tif(emp != null){\r\n\t\t\tdaoEmpresa.editarEmpresa(empresa);\r\n\t\t}else{\r\n\t\t\tthrow new ExcepcionNegocio(\"No hay empresa registrada con este ID\");\r\n\t\t}\r\n\t}", "@Test\n public void testSetId_edificio() {\n System.out.println(\"setId_edificio\");\n int id_edificio = 1;\n DboEdificio instance = new DboEdificio(1, \"T-3\");\n instance.setId_edificio(id_edificio);\n \n }", "public abstract void setEspe_id(java.lang.Integer newEspe_id);", "public void setEmpresa(Empresa empresa)\r\n/* 89: */ {\r\n/* 90:141 */ this.empresa = empresa;\r\n/* 91: */ }", "public void setEntidad(int entidad) {\n this.entidad = entidad;\n }", "public void setIdCliente(Integer id_cliente){\n this.id_cliente=id_cliente;\n }", "public void setIdUsuario(int value) {\n this.idUsuario = value;\n }", "public TipoOperacaoParcialUpdate excedentePermitido(BigDecimal excedentePermitido) {\n this.excedentePermitido = excedentePermitido;\n return this;\n }", "public void adicionaExame(ExameColposcopico exame) {\n\t\tEntityManager entityManager = ExameColposcopioFactory.carregaBanco();\n//\t\thttps://www.guj.com.br/t/hibernate-jsf-erro-ao-persistir-objeto/337939\n\t\tif (!entityManager.getTransaction().isActive()) \n\t\t\tentityManager.getTransaction().begin();\n\t\tentityManager.persist(exame);\n\t\tentityManager.getTransaction().commit();\n\t}", "public void setEspecialidad (EspecialidadEntity pEspecialidad)\r\n {\r\n this.especialidad = pEspecialidad;\r\n }", "@Override\n\tpublic int updateEmployeeDesigById(int employeeId, String desig) {\n\t\tif (getEmployeeById(employeeId) == null) {\n\t\t\treturn -1;\n\t\t} else {\n\t\t\treturn template.update(\"update employee set desig = ? where empid = ?\", desig, employeeId);\n\t\t}\n\t}", "@Override\n\tpublic void addExperiencia(\n\t\t\tsimulaSAAB.modeloSimulacion.comunicacion.Experiencia e) {\n\t\t\n\t}", "public int persisteInformacionInsertSelect(String queryInserSelect, String idProceso) throws Exception;", "public void setEdificio (String pEdificio)\r\n {\r\n this.edificio = pEdificio;\r\n }", "public void setIdEstatusObjeto(int idEstatusObjeto) {\r\n\t\tthis.idEstatusObjeto = idEstatusObjeto;\r\n\t}", "public void setCodigoEmpresa(String codigoEmpresa) {\n this.codigoEmpresa = codigoEmpresa;\n }", "public void setCedula(Integer cedula) {this.cedula = cedula;}", "public void setIdCargaEmpleado(int idCargaEmpleado)\r\n/* 108: */ {\r\n/* 109:195 */ this.idCargaEmpleado = idCargaEmpleado;\r\n/* 110: */ }", "public void setConsultaDinamica(String consultaDinamica) {\r\n\t\tthis.consultaDinamica = consultaDinamica;\r\n\t}", "public void setIdUsuario(Integer idUsuario) {\n this.idUsuario = idUsuario;\n }", "public void setExpId(int expId) {\n this.expId = expId;\n }", "public void seteId(Integer eId) {\n this.eId = eId;\n }", "public void seteId(Integer eId) {\n this.eId = eId;\n }", "public void seteDeptid(Integer eDeptid) {\n this.eDeptid = eDeptid;\n }", "public void establecerDatosRegistro(String sqlConsulta) throws SQLException {\n try {\n this.sqlConsulta = sqlConsulta;\n ejecutarResultSet();\n\n if (!resultSet.first()) {\n return;\n }\n\n int cantidadColumnas = resultSet.getMetaData().getColumnCount();\n\n String nombreColumna;\n String valorColumna;\n\n for (int i = 0; i < cantidadColumnas; i++) {\n nombreColumna = resultSet.getMetaData().getColumnName(i + 1);\n valorColumna = resultSet.getString(i + 1);\n columnas.put(nombreColumna, valorColumna);\n }\n } finally {\n cerrarResultSet();\n }\n }", "public void setExplicandum(SqlNode explicandum) {\n this.explicandum = explicandum;\n }", "public void excluir(AlunosMilitaresOMDS excluirEfetivo) {\n\t\tsuper.executar(() -> {repository.apagar(AlunosMilitaresOMDS.class, excluirEfetivo.getId()); init();}, SUCESSO, FALHA);\n\t}", "public void SuppIndispo(String date, int refEnseignant) throws SQLException {\r\n\r\n\t\ttry {\r\n\r\n\t\t\t/** Connection à la base - Étape 2 */\r\n\t\t\tString url = \"jdbc:oracle:thin:@miage03.dmiage.u-paris10.fr:1521:MIAGE\";\r\n\t\t\tConnection cx = DriverManager.getConnection(url, \"maletell\",\r\n\t\t\t\t\t\"matthieu\");\r\n\t\t\tStatement request = cx.createStatement();\r\n\r\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\t\tjava.util.Date dateD = format.parse(date);\r\n\t\t\tGregorianCalendar cal = new java.util.GregorianCalendar();\r\n\t\t\tcal.setTime(dateD);\r\n\r\n\t\t\trequest.executeUpdate(\"DELETE FROM Indisponibilite WHERE NO_ENSEIGNANT = \"\r\n\t\t\t\t\t+ refEnseignant\r\n\t\t\t\t\t+ \" AND DATE_INDISPO = \"\r\n\t\t\t\t\t+ DAO.dateFromJavaToOracle(cal));\r\n\r\n\t\t\tcx.commit();\r\n\t\t\trequest.close();\r\n\t\t\tcx.close();\r\n\r\n\t\t} catch (ParseException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void setIdventa( Integer idventa ) {\n this.idventa = idventa ;\n }", "public HTMLSelectElement getElementCodigoEmpleado() { return this.$element_CodigoEmpleado; }", "public void setIdade(int idade) {\n\t\tthis.idade = idade;\n\t}", "public void peleaEn(int idPeleador,int idEmpresa){\n\t\t\n\t}", "public void setFechaAutorizacionGastoExpediente(Date fechaAutorizacionGastoExpediente) {\r\n this.fechaAutorizacionGastoExpediente = fechaAutorizacionGastoExpediente;\r\n }", "public void setId_inventario(Integer id_inventario) {\r\n this.id_inventario = id_inventario;\r\n }", "public final void setId_entreprise(final Long id_entreprise) {\n this.id_entreprise = id_entreprise;\n }", "public void setIdcliente(java.lang.String idcliente) {\n this.idcliente = idcliente;\n }", "@Override\n public void modificarConfiguracion(Entity e) throws SQLException {\n Connection conexion;\n ResultSet result = null;\n String select= \"UPDATE config_notificacion SET \" +\n \"con_not_boletin = ?, con_not_recibir =? , \" +\n \"con_not_preferencias = ?, con_not_suscripciones = ?, \" +\n \"con_not_etiquetado = ?, con_not_estadisticas =? \" +\n \"WHERE con_not_id = ?;\";\n PreparedStatement ps = null;\n Entity config = (ConfiguracionNotificaciones) e;\n try {\n conexion = getBdConnect();\n ps = conexion.prepareStatement(select);\n ps.setInt(1, config.get_id());\n }\n catch (SQLException error){\n error.printStackTrace();\n }\n finally {\n closeConnection();\n }\n }", "public void setIdAutorizacionEmpresaSRI(int idAutorizacionEmpresaSRI)\r\n/* 79: */ {\r\n/* 80:122 */ this.idAutorizacionEmpresaSRI = idAutorizacionEmpresaSRI;\r\n/* 81: */ }", "@Override\r\n @Transactional(rollbackFor=ExpedienteException.class) \r\n public ExpedienteGSMDTO actualizarExpediente(ExpedienteGSMDTO expedienteDTO, UsuarioDTO usuarioDTO) throws ExpedienteException {\r\n LOG.info(\"actualizarExpediente\");\r\n ExpedienteGSMDTO retorno=null;\r\n try{\r\n PghExpediente expe = crud.find(expedienteDTO.getIdExpediente(), PghExpediente.class);\r\n expe.setIdEstadoLevantamiento(new MdiMaestroColumna(expedienteDTO.getEstadoLevantamiento().getIdMaestroColumna()));\r\n expe.setDatosAuditoria(usuarioDTO);\r\n crud.update(expe);\r\n retorno=ExpedienteGSMBuilder.toExpedienteDto(expe);\r\n }catch(Exception e){\r\n LOG.error(\"error en actualizarExpediente\",e);\r\n ExpedienteException ex = new ExpedienteException(e.getMessage(), e);\r\n throw ex;\r\n }\r\n return retorno; \r\n }", "public TipoOperacaoParcialUpdate idEmissor(Integer idEmissor) {\n this.idEmissor = idEmissor;\n return this;\n }", "public void setIdade(int idade) {\r\n\t\t// QUALIFICADOR = THIS\r\n\t\tthis.idade = idade;\r\n\t}", "public void setIdProducto(int value) {\n this.idProducto = value;\n }", "public E getConsulta() {\n\n\t\treturn this.consulta;\n\t}", "public void setId_usuario(String usuario) {\n this.id_usuario = usuario;\n }", "public void setEulaId(long eulaId) {\n this.eulaId = eulaId;\n }", "public void setCodigo() throws SQLException {\n try (PreparedStatement query = Herramientas.getConexion().prepareStatement(\"SELECT MAX(codigo_ticket) FROM ticket\"); \n ResultSet resultado = query.executeQuery()) {\n resultado.next();\n this.codigo = (resultado.getInt(1))+1;\n }\n \n }", "public void setIdDetalleComponenteCosto(int idDetalleComponenteCosto)\r\n/* 63: */ {\r\n/* 64: 87 */ this.idDetalleComponenteCosto = idDetalleComponenteCosto;\r\n/* 65: */ }", "public void affecterDepartementAEntreprise(int depId, int entrepriseId) {\n\t\ttry{\n\t\tlogger.info(\"Dans la methode AffecterDepartement()\");\n\t\tlogger.debug(\"Je vais lancer l'ajout AffecterDepartement().\");\n\t\t\n\t\t\t\tEntreprise entrepriseManagedEntity = entrepriseRepoistory.findById(entrepriseId).get();\n\t\t\t\tDepartement depManagedEntity = deptRepoistory.findById(depId).get();\n\t\t\t\t\n\t\t\t\tdepManagedEntity.setEntreprise(entrepriseManagedEntity);\n\t\t\t\tlogger.debug(\"avant save\");\n\t\t\t\tdeptRepoistory.save(depManagedEntity);\n\t\t\t\tlogger.debug(\"aprés save\");\n\t\t\t\t\n\t\t\t\tlogger.debug(\"Je viens de finir l'ajout .\");\n\t\t\t\tlogger.info(\"Out AffecterDepartement() without errors avec.\");\n\t\t\t\t}\n\t\tcatch (Exception e) \n\t\t{ \n\t\tlogger.error(\"Erreur dans AffecterDepartement() : \" + e); }\n\t\tlogger.info(\"fin methode AffecterDepartement() .\");\n\t\t\n\t}", "public static void editarEstudiante(Estudiante estudiante) {\r\n //metimos este método a la base de datos\r\n try {\r\n Class.forName(\"com.mysql.jdbc.Driver\");\r\n Connection conexion = DriverManager.getConnection(\"jdbc:mysql://localhost/registrolaboratorios\", \"root\", \"admin\");\r\n System.out.print(\"Conexion establecida!\");\r\n Statement sentencia = conexion.createStatement();\r\n int insert = sentencia.executeUpdate(\"update docente set \"\r\n + \"Nro_de_ID='\" + estudiante.getNro_de_ID()\r\n + \"',Nombres='\" + estudiante.getNombres()\r\n + \"',Apellidos='\" + estudiante.getApellidos()\r\n + \"',Laboratorio='\" + estudiante.getLaboratorio()\r\n + \"',Carrera='\" + estudiante.getCarrera()\r\n + \"',Modulo='\" + estudiante.getModulo()\r\n + \"',Materia='\" + estudiante.getMateria()\r\n + \"',Fecha='\" + estudiante.getFecha()\r\n + \"',Hora_Ingreso='\" + estudiante.getHora_Ingreso()\r\n + \"',Hora_salida='\" + estudiante.getHora_Salida()\r\n + \"'where Nro_de_ID='\" + estudiante.getNro_de_ID() + \"';\");\r\n\r\n sentencia.close();\r\n conexion.close();\r\n\r\n } catch (Exception ex) {\r\n System.out.print(\"Error en la conexion\" + ex);\r\n }\r\n }", "public void setIdCliente(int value) {\n this.idCliente = value;\n }", "public void setEntidade(final E entidade) {\n\n\t\tthis.entidade = entidade;\n\t}", "public void setIdAlumno(int value) {\n this.idAlumno = value;\n }", "public int getIdExamCcEtudiant(String matricule, int idMatiere){\n int id ;\n Query query = em.createQuery(\"select etuex.idexamen from EtudiantExam etuex,Examen exam, MatiereExam matexam where etuex.matricule := ?1 and matexam.idmatiere := ?2 and matexam.idexamen := exam.idexamen and exam.type := 'CC' and exam.idexamen := etuex.idexamen\");\n id = (int)query.getSingleResult(); \n return id;\n \n }", "public void setIdentificacion(String identificacion)\r\n/* 128: */ {\r\n/* 129:233 */ this.identificacion = identificacion;\r\n/* 130: */ }", "public void EjecutarConsulta() {\n try {\n Consultar(\"select * from \"+table);\n this.resultSet = preparedStatement.executeQuery();\n } catch (Exception e) {\n// MessageEmergent(\"Fail EjecutarConsulta(): \"+e.getMessage());\n }\n }", "public void setIdSistemaEspecifico(UUID idSistemaEspecifico){\n\t\t\n\t\tmiIdSistemaEspecifico = idSistemaEspecifico;\n\t}", "public void setEmpleado(Empleado empleado)\r\n/* 188: */ {\r\n/* 189:347 */ this.empleado = empleado;\r\n/* 190: */ }", "@Override\n public void definirId(Endereco objeto, int id) {\n objeto.setId(id);\n }", "public void setIdProveedor(Integer idProveedor) {\n this.idProveedor = idProveedor;\n }", "public int getExpId() {\n return expId;\n }", "public void setCedula(int value) {\n this.cedula = value;\n }", "public void setEjercicio(Ejercicio ejercicio)\r\n/* 150: */ {\r\n/* 151:193 */ this.ejercicio = ejercicio;\r\n/* 152: */ }", "public void setCampoDeInteresse(String campoDeInteresse) {\n this.validador.validaNulleVazio(campoDeInteresse, \"Formato do campo de interesse invalido.\");\n this.validador.validaCampoDeInteresse(campoDeInteresse, \"Formato do campo de interesse invalido.\");\n\n if (this.ativada == false) {\n this.validador.lancaExcecao(\"Pesquisa desativada.\");\n }\n this.campoDeInteresse = campoDeInteresse;\n }", "public abstract void setCod_actividad(java.lang.Long newCod_actividad);", "public int idEmpleado(int cui) throws SQLException{\n obtenerConexion();\n int id = 0;\n PreparedStatement declaracionId = cn.prepareStatement(ID_EMPLEADO);\n declaracionId.setInt(1, cui);\n ResultSet result = declaracionId.executeQuery();\n while(result.next()){\n id = result.getInt(\"id\");\n }\n login.Desconectar();\n return id;\n }", "public void exemplaarToevoegen() {\n\n try {\n Database database = new Database();\n List<Exemplaar> exemplaren_tmp = database.getExemplaren(boek.getBoek_ID());\n Integer exemplaar_aantal = Integer.parseInt(exemplaren_tmp.get(exemplaren_tmp.size() - 1).getExemplaarVolgnummer().toString());\n\n // vang af als er nog geen exemplaren zijn\n if (exemplaar_aantal < 1) {\n database.insertExemplaar(boek.getBoek_ID(), 1);\n } else {\n database.insertExemplaar(boek.getBoek_ID(),\n exemplaar_aantal + 1,\n 1);\n }\n } catch (SQLException | NamingException ex) {\n LOGGER.log(Level.SEVERE, \"Error {0}\", ex);\n System.out.println(ex.getMessage());\n }\n\n //en refresh als niet leeg is\n if (geselecteerdExemplaar != null) {\n geselecteerdExemplaar.refresh();\n }\n this.refresh();\n\n }", "public void modificar() {\n try {\n if(!fecha.equals(null)){\n Dr_siseg_usuarioBean usuario = new Dr_siseg_usuarioBean();\n FacesContext facesContext = FacesContext.getCurrentInstance();\n usuario = (Dr_siseg_usuarioBean) facesContext.getExternalContext().getSessionMap().get(\"usuario\");\n \n calendar.setTime((Date) this.fecha);\n this.Selected.setApel_fecha_sesion(calendar.getTime());\n\n ApelacionesDao apelacionesDao = new ApelacionesDao();\n apelacionesDao.IME_APELACIONES(2, Selected); \n\n BitacoraSolicitudDao bitacoraSolicitudDao = new BitacoraSolicitudDao();//INSERTA EL MOVIMIENTO EN LA BITACORA\n BitacoraSolicitudBean bitacoraSolicitudBean = new BitacoraSolicitudBean();\n bitacoraSolicitudBean.setBit_sol_id(this.Selected.getApel_sol_numero());\n bitacoraSolicitudBean.setUsuarioBean(usuario);\n bitacoraSolicitudBean.setBit_tipo_movimiento(\"1\");\n bitacoraSolicitudBean.setBit_detalle(\"Fue modificada la apelacion\");\n bitacoraSolicitudDao.dmlDr_regt_bitacora_solicitud(bitacoraSolicitudBean);\n\n this.Listar();\n this.Selected = new ApelacionesBean();\n addMessage(\"Guadado Exitosamente\", 1);\n }else\n {\n addMessage(\"Es requerida la fecha\",1 );\n }\n } catch (ExceptionConnection ex) {\n Logger.getLogger(ApelacionController.class.getName()).log(Level.SEVERE, null, ex);\n addMessage(\"Se produjo un error al insertar el registro, contacte al administrador del sistema\", 1);\n }\n }", "public void editar(AplicacionOferta aplicacionOferta){\n try{\n aplicacionOfertaDao.edit(aplicacionOferta);\n }catch(Exception e){\n Logger.getLogger(AplicacionOfertaServicio.class.getName()).log(Level.SEVERE, null, e);\n }\n }", "public void setIdAdministradorf(int idAdministradorf) {\n this.idAdministradorf = idAdministradorf;\n }", "@Override\r\n\tpublic ExpedienteGSMDTO actualizar(ExpedienteGSMDTO expediente, UsuarioDTO usuario) throws ExpedienteException {\r\n \tLOG.info(\"inicio actualizar\");\r\n\t\ttry{\r\n\t\t\tPghExpediente pghExpediente=ExpedienteGSMBuilder.toExpedienteDomain(expediente);\r\n\t\t\tpghExpediente.setDatosAuditoria(usuario);\r\n\t\t\tpghExpediente=crud.update(pghExpediente);\r\n\t\t\texpediente=ExpedienteGSMBuilder.toExpedienteDto(pghExpediente);\r\n\t\t} catch(Exception e){\r\n\t\t\tLOG.error(\"error actualizar\", e);\r\n\t\t\tthrow new ExpedienteException(e);\r\n\t\t}\r\n\t\treturn expediente;\r\n\t}", "@Override\n public void alterar(EntidadeDominio entidade) throws SQLException\n {\n\t\n }", "public void encerraServico(Servico servico) throws SQLException {\r\n\r\n servico.setStatus(0);\r\n servico.setDtEncerramento(LocalDateTime.now().format(DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\")));\r\n\r\n System.out.println(servico.toString());\r\n update(servico);\r\n String sql = \"UPDATE solicitacoes SET em_chamado=4 WHERE servico_id_servico= \" + servico.getCell(0).getValue();\r\n\r\n stmt = conn.createStatement();\r\n stmt.execute(sql);\r\n stmt.close();\r\n\r\n }", "public void setTipoDeDatos(String tipoDeDatos) {\n if (!this.tiposDeDatoEnLaBD.contains(tipoDeDatos)) {\n try {\n throw new ExcepcionPersonalizada(\n \"El tipo de datos '\"+tipoDeDatos+\"' no existe. \\n\"\n + \"Si es un error por favor corrige la clase ParametrosDeCampo\",\n this,\n \"setTipoDeDatos\");\n } catch (ExcepcionPersonalizada ex) {\n Logger.getLogger(ParametrosDeCampo.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n \n this.tipoDeDatos = tipoDeDatos;\n }", "public static void guardarNuevaConsulta(Consulta consulta) throws SQLException {\n\t\tjava.sql.Date fechaSQL = new java.sql.Date(consulta.getFecha().getTime());\r\n\t\t\r\n\t\tconsultaInsertarConsulta.setDate(1, fechaSQL);\r\n\t\tconsultaInsertarConsulta.setString(2, consulta.getMascota().getNroPatente());\r\n\t\tconsultaInsertarConsulta.setString(3, consulta.getVeterinario().getCodigo());\r\n\t\tconsultaInsertarConsulta.executeQuery();\r\n\r\n\t}", "@Test\r\n public void testSetIdDepto() {\r\n System.out.println(\"setIdDepto\");\r\n Integer idDepto = null;\r\n Departamento instance = new Departamento();\r\n instance.setIdDepto(idDepto);\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "public void setCodigo_venda(int pCodigoVenda){\n this.codigoVenda = pCodigoVenda;\n }", "public void setIdDetalle_Ventaf(int idDetalle_Ventaf) {\n this.idDetalle_Ventaf = idDetalle_Ventaf;\n }", "public abstract void setEmpresa(\n\t\tco.com.telefonica.atiempo.ejb.eb.EmpresaLocal anEmpresa);", "public void alterar(Edicao edicao) {\n\t\t\tconn = Conexao.getConexao();//conecta ao banco de dados\n\t\t\tsql = \"update edicao set edicaonumero = ?\";\n\t\t\t\n\t\t\ttry {\n\t\t\t\tps = conn.prepareStatement(sql);\n\t\t\t\t\n\t\t\t\tps.setInt(1, edicao.getEdicaonumero());\n\t\t\t\t\t\t\t\t\n\t\t\t\tps.execute(); //executa a acao\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Alterado com Sucesso !\");\t\t\t\n\t\t\t\t\n\t\t\t} catch (SQLException e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"erro no alterar\"+e.getMessage());\n\t\t\t}\n\t\t}", "public void alterar() {\n //metodo para alterar\n String sql = \"UPDATE empresa SET empresa = ?, cnpj = ?, \"\n + \"endereco = ?, telefone = ?, email = ? WHERE (id = ?)\";\n try {\n pst = conexao.prepareStatement(sql);\n pst.setString(1, txtEmpNome.getText());\n pst.setString(2, txtEmpCNPJ.getText());\n pst.setString(3, txtEmpEnd.getText());\n pst.setString(4, txtEmpTel.getText());\n pst.setString(5, txtEmpEmail.getText());\n pst.setString(6, txtEmpId.getText());\n if ((txtEmpNome.getText().isEmpty()) || (txtEmpCNPJ.getText().isEmpty())) {\n JOptionPane.showMessageDialog(null, \"Preencha todos os campos obrigatórios\");\n } else {\n //a linha abaixo atualiza a tabela usuarios com os dados do formulario\n // a esttrutura abaixo confirma a ALTERACAO dos dados na tabela\n int adicionado = pst.executeUpdate();\n if (adicionado > 0) {\n JOptionPane.showMessageDialog(null, \"Dados do cliente alterado com sucesso\");\n txtEmpNome.setText(null);\n txtEmpEnd.setText(null);\n txtEmpTel.setText(null);\n txtEmpEmail.setText(null);\n txtEmpId.setText(null);\n txtEmpCNPJ.setText(null);\n btnAdicionar.setEnabled(true);\n }\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e);\n }\n }", "public void setIdSucursal(int idSucursal)\r\n/* 105: */ {\r\n/* 106:134 */ this.idSucursal = idSucursal;\r\n/* 107: */ }", "public void setEmployeeID(int employeeID) { this.employeeID = employeeID; }", "public void setEmpresa(Empresa empresa) {\n\t\tproducto.setEmpresa(empresa);\n\t}", "public void setORM_Jefeadministracion(orm.Jefeadministracion value) {\n\t\tthis.jefeadministracion = value;\n\t}", "public void setConexionesDescartadas(int conexionesDescartadas){\n this.conexionesDescartadas = conexionesDescartadas;\n }" ]
[ "0.67815804", "0.6711943", "0.62946606", "0.60848755", "0.5981666", "0.58901906", "0.5783841", "0.5687306", "0.5599097", "0.55864114", "0.5521669", "0.55190086", "0.54764444", "0.5476096", "0.54055935", "0.5390356", "0.53810155", "0.53739643", "0.53703254", "0.5362436", "0.5359818", "0.5340503", "0.5301787", "0.52975476", "0.52823466", "0.52705646", "0.524139", "0.5236207", "0.5199051", "0.5189984", "0.5189354", "0.5187207", "0.51735497", "0.51708966", "0.5164966", "0.5162031", "0.5156819", "0.5156819", "0.51563376", "0.5143394", "0.51351786", "0.51345557", "0.5124238", "0.51201105", "0.5112801", "0.5112605", "0.5111502", "0.5106237", "0.5084977", "0.506405", "0.5063917", "0.50533247", "0.5051742", "0.50496715", "0.5041873", "0.504181", "0.50371516", "0.50332844", "0.502721", "0.50262713", "0.50189817", "0.5018596", "0.50162476", "0.5012611", "0.5005429", "0.5004009", "0.49952", "0.4993891", "0.49818584", "0.49781916", "0.49778056", "0.49769413", "0.49741235", "0.4967842", "0.49574217", "0.49462268", "0.4939057", "0.49294168", "0.49261963", "0.4917887", "0.49146387", "0.49140316", "0.49015483", "0.48869893", "0.48867592", "0.48828182", "0.48815513", "0.48804295", "0.48748723", "0.4859151", "0.4857131", "0.48571274", "0.48554894", "0.4852633", "0.48497814", "0.4845516", "0.48423612", "0.4841948", "0.4837845", "0.483761" ]
0.54022485
15
This method was generated by MyBatis Generator. This method returns the value of the database column expediente_consulta.descripcion
public String getDescripcion() { return descripcion; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDescripcion() {\n return this.descripcion.get();\n }", "public String getDescripcion() { return (this.descripcion == null) ? \"\" : this.descripcion; }", "public String getDescricao() {\n\t\treturn this.descricao;\n\t}", "public String getDescricao() {\n return descricao;\n }", "public String getDescricao() {\n return descricao;\n }", "public String dameDescripcion(){\n return \"Este empleado tiene un id = \"+getId()+\" con un sueldo de \"+getSueldo();\n }", "public String getDescricao() {\n\t\treturn descricao;\n\t}", "public String getDescricao() {\n\t\treturn descricao;\n\t}", "public String getDescripcion() { return this.descripcion; }", "@Override\r\n public String getDescripcion() {\r\n return this.descripcion;\r\n }", "public String getDescripcion()\r\n/* 163: */ {\r\n/* 164:299 */ return this.descripcion;\r\n/* 165: */ }", "public java.lang.String getDescricao() {\r\n return descricao;\r\n }", "public String getDescrizione() {\r\n\t\treturn descrizione;\r\n\t}", "public abstract java.lang.String getAcma_descripcion();", "public String getDescricao();", "@Override\r\n public String toString() {\n return this.descripcion;\r\n }", "public String getDescrizione() {\n\t\treturn descrizione;\n\t}", "public String getDescripcionExpediente() {\r\n return descripcionExpediente;\r\n }", "public String getDescricao() {\n\t\treturn null;\n\t}", "public String obtenerDescripcionAtaque(){\n\treturn descripcionAtaque;\n }", "public java.lang.String getDescrizione() {\r\n return descrizione;\r\n }", "public E getConsulta() {\n\n\t\treturn this.consulta;\n\t}", "@Column(name = \"DESCRIPCION\")\n\tpublic String getlDescripcion() {\n\t\treturn lDescripcion;\n\t}", "@Override\r\n\tpublic String obtenerDescripcion() {\n\t\treturn this.combo.obtenerDescripcion() + \"+ Porcion de Carne\";\r\n\t}", "public String getDescripcion() {\r\n return Descripcion;\r\n }", "@Override\n public String descripcion() {\n return \"Viaje incentivo que te envia la empresa \" + empresa;\n }", "@Override\n\tpublic String getDescripcion() {\n\t\treturn model.getDescripcion();\n\t}", "public String getDescripcion() {\n return descripcion;\n }", "public String getDescripcion() {\n return descripcion;\n }", "public String getDescripcion() \n\t{\n\t\treturn descripcion;\n\t}", "@Column(name = \"DESCRIPTION\", length = 200 )\n public String getDescription() {\n return description;\n }", "public String getDescricaoContrato() {\r\n\t\treturn descricaoContrato;\r\n\t}", "public String getDescripcion() {\r\n\t\treturn descripcion;\r\n\t}", "public String obtenerCampo(String sqlConsulta) throws SQLException {\n try {\n this.sqlConsulta = sqlConsulta;\n ejecutarResultSet();\n if (!resultSet.first() || resultSet.getString(1) == null) {\n return \"\";\n }\n String campo = resultSet.getString(1);\n return campo;\n } finally {\n cerrarResultSet();\n }\n\n }", "public String getDescripcion() {\n\t\treturn descripcion;\n\t}", "public String getDescripcion() {\n\t\treturn descripcion;\n\t}", "public String getDescripcion() {\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"getDescripcion() - start\");\n\t\t}\n\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"getDescripcion() - end\");\n\t\t}\n\t\treturn descripcion;\n\t}", "public java.lang.String getDescripcion() {\n return descripcion;\n }", "@Override\n\tpublic String getDescripcion() {\n\t\treturn descripcion;\n\t}", "String getDescripcion();", "String getDescripcion();", "public String getDescripcion()\n {\n return descripcion;\n }", "public String consultaEqCiudad() {\n\t\tString res = \"\";\n\t\tString query = \"SELECT E.NOMBRE, C.NOMBRE FROM EQUIPOS E, CIUDADES C WHERE E.COD_CIUDAD == C.CODIGO\";\n\n\t\tConnection con = null;\n\t\tPreparedStatement pstmt = null;\n\t\tResultSet rslt = null;\n\n\t\ttry {\n\t\t\tcon = acceso.getConnection();\n\t\t\tpstmt = con.prepareStatement(query);\n\t\t\trslt = pstmt.executeQuery();\n\n\t\t\twhile (rslt.next()) {\n\t\t\t\tres = res + rslt.getString(1) + \" - \" + rslt.getString(2) + \"\\n\";\n\t\t\t}\n\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (rslt != null)\n\t\t\t\t\trslt.close();\n\t\t\t\tif (pstmt != null)\n\t\t\t\t\tpstmt.close();\n\t\t\t\tif (con != null)\n\t\t\t\t\tcon.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\treturn res;\n\t}", "public String getDescripcion(){\n return descripcion;\n }", "@Column(name = \"description\", nullable = false)\n public String getDescription() {\n\treturn this.description;\n }", "public String obtenirDesription() {\n String description = new String(\"\");\n switch (typePlancher) {\n case CERAMIQUE:\n description = CERAMIQUE_DESC;\n break;\n case TUILESDEVINYLE:\n description = TUILESDEVINYLE_DESC;\n break;\n case LINOLEUM:\n description = LINOLEUM_DESC;\n break;\n case BOISFRANC:\n description = BOISFRANC_DESC;\n break;\n case FLOTTANT:\n description = FLOTTANT_DESC;\n }\n return description;\n }", "public CompraResponse descricaoProduto(String descricaoProduto) {\n this.descricaoProduto = descricaoProduto;\n return this;\n }", "@Override//sobrescribir metodo\n public String getDescripcion(){\n return hamburguesa.getDescripcion()+\" + lechuga\";//retorna descripcion del oobj hamburguesa y le agrega +lechuga\n }", "public String getDescription(){\n\n //returns the value of the description field\n return this.description;\n }", "public void setDescripcion(String p) { this.descripcion = p; }", "public String getDescription() {\n return getGenericFieldValue(\"Description\");\n }", "public String getDescripcionReporteDiario() {\n return descripcionReporteDiario;\n }", "public String getDescricaoCaminhao() {\n return getDescricaoVeiculo() + \"\\t\" + capacidadeCarga;\n }", "public void setDescripcion(String s) { this.descripcion = s; }", "public void setDescripcion(String descripcion) {\n this.descripcion = descripcion;\n }", "public void setDescripcion(String descripcion){\r\n this.descripcion = descripcion;\r\n }", "public StringDt getDescription() { \n\t\tif (myDescription == null) {\n\t\t\tmyDescription = new StringDt();\n\t\t}\n\t\treturn myDescription;\n\t}", "public StringDt getDescription() { \n\t\tif (myDescription == null) {\n\t\t\tmyDescription = new StringDt();\n\t\t}\n\t\treturn myDescription;\n\t}", "public String getRecapitoDesc() {\n\t\treturn this.recapitoDesc;\n\t}", "public void setDescripcion(String descripcion) {\r\n this.descripcion = descripcion;\r\n }", "public void setDescripcion(String descripcion) {\r\n this.descripcion = descripcion;\r\n }", "@Override\n public String getInformacionInstruccion() {\n\treturn \"comando desconocido\";\n }", "public String getConsultaDinamica() {\r\n\t\treturn consultaDinamica;\r\n\t}", "@Override\n public String toString() {\n return getDescricao();\n }", "String getEmpresa() {\n return empresa; //To change body of generated methods, choose Tools | Templates.\n }", "public String getComentario () {\n return comentario;\n }", "@Query(\"select p from Pedido p where p.desc =?1\")\n public Pedido buscarPedidoPorDescricao(String desc);", "public void setDescricao(java.lang.String descricao) {\r\n this.descricao = descricao;\r\n }", "public String description () {\n\t\t\tSystem.out.println(treinador.getTreinador() + \" fugiu da batalha!!\");\r\n\t\t\tSystem.exit(0);\r\n\t\t\treturn treinador.getTreinador() + \" fugiu da batalha!!\";\r\n\t\t}", "public String getMostrarResultados() {\n StringBuilder strb = new StringBuilder();\r\n if(auditoriaanalizada==null){\r\n return \"No existe ningún informe para dicho informe\";\r\n }\r\n for(int i=1; i <= MAX_PREGUNTAS; i++){\r\n try{\r\n PropertyDescriptor p = new PropertyDescriptor(\"p\" + i, Auditorias.class);\r\n Integer c = (Integer) p.getReadMethod().invoke(auditoriaanalizada);\r\n if(c!=null && c==0){\r\n //hay que buscar dicha pregunta y poner lo que pone en el campo reglamento\r\n Reglamento r = ejbFacadeReglamento.find(i);\r\n if(r!=null && r.getIncumplimiento()!=null && !r.getIncumplimiento().isEmpty()){\r\n strb.append(\"<li>\");\r\n strb.append(r.getIncumplimiento());\r\n strb.append(\"</li>\");\r\n }\r\n }\r\n \r\n }\r\n catch(Exception e){\r\n System.out.println(\"Error:\" + e.getMessage());\r\n }\r\n }\r\n return strb.toString();\r\n }", "public String getNombreEmpresa() {\r\n return this.nombreEmpresa;\r\n }", "@Column(name = \"C_SEGUNDO_APELLIDO\")\n public String getSegundoApellido() {\n return segundoApellido;\n }", "public String dameValor(String campo) {\n\t\t// TODO Auto-generated method stub\n\t\tString c=\"\";\n\t\n\t\tif (campo.equals(Constantes.ID_ISFICHA))\n\t\t{\n\t\t\tc=IDISFICHA;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_NOTAS))\n\t\t{\n\t\t\tc=NOTAS;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_ANOTACIONES))\n\t\t{\n\t\t\tc=ANOTACIONES;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_NOTAS_EJERCICIOS))\n\t\t{\n\t\t\tc=NOTAS_EJERCICIOS;\n\t\t}\n\t\treturn c;\n\t}", "public String getDesc(){\r\n\t\treturn this.desc;\r\n\t}", "public String obtenerDetalles(){\r\n return \"Nombre: \" + this.nombre + \", sueldo = \" + this.sueldo;\r\n }", "public String getEmpresa() {\r\n return empresa;\r\n }", "public String getConsultDetail() {\n return consultDetail;\n }", "@Updatable\n public String getDescription() {\n return description;\n }", "@Override\n\t@Column(name = \"leadTypeDescription\", length = 128, nullable = true)\n\tpublic String getDescription()\n\t{\n\t\treturn super.getDescription();\n\t}", "public String getNombreCompleto();", "public String getAccountDescription(String elementId) {\n String sqlQuery = \"\", name = \"\";\n PreparedStatement st = null;\n ResultSet rs = null;\n try {\n sqlQuery = \" SELECT C_ELEMENTVALUE.name as name FROM C_ELEMENTVALUE WHERE C_ELEMENTVALUE_ID = ? AND C_ELEMENTVALUE.ISACTIVE = 'Y'\";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, elementId);\n rs = st.executeQuery();\n if (rs.next()) {\n name = rs.getString(\"name\");\n\n }\n } catch (Exception e) {\n log4j.error(\"Exception in getOrgs()\", e);\n }\n return name;\n }", "public void setDescripcion(java.lang.String descripcion) {\n this.descripcion = descripcion;\n }", "java.lang.String getAdresa();", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "private String autores(Proyecto proyecto) {\r\n String resultado = \"\";\r\n Item estadoRenunciado = itemService.buscarPorCatalogoCodigo(CatalogoEnum.ESTADOAUTOR.getTipo(), EstadoAutorEnum.RENUNCIADO.getTipo());\r\n if (proyecto.getAutorProyectoList() == null) {\r\n return \"\";\r\n }\r\n int contador = 0;\r\n for (AutorProyecto autorProyecto : proyecto.getAutorProyectoList()) {\r\n if (estadoRenunciado.getId().equals(autorProyecto.getEstadoAutorId())) {\r\n continue;\r\n }\r\n EstudianteCarrera estudianteCarrera = estudianteCarreraService.buscarPorId(new EstudianteCarrera(autorProyecto.getAspiranteId().getId()));\r\n Persona persona = personaService.buscarPorId(new Persona(estudianteCarrera.getEstudianteId().getId()));\r\n if (contador == 0) {\r\n if (persona == null) {\r\n continue;\r\n }\r\n resultado = (persona.getApellidos() + \" \" + persona.getNombres());\r\n } else {\r\n resultado = (resultado + \", \" + persona.getApellidos() + \" \" + persona.getNombres());\r\n }\r\n contador++;\r\n }\r\n return resultado;\r\n }", "public TipoOperacaoParcialUpdate descricao(String descricao) {\n this.descricao = descricao;\n return this;\n }", "public String getCodigoExpediente() {\r\n return codigoExpediente;\r\n }", "public Date getFechaconsulta() {\r\n return fechaconsulta;\r\n }", "public String getCodigoEmpresa() {\n return this.codigoEmpresa;\n }", "public ResultSet obtenerDatosConsulta(String idConsultaMedica) throws SQLException\r\n {\r\n OperacionesConsultaMedica operacionesConsultaMedica = new OperacionesConsultaMedica();\r\n return operacionesConsultaMedica.obtenerDatosConsulta(idConsultaMedica);\r\n }", "public java.lang.String getEntidad() {\n return entidad;\n }", "private String getDescrizione(StrutturaDati _cell) {\n\t\tfor (StrutturaDati cell : _cell.getAttributi()) {\n\t\t\tif (cell.getNome().equals(TAG_MAP_CELL_DESCRIPTION)) {\n\t\t\t\tfor (StrutturaDati text : cell.getAttributi()) {\n\t\t\t\t\tif (text.isText()) {\n\t\t\t\t\t\treturn text.getNome().trim();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public String datosAlumno() {\n\t\treturn \"alumno: \" + this.getNombre() + \" \" + this.getApellido() + \" genero: \" + this.getGenero()\n\t\t+ \" condicion: \" + this.getCondicion() + \" notaFinal: \" + this.getNotaFinal();\n\t}", "@Override\n\tpublic String getDescription() {\n\t\treturn \"Transfereix vida a l'enemic\";\n\t}", "public String desc() {\n return this.getEscapedColumnName() + \" DESC\";\n }", "public String desc() {\n return this.getEscapedColumnName() + \" DESC\";\n }" ]
[ "0.6699607", "0.6660231", "0.66547453", "0.6614607", "0.6614607", "0.6605305", "0.6598634", "0.6598634", "0.6579935", "0.6507824", "0.6501784", "0.6466643", "0.6458968", "0.64529246", "0.64516586", "0.6426719", "0.64247715", "0.6404362", "0.6401586", "0.6354433", "0.6315603", "0.63024455", "0.62948513", "0.6249547", "0.6233302", "0.6232903", "0.6219258", "0.6148407", "0.61262244", "0.6101616", "0.6098218", "0.6091209", "0.6086126", "0.607878", "0.60702085", "0.60702085", "0.60569954", "0.6053726", "0.6031923", "0.60189044", "0.60189044", "0.6015007", "0.5999481", "0.5997203", "0.59434074", "0.5905901", "0.5901273", "0.58986765", "0.5823257", "0.58098954", "0.5798729", "0.5785052", "0.57665217", "0.57647973", "0.57093763", "0.57086134", "0.5695058", "0.5695058", "0.56922823", "0.5690122", "0.5690122", "0.5687093", "0.56713045", "0.56595755", "0.5659467", "0.5633955", "0.5633173", "0.5630479", "0.56266576", "0.56071824", "0.560354", "0.55986077", "0.5591314", "0.5575713", "0.55755234", "0.55751604", "0.5566587", "0.5556645", "0.55435884", "0.5542604", "0.5537019", "0.55283123", "0.55073196", "0.5493681", "0.5493681", "0.5493681", "0.5493681", "0.548554", "0.5485255", "0.5476458", "0.5474938", "0.54720134", "0.54667246", "0.5457816", "0.54511523", "0.54489386", "0.5445957", "0.54459566", "0.54459566" ]
0.6159743
28
This method was generated by MyBatis Generator. This method sets the value of the database column expediente_consulta.descripcion
public void setDescripcion(String descripcion) { this.descripcion = descripcion; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDescripcion(String s) { this.descripcion = s; }", "public void setDescripcion(String p) { this.descripcion = p; }", "public void setDescripcion(String descripcion) {\n this.descripcion = descripcion;\n \n switch (descripcion) {\n case \"REFORMA\": {\n this.id = 1;\n break;\n }\n case \"CASA\": {\n this.id = 2;\n break;\n }\n case \"EDIFICIO\": {\n this.id = 3;\n break;\n }\n case \"VIAL\": {\n this.id = 4;\n break;\n }\n default : this.id = 0;\n }\n }", "public void setDescripcion(String descripcion){\r\n this.descripcion = descripcion;\r\n }", "public void setDescricao(java.lang.String descricao) {\r\n this.descricao = descricao;\r\n }", "public void setDescripcion(String descripcion) {\n this.descripcion.set(descripcion);\n }", "public void setDescripcion(String descripcion)\r\n/* 168: */ {\r\n/* 169:309 */ this.descripcion = descripcion;\r\n/* 170: */ }", "public abstract void setAcma_descripcion(\n\t\tjava.lang.String newAcma_descripcion);", "public void setDescripcion(String descripcion) {\n this.descripcion = descripcion;\n }", "public void setDescripcion(java.lang.String descripcion) {\n this.descripcion = descripcion;\n }", "public void setConsulta(final E consulta) {\n\n\t\tthis.consulta = consulta;\n\t}", "public void setDescricao(String descricao) {\n this.validador.validaNulleVazio(descricao, \"Descricao nao pode ser nula ou vazia.\");\n if (this.ativada == false) {\n this.validador.lancaExcecao(\"Pesquisa desativada.\");\n }\n this.descricao = descricao;\n }", "public TipoOperacaoParcialUpdate descricao(String descricao) {\n this.descricao = descricao;\n return this;\n }", "public void setDescrizione (String descrizione) {\r\n\t\tthis.descrizione=descrizione;\r\n\t}", "public void setDescripcion(@NotNull String descripcion) {\n this.descripcion = descripcion;\n }", "public void setDescripcion(String descripcion) {\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"setDescripcion(String) - start\");\n\t\t}\n\n\t\tthis.descripcion = descripcion;\n\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"setDescripcion(String) - end\");\n\t\t}\n\t}", "public void setDescrizione(String descrizione) {\r\n\t\tthis.descrizione = descrizione;\r\n\t}", "public void setFechaconsulta(Date fechaconsulta) {\r\n this.fechaconsulta = fechaconsulta;\r\n }", "public void setDescrizione(String descrizione) {\n\t\tthis.descrizione = descrizione;\n\t}", "public String getDescripcion() { return this.descripcion; }", "public void setDescrizione(java.lang.String descrizione) {\r\n this.descrizione = descrizione;\r\n }", "public void setDescripcionExpediente(String descripcionExpediente) {\r\n this.descripcionExpediente = descripcionExpediente == null ? null : descripcionExpediente.trim();\r\n }", "public CompraResponse descricaoProduto(String descricaoProduto) {\n this.descricaoProduto = descricaoProduto;\n return this;\n }", "@Override\n public String descripcion() {\n return \"Viaje incentivo que te envia la empresa \" + empresa;\n }", "public void establecerDatosRegistro(String sqlConsulta) throws SQLException {\n try {\n this.sqlConsulta = sqlConsulta;\n ejecutarResultSet();\n\n if (!resultSet.first()) {\n return;\n }\n\n int cantidadColumnas = resultSet.getMetaData().getColumnCount();\n\n String nombreColumna;\n String valorColumna;\n\n for (int i = 0; i < cantidadColumnas; i++) {\n nombreColumna = resultSet.getMetaData().getColumnName(i + 1);\n valorColumna = resultSet.getString(i + 1);\n columnas.put(nombreColumna, valorColumna);\n }\n } finally {\n cerrarResultSet();\n }\n }", "@Override\n\tpublic void setDescripcion(String descripcion) {\n\t\tmodel.setDescripcion(descripcion);\n\t}", "public String getDescripcion() { return (this.descripcion == null) ? \"\" : this.descripcion; }", "public void setConsultaDinamica(String consultaDinamica) {\r\n\t\tthis.consultaDinamica = consultaDinamica;\r\n\t}", "public void setDescripcionReporteDiario(String descripcionReporteDiario) {\n if(this.bandera){\n this.descripcionReporteDiario = descripcionReporteDiario;\n ReportarUnDiario();\n this.bandera=false;\n this.descripcionReporteDiario = \"\";\n }\n \n }", "public void setConexionesDescartadas(int conexionesDescartadas){\n this.conexionesDescartadas = conexionesDescartadas;\n }", "public void setDescripcionCaracterizacion(java.lang.String descripcionCaracterizacion) {\n this.descripcionCaracterizacion = descripcionCaracterizacion;\n }", "public String getDescricao() {\n return descricao;\n }", "public String getDescricao() {\n return descricao;\n }", "@Override\r\n public String getDescripcion() {\r\n return this.descripcion;\r\n }", "public void setDescripcion(java.lang.String newDescripcion) {\n\t\tif (instanceExtension.needValuesOnMarkDirty())\n\t\t\tinstanceExtension.markDirty(3,getDescripcion(),newDescripcion);\n\t\telse\n\t\t\tinstanceExtension.markDirty(3);\n\t\tdataCacheEntry.setDescripcion(newDescripcion);\n\t}", "public String getDescripcion()\r\n/* 163: */ {\r\n/* 164:299 */ return this.descripcion;\r\n/* 165: */ }", "public void setComentario (String val) {\n this.comentario = val;\n }", "public void setComentario( String comentario )\n\t{\n\t\tthis.comentario = comentario;\n\t}", "public String getDescricao() {\n\t\treturn descricao;\n\t}", "public String getDescricao() {\n\t\treturn descricao;\n\t}", "public void setPerfilDescripcion(String descripcion);", "public void setRecapitoDesc(String recapitoDesc) {\n\t\tthis.recapitoDesc = recapitoDesc;\n\t}", "public void setComentario(Comentario comentario) {\n this.comentario = comentario;\n acutualizarInfo();\n }", "public String getDescripcionExpediente() {\r\n return descripcionExpediente;\r\n }", "public String dameDescripcion(){\n return \"Este empleado tiene un id = \"+getId()+\" con un sueldo de \"+getSueldo();\n }", "public void setNombreEmpresa(String nombreEmpresa) {\r\n this.nombreEmpresa = nombreEmpresa;\r\n }", "public abstract java.lang.String getAcma_descripcion();", "public void setCodigometodoacrescimovalor( String codigometodoacrescimovalor ) {\n this.codigometodoacrescimovalor = codigometodoacrescimovalor;\n }", "public String getDescricao() {\n\t\treturn this.descricao;\n\t}", "public String getDescripcion() {\n return this.descripcion.get();\n }", "public void setEdificio (String pEdificio)\r\n {\r\n this.edificio = pEdificio;\r\n }", "public String getDescrizione() {\r\n\t\treturn descrizione;\r\n\t}", "public void setEspecialidad (EspecialidadEntity pEspecialidad)\r\n {\r\n this.especialidad = pEspecialidad;\r\n }", "public void setEstablecimiento(String establecimiento)\r\n/* 119: */ {\r\n/* 120:198 */ this.establecimiento = establecimiento;\r\n/* 121: */ }", "public void setEmpresa(Empresa empresa)\r\n/* 89: */ {\r\n/* 90:141 */ this.empresa = empresa;\r\n/* 91: */ }", "public void setDescription(String newDesc){\n\n //assigns the value of newDesc to the description field\n this.description = newDesc;\n }", "public String getDescrizione() {\n\t\treturn descrizione;\n\t}", "public void setDescription(String desc) {\n this.desc = desc;\n }", "public void llenarDatos() {\n String nombre = \"\";\n String descripcion = \"\";\n try {\n ResultSet resultado = buscador.getResultSet(\"select nombre, descripcion from NODO where ID = \" + IDNodoPadre + \";\");\n if (resultado.next()) {\n nombre = resultado.getObject(\"nombre\").toString();\n descripcion = resultado.getObject(\"descripcion\").toString();\n }\n } catch (SQLException e) {\n System.out.println(\"*SQL Exception: *\" + e.toString());\n }\n campoNombre.setText(nombre);\n campoDescripcion.setText(descripcion);\n //Si esta asociada a categorias\n if(conCategorias)\n llenarComboCategoria();\n else{\n comboCategoria.setVisible(false);\n labelCategoria.setVisible(false);\n }\n }", "public void setDescription(String desc) {\n description = desc;\n }", "@Column(name = \"DESCRIPCION\")\n\tpublic String getlDescripcion() {\n\t\treturn lDescripcion;\n\t}", "public void setDescription(String des){\n description = des;\n }", "public java.lang.String getDescricao() {\r\n return descricao;\r\n }", "public void setDesc(String desc) {\n this.desc = desc;\n }", "public void setDesc(String desc) {\n this.desc = desc;\n }", "public void setEntidad(java.lang.String entidad) {\n this.entidad = entidad;\n }", "@Override\r\n public String toString() {\n return this.descripcion;\r\n }", "public void setComentarios(String comentarios) {\n this.comentarios = comentarios;\n }", "public void setCodigoEmpresa(String codigoEmpresa) {\n this.codigoEmpresa = codigoEmpresa;\n }", "public String getDescripcion() {\r\n return Descripcion;\r\n }", "public void EjecutarConsulta() {\n try {\n Consultar(\"select * from \"+table);\n this.resultSet = preparedStatement.executeQuery();\n } catch (Exception e) {\n// MessageEmergent(\"Fail EjecutarConsulta(): \"+e.getMessage());\n }\n }", "public void setContraparte(es.gob.agenciatributaria.www2.static_files.common.internet.dep.aplicaciones.es.aeat.ssii.fact.ws.SuministroInformacion_xsd.ContraparteConsultaType contraparte) {\r\n this.contraparte = contraparte;\r\n }", "public E getConsulta() {\n\n\t\treturn this.consulta;\n\t}", "public String getDescripcion(){\n return descripcion;\n }", "public void setNombre (String val) {\n this.nombre = val;\n }", "public void setNombreCompleto(String nombreCompleto);", "public void setNombreParaMostrar(String nombreParaMostrar) {\n this.nombreParaMostrar = nombreParaMostrar;\n }", "public void setDescription(String desc) {\n sdesc = desc;\n }", "public void setDescription(String description) {\n this.description = description;\n UnitOfWork.getCurrent().registerDirty(this);\n }", "public String obtenerDescripcionAtaque(){\n\treturn descripcionAtaque;\n }", "public String getDescripcion() {\r\n return descripcion;\r\n }", "public String getDescripcion() {\r\n return descripcion;\r\n }", "public final void setDescription(final String desc) {\n mDescription = desc;\n }", "public void setNombreUsuario(String nombreUsuario) {\r\n this.nombreUsuario = nombreUsuario;\r\n }", "public void setNombre(String nombre){\n this.nombre =nombre;\n }", "public String obtenerCampo(String sqlConsulta) throws SQLException {\n try {\n this.sqlConsulta = sqlConsulta;\n ejecutarResultSet();\n if (!resultSet.first() || resultSet.getString(1) == null) {\n return \"\";\n }\n String campo = resultSet.getString(1);\n return campo;\n } finally {\n cerrarResultSet();\n }\n\n }", "@Override\n protected void carregaObjeto() throws ViolacaoRegraNegocioException {\n entidade.setNome( txtNome.getText() );\n entidade.setDescricao(txtDescricao.getText());\n entidade.setTipo( txtTipo.getText() );\n entidade.setValorCusto(new BigDecimal((String) txtCusto.getValue()));\n entidade.setValorVenda(new BigDecimal((String) txtVenda.getValue()));\n \n \n }", "public void resetDescripcion()\r\n {\r\n this.descripcion = null;\r\n }", "public abstract void setAcma_valor(java.lang.String newAcma_valor);", "public String getDescripcion() {\n return descripcion;\n }", "public String getDescricao() {\n\t\treturn null;\n\t}", "public String getDescricao();", "public void setValor(java.lang.String valor);", "public abstract void setAcma_cierre(java.lang.String newAcma_cierre);", "public void setEjercicio(Ejercicio ejercicio)\r\n/* 150: */ {\r\n/* 151:193 */ this.ejercicio = ejercicio;\r\n/* 152: */ }", "public String getDescripcion() {\n return descripcion;\n }", "public void setDescription(String desc)\r\n {\r\n\tthis.desc = desc;\r\n }", "public void setDescription(String des) {\r\n\t\tthis.description = des;\r\n\t}", "void setDesc(java.lang.String desc);" ]
[ "0.67125535", "0.6617872", "0.66133213", "0.65720916", "0.6557213", "0.65430146", "0.6536313", "0.65180206", "0.64580417", "0.6323754", "0.6289308", "0.6183729", "0.61612856", "0.6155154", "0.6111142", "0.610969", "0.6036673", "0.60288435", "0.6022711", "0.6009783", "0.59817255", "0.59592605", "0.5896844", "0.58966744", "0.5885143", "0.5870918", "0.583721", "0.5801619", "0.57809067", "0.57736874", "0.5681649", "0.5680086", "0.5680086", "0.56178117", "0.5608228", "0.5570963", "0.55648714", "0.5540743", "0.5533327", "0.5533327", "0.55310225", "0.5519692", "0.5499897", "0.5496385", "0.5481496", "0.54760814", "0.5467514", "0.54643226", "0.54297245", "0.542064", "0.5408034", "0.5406286", "0.5403049", "0.5399432", "0.5391583", "0.5365861", "0.53572524", "0.5347236", "0.53389513", "0.53384143", "0.5335541", "0.532954", "0.53280276", "0.53233206", "0.53233206", "0.532304", "0.5322218", "0.53119755", "0.5311634", "0.53048176", "0.52968353", "0.52918017", "0.52916425", "0.52904457", "0.5288872", "0.52861685", "0.52756035", "0.5271556", "0.5268126", "0.5267428", "0.5262943", "0.5262943", "0.5259141", "0.525559", "0.5252301", "0.52383506", "0.5235676", "0.5231762", "0.5230984", "0.5223907", "0.5223097", "0.522249", "0.5222342", "0.52209806", "0.52114624", "0.52105147", "0.52063507", "0.5193284", "0.5187799" ]
0.6471044
9
This method was generated by MyBatis Generator. This method returns the value of the database column expediente_consulta.peso
public String getPeso() { return peso; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Pessoa getPessoa() {\r\n\t\treturn pessoa;\r\n\t}", "@Column(name = \"C_PUESTO\")\n public String getPuesto() {\n return puesto;\n }", "public int getCodPessoa() {\r\n\t\treturn this.codPessoa;\r\n\t}", "public java.sql.ResultSet consultaporespecialidad(String CodigoEspecialidad){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pes.codigo=\"+CodigoEspecialidad+\" and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporespecialidad \"+ex);\r\n }\t\r\n return rs;\r\n }", "public int obtenerDatosPersonaEspecifico(int idCliente) {\n\n\t\ttry {\n\n\t\t\tlog.info(\"Procediendo a obtener salidas especificas para la persona\");\n\t\t\tStoredProcedureQuery storedProcedureQuery = entityManager\n\t\t\t\t\t\n\t\t\t\t\t// Definicion\n\t\t\t\t\t.createStoredProcedureQuery(prop.getPROCEDURE_OBTENER_DATOS_UNICOS())\n\n\t\t\t\t\t// Entradas\n\t\t\t\t\t.registerStoredProcedureParameter(1, Integer.class, ParameterMode.IN)\n\n\t\t\t\t\t// Salidas\n\t\t\t\t\t.registerStoredProcedureParameter(2, String.class, ParameterMode.OUT)\n\t\t\t\t\t.registerStoredProcedureParameter(3, String.class, ParameterMode.OUT)\n\n\t\t\t\t\t// Parametros\n\t\t\t\t\t.setParameter(1, idCliente);\n\n\t\t\tlog.info(\"Ejecutando Procedimiento...\");\n\t\t\tstoredProcedureQuery.execute();\n\t\t\tlog.info(\"Procedimiento ejecutado\");\n\n\t\t\t// Obtener los datos de salida\n\t\t\tString nombre = (String) storedProcedureQuery.getOutputParameterValue(2);\n\t\t\tString direccion = (String) storedProcedureQuery.getOutputParameterValue(3);\n\n\t\t\tlog.info(\"SALIDA: Nombre = \" + nombre + \" , Direccion = \" + direccion);\n\t\t\treturn 1;\n\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"Error al consultar procedure [\" + prop.getPROCEDURE_OBTENER_PERSONA_ID() + \"] , Detalle > \" + e.getMessage());\n\t\t}\n\t\t\n\t\treturn 0;\n\n\t}", "public long getIdPessoa() {\n\t\treturn idPessoa;\n\t}", "public double getPeso() {\n\t\treturn this.peso;\n\t}", "public E getConsulta() {\n\n\t\treturn this.consulta;\n\t}", "public java.sql.ResultSet consultaporespecialidadfecha(String CodigoEspecialidad,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pes.codigo=\"+CodigoEspecialidad+\" and phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporespecialidadfecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public java.lang.Long getPeti_numero();", "public java.lang.Long getPeti_numero();", "public String getProdotto() {\r\n\t\treturn prodotto;\r\n\t}", "private String getQuerySelecaoBonusPulaPula()\n\t{\n\t\tString result = \n\t\t\t\"SELECT \" +\n\t\t\t\" ID_CODIGO_NACIONAL, \" +\n\t\t\t\" VLR_BONUS_MINUTO, \" +\n\t\t\t\" VLR_BONUS_MINUTO_FF \" +\n\t\t\t\"FROM \" +\n\t\t\t\" TBL_GER_BONUS_PULA_PULA \";\n\t\t\n\t\treturn result;\n\t}", "public Long getIdPropietario(com.trascender.catastro.recurso.persistent.Parcela pParcela) throws Exception {\n\t\treturn this.getPropietario(pParcela).getIdPersona();\n\t}", "public String getToernooiSoort(){\n if(typeField.getText().equals(\"Toernooi\")){\n try {\n Connection con = Main.getConnection();\n PreparedStatement st = con.prepareStatement(\"SELECT soort_toernooi FROM Toernooi WHERE TC = ?\");\n st.setInt(1, Integer.parseInt(codeField.getText()));\n ResultSet rs = st.executeQuery();\n if (rs.next()) {\n String toernooiSoort = rs.getString(\"soort_toernooi\");\n System.out.println(toernooiSoort);\n return toernooiSoort;\n }\n\n }catch(Exception e){\n System.out.println(e);\n System.out.println(\"ERROR: er is een probleem met de database(getToernooiSoort)\");\n }\n }\n\n return \"poepieScheetje\";}", "@SuppressWarnings(\"unchecked\")\r\n\tprivate Long buscarIdPais() {\r\n\t\tString cad = \"select p.* from general.pais p where lower(p.descripcion) = 'paraguay'\";\r\n\t\tList<Pais> lista = new ArrayList<Pais>();\r\n\t\tlista = em.createNativeQuery(cad, Pais.class).getResultList();\r\n\t\tif (lista.size() > 0)\r\n\t\t\treturn lista.get(0).getIdPais();\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tprivate Long buscarIdPais() {\r\n\t\tString cad = \"select p.* from general.pais p where lower(p.descripcion) = 'paraguay'\";\r\n\t\tList<Pais> lista = new ArrayList<Pais>();\r\n\t\tlista = em.createNativeQuery(cad, Pais.class).getResultList();\r\n\t\tif (lista.size() > 0)\r\n\t\t\treturn lista.get(0).getIdPais();\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}", "@Column(name = \"C_SEGUNDO_APELLIDO\")\n public String getSegundoApellido() {\n return segundoApellido;\n }", "public java.lang.String getProformaNo () {\n\t\treturn proformaNo;\n\t}", "public E primero() {\n\t\tif(estaVacia()) {\n\t\t\treturn null;\n\t\t}\n\t\treturn primero.getDato();\n\t}", "@Column(name = \"C_PRIMER_APELLIDO\")\n public String getPrimerApellido() {\n return primerApellido;\n }", "public abstract co\n\t\t.com\n\t\t.telefonica\n\t\t.atiempo\n\t\t.ejb\n\t\t.eb\n\t\t.Estado_ps_peticionLocal getEstado_ps_peticion();", "public void setPeso(String peso) {\r\n this.peso = peso;\r\n }", "public String getProfi() {\r\n\t\treturn profi;\r\n\t}", "public String getNomePessoa() {\n\t\treturn nomePessoa;\n\t}", "public OrdemServicoProgramacao pesquisarOSProgramacaoAtivaComDataRoteiroIdEquipe(Integer numeroOS, Date dataRoteiro, Integer idEquipe)\n\t\t\t\t\tthrows ErroRepositorioException{\n\n\t\tOrdemServicoProgramacao retorno = null;\n\n\t\tSession session = HibernateUtil.getSession();\n\t\tString consulta = \"\";\n\n\t\ttry{\n\n\t\t\tconsulta = \"SELECT osProgramacao \" + \"FROM OrdemServicoProgramacao osProgramacao \"\n\t\t\t\t\t\t\t+ \"INNER JOIN osProgramacao.ordemServico os \" + \"INNER JOIN osProgramacao.equipe equipe \"\n\t\t\t\t\t\t\t+ \"INNER JOIN osProgramacao.programacaoRoteiro progRoteiro \" + \"WHERE os.id = :numeroOS \"\n\t\t\t\t\t\t\t+ \"AND equipe.id = :idEquipe \" + \"AND osProgramacao.indicadorAtivo = :indAtivo \"\n\t\t\t\t\t\t\t+ \"AND progRoteiro.dataRoteiro = :dataProgramacaoRoteiro\";\n\n\t\t\tretorno = (OrdemServicoProgramacao) session.createQuery(consulta).setInteger(\"numeroOS\", numeroOS)\n\t\t\t\t\t\t\t.setInteger(\"idEquipe\", idEquipe).setShort(\"indAtivo\", OrdemServicoProgramacao.INDICADOR_ATIVO)\n\t\t\t\t\t\t\t.setTimestamp(\"dataProgramacaoRoteiro\", dataRoteiro)\n\n\t\t\t\t\t\t\t.setMaxResults(1).uniqueResult();\n\n\t\t}catch(HibernateException e){\n\t\t\tthrow new ErroRepositorioException(e, \"Erro no Hibernate\");\n\t\t}finally{\n\t\t\tHibernateUtil.closeSession(session);\n\t\t}\n\n\t\treturn retorno;\n\t}", "public double peso() {\n double peso = 0.0;\n for (Arista a : aristas())\n peso += a.peso();\n return peso;\n }", "public String getCodigoPosse() {\n return codigoPosse;\n }", "public static int BuscarPorcentajeConvenio(int pac, int idempresa, int idservicio, Session sesion) {\n String hql;\n int porc = 0;\n try{ \n //sesion = NewHibernateUtil.getSessionFactory().openSession();\n //tr = sesion.beginTransaction();\n hql = \"SELECT porcentaje FROM Convenio WHERE estado = 'Activo' AND paciente = \"+pac+\" AND empresa = \"+idempresa+\" AND servicio = \"+idservicio;\n Query query = sesion.createQuery(hql); \n Iterator it = query.iterate();\n if(it.hasNext()){\n porc = (int)it.next();\n }\n }catch(HibernateException ex){\n JOptionPane.showMessageDialog(null, \"Error al conectarse con Base de Datos\", \"Convenio Controlador\", JOptionPane.INFORMATION_MESSAGE);\n }\n return porc;\n }", "public String getCodigoExpediente() {\r\n return codigoExpediente;\r\n }", "public String getInscricaoPossuidor() {\n return inscricaoPossuidor;\n }", "public SystemeAmendesInt.Personne getProprietaire() {\n return proprietaire;\n }", "public int siguienteRegistro(int codigoFlujo) {\n/* 265 */ int inumero = 1;\n/* 266 */ String s = \"select max(secuencia) from wkf_detalle where codigo_flujo=\" + codigoFlujo + \"\";\n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 271 */ boolean rta = this.dat.parseSql(s);\n/* 272 */ if (!rta) return 0; \n/* 273 */ this.rs = this.dat.getResultSet();\n/* 274 */ if (this.rs.next()) {\n/* 275 */ s = this.rs.getString(1);\n/* 276 */ if (!this.rs.wasNull()) {\n/* 277 */ inumero = Integer.parseInt(s) + 1;\n/* */ }\n/* */ } \n/* 280 */ return inumero;\n/* */ }\n/* 282 */ catch (Exception e) {\n/* 283 */ e.printStackTrace();\n/* 284 */ Utilidades.writeError(\"FlujoDetalleDAO:siguienteRegistro \", e);\n/* */ \n/* 286 */ return 0;\n/* */ } \n/* */ }", "public String getPuntoEmision()\r\n/* 124: */ {\r\n/* 125:207 */ return this.puntoEmision;\r\n/* 126: */ }", "@SuppressWarnings(\"unchecked\")\n\tpublic com.trascender.framework.recurso.persistent.Persona getPropietario(com.trascender.catastro.recurso.persistent.Parcela pParcela) throws Exception {\n\n\t\tList locListaPropietarios = pParcela.getTituloPropiedad().getListaRegistrosPropietarios();\n\t\t// if ((pParcela != null) && (pParcela.getIdParcela() != -1)) {\n\t\t// locListaPropietarios = Criterio\n\t\t// .getInstance(this.entityManager, RegistroPropietario.class)\n\t\t// .crearAlias(\"tituloPropiedad.parcela\", \"locParcela\")\n\t\t// .add(Restriccion.IGUAL(\"locParcela\", pParcela)).list();\n\t\t// }\n\n\t\tif((locListaPropietarios != null) && (!locListaPropietarios.isEmpty())) {\n\t\t\tRegistroPropietario locRegistroPropietario = (RegistroPropietario) locListaPropietarios.get(0);\n\n\t\t\treturn locRegistroPropietario.getPersona();\n\t\t}\n\n\t\treturn null;\n\n\t}", "public int pontuacao() {\n\t\treturn this.pontuacao;\n\t}", "public double getPeso() {\r\n return peso;\r\n }", "public String getPeriode() {\n return this.periode;\n }", "public String getCUSU_APELLIDOS(){\n\t\treturn this.myCusu_apellidos;\n\t}", "@Query(value= \" select \tpa.id as codigoPaciente, \"+\n\t\t\t\t\t\"\t\tpa.nome as nomePaciente, \"+\n\t\t\t\t\t\"\t\tpa.sexo as sexoPaciente, \"+\n\t\t\t\t\t\"\t\tDATE_FORMAT(pa.data_nascimento,'%d/%m/%Y') as dataNascimentoPaciente, \"+\n\t\t\t\t\t\"\t\tCONCAT(pa.endereco,', ',ci.nome,' - ',ci.uf) as enderecoPaciente \"+\n\t\t\t\t\t\" from tbl_paciente pa \"+\n\t\t\t\t\t\" inner join tbl_bairro ba on ba.id = pa.id_bairro \"+\n\t\t\t\t\t\" inner join tbl_cidade ci on ci.id = ba.id_cidade \"+\n\t\t\t\t\t\" where pa.nome like :pNome\"+\n\t\t\t\t\t\" order by pa.nome, ci.nome \", nativeQuery=true)\n\tpublic List<Object> consultaPacientesPorNome(@Param(\"pNome\") String pNome);", "private String getQuerySelecaoPromocoes()\n\t{\n\t\tString result = \n\t\t\t\"SELECT \" +\n\t\t\t\" PROMOCAO.IDT_PROMOCAO, \" +\n\t\t\t\" PROMOCAO.NOM_PROMOCAO, \" +\n\t\t\t\" PROMOCAO.DAT_INICIO_VALIDADE, \" +\n\t\t\t\" PROMOCAO.DAT_FIM_VALIDADE, \" +\n\t\t\t\" PROMOCAO.VLR_MAX_CREDITO_BONUS \" +\n\t\t \"FROM \" +\n\t\t \" TBL_GER_PROMOCAO PROMOCAO \" + \n\t\t \"WHERE \" +\n\t\t \" PROMOCAO.IDT_CATEGORIA = \" + String.valueOf(ID_CATEGORIA_PULA_PULA);\n\t\t\n\t\treturn result;\n\t}", "public String salvar(PessoaJuridica pessoaJuridica) {\n\t\t\r\n\t\treturn \"Salvo\";\r\n\t}", "@Override\n public Propiedad getPropiedadId(String pNumFinca) throws SQLException {\n ArrayList<Propiedad> resultado = new ArrayList<Propiedad>();\n resultado = (ArrayList<Propiedad>) bdPropiedad.selectQuery(\"SELECT * FROM PROPIEDAD WHERE \"\n + \"ID_PROPIEDAD = '\" + pNumFinca + \"'\");\n Propiedad propiedadSeleccionada = resultado.get(0);\n return propiedadSeleccionada;\n }", "public String salvar(PessoaFisica pessoafisica) {\n\t\t\r\n\t\treturn \"Salvo\";\r\n\t}", "public Calificar buscar_comentario2(String email, String puesto){\n Calificar cal = null;\n Session session = sessionFactory.openSession();\n Transaction tx = null;\n \n try{\n \n tx = session.beginTransaction();\n String hql = \"from Calificar c where c.persona.correo = :correo and c.puesto.idNombre = :puesto\";\n Query query = session.createQuery(hql);\n query.setParameter(\"correo\", email);\n query.setParameter(\"puesto\", puesto);\n cal = (Calificar)query.uniqueResult();\n tx.commit();\n \n } catch (Exception e) {\n if (tx != null) {\n tx.rollback();\n }\n e.printStackTrace();\n } finally {\n session.close();\n }\n \n return cal;\n }", "public java.sql.ResultSet consultaporfecha(String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporfecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "@AutoEscape\n\tpublic String getIdPtoServicio();", "public int getProfundidad() {\n return this.profundidad;\n }", "private String getQuerySelecaoPromocaoDiaExecucao(String dataExecucao)\n\t{\n\t\tString result = \n\t\t\t\"SELECT \" +\n\t\t\t\" DIA.IDT_PROMOCAO, \" +\n\t\t\t\" DIA.NUM_DIA_ENTRADA, \" +\n\t\t\t\" DIA.NUM_DIA_EXECUCAO, \" +\n\t\t\t\" DIA.NUM_DIA_EXECUCAO_RECARGA \" +\n\t\t \"FROM \" +\n\t\t \" TBL_GER_PROMOCAO_DIA_EXECUCAO DIA, \" + \n\t\t \" TBL_GER_PROMOCAO PROMOCAO \" + \n\t\t \"WHERE \" +\n\t\t \" PROMOCAO.IDT_PROMOCAO = DIA.IDT_PROMOCAO AND \" +\n\t\t \" PROMOCAO.IDT_CATEGORIA = \" + String.valueOf(ID_CATEGORIA_PULA_PULA);\n\t\t\n\t\treturn result;\t \n\t}", "public P primeiro() {\n\t\treturn this.primeiro;\n\t}", "public String getCodigoEmpresa() {\n return this.codigoEmpresa;\n }", "public java.sql.ResultSet consultaporespecialidadhorafecha(String CodigoEspecialidad,String hora,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pes.codigo=\"+CodigoEspecialidad+\" and phm.horas='\"+hora+\"' and phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas \");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporespecialidadhorafecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public String getPoblacion() {\r\n\t\treturn poblacion;\r\n\t}", "GestionPrecioDTO findCampania(String codigoCampaniaReferencia);", "public Integer getIdProfilo() {\n\t\treturn idProfilo;\n\t}", "public int getEgresosPorCompras(){\n return this.egresosPorCompras;\n }", "@Override\n\tpublic String findOneByName(final String nombreParametro) {\n\t\tString valor = Constante.SPATIU;\n\t\tif (propriedadesRepository.findOneByName(nombreParametro) != null) {\n\t\t\tvalor = propriedadesRepository.findOneByName(nombreParametro).getValue();\n\t\t}\n\n\t\treturn valor;\n\t}", "public BigDecimal getSecuenciaExpediente() {\r\n return secuenciaExpediente;\r\n }", "public String getProgramaEducativo() {\r\n return programaEducativo;\r\n }", "public java.sql.ResultSet consultapormedicoespecialidadfecha(String CodigoMedico,String CodigoEspecialidad,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pmd.codigo=\"+CodigoMedico+\" and pes.codigo=\"+CodigoEspecialidad+\" and phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicoespecialidadfecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public HTMLElement getElementCodigoPoaEd() { return this.$element_CodigoPoaEd; }", "@Override\n public ArrayList<Propiedad> getPrecioCliente(double pMenor, double pMayor) throws SQLException {\n ArrayList<Propiedad> resultado = new ArrayList<Propiedad>();\n resultado = (ArrayList<Propiedad>) bdPropiedad.selectQuery(\"SELECT * FROM PROPIEDAD WHERE ESTADO = 'ACTIVO' AND \"\n + \"PRECIO >= \" + pMenor + \" AND PRECIO <= \" + pMayor);\n return resultado;\n }", "protected void exibirPacientes(){\n System.out.println(\"--- PACIENTES CADASTRADOS ----\");\r\n String comando = \"select * from paciente order by id\";\r\n ResultSet rs = cb.buscaDados(comando);\r\n try{\r\n while(rs.next()){\r\n int id = rs.getInt(\"id\");\r\n String nome = rs.getString(\"nomepaciente\");\r\n System.out.println(\"[\"+id+\"] \"+nome);\r\n }\r\n }\r\n catch (Exception e){\r\n e.printStackTrace();\r\n }\r\n }", "public String getPtoNo() {\n return ptoNo;\n }", "public Number getPesocont()\n {\n return (Number)getAttributeInternal(PESOCONT);\n }", "public int getDatossolicitudBfmarcaProductoSolicitado() {\n return datossolicitudBfmarcaProductoSolicitado;\n }", "public String darPista() {\r\n\t\tString msj = \"\";\r\n\t\tboolean fin = false;\r\n\t\tfor (int i = 0; i < casillas.length && !fin; i++) {\r\n\t\t\tfor (int j = 0; j < casillas[0].length && !fin; j++) {\t\t\r\n\t\t\t\tif(casillas[i][j].esMina() == false && casillas[i][j].darValor() > 0) {\r\n\t\t\t\t\tcasillas[i][j].destapar();\r\n\t\t\t\t\tmsj += i+\",\"+j;\r\n\t\t\t\t\tfin = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn msj;\r\n\t}", "public int getEmpatadas(){\n\t\treturn empatadas;\n\t}", "public int getSecuenciaPregunta() {\n return secuenciaPregunta;\n }", "public Pessoa porMatricula(String matricula) {\n\t\ttry {\r\n\t\t\tPessoa pessoa = em.find(Pessoa.class, matricula);\r\n\t\t\t// Pessoa pessoa = (Pessoa) em\r\n\t\t\t// .createQuery(\r\n\t\t\t// \"select p from Pessoa p where matricula = :matricula\")\r\n\t\t\t// .setParameter(\"matricula\", matricula).getSingleResult();\r\n\t\t\treturn pessoa;\r\n\t\t} catch (NoResultException nre) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t}", "public Patient getProprietaire() {\n\t\treturn proprietaire;\n\t}", "public String dameValor(String campo) {\n\t\t// TODO Auto-generated method stub\n\t\tString c=\"\";\n\t\n\t\tif (campo.equals(Constantes.ID_ISFICHA))\n\t\t{\n\t\t\tc=IDISFICHA;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_NOTAS))\n\t\t{\n\t\t\tc=NOTAS;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_ANOTACIONES))\n\t\t{\n\t\t\tc=ANOTACIONES;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_NOTAS_EJERCICIOS))\n\t\t{\n\t\t\tc=NOTAS_EJERCICIOS;\n\t\t}\n\t\treturn c;\n\t}", "public Promozione getOfferta() {\n\t\treturn offerta;\n\t}", "public java.lang.String getCodigo_pcom();", "public String getId_Pelanggan(){\r\n \r\n return id_pelanggan;\r\n }", "public java.lang.String getTpoDocumento() {\n return tpoDocumento;\n }", "private String getPais()\n throws Exception,MareException\n\t{\n\t\tLong pais = UtilidadesSession.getPais(this);\n\t\treturn pais.toString();\n\t}", "public int pedeCodigo() {\n int codigo = this.telaFuncionario.pedeCodigo();\n return codigo;\n }", "public int getPerfil(){\n return this.perfil;\n }", "public Float getPeso() {\r\n\t\treturn peso;\r\n\t}", "public int getParametroIdParametroPadre() {\r\n\t\treturn this.parametroIdParametroPadre;\r\n\t}", "public int promossaDama(int pezzo)\n {\n switch (pezzo)\n {\n case PEDINA_NERA: case DAMA_NERA: return DAMA_NERA;\n case PEDINA_BIANCA: case DAMA_BIANCA: return DAMA_BIANCA;\n }\n return VUOTA;\n }", "public String getTipoEco() {\n return this.tipoEco;\n }", "public Posizione getPosizione() {\n return posizione;\n }", "@Override\n public ArrayList<Propiedad> getPrecioAgente(double pMenor, double pMayor, String pId) throws SQLException {\n ArrayList<Propiedad> resultado = new ArrayList<Propiedad>();\n resultado = (ArrayList<Propiedad>) bdPropiedad.selectQuery(\"SELECT * FROM PROPIEDAD WHERE ID_AGENTE = '\" + pId + \"' AND \"\n + \"PRECIO >= \" + pMenor + \" AND PRECIO <= \" + pMayor);\n return resultado;\n }", "public static Produto pesqProdutoCodigo(int codigo) throws SQLException, ProdutoException{\n\t\tPreparedStatement objSQL = \n\t\t\tobjcon.prepareStatement(\"SELECT * FROM TABPRODUTOS WHERE CODIGO = ?\");\n\t\tobjSQL.setInt(1, codigo);\n\t\t// executeQuery, executa o comando de SQL colocado no prepareStatemente\n\t\tResultSet objResp = objSQL.executeQuery();\n\t\tif (objResp.next()) {\n\t\t\treturn new Produto(\n\t\t\t\t\tobjResp.getInt(\"CODIGO\"), \n\t\t\t\t\tobjResp.getString(\"PRODUTO\"), \n\t\t\t\t\tobjResp.getDouble(\"PRECO\"), \n\t\t\t\t\tobjResp.getDate(\"DATAPRECO\"));\n\t\t} else {\n\t\t\tthrow new ProdutoException(\"Não existe produto para o código.\");\n\t\t}\t\n\t}", "private PiattoModulo getModuloPiatto() {\n return (PiattoModulo)Progetto.getModulo(Ristorante.MODULO_PIATTO);\n }", "private int obtenerCodigoPieza() {\n\t\tint resultado = 1;\n\t\ttry {\n\t\t\tXPathQueryService consulta = \n\t\t\t\t\t(XPathQueryService) \n\t\t\t\t\tcol.getService(\"XPathQueryService\", \"1.0\");\n\t\t\tResourceSet r = consulta.query(\"string(/piezas/pieza[last()]/@codigo)\");\n\t\t\tResourceIterator i = r.getIterator();\n\t\t\tif(i.hasMoreResources()) {\n\t\t\t\tString numero =i.nextResource().getContent().toString();\n\t\t\t\tif(!numero.equals(\"\"))\n\t\t\t\t\tresultado = Integer.parseInt(numero)+1;\n\t\t\t}\n\t\t} catch (XMLDBException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn resultado;\n\t}", "public String getEmpresa() {\r\n return empresa;\r\n }", "public int siguienteRegistro(int codigoCiclo, int codigoPlan) {\n/* 454 */ int numero = 1;\n/* 455 */ String s = \"select max(codigo_meta) from cal_plan_metas\";\n/* 456 */ s = s + \" where codigo_ciclo=\" + codigoCiclo;\n/* */ try {\n/* 458 */ boolean rta = this.dat.parseSql(s);\n/* 459 */ if (!rta) return 0; \n/* 460 */ this.rs = this.dat.getResultSet();\n/* 461 */ if (this.rs.next()) {\n/* 462 */ s = this.rs.getString(1);\n/* 463 */ if (!this.rs.wasNull()) {\n/* 464 */ numero = Integer.parseInt(s) + 1;\n/* */ }\n/* */ } \n/* 467 */ if (numero < 10000) numero = 10000; \n/* 468 */ return numero;\n/* */ }\n/* 470 */ catch (Exception e) {\n/* 471 */ e.printStackTrace();\n/* 472 */ Utilidades.writeError(\"CalPlanMetasFactory:siguienteRegistro\", e);\n/* */ \n/* 474 */ return 0;\n/* */ } \n/* */ }", "public List<Propriedade> getPropriedadesDoJogador() {\r\n return propriedadesDoJogador;\r\n }", "public TypeOffreDTO getEmploi(){\n\t\temploi = null;\n\t\tList<TypeOffreDTO> l = getNomenclatureDomainService().getTypesOffre();\n\t\tfor(TypeOffreDTO t : l){\n\t\t\tif(t.getCodeCtrl().equalsIgnoreCase(DonneesStatic.TYPE_OFFRE_CODE_CTRL_EMPLOI)){\n\t\t\t\temploi=t;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn emploi;\n\t}", "public TipoEmpresa getTipo() {\r\n return this.tipo;\r\n }", "public String dameValor(String campo) {\n\t\t// TODO Auto-generated method stub\n\t\tString c=\"\";\n\t\n\t\tif (campo.equals(Constantes.ID_HAS_ISHORARIO_IDISHORARIO))\n\t\t{\n\t\t\tc=ISHORARIO_IDISHORARIO;\n\t\t}\n\t\telse if (campo.equals(Constantes.ID_HAS_ISAULA_IDISAULA))\n\t\t{\n\t\t\tc=ISAULA_IDISAULA;\n\t\t}\n\t\telse if (campo.equals(Constantes.ISHORARIO_HAS_ISAULA_ISCURSO_IDISCURSO))\n\t\t{\n\t\t\tc=ISCURSO_IDISCURSO;\n\t\t}\n\t\t\n\t\treturn c;\n\t}", "public BigDecimal getIdExpediente() {\r\n return idExpediente;\r\n }", "@Override\n public ArrayList<Propiedad> getPropiedadesCliente() throws SQLException {\n ArrayList<Propiedad> resultado = new ArrayList<Propiedad>();\n resultado = (ArrayList<Propiedad>) bdPropiedad.selectQuery(\"SELECT * FROM PROPIEDAD WHERE ESTADO \"\n + \"= 'Activo'\");\n return resultado;\n }", "public String getComentariosSoporte() {\n return comentariosSoporte;\n }", "public Empresa getEmpresa() {\n\t\treturn producto.getEmpresa();\n\t}", "@GET\n\t@Path(\"PeorPorSemana\")\n\t@Produces({ MediaType.APPLICATION_JSON })\n\tpublic Response getPeoresOperadoresPorSemana() {\n\t\t\n\t\ttry {\n\t\t\tAlohAndesTransactionManager tm = new AlohAndesTransactionManager(getPath());\n\t\t\t\n\t\t\tArrayList<Operador> operador = tm.getOperadorPeorPorSemana();\n\t\t\t//Por simplicidad, solamente se obtienen los primeros 50 resultados de la consulta\n\t\t\treturn Response.status(200).entity(operador).build();\n\t\t} \n\t\tcatch (Exception e) {\n\t\t\treturn Response.status(500).entity(doErrorMessage(e)).build();\n\t\t}\n\t}", "public double obtenerPrecioProducto(String nombreProducto) throws DBException{\r\n\t\tdouble precio = 0;\r\n\t\ttry (PreparedStatement stmt = conexion.prepareStatement(\"SELECT nombre, precio FROM producto WHERE nombre = ? \")) {\r\n\t\t\tstmt.setString(1, nombreProducto);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\trs.next();\r\n\t\t\tprecio = rs.getDouble(\"precio\");\r\n\t\t\t\r\n\t\t\tLOG.log(Level.INFO,\"Producto obtenido\");\r\n\t\t} catch (SQLException e) {\r\n\t\t\tLOG.log(Level.WARNING,e.getMessage());\r\n\t\t\tthrow new DBException(\"Error obteniendo todos los usuarios'\", e);\r\n\t\t}\t\r\n\t\treturn precio;\r\n\t}" ]
[ "0.628912", "0.6115855", "0.6050382", "0.59967226", "0.5864765", "0.5844554", "0.5840075", "0.58302987", "0.57919025", "0.5785644", "0.5785644", "0.5737686", "0.5725939", "0.5681736", "0.56223315", "0.55904186", "0.55904186", "0.5578872", "0.55727684", "0.5564916", "0.55570775", "0.5554619", "0.5551163", "0.5543386", "0.5541125", "0.5540477", "0.5537553", "0.55367684", "0.5527028", "0.5526275", "0.5521694", "0.55188", "0.5508203", "0.55034864", "0.5494146", "0.54928595", "0.54926157", "0.5486128", "0.54813004", "0.5477415", "0.54760224", "0.54729456", "0.54680073", "0.5455183", "0.54456604", "0.54325724", "0.5427335", "0.5419798", "0.5419323", "0.54142517", "0.54130477", "0.54053247", "0.5394325", "0.53914404", "0.53836673", "0.53797704", "0.5376254", "0.5373734", "0.5361247", "0.53550696", "0.5350443", "0.5349884", "0.53498155", "0.53417647", "0.53397703", "0.5335549", "0.5330023", "0.53232056", "0.5321334", "0.5316392", "0.5314057", "0.53124386", "0.53116506", "0.5304302", "0.5302331", "0.5301884", "0.52894056", "0.5287646", "0.52858055", "0.528379", "0.52817017", "0.52801716", "0.52796847", "0.5269577", "0.52674407", "0.5265561", "0.5264045", "0.52638644", "0.5262928", "0.5259414", "0.52585477", "0.52574915", "0.5255022", "0.5254306", "0.5252196", "0.52508765", "0.52498615", "0.52391505", "0.5231422", "0.52313215" ]
0.583034
7
This method was generated by MyBatis Generator. This method sets the value of the database column expediente_consulta.peso
public void setPeso(String peso) { this.peso = peso; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPeso(int peso) {\r\n this.peso = peso;\r\n }", "public void setPeso(int peso) {\r\n\t\tif(peso < 0){\r\n\t\t\tSystem.out.println(\"Error peso\");\r\n\t\t}else{\r\n\t\tthis.peso = peso;\r\n\t\t}\r\n\t}", "public void setPeso(double peso) {\r\n\t\tthis.peso = peso;\r\n\t}", "public void setPeso(String peso) {\r\n\t\tthis.peso = Float.parseFloat(peso.replace(\",\",\".\"));\r\n\t}", "public void SalvarNovaPessoa(){\r\n \r\n\t\tpessoaModel.setUsuarioModel(this.usuarioController.GetUsuarioSession());\r\n \r\n\t\t//INFORMANDO QUE O CADASTRO FOI VIA INPUT\r\n\t\tpessoaModel.setOrigemCadastro(\"I\");\r\n \r\n\t\tpessoaRepository.SalvarNovoRegistro(this.pessoaModel);\r\n \r\n\t\tthis.pessoaModel = null;\r\n \r\n\t\tUteis.MensagemInfo(\"Registro cadastrado com sucesso\");\r\n \r\n\t}", "public void ModificarPrestamo(PrestamoFila pf) {\n this.conexion.ConectarBD();\n String consulta = \"update prestamos set IdSocio = ?, IdLibro = ?, FechaInicio = ?, FechaFin = ? where IdPrestamo = ?\";\n try {\n this.pstm = this.conexion.getConexion().prepareStatement(consulta);\n //Indicamos los parametros del update\n this.pstm.setInt(1, pf.getIdSocio());\n this.pstm.setInt(2, pf.getIdLibro());\n this.pstm.setDate(3, new java.sql.Date(pf.getFechaInicio().getTime()));\n this.pstm.setDate(4, new java.sql.Date(pf.getFechaFin().getTime()));\n this.pstm.setInt(5, pf.getIdPrestamo());\n //Ejecutamos la consulta\n int res = pstm.executeUpdate();\n } catch (SQLException e) { \n throw new MisException(\"Error al modificar un Prestamo.\\n\"+e.toString());\n \n } catch (Exception e) {\n throw new MisException(\"Error.\\n\"+e.toString());\n \n }\n \n //Desconectamos de la BD\n this.conexion.DesconectarBD(); \n }", "public void setEmpresa(Empresa empresa)\r\n/* 89: */ {\r\n/* 90:141 */ this.empresa = empresa;\r\n/* 91: */ }", "public void setProdotto(String prodotto) {\r\n\t\tthis.prodotto = prodotto;\r\n\t}", "public void setConsulta(final E consulta) {\n\n\t\tthis.consulta = consulta;\n\t}", "public void setComentariosSoporte(String comentariosSoporte) {\n this.comentariosSoporte = comentariosSoporte;\n }", "public void setEmpresa(Empresa empresa) {\n\t\tproducto.setEmpresa(empresa);\n\t}", "public void setPuntoEmision(String puntoEmision)\r\n/* 129: */ {\r\n/* 130:217 */ this.puntoEmision = puntoEmision;\r\n/* 131: */ }", "public void engordar(double peso){\r\n\t\tthis.peso = this.peso + peso;\r\n\t}", "public void UltimoRegistro(PDetalle pdetalle) throws Exception {\n String sql = \"SELECT \\n\"\n + \"\tCODPRES,\\n\"\n + \"\tCANTFAL,\\n\"\n + \"\tFSALPRES \\n\"\n + \"FROM PRESTAMO\\n\"\n + \"\tWHERE CODPRES = (SELECT MAX(CODPRES) FROM PRESTAMO)\";\n try {\n Statement st = this.conectar().createStatement();\n ResultSet rs = st.executeQuery(sql);\n while (rs.next()) {\n pdetalle.setCODPRESD(rs.getInt(\"CODPRES\"));\n pdetalle.setCANTDET(rs.getString(\"CANTFAL\"));\n pdetalle.setFECHENT(rs.getString(\"FSALPRES\"));\n }\n rs.close();\n st.close();\n } catch (Exception e) {\n System.out.println(\"Error al traer código de prestamo\");\n }\n\n }", "public void setPrecioc(int p){\n this.precioc=p;\n \n }", "public void setProprietaire(SystemeAmendesInt.Personne proprietaire) {\n this.proprietaire = proprietaire;\n }", "@Override\r\n public ExpedienteGSMDTO editarExpedienteOrdenServicio(ExpedienteGSMDTO expedienteDTO, String codigoTipoSupervisor, PersonalDTO personalDest, UsuarioDTO usuarioDTO) throws ExpedienteException {\r\n LOG.error(\"editarExpediente\");\r\n ExpedienteGSMDTO retorno= new ExpedienteGSMDTO();\r\n try {\r\n PghExpediente registro = crud.find(expedienteDTO.getIdExpediente(), PghExpediente.class);\r\n registro.setIdFlujoSiged(new PghFlujoSiged(expedienteDTO.getFlujoSiged().getIdFlujoSiged()));\r\n registro.setIdProceso(new PghProceso(expedienteDTO.getProceso().getIdProceso()));\r\n registro.setIdObligacionTipo(new PghObligacionTipo(expedienteDTO.getObligacionTipo().getIdObligacionTipo()));\r\n registro.setAsuntoSiged(expedienteDTO.getAsuntoSiged());\r\n registro.setIdUnidadSupervisada(new MdiUnidadSupervisada(expedienteDTO.getUnidadSupervisada().getIdUnidadSupervisada()));\r\n registro.setIdEmpresaSupervisada(new MdiEmpresaSupervisada(expedienteDTO.getEmpresaSupervisada().getIdEmpresaSupervisada()));\r\n registro.setDatosAuditoria(usuarioDTO);\r\n if(expedienteDTO.getObligacionSubTipo()!=null && expedienteDTO.getObligacionSubTipo().getIdObligacionSubTipo()!=null){\r\n registro.setIdObligacionSubTipo(new PghObligacionSubTipo(expedienteDTO.getObligacionSubTipo().getIdObligacionSubTipo()));\r\n }else{\r\n registro.setIdObligacionSubTipo(null);\r\n }\r\n crud.update(registro);\r\n retorno = ExpedienteGSMBuilder.toExpedienteDto(registro); \r\n \r\n Long idLocador=codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_NATURAL)?expedienteDTO.getOrdenServicio().getLocador().getIdLocador():null;\r\n Long idSupervisoraEmpresa=codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_JURIDICA)?expedienteDTO.getOrdenServicio().getSupervisoraEmpresa().getIdSupervisoraEmpresa():null;\r\n \r\n String flagConfirmaTipoAsignacion=(!StringUtil.isEmpty(expedienteDTO.getFlagEvaluaTipoAsignacion())?Constantes.ESTADO_ACTIVO:null);\r\n OrdenServicioDTO OrdenServicioDTO=ordenServicioDAO.editarExpedienteOrdenServicio(expedienteDTO.getOrdenServicio().getIdOrdenServicio(), expedienteDTO.getOrdenServicio().getIdTipoAsignacion(), codigoTipoSupervisor, idLocador, idSupervisoraEmpresa, usuarioDTO,flagConfirmaTipoAsignacion);\r\n \r\n EstadoProcesoDTO estadoProcesoDto=estadoProcesoDAO.find(new EstadoProcesoFilter(Constantes.IDENTIFICADOR_ESTADO_PROCESO_OS_REGISTRO)).get(0);\r\n MaestroColumnaDTO tipoHistoricoOS=maestroColumnaDAO.findMaestroColumna(Constantes.DOMINIO_TIPO_COMPONENTE, Constantes.APLICACION_INPS, Constantes.CODIGO_TIPO_COMPONENTE_ORDEN_SERVICIO).get(0);\r\n HistoricoEstadoDTO historicoEstadoOS=historicoEstadoDAO.registrar(null, OrdenServicioDTO.getIdOrdenServicio(), estadoProcesoDto.getIdEstadoProceso(), expedienteDTO.getPersonal().getIdPersonal(), personalDest.getIdPersonal(), tipoHistoricoOS.getIdMaestroColumna(),null,null, null, usuarioDTO); \r\n LOG.info(\"historicoEstadoOS:\"+historicoEstadoOS);\r\n \r\n retorno.setOrdenServicio(new OrdenServicioDTO(OrdenServicioDTO.getIdOrdenServicio(),OrdenServicioDTO.getNumeroOrdenServicio()));\r\n \r\n }catch(Exception e){\r\n LOG.error(\"error en editarExpediente\",e);\r\n throw new ExpedienteException(e.getMessage(), e);\r\n }\r\n return retorno;\r\n }", "public void setIdempresa(String idempresa) {\n\t\tthis.idempresa = idempresa;\n\t}", "public void setIdempresa(String idempresa) {\n\t\tthis.idempresa = idempresa;\n\t}", "public void setIdempresa(String idempresa) {\n\t\tthis.idempresa = idempresa;\n\t}", "public java.sql.ResultSet consultaporespecialidadfecha(String CodigoEspecialidad,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pes.codigo=\"+CodigoEspecialidad+\" and phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporespecialidadfecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public void setCodigoPosse(String codigoPosse) {\n this.codigoPosse = codigoPosse;\n }", "@Column(name = \"C_PUESTO\")\n public String getPuesto() {\n return puesto;\n }", "private void pesquisar_cliente() {\n String sql = \"select id, empresa, cnpj, endereco, telefone, email from empresa where empresa like ?\";\n try {\n pst = conexao.prepareStatement(sql);\n //passando o conteudo para a caixa de pesquisa para o ?\n // atenção ao ? q é a continuacao da string SQL\n pst.setString(1, txtEmpPesquisar.getText() + \"%\");\n rs = pst.executeQuery();\n // a linha abaixo usa a biblioteca rs2xml.jar p preencher a TABELA\n tblEmpresas.setModel(DbUtils.resultSetToTableModel(rs));\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e);\n }\n }", "public void setTipo(TipoEmpresa tipo) {\r\n this.tipo = tipo;\r\n }", "public void peleaEn(int idPeleador,int idEmpresa){\n\t\t\n\t}", "public Pessoa getPessoa() {\r\n\t\treturn pessoa;\r\n\t}", "public void setFechaExpedicion(String p) { this.fechaExpedicion = p; }", "public OrdemServicoProgramacao pesquisarOSProgramacaoAtivaComDataRoteiroIdEquipe(Integer numeroOS, Date dataRoteiro, Integer idEquipe)\n\t\t\t\t\tthrows ErroRepositorioException{\n\n\t\tOrdemServicoProgramacao retorno = null;\n\n\t\tSession session = HibernateUtil.getSession();\n\t\tString consulta = \"\";\n\n\t\ttry{\n\n\t\t\tconsulta = \"SELECT osProgramacao \" + \"FROM OrdemServicoProgramacao osProgramacao \"\n\t\t\t\t\t\t\t+ \"INNER JOIN osProgramacao.ordemServico os \" + \"INNER JOIN osProgramacao.equipe equipe \"\n\t\t\t\t\t\t\t+ \"INNER JOIN osProgramacao.programacaoRoteiro progRoteiro \" + \"WHERE os.id = :numeroOS \"\n\t\t\t\t\t\t\t+ \"AND equipe.id = :idEquipe \" + \"AND osProgramacao.indicadorAtivo = :indAtivo \"\n\t\t\t\t\t\t\t+ \"AND progRoteiro.dataRoteiro = :dataProgramacaoRoteiro\";\n\n\t\t\tretorno = (OrdemServicoProgramacao) session.createQuery(consulta).setInteger(\"numeroOS\", numeroOS)\n\t\t\t\t\t\t\t.setInteger(\"idEquipe\", idEquipe).setShort(\"indAtivo\", OrdemServicoProgramacao.INDICADOR_ATIVO)\n\t\t\t\t\t\t\t.setTimestamp(\"dataProgramacaoRoteiro\", dataRoteiro)\n\n\t\t\t\t\t\t\t.setMaxResults(1).uniqueResult();\n\n\t\t}catch(HibernateException e){\n\t\t\tthrow new ErroRepositorioException(e, \"Erro no Hibernate\");\n\t\t}finally{\n\t\t\tHibernateUtil.closeSession(session);\n\t\t}\n\n\t\treturn retorno;\n\t}", "public void setEspecialidad (EspecialidadEntity pEspecialidad)\r\n {\r\n this.especialidad = pEspecialidad;\r\n }", "public void adicionar(Pessoa pessoa){\n adicionar(raiz, pessoa);\n }", "public void setIdacesso(int pIdacesso){\n this.idacesso = pIdacesso;\n }", "public java.sql.ResultSet consultaporespecialidad(String CodigoEspecialidad){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pes.codigo=\"+CodigoEspecialidad+\" and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporespecialidad \"+ex);\r\n }\t\r\n return rs;\r\n }", "public void pridejNovePivo ()\n\t{\n\t\n\t\tpivo = pivo + PRODUKCE;\n\t\t\n\t}", "public void setSecuenciaExpediente(BigDecimal secuenciaExpediente) {\r\n this.secuenciaExpediente = secuenciaExpediente;\r\n }", "public void setPuesto(String puesto) {\n this.puesto = puesto;\n }", "public void setIDEMPRESA(Integer idempresa) {\n\t\tthis.IDEMPRESA = idempresa;\n\t}", "public void setCodigoEmpresa(String codigoEmpresa) {\n this.codigoEmpresa = codigoEmpresa;\n }", "public void setApellidos(String p) { this.apellidos = p; }", "public void setEdificio (String pEdificio)\r\n {\r\n this.edificio = pEdificio;\r\n }", "public Produto salvarProduto(Produto Produto) {\n\t\treturn null;\n\t}", "public void addPeso (int peso) {\n setPesoActual(getPesoActual() + peso);\n }", "public void setCodigoImputacion(String p) { this.codigoImputacion = p; }", "public String salvar(PessoaFisica pessoafisica) {\n\t\t\r\n\t\treturn \"Salvo\";\r\n\t}", "public void modificar() {\n try {\n if(!fecha.equals(null)){\n Dr_siseg_usuarioBean usuario = new Dr_siseg_usuarioBean();\n FacesContext facesContext = FacesContext.getCurrentInstance();\n usuario = (Dr_siseg_usuarioBean) facesContext.getExternalContext().getSessionMap().get(\"usuario\");\n \n calendar.setTime((Date) this.fecha);\n this.Selected.setApel_fecha_sesion(calendar.getTime());\n\n ApelacionesDao apelacionesDao = new ApelacionesDao();\n apelacionesDao.IME_APELACIONES(2, Selected); \n\n BitacoraSolicitudDao bitacoraSolicitudDao = new BitacoraSolicitudDao();//INSERTA EL MOVIMIENTO EN LA BITACORA\n BitacoraSolicitudBean bitacoraSolicitudBean = new BitacoraSolicitudBean();\n bitacoraSolicitudBean.setBit_sol_id(this.Selected.getApel_sol_numero());\n bitacoraSolicitudBean.setUsuarioBean(usuario);\n bitacoraSolicitudBean.setBit_tipo_movimiento(\"1\");\n bitacoraSolicitudBean.setBit_detalle(\"Fue modificada la apelacion\");\n bitacoraSolicitudDao.dmlDr_regt_bitacora_solicitud(bitacoraSolicitudBean);\n\n this.Listar();\n this.Selected = new ApelacionesBean();\n addMessage(\"Guadado Exitosamente\", 1);\n }else\n {\n addMessage(\"Es requerida la fecha\",1 );\n }\n } catch (ExceptionConnection ex) {\n Logger.getLogger(ApelacionController.class.getName()).log(Level.SEVERE, null, ex);\n addMessage(\"Se produjo un error al insertar el registro, contacte al administrador del sistema\", 1);\n }\n }", "public void setPesoA(int pesoA) \r\n\t\t{\r\n\t\t\tPesoA = pesoA;\r\n\t\t}", "public void setOfferta(Promozione offerta) {\n\t\tthis.offerta = offerta;\n\t}", "public String salirEdPerfil() {\n\t\tofer_id = null;\n\t\tofer_valor_oferta = null;\n\t\tofer_fecha_oferta = null;\n\t\titem = null;\n\t\tpostulante = null;\n\t\titem_nombre = \"\";\n\t\titem_caracteristicas = \"\";\n\t\titem_imagen = \"\";\n\t\tpos_nombre = \"\";\n\t\tpos_apellido = \"\";\n\t\tpos_direccion = \"\";\n\t\tpos_correo = \"\";\n\t\tpos_telefono = \"\";\n\t\tpos_password = \"\";\n\t\tpos_celular = \"\";\n\t\tpos_institucion = \"\";\n\t\tpos_gerencia = \"\";\n\t\tpos_area = \"\";\n\t\tgetListaItems().clear();\n\t\tgetListaItems().addAll(managergest.findAllItems());\n\t\treturn \"home?faces-redirect=true\";\n\t}", "public void setTipoReporte(TIPO_REPORTE tipoReporte)\r\n/* 273: */ {\r\n/* 274:298 */ this.tipoReporte = tipoReporte;\r\n/* 275: */ }", "public void modificarEstadoCuota2(CuotaObject cuota) throws SQLException, ParseException \r\n {\r\n PreparedStatement prepStmt = null;\r\n\r\n String insertStatement = \"UPDATE FINANCIADO_PAGOS SET ESTADO=?,FECHA=? where IDRUBRO=?\";\r\n \r\n prepStmt = con.prepareStatement(insertStatement);\r\n \r\n prepStmt.setString(1, cuota.getEstado());\r\n \r\n \r\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n Date date1 = formatter.parse(cuota.getFecha());\r\n java.sql.Date datetmp = new java.sql.Date(date1.getTime());\r\n \r\n prepStmt.setDate(2, datetmp);\r\n \r\n \r\n prepStmt.setString(3, cuota.getIdrubro());\r\n \r\n prepStmt.executeUpdate();\r\n if (prepStmt != null) {\r\n prepStmt.close();\r\n }\r\n }", "public void setReporte(String periodo){\n\n\t\treporte.setText(periodo);\n\n\t}", "public int obtenerDatosPersonaEspecifico(int idCliente) {\n\n\t\ttry {\n\n\t\t\tlog.info(\"Procediendo a obtener salidas especificas para la persona\");\n\t\t\tStoredProcedureQuery storedProcedureQuery = entityManager\n\t\t\t\t\t\n\t\t\t\t\t// Definicion\n\t\t\t\t\t.createStoredProcedureQuery(prop.getPROCEDURE_OBTENER_DATOS_UNICOS())\n\n\t\t\t\t\t// Entradas\n\t\t\t\t\t.registerStoredProcedureParameter(1, Integer.class, ParameterMode.IN)\n\n\t\t\t\t\t// Salidas\n\t\t\t\t\t.registerStoredProcedureParameter(2, String.class, ParameterMode.OUT)\n\t\t\t\t\t.registerStoredProcedureParameter(3, String.class, ParameterMode.OUT)\n\n\t\t\t\t\t// Parametros\n\t\t\t\t\t.setParameter(1, idCliente);\n\n\t\t\tlog.info(\"Ejecutando Procedimiento...\");\n\t\t\tstoredProcedureQuery.execute();\n\t\t\tlog.info(\"Procedimiento ejecutado\");\n\n\t\t\t// Obtener los datos de salida\n\t\t\tString nombre = (String) storedProcedureQuery.getOutputParameterValue(2);\n\t\t\tString direccion = (String) storedProcedureQuery.getOutputParameterValue(3);\n\n\t\t\tlog.info(\"SALIDA: Nombre = \" + nombre + \" , Direccion = \" + direccion);\n\t\t\treturn 1;\n\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"Error al consultar procedure [\" + prop.getPROCEDURE_OBTENER_PERSONA_ID() + \"] , Detalle > \" + e.getMessage());\n\t\t}\n\t\t\n\t\treturn 0;\n\n\t}", "public void setPtoNo(String aPtoNo) {\n ptoNo = aPtoNo;\n }", "public void carregarRegistroDoPrimeiroAno() {\n\t\tlimpar();\n\t\t\n\t\tlistaAlunos = repository.encontrarComQueryNomeada(AlunosMilitaresOMDS.class, \"alunosMilitaresOMDS.listarPorOMEPeriodo\",\n\t\t\t\tnew Object[]{\"periodo\", periodo},\n\t\t\t\tnew Object[]{\"organizacao\", subordinado},\n\t\t\t\tnew Object[]{\"ano\", Ano.PRIMEIRO});\n\t\t\n\t\tif (listaAlunos.size() > 0) {\n\t\t\tlistaAlunos.forEach(efetivo ->{\n\t\t\t\tif (efetivo.getTipoAlunosMilitaresOMDS().equals(TipoAlunosMilitaresOMDS.OFICIAL))\n\t\t\t\t\tsetAlunosMilitarOficial(listaAlunos.get(0));\n\t\t\t\tif(efetivo.getTipoAlunosMilitaresOMDS().equals(TipoAlunosMilitaresOMDS.PRACA))\n\t\t\t\t\tsetAlunosMilitarPraca(listaAlunos.get(0));;\n\t\t\t});\n\t\t\thabilitaBotao=false;\n\t\t}\n\t\torganizarValores();\n\t}", "public void setUsuarioInsercion(String p) { this.usuarioInsercion = p; }", "public void setUsuarioInsercion(String p) { this.usuarioInsercion = p; }", "public void setEgresosPorCompras(int egresosPorCompras){\n this.egresosPorCompras = egresosPorCompras;\n }", "public static void editar(Pessoa p) throws Exception\n {\n PreparedStatement stmt = Banco.query(\"UPDATE pessoa SET nome = ?, telefone = ?, email = ? WHERE id = ?\");\n\n stmt.setString(1, p.getNome());\n stmt.setString(2, p.getTelefone());\n stmt.setString(3, p.getEmail());\n stmt.setInt(4, p.getId());\n Banco.executar(stmt);\n }", "public void insere(Pessoa pessoa){\n\t\tdb.save(pessoa);\n\t}", "public void setSecuenciaPregunta(int secuenciaPregunta) {\n this.secuenciaPregunta = secuenciaPregunta;\n }", "public void setProyecto(java.lang.String proyecto) {\n this.proyecto = proyecto;\n }", "public void setProyecto(java.lang.String proyecto) {\n this.proyecto = proyecto;\n }", "public void setUsuarioModificacion(String p) { this.usuarioModificacion = p; }", "public void setUsuarioModificacion(String p) { this.usuarioModificacion = p; }", "public BemPessoaDAOImpl() {\n\t\tsuper(\"PESQUISAR_BEM_PESSOA\");\n\t}", "public void asignarEco(EcoPelvico eco) {\n this.ecoPelvico = eco;\n this.tipoEco = eco.tipo();\n }", "public void introducirPagosALojamientoClienteFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo,String dpiCliente){\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);// pago de alojamiento en rango fchas\n try {\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Fecha_Entrada>=? AND RESERVACION.Fecha_Entrada<=? AND RESERVACION.Dpi_Cliente=? AND RESERVACION.Check_In=1;\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);// pago de alojamiento en rango fchas\n declaracion.setString(3, dpiCliente);\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[6];\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getDate(3);// pago de alojamiento en rango fchas\n objeto[3] = resultado.getDate(4);\n objeto[4] = resultado.getInt(5);\n String fechaInicialProbar=objeto[2].toString();\n String fechaFinalProbar=objeto[3].toString();// pago de alojamiento en rango fchas\n String precioProbar = objeto[4].toString();\n int total=habitacion.hacerTotalAlojamiento(fechaInicialProbar, fechaFinalProbar, precioProbar);\n objeto[5]= total;\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "void setSolicitarServicio(com.soa.SolicitarServicioDocument.SolicitarServicio solicitarServicio);", "public void setProprietaire(Joueur proprietaire) {\n\t\tthis.proprietaire = proprietaire;\n\t}", "public void setFechaconsulta(Date fechaconsulta) {\r\n this.fechaconsulta = fechaconsulta;\r\n }", "public void pesquisaAlgo(String valor) throws Exception {\r\n\t\tclickGenerico(mapsMenu.inputPesquisa2, \"Campo de Pesquisar\");\r\n\t\tAccessFieldsUsingReflection(mapsMenu.inputPesquisa2);\r\n\r\n\t\tsendKeysGenerico(mapsMenu.inputPesquisa2, valor, \"Campo pesquisar\");\r\n\t\tclickGenerico(mapsMenu.btnPesquisa2, \"Botão pesquisar\");\r\n\t}", "public static int BuscarPorcentajeConvenio(int pac, int idempresa, int idservicio, Session sesion) {\n String hql;\n int porc = 0;\n try{ \n //sesion = NewHibernateUtil.getSessionFactory().openSession();\n //tr = sesion.beginTransaction();\n hql = \"SELECT porcentaje FROM Convenio WHERE estado = 'Activo' AND paciente = \"+pac+\" AND empresa = \"+idempresa+\" AND servicio = \"+idservicio;\n Query query = sesion.createQuery(hql); \n Iterator it = query.iterate();\n if(it.hasNext()){\n porc = (int)it.next();\n }\n }catch(HibernateException ex){\n JOptionPane.showMessageDialog(null, \"Error al conectarse con Base de Datos\", \"Convenio Controlador\", JOptionPane.INFORMATION_MESSAGE);\n }\n return porc;\n }", "public KlijentPovezanaOsobaRs procitajSvePovezaneOsobePOVIJEST(KlijentPovezanaOsobaVo value) {\r\n return null;\r\n }", "public String getPeso() {\r\n return peso;\r\n }", "public long getIdPessoa() {\n\t\treturn idPessoa;\n\t}", "public CensoSeccionE() {\n this.columnName1=\"\";\n this.columnName2=\"\";\n this.Total_institu=0;\n this.Total_severo=0;\n }", "@Override\n protected void carregaObjeto() throws ViolacaoRegraNegocioException {\n entidade.setNome( txtNome.getText() );\n entidade.setDescricao(txtDescricao.getText());\n entidade.setTipo( txtTipo.getText() );\n entidade.setValorCusto(new BigDecimal((String) txtCusto.getValue()));\n entidade.setValorVenda(new BigDecimal((String) txtVenda.getValue()));\n \n \n }", "public registrarConsumo() throws DAOException {\n initComponents();\n SimpleDateFormat formato = new SimpleDateFormat(\"yyyy-MM-dd\");\n String fechaformateada = formato.format(new Date());\n anio = Integer.parseInt(fechaformateada.substring(0, 4));\n mes = Integer.parseInt(fechaformateada.substring(5, 7));\n conn = conecionBD.conexion();\n CoutaDAO couta= new CoutaDAOImpl(conn);\n Couta couata= couta.buscarCuota();\n precio=couata.getPRECIO();\n \n if(mes == 12 || mes == 1){\n p = 1;\n comboPeriodo.setSelectedIndex(0);\n }else if(mes == 2 || mes == 3){\n p = 2;\n comboPeriodo.setSelectedIndex(1);\n }else if(mes == 4 || mes == 5){\n p = 3;\n comboPeriodo.setSelectedIndex(2);\n }else if(mes == 6 || mes == 7){\n p = 4;\n comboPeriodo.setSelectedIndex(3);\n }else if(mes == 8 || mes == 9){\n p = 5;\n comboPeriodo.setSelectedIndex(4); \n }else if(mes == 10 || mes == 11){\n p = 6;\n comboPeriodo.setSelectedIndex(5); \n }\n periodo = p;\n }", "public List<Reporte> getReportSunat001( Integer fecDesde, \n Integer fecHasta,\n Integer idPersEmpresa) throws Exception{\n \n List<Reporte> list = new ArrayList<>();\n\n StoredProcedure Sp = null;\n ResultSet rsConsulta = null;\n\n try{\n \n session = HibernateUtil.getSessionFactory().openSession();\n \n log.debug(\"=============== getReportSunat001 ==================\");\n log.debug(\"fecDesde:\" + fecDesde);\n log.debug(\"fecHasta:\" + fecHasta);\n \n Sp = new StoredProcedure(\"PKG_SICREPORTES.PRC_SICRPTSUNAT001\");\n Sp.addParameter(new InParameter(\"X_FEC_DESDE\", Types.INTEGER, fecDesde));\n Sp.addParameter(new InParameter(\"X_FEC_HASTA\", Types.INTEGER, fecHasta));\n Sp.addParameter(new InParameter(\"X_ID_PERSEMPRESA\", Types.INTEGER, idPersEmpresa));\n Sp.addParameter(new OutParameter(\"X_CURSOR\", OracleTypes.CURSOR));\n \n Sp.addParameter(new OutParameter(\"X_ID_ERROR\", Types.INTEGER));\n Sp.addParameter(new OutParameter(\"X_DES_ERROR\", Types.VARCHAR));\n \n rsConsulta = Sp.ExecuteResultCursor(((SessionImpl)session).connection(),4);\n \n \n Reporte objReport;\n while(rsConsulta.next()){\n \n Sic1pers pers = new Sic1pers();\n pers.setCodTipoiden(rsConsulta.getString(\"COD_TIPOIDEN\"));\n pers.setCodIden(rsConsulta.getString(\"NUM_DOCUIDEN\"));\n pers.setDesPers(rsConsulta.getString(\"DES_NOMBPROVEEDOR\"));\n \n Sic1stipodocu sic1stipodocu = new Sic1stipodocu();\n sic1stipodocu.setCodStipodocu(rsConsulta.getString(\"COD_STIPODOCU\"));\n \n Sic1docu docu = new Sic1docu(); \n docu.setIdDocu(rsConsulta.getBigDecimal(\"ID_DOCU\"));\n docu.setFecCreacion(rsConsulta.getTimestamp(\"FEC_CREACION\"));\n docu.setFecDesde(rsConsulta.getDate(\"FEC_OPERACION\")); \n docu.setCodSerie(rsConsulta.getString(\"COD_SERIE\"));\n docu.setNumDocu(rsConsulta.getBigDecimal(\"NUM_DOCU\"));\n docu.setNumSubtotal(rsConsulta.getBigDecimal(\"MTO_SUBTOTAL\"));\n docu.setNumIgv(rsConsulta.getBigDecimal(\"MTO_IGV\"));\n docu.setNumMtoTotal(rsConsulta.getBigDecimal(\"MTO_TOTAL\"));\n docu.setSic1persexterno(pers);\n docu.setSic1stipodocu(sic1stipodocu);\n \n Sic3docuprod detOperacion = new Sic3docuprod();\n detOperacion.setSic1docu(docu);\n \n //FIN\n objReport = new Reporte(); \n objReport.setDetOperacion(detOperacion);\n \n list.add(objReport);\n \n }\n \n } catch (SQLException | HibernateException e){\n throw new Exception(e.getMessage()); \n } finally{\n \n if(rsConsulta != null)\n rsConsulta.close();\n \n if(session != null)\n session.close();\n \n }\n \n return list; \n }", "public List<Reporte> getReportSunat002( Integer fecDesde, \n Integer fecHasta, \n Integer idPersEmpresa) throws Exception{\n \n List<Reporte> list = new ArrayList<>();\n\n StoredProcedure Sp = null;\n ResultSet rsConsulta = null;\n\n try{\n \n session = HibernateUtil.getSessionFactory().openSession();\n \n log.debug(\"=============== getReportSunat002 ==================\");\n log.debug(\"fecDesde:\" + fecDesde);\n log.debug(\"fecHasta:\" + fecHasta);\n \n Sp = new StoredProcedure(\"PKG_SICREPORTES.PRC_SICRPTSUNAT002\");\n Sp.addParameter(new InParameter(\"X_FEC_DESDE\", Types.INTEGER, fecDesde));\n Sp.addParameter(new InParameter(\"X_FEC_HASTA\", Types.INTEGER, fecHasta));\n Sp.addParameter(new InParameter(\"X_ID_PERSEMPRESA\", Types.INTEGER, idPersEmpresa));\n Sp.addParameter(new OutParameter(\"X_CURSOR\", OracleTypes.CURSOR));\n \n Sp.addParameter(new OutParameter(\"X_ID_ERROR\", Types.INTEGER));\n Sp.addParameter(new OutParameter(\"X_DES_ERROR\", Types.VARCHAR));\n \n rsConsulta = Sp.ExecuteResultCursor(((SessionImpl)session).connection(),4);\n \n \n Reporte objReport;\n while(rsConsulta.next()){\n \n Sic1pers pers = new Sic1pers();\n pers.setCodTipoiden(rsConsulta.getString(\"COD_TIPOIDEN\"));\n pers.setCodIden(rsConsulta.getString(\"NUM_DOCUIDEN\"));\n pers.setDesPers(rsConsulta.getString(\"DES_NOMBPROVEEDOR\"));\n \n Sic1stipodocu sic1stipodocu = new Sic1stipodocu();\n sic1stipodocu.setCodStipodocu(rsConsulta.getString(\"COD_STIPODOCU\"));\n \n Sic1docu docu = new Sic1docu(); \n docu.setIdDocu(rsConsulta.getBigDecimal(\"ID_DOCU\"));\n docu.setFecCreacion(rsConsulta.getTimestamp(\"FEC_CREACION\"));\n docu.setFecDesde(rsConsulta.getDate(\"FEC_OPERACION\")); \n docu.setCodSerie(rsConsulta.getString(\"COD_SERIE\"));\n docu.setNumDocu(rsConsulta.getBigDecimal(\"NUM_DOCU\"));\n docu.setNumSubtotal(rsConsulta.getBigDecimal(\"MTO_SUBTOTAL\"));\n docu.setNumIgv(rsConsulta.getBigDecimal(\"MTO_IGV\"));\n docu.setNumMtoTotal(rsConsulta.getBigDecimal(\"MTO_TOTAL\"));\n docu.setSic1persexterno(pers);\n docu.setSic1stipodocu(sic1stipodocu);\n \n Sic3docuprod detOperacion = new Sic3docuprod();\n detOperacion.setSic1docu(docu);\n \n //FIN\n objReport = new Reporte();\n objReport.setDetOperacion(detOperacion);\n \n list.add(objReport);\n \n }\n \n } catch (SQLException | HibernateException e){\n throw new Exception(e.getMessage()); \n } finally{\n if(rsConsulta != null)\n rsConsulta.close();\n \n if(session != null)\n session.close();\n \n }\n \n return list; \n }", "public abstract void setEstado_ps_peticion(\n\t\tco\n\t\t\t.com\n\t\t\t.telefonica\n\t\t\t.atiempo\n\t\t\t.ejb\n\t\t\t.eb\n\t\t\t.Estado_ps_peticionLocal anEstado_ps_peticion);", "public void setEstadoPersona(String p) { this.estadoPersona = p; }", "public void setTipoDeDatos(String tipoDeDatos) {\n if (!this.tiposDeDatoEnLaBD.contains(tipoDeDatos)) {\n try {\n throw new ExcepcionPersonalizada(\n \"El tipo de datos '\"+tipoDeDatos+\"' no existe. \\n\"\n + \"Si es un error por favor corrige la clase ParametrosDeCampo\",\n this,\n \"setTipoDeDatos\");\n } catch (ExcepcionPersonalizada ex) {\n Logger.getLogger(ParametrosDeCampo.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n \n this.tipoDeDatos = tipoDeDatos;\n }", "public String salvar(PessoaJuridica pessoaJuridica) {\n\t\t\r\n\t\treturn \"Salvo\";\r\n\t}", "public void setModeloPrecios(ModeloTablaPrecioAcciones modeloPrecios) {\n\t\tthis.modeloPrecios = modeloPrecios;\n\t}", "public void setNombreCodigoImputacion(String p) { this.nombreCodigoImputacion = p; }", "protected void exibirPacientes(){\n System.out.println(\"--- PACIENTES CADASTRADOS ----\");\r\n String comando = \"select * from paciente order by id\";\r\n ResultSet rs = cb.buscaDados(comando);\r\n try{\r\n while(rs.next()){\r\n int id = rs.getInt(\"id\");\r\n String nome = rs.getString(\"nomepaciente\");\r\n System.out.println(\"[\"+id+\"] \"+nome);\r\n }\r\n }\r\n catch (Exception e){\r\n e.printStackTrace();\r\n }\r\n }", "public int getCodPessoa() {\r\n\t\treturn this.codPessoa;\r\n\t}", "public void setPeti_numero(java.lang.Long newPeti_numero);", "public void setPeti_numero(java.lang.Long newPeti_numero);", "@Override\n\tpublic Produto pesquisar(Produto entidade) {\n\t\treturn null;\n\t}", "public void setPrecio(int precio) {\n\t\tthis.producto.setPrecio(precio);\n\t}", "private void cargaInfoEmpleado(){\r\n Connection conn = null;\r\n Conexion conex = null;\r\n try{\r\n if(!Config.estaCargada){\r\n Config.cargaConfig();\r\n }\r\n conex = new Conexion();\r\n conex.creaConexion(Config.host, Config.user, Config.pass, Config.port, Config.name, Config.driv, Config.surl);\r\n conn = conex.getConexion();\r\n if(conn != null){\r\n ArrayList<Object> paramsIn = new ArrayList();\r\n paramsIn.add(txtLogin);\r\n QryRespDTO resp = new Consulta().ejecutaSelectSP(conn, IQryUsuarios.NOM_FN_OBTIENE_INFO_USUARIOWEB, paramsIn);\r\n System.out.println(\"resp: \" + resp.getRes() + \"-\" + resp.getMsg());\r\n if(resp.getRes() == 1){\r\n ArrayList<ColumnaDTO> listaColumnas = resp.getColumnas();\r\n for(HashMap<String, CampoDTO> fila : resp.getDatosTabla()){\r\n usuario = new UsuarioDTO();\r\n \r\n for(ColumnaDTO col: listaColumnas){\r\n switch(col.getIdTipo()){\r\n case java.sql.Types.INTEGER:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Integer.parseInt(fila.get(col.getEtiqueta()).getValor().toString().replaceAll(\",\", \"\").replaceAll(\"$\", \"\").replaceAll(\" \", \"\")));\r\n break;\r\n \r\n case java.sql.Types.DOUBLE:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Double.parseDouble(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n case java.sql.Types.FLOAT:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Float.parseFloat(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n case java.sql.Types.DECIMAL:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Float.parseFloat(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n case java.sql.Types.VARCHAR:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"\":fila.get(col.getEtiqueta()).getValor().toString());\r\n break;\r\n \r\n case java.sql.Types.NUMERIC:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Float.parseFloat(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n default:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"\":fila.get(col.getEtiqueta()).getValor().toString());\r\n break;\r\n } \r\n }\r\n }\r\n sesionMap.put(\"UsuarioDTO\", usuario);\r\n }else{\r\n context.getExternalContext().getApplicationMap().clear();\r\n context.getExternalContext().redirect(\"index.xhtml\");\r\n }\r\n }\r\n }catch(Exception ex){\r\n System.out.println(\"Excepcion en la cargaInfoEmpleado: \" + ex);\r\n }finally{\r\n try{\r\n conn.close();\r\n }catch(Exception ex){\r\n \r\n }\r\n }\r\n }", "public int persisteInformacionInsertSelect(String queryInserSelect, String idProceso) throws Exception;", "public abstract co\n\t\t.com\n\t\t.telefonica\n\t\t.atiempo\n\t\t.ejb\n\t\t.eb\n\t\t.Estado_ps_peticionLocal getEstado_ps_peticion();", "public void salvarProfessor(){\n \n this.professor.setName(nome);\n this.professor.setEmail(email);\n this.professor.setSenha(senha);\n\n try {\n \n this.professorServico.persistence(this.professor);\n \n } catch (CadastroUsuarioException ex) {\n \n //Precisa tratar aqui!\n }\n \n setNome(null);\n setEmail(null);\n setSenha(null);\n }", "public void VaciarPila()\n {\n this.tope = 0;\n }", "public void EjecutarConsulta() {\n try {\n Consultar(\"select * from \"+table);\n this.resultSet = preparedStatement.executeQuery();\n } catch (Exception e) {\n// MessageEmergent(\"Fail EjecutarConsulta(): \"+e.getMessage());\n }\n }", "public void setFechaPresentacion(es.gob.agenciatributaria.www2.static_files.common.internet.dep.aplicaciones.es.aeat.ssii.fact.ws.SuministroInformacion_xsd.RangoFechaPresentacionType fechaPresentacion) {\r\n this.fechaPresentacion = fechaPresentacion;\r\n }", "public void setPerfil(int perfil){\n this.perfil = perfil;\n }" ]
[ "0.61601615", "0.6131892", "0.6127742", "0.5805275", "0.57628727", "0.57268506", "0.56727636", "0.56007755", "0.5576123", "0.5523897", "0.55122125", "0.5499038", "0.54901177", "0.5465794", "0.5465551", "0.54608333", "0.5423374", "0.5420528", "0.5420528", "0.5420528", "0.54165626", "0.5416544", "0.54088706", "0.5393473", "0.5392382", "0.5387998", "0.53862745", "0.5382676", "0.5369673", "0.5366627", "0.53623855", "0.5360728", "0.53318954", "0.5330113", "0.5301524", "0.5294377", "0.5286846", "0.52841437", "0.5282252", "0.52638125", "0.5262352", "0.524516", "0.52437526", "0.5229326", "0.52245796", "0.5218599", "0.521414", "0.52119786", "0.5198432", "0.5198416", "0.51910275", "0.5190991", "0.51887995", "0.5186777", "0.51857764", "0.51857764", "0.5176087", "0.51739526", "0.5168749", "0.5162316", "0.51584786", "0.51584786", "0.51530457", "0.51530457", "0.5131423", "0.5131213", "0.51298577", "0.51175946", "0.51163965", "0.5110694", "0.51075566", "0.51041454", "0.5101139", "0.5101104", "0.50985914", "0.5095694", "0.509367", "0.5091229", "0.5089948", "0.5089238", "0.50872546", "0.50870603", "0.50836384", "0.5075016", "0.5068881", "0.50659215", "0.50613314", "0.5060234", "0.50599337", "0.50599337", "0.50585335", "0.50579643", "0.50547767", "0.50532055", "0.5048232", "0.50382197", "0.502993", "0.50285274", "0.50281185", "0.50268984" ]
0.6386253
0
This method was generated by MyBatis Generator. This method returns the value of the database column expediente_consulta.p_mayor
public String getpMayor() { return pMayor; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getpMenor() {\r\n return pMenor;\r\n }", "public void setpMayor(String pMayor) {\r\n this.pMayor = pMayor;\r\n }", "public void setpMenor(String pMenor) {\r\n this.pMenor = pMenor;\r\n }", "public String getAPELLIDONombreDelAlumno() {\r\n\t\tString nombre = \"SUREDA José\";\r\n\t\treturn nombre;\r\n\t}", "@AutoEscape\n\tpublic String getApellidoMaterno();", "@Column(name = \"C_PRIMER_APELLIDO\")\n public String getPrimerApellido() {\n return primerApellido;\n }", "public java.sql.ResultSet consultapormedicofecha(String CodigoMedico,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pmd.codigo=\"+CodigoMedico+\" and phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicofecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public int dameColumna() {\n return this.columna;\n }", "public String getMateria() {\n return materia;\n }", "public int obtenerColumna() {\n\t\treturn columna;\n\t}", "@Override\n public ArrayList<Propiedad> getPrecioAgente(double pMenor, double pMayor, String pId) throws SQLException {\n ArrayList<Propiedad> resultado = new ArrayList<Propiedad>();\n resultado = (ArrayList<Propiedad>) bdPropiedad.selectQuery(\"SELECT * FROM PROPIEDAD WHERE ID_AGENTE = '\" + pId + \"' AND \"\n + \"PRECIO >= \" + pMenor + \" AND PRECIO <= \" + pMayor);\n return resultado;\n }", "public String getPuntoEmision()\r\n/* 124: */ {\r\n/* 125:207 */ return this.puntoEmision;\r\n/* 126: */ }", "@Column(name = \"C_PUESTO\")\n public String getPuesto() {\n return puesto;\n }", "public DataTable getDtMotivoLlamadoAtencion()\r\n/* 134: */ {\r\n/* 135:140 */ return this.dtMotivoLlamadoAtencion;\r\n/* 136: */ }", "private IDAOPatente getDaoPatente() {\n return this.daoPatente;\n }", "public DAODomande getDaoDomande() {\n return daoDomande;\n }", "public String getMaori() {\n\t\treturn _maoriNumber;\n\t}", "public String getMarca(){\n return marca;\n }", "public java.sql.ResultSet consultapormedicohorafecha(String CodigoMedico,String hora,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pmd.codigo=\"+CodigoMedico+\" and phm.horas='\"+hora+\"' and phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicohorafecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public int getPontosTimeMandante() {\r\n return pontosTimeMandante;\r\n }", "public String getMascara()\r\n/* 287: */ {\r\n/* 288:355 */ if (this.dimensionContable.getMascara() != null) {\r\n/* 289:356 */ if (this.dimensionContable.getDimensionPadre() != null) {\r\n/* 290:358 */ this.mascara = (this.dimensionContable.getDimensionPadre().getCodigo() + this.dimensionContable.getMascara().substring(this.dimensionContable.getDimensionPadre().getCodigo().length()));\r\n/* 291: */ } else {\r\n/* 292:360 */ this.mascara = this.dimensionContable.getMascara();\r\n/* 293: */ }\r\n/* 294: */ }\r\n/* 295:363 */ return this.mascara;\r\n/* 296: */ }", "public int obtenerMinuto() { return minuto; }", "public boolean esMayorDeEdad(){\r\n \t\tboolean mayor=false;\r\n \t\tif (obtenerAnios()>=18){\r\n\t\t\tmayor=true;\r\n\t\t}\r\n\t\treturn mayor;\r\n\t}", "public String getMarca()\n {\n return marca;\n }", "public java.sql.ResultSet consultapormedicohora(String CodigoMedico,String hora){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pmd.codigo=\"+CodigoMedico+\" and phm.horas='\"+hora+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas \");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicohora \"+ex);\r\n }\t\r\n return rs;\r\n }", "public java.sql.ResultSet consultapormedicoespecialidadfecha(String CodigoMedico,String CodigoEspecialidad,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pmd.codigo=\"+CodigoMedico+\" and pes.codigo=\"+CodigoEspecialidad+\" and phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicoespecialidadfecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public String getMiNo() {\r\n return miNo;\r\n }", "public String getNomor() {\n return this.nomor;\n }", "public String getMarca() {\n return Marca;\n }", "public Month getMonth(){\n\t return this.month;\n }", "public int getParametroIdParametroPadre() {\r\n\t\treturn this.parametroIdParametroPadre;\r\n\t}", "public String getEmphcolumn()\n {\n return emphColumn;\n }", "public Long getIdMarca() {\n return idMarca;\n }", "public String getMonth()\n {\n return Month.get();\n }", "@Column(name = \"C_MUSER\", nullable = false)\n public String getMuser() {\n return this.muser;\n }", "public java.lang.Long getJamMulai() {\n return jam_mulai;\n }", "@ManyToOne\r\n\t@JoinColumn(name=\"MDLB_ID\")\r\n\tpublic ModalidadLaboral getModalidadLaboral() {\r\n\t\treturn this.modalidadLaboral;\r\n\t}", "private String getQuerySelecaoBonusPulaPula()\n\t{\n\t\tString result = \n\t\t\t\"SELECT \" +\n\t\t\t\" ID_CODIGO_NACIONAL, \" +\n\t\t\t\" VLR_BONUS_MINUTO, \" +\n\t\t\t\" VLR_BONUS_MINUTO_FF \" +\n\t\t\t\"FROM \" +\n\t\t\t\" TBL_GER_BONUS_PULA_PULA \";\n\t\t\n\t\treturn result;\n\t}", "@Override\n public ArrayList<Propiedad> getPrecioCliente(double pMenor, double pMayor) throws SQLException {\n ArrayList<Propiedad> resultado = new ArrayList<Propiedad>();\n resultado = (ArrayList<Propiedad>) bdPropiedad.selectQuery(\"SELECT * FROM PROPIEDAD WHERE ESTADO = 'ACTIVO' AND \"\n + \"PRECIO >= \" + pMenor + \" AND PRECIO <= \" + pMayor);\n return resultado;\n }", "public String getDm() {\n return dm;\n }", "public Integer getId_movimiento() {\r\n return id_movimiento;\r\n }", "private MembreDAO getMembreDAO() {\r\n return this.membreDAO;\r\n }", "public CfgMedicamento getMedicamentoSeleccionado() {\r\n return medicamentoSeleccionado;\r\n }", "public String getJP_AcctMonth();", "public void consultaDinero(){\r\n System.out.println(this.getMonto());\r\n }", "public int getMotorista() {\n\t\treturn motorista;\n\t}", "public int getMida() {\r\n\t\treturn mida;\r\n\t}", "public long getPlateau()\n {\n return plateau;\n }", "@Column(name = \"C_PRIMER_NOMBRE\")\n public String getPrimerNombre() {\n return primerNombre;\n }", "@Length(max = 300)\r\n\t@Column(name = \"justificacion\", unique = false, nullable = true, insertable = true, updatable = true, columnDefinition = \"varchar(300)\")\r\n\tpublic String getJustificacion() {\r\n\t\treturn justificacion;\r\n\t}", "public java.lang.Long getJamMulai() {\n return jam_mulai;\n }", "public java.sql.ResultSet consultaporfecha(String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporfecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "@javax.persistence.Column(name = \"medal\", nullable = false, length = 1)\n\tpublic java.lang.String getMedal() {\n\t\treturn getValue(org.jooq.examples.cubrid.demodb.tables.Record.RECORD.MEDAL);\n\t}", "public String getMep() {\n return mep;\n }", "public Empresa getEmpresa()\r\n/* 84: */ {\r\n/* 85:131 */ return this.empresa;\r\n/* 86: */ }", "public int getMonth(){\n\t\treturn month;\n\t}", "public java.lang.Long getTglMulaiOtomatisBuatJadwal() {\n return tgl_mulai_otomatis_buat_jadwal;\n }", "public java.lang.Long getTglMulaiOtomatisBuatJadwal() {\n return tgl_mulai_otomatis_buat_jadwal;\n }", "public int getIdAlumno() {\n return idAlumno;\n }", "public Long getMorId() {\n return morId;\n }", "public int getMonth()\n {\n return month;\n }", "public String getAutorizacion()\r\n/* 134: */ {\r\n/* 135:226 */ return this.autorizacion;\r\n/* 136: */ }", "@Override\r\n\tpublic String getOstatu_mota() {\n\t\treturn super.getOstatu_mota();\r\n\t}", "@AutoEscape\n\tpublic String getApellidoPaterno();", "public int getMonth() {\n return this.month;\n }", "public int getMonth() {\n return this.month;\n }", "public MotivoLlamadoAtencion getMotivoLlamadoAtencion()\r\n/* 114: */ {\r\n/* 115:123 */ return this.motivoLlamadoAtencion;\r\n/* 116: */ }", "public String getMenuno() {\r\n return menuno;\r\n }", "public String getMonth() {\n return month;\n }", "@Override\n public String getModu() {\n return null;\n }", "public java.lang.Long getPeti_numero();", "public java.lang.Long getPeti_numero();", "public String getMonth() {\r\n return month;\r\n }", "public E getConsulta() {\n\n\t\treturn this.consulta;\n\t}", "public String modificar() {\n\n\t\tLOG.info(\"accion crear alumno\");\n\t\tString view = VIEW_LISTADO;\n\t\tview = VIEW_FORM_ALTA;\n\t\tthis.alumnos.add(this.alumno);\n\t\treturn view;\n\t}", "public String getFechaModificacion() { return (this.fechaModificacion == null) ? \"\" : this.fechaModificacion; }", "public String getFechaModificacion() { return (this.fechaModificacion == null) ? \"\" : this.fechaModificacion; }", "public int getPerfil(){\n return this.perfil;\n }", "public String getMmdj() {\n return mmdj;\n }", "@Column(name = \"C_SEGUNDO_APELLIDO\")\n public String getSegundoApellido() {\n return segundoApellido;\n }", "public int getMonth() {\r\n\t\treturn (this.month);\r\n\t}", "public String obtenModelo(){\r\n return this.modelo;\r\n }", "public int Mayor(List<Integer>num){\n this.numero = num;\n int mayor = 0;\n int contador;\n \n Iterator i = num.iterator();\n \n while(i.hasNext()){\n if (mayor<num.get((int) i.next())) {\n mayor = num.get((int) i.next());\n }\n }\n return mayor;\n }", "public Nodo_m_ario getPadre() {\n\t\treturn padre;\n\t}", "public int getMonth() {\n return month;\n }", "@Override\n public Asesor getAsesor(String numeroPersonal) {\n Asesor asesor = null;\n ConexionSQL conexionSql = new ConexionSQL();\n Connection conexion = conexionSql.getConexion();\n try{\n PreparedStatement orden = conexion.prepareStatement(\"select * from asesor where numeroPersonal =?\");\n orden.setString(1, numeroPersonal);\n ResultSet resultadoConsulta = orden.executeQuery();\n if(resultadoConsulta.first()){\n String nombre;\n String idioma;\n String correo;\n String telefono;\n numeroPersonal = resultadoConsulta.getString(1);\n nombre = resultadoConsulta.getString(4) +\" \"+ resultadoConsulta.getString(6) +\" \"+ resultadoConsulta.getString(5);\n idioma = resultadoConsulta.getString(2);\n telefono = resultadoConsulta.getString(8);\n correo = resultadoConsulta.getString(7);\n asesor = new Asesor(numeroPersonal, nombre, idioma,telefono,correo);\n }else{\n Logger logger = Logger.getLogger(\"Logger\");\n logger.log(Level.WARNING, \"No se encuentra el asesor\");\n }\n }catch(SQLException | NullPointerException excepcion){\n Logger logger = Logger.getLogger(\"Logger\");\n logger.log(Level.WARNING, \"La conexión podría ser nula | la sentencia SQL esta mal\");\n }\n return asesor;\n }", "public String getDoctoroneCode() {\n return doctoroneCode;\n }", "public java.lang.String getPon() {\n return pon;\n }", "public Integer getMonth() {\n return month;\n }", "public Integer getMonth() {\n return month;\n }", "public Integer getMonth() {\r\n return month;\r\n }", "public int obtenerColumnas(){\n return COLUMNAS;\n }", "public String getApellido(){\n return this.apellido;\n }", "public java.lang.String getTpoDocumento() {\n return tpoDocumento;\n }", "public String getEmpleado() {\n return empleado;\n }", "public String getMonth() {\n return month.getText();\n }", "public static String getRespuestaAgregarMedida(){\n return _respuesta;\n }", "public String getMotd() {\n return this.motd;\n }", "@Override\n public Propiedad getPropiedadId(String pNumFinca) throws SQLException {\n ArrayList<Propiedad> resultado = new ArrayList<Propiedad>();\n resultado = (ArrayList<Propiedad>) bdPropiedad.selectQuery(\"SELECT * FROM PROPIEDAD WHERE \"\n + \"ID_PROPIEDAD = '\" + pNumFinca + \"'\");\n Propiedad propiedadSeleccionada = resultado.get(0);\n return propiedadSeleccionada;\n }", "@JsonGetter(\"exp_month\")\r\n public int getExpMonth ( ) { \r\n return this.expMonth;\r\n }" ]
[ "0.6237482", "0.5811239", "0.578955", "0.5500776", "0.54932785", "0.5444785", "0.540888", "0.5384615", "0.5347689", "0.5259483", "0.522279", "0.5222407", "0.52048695", "0.52029705", "0.5202463", "0.5199367", "0.5191434", "0.51913106", "0.51428264", "0.51370597", "0.5135642", "0.5125134", "0.51233524", "0.512307", "0.51084995", "0.5095944", "0.5090161", "0.508754", "0.5083308", "0.50749135", "0.50562304", "0.5051815", "0.50429463", "0.50310713", "0.50227225", "0.5019909", "0.50143397", "0.5011613", "0.5000459", "0.49953982", "0.49935973", "0.49892", "0.49874222", "0.49856997", "0.49842766", "0.49793175", "0.49736276", "0.49682933", "0.4966461", "0.49500805", "0.4948307", "0.49453664", "0.49440312", "0.49436763", "0.49346688", "0.4918399", "0.49166575", "0.49101186", "0.49089292", "0.49008328", "0.48976517", "0.489638", "0.4895309", "0.48874673", "0.48854363", "0.48854363", "0.48836848", "0.48780257", "0.48750407", "0.48740193", "0.4871899", "0.4871899", "0.48680782", "0.486575", "0.48613128", "0.48556966", "0.48556966", "0.4852626", "0.48472753", "0.48449114", "0.4841169", "0.48399925", "0.48376977", "0.483719", "0.48275888", "0.4825218", "0.48182544", "0.4818076", "0.48094162", "0.48094162", "0.48066887", "0.48016247", "0.47999468", "0.4798693", "0.47964513", "0.47934246", "0.47925988", "0.4791317", "0.4790505", "0.47881314" ]
0.6363025
0
This method was generated by MyBatis Generator. This method sets the value of the database column expediente_consulta.p_mayor
public void setpMayor(String pMayor) { this.pMayor = pMayor; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setpMenor(String pMenor) {\r\n this.pMenor = pMenor;\r\n }", "public void setEmpresa(Empresa empresa)\r\n/* 89: */ {\r\n/* 90:141 */ this.empresa = empresa;\r\n/* 91: */ }", "public void setPatronAutorizacion(String patronAutorizacion)\r\n/* 219: */ {\r\n/* 220:369 */ this.patronAutorizacion = patronAutorizacion;\r\n/* 221: */ }", "public void setMotivoLlamadoAtencion(MotivoLlamadoAtencion motivoLlamadoAtencion)\r\n/* 119: */ {\r\n/* 120:127 */ this.motivoLlamadoAtencion = motivoLlamadoAtencion;\r\n/* 121: */ }", "public void setUsuarioModificacion(String p) { this.usuarioModificacion = p; }", "public void setUsuarioModificacion(String p) { this.usuarioModificacion = p; }", "public void setFechaModificacion(String p) { this.fechaModificacion = p; }", "public void setFechaModificacion(String p) { this.fechaModificacion = p; }", "public String getpMayor() {\r\n return pMayor;\r\n }", "public void setMoral(int moral) {\n\t\tthis.moral = moral;\n\t}", "public void daoActualizar(Miembro m) throws SQLException {\r\n\t\tPreparedStatement ps= con.prepareCall(\"UPDATE miembros SET nombre=?, apellido1=?, apellido2=?, edad=?, cargo=? WHERE id=?\");\r\n\t\tps.setString(1,m.getNombre());\r\n\t\tps.setString(2,m.getApellido1());\r\n\t\tps.setString(3,m.getApellido2());\r\n\t\tps.setInt(4,m.getEdad());\r\n\t\tps.setInt(5,m.getCargo());\r\n\t\tps.setInt(6,m.getId());\t\r\n\t\tps.executeUpdate();\r\n\t\tps.close();\r\n\t}", "public void setORM_Jefeadministracion(orm.Jefeadministracion value) {\n\t\tthis.jefeadministracion = value;\n\t}", "public void setPuntoEmision(String puntoEmision)\r\n/* 129: */ {\r\n/* 130:217 */ this.puntoEmision = puntoEmision;\r\n/* 131: */ }", "public void setApellidoMaterno(String apellidoMaterno);", "public String getpMenor() {\r\n return pMenor;\r\n }", "public void setFechaHasta(Date fechaHasta)\r\n/* 179: */ {\r\n/* 180:312 */ this.fechaHasta = fechaHasta;\r\n/* 181: */ }", "public void setAutorizacion(String autorizacion)\r\n/* 139: */ {\r\n/* 140:236 */ this.autorizacion = autorizacion;\r\n/* 141: */ }", "public void asignarAutomovilPersona(){\r\n persona.setAutomovil(automovil);\r\n }", "public void setMasaCorp(String masaCorp) {\r\n this.masaCorp = masaCorp;\r\n }", "public void setMarca(String marcaParametru)\n {\n this.marca = marcaParametru;\n }", "public void setPuntoDeVenta(PuntoDeVenta puntoDeVenta)\r\n/* 145: */ {\r\n/* 146:166 */ this.puntoDeVenta = puntoDeVenta;\r\n/* 147: */ }", "public void setDtMotivoLlamadoAtencion(DataTable dtMotivoLlamadoAtencion)\r\n/* 139: */ {\r\n/* 140:144 */ this.dtMotivoLlamadoAtencion = dtMotivoLlamadoAtencion;\r\n/* 141: */ }", "public TipoOperacaoParcialUpdate planoMinimo(Integer planoMinimo) {\n this.planoMinimo = planoMinimo;\n return this;\n }", "public void setEmpleado(Empleado empleado)\r\n/* 188: */ {\r\n/* 189:347 */ this.empleado = empleado;\r\n/* 190: */ }", "public void setPontosTimeMandante(int pontosTimeMandante) {\r\n this.pontosTimeMandante = pontosTimeMandante;\r\n }", "public void setPrecioc(int p){\n this.precioc=p;\n \n }", "public void setConsulta(final E consulta) {\n\n\t\tthis.consulta = consulta;\n\t}", "public void setFechaconsulta(Date fechaconsulta) {\r\n this.fechaconsulta = fechaconsulta;\r\n }", "public void setNom(String p_onom);", "public void setOrigen(java.lang.String param){\n \n this.localOrigen=param;\n \n\n }", "public void setIdempresa(String idempresa) {\n\t\tthis.idempresa = idempresa;\n\t}", "public void setIdempresa(String idempresa) {\n\t\tthis.idempresa = idempresa;\n\t}", "public void setIdempresa(String idempresa) {\n\t\tthis.idempresa = idempresa;\n\t}", "public void setGenero(Genero genero)\r\n/* 148: */ {\r\n/* 149:271 */ this.genero = genero;\r\n/* 150: */ }", "public String guardarTemporal(Proveedor p) {\n proTemporal = p;\n return \"/RecepProveedorModificar.xhtml\";\n }", "public void setFechaExpedicion(String p) { this.fechaExpedicion = p; }", "protected native void setModo(int modoJuego, int mano);", "public void setEdificio (String pEdificio)\r\n {\r\n this.edificio = pEdificio;\r\n }", "public void setJP_AcctMonth (String JP_AcctMonth);", "public void setApellidos(String p) { this.apellidos = p; }", "public void setAnio(int p) { this.anio = p; }", "public void setMarca( String marca ){\n this.marca = marca;\n }", "public void setMontoDescuento(double param){\n \n this.localMontoDescuento=param;\n \n\n }", "public void setMesSeleccionado(Mes mesSeleccionado)\r\n/* 177: */ {\r\n/* 178:221 */ this.mesSeleccionado = mesSeleccionado;\r\n/* 179: */ }", "public void setCreacion(Date creacion) {\r\n this.creacion = creacion;\r\n }", "public void setEmphcolumn(String emphColumnIn)\n {\n emphColumn = emphColumnIn;\n }", "public void modificar() {\n try {\n if(!fecha.equals(null)){\n Dr_siseg_usuarioBean usuario = new Dr_siseg_usuarioBean();\n FacesContext facesContext = FacesContext.getCurrentInstance();\n usuario = (Dr_siseg_usuarioBean) facesContext.getExternalContext().getSessionMap().get(\"usuario\");\n \n calendar.setTime((Date) this.fecha);\n this.Selected.setApel_fecha_sesion(calendar.getTime());\n\n ApelacionesDao apelacionesDao = new ApelacionesDao();\n apelacionesDao.IME_APELACIONES(2, Selected); \n\n BitacoraSolicitudDao bitacoraSolicitudDao = new BitacoraSolicitudDao();//INSERTA EL MOVIMIENTO EN LA BITACORA\n BitacoraSolicitudBean bitacoraSolicitudBean = new BitacoraSolicitudBean();\n bitacoraSolicitudBean.setBit_sol_id(this.Selected.getApel_sol_numero());\n bitacoraSolicitudBean.setUsuarioBean(usuario);\n bitacoraSolicitudBean.setBit_tipo_movimiento(\"1\");\n bitacoraSolicitudBean.setBit_detalle(\"Fue modificada la apelacion\");\n bitacoraSolicitudDao.dmlDr_regt_bitacora_solicitud(bitacoraSolicitudBean);\n\n this.Listar();\n this.Selected = new ApelacionesBean();\n addMessage(\"Guadado Exitosamente\", 1);\n }else\n {\n addMessage(\"Es requerida la fecha\",1 );\n }\n } catch (ExceptionConnection ex) {\n Logger.getLogger(ApelacionController.class.getName()).log(Level.SEVERE, null, ex);\n addMessage(\"Se produjo un error al insertar el registro, contacte al administrador del sistema\", 1);\n }\n }", "public void setNomor(String nomor) {\n this.nomor = nomor;\n }", "@Test\r\n public void testSetOrigen() {\r\n String expResult = \"pruebaorigen\";\r\n articuloPrueba.setOrigen(expResult);\r\n assertEquals(expResult, articuloPrueba.getOrigen());\r\n }", "public boolean esMayorDeEdad(){\r\n \t\tboolean mayor=false;\r\n \t\tif (obtenerAnios()>=18){\r\n\t\t\tmayor=true;\r\n\t\t}\r\n\t\treturn mayor;\r\n\t}", "public void setDACTEsclave(PopUpDataAccessCtrlr monEsclave) {\r\n\tdactEsclave = monEsclave;\r\n\t// en profiter pour dire � mon esclave qui est le maitre (source de donn�es pour ces param�tres !)\r\n\tif (monEsclave != null) monEsclave.setObjetSource(this);\r\n }", "public void setEspecialidad (EspecialidadEntity pEspecialidad)\r\n {\r\n this.especialidad = pEspecialidad;\r\n }", "public void setDaoDomande(DAODomande daoDom) {\n this.daoDomande = daoDom;\n }", "public void setMotivoRechazo(biz.belcorp.www.canonico.ffvv.vender.TMotivoRechazo param){\n \n this.localMotivoRechazo=param;\n \n\n }", "public void setDominio(String p) { this.dominio = p; }", "@Override\n\tpublic void setMeetinExperienceFlagFromPH(int appointmentId, int meetingExpFromPH) {\n\t\ttry{\n\t\t\tjdbcTemplate.update(UPDATE_HASMEETINGEXPERIENCE_FROM_PH, (ps)->{\n\t\t\t\tps.setInt(1, meetingExpFromPH);\n\t\t\t\tps.setInt(2, appointmentId);\n\t\t\t});\n\t\t}catch(DataAccessException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void setPedido(Pedido pPedido){\n\t\tmiPedido = pPedido;\n\t}", "public void setDesignador(java.lang.String designador) {\r\n this.designador = designador;\r\n }", "public void setFechaDesde(Date fechaDesde)\r\n/* 169: */ {\r\n/* 170:293 */ this.fechaDesde = fechaDesde;\r\n/* 171: */ }", "public void setApellidoPaterno(String apellidoPaterno);", "public void setAlamat_pelanggan(String Alamat_Pelanggan){\r\n \r\n this.alamat_pelanggan = Alamat_Pelanggan;\r\n }", "protected void setManusia(T Manusia){\r\n this.Manusia = Manusia;\r\n }", "@Override\n\tpublic void modificada(Mao m, Participante p) {\n\t\t\n\t}", "public void setFechaPresentacion(es.gob.agenciatributaria.www2.static_files.common.internet.dep.aplicaciones.es.aeat.ssii.fact.ws.SuministroInformacion_xsd.RangoFechaPresentacionType fechaPresentacion) {\r\n this.fechaPresentacion = fechaPresentacion;\r\n }", "@JsonSetter(\"exp_month\")\r\n public void setExpMonth (int value) { \r\n this.expMonth = value;\r\n }", "public void UltimoRegistro(PDetalle pdetalle) throws Exception {\n String sql = \"SELECT \\n\"\n + \"\tCODPRES,\\n\"\n + \"\tCANTFAL,\\n\"\n + \"\tFSALPRES \\n\"\n + \"FROM PRESTAMO\\n\"\n + \"\tWHERE CODPRES = (SELECT MAX(CODPRES) FROM PRESTAMO)\";\n try {\n Statement st = this.conectar().createStatement();\n ResultSet rs = st.executeQuery(sql);\n while (rs.next()) {\n pdetalle.setCODPRESD(rs.getInt(\"CODPRES\"));\n pdetalle.setCANTDET(rs.getString(\"CANTFAL\"));\n pdetalle.setFECHENT(rs.getString(\"FSALPRES\"));\n }\n rs.close();\n st.close();\n } catch (Exception e) {\n System.out.println(\"Error al traer código de prestamo\");\n }\n\n }", "public void setEstablecimiento(String establecimiento)\r\n/* 119: */ {\r\n/* 120:198 */ this.establecimiento = establecimiento;\r\n/* 121: */ }", "public TipoOperacaoParcialUpdate planoMaximo(Integer planoMaximo) {\n this.planoMaximo = planoMaximo;\n return this;\n }", "public void setUnidadMterreno(Valor unidadMterreno) {\n this.unidadMterreno = unidadMterreno;\n }", "public void setar_campos() {\n int setar = tblEmpresas.getSelectedRow();\n txtEmpId.setText(tblEmpresas.getModel().getValueAt(setar, 0).toString());\n txtEmpNome.setText(tblEmpresas.getModel().getValueAt(setar, 1).toString());\n txtEmpCNPJ.setText(tblEmpresas.getModel().getValueAt(setar, 2).toString());\n txtEmpEnd.setText(tblEmpresas.getModel().getValueAt(setar, 3).toString());\n txtEmpTel.setText(tblEmpresas.getModel().getValueAt(setar, 4).toString());\n txtEmpEmail.setText(tblEmpresas.getModel().getValueAt(setar, 5).toString());\n\n // a linha abaixo desabilita o botao add\n btnAdicionar.setEnabled(false);\n }", "public void setMonth(int month)\n {\n this.month = month;\n }", "public void setProprietarioDao(IProprietarioDAO proprietarioDao);", "@Override\n\tpublic void set(Medicamento novo) {\n\t\t\n\n\t\t\tcon = ConexaoSingleton.getInstance();\n\t\t\ttry {\n\t\t\t\tpst = con.prepareStatement(\"INSERT INTO Medicamento (nome,mg) VALUES (?,?)\");\n\t\t\t\tpst.setString(1, novo.getDesc());\n\t\t\t\tpst.setDouble(2, novo.getmg());\n\t\t\t\tpst.execute();\n\t\t\t}catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t}", "public void setMarca(String Marca) {\n this.Marca = Marca;\n }", "public BeanDatosAlumno() {\r\n bo = new BoPrestamoEjemplarImpl();\r\n verEjemplares(\"ABC0001\"); \r\n numerodelibrosPrestados();\r\n }", "public void setDm(java.lang.String param) {\r\n localDmTracker = param != null;\r\n\r\n this.localDm = param;\r\n }", "public void update(Empresa p) throws ClassNotFoundException {\r\n java.sql.Connection con = ConnectionFactory.getConnection();\r\n PreparedStatement stmt = null;\r\n try {\r\n stmt = con.prepareStatement(\"UPDATE tbempresas SET nomeEmp = ? WHERE codEmp = ?\");\r\n\r\n stmt.setString(1, p.getNomeEmp());\r\n stmt.setInt(2, p.getCodEmp());\r\n stmt.executeUpdate();\r\n\r\n JOptionPane.showMessageDialog(null, \"Atualizado com sucesso!\");\r\n } catch (SQLException error) {\r\n System.out.print(\"Erro ao atualizar\" + error);\r\n } finally {\r\n ConnectionFactory.closeConnection(con, stmt);\r\n }\r\n }", "public boolean modificar(DueñoMascota pro) {\n PreparedStatement ps = null;\n Connection con = getConexion();\n\n \n String sql = \"UPDATE datos SET nom_dueño=?, ap_dueño=?, tel=?,nom_mascota=?,observaciones=? WHERE id_datos=? \";\n\n try {\n ps = con.prepareStatement(sql);\n // ps.setInt(1, pro.getId()); //NÚMERe almacena\n ps.setString(1, pro.getNomDueño());\n ps.setString(2, pro.getApDueño());\n ps.setInt(3, pro.getTel());\n ps.setString(4, pro.getNomMascota());\n ps.setString(5, pro.getObservaciones());\n ps.setInt(6, pro.getId());\n ps.execute();\n ps.close();\n return true;\n } catch (SQLException e) {\n System.err.println(e);\n return false;\n } finally {\n try {\n con.close();\n } catch (SQLException e) {\n System.err.println(e);\n }\n }\n }", "private void setHospital(String p_hospital){\n\t\tthis.nombreHospital = p_hospital;\n\t}", "public void setMontoSolicitado(double param){\n \n this.localMontoSolicitado=param;\n \n\n }", "public java.sql.ResultSet consultapormedicofecha(String CodigoMedico,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pmd.codigo=\"+CodigoMedico+\" and phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicofecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public void setMontoPedidoRechazado(double param){\n \n this.localMontoPedidoRechazado=param;\n \n\n }", "public void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);", "public void setUsuarioInsercion(String p) { this.usuarioInsercion = p; }", "public void setUsuarioInsercion(String p) { this.usuarioInsercion = p; }", "public void setEjercicio(Ejercicio ejercicio)\r\n/* 150: */ {\r\n/* 151:193 */ this.ejercicio = ejercicio;\r\n/* 152: */ }", "public void setProveedor(int proveedor) { this.proveedor = proveedor; }", "public void set(Object requestor, String field, JMenu comp);", "public void setCodigoPlan(int p) { this.codigoPlan = p; }", "public void setEmpleado(String empleado) {\n this.empleado = empleado;\n }", "public void setDesignadorAcesso(java.lang.String designadorAcesso) {\r\n this.designadorAcesso = designadorAcesso;\r\n }", "public void setPercepcion(double param){\n \n this.localPercepcion=param;\n \n\n }", "public void setPredeterminado(boolean predeterminado)\r\n/* 159: */ {\r\n/* 160:274 */ this.predeterminado = predeterminado;\r\n/* 161: */ }", "public void setCedula(Integer cedula) {this.cedula = cedula;}", "public void ModificarPrestamo(PrestamoFila pf) {\n this.conexion.ConectarBD();\n String consulta = \"update prestamos set IdSocio = ?, IdLibro = ?, FechaInicio = ?, FechaFin = ? where IdPrestamo = ?\";\n try {\n this.pstm = this.conexion.getConexion().prepareStatement(consulta);\n //Indicamos los parametros del update\n this.pstm.setInt(1, pf.getIdSocio());\n this.pstm.setInt(2, pf.getIdLibro());\n this.pstm.setDate(3, new java.sql.Date(pf.getFechaInicio().getTime()));\n this.pstm.setDate(4, new java.sql.Date(pf.getFechaFin().getTime()));\n this.pstm.setInt(5, pf.getIdPrestamo());\n //Ejecutamos la consulta\n int res = pstm.executeUpdate();\n } catch (SQLException e) { \n throw new MisException(\"Error al modificar un Prestamo.\\n\"+e.toString());\n \n } catch (Exception e) {\n throw new MisException(\"Error.\\n\"+e.toString());\n \n }\n \n //Desconectamos de la BD\n this.conexion.DesconectarBD(); \n }", "public void setValor(String valor)\n/* 22: */ {\n/* 23:34 */ this.valor = valor;\n/* 24: */ }", "public void setDataModifica(Date dataModifica) {\n\t\tthis.dataModifica = dataModifica;\n\t}", "void establecerPuntoAM(int pos){\n this.emisoraAMActual = pos;\n }", "public void setMelhorMili(int melhorMili) {\n this.melhorMili = melhorMili;\n }", "public void setCuentaContableCierre(CuentaContable cuentaContableCierre)\r\n/* 103: */ {\r\n/* 104:119 */ this.cuentaContableCierre = cuentaContableCierre;\r\n/* 105: */ }" ]
[ "0.6459354", "0.5700383", "0.55712533", "0.54503596", "0.5439192", "0.5439192", "0.5436573", "0.5436573", "0.5414873", "0.5372987", "0.53236485", "0.52824783", "0.52686274", "0.52228373", "0.5197082", "0.5162599", "0.51599187", "0.51460004", "0.51408786", "0.5123845", "0.5106518", "0.51058745", "0.510311", "0.5101041", "0.5085979", "0.5079198", "0.5062014", "0.5041227", "0.50395715", "0.503809", "0.5022152", "0.5022152", "0.5022152", "0.50143206", "0.5012515", "0.50027466", "0.4995231", "0.4986986", "0.49752188", "0.49639374", "0.49600053", "0.4944688", "0.4937951", "0.49268833", "0.49215436", "0.4918318", "0.49174535", "0.49149197", "0.49131727", "0.49080002", "0.49029192", "0.48991305", "0.48885548", "0.4873994", "0.48675796", "0.48478812", "0.48415628", "0.48364633", "0.48345965", "0.48176366", "0.48155507", "0.48145974", "0.48106733", "0.48095733", "0.4802467", "0.48013622", "0.47969258", "0.47954646", "0.4787982", "0.47826016", "0.4779386", "0.4778864", "0.47767466", "0.47718182", "0.4771556", "0.47650012", "0.47424108", "0.47354808", "0.47309515", "0.47280157", "0.47270927", "0.47223246", "0.47221065", "0.47194248", "0.47194248", "0.47187737", "0.4715746", "0.47104084", "0.47000763", "0.46972987", "0.46969444", "0.46946707", "0.46927878", "0.4688865", "0.46822214", "0.468019", "0.468006", "0.46791425", "0.46751502", "0.46738866" ]
0.65595806
0